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 | MAINT |
---|
643 | MAINTAINER_MODE_FALSE |
---|
644 | MAINTAINER_MODE_TRUE |
---|
645 | am__untar |
---|
646 | am__tar |
---|
647 | AMTAR |
---|
648 | am__leading_dot |
---|
649 | SET_MAKE |
---|
650 | AWK |
---|
651 | mkdir_p |
---|
652 | MKDIR_P |
---|
653 | INSTALL_STRIP_PROGRAM |
---|
654 | STRIP |
---|
655 | install_sh |
---|
656 | MAKEINFO |
---|
657 | AUTOHEADER |
---|
658 | AUTOMAKE |
---|
659 | AUTOCONF |
---|
660 | ACLOCAL |
---|
661 | VERSION |
---|
662 | PACKAGE |
---|
663 | CYGPATH_W |
---|
664 | am__isrc |
---|
665 | INSTALL_DATA |
---|
666 | INSTALL_SCRIPT |
---|
667 | INSTALL_PROGRAM |
---|
668 | target_alias |
---|
669 | host_alias |
---|
670 | build_alias |
---|
671 | LIBS |
---|
672 | ECHO_T |
---|
673 | ECHO_N |
---|
674 | ECHO_C |
---|
675 | DEFS |
---|
676 | mandir |
---|
677 | localedir |
---|
678 | libdir |
---|
679 | psdir |
---|
680 | pdfdir |
---|
681 | dvidir |
---|
682 | htmldir |
---|
683 | infodir |
---|
684 | docdir |
---|
685 | oldincludedir |
---|
686 | includedir |
---|
687 | localstatedir |
---|
688 | sharedstatedir |
---|
689 | sysconfdir |
---|
690 | datadir |
---|
691 | datarootdir |
---|
692 | libexecdir |
---|
693 | sbindir |
---|
694 | bindir |
---|
695 | program_transform_name |
---|
696 | prefix |
---|
697 | exec_prefix |
---|
698 | PACKAGE_URL |
---|
699 | PACKAGE_BUGREPORT |
---|
700 | PACKAGE_STRING |
---|
701 | PACKAGE_VERSION |
---|
702 | PACKAGE_TARNAME |
---|
703 | PACKAGE_NAME |
---|
704 | PATH_SEPARATOR |
---|
705 | SHELL' |
---|
706 | ac_subst_files='' |
---|
707 | ac_user_opts=' |
---|
708 | enable_option_checking |
---|
709 | enable_maintainer_mode |
---|
710 | with_backend_compiler |
---|
711 | enable_dependency_tracking |
---|
712 | ' |
---|
713 | ac_precious_vars='build_alias |
---|
714 | host_alias |
---|
715 | target_alias |
---|
716 | CXX |
---|
717 | CXXFLAGS |
---|
718 | LDFLAGS |
---|
719 | LIBS |
---|
720 | CPPFLAGS |
---|
721 | CCC |
---|
722 | CC |
---|
723 | CFLAGS |
---|
724 | CPP' |
---|
725 | |
---|
726 | |
---|
727 | # Initialize some variables set by options. |
---|
728 | ac_init_help= |
---|
729 | ac_init_version=false |
---|
730 | ac_unrecognized_opts= |
---|
731 | ac_unrecognized_sep= |
---|
732 | # The variables have the same names as the options, with |
---|
733 | # dashes changed to underlines. |
---|
734 | cache_file=/dev/null |
---|
735 | exec_prefix=NONE |
---|
736 | no_create= |
---|
737 | no_recursion= |
---|
738 | prefix=NONE |
---|
739 | program_prefix=NONE |
---|
740 | program_suffix=NONE |
---|
741 | program_transform_name=s,x,x, |
---|
742 | silent= |
---|
743 | site= |
---|
744 | srcdir= |
---|
745 | verbose= |
---|
746 | x_includes=NONE |
---|
747 | x_libraries=NONE |
---|
748 | |
---|
749 | # Installation directory options. |
---|
750 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
751 | # and all the variables that are supposed to be based on exec_prefix |
---|
752 | # by default will actually change. |
---|
753 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
754 | # (The list follows the same order as the GNU Coding Standards.) |
---|
755 | bindir='${exec_prefix}/bin' |
---|
756 | sbindir='${exec_prefix}/sbin' |
---|
757 | libexecdir='${exec_prefix}/libexec' |
---|
758 | datarootdir='${prefix}/share' |
---|
759 | datadir='${datarootdir}' |
---|
760 | sysconfdir='${prefix}/etc' |
---|
761 | sharedstatedir='${prefix}/com' |
---|
762 | localstatedir='${prefix}/var' |
---|
763 | includedir='${prefix}/include' |
---|
764 | oldincludedir='/usr/include' |
---|
765 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
766 | infodir='${datarootdir}/info' |
---|
767 | htmldir='${docdir}' |
---|
768 | dvidir='${docdir}' |
---|
769 | pdfdir='${docdir}' |
---|
770 | psdir='${docdir}' |
---|
771 | libdir='${exec_prefix}/lib' |
---|
772 | localedir='${datarootdir}/locale' |
---|
773 | mandir='${datarootdir}/man' |
---|
774 | |
---|
775 | ac_prev= |
---|
776 | ac_dashdash= |
---|
777 | for ac_option |
---|
778 | do |
---|
779 | # If the previous option needs an argument, assign it. |
---|
780 | if test -n "$ac_prev"; then |
---|
781 | eval $ac_prev=\$ac_option |
---|
782 | ac_prev= |
---|
783 | continue |
---|
784 | fi |
---|
785 | |
---|
786 | case $ac_option in |
---|
787 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
788 | *=) ac_optarg= ;; |
---|
789 | *) ac_optarg=yes ;; |
---|
790 | esac |
---|
791 | |
---|
792 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
793 | |
---|
794 | case $ac_dashdash$ac_option in |
---|
795 | --) |
---|
796 | ac_dashdash=yes ;; |
---|
797 | |
---|
798 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
799 | ac_prev=bindir ;; |
---|
800 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
801 | bindir=$ac_optarg ;; |
---|
802 | |
---|
803 | -build | --build | --buil | --bui | --bu) |
---|
804 | ac_prev=build_alias ;; |
---|
805 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
806 | build_alias=$ac_optarg ;; |
---|
807 | |
---|
808 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
809 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
810 | ac_prev=cache_file ;; |
---|
811 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
812 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
813 | cache_file=$ac_optarg ;; |
---|
814 | |
---|
815 | --config-cache | -C) |
---|
816 | cache_file=config.cache ;; |
---|
817 | |
---|
818 | -datadir | --datadir | --datadi | --datad) |
---|
819 | ac_prev=datadir ;; |
---|
820 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
821 | datadir=$ac_optarg ;; |
---|
822 | |
---|
823 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
824 | | --dataroo | --dataro | --datar) |
---|
825 | ac_prev=datarootdir ;; |
---|
826 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
827 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
828 | datarootdir=$ac_optarg ;; |
---|
829 | |
---|
830 | -disable-* | --disable-*) |
---|
831 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
832 | # Reject names that are not valid shell variable names. |
---|
833 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
834 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
835 | ac_useropt_orig=$ac_useropt |
---|
836 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
837 | case $ac_user_opts in |
---|
838 | *" |
---|
839 | "enable_$ac_useropt" |
---|
840 | "*) ;; |
---|
841 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
842 | ac_unrecognized_sep=', ';; |
---|
843 | esac |
---|
844 | eval enable_$ac_useropt=no ;; |
---|
845 | |
---|
846 | -docdir | --docdir | --docdi | --doc | --do) |
---|
847 | ac_prev=docdir ;; |
---|
848 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
849 | docdir=$ac_optarg ;; |
---|
850 | |
---|
851 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
852 | ac_prev=dvidir ;; |
---|
853 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
854 | dvidir=$ac_optarg ;; |
---|
855 | |
---|
856 | -enable-* | --enable-*) |
---|
857 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
858 | # Reject names that are not valid shell variable names. |
---|
859 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
860 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
861 | ac_useropt_orig=$ac_useropt |
---|
862 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
863 | case $ac_user_opts in |
---|
864 | *" |
---|
865 | "enable_$ac_useropt" |
---|
866 | "*) ;; |
---|
867 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
868 | ac_unrecognized_sep=', ';; |
---|
869 | esac |
---|
870 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
871 | |
---|
872 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
873 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
874 | | --exec | --exe | --ex) |
---|
875 | ac_prev=exec_prefix ;; |
---|
876 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
877 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
878 | | --exec=* | --exe=* | --ex=*) |
---|
879 | exec_prefix=$ac_optarg ;; |
---|
880 | |
---|
881 | -gas | --gas | --ga | --g) |
---|
882 | # Obsolete; use --with-gas. |
---|
883 | with_gas=yes ;; |
---|
884 | |
---|
885 | -help | --help | --hel | --he | -h) |
---|
886 | ac_init_help=long ;; |
---|
887 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
888 | ac_init_help=recursive ;; |
---|
889 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
890 | ac_init_help=short ;; |
---|
891 | |
---|
892 | -host | --host | --hos | --ho) |
---|
893 | ac_prev=host_alias ;; |
---|
894 | -host=* | --host=* | --hos=* | --ho=*) |
---|
895 | host_alias=$ac_optarg ;; |
---|
896 | |
---|
897 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
898 | ac_prev=htmldir ;; |
---|
899 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
900 | | --ht=*) |
---|
901 | htmldir=$ac_optarg ;; |
---|
902 | |
---|
903 | -includedir | --includedir | --includedi | --included | --include \ |
---|
904 | | --includ | --inclu | --incl | --inc) |
---|
905 | ac_prev=includedir ;; |
---|
906 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
907 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
908 | includedir=$ac_optarg ;; |
---|
909 | |
---|
910 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
911 | ac_prev=infodir ;; |
---|
912 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
913 | infodir=$ac_optarg ;; |
---|
914 | |
---|
915 | -libdir | --libdir | --libdi | --libd) |
---|
916 | ac_prev=libdir ;; |
---|
917 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
918 | libdir=$ac_optarg ;; |
---|
919 | |
---|
920 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
921 | | --libexe | --libex | --libe) |
---|
922 | ac_prev=libexecdir ;; |
---|
923 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
924 | | --libexe=* | --libex=* | --libe=*) |
---|
925 | libexecdir=$ac_optarg ;; |
---|
926 | |
---|
927 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
928 | ac_prev=localedir ;; |
---|
929 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
930 | localedir=$ac_optarg ;; |
---|
931 | |
---|
932 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
933 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
934 | ac_prev=localstatedir ;; |
---|
935 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
936 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
937 | localstatedir=$ac_optarg ;; |
---|
938 | |
---|
939 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
940 | ac_prev=mandir ;; |
---|
941 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
942 | mandir=$ac_optarg ;; |
---|
943 | |
---|
944 | -nfp | --nfp | --nf) |
---|
945 | # Obsolete; use --without-fp. |
---|
946 | with_fp=no ;; |
---|
947 | |
---|
948 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
949 | | --no-cr | --no-c | -n) |
---|
950 | no_create=yes ;; |
---|
951 | |
---|
952 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
953 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
954 | no_recursion=yes ;; |
---|
955 | |
---|
956 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
957 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
958 | | --oldin | --oldi | --old | --ol | --o) |
---|
959 | ac_prev=oldincludedir ;; |
---|
960 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
961 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
962 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
963 | oldincludedir=$ac_optarg ;; |
---|
964 | |
---|
965 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
966 | ac_prev=prefix ;; |
---|
967 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
968 | prefix=$ac_optarg ;; |
---|
969 | |
---|
970 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
971 | | --program-pre | --program-pr | --program-p) |
---|
972 | ac_prev=program_prefix ;; |
---|
973 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
974 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
975 | program_prefix=$ac_optarg ;; |
---|
976 | |
---|
977 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
978 | | --program-suf | --program-su | --program-s) |
---|
979 | ac_prev=program_suffix ;; |
---|
980 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
981 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
982 | program_suffix=$ac_optarg ;; |
---|
983 | |
---|
984 | -program-transform-name | --program-transform-name \ |
---|
985 | | --program-transform-nam | --program-transform-na \ |
---|
986 | | --program-transform-n | --program-transform- \ |
---|
987 | | --program-transform | --program-transfor \ |
---|
988 | | --program-transfo | --program-transf \ |
---|
989 | | --program-trans | --program-tran \ |
---|
990 | | --progr-tra | --program-tr | --program-t) |
---|
991 | ac_prev=program_transform_name ;; |
---|
992 | -program-transform-name=* | --program-transform-name=* \ |
---|
993 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
994 | | --program-transform-n=* | --program-transform-=* \ |
---|
995 | | --program-transform=* | --program-transfor=* \ |
---|
996 | | --program-transfo=* | --program-transf=* \ |
---|
997 | | --program-trans=* | --program-tran=* \ |
---|
998 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
999 | program_transform_name=$ac_optarg ;; |
---|
1000 | |
---|
1001 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1002 | ac_prev=pdfdir ;; |
---|
1003 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1004 | pdfdir=$ac_optarg ;; |
---|
1005 | |
---|
1006 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1007 | ac_prev=psdir ;; |
---|
1008 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1009 | psdir=$ac_optarg ;; |
---|
1010 | |
---|
1011 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1012 | | -silent | --silent | --silen | --sile | --sil) |
---|
1013 | silent=yes ;; |
---|
1014 | |
---|
1015 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1016 | ac_prev=sbindir ;; |
---|
1017 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1018 | | --sbi=* | --sb=*) |
---|
1019 | sbindir=$ac_optarg ;; |
---|
1020 | |
---|
1021 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1022 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1023 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1024 | | --sha | --sh) |
---|
1025 | ac_prev=sharedstatedir ;; |
---|
1026 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1027 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1028 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1029 | | --sha=* | --sh=*) |
---|
1030 | sharedstatedir=$ac_optarg ;; |
---|
1031 | |
---|
1032 | -site | --site | --sit) |
---|
1033 | ac_prev=site ;; |
---|
1034 | -site=* | --site=* | --sit=*) |
---|
1035 | site=$ac_optarg ;; |
---|
1036 | |
---|
1037 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1038 | ac_prev=srcdir ;; |
---|
1039 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1040 | srcdir=$ac_optarg ;; |
---|
1041 | |
---|
1042 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1043 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1044 | ac_prev=sysconfdir ;; |
---|
1045 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1046 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1047 | sysconfdir=$ac_optarg ;; |
---|
1048 | |
---|
1049 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1050 | ac_prev=target_alias ;; |
---|
1051 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1052 | target_alias=$ac_optarg ;; |
---|
1053 | |
---|
1054 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1055 | verbose=yes ;; |
---|
1056 | |
---|
1057 | -version | --version | --versio | --versi | --vers | -V) |
---|
1058 | ac_init_version=: ;; |
---|
1059 | |
---|
1060 | -with-* | --with-*) |
---|
1061 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1062 | # Reject names that are not valid shell variable names. |
---|
1063 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1064 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1065 | ac_useropt_orig=$ac_useropt |
---|
1066 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1067 | case $ac_user_opts in |
---|
1068 | *" |
---|
1069 | "with_$ac_useropt" |
---|
1070 | "*) ;; |
---|
1071 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1072 | ac_unrecognized_sep=', ';; |
---|
1073 | esac |
---|
1074 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1075 | |
---|
1076 | -without-* | --without-*) |
---|
1077 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1078 | # Reject names that are not valid shell variable names. |
---|
1079 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1080 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1081 | ac_useropt_orig=$ac_useropt |
---|
1082 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1083 | case $ac_user_opts in |
---|
1084 | *" |
---|
1085 | "with_$ac_useropt" |
---|
1086 | "*) ;; |
---|
1087 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1088 | ac_unrecognized_sep=', ';; |
---|
1089 | esac |
---|
1090 | eval with_$ac_useropt=no ;; |
---|
1091 | |
---|
1092 | --x) |
---|
1093 | # Obsolete; use --with-x. |
---|
1094 | with_x=yes ;; |
---|
1095 | |
---|
1096 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1097 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1098 | ac_prev=x_includes ;; |
---|
1099 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1100 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1101 | x_includes=$ac_optarg ;; |
---|
1102 | |
---|
1103 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1104 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1105 | ac_prev=x_libraries ;; |
---|
1106 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1107 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1108 | x_libraries=$ac_optarg ;; |
---|
1109 | |
---|
1110 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1111 | Try \`$0 --help' for more information" |
---|
1112 | ;; |
---|
1113 | |
---|
1114 | *=*) |
---|
1115 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1116 | # Reject names that are not valid shell variable names. |
---|
1117 | case $ac_envvar in #( |
---|
1118 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1119 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1120 | esac |
---|
1121 | eval $ac_envvar=\$ac_optarg |
---|
1122 | export $ac_envvar ;; |
---|
1123 | |
---|
1124 | *) |
---|
1125 | # FIXME: should be removed in autoconf 3.0. |
---|
1126 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1127 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1128 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1129 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1130 | ;; |
---|
1131 | |
---|
1132 | esac |
---|
1133 | done |
---|
1134 | |
---|
1135 | if test -n "$ac_prev"; then |
---|
1136 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1137 | as_fn_error $? "missing argument to $ac_option" |
---|
1138 | fi |
---|
1139 | |
---|
1140 | if test -n "$ac_unrecognized_opts"; then |
---|
1141 | case $enable_option_checking in |
---|
1142 | no) ;; |
---|
1143 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1144 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1145 | esac |
---|
1146 | fi |
---|
1147 | |
---|
1148 | # Check all directory arguments for consistency. |
---|
1149 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1150 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1151 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1152 | libdir localedir mandir |
---|
1153 | do |
---|
1154 | eval ac_val=\$$ac_var |
---|
1155 | # Remove trailing slashes. |
---|
1156 | case $ac_val in |
---|
1157 | */ ) |
---|
1158 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1159 | eval $ac_var=\$ac_val;; |
---|
1160 | esac |
---|
1161 | # Be sure to have absolute directory names. |
---|
1162 | case $ac_val in |
---|
1163 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1164 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1165 | esac |
---|
1166 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1167 | done |
---|
1168 | |
---|
1169 | # There might be people who depend on the old broken behavior: `$host' |
---|
1170 | # used to hold the argument of --host etc. |
---|
1171 | # FIXME: To remove some day. |
---|
1172 | build=$build_alias |
---|
1173 | host=$host_alias |
---|
1174 | target=$target_alias |
---|
1175 | |
---|
1176 | # FIXME: To remove some day. |
---|
1177 | if test "x$host_alias" != x; then |
---|
1178 | if test "x$build_alias" = x; then |
---|
1179 | cross_compiling=maybe |
---|
1180 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
---|
1181 | If a cross compiler is detected then cross compile mode will be used" >&2 |
---|
1182 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1183 | cross_compiling=yes |
---|
1184 | fi |
---|
1185 | fi |
---|
1186 | |
---|
1187 | ac_tool_prefix= |
---|
1188 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1189 | |
---|
1190 | test "$silent" = yes && exec 6>/dev/null |
---|
1191 | |
---|
1192 | |
---|
1193 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1194 | ac_ls_di=`ls -di .` && |
---|
1195 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1196 | as_fn_error $? "working directory cannot be determined" |
---|
1197 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1198 | as_fn_error $? "pwd does not report name of working directory" |
---|
1199 | |
---|
1200 | |
---|
1201 | # Find the source files, if location was not specified. |
---|
1202 | if test -z "$srcdir"; then |
---|
1203 | ac_srcdir_defaulted=yes |
---|
1204 | # Try the directory containing this script, then the parent directory. |
---|
1205 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1206 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1207 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1208 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1209 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1210 | $as_echo X"$as_myself" | |
---|
1211 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1212 | s//\1/ |
---|
1213 | q |
---|
1214 | } |
---|
1215 | /^X\(\/\/\)[^/].*/{ |
---|
1216 | s//\1/ |
---|
1217 | q |
---|
1218 | } |
---|
1219 | /^X\(\/\/\)$/{ |
---|
1220 | s//\1/ |
---|
1221 | q |
---|
1222 | } |
---|
1223 | /^X\(\/\).*/{ |
---|
1224 | s//\1/ |
---|
1225 | q |
---|
1226 | } |
---|
1227 | s/.*/./; q'` |
---|
1228 | srcdir=$ac_confdir |
---|
1229 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1230 | srcdir=.. |
---|
1231 | fi |
---|
1232 | else |
---|
1233 | ac_srcdir_defaulted=no |
---|
1234 | fi |
---|
1235 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1236 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1237 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1238 | fi |
---|
1239 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1240 | ac_abs_confdir=`( |
---|
1241 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1242 | pwd)` |
---|
1243 | # When building in place, set srcdir=. |
---|
1244 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1245 | srcdir=. |
---|
1246 | fi |
---|
1247 | # Remove unnecessary trailing slashes from srcdir. |
---|
1248 | # Double slashes in file names in object file debugging info |
---|
1249 | # mess up M-x gdb in Emacs. |
---|
1250 | case $srcdir in |
---|
1251 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1252 | esac |
---|
1253 | for ac_var in $ac_precious_vars; do |
---|
1254 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1255 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1256 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1257 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1258 | done |
---|
1259 | |
---|
1260 | # |
---|
1261 | # Report the --help message. |
---|
1262 | # |
---|
1263 | if test "$ac_init_help" = "long"; then |
---|
1264 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1265 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1266 | cat <<_ACEOF |
---|
1267 | \`configure' configures cfa-cc 1.0.0 to adapt to many kinds of systems. |
---|
1268 | |
---|
1269 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1270 | |
---|
1271 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1272 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1273 | |
---|
1274 | Defaults for the options are specified in brackets. |
---|
1275 | |
---|
1276 | Configuration: |
---|
1277 | -h, --help display this help and exit |
---|
1278 | --help=short display options specific to this package |
---|
1279 | --help=recursive display the short help of all the included packages |
---|
1280 | -V, --version display version information and exit |
---|
1281 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1282 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1283 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1284 | -n, --no-create do not create output files |
---|
1285 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1286 | |
---|
1287 | Installation directories: |
---|
1288 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1289 | [$ac_default_prefix] |
---|
1290 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1291 | [PREFIX] |
---|
1292 | |
---|
1293 | By default, \`make install' will install all the files in |
---|
1294 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1295 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1296 | for instance \`--prefix=\$HOME'. |
---|
1297 | |
---|
1298 | For better control, use the options below. |
---|
1299 | |
---|
1300 | Fine tuning of the installation directories: |
---|
1301 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1302 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1303 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1304 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1305 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1306 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1307 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1308 | --includedir=DIR C header files [PREFIX/include] |
---|
1309 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1310 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1311 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1312 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1313 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1314 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1315 | --docdir=DIR documentation root [DATAROOTDIR/doc/cfa-cc] |
---|
1316 | --htmldir=DIR html documentation [DOCDIR] |
---|
1317 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1318 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1319 | --psdir=DIR ps documentation [DOCDIR] |
---|
1320 | _ACEOF |
---|
1321 | |
---|
1322 | cat <<\_ACEOF |
---|
1323 | |
---|
1324 | Program names: |
---|
1325 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1326 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1327 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1328 | _ACEOF |
---|
1329 | fi |
---|
1330 | |
---|
1331 | if test -n "$ac_init_help"; then |
---|
1332 | case $ac_init_help in |
---|
1333 | short | recursive ) echo "Configuration of cfa-cc 1.0.0:";; |
---|
1334 | esac |
---|
1335 | cat <<\_ACEOF |
---|
1336 | |
---|
1337 | Optional Features: |
---|
1338 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1339 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1340 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1341 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
1342 | (and sometimes confusing) to the casual installer |
---|
1343 | --disable-dependency-tracking speeds up one-time build |
---|
1344 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1345 | |
---|
1346 | Optional Packages: |
---|
1347 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1348 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1349 | --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible) |
---|
1350 | |
---|
1351 | Some influential environment variables: |
---|
1352 | CXX C++ compiler command |
---|
1353 | CXXFLAGS C++ compiler flags |
---|
1354 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1355 | nonstandard directory <lib dir> |
---|
1356 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1357 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1358 | you have headers in a nonstandard directory <include dir> |
---|
1359 | CC C compiler command |
---|
1360 | CFLAGS C compiler flags |
---|
1361 | CPP C preprocessor |
---|
1362 | |
---|
1363 | Use these variables to override the choices made by `configure' or to help |
---|
1364 | it to find libraries and programs with nonstandard names/locations. |
---|
1365 | |
---|
1366 | Report bugs to <cforall@plg.uwaterloo.ca>. |
---|
1367 | _ACEOF |
---|
1368 | ac_status=$? |
---|
1369 | fi |
---|
1370 | |
---|
1371 | if test "$ac_init_help" = "recursive"; then |
---|
1372 | # If there are subdirs, report their specific --help. |
---|
1373 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1374 | test -d "$ac_dir" || |
---|
1375 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1376 | continue |
---|
1377 | ac_builddir=. |
---|
1378 | |
---|
1379 | case "$ac_dir" in |
---|
1380 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1381 | *) |
---|
1382 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1383 | # A ".." for each directory in $ac_dir_suffix. |
---|
1384 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1385 | case $ac_top_builddir_sub in |
---|
1386 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1387 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1388 | esac ;; |
---|
1389 | esac |
---|
1390 | ac_abs_top_builddir=$ac_pwd |
---|
1391 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1392 | # for backward compatibility: |
---|
1393 | ac_top_builddir=$ac_top_build_prefix |
---|
1394 | |
---|
1395 | case $srcdir in |
---|
1396 | .) # We are building in place. |
---|
1397 | ac_srcdir=. |
---|
1398 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1399 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1400 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1401 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1402 | ac_top_srcdir=$srcdir |
---|
1403 | ac_abs_top_srcdir=$srcdir ;; |
---|
1404 | *) # Relative name. |
---|
1405 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1406 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1407 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1408 | esac |
---|
1409 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1410 | |
---|
1411 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1412 | # Check for guested configure. |
---|
1413 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1414 | echo && |
---|
1415 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1416 | elif test -f "$ac_srcdir/configure"; then |
---|
1417 | echo && |
---|
1418 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1419 | else |
---|
1420 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1421 | fi || ac_status=$? |
---|
1422 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1423 | done |
---|
1424 | fi |
---|
1425 | |
---|
1426 | test -n "$ac_init_help" && exit $ac_status |
---|
1427 | if $ac_init_version; then |
---|
1428 | cat <<\_ACEOF |
---|
1429 | cfa-cc configure 1.0.0 |
---|
1430 | generated by GNU Autoconf 2.68 |
---|
1431 | |
---|
1432 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
1433 | This configure script is free software; the Free Software Foundation |
---|
1434 | gives unlimited permission to copy, distribute and modify it. |
---|
1435 | _ACEOF |
---|
1436 | exit |
---|
1437 | fi |
---|
1438 | |
---|
1439 | ## ------------------------ ## |
---|
1440 | ## Autoconf initialization. ## |
---|
1441 | ## ------------------------ ## |
---|
1442 | |
---|
1443 | # ac_fn_cxx_try_compile LINENO |
---|
1444 | # ---------------------------- |
---|
1445 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1446 | ac_fn_cxx_try_compile () |
---|
1447 | { |
---|
1448 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1449 | rm -f conftest.$ac_objext |
---|
1450 | if { { ac_try="$ac_compile" |
---|
1451 | case "(($ac_try" in |
---|
1452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1453 | *) ac_try_echo=$ac_try;; |
---|
1454 | esac |
---|
1455 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1456 | $as_echo "$ac_try_echo"; } >&5 |
---|
1457 | (eval "$ac_compile") 2>conftest.err |
---|
1458 | ac_status=$? |
---|
1459 | if test -s conftest.err; then |
---|
1460 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1461 | cat conftest.er1 >&5 |
---|
1462 | mv -f conftest.er1 conftest.err |
---|
1463 | fi |
---|
1464 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1465 | test $ac_status = 0; } && { |
---|
1466 | test -z "$ac_cxx_werror_flag" || |
---|
1467 | test ! -s conftest.err |
---|
1468 | } && test -s conftest.$ac_objext; then : |
---|
1469 | ac_retval=0 |
---|
1470 | else |
---|
1471 | $as_echo "$as_me: failed program was:" >&5 |
---|
1472 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1473 | |
---|
1474 | ac_retval=1 |
---|
1475 | fi |
---|
1476 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1477 | as_fn_set_status $ac_retval |
---|
1478 | |
---|
1479 | } # ac_fn_cxx_try_compile |
---|
1480 | |
---|
1481 | # ac_fn_c_try_compile LINENO |
---|
1482 | # -------------------------- |
---|
1483 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1484 | ac_fn_c_try_compile () |
---|
1485 | { |
---|
1486 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1487 | rm -f conftest.$ac_objext |
---|
1488 | if { { ac_try="$ac_compile" |
---|
1489 | case "(($ac_try" in |
---|
1490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1491 | *) ac_try_echo=$ac_try;; |
---|
1492 | esac |
---|
1493 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1494 | $as_echo "$ac_try_echo"; } >&5 |
---|
1495 | (eval "$ac_compile") 2>conftest.err |
---|
1496 | ac_status=$? |
---|
1497 | if test -s conftest.err; then |
---|
1498 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1499 | cat conftest.er1 >&5 |
---|
1500 | mv -f conftest.er1 conftest.err |
---|
1501 | fi |
---|
1502 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1503 | test $ac_status = 0; } && { |
---|
1504 | test -z "$ac_c_werror_flag" || |
---|
1505 | test ! -s conftest.err |
---|
1506 | } && test -s conftest.$ac_objext; then : |
---|
1507 | ac_retval=0 |
---|
1508 | else |
---|
1509 | $as_echo "$as_me: failed program was:" >&5 |
---|
1510 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1511 | |
---|
1512 | ac_retval=1 |
---|
1513 | fi |
---|
1514 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1515 | as_fn_set_status $ac_retval |
---|
1516 | |
---|
1517 | } # ac_fn_c_try_compile |
---|
1518 | |
---|
1519 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
---|
1520 | # ------------------------------------------- |
---|
1521 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
---|
1522 | # variable VAR accordingly. |
---|
1523 | ac_fn_c_check_type () |
---|
1524 | { |
---|
1525 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1527 | $as_echo_n "checking for $2... " >&6; } |
---|
1528 | if eval \${$3+:} false; then : |
---|
1529 | $as_echo_n "(cached) " >&6 |
---|
1530 | else |
---|
1531 | eval "$3=no" |
---|
1532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1533 | /* end confdefs.h. */ |
---|
1534 | $4 |
---|
1535 | int |
---|
1536 | main () |
---|
1537 | { |
---|
1538 | if (sizeof ($2)) |
---|
1539 | return 0; |
---|
1540 | ; |
---|
1541 | return 0; |
---|
1542 | } |
---|
1543 | _ACEOF |
---|
1544 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1546 | /* end confdefs.h. */ |
---|
1547 | $4 |
---|
1548 | int |
---|
1549 | main () |
---|
1550 | { |
---|
1551 | if (sizeof (($2))) |
---|
1552 | return 0; |
---|
1553 | ; |
---|
1554 | return 0; |
---|
1555 | } |
---|
1556 | _ACEOF |
---|
1557 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1558 | |
---|
1559 | else |
---|
1560 | eval "$3=yes" |
---|
1561 | fi |
---|
1562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1563 | fi |
---|
1564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1565 | fi |
---|
1566 | eval ac_res=\$$3 |
---|
1567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1568 | $as_echo "$ac_res" >&6; } |
---|
1569 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1570 | |
---|
1571 | } # ac_fn_c_check_type |
---|
1572 | |
---|
1573 | # ac_fn_c_try_cpp LINENO |
---|
1574 | # ---------------------- |
---|
1575 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1576 | ac_fn_c_try_cpp () |
---|
1577 | { |
---|
1578 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1579 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1580 | case "(($ac_try" in |
---|
1581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1582 | *) ac_try_echo=$ac_try;; |
---|
1583 | esac |
---|
1584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1585 | $as_echo "$ac_try_echo"; } >&5 |
---|
1586 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1587 | ac_status=$? |
---|
1588 | if test -s conftest.err; then |
---|
1589 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1590 | cat conftest.er1 >&5 |
---|
1591 | mv -f conftest.er1 conftest.err |
---|
1592 | fi |
---|
1593 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1594 | test $ac_status = 0; } > conftest.i && { |
---|
1595 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1596 | test ! -s conftest.err |
---|
1597 | }; then : |
---|
1598 | ac_retval=0 |
---|
1599 | else |
---|
1600 | $as_echo "$as_me: failed program was:" >&5 |
---|
1601 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1602 | |
---|
1603 | ac_retval=1 |
---|
1604 | fi |
---|
1605 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1606 | as_fn_set_status $ac_retval |
---|
1607 | |
---|
1608 | } # ac_fn_c_try_cpp |
---|
1609 | |
---|
1610 | # ac_fn_c_try_run LINENO |
---|
1611 | # ---------------------- |
---|
1612 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1613 | # that executables *can* be run. |
---|
1614 | ac_fn_c_try_run () |
---|
1615 | { |
---|
1616 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1617 | if { { ac_try="$ac_link" |
---|
1618 | case "(($ac_try" in |
---|
1619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1620 | *) ac_try_echo=$ac_try;; |
---|
1621 | esac |
---|
1622 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1623 | $as_echo "$ac_try_echo"; } >&5 |
---|
1624 | (eval "$ac_link") 2>&5 |
---|
1625 | ac_status=$? |
---|
1626 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1627 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1628 | { { case "(($ac_try" in |
---|
1629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1630 | *) ac_try_echo=$ac_try;; |
---|
1631 | esac |
---|
1632 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1633 | $as_echo "$ac_try_echo"; } >&5 |
---|
1634 | (eval "$ac_try") 2>&5 |
---|
1635 | ac_status=$? |
---|
1636 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1637 | test $ac_status = 0; }; }; then : |
---|
1638 | ac_retval=0 |
---|
1639 | else |
---|
1640 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1641 | $as_echo "$as_me: failed program was:" >&5 |
---|
1642 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1643 | |
---|
1644 | ac_retval=$ac_status |
---|
1645 | fi |
---|
1646 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1647 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1648 | as_fn_set_status $ac_retval |
---|
1649 | |
---|
1650 | } # ac_fn_c_try_run |
---|
1651 | |
---|
1652 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1653 | # ------------------------------------------------------- |
---|
1654 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1655 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1656 | ac_fn_c_check_header_compile () |
---|
1657 | { |
---|
1658 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1660 | $as_echo_n "checking for $2... " >&6; } |
---|
1661 | if eval \${$3+:} false; then : |
---|
1662 | $as_echo_n "(cached) " >&6 |
---|
1663 | else |
---|
1664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1665 | /* end confdefs.h. */ |
---|
1666 | $4 |
---|
1667 | #include <$2> |
---|
1668 | _ACEOF |
---|
1669 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1670 | eval "$3=yes" |
---|
1671 | else |
---|
1672 | eval "$3=no" |
---|
1673 | fi |
---|
1674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1675 | fi |
---|
1676 | eval ac_res=\$$3 |
---|
1677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1678 | $as_echo "$ac_res" >&6; } |
---|
1679 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1680 | |
---|
1681 | } # ac_fn_c_check_header_compile |
---|
1682 | |
---|
1683 | # ac_fn_c_try_link LINENO |
---|
1684 | # ----------------------- |
---|
1685 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1686 | ac_fn_c_try_link () |
---|
1687 | { |
---|
1688 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1689 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1690 | if { { ac_try="$ac_link" |
---|
1691 | case "(($ac_try" in |
---|
1692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1693 | *) ac_try_echo=$ac_try;; |
---|
1694 | esac |
---|
1695 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1696 | $as_echo "$ac_try_echo"; } >&5 |
---|
1697 | (eval "$ac_link") 2>conftest.err |
---|
1698 | ac_status=$? |
---|
1699 | if test -s conftest.err; then |
---|
1700 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1701 | cat conftest.er1 >&5 |
---|
1702 | mv -f conftest.er1 conftest.err |
---|
1703 | fi |
---|
1704 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1705 | test $ac_status = 0; } && { |
---|
1706 | test -z "$ac_c_werror_flag" || |
---|
1707 | test ! -s conftest.err |
---|
1708 | } && test -s conftest$ac_exeext && { |
---|
1709 | test "$cross_compiling" = yes || |
---|
1710 | $as_test_x conftest$ac_exeext |
---|
1711 | }; then : |
---|
1712 | ac_retval=0 |
---|
1713 | else |
---|
1714 | $as_echo "$as_me: failed program was:" >&5 |
---|
1715 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1716 | |
---|
1717 | ac_retval=1 |
---|
1718 | fi |
---|
1719 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1720 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1721 | # interfere with the next link command; also delete a directory that is |
---|
1722 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1723 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1724 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1725 | as_fn_set_status $ac_retval |
---|
1726 | |
---|
1727 | } # ac_fn_c_try_link |
---|
1728 | |
---|
1729 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1730 | # ---------------------------------- |
---|
1731 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1732 | ac_fn_c_check_func () |
---|
1733 | { |
---|
1734 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1736 | $as_echo_n "checking for $2... " >&6; } |
---|
1737 | if eval \${$3+:} false; then : |
---|
1738 | $as_echo_n "(cached) " >&6 |
---|
1739 | else |
---|
1740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1741 | /* end confdefs.h. */ |
---|
1742 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1743 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1744 | #define $2 innocuous_$2 |
---|
1745 | |
---|
1746 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1747 | which can conflict with char $2 (); below. |
---|
1748 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1749 | <limits.h> exists even on freestanding compilers. */ |
---|
1750 | |
---|
1751 | #ifdef __STDC__ |
---|
1752 | # include <limits.h> |
---|
1753 | #else |
---|
1754 | # include <assert.h> |
---|
1755 | #endif |
---|
1756 | |
---|
1757 | #undef $2 |
---|
1758 | |
---|
1759 | /* Override any GCC internal prototype to avoid an error. |
---|
1760 | Use char because int might match the return type of a GCC |
---|
1761 | builtin and then its argument prototype would still apply. */ |
---|
1762 | #ifdef __cplusplus |
---|
1763 | extern "C" |
---|
1764 | #endif |
---|
1765 | char $2 (); |
---|
1766 | /* The GNU C library defines this for functions which it implements |
---|
1767 | to always fail with ENOSYS. Some functions are actually named |
---|
1768 | something starting with __ and the normal name is an alias. */ |
---|
1769 | #if defined __stub_$2 || defined __stub___$2 |
---|
1770 | choke me |
---|
1771 | #endif |
---|
1772 | |
---|
1773 | int |
---|
1774 | main () |
---|
1775 | { |
---|
1776 | return $2 (); |
---|
1777 | ; |
---|
1778 | return 0; |
---|
1779 | } |
---|
1780 | _ACEOF |
---|
1781 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1782 | eval "$3=yes" |
---|
1783 | else |
---|
1784 | eval "$3=no" |
---|
1785 | fi |
---|
1786 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1787 | conftest$ac_exeext conftest.$ac_ext |
---|
1788 | fi |
---|
1789 | eval ac_res=\$$3 |
---|
1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1791 | $as_echo "$ac_res" >&6; } |
---|
1792 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1793 | |
---|
1794 | } # ac_fn_c_check_func |
---|
1795 | |
---|
1796 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1797 | # ------------------------------------------------------- |
---|
1798 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1799 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1800 | # accordingly. |
---|
1801 | ac_fn_c_check_header_mongrel () |
---|
1802 | { |
---|
1803 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1804 | if eval \${$3+:} false; then : |
---|
1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1806 | $as_echo_n "checking for $2... " >&6; } |
---|
1807 | if eval \${$3+:} false; then : |
---|
1808 | $as_echo_n "(cached) " >&6 |
---|
1809 | fi |
---|
1810 | eval ac_res=\$$3 |
---|
1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1812 | $as_echo "$ac_res" >&6; } |
---|
1813 | else |
---|
1814 | # Is the header compilable? |
---|
1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1816 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1818 | /* end confdefs.h. */ |
---|
1819 | $4 |
---|
1820 | #include <$2> |
---|
1821 | _ACEOF |
---|
1822 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1823 | ac_header_compiler=yes |
---|
1824 | else |
---|
1825 | ac_header_compiler=no |
---|
1826 | fi |
---|
1827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1829 | $as_echo "$ac_header_compiler" >&6; } |
---|
1830 | |
---|
1831 | # Is the header present? |
---|
1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1833 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1835 | /* end confdefs.h. */ |
---|
1836 | #include <$2> |
---|
1837 | _ACEOF |
---|
1838 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
1839 | ac_header_preproc=yes |
---|
1840 | else |
---|
1841 | ac_header_preproc=no |
---|
1842 | fi |
---|
1843 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1845 | $as_echo "$ac_header_preproc" >&6; } |
---|
1846 | |
---|
1847 | # So? What about this header? |
---|
1848 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
1849 | yes:no: ) |
---|
1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1851 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1853 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1854 | ;; |
---|
1855 | no:yes:* ) |
---|
1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1857 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1859 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1860 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1861 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1863 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1865 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1866 | ( $as_echo "## --------------------------------------- ## |
---|
1867 | ## Report this to cforall@plg.uwaterloo.ca ## |
---|
1868 | ## --------------------------------------- ##" |
---|
1869 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1870 | ;; |
---|
1871 | esac |
---|
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1873 | $as_echo_n "checking for $2... " >&6; } |
---|
1874 | if eval \${$3+:} false; then : |
---|
1875 | $as_echo_n "(cached) " >&6 |
---|
1876 | else |
---|
1877 | eval "$3=\$ac_header_compiler" |
---|
1878 | fi |
---|
1879 | eval ac_res=\$$3 |
---|
1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1881 | $as_echo "$ac_res" >&6; } |
---|
1882 | fi |
---|
1883 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1884 | |
---|
1885 | } # ac_fn_c_check_header_mongrel |
---|
1886 | |
---|
1887 | # ac_fn_c_find_intX_t LINENO BITS VAR |
---|
1888 | # ----------------------------------- |
---|
1889 | # Finds a signed integer type with width BITS, setting cache variable VAR |
---|
1890 | # accordingly. |
---|
1891 | ac_fn_c_find_intX_t () |
---|
1892 | { |
---|
1893 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
---|
1895 | $as_echo_n "checking for int$2_t... " >&6; } |
---|
1896 | if eval \${$3+:} false; then : |
---|
1897 | $as_echo_n "(cached) " >&6 |
---|
1898 | else |
---|
1899 | eval "$3=no" |
---|
1900 | # Order is important - never check a type that is potentially smaller |
---|
1901 | # than half of the expected target width. |
---|
1902 | for ac_type in int$2_t 'int' 'long int' \ |
---|
1903 | 'long long int' 'short int' 'signed char'; do |
---|
1904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1905 | /* end confdefs.h. */ |
---|
1906 | $ac_includes_default |
---|
1907 | enum { N = $2 / 2 - 1 }; |
---|
1908 | int |
---|
1909 | main () |
---|
1910 | { |
---|
1911 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
---|
1912 | test_array [0] = 0 |
---|
1913 | |
---|
1914 | ; |
---|
1915 | return 0; |
---|
1916 | } |
---|
1917 | _ACEOF |
---|
1918 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1920 | /* end confdefs.h. */ |
---|
1921 | $ac_includes_default |
---|
1922 | enum { N = $2 / 2 - 1 }; |
---|
1923 | int |
---|
1924 | main () |
---|
1925 | { |
---|
1926 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
---|
1927 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
---|
1928 | test_array [0] = 0 |
---|
1929 | |
---|
1930 | ; |
---|
1931 | return 0; |
---|
1932 | } |
---|
1933 | _ACEOF |
---|
1934 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1935 | |
---|
1936 | else |
---|
1937 | case $ac_type in #( |
---|
1938 | int$2_t) : |
---|
1939 | eval "$3=yes" ;; #( |
---|
1940 | *) : |
---|
1941 | eval "$3=\$ac_type" ;; |
---|
1942 | esac |
---|
1943 | fi |
---|
1944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1945 | fi |
---|
1946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1947 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
1948 | |
---|
1949 | else |
---|
1950 | break |
---|
1951 | fi |
---|
1952 | done |
---|
1953 | fi |
---|
1954 | eval ac_res=\$$3 |
---|
1955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1956 | $as_echo "$ac_res" >&6; } |
---|
1957 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1958 | |
---|
1959 | } # ac_fn_c_find_intX_t |
---|
1960 | |
---|
1961 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
---|
1962 | # ------------------------------------ |
---|
1963 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
---|
1964 | # accordingly. |
---|
1965 | ac_fn_c_find_uintX_t () |
---|
1966 | { |
---|
1967 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
---|
1969 | $as_echo_n "checking for uint$2_t... " >&6; } |
---|
1970 | if eval \${$3+:} false; then : |
---|
1971 | $as_echo_n "(cached) " >&6 |
---|
1972 | else |
---|
1973 | eval "$3=no" |
---|
1974 | # Order is important - never check a type that is potentially smaller |
---|
1975 | # than half of the expected target width. |
---|
1976 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
---|
1977 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
---|
1978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1979 | /* end confdefs.h. */ |
---|
1980 | $ac_includes_default |
---|
1981 | int |
---|
1982 | main () |
---|
1983 | { |
---|
1984 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
---|
1985 | test_array [0] = 0 |
---|
1986 | |
---|
1987 | ; |
---|
1988 | return 0; |
---|
1989 | } |
---|
1990 | _ACEOF |
---|
1991 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1992 | case $ac_type in #( |
---|
1993 | uint$2_t) : |
---|
1994 | eval "$3=yes" ;; #( |
---|
1995 | *) : |
---|
1996 | eval "$3=\$ac_type" ;; |
---|
1997 | esac |
---|
1998 | fi |
---|
1999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2000 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
2001 | |
---|
2002 | else |
---|
2003 | break |
---|
2004 | fi |
---|
2005 | done |
---|
2006 | fi |
---|
2007 | eval ac_res=\$$3 |
---|
2008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2009 | $as_echo "$ac_res" >&6; } |
---|
2010 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2011 | |
---|
2012 | } # ac_fn_c_find_uintX_t |
---|
2013 | cat >config.log <<_ACEOF |
---|
2014 | This file contains any messages produced by compilers while |
---|
2015 | running configure, to aid debugging if configure makes a mistake. |
---|
2016 | |
---|
2017 | It was created by cfa-cc $as_me 1.0.0, which was |
---|
2018 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
2019 | |
---|
2020 | $ $0 $@ |
---|
2021 | |
---|
2022 | _ACEOF |
---|
2023 | exec 5>>config.log |
---|
2024 | { |
---|
2025 | cat <<_ASUNAME |
---|
2026 | ## --------- ## |
---|
2027 | ## Platform. ## |
---|
2028 | ## --------- ## |
---|
2029 | |
---|
2030 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2031 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2032 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2033 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2034 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2035 | |
---|
2036 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2037 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2038 | |
---|
2039 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2040 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2041 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2042 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2043 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2044 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2045 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2046 | |
---|
2047 | _ASUNAME |
---|
2048 | |
---|
2049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2050 | for as_dir in $PATH |
---|
2051 | do |
---|
2052 | IFS=$as_save_IFS |
---|
2053 | test -z "$as_dir" && as_dir=. |
---|
2054 | $as_echo "PATH: $as_dir" |
---|
2055 | done |
---|
2056 | IFS=$as_save_IFS |
---|
2057 | |
---|
2058 | } >&5 |
---|
2059 | |
---|
2060 | cat >&5 <<_ACEOF |
---|
2061 | |
---|
2062 | |
---|
2063 | ## ----------- ## |
---|
2064 | ## Core tests. ## |
---|
2065 | ## ----------- ## |
---|
2066 | |
---|
2067 | _ACEOF |
---|
2068 | |
---|
2069 | |
---|
2070 | # Keep a trace of the command line. |
---|
2071 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2072 | # Strip out --silent because we don't want to record it for future runs. |
---|
2073 | # Also quote any args containing shell meta-characters. |
---|
2074 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2075 | ac_configure_args= |
---|
2076 | ac_configure_args0= |
---|
2077 | ac_configure_args1= |
---|
2078 | ac_must_keep_next=false |
---|
2079 | for ac_pass in 1 2 |
---|
2080 | do |
---|
2081 | for ac_arg |
---|
2082 | do |
---|
2083 | case $ac_arg in |
---|
2084 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2085 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2086 | | -silent | --silent | --silen | --sile | --sil) |
---|
2087 | continue ;; |
---|
2088 | *\'*) |
---|
2089 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2090 | esac |
---|
2091 | case $ac_pass in |
---|
2092 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2093 | 2) |
---|
2094 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2095 | if test $ac_must_keep_next = true; then |
---|
2096 | ac_must_keep_next=false # Got value, back to normal. |
---|
2097 | else |
---|
2098 | case $ac_arg in |
---|
2099 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2100 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2101 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2102 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2103 | case "$ac_configure_args0 " in |
---|
2104 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2105 | esac |
---|
2106 | ;; |
---|
2107 | -* ) ac_must_keep_next=true ;; |
---|
2108 | esac |
---|
2109 | fi |
---|
2110 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2111 | ;; |
---|
2112 | esac |
---|
2113 | done |
---|
2114 | done |
---|
2115 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2116 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2117 | |
---|
2118 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2119 | # config.log. We remove comments because anyway the quotes in there |
---|
2120 | # would cause problems or look ugly. |
---|
2121 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2122 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2123 | trap 'exit_status=$? |
---|
2124 | # Save into config.log some information that might help in debugging. |
---|
2125 | { |
---|
2126 | echo |
---|
2127 | |
---|
2128 | $as_echo "## ---------------- ## |
---|
2129 | ## Cache variables. ## |
---|
2130 | ## ---------------- ##" |
---|
2131 | echo |
---|
2132 | # The following way of writing the cache mishandles newlines in values, |
---|
2133 | ( |
---|
2134 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2135 | eval ac_val=\$$ac_var |
---|
2136 | case $ac_val in #( |
---|
2137 | *${as_nl}*) |
---|
2138 | case $ac_var in #( |
---|
2139 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2140 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2141 | esac |
---|
2142 | case $ac_var in #( |
---|
2143 | _ | IFS | as_nl) ;; #( |
---|
2144 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2145 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2146 | esac ;; |
---|
2147 | esac |
---|
2148 | done |
---|
2149 | (set) 2>&1 | |
---|
2150 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2151 | *${as_nl}ac_space=\ *) |
---|
2152 | sed -n \ |
---|
2153 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2154 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2155 | ;; #( |
---|
2156 | *) |
---|
2157 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2158 | ;; |
---|
2159 | esac | |
---|
2160 | sort |
---|
2161 | ) |
---|
2162 | echo |
---|
2163 | |
---|
2164 | $as_echo "## ----------------- ## |
---|
2165 | ## Output variables. ## |
---|
2166 | ## ----------------- ##" |
---|
2167 | echo |
---|
2168 | for ac_var in $ac_subst_vars |
---|
2169 | do |
---|
2170 | eval ac_val=\$$ac_var |
---|
2171 | case $ac_val in |
---|
2172 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2173 | esac |
---|
2174 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2175 | done | sort |
---|
2176 | echo |
---|
2177 | |
---|
2178 | if test -n "$ac_subst_files"; then |
---|
2179 | $as_echo "## ------------------- ## |
---|
2180 | ## File substitutions. ## |
---|
2181 | ## ------------------- ##" |
---|
2182 | echo |
---|
2183 | for ac_var in $ac_subst_files |
---|
2184 | do |
---|
2185 | eval ac_val=\$$ac_var |
---|
2186 | case $ac_val in |
---|
2187 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2188 | esac |
---|
2189 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2190 | done | sort |
---|
2191 | echo |
---|
2192 | fi |
---|
2193 | |
---|
2194 | if test -s confdefs.h; then |
---|
2195 | $as_echo "## ----------- ## |
---|
2196 | ## confdefs.h. ## |
---|
2197 | ## ----------- ##" |
---|
2198 | echo |
---|
2199 | cat confdefs.h |
---|
2200 | echo |
---|
2201 | fi |
---|
2202 | test "$ac_signal" != 0 && |
---|
2203 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2204 | $as_echo "$as_me: exit $exit_status" |
---|
2205 | } >&5 |
---|
2206 | rm -f core *.core core.conftest.* && |
---|
2207 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2208 | exit $exit_status |
---|
2209 | ' 0 |
---|
2210 | for ac_signal in 1 2 13 15; do |
---|
2211 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2212 | done |
---|
2213 | ac_signal=0 |
---|
2214 | |
---|
2215 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2216 | rm -f -r conftest* confdefs.h |
---|
2217 | |
---|
2218 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2219 | |
---|
2220 | # Predefined preprocessor variables. |
---|
2221 | |
---|
2222 | cat >>confdefs.h <<_ACEOF |
---|
2223 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2224 | _ACEOF |
---|
2225 | |
---|
2226 | cat >>confdefs.h <<_ACEOF |
---|
2227 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2228 | _ACEOF |
---|
2229 | |
---|
2230 | cat >>confdefs.h <<_ACEOF |
---|
2231 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2232 | _ACEOF |
---|
2233 | |
---|
2234 | cat >>confdefs.h <<_ACEOF |
---|
2235 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2236 | _ACEOF |
---|
2237 | |
---|
2238 | cat >>confdefs.h <<_ACEOF |
---|
2239 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2240 | _ACEOF |
---|
2241 | |
---|
2242 | cat >>confdefs.h <<_ACEOF |
---|
2243 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2244 | _ACEOF |
---|
2245 | |
---|
2246 | |
---|
2247 | # Let the site file select an alternate cache file if it wants to. |
---|
2248 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2249 | ac_site_file1=NONE |
---|
2250 | ac_site_file2=NONE |
---|
2251 | if test -n "$CONFIG_SITE"; then |
---|
2252 | # We do not want a PATH search for config.site. |
---|
2253 | case $CONFIG_SITE in #(( |
---|
2254 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2255 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2256 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2257 | esac |
---|
2258 | elif test "x$prefix" != xNONE; then |
---|
2259 | ac_site_file1=$prefix/share/config.site |
---|
2260 | ac_site_file2=$prefix/etc/config.site |
---|
2261 | else |
---|
2262 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2263 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2264 | fi |
---|
2265 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2266 | do |
---|
2267 | test "x$ac_site_file" = xNONE && continue |
---|
2268 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2270 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2271 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2272 | . "$ac_site_file" \ |
---|
2273 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2274 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2275 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2276 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2277 | fi |
---|
2278 | done |
---|
2279 | |
---|
2280 | if test -r "$cache_file"; then |
---|
2281 | # Some versions of bash will fail to source /dev/null (special files |
---|
2282 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2283 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2285 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2286 | case $cache_file in |
---|
2287 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2288 | *) . "./$cache_file";; |
---|
2289 | esac |
---|
2290 | fi |
---|
2291 | else |
---|
2292 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2293 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2294 | >$cache_file |
---|
2295 | fi |
---|
2296 | |
---|
2297 | # Check that the precious variables saved in the cache have kept the same |
---|
2298 | # value. |
---|
2299 | ac_cache_corrupted=false |
---|
2300 | for ac_var in $ac_precious_vars; do |
---|
2301 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2302 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2303 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2304 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2305 | case $ac_old_set,$ac_new_set in |
---|
2306 | set,) |
---|
2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2308 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2309 | ac_cache_corrupted=: ;; |
---|
2310 | ,set) |
---|
2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2312 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2313 | ac_cache_corrupted=: ;; |
---|
2314 | ,);; |
---|
2315 | *) |
---|
2316 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2317 | # differences in whitespace do not lead to failure. |
---|
2318 | ac_old_val_w=`echo x $ac_old_val` |
---|
2319 | ac_new_val_w=`echo x $ac_new_val` |
---|
2320 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2322 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2323 | ac_cache_corrupted=: |
---|
2324 | else |
---|
2325 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2326 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2327 | eval $ac_var=\$ac_old_val |
---|
2328 | fi |
---|
2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2330 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2331 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2332 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2333 | fi;; |
---|
2334 | esac |
---|
2335 | # Pass precious variables to config.status. |
---|
2336 | if test "$ac_new_set" = set; then |
---|
2337 | case $ac_new_val in |
---|
2338 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2339 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2340 | esac |
---|
2341 | case " $ac_configure_args " in |
---|
2342 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2343 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2344 | esac |
---|
2345 | fi |
---|
2346 | done |
---|
2347 | if $ac_cache_corrupted; then |
---|
2348 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2349 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2350 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2351 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2352 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2353 | fi |
---|
2354 | ## -------------------- ## |
---|
2355 | ## Main body of script. ## |
---|
2356 | ## -------------------- ## |
---|
2357 | |
---|
2358 | ac_ext=c |
---|
2359 | ac_cpp='$CPP $CPPFLAGS' |
---|
2360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2363 | |
---|
2364 | |
---|
2365 | #AM_INIT_AUTOMAKE([foreign]) # do not follow GNU standard |
---|
2366 | am__api_version='1.11' |
---|
2367 | |
---|
2368 | ac_aux_dir= |
---|
2369 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
---|
2370 | if test -f "$ac_dir/install-sh"; then |
---|
2371 | ac_aux_dir=$ac_dir |
---|
2372 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2373 | break |
---|
2374 | elif test -f "$ac_dir/install.sh"; then |
---|
2375 | ac_aux_dir=$ac_dir |
---|
2376 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2377 | break |
---|
2378 | elif test -f "$ac_dir/shtool"; then |
---|
2379 | ac_aux_dir=$ac_dir |
---|
2380 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2381 | break |
---|
2382 | fi |
---|
2383 | done |
---|
2384 | if test -z "$ac_aux_dir"; then |
---|
2385 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
---|
2386 | fi |
---|
2387 | |
---|
2388 | # These three variables are undocumented and unsupported, |
---|
2389 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2390 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2391 | # whose full name contains unusual characters. |
---|
2392 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2393 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2394 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2395 | |
---|
2396 | |
---|
2397 | # Find a good install program. We prefer a C program (faster), |
---|
2398 | # so one script is as good as another. But avoid the broken or |
---|
2399 | # incompatible versions: |
---|
2400 | # SysV /etc/install, /usr/sbin/install |
---|
2401 | # SunOS /usr/etc/install |
---|
2402 | # IRIX /sbin/install |
---|
2403 | # AIX /bin/install |
---|
2404 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2405 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2406 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2407 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2408 | # OS/2's system install, which has a completely different semantic |
---|
2409 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2410 | # Reject install programs that cannot install multiple files. |
---|
2411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2412 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2413 | if test -z "$INSTALL"; then |
---|
2414 | if ${ac_cv_path_install+:} false; then : |
---|
2415 | $as_echo_n "(cached) " >&6 |
---|
2416 | else |
---|
2417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2418 | for as_dir in $PATH |
---|
2419 | do |
---|
2420 | IFS=$as_save_IFS |
---|
2421 | test -z "$as_dir" && as_dir=. |
---|
2422 | # Account for people who put trailing slashes in PATH elements. |
---|
2423 | case $as_dir/ in #(( |
---|
2424 | ./ | .// | /[cC]/* | \ |
---|
2425 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2426 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2427 | /usr/ucb/* ) ;; |
---|
2428 | *) |
---|
2429 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2430 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2431 | # by default. |
---|
2432 | for ac_prog in ginstall scoinst install; do |
---|
2433 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2434 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
2435 | if test $ac_prog = install && |
---|
2436 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2437 | # AIX install. It has an incompatible calling convention. |
---|
2438 | : |
---|
2439 | elif test $ac_prog = install && |
---|
2440 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2441 | # program-specific install script used by HP pwplus--don't use. |
---|
2442 | : |
---|
2443 | else |
---|
2444 | rm -rf conftest.one conftest.two conftest.dir |
---|
2445 | echo one > conftest.one |
---|
2446 | echo two > conftest.two |
---|
2447 | mkdir conftest.dir |
---|
2448 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2449 | test -s conftest.one && test -s conftest.two && |
---|
2450 | test -s conftest.dir/conftest.one && |
---|
2451 | test -s conftest.dir/conftest.two |
---|
2452 | then |
---|
2453 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2454 | break 3 |
---|
2455 | fi |
---|
2456 | fi |
---|
2457 | fi |
---|
2458 | done |
---|
2459 | done |
---|
2460 | ;; |
---|
2461 | esac |
---|
2462 | |
---|
2463 | done |
---|
2464 | IFS=$as_save_IFS |
---|
2465 | |
---|
2466 | rm -rf conftest.one conftest.two conftest.dir |
---|
2467 | |
---|
2468 | fi |
---|
2469 | if test "${ac_cv_path_install+set}" = set; then |
---|
2470 | INSTALL=$ac_cv_path_install |
---|
2471 | else |
---|
2472 | # As a last resort, use the slow shell script. Don't cache a |
---|
2473 | # value for INSTALL within a source directory, because that will |
---|
2474 | # break other packages using the cache if that directory is |
---|
2475 | # removed, or if the value is a relative name. |
---|
2476 | INSTALL=$ac_install_sh |
---|
2477 | fi |
---|
2478 | fi |
---|
2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2480 | $as_echo "$INSTALL" >&6; } |
---|
2481 | |
---|
2482 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2483 | # It thinks the first close brace ends the variable substitution. |
---|
2484 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2485 | |
---|
2486 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2487 | |
---|
2488 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2489 | |
---|
2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
---|
2491 | $as_echo_n "checking whether build environment is sane... " >&6; } |
---|
2492 | # Just in case |
---|
2493 | sleep 1 |
---|
2494 | echo timestamp > conftest.file |
---|
2495 | # Reject unsafe characters in $srcdir or the absolute working directory |
---|
2496 | # name. Accept space and tab only in the latter. |
---|
2497 | am_lf=' |
---|
2498 | ' |
---|
2499 | case `pwd` in |
---|
2500 | *[\\\"\#\$\&\'\`$am_lf]*) |
---|
2501 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
---|
2502 | esac |
---|
2503 | case $srcdir in |
---|
2504 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
---|
2505 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
---|
2506 | esac |
---|
2507 | |
---|
2508 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
2509 | # arguments. Must try -L first in case configure is actually a |
---|
2510 | # symlink; some systems play weird games with the mod time of symlinks |
---|
2511 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
2512 | # directory). |
---|
2513 | if ( |
---|
2514 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
---|
2515 | if test "$*" = "X"; then |
---|
2516 | # -L didn't work. |
---|
2517 | set X `ls -t "$srcdir/configure" conftest.file` |
---|
2518 | fi |
---|
2519 | rm -f conftest.file |
---|
2520 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
2521 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
2522 | |
---|
2523 | # If neither matched, then we have a broken ls. This can happen |
---|
2524 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
2525 | # broken ls alias from the environment. This has actually |
---|
2526 | # happened. Such a system could not be considered "sane". |
---|
2527 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
---|
2528 | alias in your environment" "$LINENO" 5 |
---|
2529 | fi |
---|
2530 | |
---|
2531 | test "$2" = conftest.file |
---|
2532 | ) |
---|
2533 | then |
---|
2534 | # Ok. |
---|
2535 | : |
---|
2536 | else |
---|
2537 | as_fn_error $? "newly created file is older than distributed files! |
---|
2538 | Check your system clock" "$LINENO" 5 |
---|
2539 | fi |
---|
2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2541 | $as_echo "yes" >&6; } |
---|
2542 | test "$program_prefix" != NONE && |
---|
2543 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
2544 | # Use a double $ so make ignores it. |
---|
2545 | test "$program_suffix" != NONE && |
---|
2546 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
2547 | # Double any \ or $. |
---|
2548 | # By default was `s,x,x', remove it if useless. |
---|
2549 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
---|
2550 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
---|
2551 | |
---|
2552 | # expand $ac_aux_dir to an absolute path |
---|
2553 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
2554 | |
---|
2555 | if test x"${MISSING+set}" != xset; then |
---|
2556 | case $am_aux_dir in |
---|
2557 | *\ * | *\ *) |
---|
2558 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
---|
2559 | *) |
---|
2560 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
---|
2561 | esac |
---|
2562 | fi |
---|
2563 | # Use eval to expand $SHELL |
---|
2564 | if eval "$MISSING --run true"; then |
---|
2565 | am_missing_run="$MISSING --run " |
---|
2566 | else |
---|
2567 | am_missing_run= |
---|
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
---|
2569 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
2570 | fi |
---|
2571 | |
---|
2572 | if test x"${install_sh}" != xset; then |
---|
2573 | case $am_aux_dir in |
---|
2574 | *\ * | *\ *) |
---|
2575 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
---|
2576 | *) |
---|
2577 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
---|
2578 | esac |
---|
2579 | fi |
---|
2580 | |
---|
2581 | # Installed binaries are usually stripped using `strip' when the user |
---|
2582 | # run `make install-strip'. However `strip' might not be the right |
---|
2583 | # tool to use in cross-compilation environments, therefore Automake |
---|
2584 | # will honor the `STRIP' environment variable to overrule this program. |
---|
2585 | if test "$cross_compiling" != no; then |
---|
2586 | if test -n "$ac_tool_prefix"; then |
---|
2587 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
2588 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
2589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2590 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2591 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
2592 | $as_echo_n "(cached) " >&6 |
---|
2593 | else |
---|
2594 | if test -n "$STRIP"; then |
---|
2595 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
2596 | else |
---|
2597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2598 | for as_dir in $PATH |
---|
2599 | do |
---|
2600 | IFS=$as_save_IFS |
---|
2601 | test -z "$as_dir" && as_dir=. |
---|
2602 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2603 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2604 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
2605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2606 | break 2 |
---|
2607 | fi |
---|
2608 | done |
---|
2609 | done |
---|
2610 | IFS=$as_save_IFS |
---|
2611 | |
---|
2612 | fi |
---|
2613 | fi |
---|
2614 | STRIP=$ac_cv_prog_STRIP |
---|
2615 | if test -n "$STRIP"; then |
---|
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
2617 | $as_echo "$STRIP" >&6; } |
---|
2618 | else |
---|
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2620 | $as_echo "no" >&6; } |
---|
2621 | fi |
---|
2622 | |
---|
2623 | |
---|
2624 | fi |
---|
2625 | if test -z "$ac_cv_prog_STRIP"; then |
---|
2626 | ac_ct_STRIP=$STRIP |
---|
2627 | # Extract the first word of "strip", so it can be a program name with args. |
---|
2628 | set dummy strip; ac_word=$2 |
---|
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2630 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2631 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
2632 | $as_echo_n "(cached) " >&6 |
---|
2633 | else |
---|
2634 | if test -n "$ac_ct_STRIP"; then |
---|
2635 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
2636 | else |
---|
2637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2638 | for as_dir in $PATH |
---|
2639 | do |
---|
2640 | IFS=$as_save_IFS |
---|
2641 | test -z "$as_dir" && as_dir=. |
---|
2642 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2643 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2644 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
2645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2646 | break 2 |
---|
2647 | fi |
---|
2648 | done |
---|
2649 | done |
---|
2650 | IFS=$as_save_IFS |
---|
2651 | |
---|
2652 | fi |
---|
2653 | fi |
---|
2654 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
2655 | if test -n "$ac_ct_STRIP"; then |
---|
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
2657 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
2658 | else |
---|
2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2660 | $as_echo "no" >&6; } |
---|
2661 | fi |
---|
2662 | |
---|
2663 | if test "x$ac_ct_STRIP" = x; then |
---|
2664 | STRIP=":" |
---|
2665 | else |
---|
2666 | case $cross_compiling:$ac_tool_warned in |
---|
2667 | yes:) |
---|
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2669 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2670 | ac_tool_warned=yes ;; |
---|
2671 | esac |
---|
2672 | STRIP=$ac_ct_STRIP |
---|
2673 | fi |
---|
2674 | else |
---|
2675 | STRIP="$ac_cv_prog_STRIP" |
---|
2676 | fi |
---|
2677 | |
---|
2678 | fi |
---|
2679 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
---|
2680 | |
---|
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2682 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2683 | if test -z "$MKDIR_P"; then |
---|
2684 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2685 | $as_echo_n "(cached) " >&6 |
---|
2686 | else |
---|
2687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2688 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2689 | do |
---|
2690 | IFS=$as_save_IFS |
---|
2691 | test -z "$as_dir" && as_dir=. |
---|
2692 | for ac_prog in mkdir gmkdir; do |
---|
2693 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2694 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
---|
2695 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2696 | 'mkdir (GNU coreutils) '* | \ |
---|
2697 | 'mkdir (coreutils) '* | \ |
---|
2698 | 'mkdir (fileutils) '4.1*) |
---|
2699 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2700 | break 3;; |
---|
2701 | esac |
---|
2702 | done |
---|
2703 | done |
---|
2704 | done |
---|
2705 | IFS=$as_save_IFS |
---|
2706 | |
---|
2707 | fi |
---|
2708 | |
---|
2709 | test -d ./--version && rmdir ./--version |
---|
2710 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2711 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2712 | else |
---|
2713 | # As a last resort, use the slow shell script. Don't cache a |
---|
2714 | # value for MKDIR_P within a source directory, because that will |
---|
2715 | # break other packages using the cache if that directory is |
---|
2716 | # removed, or if the value is a relative name. |
---|
2717 | MKDIR_P="$ac_install_sh -d" |
---|
2718 | fi |
---|
2719 | fi |
---|
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2721 | $as_echo "$MKDIR_P" >&6; } |
---|
2722 | |
---|
2723 | mkdir_p="$MKDIR_P" |
---|
2724 | case $mkdir_p in |
---|
2725 | [\\/$]* | ?:[\\/]*) ;; |
---|
2726 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
---|
2727 | esac |
---|
2728 | |
---|
2729 | for ac_prog in gawk mawk nawk awk |
---|
2730 | do |
---|
2731 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2732 | set dummy $ac_prog; ac_word=$2 |
---|
2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2734 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2735 | if ${ac_cv_prog_AWK+:} false; then : |
---|
2736 | $as_echo_n "(cached) " >&6 |
---|
2737 | else |
---|
2738 | if test -n "$AWK"; then |
---|
2739 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
2740 | else |
---|
2741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2742 | for as_dir in $PATH |
---|
2743 | do |
---|
2744 | IFS=$as_save_IFS |
---|
2745 | test -z "$as_dir" && as_dir=. |
---|
2746 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2747 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2748 | ac_cv_prog_AWK="$ac_prog" |
---|
2749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2750 | break 2 |
---|
2751 | fi |
---|
2752 | done |
---|
2753 | done |
---|
2754 | IFS=$as_save_IFS |
---|
2755 | |
---|
2756 | fi |
---|
2757 | fi |
---|
2758 | AWK=$ac_cv_prog_AWK |
---|
2759 | if test -n "$AWK"; then |
---|
2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
---|
2761 | $as_echo "$AWK" >&6; } |
---|
2762 | else |
---|
2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2764 | $as_echo "no" >&6; } |
---|
2765 | fi |
---|
2766 | |
---|
2767 | |
---|
2768 | test -n "$AWK" && break |
---|
2769 | done |
---|
2770 | |
---|
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2772 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2773 | set x ${MAKE-make} |
---|
2774 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2775 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
2776 | $as_echo_n "(cached) " >&6 |
---|
2777 | else |
---|
2778 | cat >conftest.make <<\_ACEOF |
---|
2779 | SHELL = /bin/sh |
---|
2780 | all: |
---|
2781 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2782 | _ACEOF |
---|
2783 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
2784 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2785 | *@@@%%%=?*=@@@%%%*) |
---|
2786 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2787 | *) |
---|
2788 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2789 | esac |
---|
2790 | rm -f conftest.make |
---|
2791 | fi |
---|
2792 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2794 | $as_echo "yes" >&6; } |
---|
2795 | SET_MAKE= |
---|
2796 | else |
---|
2797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2798 | $as_echo "no" >&6; } |
---|
2799 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2800 | fi |
---|
2801 | |
---|
2802 | rm -rf .tst 2>/dev/null |
---|
2803 | mkdir .tst 2>/dev/null |
---|
2804 | if test -d .tst; then |
---|
2805 | am__leading_dot=. |
---|
2806 | else |
---|
2807 | am__leading_dot=_ |
---|
2808 | fi |
---|
2809 | rmdir .tst 2>/dev/null |
---|
2810 | |
---|
2811 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
---|
2812 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
---|
2813 | # is not polluted with repeated "-I." |
---|
2814 | am__isrc=' -I$(srcdir)' |
---|
2815 | # test to see if srcdir already configured |
---|
2816 | if test -f $srcdir/config.status; then |
---|
2817 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
---|
2818 | fi |
---|
2819 | fi |
---|
2820 | |
---|
2821 | # test whether we have cygpath |
---|
2822 | if test -z "$CYGPATH_W"; then |
---|
2823 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
2824 | CYGPATH_W='cygpath -w' |
---|
2825 | else |
---|
2826 | CYGPATH_W=echo |
---|
2827 | fi |
---|
2828 | fi |
---|
2829 | |
---|
2830 | |
---|
2831 | # Define the identity of the package. |
---|
2832 | PACKAGE='cfa-cc' |
---|
2833 | VERSION='1.0.0' |
---|
2834 | |
---|
2835 | |
---|
2836 | cat >>confdefs.h <<_ACEOF |
---|
2837 | #define PACKAGE "$PACKAGE" |
---|
2838 | _ACEOF |
---|
2839 | |
---|
2840 | |
---|
2841 | cat >>confdefs.h <<_ACEOF |
---|
2842 | #define VERSION "$VERSION" |
---|
2843 | _ACEOF |
---|
2844 | |
---|
2845 | # Some tools Automake needs. |
---|
2846 | |
---|
2847 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
2848 | |
---|
2849 | |
---|
2850 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
2851 | |
---|
2852 | |
---|
2853 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
2854 | |
---|
2855 | |
---|
2856 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
2857 | |
---|
2858 | |
---|
2859 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
2860 | |
---|
2861 | # We need awk for the "check" target. The system "awk" is bad on |
---|
2862 | # some platforms. |
---|
2863 | # Always define AMTAR for backward compatibility. Yes, it's still used |
---|
2864 | # in the wild :-( We should find a proper way to deprecate it ... |
---|
2865 | AMTAR='$${TAR-tar}' |
---|
2866 | |
---|
2867 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
---|
2868 | |
---|
2869 | |
---|
2870 | |
---|
2871 | |
---|
2872 | |
---|
2873 | |
---|
2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
2875 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
---|
2876 | # Check whether --enable-maintainer-mode was given. |
---|
2877 | if test "${enable_maintainer_mode+set}" = set; then : |
---|
2878 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
---|
2879 | else |
---|
2880 | USE_MAINTAINER_MODE=no |
---|
2881 | fi |
---|
2882 | |
---|
2883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
---|
2884 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
---|
2885 | if test $USE_MAINTAINER_MODE = yes; then |
---|
2886 | MAINTAINER_MODE_TRUE= |
---|
2887 | MAINTAINER_MODE_FALSE='#' |
---|
2888 | else |
---|
2889 | MAINTAINER_MODE_TRUE='#' |
---|
2890 | MAINTAINER_MODE_FALSE= |
---|
2891 | fi |
---|
2892 | |
---|
2893 | MAINT=$MAINTAINER_MODE_TRUE |
---|
2894 | |
---|
2895 | |
---|
2896 | |
---|
2897 | ac_config_headers="$ac_config_headers config.h" |
---|
2898 | |
---|
2899 | |
---|
2900 | # Installation paths |
---|
2901 | |
---|
2902 | |
---|
2903 | # Check whether --with-backend-compiler was given. |
---|
2904 | if test "${with_backend_compiler+set}" = set; then : |
---|
2905 | withval=$with_backend_compiler; backcompiler=$withval |
---|
2906 | else |
---|
2907 | backcompiler="" |
---|
2908 | fi |
---|
2909 | |
---|
2910 | if test x$backcompiler != x; then |
---|
2911 | cat >>confdefs.h <<_ACEOF |
---|
2912 | #define GCC_PATH "${backcompiler}" |
---|
2913 | _ACEOF |
---|
2914 | |
---|
2915 | BACKEND_CC=${backcompiler} |
---|
2916 | else |
---|
2917 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2918 | set dummy gcc; ac_word=$2 |
---|
2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2920 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2921 | if ${ac_cv_path_GCC_PATH+:} false; then : |
---|
2922 | $as_echo_n "(cached) " >&6 |
---|
2923 | else |
---|
2924 | case $GCC_PATH in |
---|
2925 | [\\/]* | ?:[\\/]*) |
---|
2926 | ac_cv_path_GCC_PATH="$GCC_PATH" # Let the user override the test with a path. |
---|
2927 | ;; |
---|
2928 | *) |
---|
2929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2930 | for as_dir in $PATH |
---|
2931 | do |
---|
2932 | IFS=$as_save_IFS |
---|
2933 | test -z "$as_dir" && as_dir=. |
---|
2934 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2936 | ac_cv_path_GCC_PATH="$as_dir/$ac_word$ac_exec_ext" |
---|
2937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2938 | break 2 |
---|
2939 | fi |
---|
2940 | done |
---|
2941 | done |
---|
2942 | IFS=$as_save_IFS |
---|
2943 | |
---|
2944 | test -z "$ac_cv_path_GCC_PATH" && ac_cv_path_GCC_PATH="N/A" |
---|
2945 | ;; |
---|
2946 | esac |
---|
2947 | fi |
---|
2948 | GCC_PATH=$ac_cv_path_GCC_PATH |
---|
2949 | if test -n "$GCC_PATH"; then |
---|
2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_PATH" >&5 |
---|
2951 | $as_echo "$GCC_PATH" >&6; } |
---|
2952 | else |
---|
2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2954 | $as_echo "no" >&6; } |
---|
2955 | fi |
---|
2956 | |
---|
2957 | |
---|
2958 | if test "$GCC_PATH" = "N/A"; then |
---|
2959 | as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 5 |
---|
2960 | exit 1 |
---|
2961 | fi |
---|
2962 | |
---|
2963 | cat >>confdefs.h <<_ACEOF |
---|
2964 | #define GCC_PATH "${GCC_PATH}" |
---|
2965 | _ACEOF |
---|
2966 | |
---|
2967 | BACKEND_CC=${GCC_PATH} |
---|
2968 | fi |
---|
2969 | |
---|
2970 | |
---|
2971 | CFA_PREFIX= |
---|
2972 | if test "x$prefix" = "xNONE"; then |
---|
2973 | cfa_prefix=${ac_default_prefix} |
---|
2974 | else |
---|
2975 | cfa_prefix=${prefix} |
---|
2976 | fi |
---|
2977 | |
---|
2978 | cat >>confdefs.h <<_ACEOF |
---|
2979 | #define CFA_PREFIX "${cfa_prefix}" |
---|
2980 | _ACEOF |
---|
2981 | |
---|
2982 | CFA_PREFIX=${cfa_prefix} |
---|
2983 | |
---|
2984 | |
---|
2985 | CFA_INCDIR= |
---|
2986 | if test "$includedir" = '${prefix}/include'; then |
---|
2987 | cfa_incdir="${cfa_prefix}/include" |
---|
2988 | else |
---|
2989 | cfa_incdir=${$includedir} |
---|
2990 | fi |
---|
2991 | |
---|
2992 | cat >>confdefs.h <<_ACEOF |
---|
2993 | #define CFA_INCDIR "${cfa_incdir}" |
---|
2994 | _ACEOF |
---|
2995 | |
---|
2996 | CFA_INCDIR=${cfa_incdir} |
---|
2997 | |
---|
2998 | |
---|
2999 | CFA_BINDIR= |
---|
3000 | if test "$bindir" = '${exec_prefix}/bin'; then |
---|
3001 | cfa_bindir="${cfa_prefix}/bin" |
---|
3002 | else |
---|
3003 | cfa_bindir=${bindir} |
---|
3004 | fi |
---|
3005 | |
---|
3006 | cat >>confdefs.h <<_ACEOF |
---|
3007 | #define CFA_BINDIR "${cfa_bindir}" |
---|
3008 | _ACEOF |
---|
3009 | |
---|
3010 | CFA_BINDIR=${cfa_bindir} |
---|
3011 | |
---|
3012 | |
---|
3013 | CFA_LIBDIR= |
---|
3014 | if test "$libdir" = '${exec_prefix}/lib'; then |
---|
3015 | cfa_libdir=${cfa_prefix}/lib |
---|
3016 | else |
---|
3017 | cfa_libdir=${libdir} |
---|
3018 | fi |
---|
3019 | |
---|
3020 | cat >>confdefs.h <<_ACEOF |
---|
3021 | #define CFA_LIBDIR "${cfa_libdir}" |
---|
3022 | _ACEOF |
---|
3023 | |
---|
3024 | CFA_LIBDIR=${cfa_libdir} |
---|
3025 | |
---|
3026 | |
---|
3027 | # Checks for programs. |
---|
3028 | ac_ext=cpp |
---|
3029 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3030 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3031 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3032 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3033 | if test -z "$CXX"; then |
---|
3034 | if test -n "$CCC"; then |
---|
3035 | CXX=$CCC |
---|
3036 | else |
---|
3037 | if test -n "$ac_tool_prefix"; then |
---|
3038 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3039 | do |
---|
3040 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3041 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3043 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3044 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3045 | $as_echo_n "(cached) " >&6 |
---|
3046 | else |
---|
3047 | if test -n "$CXX"; then |
---|
3048 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3049 | else |
---|
3050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3051 | for as_dir in $PATH |
---|
3052 | do |
---|
3053 | IFS=$as_save_IFS |
---|
3054 | test -z "$as_dir" && as_dir=. |
---|
3055 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3056 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3057 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3058 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3059 | break 2 |
---|
3060 | fi |
---|
3061 | done |
---|
3062 | done |
---|
3063 | IFS=$as_save_IFS |
---|
3064 | |
---|
3065 | fi |
---|
3066 | fi |
---|
3067 | CXX=$ac_cv_prog_CXX |
---|
3068 | if test -n "$CXX"; then |
---|
3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3070 | $as_echo "$CXX" >&6; } |
---|
3071 | else |
---|
3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3073 | $as_echo "no" >&6; } |
---|
3074 | fi |
---|
3075 | |
---|
3076 | |
---|
3077 | test -n "$CXX" && break |
---|
3078 | done |
---|
3079 | fi |
---|
3080 | if test -z "$CXX"; then |
---|
3081 | ac_ct_CXX=$CXX |
---|
3082 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3083 | do |
---|
3084 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3085 | set dummy $ac_prog; ac_word=$2 |
---|
3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3087 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3088 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3089 | $as_echo_n "(cached) " >&6 |
---|
3090 | else |
---|
3091 | if test -n "$ac_ct_CXX"; then |
---|
3092 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3093 | else |
---|
3094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3095 | for as_dir in $PATH |
---|
3096 | do |
---|
3097 | IFS=$as_save_IFS |
---|
3098 | test -z "$as_dir" && as_dir=. |
---|
3099 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3101 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3103 | break 2 |
---|
3104 | fi |
---|
3105 | done |
---|
3106 | done |
---|
3107 | IFS=$as_save_IFS |
---|
3108 | |
---|
3109 | fi |
---|
3110 | fi |
---|
3111 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3112 | if test -n "$ac_ct_CXX"; then |
---|
3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3114 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3115 | else |
---|
3116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3117 | $as_echo "no" >&6; } |
---|
3118 | fi |
---|
3119 | |
---|
3120 | |
---|
3121 | test -n "$ac_ct_CXX" && break |
---|
3122 | done |
---|
3123 | |
---|
3124 | if test "x$ac_ct_CXX" = x; then |
---|
3125 | CXX="g++" |
---|
3126 | else |
---|
3127 | case $cross_compiling:$ac_tool_warned in |
---|
3128 | yes:) |
---|
3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3130 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3131 | ac_tool_warned=yes ;; |
---|
3132 | esac |
---|
3133 | CXX=$ac_ct_CXX |
---|
3134 | fi |
---|
3135 | fi |
---|
3136 | |
---|
3137 | fi |
---|
3138 | fi |
---|
3139 | # Provide some information about the compiler. |
---|
3140 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3141 | set X $ac_compile |
---|
3142 | ac_compiler=$2 |
---|
3143 | for ac_option in --version -v -V -qversion; do |
---|
3144 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3145 | case "(($ac_try" in |
---|
3146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3147 | *) ac_try_echo=$ac_try;; |
---|
3148 | esac |
---|
3149 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3150 | $as_echo "$ac_try_echo"; } >&5 |
---|
3151 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3152 | ac_status=$? |
---|
3153 | if test -s conftest.err; then |
---|
3154 | sed '10a\ |
---|
3155 | ... rest of stderr output deleted ... |
---|
3156 | 10q' conftest.err >conftest.er1 |
---|
3157 | cat conftest.er1 >&5 |
---|
3158 | fi |
---|
3159 | rm -f conftest.er1 conftest.err |
---|
3160 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3161 | test $ac_status = 0; } |
---|
3162 | done |
---|
3163 | |
---|
3164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3165 | /* end confdefs.h. */ |
---|
3166 | |
---|
3167 | int |
---|
3168 | main () |
---|
3169 | { |
---|
3170 | |
---|
3171 | ; |
---|
3172 | return 0; |
---|
3173 | } |
---|
3174 | _ACEOF |
---|
3175 | ac_clean_files_save=$ac_clean_files |
---|
3176 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3177 | # Try to create an executable without -o first, disregard a.out. |
---|
3178 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3179 | # of exeext. |
---|
3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
---|
3181 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
---|
3182 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3183 | |
---|
3184 | # The possible output files: |
---|
3185 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3186 | |
---|
3187 | ac_rmfiles= |
---|
3188 | for ac_file in $ac_files |
---|
3189 | do |
---|
3190 | case $ac_file in |
---|
3191 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3192 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3193 | esac |
---|
3194 | done |
---|
3195 | rm -f $ac_rmfiles |
---|
3196 | |
---|
3197 | if { { ac_try="$ac_link_default" |
---|
3198 | case "(($ac_try" in |
---|
3199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3200 | *) ac_try_echo=$ac_try;; |
---|
3201 | esac |
---|
3202 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3203 | $as_echo "$ac_try_echo"; } >&5 |
---|
3204 | (eval "$ac_link_default") 2>&5 |
---|
3205 | ac_status=$? |
---|
3206 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3207 | test $ac_status = 0; }; then : |
---|
3208 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3209 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3210 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3211 | # so that the user can short-circuit this test for compilers unknown to |
---|
3212 | # Autoconf. |
---|
3213 | for ac_file in $ac_files '' |
---|
3214 | do |
---|
3215 | test -f "$ac_file" || continue |
---|
3216 | case $ac_file in |
---|
3217 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3218 | ;; |
---|
3219 | [ab].out ) |
---|
3220 | # We found the default executable, but exeext='' is most |
---|
3221 | # certainly right. |
---|
3222 | break;; |
---|
3223 | *.* ) |
---|
3224 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3225 | then :; else |
---|
3226 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3227 | fi |
---|
3228 | # We set ac_cv_exeext here because the later test for it is not |
---|
3229 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3230 | # argument, so we may need to know it at that point already. |
---|
3231 | # Even if this section looks crufty: it has the advantage of |
---|
3232 | # actually working. |
---|
3233 | break;; |
---|
3234 | * ) |
---|
3235 | break;; |
---|
3236 | esac |
---|
3237 | done |
---|
3238 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3239 | |
---|
3240 | else |
---|
3241 | ac_file='' |
---|
3242 | fi |
---|
3243 | if test -z "$ac_file"; then : |
---|
3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3245 | $as_echo "no" >&6; } |
---|
3246 | $as_echo "$as_me: failed program was:" >&5 |
---|
3247 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3248 | |
---|
3249 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3250 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3251 | as_fn_error 77 "C++ compiler cannot create executables |
---|
3252 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3253 | else |
---|
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3255 | $as_echo "yes" >&6; } |
---|
3256 | fi |
---|
3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
---|
3258 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
---|
3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3260 | $as_echo "$ac_file" >&6; } |
---|
3261 | ac_exeext=$ac_cv_exeext |
---|
3262 | |
---|
3263 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3264 | ac_clean_files=$ac_clean_files_save |
---|
3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3266 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3267 | if { { ac_try="$ac_link" |
---|
3268 | case "(($ac_try" in |
---|
3269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3270 | *) ac_try_echo=$ac_try;; |
---|
3271 | esac |
---|
3272 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3273 | $as_echo "$ac_try_echo"; } >&5 |
---|
3274 | (eval "$ac_link") 2>&5 |
---|
3275 | ac_status=$? |
---|
3276 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3277 | test $ac_status = 0; }; then : |
---|
3278 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3279 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3280 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3281 | # `rm'. |
---|
3282 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3283 | test -f "$ac_file" || continue |
---|
3284 | case $ac_file in |
---|
3285 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3286 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3287 | break;; |
---|
3288 | * ) break;; |
---|
3289 | esac |
---|
3290 | done |
---|
3291 | else |
---|
3292 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3293 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3294 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3295 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3296 | fi |
---|
3297 | rm -f conftest conftest$ac_cv_exeext |
---|
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3299 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3300 | |
---|
3301 | rm -f conftest.$ac_ext |
---|
3302 | EXEEXT=$ac_cv_exeext |
---|
3303 | ac_exeext=$EXEEXT |
---|
3304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3305 | /* end confdefs.h. */ |
---|
3306 | #include <stdio.h> |
---|
3307 | int |
---|
3308 | main () |
---|
3309 | { |
---|
3310 | FILE *f = fopen ("conftest.out", "w"); |
---|
3311 | return ferror (f) || fclose (f) != 0; |
---|
3312 | |
---|
3313 | ; |
---|
3314 | return 0; |
---|
3315 | } |
---|
3316 | _ACEOF |
---|
3317 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3318 | # Check that the compiler produces executables we can run. If not, either |
---|
3319 | # the compiler is broken, or we cross compile. |
---|
3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3321 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3322 | if test "$cross_compiling" != yes; then |
---|
3323 | { { ac_try="$ac_link" |
---|
3324 | case "(($ac_try" in |
---|
3325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3326 | *) ac_try_echo=$ac_try;; |
---|
3327 | esac |
---|
3328 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3329 | $as_echo "$ac_try_echo"; } >&5 |
---|
3330 | (eval "$ac_link") 2>&5 |
---|
3331 | ac_status=$? |
---|
3332 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3333 | test $ac_status = 0; } |
---|
3334 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3335 | { { case "(($ac_try" in |
---|
3336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3337 | *) ac_try_echo=$ac_try;; |
---|
3338 | esac |
---|
3339 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3340 | $as_echo "$ac_try_echo"; } >&5 |
---|
3341 | (eval "$ac_try") 2>&5 |
---|
3342 | ac_status=$? |
---|
3343 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3344 | test $ac_status = 0; }; }; then |
---|
3345 | cross_compiling=no |
---|
3346 | else |
---|
3347 | if test "$cross_compiling" = maybe; then |
---|
3348 | cross_compiling=yes |
---|
3349 | else |
---|
3350 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3351 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3352 | as_fn_error $? "cannot run C++ compiled programs. |
---|
3353 | If you meant to cross compile, use \`--host'. |
---|
3354 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3355 | fi |
---|
3356 | fi |
---|
3357 | fi |
---|
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3359 | $as_echo "$cross_compiling" >&6; } |
---|
3360 | |
---|
3361 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3362 | ac_clean_files=$ac_clean_files_save |
---|
3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3364 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3365 | if ${ac_cv_objext+:} false; then : |
---|
3366 | $as_echo_n "(cached) " >&6 |
---|
3367 | else |
---|
3368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3369 | /* end confdefs.h. */ |
---|
3370 | |
---|
3371 | int |
---|
3372 | main () |
---|
3373 | { |
---|
3374 | |
---|
3375 | ; |
---|
3376 | return 0; |
---|
3377 | } |
---|
3378 | _ACEOF |
---|
3379 | rm -f conftest.o conftest.obj |
---|
3380 | if { { ac_try="$ac_compile" |
---|
3381 | case "(($ac_try" in |
---|
3382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3383 | *) ac_try_echo=$ac_try;; |
---|
3384 | esac |
---|
3385 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3386 | $as_echo "$ac_try_echo"; } >&5 |
---|
3387 | (eval "$ac_compile") 2>&5 |
---|
3388 | ac_status=$? |
---|
3389 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3390 | test $ac_status = 0; }; then : |
---|
3391 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3392 | test -f "$ac_file" || continue; |
---|
3393 | case $ac_file in |
---|
3394 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3395 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3396 | break;; |
---|
3397 | esac |
---|
3398 | done |
---|
3399 | else |
---|
3400 | $as_echo "$as_me: failed program was:" >&5 |
---|
3401 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3402 | |
---|
3403 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3404 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3405 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3406 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3407 | fi |
---|
3408 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3409 | fi |
---|
3410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3411 | $as_echo "$ac_cv_objext" >&6; } |
---|
3412 | OBJEXT=$ac_cv_objext |
---|
3413 | ac_objext=$OBJEXT |
---|
3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3415 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3416 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3417 | $as_echo_n "(cached) " >&6 |
---|
3418 | else |
---|
3419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3420 | /* end confdefs.h. */ |
---|
3421 | |
---|
3422 | int |
---|
3423 | main () |
---|
3424 | { |
---|
3425 | #ifndef __GNUC__ |
---|
3426 | choke me |
---|
3427 | #endif |
---|
3428 | |
---|
3429 | ; |
---|
3430 | return 0; |
---|
3431 | } |
---|
3432 | _ACEOF |
---|
3433 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3434 | ac_compiler_gnu=yes |
---|
3435 | else |
---|
3436 | ac_compiler_gnu=no |
---|
3437 | fi |
---|
3438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3439 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3440 | |
---|
3441 | fi |
---|
3442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3443 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3444 | if test $ac_compiler_gnu = yes; then |
---|
3445 | GXX=yes |
---|
3446 | else |
---|
3447 | GXX= |
---|
3448 | fi |
---|
3449 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3450 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3452 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3453 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3454 | $as_echo_n "(cached) " >&6 |
---|
3455 | else |
---|
3456 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3457 | ac_cxx_werror_flag=yes |
---|
3458 | ac_cv_prog_cxx_g=no |
---|
3459 | CXXFLAGS="-g" |
---|
3460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3461 | /* end confdefs.h. */ |
---|
3462 | |
---|
3463 | int |
---|
3464 | main () |
---|
3465 | { |
---|
3466 | |
---|
3467 | ; |
---|
3468 | return 0; |
---|
3469 | } |
---|
3470 | _ACEOF |
---|
3471 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3472 | ac_cv_prog_cxx_g=yes |
---|
3473 | else |
---|
3474 | CXXFLAGS="" |
---|
3475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3476 | /* end confdefs.h. */ |
---|
3477 | |
---|
3478 | int |
---|
3479 | main () |
---|
3480 | { |
---|
3481 | |
---|
3482 | ; |
---|
3483 | return 0; |
---|
3484 | } |
---|
3485 | _ACEOF |
---|
3486 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3487 | |
---|
3488 | else |
---|
3489 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3490 | CXXFLAGS="-g" |
---|
3491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3492 | /* end confdefs.h. */ |
---|
3493 | |
---|
3494 | int |
---|
3495 | main () |
---|
3496 | { |
---|
3497 | |
---|
3498 | ; |
---|
3499 | return 0; |
---|
3500 | } |
---|
3501 | _ACEOF |
---|
3502 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3503 | ac_cv_prog_cxx_g=yes |
---|
3504 | fi |
---|
3505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3506 | fi |
---|
3507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3508 | fi |
---|
3509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3510 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3511 | fi |
---|
3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3513 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3514 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3515 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3516 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3517 | if test "$GXX" = yes; then |
---|
3518 | CXXFLAGS="-g -O2" |
---|
3519 | else |
---|
3520 | CXXFLAGS="-g" |
---|
3521 | fi |
---|
3522 | else |
---|
3523 | if test "$GXX" = yes; then |
---|
3524 | CXXFLAGS="-O2" |
---|
3525 | else |
---|
3526 | CXXFLAGS= |
---|
3527 | fi |
---|
3528 | fi |
---|
3529 | ac_ext=c |
---|
3530 | ac_cpp='$CPP $CPPFLAGS' |
---|
3531 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3532 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3533 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3534 | DEPDIR="${am__leading_dot}deps" |
---|
3535 | |
---|
3536 | ac_config_commands="$ac_config_commands depfiles" |
---|
3537 | |
---|
3538 | |
---|
3539 | am_make=${MAKE-make} |
---|
3540 | cat > confinc << 'END' |
---|
3541 | am__doit: |
---|
3542 | @echo this is the am__doit target |
---|
3543 | .PHONY: am__doit |
---|
3544 | END |
---|
3545 | # If we don't find an include directive, just comment out the code. |
---|
3546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
---|
3547 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
---|
3548 | am__include="#" |
---|
3549 | am__quote= |
---|
3550 | _am_result=none |
---|
3551 | # First try GNU make style include. |
---|
3552 | echo "include confinc" > confmf |
---|
3553 | # Ignore all kinds of additional output from `make'. |
---|
3554 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3555 | *the\ am__doit\ target*) |
---|
3556 | am__include=include |
---|
3557 | am__quote= |
---|
3558 | _am_result=GNU |
---|
3559 | ;; |
---|
3560 | esac |
---|
3561 | # Now try BSD make style include. |
---|
3562 | if test "$am__include" = "#"; then |
---|
3563 | echo '.include "confinc"' > confmf |
---|
3564 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3565 | *the\ am__doit\ target*) |
---|
3566 | am__include=.include |
---|
3567 | am__quote="\"" |
---|
3568 | _am_result=BSD |
---|
3569 | ;; |
---|
3570 | esac |
---|
3571 | fi |
---|
3572 | |
---|
3573 | |
---|
3574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
---|
3575 | $as_echo "$_am_result" >&6; } |
---|
3576 | rm -f confinc confmf |
---|
3577 | |
---|
3578 | # Check whether --enable-dependency-tracking was given. |
---|
3579 | if test "${enable_dependency_tracking+set}" = set; then : |
---|
3580 | enableval=$enable_dependency_tracking; |
---|
3581 | fi |
---|
3582 | |
---|
3583 | if test "x$enable_dependency_tracking" != xno; then |
---|
3584 | am_depcomp="$ac_aux_dir/depcomp" |
---|
3585 | AMDEPBACKSLASH='\' |
---|
3586 | am__nodep='_no' |
---|
3587 | fi |
---|
3588 | if test "x$enable_dependency_tracking" != xno; then |
---|
3589 | AMDEP_TRUE= |
---|
3590 | AMDEP_FALSE='#' |
---|
3591 | else |
---|
3592 | AMDEP_TRUE='#' |
---|
3593 | AMDEP_FALSE= |
---|
3594 | fi |
---|
3595 | |
---|
3596 | |
---|
3597 | |
---|
3598 | depcc="$CXX" am_compiler_list= |
---|
3599 | |
---|
3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
3601 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
3602 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
---|
3603 | $as_echo_n "(cached) " >&6 |
---|
3604 | else |
---|
3605 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3606 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3607 | # making bogus files that we don't know about and never remove. For |
---|
3608 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3609 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3610 | # in D'. |
---|
3611 | rm -rf conftest.dir |
---|
3612 | mkdir conftest.dir |
---|
3613 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3614 | # using a relative directory. |
---|
3615 | cp "$am_depcomp" conftest.dir |
---|
3616 | cd conftest.dir |
---|
3617 | # We will build objects and dependencies in a subdirectory because |
---|
3618 | # it helps to detect inapplicable dependency modes. For instance |
---|
3619 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3620 | # side effect of compilation, but ICC will put the dependencies in |
---|
3621 | # the current directory while Tru64 will put them in the object |
---|
3622 | # directory. |
---|
3623 | mkdir sub |
---|
3624 | |
---|
3625 | am_cv_CXX_dependencies_compiler_type=none |
---|
3626 | if test "$am_compiler_list" = ""; then |
---|
3627 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3628 | fi |
---|
3629 | am__universal=false |
---|
3630 | case " $depcc " in #( |
---|
3631 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
3632 | esac |
---|
3633 | |
---|
3634 | for depmode in $am_compiler_list; do |
---|
3635 | # Setup a source with many dependencies, because some compilers |
---|
3636 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3637 | # we should not choose a depcomp mode which is confused by this. |
---|
3638 | # |
---|
3639 | # We need to recreate these files for each test, as the compiler may |
---|
3640 | # overwrite some of them when testing with obscure command lines. |
---|
3641 | # This happens at least with the AIX C compiler. |
---|
3642 | : > sub/conftest.c |
---|
3643 | for i in 1 2 3 4 5 6; do |
---|
3644 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3645 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3646 | # Solaris 8's {/usr,}/bin/sh. |
---|
3647 | touch sub/conftst$i.h |
---|
3648 | done |
---|
3649 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3650 | |
---|
3651 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3652 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3653 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
3654 | # versions had trouble with output in subdirs |
---|
3655 | am__obj=sub/conftest.${OBJEXT-o} |
---|
3656 | am__minus_obj="-o $am__obj" |
---|
3657 | case $depmode in |
---|
3658 | gcc) |
---|
3659 | # This depmode causes a compiler race in universal mode. |
---|
3660 | test "$am__universal" = false || continue |
---|
3661 | ;; |
---|
3662 | nosideeffect) |
---|
3663 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3664 | # only be used when explicitly requested |
---|
3665 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3666 | continue |
---|
3667 | else |
---|
3668 | break |
---|
3669 | fi |
---|
3670 | ;; |
---|
3671 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
3672 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
3673 | # not run yet. These depmodes are late enough in the game, and |
---|
3674 | # so weak that their functioning should not be impacted. |
---|
3675 | am__obj=conftest.${OBJEXT-o} |
---|
3676 | am__minus_obj= |
---|
3677 | ;; |
---|
3678 | none) break ;; |
---|
3679 | esac |
---|
3680 | if depmode=$depmode \ |
---|
3681 | source=sub/conftest.c object=$am__obj \ |
---|
3682 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3683 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
3684 | >/dev/null 2>conftest.err && |
---|
3685 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3686 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3687 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
3688 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3689 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3690 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3691 | # that says an option was ignored or not supported. |
---|
3692 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3693 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3694 | # The diagnosis changed in icc 8.0: |
---|
3695 | # icc: Command line remark: option '-MP' not supported |
---|
3696 | if (grep 'ignoring option' conftest.err || |
---|
3697 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3698 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
3699 | break |
---|
3700 | fi |
---|
3701 | fi |
---|
3702 | done |
---|
3703 | |
---|
3704 | cd .. |
---|
3705 | rm -rf conftest.dir |
---|
3706 | else |
---|
3707 | am_cv_CXX_dependencies_compiler_type=none |
---|
3708 | fi |
---|
3709 | |
---|
3710 | fi |
---|
3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
3712 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
---|
3713 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
3714 | |
---|
3715 | if |
---|
3716 | test "x$enable_dependency_tracking" != xno \ |
---|
3717 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
3718 | am__fastdepCXX_TRUE= |
---|
3719 | am__fastdepCXX_FALSE='#' |
---|
3720 | else |
---|
3721 | am__fastdepCXX_TRUE='#' |
---|
3722 | am__fastdepCXX_FALSE= |
---|
3723 | fi |
---|
3724 | |
---|
3725 | |
---|
3726 | for ac_prog in gawk mawk nawk awk |
---|
3727 | do |
---|
3728 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3729 | set dummy $ac_prog; ac_word=$2 |
---|
3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3731 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3732 | if ${ac_cv_prog_AWK+:} false; then : |
---|
3733 | $as_echo_n "(cached) " >&6 |
---|
3734 | else |
---|
3735 | if test -n "$AWK"; then |
---|
3736 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
3737 | else |
---|
3738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3739 | for as_dir in $PATH |
---|
3740 | do |
---|
3741 | IFS=$as_save_IFS |
---|
3742 | test -z "$as_dir" && as_dir=. |
---|
3743 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3745 | ac_cv_prog_AWK="$ac_prog" |
---|
3746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3747 | break 2 |
---|
3748 | fi |
---|
3749 | done |
---|
3750 | done |
---|
3751 | IFS=$as_save_IFS |
---|
3752 | |
---|
3753 | fi |
---|
3754 | fi |
---|
3755 | AWK=$ac_cv_prog_AWK |
---|
3756 | if test -n "$AWK"; then |
---|
3757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
---|
3758 | $as_echo "$AWK" >&6; } |
---|
3759 | else |
---|
3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3761 | $as_echo "no" >&6; } |
---|
3762 | fi |
---|
3763 | |
---|
3764 | |
---|
3765 | test -n "$AWK" && break |
---|
3766 | done |
---|
3767 | |
---|
3768 | ac_ext=c |
---|
3769 | ac_cpp='$CPP $CPPFLAGS' |
---|
3770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3773 | if test -n "$ac_tool_prefix"; then |
---|
3774 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
3775 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3777 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3778 | if ${ac_cv_prog_CC+:} false; then : |
---|
3779 | $as_echo_n "(cached) " >&6 |
---|
3780 | else |
---|
3781 | if test -n "$CC"; then |
---|
3782 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3783 | else |
---|
3784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3785 | for as_dir in $PATH |
---|
3786 | do |
---|
3787 | IFS=$as_save_IFS |
---|
3788 | test -z "$as_dir" && as_dir=. |
---|
3789 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3790 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3791 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
3792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3793 | break 2 |
---|
3794 | fi |
---|
3795 | done |
---|
3796 | done |
---|
3797 | IFS=$as_save_IFS |
---|
3798 | |
---|
3799 | fi |
---|
3800 | fi |
---|
3801 | CC=$ac_cv_prog_CC |
---|
3802 | if test -n "$CC"; then |
---|
3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3804 | $as_echo "$CC" >&6; } |
---|
3805 | else |
---|
3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3807 | $as_echo "no" >&6; } |
---|
3808 | fi |
---|
3809 | |
---|
3810 | |
---|
3811 | fi |
---|
3812 | if test -z "$ac_cv_prog_CC"; then |
---|
3813 | ac_ct_CC=$CC |
---|
3814 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
3815 | set dummy gcc; ac_word=$2 |
---|
3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3817 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3818 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3819 | $as_echo_n "(cached) " >&6 |
---|
3820 | else |
---|
3821 | if test -n "$ac_ct_CC"; then |
---|
3822 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3823 | else |
---|
3824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3825 | for as_dir in $PATH |
---|
3826 | do |
---|
3827 | IFS=$as_save_IFS |
---|
3828 | test -z "$as_dir" && as_dir=. |
---|
3829 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3831 | ac_cv_prog_ac_ct_CC="gcc" |
---|
3832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3833 | break 2 |
---|
3834 | fi |
---|
3835 | done |
---|
3836 | done |
---|
3837 | IFS=$as_save_IFS |
---|
3838 | |
---|
3839 | fi |
---|
3840 | fi |
---|
3841 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3842 | if test -n "$ac_ct_CC"; then |
---|
3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3844 | $as_echo "$ac_ct_CC" >&6; } |
---|
3845 | else |
---|
3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3847 | $as_echo "no" >&6; } |
---|
3848 | fi |
---|
3849 | |
---|
3850 | if test "x$ac_ct_CC" = x; then |
---|
3851 | CC="" |
---|
3852 | else |
---|
3853 | case $cross_compiling:$ac_tool_warned in |
---|
3854 | yes:) |
---|
3855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3856 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3857 | ac_tool_warned=yes ;; |
---|
3858 | esac |
---|
3859 | CC=$ac_ct_CC |
---|
3860 | fi |
---|
3861 | else |
---|
3862 | CC="$ac_cv_prog_CC" |
---|
3863 | fi |
---|
3864 | |
---|
3865 | if test -z "$CC"; then |
---|
3866 | if test -n "$ac_tool_prefix"; then |
---|
3867 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
3868 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3870 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3871 | if ${ac_cv_prog_CC+:} false; then : |
---|
3872 | $as_echo_n "(cached) " >&6 |
---|
3873 | else |
---|
3874 | if test -n "$CC"; then |
---|
3875 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3876 | else |
---|
3877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3878 | for as_dir in $PATH |
---|
3879 | do |
---|
3880 | IFS=$as_save_IFS |
---|
3881 | test -z "$as_dir" && as_dir=. |
---|
3882 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3884 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
3885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3886 | break 2 |
---|
3887 | fi |
---|
3888 | done |
---|
3889 | done |
---|
3890 | IFS=$as_save_IFS |
---|
3891 | |
---|
3892 | fi |
---|
3893 | fi |
---|
3894 | CC=$ac_cv_prog_CC |
---|
3895 | if test -n "$CC"; then |
---|
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3897 | $as_echo "$CC" >&6; } |
---|
3898 | else |
---|
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3900 | $as_echo "no" >&6; } |
---|
3901 | fi |
---|
3902 | |
---|
3903 | |
---|
3904 | fi |
---|
3905 | fi |
---|
3906 | if test -z "$CC"; then |
---|
3907 | # Extract the first word of "cc", so it can be a program name with args. |
---|
3908 | set dummy cc; ac_word=$2 |
---|
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3910 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3911 | if ${ac_cv_prog_CC+:} false; then : |
---|
3912 | $as_echo_n "(cached) " >&6 |
---|
3913 | else |
---|
3914 | if test -n "$CC"; then |
---|
3915 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3916 | else |
---|
3917 | ac_prog_rejected=no |
---|
3918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3919 | for as_dir in $PATH |
---|
3920 | do |
---|
3921 | IFS=$as_save_IFS |
---|
3922 | test -z "$as_dir" && as_dir=. |
---|
3923 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3924 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3925 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
3926 | ac_prog_rejected=yes |
---|
3927 | continue |
---|
3928 | fi |
---|
3929 | ac_cv_prog_CC="cc" |
---|
3930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3931 | break 2 |
---|
3932 | fi |
---|
3933 | done |
---|
3934 | done |
---|
3935 | IFS=$as_save_IFS |
---|
3936 | |
---|
3937 | if test $ac_prog_rejected = yes; then |
---|
3938 | # We found a bogon in the path, so make sure we never use it. |
---|
3939 | set dummy $ac_cv_prog_CC |
---|
3940 | shift |
---|
3941 | if test $# != 0; then |
---|
3942 | # We chose a different compiler from the bogus one. |
---|
3943 | # However, it has the same basename, so the bogon will be chosen |
---|
3944 | # first if we set CC to just the basename; use the full file name. |
---|
3945 | shift |
---|
3946 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
3947 | fi |
---|
3948 | fi |
---|
3949 | fi |
---|
3950 | fi |
---|
3951 | CC=$ac_cv_prog_CC |
---|
3952 | if test -n "$CC"; then |
---|
3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3954 | $as_echo "$CC" >&6; } |
---|
3955 | else |
---|
3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3957 | $as_echo "no" >&6; } |
---|
3958 | fi |
---|
3959 | |
---|
3960 | |
---|
3961 | fi |
---|
3962 | if test -z "$CC"; then |
---|
3963 | if test -n "$ac_tool_prefix"; then |
---|
3964 | for ac_prog in cl.exe |
---|
3965 | do |
---|
3966 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3967 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3969 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3970 | if ${ac_cv_prog_CC+:} false; then : |
---|
3971 | $as_echo_n "(cached) " >&6 |
---|
3972 | else |
---|
3973 | if test -n "$CC"; then |
---|
3974 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3975 | else |
---|
3976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3977 | for as_dir in $PATH |
---|
3978 | do |
---|
3979 | IFS=$as_save_IFS |
---|
3980 | test -z "$as_dir" && as_dir=. |
---|
3981 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3983 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
3984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3985 | break 2 |
---|
3986 | fi |
---|
3987 | done |
---|
3988 | done |
---|
3989 | IFS=$as_save_IFS |
---|
3990 | |
---|
3991 | fi |
---|
3992 | fi |
---|
3993 | CC=$ac_cv_prog_CC |
---|
3994 | if test -n "$CC"; then |
---|
3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3996 | $as_echo "$CC" >&6; } |
---|
3997 | else |
---|
3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3999 | $as_echo "no" >&6; } |
---|
4000 | fi |
---|
4001 | |
---|
4002 | |
---|
4003 | test -n "$CC" && break |
---|
4004 | done |
---|
4005 | fi |
---|
4006 | if test -z "$CC"; then |
---|
4007 | ac_ct_CC=$CC |
---|
4008 | for ac_prog in cl.exe |
---|
4009 | do |
---|
4010 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4011 | set dummy $ac_prog; ac_word=$2 |
---|
4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4013 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4014 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
4015 | $as_echo_n "(cached) " >&6 |
---|
4016 | else |
---|
4017 | if test -n "$ac_ct_CC"; then |
---|
4018 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
4019 | else |
---|
4020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4021 | for as_dir in $PATH |
---|
4022 | do |
---|
4023 | IFS=$as_save_IFS |
---|
4024 | test -z "$as_dir" && as_dir=. |
---|
4025 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4027 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
4028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4029 | break 2 |
---|
4030 | fi |
---|
4031 | done |
---|
4032 | done |
---|
4033 | IFS=$as_save_IFS |
---|
4034 | |
---|
4035 | fi |
---|
4036 | fi |
---|
4037 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4038 | if test -n "$ac_ct_CC"; then |
---|
4039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4040 | $as_echo "$ac_ct_CC" >&6; } |
---|
4041 | else |
---|
4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4043 | $as_echo "no" >&6; } |
---|
4044 | fi |
---|
4045 | |
---|
4046 | |
---|
4047 | test -n "$ac_ct_CC" && break |
---|
4048 | done |
---|
4049 | |
---|
4050 | if test "x$ac_ct_CC" = x; then |
---|
4051 | CC="" |
---|
4052 | else |
---|
4053 | case $cross_compiling:$ac_tool_warned in |
---|
4054 | yes:) |
---|
4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4056 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4057 | ac_tool_warned=yes ;; |
---|
4058 | esac |
---|
4059 | CC=$ac_ct_CC |
---|
4060 | fi |
---|
4061 | fi |
---|
4062 | |
---|
4063 | fi |
---|
4064 | |
---|
4065 | |
---|
4066 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4067 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4068 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
4069 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4070 | |
---|
4071 | # Provide some information about the compiler. |
---|
4072 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
4073 | set X $ac_compile |
---|
4074 | ac_compiler=$2 |
---|
4075 | for ac_option in --version -v -V -qversion; do |
---|
4076 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
4077 | case "(($ac_try" in |
---|
4078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4079 | *) ac_try_echo=$ac_try;; |
---|
4080 | esac |
---|
4081 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4082 | $as_echo "$ac_try_echo"; } >&5 |
---|
4083 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
4084 | ac_status=$? |
---|
4085 | if test -s conftest.err; then |
---|
4086 | sed '10a\ |
---|
4087 | ... rest of stderr output deleted ... |
---|
4088 | 10q' conftest.err >conftest.er1 |
---|
4089 | cat conftest.er1 >&5 |
---|
4090 | fi |
---|
4091 | rm -f conftest.er1 conftest.err |
---|
4092 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4093 | test $ac_status = 0; } |
---|
4094 | done |
---|
4095 | |
---|
4096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
4097 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
4098 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
4099 | $as_echo_n "(cached) " >&6 |
---|
4100 | else |
---|
4101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4102 | /* end confdefs.h. */ |
---|
4103 | |
---|
4104 | int |
---|
4105 | main () |
---|
4106 | { |
---|
4107 | #ifndef __GNUC__ |
---|
4108 | choke me |
---|
4109 | #endif |
---|
4110 | |
---|
4111 | ; |
---|
4112 | return 0; |
---|
4113 | } |
---|
4114 | _ACEOF |
---|
4115 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4116 | ac_compiler_gnu=yes |
---|
4117 | else |
---|
4118 | ac_compiler_gnu=no |
---|
4119 | fi |
---|
4120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4121 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
4122 | |
---|
4123 | fi |
---|
4124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
4125 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
4126 | if test $ac_compiler_gnu = yes; then |
---|
4127 | GCC=yes |
---|
4128 | else |
---|
4129 | GCC= |
---|
4130 | fi |
---|
4131 | ac_test_CFLAGS=${CFLAGS+set} |
---|
4132 | ac_save_CFLAGS=$CFLAGS |
---|
4133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
4134 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
4135 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
4136 | $as_echo_n "(cached) " >&6 |
---|
4137 | else |
---|
4138 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
4139 | ac_c_werror_flag=yes |
---|
4140 | ac_cv_prog_cc_g=no |
---|
4141 | CFLAGS="-g" |
---|
4142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4143 | /* end confdefs.h. */ |
---|
4144 | |
---|
4145 | int |
---|
4146 | main () |
---|
4147 | { |
---|
4148 | |
---|
4149 | ; |
---|
4150 | return 0; |
---|
4151 | } |
---|
4152 | _ACEOF |
---|
4153 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4154 | ac_cv_prog_cc_g=yes |
---|
4155 | else |
---|
4156 | CFLAGS="" |
---|
4157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4158 | /* end confdefs.h. */ |
---|
4159 | |
---|
4160 | int |
---|
4161 | main () |
---|
4162 | { |
---|
4163 | |
---|
4164 | ; |
---|
4165 | return 0; |
---|
4166 | } |
---|
4167 | _ACEOF |
---|
4168 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4169 | |
---|
4170 | else |
---|
4171 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4172 | CFLAGS="-g" |
---|
4173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4174 | /* end confdefs.h. */ |
---|
4175 | |
---|
4176 | int |
---|
4177 | main () |
---|
4178 | { |
---|
4179 | |
---|
4180 | ; |
---|
4181 | return 0; |
---|
4182 | } |
---|
4183 | _ACEOF |
---|
4184 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4185 | ac_cv_prog_cc_g=yes |
---|
4186 | fi |
---|
4187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4188 | fi |
---|
4189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4190 | fi |
---|
4191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4192 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4193 | fi |
---|
4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
4195 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
4196 | if test "$ac_test_CFLAGS" = set; then |
---|
4197 | CFLAGS=$ac_save_CFLAGS |
---|
4198 | elif test $ac_cv_prog_cc_g = yes; then |
---|
4199 | if test "$GCC" = yes; then |
---|
4200 | CFLAGS="-g -O2" |
---|
4201 | else |
---|
4202 | CFLAGS="-g" |
---|
4203 | fi |
---|
4204 | else |
---|
4205 | if test "$GCC" = yes; then |
---|
4206 | CFLAGS="-O2" |
---|
4207 | else |
---|
4208 | CFLAGS= |
---|
4209 | fi |
---|
4210 | fi |
---|
4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
4212 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
4213 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
4214 | $as_echo_n "(cached) " >&6 |
---|
4215 | else |
---|
4216 | ac_cv_prog_cc_c89=no |
---|
4217 | ac_save_CC=$CC |
---|
4218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4219 | /* end confdefs.h. */ |
---|
4220 | #include <stdarg.h> |
---|
4221 | #include <stdio.h> |
---|
4222 | #include <sys/types.h> |
---|
4223 | #include <sys/stat.h> |
---|
4224 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
4225 | struct buf { int x; }; |
---|
4226 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
4227 | static char *e (p, i) |
---|
4228 | char **p; |
---|
4229 | int i; |
---|
4230 | { |
---|
4231 | return p[i]; |
---|
4232 | } |
---|
4233 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
4234 | { |
---|
4235 | char *s; |
---|
4236 | va_list v; |
---|
4237 | va_start (v,p); |
---|
4238 | s = g (p, va_arg (v,int)); |
---|
4239 | va_end (v); |
---|
4240 | return s; |
---|
4241 | } |
---|
4242 | |
---|
4243 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
4244 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
4245 | These don't provoke an error unfortunately, instead are silently treated |
---|
4246 | as 'x'. The following induces an error, until -std is added to get |
---|
4247 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
4248 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
4249 | that's true only with -std. */ |
---|
4250 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
4251 | |
---|
4252 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
4253 | inside strings and character constants. */ |
---|
4254 | #define FOO(x) 'x' |
---|
4255 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
4256 | |
---|
4257 | int test (int i, double x); |
---|
4258 | struct s1 {int (*f) (int a);}; |
---|
4259 | struct s2 {int (*f) (double a);}; |
---|
4260 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
4261 | int argc; |
---|
4262 | char **argv; |
---|
4263 | int |
---|
4264 | main () |
---|
4265 | { |
---|
4266 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
4267 | ; |
---|
4268 | return 0; |
---|
4269 | } |
---|
4270 | _ACEOF |
---|
4271 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
4272 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
4273 | do |
---|
4274 | CC="$ac_save_CC $ac_arg" |
---|
4275 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4276 | ac_cv_prog_cc_c89=$ac_arg |
---|
4277 | fi |
---|
4278 | rm -f core conftest.err conftest.$ac_objext |
---|
4279 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
4280 | done |
---|
4281 | rm -f conftest.$ac_ext |
---|
4282 | CC=$ac_save_CC |
---|
4283 | |
---|
4284 | fi |
---|
4285 | # AC_CACHE_VAL |
---|
4286 | case "x$ac_cv_prog_cc_c89" in |
---|
4287 | x) |
---|
4288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
4289 | $as_echo "none needed" >&6; } ;; |
---|
4290 | xno) |
---|
4291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
4292 | $as_echo "unsupported" >&6; } ;; |
---|
4293 | *) |
---|
4294 | CC="$CC $ac_cv_prog_cc_c89" |
---|
4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
4296 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
4297 | esac |
---|
4298 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
4299 | |
---|
4300 | fi |
---|
4301 | |
---|
4302 | ac_ext=c |
---|
4303 | ac_cpp='$CPP $CPPFLAGS' |
---|
4304 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4305 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4306 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4307 | |
---|
4308 | depcc="$CC" am_compiler_list= |
---|
4309 | |
---|
4310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4311 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4312 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
---|
4313 | $as_echo_n "(cached) " >&6 |
---|
4314 | else |
---|
4315 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4316 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4317 | # making bogus files that we don't know about and never remove. For |
---|
4318 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4319 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
4320 | # in D'. |
---|
4321 | rm -rf conftest.dir |
---|
4322 | mkdir conftest.dir |
---|
4323 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4324 | # using a relative directory. |
---|
4325 | cp "$am_depcomp" conftest.dir |
---|
4326 | cd conftest.dir |
---|
4327 | # We will build objects and dependencies in a subdirectory because |
---|
4328 | # it helps to detect inapplicable dependency modes. For instance |
---|
4329 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4330 | # side effect of compilation, but ICC will put the dependencies in |
---|
4331 | # the current directory while Tru64 will put them in the object |
---|
4332 | # directory. |
---|
4333 | mkdir sub |
---|
4334 | |
---|
4335 | am_cv_CC_dependencies_compiler_type=none |
---|
4336 | if test "$am_compiler_list" = ""; then |
---|
4337 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4338 | fi |
---|
4339 | am__universal=false |
---|
4340 | case " $depcc " in #( |
---|
4341 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4342 | esac |
---|
4343 | |
---|
4344 | for depmode in $am_compiler_list; do |
---|
4345 | # Setup a source with many dependencies, because some compilers |
---|
4346 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4347 | # we should not choose a depcomp mode which is confused by this. |
---|
4348 | # |
---|
4349 | # We need to recreate these files for each test, as the compiler may |
---|
4350 | # overwrite some of them when testing with obscure command lines. |
---|
4351 | # This happens at least with the AIX C compiler. |
---|
4352 | : > sub/conftest.c |
---|
4353 | for i in 1 2 3 4 5 6; do |
---|
4354 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4355 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
4356 | # Solaris 8's {/usr,}/bin/sh. |
---|
4357 | touch sub/conftst$i.h |
---|
4358 | done |
---|
4359 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4360 | |
---|
4361 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4362 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4363 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
4364 | # versions had trouble with output in subdirs |
---|
4365 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4366 | am__minus_obj="-o $am__obj" |
---|
4367 | case $depmode in |
---|
4368 | gcc) |
---|
4369 | # This depmode causes a compiler race in universal mode. |
---|
4370 | test "$am__universal" = false || continue |
---|
4371 | ;; |
---|
4372 | nosideeffect) |
---|
4373 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4374 | # only be used when explicitly requested |
---|
4375 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4376 | continue |
---|
4377 | else |
---|
4378 | break |
---|
4379 | fi |
---|
4380 | ;; |
---|
4381 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4382 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
4383 | # not run yet. These depmodes are late enough in the game, and |
---|
4384 | # so weak that their functioning should not be impacted. |
---|
4385 | am__obj=conftest.${OBJEXT-o} |
---|
4386 | am__minus_obj= |
---|
4387 | ;; |
---|
4388 | none) break ;; |
---|
4389 | esac |
---|
4390 | if depmode=$depmode \ |
---|
4391 | source=sub/conftest.c object=$am__obj \ |
---|
4392 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4393 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4394 | >/dev/null 2>conftest.err && |
---|
4395 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4396 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4397 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4398 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4399 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4400 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4401 | # that says an option was ignored or not supported. |
---|
4402 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4403 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4404 | # The diagnosis changed in icc 8.0: |
---|
4405 | # icc: Command line remark: option '-MP' not supported |
---|
4406 | if (grep 'ignoring option' conftest.err || |
---|
4407 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4408 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
4409 | break |
---|
4410 | fi |
---|
4411 | fi |
---|
4412 | done |
---|
4413 | |
---|
4414 | cd .. |
---|
4415 | rm -rf conftest.dir |
---|
4416 | else |
---|
4417 | am_cv_CC_dependencies_compiler_type=none |
---|
4418 | fi |
---|
4419 | |
---|
4420 | fi |
---|
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
4422 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
4423 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
4424 | |
---|
4425 | if |
---|
4426 | test "x$enable_dependency_tracking" != xno \ |
---|
4427 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
4428 | am__fastdepCC_TRUE= |
---|
4429 | am__fastdepCC_FALSE='#' |
---|
4430 | else |
---|
4431 | am__fastdepCC_TRUE='#' |
---|
4432 | am__fastdepCC_FALSE= |
---|
4433 | fi |
---|
4434 | |
---|
4435 | |
---|
4436 | |
---|
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
4438 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
4439 | set x ${MAKE-make} |
---|
4440 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
4441 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
4442 | $as_echo_n "(cached) " >&6 |
---|
4443 | else |
---|
4444 | cat >conftest.make <<\_ACEOF |
---|
4445 | SHELL = /bin/sh |
---|
4446 | all: |
---|
4447 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
4448 | _ACEOF |
---|
4449 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
4450 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
4451 | *@@@%%%=?*=@@@%%%*) |
---|
4452 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
4453 | *) |
---|
4454 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
4455 | esac |
---|
4456 | rm -f conftest.make |
---|
4457 | fi |
---|
4458 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
4460 | $as_echo "yes" >&6; } |
---|
4461 | SET_MAKE= |
---|
4462 | else |
---|
4463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4464 | $as_echo "no" >&6; } |
---|
4465 | SET_MAKE="MAKE=${MAKE-make}" |
---|
4466 | fi |
---|
4467 | |
---|
4468 | |
---|
4469 | # Checks for libraries. |
---|
4470 | |
---|
4471 | # Checks for header files. |
---|
4472 | |
---|
4473 | ac_ext=c |
---|
4474 | ac_cpp='$CPP $CPPFLAGS' |
---|
4475 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4476 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4477 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
4479 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
4480 | # On Suns, sometimes $CPP names a directory. |
---|
4481 | if test -n "$CPP" && test -d "$CPP"; then |
---|
4482 | CPP= |
---|
4483 | fi |
---|
4484 | if test -z "$CPP"; then |
---|
4485 | if ${ac_cv_prog_CPP+:} false; then : |
---|
4486 | $as_echo_n "(cached) " >&6 |
---|
4487 | else |
---|
4488 | # Double quotes because CPP needs to be expanded |
---|
4489 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
4490 | do |
---|
4491 | ac_preproc_ok=false |
---|
4492 | for ac_c_preproc_warn_flag in '' yes |
---|
4493 | do |
---|
4494 | # Use a header file that comes with gcc, so configuring glibc |
---|
4495 | # with a fresh cross-compiler works. |
---|
4496 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4497 | # <limits.h> exists even on freestanding compilers. |
---|
4498 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4499 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4501 | /* end confdefs.h. */ |
---|
4502 | #ifdef __STDC__ |
---|
4503 | # include <limits.h> |
---|
4504 | #else |
---|
4505 | # include <assert.h> |
---|
4506 | #endif |
---|
4507 | Syntax error |
---|
4508 | _ACEOF |
---|
4509 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4510 | |
---|
4511 | else |
---|
4512 | # Broken: fails on valid input. |
---|
4513 | continue |
---|
4514 | fi |
---|
4515 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4516 | |
---|
4517 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4518 | # can be detected and how. |
---|
4519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4520 | /* end confdefs.h. */ |
---|
4521 | #include <ac_nonexistent.h> |
---|
4522 | _ACEOF |
---|
4523 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4524 | # Broken: success on invalid input. |
---|
4525 | continue |
---|
4526 | else |
---|
4527 | # Passes both tests. |
---|
4528 | ac_preproc_ok=: |
---|
4529 | break |
---|
4530 | fi |
---|
4531 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4532 | |
---|
4533 | done |
---|
4534 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4535 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4536 | if $ac_preproc_ok; then : |
---|
4537 | break |
---|
4538 | fi |
---|
4539 | |
---|
4540 | done |
---|
4541 | ac_cv_prog_CPP=$CPP |
---|
4542 | |
---|
4543 | fi |
---|
4544 | CPP=$ac_cv_prog_CPP |
---|
4545 | else |
---|
4546 | ac_cv_prog_CPP=$CPP |
---|
4547 | fi |
---|
4548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
4549 | $as_echo "$CPP" >&6; } |
---|
4550 | ac_preproc_ok=false |
---|
4551 | for ac_c_preproc_warn_flag in '' yes |
---|
4552 | do |
---|
4553 | # Use a header file that comes with gcc, so configuring glibc |
---|
4554 | # with a fresh cross-compiler works. |
---|
4555 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4556 | # <limits.h> exists even on freestanding compilers. |
---|
4557 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4558 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4560 | /* end confdefs.h. */ |
---|
4561 | #ifdef __STDC__ |
---|
4562 | # include <limits.h> |
---|
4563 | #else |
---|
4564 | # include <assert.h> |
---|
4565 | #endif |
---|
4566 | Syntax error |
---|
4567 | _ACEOF |
---|
4568 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4569 | |
---|
4570 | else |
---|
4571 | # Broken: fails on valid input. |
---|
4572 | continue |
---|
4573 | fi |
---|
4574 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4575 | |
---|
4576 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4577 | # can be detected and how. |
---|
4578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4579 | /* end confdefs.h. */ |
---|
4580 | #include <ac_nonexistent.h> |
---|
4581 | _ACEOF |
---|
4582 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4583 | # Broken: success on invalid input. |
---|
4584 | continue |
---|
4585 | else |
---|
4586 | # Passes both tests. |
---|
4587 | ac_preproc_ok=: |
---|
4588 | break |
---|
4589 | fi |
---|
4590 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4591 | |
---|
4592 | done |
---|
4593 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4594 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4595 | if $ac_preproc_ok; then : |
---|
4596 | |
---|
4597 | else |
---|
4598 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4599 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4600 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
4601 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4602 | fi |
---|
4603 | |
---|
4604 | ac_ext=c |
---|
4605 | ac_cpp='$CPP $CPPFLAGS' |
---|
4606 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4607 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4608 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4609 | |
---|
4610 | |
---|
4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
4612 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
4613 | if ${ac_cv_path_GREP+:} false; then : |
---|
4614 | $as_echo_n "(cached) " >&6 |
---|
4615 | else |
---|
4616 | if test -z "$GREP"; then |
---|
4617 | ac_path_GREP_found=false |
---|
4618 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4620 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4621 | do |
---|
4622 | IFS=$as_save_IFS |
---|
4623 | test -z "$as_dir" && as_dir=. |
---|
4624 | for ac_prog in grep ggrep; do |
---|
4625 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4626 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4627 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
4628 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
4629 | # Check for GNU $ac_path_GREP |
---|
4630 | case `"$ac_path_GREP" --version 2>&1` in |
---|
4631 | *GNU*) |
---|
4632 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
4633 | *) |
---|
4634 | ac_count=0 |
---|
4635 | $as_echo_n 0123456789 >"conftest.in" |
---|
4636 | while : |
---|
4637 | do |
---|
4638 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4639 | mv "conftest.tmp" "conftest.in" |
---|
4640 | cp "conftest.in" "conftest.nl" |
---|
4641 | $as_echo 'GREP' >> "conftest.nl" |
---|
4642 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4643 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4644 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4645 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
4646 | # Best one so far, save it but keep looking for a better one |
---|
4647 | ac_cv_path_GREP="$ac_path_GREP" |
---|
4648 | ac_path_GREP_max=$ac_count |
---|
4649 | fi |
---|
4650 | # 10*(2^10) chars as input seems more than enough |
---|
4651 | test $ac_count -gt 10 && break |
---|
4652 | done |
---|
4653 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4654 | esac |
---|
4655 | |
---|
4656 | $ac_path_GREP_found && break 3 |
---|
4657 | done |
---|
4658 | done |
---|
4659 | done |
---|
4660 | IFS=$as_save_IFS |
---|
4661 | if test -z "$ac_cv_path_GREP"; then |
---|
4662 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4663 | fi |
---|
4664 | else |
---|
4665 | ac_cv_path_GREP=$GREP |
---|
4666 | fi |
---|
4667 | |
---|
4668 | fi |
---|
4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
4670 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
4671 | GREP="$ac_cv_path_GREP" |
---|
4672 | |
---|
4673 | |
---|
4674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
4675 | $as_echo_n "checking for egrep... " >&6; } |
---|
4676 | if ${ac_cv_path_EGREP+:} false; then : |
---|
4677 | $as_echo_n "(cached) " >&6 |
---|
4678 | else |
---|
4679 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
4680 | then ac_cv_path_EGREP="$GREP -E" |
---|
4681 | else |
---|
4682 | if test -z "$EGREP"; then |
---|
4683 | ac_path_EGREP_found=false |
---|
4684 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4686 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4687 | do |
---|
4688 | IFS=$as_save_IFS |
---|
4689 | test -z "$as_dir" && as_dir=. |
---|
4690 | for ac_prog in egrep; do |
---|
4691 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4692 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4693 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
4694 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
4695 | # Check for GNU $ac_path_EGREP |
---|
4696 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
4697 | *GNU*) |
---|
4698 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
4699 | *) |
---|
4700 | ac_count=0 |
---|
4701 | $as_echo_n 0123456789 >"conftest.in" |
---|
4702 | while : |
---|
4703 | do |
---|
4704 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4705 | mv "conftest.tmp" "conftest.in" |
---|
4706 | cp "conftest.in" "conftest.nl" |
---|
4707 | $as_echo 'EGREP' >> "conftest.nl" |
---|
4708 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4709 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4710 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4711 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
4712 | # Best one so far, save it but keep looking for a better one |
---|
4713 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
4714 | ac_path_EGREP_max=$ac_count |
---|
4715 | fi |
---|
4716 | # 10*(2^10) chars as input seems more than enough |
---|
4717 | test $ac_count -gt 10 && break |
---|
4718 | done |
---|
4719 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4720 | esac |
---|
4721 | |
---|
4722 | $ac_path_EGREP_found && break 3 |
---|
4723 | done |
---|
4724 | done |
---|
4725 | done |
---|
4726 | IFS=$as_save_IFS |
---|
4727 | if test -z "$ac_cv_path_EGREP"; then |
---|
4728 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4729 | fi |
---|
4730 | else |
---|
4731 | ac_cv_path_EGREP=$EGREP |
---|
4732 | fi |
---|
4733 | |
---|
4734 | fi |
---|
4735 | fi |
---|
4736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
4737 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
4738 | EGREP="$ac_cv_path_EGREP" |
---|
4739 | |
---|
4740 | |
---|
4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
4742 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
4743 | if ${ac_cv_header_stdc+:} false; then : |
---|
4744 | $as_echo_n "(cached) " >&6 |
---|
4745 | else |
---|
4746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4747 | /* end confdefs.h. */ |
---|
4748 | #include <stdlib.h> |
---|
4749 | #include <stdarg.h> |
---|
4750 | #include <string.h> |
---|
4751 | #include <float.h> |
---|
4752 | |
---|
4753 | int |
---|
4754 | main () |
---|
4755 | { |
---|
4756 | |
---|
4757 | ; |
---|
4758 | return 0; |
---|
4759 | } |
---|
4760 | _ACEOF |
---|
4761 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4762 | ac_cv_header_stdc=yes |
---|
4763 | else |
---|
4764 | ac_cv_header_stdc=no |
---|
4765 | fi |
---|
4766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4767 | |
---|
4768 | if test $ac_cv_header_stdc = yes; then |
---|
4769 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4771 | /* end confdefs.h. */ |
---|
4772 | #include <string.h> |
---|
4773 | |
---|
4774 | _ACEOF |
---|
4775 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4776 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
4777 | |
---|
4778 | else |
---|
4779 | ac_cv_header_stdc=no |
---|
4780 | fi |
---|
4781 | rm -f conftest* |
---|
4782 | |
---|
4783 | fi |
---|
4784 | |
---|
4785 | if test $ac_cv_header_stdc = yes; then |
---|
4786 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4788 | /* end confdefs.h. */ |
---|
4789 | #include <stdlib.h> |
---|
4790 | |
---|
4791 | _ACEOF |
---|
4792 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4793 | $EGREP "free" >/dev/null 2>&1; then : |
---|
4794 | |
---|
4795 | else |
---|
4796 | ac_cv_header_stdc=no |
---|
4797 | fi |
---|
4798 | rm -f conftest* |
---|
4799 | |
---|
4800 | fi |
---|
4801 | |
---|
4802 | if test $ac_cv_header_stdc = yes; then |
---|
4803 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4804 | if test "$cross_compiling" = yes; then : |
---|
4805 | : |
---|
4806 | else |
---|
4807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4808 | /* end confdefs.h. */ |
---|
4809 | #include <ctype.h> |
---|
4810 | #include <stdlib.h> |
---|
4811 | #if ((' ' & 0x0FF) == 0x020) |
---|
4812 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4813 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4814 | #else |
---|
4815 | # define ISLOWER(c) \ |
---|
4816 | (('a' <= (c) && (c) <= 'i') \ |
---|
4817 | || ('j' <= (c) && (c) <= 'r') \ |
---|
4818 | || ('s' <= (c) && (c) <= 'z')) |
---|
4819 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
4820 | #endif |
---|
4821 | |
---|
4822 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4823 | int |
---|
4824 | main () |
---|
4825 | { |
---|
4826 | int i; |
---|
4827 | for (i = 0; i < 256; i++) |
---|
4828 | if (XOR (islower (i), ISLOWER (i)) |
---|
4829 | || toupper (i) != TOUPPER (i)) |
---|
4830 | return 2; |
---|
4831 | return 0; |
---|
4832 | } |
---|
4833 | _ACEOF |
---|
4834 | if ac_fn_c_try_run "$LINENO"; then : |
---|
4835 | |
---|
4836 | else |
---|
4837 | ac_cv_header_stdc=no |
---|
4838 | fi |
---|
4839 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
4840 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
4841 | fi |
---|
4842 | |
---|
4843 | fi |
---|
4844 | fi |
---|
4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
4846 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
4847 | if test $ac_cv_header_stdc = yes; then |
---|
4848 | |
---|
4849 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
4850 | |
---|
4851 | fi |
---|
4852 | |
---|
4853 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4854 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4855 | inttypes.h stdint.h unistd.h |
---|
4856 | do : |
---|
4857 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4858 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
4859 | " |
---|
4860 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
4861 | cat >>confdefs.h <<_ACEOF |
---|
4862 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4863 | _ACEOF |
---|
4864 | |
---|
4865 | fi |
---|
4866 | |
---|
4867 | done |
---|
4868 | |
---|
4869 | |
---|
4870 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
4871 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
4872 | |
---|
4873 | else |
---|
4874 | |
---|
4875 | cat >>confdefs.h <<_ACEOF |
---|
4876 | #define size_t unsigned int |
---|
4877 | _ACEOF |
---|
4878 | |
---|
4879 | fi |
---|
4880 | |
---|
4881 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
4882 | # for constant arguments. Useless! |
---|
4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
---|
4884 | $as_echo_n "checking for working alloca.h... " >&6; } |
---|
4885 | if ${ac_cv_working_alloca_h+:} false; then : |
---|
4886 | $as_echo_n "(cached) " >&6 |
---|
4887 | else |
---|
4888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4889 | /* end confdefs.h. */ |
---|
4890 | #include <alloca.h> |
---|
4891 | int |
---|
4892 | main () |
---|
4893 | { |
---|
4894 | char *p = (char *) alloca (2 * sizeof (int)); |
---|
4895 | if (p) return 0; |
---|
4896 | ; |
---|
4897 | return 0; |
---|
4898 | } |
---|
4899 | _ACEOF |
---|
4900 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4901 | ac_cv_working_alloca_h=yes |
---|
4902 | else |
---|
4903 | ac_cv_working_alloca_h=no |
---|
4904 | fi |
---|
4905 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4906 | conftest$ac_exeext conftest.$ac_ext |
---|
4907 | fi |
---|
4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
---|
4909 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
---|
4910 | if test $ac_cv_working_alloca_h = yes; then |
---|
4911 | |
---|
4912 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
---|
4913 | |
---|
4914 | fi |
---|
4915 | |
---|
4916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
---|
4917 | $as_echo_n "checking for alloca... " >&6; } |
---|
4918 | if ${ac_cv_func_alloca_works+:} false; then : |
---|
4919 | $as_echo_n "(cached) " >&6 |
---|
4920 | else |
---|
4921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4922 | /* end confdefs.h. */ |
---|
4923 | #ifdef __GNUC__ |
---|
4924 | # define alloca __builtin_alloca |
---|
4925 | #else |
---|
4926 | # ifdef _MSC_VER |
---|
4927 | # include <malloc.h> |
---|
4928 | # define alloca _alloca |
---|
4929 | # else |
---|
4930 | # ifdef HAVE_ALLOCA_H |
---|
4931 | # include <alloca.h> |
---|
4932 | # else |
---|
4933 | # ifdef _AIX |
---|
4934 | #pragma alloca |
---|
4935 | # else |
---|
4936 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
4937 | void *alloca (size_t); |
---|
4938 | # endif |
---|
4939 | # endif |
---|
4940 | # endif |
---|
4941 | # endif |
---|
4942 | #endif |
---|
4943 | |
---|
4944 | int |
---|
4945 | main () |
---|
4946 | { |
---|
4947 | char *p = (char *) alloca (1); |
---|
4948 | if (p) return 0; |
---|
4949 | ; |
---|
4950 | return 0; |
---|
4951 | } |
---|
4952 | _ACEOF |
---|
4953 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4954 | ac_cv_func_alloca_works=yes |
---|
4955 | else |
---|
4956 | ac_cv_func_alloca_works=no |
---|
4957 | fi |
---|
4958 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4959 | conftest$ac_exeext conftest.$ac_ext |
---|
4960 | fi |
---|
4961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
---|
4962 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
---|
4963 | |
---|
4964 | if test $ac_cv_func_alloca_works = yes; then |
---|
4965 | |
---|
4966 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
---|
4967 | |
---|
4968 | else |
---|
4969 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
4970 | # that cause trouble. Some versions do not even contain alloca or |
---|
4971 | # contain a buggy version. If you still want to use their alloca, |
---|
4972 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
4973 | |
---|
4974 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
---|
4975 | |
---|
4976 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
---|
4977 | |
---|
4978 | |
---|
4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
---|
4980 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
---|
4981 | if ${ac_cv_os_cray+:} false; then : |
---|
4982 | $as_echo_n "(cached) " >&6 |
---|
4983 | else |
---|
4984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4985 | /* end confdefs.h. */ |
---|
4986 | #if defined CRAY && ! defined CRAY2 |
---|
4987 | webecray |
---|
4988 | #else |
---|
4989 | wenotbecray |
---|
4990 | #endif |
---|
4991 | |
---|
4992 | _ACEOF |
---|
4993 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4994 | $EGREP "webecray" >/dev/null 2>&1; then : |
---|
4995 | ac_cv_os_cray=yes |
---|
4996 | else |
---|
4997 | ac_cv_os_cray=no |
---|
4998 | fi |
---|
4999 | rm -f conftest* |
---|
5000 | |
---|
5001 | fi |
---|
5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
---|
5003 | $as_echo "$ac_cv_os_cray" >&6; } |
---|
5004 | if test $ac_cv_os_cray = yes; then |
---|
5005 | for ac_func in _getb67 GETB67 getb67; do |
---|
5006 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5007 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
5008 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
5009 | |
---|
5010 | cat >>confdefs.h <<_ACEOF |
---|
5011 | #define CRAY_STACKSEG_END $ac_func |
---|
5012 | _ACEOF |
---|
5013 | |
---|
5014 | break |
---|
5015 | fi |
---|
5016 | |
---|
5017 | done |
---|
5018 | fi |
---|
5019 | |
---|
5020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
---|
5021 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
---|
5022 | if ${ac_cv_c_stack_direction+:} false; then : |
---|
5023 | $as_echo_n "(cached) " >&6 |
---|
5024 | else |
---|
5025 | if test "$cross_compiling" = yes; then : |
---|
5026 | ac_cv_c_stack_direction=0 |
---|
5027 | else |
---|
5028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5029 | /* end confdefs.h. */ |
---|
5030 | $ac_includes_default |
---|
5031 | int |
---|
5032 | find_stack_direction () |
---|
5033 | { |
---|
5034 | static char *addr = 0; |
---|
5035 | auto char dummy; |
---|
5036 | if (addr == 0) |
---|
5037 | { |
---|
5038 | addr = &dummy; |
---|
5039 | return find_stack_direction (); |
---|
5040 | } |
---|
5041 | else |
---|
5042 | return (&dummy > addr) ? 1 : -1; |
---|
5043 | } |
---|
5044 | |
---|
5045 | int |
---|
5046 | main () |
---|
5047 | { |
---|
5048 | return find_stack_direction () < 0; |
---|
5049 | } |
---|
5050 | _ACEOF |
---|
5051 | if ac_fn_c_try_run "$LINENO"; then : |
---|
5052 | ac_cv_c_stack_direction=1 |
---|
5053 | else |
---|
5054 | ac_cv_c_stack_direction=-1 |
---|
5055 | fi |
---|
5056 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5057 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5058 | fi |
---|
5059 | |
---|
5060 | fi |
---|
5061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
---|
5062 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
---|
5063 | cat >>confdefs.h <<_ACEOF |
---|
5064 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
5065 | _ACEOF |
---|
5066 | |
---|
5067 | |
---|
5068 | fi |
---|
5069 | |
---|
5070 | for ac_header in fenv.h float.h inttypes.h libintl.h limits.h malloc.h stddef.h stdlib.h string.h unistd.h |
---|
5071 | do : |
---|
5072 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5073 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
5074 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
5075 | cat >>confdefs.h <<_ACEOF |
---|
5076 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5077 | _ACEOF |
---|
5078 | |
---|
5079 | fi |
---|
5080 | |
---|
5081 | done |
---|
5082 | |
---|
5083 | |
---|
5084 | # Checks for typedefs, structures, and compiler characteristics. |
---|
5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
---|
5086 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
---|
5087 | if ${ac_cv_header_stdbool_h+:} false; then : |
---|
5088 | $as_echo_n "(cached) " >&6 |
---|
5089 | else |
---|
5090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5091 | /* end confdefs.h. */ |
---|
5092 | |
---|
5093 | #include <stdbool.h> |
---|
5094 | #ifndef bool |
---|
5095 | "error: bool is not defined" |
---|
5096 | #endif |
---|
5097 | #ifndef false |
---|
5098 | "error: false is not defined" |
---|
5099 | #endif |
---|
5100 | #if false |
---|
5101 | "error: false is not 0" |
---|
5102 | #endif |
---|
5103 | #ifndef true |
---|
5104 | "error: true is not defined" |
---|
5105 | #endif |
---|
5106 | #if true != 1 |
---|
5107 | "error: true is not 1" |
---|
5108 | #endif |
---|
5109 | #ifndef __bool_true_false_are_defined |
---|
5110 | "error: __bool_true_false_are_defined is not defined" |
---|
5111 | #endif |
---|
5112 | |
---|
5113 | struct s { _Bool s: 1; _Bool t; } s; |
---|
5114 | |
---|
5115 | char a[true == 1 ? 1 : -1]; |
---|
5116 | char b[false == 0 ? 1 : -1]; |
---|
5117 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
5118 | char d[(bool) 0.5 == true ? 1 : -1]; |
---|
5119 | /* See body of main program for 'e'. */ |
---|
5120 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
---|
5121 | char g[true]; |
---|
5122 | char h[sizeof (_Bool)]; |
---|
5123 | char i[sizeof s.t]; |
---|
5124 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
---|
5125 | /* The following fails for |
---|
5126 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
---|
5127 | _Bool n[m]; |
---|
5128 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
---|
5129 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
---|
5130 | /* Catch a bug in an HP-UX C compiler. See |
---|
5131 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
---|
5132 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
---|
5133 | */ |
---|
5134 | _Bool q = true; |
---|
5135 | _Bool *pq = &q; |
---|
5136 | |
---|
5137 | int |
---|
5138 | main () |
---|
5139 | { |
---|
5140 | |
---|
5141 | bool e = &s; |
---|
5142 | *pq |= q; |
---|
5143 | *pq |= ! q; |
---|
5144 | /* Refer to every declared value, to avoid compiler optimizations. */ |
---|
5145 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
---|
5146 | + !m + !n + !o + !p + !q + !pq); |
---|
5147 | |
---|
5148 | ; |
---|
5149 | return 0; |
---|
5150 | } |
---|
5151 | _ACEOF |
---|
5152 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5153 | ac_cv_header_stdbool_h=yes |
---|
5154 | else |
---|
5155 | ac_cv_header_stdbool_h=no |
---|
5156 | fi |
---|
5157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5158 | fi |
---|
5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
---|
5160 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
---|
5161 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
---|
5162 | if test "x$ac_cv_type__Bool" = xyes; then : |
---|
5163 | |
---|
5164 | cat >>confdefs.h <<_ACEOF |
---|
5165 | #define HAVE__BOOL 1 |
---|
5166 | _ACEOF |
---|
5167 | |
---|
5168 | |
---|
5169 | fi |
---|
5170 | |
---|
5171 | if test $ac_cv_header_stdbool_h = yes; then |
---|
5172 | |
---|
5173 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
---|
5174 | |
---|
5175 | fi |
---|
5176 | |
---|
5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
---|
5178 | $as_echo_n "checking for inline... " >&6; } |
---|
5179 | if ${ac_cv_c_inline+:} false; then : |
---|
5180 | $as_echo_n "(cached) " >&6 |
---|
5181 | else |
---|
5182 | ac_cv_c_inline=no |
---|
5183 | for ac_kw in inline __inline__ __inline; do |
---|
5184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5185 | /* end confdefs.h. */ |
---|
5186 | #ifndef __cplusplus |
---|
5187 | typedef int foo_t; |
---|
5188 | static $ac_kw foo_t static_foo () {return 0; } |
---|
5189 | $ac_kw foo_t foo () {return 0; } |
---|
5190 | #endif |
---|
5191 | |
---|
5192 | _ACEOF |
---|
5193 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5194 | ac_cv_c_inline=$ac_kw |
---|
5195 | fi |
---|
5196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5197 | test "$ac_cv_c_inline" != no && break |
---|
5198 | done |
---|
5199 | |
---|
5200 | fi |
---|
5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
---|
5202 | $as_echo "$ac_cv_c_inline" >&6; } |
---|
5203 | |
---|
5204 | case $ac_cv_c_inline in |
---|
5205 | inline | yes) ;; |
---|
5206 | *) |
---|
5207 | case $ac_cv_c_inline in |
---|
5208 | no) ac_val=;; |
---|
5209 | *) ac_val=$ac_cv_c_inline;; |
---|
5210 | esac |
---|
5211 | cat >>confdefs.h <<_ACEOF |
---|
5212 | #ifndef __cplusplus |
---|
5213 | #define inline $ac_val |
---|
5214 | #endif |
---|
5215 | _ACEOF |
---|
5216 | ;; |
---|
5217 | esac |
---|
5218 | |
---|
5219 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
---|
5220 | case $ac_cv_c_int16_t in #( |
---|
5221 | no|yes) ;; #( |
---|
5222 | *) |
---|
5223 | |
---|
5224 | cat >>confdefs.h <<_ACEOF |
---|
5225 | #define int16_t $ac_cv_c_int16_t |
---|
5226 | _ACEOF |
---|
5227 | ;; |
---|
5228 | esac |
---|
5229 | |
---|
5230 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
---|
5231 | case $ac_cv_c_int32_t in #( |
---|
5232 | no|yes) ;; #( |
---|
5233 | *) |
---|
5234 | |
---|
5235 | cat >>confdefs.h <<_ACEOF |
---|
5236 | #define int32_t $ac_cv_c_int32_t |
---|
5237 | _ACEOF |
---|
5238 | ;; |
---|
5239 | esac |
---|
5240 | |
---|
5241 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
---|
5242 | case $ac_cv_c_int8_t in #( |
---|
5243 | no|yes) ;; #( |
---|
5244 | *) |
---|
5245 | |
---|
5246 | cat >>confdefs.h <<_ACEOF |
---|
5247 | #define int8_t $ac_cv_c_int8_t |
---|
5248 | _ACEOF |
---|
5249 | ;; |
---|
5250 | esac |
---|
5251 | |
---|
5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
---|
5253 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
---|
5254 | if ${ac_cv_c_restrict+:} false; then : |
---|
5255 | $as_echo_n "(cached) " >&6 |
---|
5256 | else |
---|
5257 | ac_cv_c_restrict=no |
---|
5258 | # The order here caters to the fact that C++ does not require restrict. |
---|
5259 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
---|
5260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5261 | /* end confdefs.h. */ |
---|
5262 | typedef int * int_ptr; |
---|
5263 | int foo (int_ptr $ac_kw ip) { |
---|
5264 | return ip[0]; |
---|
5265 | } |
---|
5266 | int |
---|
5267 | main () |
---|
5268 | { |
---|
5269 | int s[1]; |
---|
5270 | int * $ac_kw t = s; |
---|
5271 | t[0] = 0; |
---|
5272 | return foo(t) |
---|
5273 | ; |
---|
5274 | return 0; |
---|
5275 | } |
---|
5276 | _ACEOF |
---|
5277 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5278 | ac_cv_c_restrict=$ac_kw |
---|
5279 | fi |
---|
5280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5281 | test "$ac_cv_c_restrict" != no && break |
---|
5282 | done |
---|
5283 | |
---|
5284 | fi |
---|
5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
---|
5286 | $as_echo "$ac_cv_c_restrict" >&6; } |
---|
5287 | |
---|
5288 | case $ac_cv_c_restrict in |
---|
5289 | restrict) ;; |
---|
5290 | no) $as_echo "#define restrict /**/" >>confdefs.h |
---|
5291 | ;; |
---|
5292 | *) cat >>confdefs.h <<_ACEOF |
---|
5293 | #define restrict $ac_cv_c_restrict |
---|
5294 | _ACEOF |
---|
5295 | ;; |
---|
5296 | esac |
---|
5297 | |
---|
5298 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
5299 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
5300 | |
---|
5301 | else |
---|
5302 | |
---|
5303 | cat >>confdefs.h <<_ACEOF |
---|
5304 | #define size_t unsigned int |
---|
5305 | _ACEOF |
---|
5306 | |
---|
5307 | fi |
---|
5308 | |
---|
5309 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
---|
5310 | case $ac_cv_c_uint16_t in #( |
---|
5311 | no|yes) ;; #( |
---|
5312 | *) |
---|
5313 | |
---|
5314 | |
---|
5315 | cat >>confdefs.h <<_ACEOF |
---|
5316 | #define uint16_t $ac_cv_c_uint16_t |
---|
5317 | _ACEOF |
---|
5318 | ;; |
---|
5319 | esac |
---|
5320 | |
---|
5321 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
---|
5322 | case $ac_cv_c_uint32_t in #( |
---|
5323 | no|yes) ;; #( |
---|
5324 | *) |
---|
5325 | |
---|
5326 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
---|
5327 | |
---|
5328 | |
---|
5329 | cat >>confdefs.h <<_ACEOF |
---|
5330 | #define uint32_t $ac_cv_c_uint32_t |
---|
5331 | _ACEOF |
---|
5332 | ;; |
---|
5333 | esac |
---|
5334 | |
---|
5335 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
---|
5336 | case $ac_cv_c_uint8_t in #( |
---|
5337 | no|yes) ;; #( |
---|
5338 | *) |
---|
5339 | |
---|
5340 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
---|
5341 | |
---|
5342 | |
---|
5343 | cat >>confdefs.h <<_ACEOF |
---|
5344 | #define uint8_t $ac_cv_c_uint8_t |
---|
5345 | _ACEOF |
---|
5346 | ;; |
---|
5347 | esac |
---|
5348 | |
---|
5349 | |
---|
5350 | # Checks for library functions. |
---|
5351 | for ac_func in memset putenv strchr strtol |
---|
5352 | do : |
---|
5353 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5354 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
5355 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
5356 | cat >>confdefs.h <<_ACEOF |
---|
5357 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
5358 | _ACEOF |
---|
5359 | |
---|
5360 | fi |
---|
5361 | done |
---|
5362 | |
---|
5363 | |
---|
5364 | ac_config_files="$ac_config_files Makefile src/Makefile driver/Makefile libcfa/Makefile src/examples/Makefile" |
---|
5365 | |
---|
5366 | |
---|
5367 | cat >confcache <<\_ACEOF |
---|
5368 | # This file is a shell script that caches the results of configure |
---|
5369 | # tests run on this system so they can be shared between configure |
---|
5370 | # scripts and configure runs, see configure's option --config-cache. |
---|
5371 | # It is not useful on other systems. If it contains results you don't |
---|
5372 | # want to keep, you may remove or edit it. |
---|
5373 | # |
---|
5374 | # config.status only pays attention to the cache file if you give it |
---|
5375 | # the --recheck option to rerun configure. |
---|
5376 | # |
---|
5377 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
5378 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
5379 | # following values. |
---|
5380 | |
---|
5381 | _ACEOF |
---|
5382 | |
---|
5383 | # The following way of writing the cache mishandles newlines in values, |
---|
5384 | # but we know of no workaround that is simple, portable, and efficient. |
---|
5385 | # So, we kill variables containing newlines. |
---|
5386 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
5387 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
5388 | ( |
---|
5389 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
5390 | eval ac_val=\$$ac_var |
---|
5391 | case $ac_val in #( |
---|
5392 | *${as_nl}*) |
---|
5393 | case $ac_var in #( |
---|
5394 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
5395 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
5396 | esac |
---|
5397 | case $ac_var in #( |
---|
5398 | _ | IFS | as_nl) ;; #( |
---|
5399 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
5400 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
5401 | esac ;; |
---|
5402 | esac |
---|
5403 | done |
---|
5404 | |
---|
5405 | (set) 2>&1 | |
---|
5406 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
5407 | *${as_nl}ac_space=\ *) |
---|
5408 | # `set' does not quote correctly, so add quotes: double-quote |
---|
5409 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
5410 | sed -n \ |
---|
5411 | "s/'/'\\\\''/g; |
---|
5412 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
5413 | ;; #( |
---|
5414 | *) |
---|
5415 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
5416 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
5417 | ;; |
---|
5418 | esac | |
---|
5419 | sort |
---|
5420 | ) | |
---|
5421 | sed ' |
---|
5422 | /^ac_cv_env_/b end |
---|
5423 | t clear |
---|
5424 | :clear |
---|
5425 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
5426 | t end |
---|
5427 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
5428 | :end' >>confcache |
---|
5429 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
5430 | if test -w "$cache_file"; then |
---|
5431 | if test "x$cache_file" != "x/dev/null"; then |
---|
5432 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
5433 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
5434 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
5435 | cat confcache >"$cache_file" |
---|
5436 | else |
---|
5437 | case $cache_file in #( |
---|
5438 | */* | ?:*) |
---|
5439 | mv -f confcache "$cache_file"$$ && |
---|
5440 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
5441 | *) |
---|
5442 | mv -f confcache "$cache_file" ;; |
---|
5443 | esac |
---|
5444 | fi |
---|
5445 | fi |
---|
5446 | else |
---|
5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
5448 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
5449 | fi |
---|
5450 | fi |
---|
5451 | rm -f confcache |
---|
5452 | |
---|
5453 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
5454 | # Let make expand exec_prefix. |
---|
5455 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
5456 | |
---|
5457 | DEFS=-DHAVE_CONFIG_H |
---|
5458 | |
---|
5459 | ac_libobjs= |
---|
5460 | ac_ltlibobjs= |
---|
5461 | U= |
---|
5462 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
5463 | # 1. Remove the extension, and $U if already installed. |
---|
5464 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
5465 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
5466 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
5467 | # will be set to the directory where LIBOBJS objects are built. |
---|
5468 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
5469 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
5470 | done |
---|
5471 | LIBOBJS=$ac_libobjs |
---|
5472 | |
---|
5473 | LTLIBOBJS=$ac_ltlibobjs |
---|
5474 | |
---|
5475 | |
---|
5476 | if test -n "$EXEEXT"; then |
---|
5477 | am__EXEEXT_TRUE= |
---|
5478 | am__EXEEXT_FALSE='#' |
---|
5479 | else |
---|
5480 | am__EXEEXT_TRUE='#' |
---|
5481 | am__EXEEXT_FALSE= |
---|
5482 | fi |
---|
5483 | |
---|
5484 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
---|
5485 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
---|
5486 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
5487 | fi |
---|
5488 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
5489 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
---|
5490 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
5491 | fi |
---|
5492 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
5493 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
---|
5494 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
5495 | fi |
---|
5496 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
5497 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
---|
5498 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
5499 | fi |
---|
5500 | |
---|
5501 | : "${CONFIG_STATUS=./config.status}" |
---|
5502 | ac_write_fail=0 |
---|
5503 | ac_clean_files_save=$ac_clean_files |
---|
5504 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
5506 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
5507 | as_write_fail=0 |
---|
5508 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
5509 | #! $SHELL |
---|
5510 | # Generated by $as_me. |
---|
5511 | # Run this file to recreate the current configuration. |
---|
5512 | # Compiler output produced by configure, useful for debugging |
---|
5513 | # configure, is in config.log if it exists. |
---|
5514 | |
---|
5515 | debug=false |
---|
5516 | ac_cs_recheck=false |
---|
5517 | ac_cs_silent=false |
---|
5518 | |
---|
5519 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
5520 | export SHELL |
---|
5521 | _ASEOF |
---|
5522 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
5523 | ## -------------------- ## |
---|
5524 | ## M4sh Initialization. ## |
---|
5525 | ## -------------------- ## |
---|
5526 | |
---|
5527 | # Be more Bourne compatible |
---|
5528 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
5529 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
5530 | emulate sh |
---|
5531 | NULLCMD=: |
---|
5532 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
5533 | # is contrary to our usage. Disable this feature. |
---|
5534 | alias -g '${1+"$@"}'='"$@"' |
---|
5535 | setopt NO_GLOB_SUBST |
---|
5536 | else |
---|
5537 | case `(set -o) 2>/dev/null` in #( |
---|
5538 | *posix*) : |
---|
5539 | set -o posix ;; #( |
---|
5540 | *) : |
---|
5541 | ;; |
---|
5542 | esac |
---|
5543 | fi |
---|
5544 | |
---|
5545 | |
---|
5546 | as_nl=' |
---|
5547 | ' |
---|
5548 | export as_nl |
---|
5549 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
5550 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
5551 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
5552 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
5553 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
5554 | # but without wasting forks for bash or zsh. |
---|
5555 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
5556 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
5557 | as_echo='print -r --' |
---|
5558 | as_echo_n='print -rn --' |
---|
5559 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
5560 | as_echo='printf %s\n' |
---|
5561 | as_echo_n='printf %s' |
---|
5562 | else |
---|
5563 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
5564 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
5565 | as_echo_n='/usr/ucb/echo -n' |
---|
5566 | else |
---|
5567 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
5568 | as_echo_n_body='eval |
---|
5569 | arg=$1; |
---|
5570 | case $arg in #( |
---|
5571 | *"$as_nl"*) |
---|
5572 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
5573 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
5574 | esac; |
---|
5575 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
5576 | ' |
---|
5577 | export as_echo_n_body |
---|
5578 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
5579 | fi |
---|
5580 | export as_echo_body |
---|
5581 | as_echo='sh -c $as_echo_body as_echo' |
---|
5582 | fi |
---|
5583 | |
---|
5584 | # The user is always right. |
---|
5585 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
5586 | PATH_SEPARATOR=: |
---|
5587 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
5588 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
5589 | PATH_SEPARATOR=';' |
---|
5590 | } |
---|
5591 | fi |
---|
5592 | |
---|
5593 | |
---|
5594 | # IFS |
---|
5595 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
5596 | # there to prevent editors from complaining about space-tab. |
---|
5597 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
5598 | # splitting by setting IFS to empty value.) |
---|
5599 | IFS=" "" $as_nl" |
---|
5600 | |
---|
5601 | # Find who we are. Look in the path if we contain no directory separator. |
---|
5602 | as_myself= |
---|
5603 | case $0 in #(( |
---|
5604 | *[\\/]* ) as_myself=$0 ;; |
---|
5605 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5606 | for as_dir in $PATH |
---|
5607 | do |
---|
5608 | IFS=$as_save_IFS |
---|
5609 | test -z "$as_dir" && as_dir=. |
---|
5610 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
5611 | done |
---|
5612 | IFS=$as_save_IFS |
---|
5613 | |
---|
5614 | ;; |
---|
5615 | esac |
---|
5616 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
5617 | # in which case we are not to be found in the path. |
---|
5618 | if test "x$as_myself" = x; then |
---|
5619 | as_myself=$0 |
---|
5620 | fi |
---|
5621 | if test ! -f "$as_myself"; then |
---|
5622 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
5623 | exit 1 |
---|
5624 | fi |
---|
5625 | |
---|
5626 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
5627 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
5628 | # suppresses any "Segmentation fault" message there. '((' could |
---|
5629 | # trigger a bug in pdksh 5.2.14. |
---|
5630 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
5631 | do eval test x\${$as_var+set} = xset \ |
---|
5632 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
5633 | done |
---|
5634 | PS1='$ ' |
---|
5635 | PS2='> ' |
---|
5636 | PS4='+ ' |
---|
5637 | |
---|
5638 | # NLS nuisances. |
---|
5639 | LC_ALL=C |
---|
5640 | export LC_ALL |
---|
5641 | LANGUAGE=C |
---|
5642 | export LANGUAGE |
---|
5643 | |
---|
5644 | # CDPATH. |
---|
5645 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
5646 | |
---|
5647 | |
---|
5648 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
5649 | # ---------------------------------------- |
---|
5650 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
5651 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
5652 | # script with STATUS, using 1 if that was 0. |
---|
5653 | as_fn_error () |
---|
5654 | { |
---|
5655 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
5656 | if test "$4"; then |
---|
5657 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
5658 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
5659 | fi |
---|
5660 | $as_echo "$as_me: error: $2" >&2 |
---|
5661 | as_fn_exit $as_status |
---|
5662 | } # as_fn_error |
---|
5663 | |
---|
5664 | |
---|
5665 | # as_fn_set_status STATUS |
---|
5666 | # ----------------------- |
---|
5667 | # Set $? to STATUS, without forking. |
---|
5668 | as_fn_set_status () |
---|
5669 | { |
---|
5670 | return $1 |
---|
5671 | } # as_fn_set_status |
---|
5672 | |
---|
5673 | # as_fn_exit STATUS |
---|
5674 | # ----------------- |
---|
5675 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
5676 | as_fn_exit () |
---|
5677 | { |
---|
5678 | set +e |
---|
5679 | as_fn_set_status $1 |
---|
5680 | exit $1 |
---|
5681 | } # as_fn_exit |
---|
5682 | |
---|
5683 | # as_fn_unset VAR |
---|
5684 | # --------------- |
---|
5685 | # Portably unset VAR. |
---|
5686 | as_fn_unset () |
---|
5687 | { |
---|
5688 | { eval $1=; unset $1;} |
---|
5689 | } |
---|
5690 | as_unset=as_fn_unset |
---|
5691 | # as_fn_append VAR VALUE |
---|
5692 | # ---------------------- |
---|
5693 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
5694 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
5695 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
5696 | # implementations. |
---|
5697 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
5698 | eval 'as_fn_append () |
---|
5699 | { |
---|
5700 | eval $1+=\$2 |
---|
5701 | }' |
---|
5702 | else |
---|
5703 | as_fn_append () |
---|
5704 | { |
---|
5705 | eval $1=\$$1\$2 |
---|
5706 | } |
---|
5707 | fi # as_fn_append |
---|
5708 | |
---|
5709 | # as_fn_arith ARG... |
---|
5710 | # ------------------ |
---|
5711 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
5712 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
5713 | # must be portable across $(()) and expr. |
---|
5714 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
5715 | eval 'as_fn_arith () |
---|
5716 | { |
---|
5717 | as_val=$(( $* )) |
---|
5718 | }' |
---|
5719 | else |
---|
5720 | as_fn_arith () |
---|
5721 | { |
---|
5722 | as_val=`expr "$@" || test $? -eq 1` |
---|
5723 | } |
---|
5724 | fi # as_fn_arith |
---|
5725 | |
---|
5726 | |
---|
5727 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
5728 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
5729 | as_expr=expr |
---|
5730 | else |
---|
5731 | as_expr=false |
---|
5732 | fi |
---|
5733 | |
---|
5734 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
5735 | as_basename=basename |
---|
5736 | else |
---|
5737 | as_basename=false |
---|
5738 | fi |
---|
5739 | |
---|
5740 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
5741 | as_dirname=dirname |
---|
5742 | else |
---|
5743 | as_dirname=false |
---|
5744 | fi |
---|
5745 | |
---|
5746 | as_me=`$as_basename -- "$0" || |
---|
5747 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
5748 | X"$0" : 'X\(//\)$' \| \ |
---|
5749 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
5750 | $as_echo X/"$0" | |
---|
5751 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
5752 | s//\1/ |
---|
5753 | q |
---|
5754 | } |
---|
5755 | /^X\/\(\/\/\)$/{ |
---|
5756 | s//\1/ |
---|
5757 | q |
---|
5758 | } |
---|
5759 | /^X\/\(\/\).*/{ |
---|
5760 | s//\1/ |
---|
5761 | q |
---|
5762 | } |
---|
5763 | s/.*/./; q'` |
---|
5764 | |
---|
5765 | # Avoid depending upon Character Ranges. |
---|
5766 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
5767 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
5768 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
5769 | as_cr_digits='0123456789' |
---|
5770 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
5771 | |
---|
5772 | ECHO_C= ECHO_N= ECHO_T= |
---|
5773 | case `echo -n x` in #((((( |
---|
5774 | -n*) |
---|
5775 | case `echo 'xy\c'` in |
---|
5776 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
5777 | xy) ECHO_C='\c';; |
---|
5778 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
5779 | ECHO_T=' ';; |
---|
5780 | esac;; |
---|
5781 | *) |
---|
5782 | ECHO_N='-n';; |
---|
5783 | esac |
---|
5784 | |
---|
5785 | rm -f conf$$ conf$$.exe conf$$.file |
---|
5786 | if test -d conf$$.dir; then |
---|
5787 | rm -f conf$$.dir/conf$$.file |
---|
5788 | else |
---|
5789 | rm -f conf$$.dir |
---|
5790 | mkdir conf$$.dir 2>/dev/null |
---|
5791 | fi |
---|
5792 | if (echo >conf$$.file) 2>/dev/null; then |
---|
5793 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
5794 | as_ln_s='ln -s' |
---|
5795 | # ... but there are two gotchas: |
---|
5796 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
5797 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
5798 | # In both cases, we have to default to `cp -p'. |
---|
5799 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
5800 | as_ln_s='cp -p' |
---|
5801 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
5802 | as_ln_s=ln |
---|
5803 | else |
---|
5804 | as_ln_s='cp -p' |
---|
5805 | fi |
---|
5806 | else |
---|
5807 | as_ln_s='cp -p' |
---|
5808 | fi |
---|
5809 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
5810 | rmdir conf$$.dir 2>/dev/null |
---|
5811 | |
---|
5812 | |
---|
5813 | # as_fn_mkdir_p |
---|
5814 | # ------------- |
---|
5815 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
5816 | as_fn_mkdir_p () |
---|
5817 | { |
---|
5818 | |
---|
5819 | case $as_dir in #( |
---|
5820 | -*) as_dir=./$as_dir;; |
---|
5821 | esac |
---|
5822 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
5823 | as_dirs= |
---|
5824 | while :; do |
---|
5825 | case $as_dir in #( |
---|
5826 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
5827 | *) as_qdir=$as_dir;; |
---|
5828 | esac |
---|
5829 | as_dirs="'$as_qdir' $as_dirs" |
---|
5830 | as_dir=`$as_dirname -- "$as_dir" || |
---|
5831 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
5832 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
5833 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
5834 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
5835 | $as_echo X"$as_dir" | |
---|
5836 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
5837 | s//\1/ |
---|
5838 | q |
---|
5839 | } |
---|
5840 | /^X\(\/\/\)[^/].*/{ |
---|
5841 | s//\1/ |
---|
5842 | q |
---|
5843 | } |
---|
5844 | /^X\(\/\/\)$/{ |
---|
5845 | s//\1/ |
---|
5846 | q |
---|
5847 | } |
---|
5848 | /^X\(\/\).*/{ |
---|
5849 | s//\1/ |
---|
5850 | q |
---|
5851 | } |
---|
5852 | s/.*/./; q'` |
---|
5853 | test -d "$as_dir" && break |
---|
5854 | done |
---|
5855 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
5856 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
5857 | |
---|
5858 | |
---|
5859 | } # as_fn_mkdir_p |
---|
5860 | if mkdir -p . 2>/dev/null; then |
---|
5861 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
5862 | else |
---|
5863 | test -d ./-p && rmdir ./-p |
---|
5864 | as_mkdir_p=false |
---|
5865 | fi |
---|
5866 | |
---|
5867 | if test -x / >/dev/null 2>&1; then |
---|
5868 | as_test_x='test -x' |
---|
5869 | else |
---|
5870 | if ls -dL / >/dev/null 2>&1; then |
---|
5871 | as_ls_L_option=L |
---|
5872 | else |
---|
5873 | as_ls_L_option= |
---|
5874 | fi |
---|
5875 | as_test_x=' |
---|
5876 | eval sh -c '\'' |
---|
5877 | if test -d "$1"; then |
---|
5878 | test -d "$1/."; |
---|
5879 | else |
---|
5880 | case $1 in #( |
---|
5881 | -*)set "./$1";; |
---|
5882 | esac; |
---|
5883 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
5884 | ???[sx]*):;;*)false;;esac;fi |
---|
5885 | '\'' sh |
---|
5886 | ' |
---|
5887 | fi |
---|
5888 | as_executable_p=$as_test_x |
---|
5889 | |
---|
5890 | # Sed expression to map a string onto a valid CPP name. |
---|
5891 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
5892 | |
---|
5893 | # Sed expression to map a string onto a valid variable name. |
---|
5894 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
5895 | |
---|
5896 | |
---|
5897 | exec 6>&1 |
---|
5898 | ## ----------------------------------- ## |
---|
5899 | ## Main body of $CONFIG_STATUS script. ## |
---|
5900 | ## ----------------------------------- ## |
---|
5901 | _ASEOF |
---|
5902 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
5903 | |
---|
5904 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5905 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
5906 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
5907 | # values after options handling. |
---|
5908 | ac_log=" |
---|
5909 | This file was extended by cfa-cc $as_me 1.0.0, which was |
---|
5910 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
5911 | |
---|
5912 | CONFIG_FILES = $CONFIG_FILES |
---|
5913 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
5914 | CONFIG_LINKS = $CONFIG_LINKS |
---|
5915 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
5916 | $ $0 $@ |
---|
5917 | |
---|
5918 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
5919 | " |
---|
5920 | |
---|
5921 | _ACEOF |
---|
5922 | |
---|
5923 | case $ac_config_files in *" |
---|
5924 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
5925 | esac |
---|
5926 | |
---|
5927 | case $ac_config_headers in *" |
---|
5928 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
5929 | esac |
---|
5930 | |
---|
5931 | |
---|
5932 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5933 | # Files that config.status was made for. |
---|
5934 | config_files="$ac_config_files" |
---|
5935 | config_headers="$ac_config_headers" |
---|
5936 | config_commands="$ac_config_commands" |
---|
5937 | |
---|
5938 | _ACEOF |
---|
5939 | |
---|
5940 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5941 | ac_cs_usage="\ |
---|
5942 | \`$as_me' instantiates files and other configuration actions |
---|
5943 | from templates according to the current configuration. Unless the files |
---|
5944 | and actions are specified as TAGs, all are instantiated by default. |
---|
5945 | |
---|
5946 | Usage: $0 [OPTION]... [TAG]... |
---|
5947 | |
---|
5948 | -h, --help print this help, then exit |
---|
5949 | -V, --version print version number and configuration settings, then exit |
---|
5950 | --config print configuration, then exit |
---|
5951 | -q, --quiet, --silent |
---|
5952 | do not print progress messages |
---|
5953 | -d, --debug don't remove temporary files |
---|
5954 | --recheck update $as_me by reconfiguring in the same conditions |
---|
5955 | --file=FILE[:TEMPLATE] |
---|
5956 | instantiate the configuration file FILE |
---|
5957 | --header=FILE[:TEMPLATE] |
---|
5958 | instantiate the configuration header FILE |
---|
5959 | |
---|
5960 | Configuration files: |
---|
5961 | $config_files |
---|
5962 | |
---|
5963 | Configuration headers: |
---|
5964 | $config_headers |
---|
5965 | |
---|
5966 | Configuration commands: |
---|
5967 | $config_commands |
---|
5968 | |
---|
5969 | Report bugs to <cforall@plg.uwaterloo.ca>." |
---|
5970 | |
---|
5971 | _ACEOF |
---|
5972 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5973 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
5974 | ac_cs_version="\\ |
---|
5975 | cfa-cc config.status 1.0.0 |
---|
5976 | configured by $0, generated by GNU Autoconf 2.68, |
---|
5977 | with options \\"\$ac_cs_config\\" |
---|
5978 | |
---|
5979 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
5980 | This config.status script is free software; the Free Software Foundation |
---|
5981 | gives unlimited permission to copy, distribute and modify it." |
---|
5982 | |
---|
5983 | ac_pwd='$ac_pwd' |
---|
5984 | srcdir='$srcdir' |
---|
5985 | INSTALL='$INSTALL' |
---|
5986 | MKDIR_P='$MKDIR_P' |
---|
5987 | AWK='$AWK' |
---|
5988 | test -n "\$AWK" || AWK=awk |
---|
5989 | _ACEOF |
---|
5990 | |
---|
5991 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5992 | # The default lists apply if the user does not specify any file. |
---|
5993 | ac_need_defaults=: |
---|
5994 | while test $# != 0 |
---|
5995 | do |
---|
5996 | case $1 in |
---|
5997 | --*=?*) |
---|
5998 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
5999 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
6000 | ac_shift=: |
---|
6001 | ;; |
---|
6002 | --*=) |
---|
6003 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6004 | ac_optarg= |
---|
6005 | ac_shift=: |
---|
6006 | ;; |
---|
6007 | *) |
---|
6008 | ac_option=$1 |
---|
6009 | ac_optarg=$2 |
---|
6010 | ac_shift=shift |
---|
6011 | ;; |
---|
6012 | esac |
---|
6013 | |
---|
6014 | case $ac_option in |
---|
6015 | # Handling of the options. |
---|
6016 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6017 | ac_cs_recheck=: ;; |
---|
6018 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
6019 | $as_echo "$ac_cs_version"; exit ;; |
---|
6020 | --config | --confi | --conf | --con | --co | --c ) |
---|
6021 | $as_echo "$ac_cs_config"; exit ;; |
---|
6022 | --debug | --debu | --deb | --de | --d | -d ) |
---|
6023 | debug=: ;; |
---|
6024 | --file | --fil | --fi | --f ) |
---|
6025 | $ac_shift |
---|
6026 | case $ac_optarg in |
---|
6027 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6028 | '') as_fn_error $? "missing file argument" ;; |
---|
6029 | esac |
---|
6030 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
6031 | ac_need_defaults=false;; |
---|
6032 | --header | --heade | --head | --hea ) |
---|
6033 | $ac_shift |
---|
6034 | case $ac_optarg in |
---|
6035 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6036 | esac |
---|
6037 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
6038 | ac_need_defaults=false;; |
---|
6039 | --he | --h) |
---|
6040 | # Conflict between --help and --header |
---|
6041 | as_fn_error $? "ambiguous option: \`$1' |
---|
6042 | Try \`$0 --help' for more information.";; |
---|
6043 | --help | --hel | -h ) |
---|
6044 | $as_echo "$ac_cs_usage"; exit ;; |
---|
6045 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6046 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6047 | ac_cs_silent=: ;; |
---|
6048 | |
---|
6049 | # This is an error. |
---|
6050 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
6051 | Try \`$0 --help' for more information." ;; |
---|
6052 | |
---|
6053 | *) as_fn_append ac_config_targets " $1" |
---|
6054 | ac_need_defaults=false ;; |
---|
6055 | |
---|
6056 | esac |
---|
6057 | shift |
---|
6058 | done |
---|
6059 | |
---|
6060 | ac_configure_extra_args= |
---|
6061 | |
---|
6062 | if $ac_cs_silent; then |
---|
6063 | exec 6>/dev/null |
---|
6064 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6065 | fi |
---|
6066 | |
---|
6067 | _ACEOF |
---|
6068 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6069 | if \$ac_cs_recheck; then |
---|
6070 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6071 | shift |
---|
6072 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
6073 | CONFIG_SHELL='$SHELL' |
---|
6074 | export CONFIG_SHELL |
---|
6075 | exec "\$@" |
---|
6076 | fi |
---|
6077 | |
---|
6078 | _ACEOF |
---|
6079 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6080 | exec 5>>config.log |
---|
6081 | { |
---|
6082 | echo |
---|
6083 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6084 | ## Running $as_me. ## |
---|
6085 | _ASBOX |
---|
6086 | $as_echo "$ac_log" |
---|
6087 | } >&5 |
---|
6088 | |
---|
6089 | _ACEOF |
---|
6090 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6091 | # |
---|
6092 | # INIT-COMMANDS |
---|
6093 | # |
---|
6094 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
6095 | |
---|
6096 | _ACEOF |
---|
6097 | |
---|
6098 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6099 | |
---|
6100 | # Handling of arguments. |
---|
6101 | for ac_config_target in $ac_config_targets |
---|
6102 | do |
---|
6103 | case $ac_config_target in |
---|
6104 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
6105 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
6106 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6107 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
6108 | "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;; |
---|
6109 | "libcfa/Makefile") CONFIG_FILES="$CONFIG_FILES libcfa/Makefile" ;; |
---|
6110 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; |
---|
6111 | |
---|
6112 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
6113 | esac |
---|
6114 | done |
---|
6115 | |
---|
6116 | |
---|
6117 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6118 | # then the envvar interface is used. Set only those that are not. |
---|
6119 | # We use the long form for the default assignment because of an extremely |
---|
6120 | # bizarre bug on SunOS 4.1.3. |
---|
6121 | if $ac_need_defaults; then |
---|
6122 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6123 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
6124 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
6125 | fi |
---|
6126 | |
---|
6127 | # Have a temporary directory for convenience. Make it in the build tree |
---|
6128 | # simply because there is no reason against having it here, and in addition, |
---|
6129 | # creating and moving files from /tmp can sometimes cause problems. |
---|
6130 | # Hook for its removal unless debugging. |
---|
6131 | # Note that there is a small window in which the directory will not be cleaned: |
---|
6132 | # after its creation but before its name has been assigned to `$tmp'. |
---|
6133 | $debug || |
---|
6134 | { |
---|
6135 | tmp= ac_tmp= |
---|
6136 | trap 'exit_status=$? |
---|
6137 | : "${ac_tmp:=$tmp}" |
---|
6138 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
6139 | ' 0 |
---|
6140 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
6141 | } |
---|
6142 | # Create a (secure) tmp directory for tmp files. |
---|
6143 | |
---|
6144 | { |
---|
6145 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
6146 | test -d "$tmp" |
---|
6147 | } || |
---|
6148 | { |
---|
6149 | tmp=./conf$$-$RANDOM |
---|
6150 | (umask 077 && mkdir "$tmp") |
---|
6151 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
6152 | ac_tmp=$tmp |
---|
6153 | |
---|
6154 | # Set up the scripts for CONFIG_FILES section. |
---|
6155 | # No need to generate them if there are no CONFIG_FILES. |
---|
6156 | # This happens for instance with `./config.status config.h'. |
---|
6157 | if test -n "$CONFIG_FILES"; then |
---|
6158 | |
---|
6159 | |
---|
6160 | ac_cr=`echo X | tr X '\015'` |
---|
6161 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
6162 | # But we know of no other shell where ac_cr would be empty at this |
---|
6163 | # point, so we can use a bashism as a fallback. |
---|
6164 | if test "x$ac_cr" = x; then |
---|
6165 | eval ac_cr=\$\'\\r\' |
---|
6166 | fi |
---|
6167 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
6168 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
6169 | ac_cs_awk_cr='\\r' |
---|
6170 | else |
---|
6171 | ac_cs_awk_cr=$ac_cr |
---|
6172 | fi |
---|
6173 | |
---|
6174 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
6175 | _ACEOF |
---|
6176 | |
---|
6177 | |
---|
6178 | { |
---|
6179 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
6180 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
6181 | echo "_ACEOF" |
---|
6182 | } >conf$$subs.sh || |
---|
6183 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6184 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
6185 | ac_delim='%!_!# ' |
---|
6186 | for ac_last_try in false false false false false :; do |
---|
6187 | . ./conf$$subs.sh || |
---|
6188 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6189 | |
---|
6190 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
6191 | if test $ac_delim_n = $ac_delim_num; then |
---|
6192 | break |
---|
6193 | elif $ac_last_try; then |
---|
6194 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6195 | else |
---|
6196 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
6197 | fi |
---|
6198 | done |
---|
6199 | rm -f conf$$subs.sh |
---|
6200 | |
---|
6201 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6202 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
6203 | _ACEOF |
---|
6204 | sed -n ' |
---|
6205 | h |
---|
6206 | s/^/S["/; s/!.*/"]=/ |
---|
6207 | p |
---|
6208 | g |
---|
6209 | s/^[^!]*!// |
---|
6210 | :repl |
---|
6211 | t repl |
---|
6212 | s/'"$ac_delim"'$// |
---|
6213 | t delim |
---|
6214 | :nl |
---|
6215 | h |
---|
6216 | s/\(.\{148\}\)..*/\1/ |
---|
6217 | t more1 |
---|
6218 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
6219 | p |
---|
6220 | n |
---|
6221 | b repl |
---|
6222 | :more1 |
---|
6223 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
6224 | p |
---|
6225 | g |
---|
6226 | s/.\{148\}// |
---|
6227 | t nl |
---|
6228 | :delim |
---|
6229 | h |
---|
6230 | s/\(.\{148\}\)..*/\1/ |
---|
6231 | t more2 |
---|
6232 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
6233 | p |
---|
6234 | b |
---|
6235 | :more2 |
---|
6236 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
6237 | p |
---|
6238 | g |
---|
6239 | s/.\{148\}// |
---|
6240 | t delim |
---|
6241 | ' <conf$$subs.awk | sed ' |
---|
6242 | /^[^""]/{ |
---|
6243 | N |
---|
6244 | s/\n// |
---|
6245 | } |
---|
6246 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
6247 | rm -f conf$$subs.awk |
---|
6248 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6249 | _ACAWK |
---|
6250 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
6251 | for (key in S) S_is_set[key] = 1 |
---|
6252 | FS = "" |
---|
6253 | |
---|
6254 | } |
---|
6255 | { |
---|
6256 | line = $ 0 |
---|
6257 | nfields = split(line, field, "@") |
---|
6258 | substed = 0 |
---|
6259 | len = length(field[1]) |
---|
6260 | for (i = 2; i < nfields; i++) { |
---|
6261 | key = field[i] |
---|
6262 | keylen = length(key) |
---|
6263 | if (S_is_set[key]) { |
---|
6264 | value = S[key] |
---|
6265 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
6266 | len += length(value) + length(field[++i]) |
---|
6267 | substed = 1 |
---|
6268 | } else |
---|
6269 | len += 1 + keylen |
---|
6270 | } |
---|
6271 | |
---|
6272 | print line |
---|
6273 | } |
---|
6274 | |
---|
6275 | _ACAWK |
---|
6276 | _ACEOF |
---|
6277 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6278 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
6279 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
6280 | else |
---|
6281 | cat |
---|
6282 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
6283 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
6284 | _ACEOF |
---|
6285 | |
---|
6286 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
6287 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
6288 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
6289 | # (actually we leave an empty line to preserve line numbers). |
---|
6290 | if test "x$srcdir" = x.; then |
---|
6291 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
6292 | h |
---|
6293 | s/// |
---|
6294 | s/^/:/ |
---|
6295 | s/[ ]*$/:/ |
---|
6296 | s/:\$(srcdir):/:/g |
---|
6297 | s/:\${srcdir}:/:/g |
---|
6298 | s/:@srcdir@:/:/g |
---|
6299 | s/^:*// |
---|
6300 | s/:*$// |
---|
6301 | x |
---|
6302 | s/\(=[ ]*\).*/\1/ |
---|
6303 | G |
---|
6304 | s/\n// |
---|
6305 | s/^[^=]*=[ ]*$// |
---|
6306 | }' |
---|
6307 | fi |
---|
6308 | |
---|
6309 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6310 | fi # test -n "$CONFIG_FILES" |
---|
6311 | |
---|
6312 | # Set up the scripts for CONFIG_HEADERS section. |
---|
6313 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
6314 | # This happens for instance with `./config.status Makefile'. |
---|
6315 | if test -n "$CONFIG_HEADERS"; then |
---|
6316 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
6317 | BEGIN { |
---|
6318 | _ACEOF |
---|
6319 | |
---|
6320 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
6321 | # here-document in config.status, that substitutes the proper values into |
---|
6322 | # config.h.in to produce config.h. |
---|
6323 | |
---|
6324 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
6325 | # handling of long lines. |
---|
6326 | ac_delim='%!_!# ' |
---|
6327 | for ac_last_try in false false :; do |
---|
6328 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
6329 | if test -z "$ac_tt"; then |
---|
6330 | break |
---|
6331 | elif $ac_last_try; then |
---|
6332 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
6333 | else |
---|
6334 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
6335 | fi |
---|
6336 | done |
---|
6337 | |
---|
6338 | # For the awk script, D is an array of macro values keyed by name, |
---|
6339 | # likewise P contains macro parameters if any. Preserve backslash |
---|
6340 | # newline sequences. |
---|
6341 | |
---|
6342 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
6343 | sed -n ' |
---|
6344 | s/.\{148\}/&'"$ac_delim"'/g |
---|
6345 | t rset |
---|
6346 | :rset |
---|
6347 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
6348 | t def |
---|
6349 | d |
---|
6350 | :def |
---|
6351 | s/\\$// |
---|
6352 | t bsnl |
---|
6353 | s/["\\]/\\&/g |
---|
6354 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
6355 | D["\1"]=" \3"/p |
---|
6356 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
6357 | d |
---|
6358 | :bsnl |
---|
6359 | s/["\\]/\\&/g |
---|
6360 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
6361 | D["\1"]=" \3\\\\\\n"\\/p |
---|
6362 | t cont |
---|
6363 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
6364 | t cont |
---|
6365 | d |
---|
6366 | :cont |
---|
6367 | n |
---|
6368 | s/.\{148\}/&'"$ac_delim"'/g |
---|
6369 | t clear |
---|
6370 | :clear |
---|
6371 | s/\\$// |
---|
6372 | t bsnlc |
---|
6373 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
6374 | d |
---|
6375 | :bsnlc |
---|
6376 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
6377 | b cont |
---|
6378 | ' <confdefs.h | sed ' |
---|
6379 | s/'"$ac_delim"'/"\\\ |
---|
6380 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
6381 | |
---|
6382 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6383 | for (key in D) D_is_set[key] = 1 |
---|
6384 | FS = "" |
---|
6385 | } |
---|
6386 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
6387 | line = \$ 0 |
---|
6388 | split(line, arg, " ") |
---|
6389 | if (arg[1] == "#") { |
---|
6390 | defundef = arg[2] |
---|
6391 | mac1 = arg[3] |
---|
6392 | } else { |
---|
6393 | defundef = substr(arg[1], 2) |
---|
6394 | mac1 = arg[2] |
---|
6395 | } |
---|
6396 | split(mac1, mac2, "(") #) |
---|
6397 | macro = mac2[1] |
---|
6398 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
6399 | if (D_is_set[macro]) { |
---|
6400 | # Preserve the white space surrounding the "#". |
---|
6401 | print prefix "define", macro P[macro] D[macro] |
---|
6402 | next |
---|
6403 | } else { |
---|
6404 | # Replace #undef with comments. This is necessary, for example, |
---|
6405 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
6406 | # on some systems where configure will not decide to define it. |
---|
6407 | if (defundef == "undef") { |
---|
6408 | print "/*", prefix defundef, macro, "*/" |
---|
6409 | next |
---|
6410 | } |
---|
6411 | } |
---|
6412 | } |
---|
6413 | { print } |
---|
6414 | _ACAWK |
---|
6415 | _ACEOF |
---|
6416 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6417 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
6418 | fi # test -n "$CONFIG_HEADERS" |
---|
6419 | |
---|
6420 | |
---|
6421 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
---|
6422 | shift |
---|
6423 | for ac_tag |
---|
6424 | do |
---|
6425 | case $ac_tag in |
---|
6426 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
6427 | esac |
---|
6428 | case $ac_mode$ac_tag in |
---|
6429 | :[FHL]*:*);; |
---|
6430 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
6431 | :[FH]-) ac_tag=-:-;; |
---|
6432 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
6433 | esac |
---|
6434 | ac_save_IFS=$IFS |
---|
6435 | IFS=: |
---|
6436 | set x $ac_tag |
---|
6437 | IFS=$ac_save_IFS |
---|
6438 | shift |
---|
6439 | ac_file=$1 |
---|
6440 | shift |
---|
6441 | |
---|
6442 | case $ac_mode in |
---|
6443 | :L) ac_source=$1;; |
---|
6444 | :[FH]) |
---|
6445 | ac_file_inputs= |
---|
6446 | for ac_f |
---|
6447 | do |
---|
6448 | case $ac_f in |
---|
6449 | -) ac_f="$ac_tmp/stdin";; |
---|
6450 | *) # Look for the file first in the build tree, then in the source tree |
---|
6451 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
6452 | # because $ac_f cannot contain `:'. |
---|
6453 | test -f "$ac_f" || |
---|
6454 | case $ac_f in |
---|
6455 | [\\/$]*) false;; |
---|
6456 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
6457 | esac || |
---|
6458 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
6459 | esac |
---|
6460 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
6461 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
6462 | done |
---|
6463 | |
---|
6464 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6465 | # use $as_me), people would be surprised to read: |
---|
6466 | # /* config.h. Generated by config.status. */ |
---|
6467 | configure_input='Generated from '` |
---|
6468 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
6469 | `' by configure.' |
---|
6470 | if test x"$ac_file" != x-; then |
---|
6471 | configure_input="$ac_file. $configure_input" |
---|
6472 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
6473 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
6474 | fi |
---|
6475 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
6476 | case $configure_input in #( |
---|
6477 | *\&* | *\|* | *\\* ) |
---|
6478 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
6479 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
6480 | *) ac_sed_conf_input=$configure_input;; |
---|
6481 | esac |
---|
6482 | |
---|
6483 | case $ac_tag in |
---|
6484 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
6485 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
6486 | esac |
---|
6487 | ;; |
---|
6488 | esac |
---|
6489 | |
---|
6490 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
6491 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6492 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6493 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6494 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
6495 | $as_echo X"$ac_file" | |
---|
6496 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6497 | s//\1/ |
---|
6498 | q |
---|
6499 | } |
---|
6500 | /^X\(\/\/\)[^/].*/{ |
---|
6501 | s//\1/ |
---|
6502 | q |
---|
6503 | } |
---|
6504 | /^X\(\/\/\)$/{ |
---|
6505 | s//\1/ |
---|
6506 | q |
---|
6507 | } |
---|
6508 | /^X\(\/\).*/{ |
---|
6509 | s//\1/ |
---|
6510 | q |
---|
6511 | } |
---|
6512 | s/.*/./; q'` |
---|
6513 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
6514 | ac_builddir=. |
---|
6515 | |
---|
6516 | case "$ac_dir" in |
---|
6517 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6518 | *) |
---|
6519 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
6520 | # A ".." for each directory in $ac_dir_suffix. |
---|
6521 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
6522 | case $ac_top_builddir_sub in |
---|
6523 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6524 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
6525 | esac ;; |
---|
6526 | esac |
---|
6527 | ac_abs_top_builddir=$ac_pwd |
---|
6528 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
6529 | # for backward compatibility: |
---|
6530 | ac_top_builddir=$ac_top_build_prefix |
---|
6531 | |
---|
6532 | case $srcdir in |
---|
6533 | .) # We are building in place. |
---|
6534 | ac_srcdir=. |
---|
6535 | ac_top_srcdir=$ac_top_builddir_sub |
---|
6536 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
6537 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
6538 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
6539 | ac_top_srcdir=$srcdir |
---|
6540 | ac_abs_top_srcdir=$srcdir ;; |
---|
6541 | *) # Relative name. |
---|
6542 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
6543 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
6544 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
6545 | esac |
---|
6546 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
6547 | |
---|
6548 | |
---|
6549 | case $ac_mode in |
---|
6550 | :F) |
---|
6551 | # |
---|
6552 | # CONFIG_FILE |
---|
6553 | # |
---|
6554 | |
---|
6555 | case $INSTALL in |
---|
6556 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
6557 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
6558 | esac |
---|
6559 | ac_MKDIR_P=$MKDIR_P |
---|
6560 | case $MKDIR_P in |
---|
6561 | [\\/$]* | ?:[\\/]* ) ;; |
---|
6562 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
6563 | esac |
---|
6564 | _ACEOF |
---|
6565 | |
---|
6566 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6567 | # If the template does not know about datarootdir, expand it. |
---|
6568 | # FIXME: This hack should be removed a few years after 2.60. |
---|
6569 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
6570 | ac_sed_dataroot=' |
---|
6571 | /datarootdir/ { |
---|
6572 | p |
---|
6573 | q |
---|
6574 | } |
---|
6575 | /@datadir@/p |
---|
6576 | /@docdir@/p |
---|
6577 | /@infodir@/p |
---|
6578 | /@localedir@/p |
---|
6579 | /@mandir@/p' |
---|
6580 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
6581 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
6582 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
6583 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
6584 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
6585 | _ACEOF |
---|
6586 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6587 | ac_datarootdir_hack=' |
---|
6588 | s&@datadir@&$datadir&g |
---|
6589 | s&@docdir@&$docdir&g |
---|
6590 | s&@infodir@&$infodir&g |
---|
6591 | s&@localedir@&$localedir&g |
---|
6592 | s&@mandir@&$mandir&g |
---|
6593 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
6594 | esac |
---|
6595 | _ACEOF |
---|
6596 | |
---|
6597 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
6598 | # Shell code in configure.ac might set extrasub. |
---|
6599 | # FIXME: do we really want to maintain this feature? |
---|
6600 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6601 | ac_sed_extra="$ac_vpsub |
---|
6602 | $extrasub |
---|
6603 | _ACEOF |
---|
6604 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6605 | :t |
---|
6606 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
6607 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
6608 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
6609 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
6610 | s&@srcdir@&$ac_srcdir&;t t |
---|
6611 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
6612 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
6613 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
6614 | s&@builddir@&$ac_builddir&;t t |
---|
6615 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
6616 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
6617 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
6618 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
6619 | $ac_datarootdir_hack |
---|
6620 | " |
---|
6621 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
6622 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6623 | |
---|
6624 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
6625 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
6626 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
6627 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
6628 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
6629 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
6630 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
6631 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
6632 | |
---|
6633 | rm -f "$ac_tmp/stdin" |
---|
6634 | case $ac_file in |
---|
6635 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
6636 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
6637 | esac \ |
---|
6638 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6639 | ;; |
---|
6640 | :H) |
---|
6641 | # |
---|
6642 | # CONFIG_HEADER |
---|
6643 | # |
---|
6644 | if test x"$ac_file" != x-; then |
---|
6645 | { |
---|
6646 | $as_echo "/* $configure_input */" \ |
---|
6647 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
6648 | } >"$ac_tmp/config.h" \ |
---|
6649 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6650 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
6651 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
6652 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
6653 | else |
---|
6654 | rm -f "$ac_file" |
---|
6655 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
6656 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6657 | fi |
---|
6658 | else |
---|
6659 | $as_echo "/* $configure_input */" \ |
---|
6660 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
6661 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
6662 | fi |
---|
6663 | # Compute "$ac_file"'s index in $config_headers. |
---|
6664 | _am_arg="$ac_file" |
---|
6665 | _am_stamp_count=1 |
---|
6666 | for _am_header in $config_headers :; do |
---|
6667 | case $_am_header in |
---|
6668 | $_am_arg | $_am_arg:* ) |
---|
6669 | break ;; |
---|
6670 | * ) |
---|
6671 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
6672 | esac |
---|
6673 | done |
---|
6674 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
---|
6675 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6676 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
---|
6677 | X"$_am_arg" : 'X\(//\)$' \| \ |
---|
6678 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
---|
6679 | $as_echo X"$_am_arg" | |
---|
6680 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6681 | s//\1/ |
---|
6682 | q |
---|
6683 | } |
---|
6684 | /^X\(\/\/\)[^/].*/{ |
---|
6685 | s//\1/ |
---|
6686 | q |
---|
6687 | } |
---|
6688 | /^X\(\/\/\)$/{ |
---|
6689 | s//\1/ |
---|
6690 | q |
---|
6691 | } |
---|
6692 | /^X\(\/\).*/{ |
---|
6693 | s//\1/ |
---|
6694 | q |
---|
6695 | } |
---|
6696 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
6697 | ;; |
---|
6698 | |
---|
6699 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
---|
6700 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
---|
6701 | ;; |
---|
6702 | esac |
---|
6703 | |
---|
6704 | |
---|
6705 | case $ac_file$ac_mode in |
---|
6706 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
---|
6707 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
---|
6708 | # are listed without --file. Let's play safe and only enable the eval |
---|
6709 | # if we detect the quoting. |
---|
6710 | case $CONFIG_FILES in |
---|
6711 | *\'*) eval set x "$CONFIG_FILES" ;; |
---|
6712 | *) set x $CONFIG_FILES ;; |
---|
6713 | esac |
---|
6714 | shift |
---|
6715 | for mf |
---|
6716 | do |
---|
6717 | # Strip MF so we end up with the name of the file. |
---|
6718 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
6719 | # Check whether this is an Automake generated Makefile or not. |
---|
6720 | # We used to match only the files named `Makefile.in', but |
---|
6721 | # some people rename them; so instead we look at the file content. |
---|
6722 | # Grep'ing the first line is not enough: some people post-process |
---|
6723 | # each Makefile.in and add a new line on top of each file to say so. |
---|
6724 | # Grep'ing the whole file is not good either: AIX grep has a line |
---|
6725 | # limit of 2048, but all sed's we know have understand at least 4000. |
---|
6726 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
---|
6727 | dirpart=`$as_dirname -- "$mf" || |
---|
6728 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6729 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
6730 | X"$mf" : 'X\(//\)$' \| \ |
---|
6731 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
---|
6732 | $as_echo X"$mf" | |
---|
6733 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6734 | s//\1/ |
---|
6735 | q |
---|
6736 | } |
---|
6737 | /^X\(\/\/\)[^/].*/{ |
---|
6738 | s//\1/ |
---|
6739 | q |
---|
6740 | } |
---|
6741 | /^X\(\/\/\)$/{ |
---|
6742 | s//\1/ |
---|
6743 | q |
---|
6744 | } |
---|
6745 | /^X\(\/\).*/{ |
---|
6746 | s//\1/ |
---|
6747 | q |
---|
6748 | } |
---|
6749 | s/.*/./; q'` |
---|
6750 | else |
---|
6751 | continue |
---|
6752 | fi |
---|
6753 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
6754 | # from the Makefile without running `make'. |
---|
6755 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
6756 | test -z "$DEPDIR" && continue |
---|
6757 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
6758 | test -z "am__include" && continue |
---|
6759 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
6760 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
6761 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
6762 | # Find all dependency output files, they are included files with |
---|
6763 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
6764 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
6765 | # expansion. |
---|
6766 | for file in `sed -n " |
---|
6767 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
6768 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
6769 | # Make sure the directory exists. |
---|
6770 | test -f "$dirpart/$file" && continue |
---|
6771 | fdir=`$as_dirname -- "$file" || |
---|
6772 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6773 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
6774 | X"$file" : 'X\(//\)$' \| \ |
---|
6775 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
---|
6776 | $as_echo X"$file" | |
---|
6777 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6778 | s//\1/ |
---|
6779 | q |
---|
6780 | } |
---|
6781 | /^X\(\/\/\)[^/].*/{ |
---|
6782 | s//\1/ |
---|
6783 | q |
---|
6784 | } |
---|
6785 | /^X\(\/\/\)$/{ |
---|
6786 | s//\1/ |
---|
6787 | q |
---|
6788 | } |
---|
6789 | /^X\(\/\).*/{ |
---|
6790 | s//\1/ |
---|
6791 | q |
---|
6792 | } |
---|
6793 | s/.*/./; q'` |
---|
6794 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
---|
6795 | # echo "creating $dirpart/$file" |
---|
6796 | echo '# dummy' > "$dirpart/$file" |
---|
6797 | done |
---|
6798 | done |
---|
6799 | } |
---|
6800 | ;; |
---|
6801 | |
---|
6802 | esac |
---|
6803 | done # for ac_tag |
---|
6804 | |
---|
6805 | |
---|
6806 | as_fn_exit 0 |
---|
6807 | _ACEOF |
---|
6808 | ac_clean_files=$ac_clean_files_save |
---|
6809 | |
---|
6810 | test $ac_write_fail = 0 || |
---|
6811 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
6812 | |
---|
6813 | |
---|
6814 | # configure is writing to config.log, and then calls config.status. |
---|
6815 | # config.status does its own redirection, appending to config.log. |
---|
6816 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
6817 | # by configure, so config.status won't be able to write to it; its |
---|
6818 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
6819 | # effectively closing config.log, so it can be properly (re)opened and |
---|
6820 | # appended to by config.status. When coming back to configure, we |
---|
6821 | # need to make the FD available again. |
---|
6822 | if test "$no_create" != yes; then |
---|
6823 | ac_cs_success=: |
---|
6824 | ac_config_status_args= |
---|
6825 | test "$silent" = yes && |
---|
6826 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
6827 | exec 5>/dev/null |
---|
6828 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
6829 | exec 5>>config.log |
---|
6830 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
6831 | # would make configure fail if this is the last instruction. |
---|
6832 | $ac_cs_success || as_fn_exit 1 |
---|
6833 | fi |
---|
6834 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
6835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
6836 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
6837 | fi |
---|
6838 | |
---|
6839 | |
---|
6840 | # Final text |
---|
6841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cforall configuraton completed. Type \"make -j 8 install\"." >&5 |
---|
6842 | $as_echo "Cforall configuraton completed. Type \"make -j 8 install\"." >&6; } |
---|