1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.69 for cfa-cc 1.0.0.0. |
---|
4 | # |
---|
5 | # Report bugs to <cforall@plg.uwaterloo.ca>. |
---|
6 | # |
---|
7 | # |
---|
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
---|
9 | # |
---|
10 | # |
---|
11 | # This configure script is free software; the Free Software Foundation |
---|
12 | # gives unlimited permission to copy, distribute and modify it. |
---|
13 | ## -------------------- ## |
---|
14 | ## M4sh Initialization. ## |
---|
15 | ## -------------------- ## |
---|
16 | |
---|
17 | # Be more Bourne compatible |
---|
18 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
20 | emulate sh |
---|
21 | NULLCMD=: |
---|
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
23 | # is contrary to our usage. Disable this feature. |
---|
24 | alias -g '${1+"$@"}'='"$@"' |
---|
25 | setopt NO_GLOB_SUBST |
---|
26 | else |
---|
27 | case `(set -o) 2>/dev/null` in #( |
---|
28 | *posix*) : |
---|
29 | set -o posix ;; #( |
---|
30 | *) : |
---|
31 | ;; |
---|
32 | esac |
---|
33 | fi |
---|
34 | |
---|
35 | |
---|
36 | as_nl=' |
---|
37 | ' |
---|
38 | export as_nl |
---|
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
44 | # but without wasting forks for bash or zsh. |
---|
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
47 | as_echo='print -r --' |
---|
48 | as_echo_n='print -rn --' |
---|
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
50 | as_echo='printf %s\n' |
---|
51 | as_echo_n='printf %s' |
---|
52 | else |
---|
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
55 | as_echo_n='/usr/ucb/echo -n' |
---|
56 | else |
---|
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
58 | as_echo_n_body='eval |
---|
59 | arg=$1; |
---|
60 | case $arg in #( |
---|
61 | *"$as_nl"*) |
---|
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
64 | esac; |
---|
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
66 | ' |
---|
67 | export as_echo_n_body |
---|
68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
69 | fi |
---|
70 | export as_echo_body |
---|
71 | as_echo='sh -c $as_echo_body as_echo' |
---|
72 | fi |
---|
73 | |
---|
74 | # The user is always right. |
---|
75 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
76 | PATH_SEPARATOR=: |
---|
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
79 | PATH_SEPARATOR=';' |
---|
80 | } |
---|
81 | fi |
---|
82 | |
---|
83 | |
---|
84 | # IFS |
---|
85 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
86 | # there to prevent editors from complaining about space-tab. |
---|
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
88 | # splitting by setting IFS to empty value.) |
---|
89 | IFS=" "" $as_nl" |
---|
90 | |
---|
91 | # Find who we are. Look in the path if we contain no directory separator. |
---|
92 | as_myself= |
---|
93 | case $0 in #(( |
---|
94 | *[\\/]* ) as_myself=$0 ;; |
---|
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
96 | for as_dir in $PATH |
---|
97 | do |
---|
98 | IFS=$as_save_IFS |
---|
99 | test -z "$as_dir" && as_dir=. |
---|
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
101 | done |
---|
102 | IFS=$as_save_IFS |
---|
103 | |
---|
104 | ;; |
---|
105 | esac |
---|
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
107 | # in which case we are not to be found in the path. |
---|
108 | if test "x$as_myself" = x; then |
---|
109 | as_myself=$0 |
---|
110 | fi |
---|
111 | if test ! -f "$as_myself"; then |
---|
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
113 | exit 1 |
---|
114 | fi |
---|
115 | |
---|
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
118 | # suppresses any "Segmentation fault" message there. '((' could |
---|
119 | # trigger a bug in pdksh 5.2.14. |
---|
120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
121 | do eval test x\${$as_var+set} = xset \ |
---|
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
123 | done |
---|
124 | PS1='$ ' |
---|
125 | PS2='> ' |
---|
126 | PS4='+ ' |
---|
127 | |
---|
128 | # NLS nuisances. |
---|
129 | LC_ALL=C |
---|
130 | export LC_ALL |
---|
131 | LANGUAGE=C |
---|
132 | export LANGUAGE |
---|
133 | |
---|
134 | # CDPATH. |
---|
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
136 | |
---|
137 | # Use a proper internal environment variable to ensure we don't fall |
---|
138 | # into an infinite loop, continuously re-executing ourselves. |
---|
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
---|
140 | _as_can_reexec=no; export _as_can_reexec; |
---|
141 | # We cannot yet assume a decent shell, so we have to provide a |
---|
142 | # neutralization value for shells without unset; and this also |
---|
143 | # works around shells that cannot unset nonexistent variables. |
---|
144 | # Preserve -v and -x to the replacement shell. |
---|
145 | BASH_ENV=/dev/null |
---|
146 | ENV=/dev/null |
---|
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
148 | case $- in # (((( |
---|
149 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
150 | *v* ) as_opts=-v ;; |
---|
151 | *x* ) as_opts=-x ;; |
---|
152 | * ) as_opts= ;; |
---|
153 | esac |
---|
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
155 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
156 | # out after a failed `exec'. |
---|
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
158 | as_fn_exit 255 |
---|
159 | fi |
---|
160 | # We don't want this to propagate to other subprocesses. |
---|
161 | { _as_can_reexec=; unset _as_can_reexec;} |
---|
162 | if test "x$CONFIG_SHELL" = x; then |
---|
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
164 | emulate sh |
---|
165 | NULLCMD=: |
---|
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
167 | # is contrary to our usage. Disable this feature. |
---|
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
169 | setopt NO_GLOB_SUBST |
---|
170 | else |
---|
171 | case \`(set -o) 2>/dev/null\` in #( |
---|
172 | *posix*) : |
---|
173 | set -o posix ;; #( |
---|
174 | *) : |
---|
175 | ;; |
---|
176 | esac |
---|
177 | fi |
---|
178 | " |
---|
179 | as_required="as_fn_return () { (exit \$1); } |
---|
180 | as_fn_success () { as_fn_return 0; } |
---|
181 | as_fn_failure () { as_fn_return 1; } |
---|
182 | as_fn_ret_success () { return 0; } |
---|
183 | as_fn_ret_failure () { return 1; } |
---|
184 | |
---|
185 | exitcode=0 |
---|
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
191 | |
---|
192 | else |
---|
193 | exitcode=1; echo positional parameters were not saved. |
---|
194 | fi |
---|
195 | test x\$exitcode = x0 || exit 1 |
---|
196 | test -x / || exit 1" |
---|
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
201 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
202 | if (eval "$as_required") 2>/dev/null; then : |
---|
203 | as_have_required=yes |
---|
204 | else |
---|
205 | as_have_required=no |
---|
206 | fi |
---|
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
208 | |
---|
209 | else |
---|
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
211 | as_found=false |
---|
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
213 | do |
---|
214 | IFS=$as_save_IFS |
---|
215 | test -z "$as_dir" && as_dir=. |
---|
216 | as_found=: |
---|
217 | case $as_dir in #( |
---|
218 | /*) |
---|
219 | for as_base in sh bash ksh sh5; do |
---|
220 | # Try only shells that exist, to save several forks. |
---|
221 | as_shell=$as_dir/$as_base |
---|
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
224 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
226 | break 2 |
---|
227 | fi |
---|
228 | fi |
---|
229 | done;; |
---|
230 | esac |
---|
231 | as_found=false |
---|
232 | done |
---|
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
235 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
236 | fi; } |
---|
237 | IFS=$as_save_IFS |
---|
238 | |
---|
239 | |
---|
240 | if test "x$CONFIG_SHELL" != x; then : |
---|
241 | export CONFIG_SHELL |
---|
242 | # We cannot yet assume a decent shell, so we have to provide a |
---|
243 | # neutralization value for shells without unset; and this also |
---|
244 | # works around shells that cannot unset nonexistent variables. |
---|
245 | # Preserve -v and -x to the replacement shell. |
---|
246 | BASH_ENV=/dev/null |
---|
247 | ENV=/dev/null |
---|
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
249 | case $- in # (((( |
---|
250 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
251 | *v* ) as_opts=-v ;; |
---|
252 | *x* ) as_opts=-x ;; |
---|
253 | * ) as_opts= ;; |
---|
254 | esac |
---|
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
256 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
257 | # out after a failed `exec'. |
---|
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
259 | exit 255 |
---|
260 | fi |
---|
261 | |
---|
262 | if test x$as_have_required = xno; then : |
---|
263 | $as_echo "$0: This script requires a shell more modern than all" |
---|
264 | $as_echo "$0: the shells that I found on your system." |
---|
265 | if test x${ZSH_VERSION+set} = xset ; then |
---|
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
268 | else |
---|
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
270 | $0: cforall@plg.uwaterloo.ca about your system, including |
---|
271 | $0: any error possibly output before this message. Then |
---|
272 | $0: install a modern shell, or manually run the script |
---|
273 | $0: under such a shell if you do have one." |
---|
274 | fi |
---|
275 | exit 1 |
---|
276 | fi |
---|
277 | fi |
---|
278 | fi |
---|
279 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
280 | export SHELL |
---|
281 | # Unset more variables known to interfere with behavior of common tools. |
---|
282 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
283 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
284 | |
---|
285 | ## --------------------- ## |
---|
286 | ## M4sh Shell Functions. ## |
---|
287 | ## --------------------- ## |
---|
288 | # as_fn_unset VAR |
---|
289 | # --------------- |
---|
290 | # Portably unset VAR. |
---|
291 | as_fn_unset () |
---|
292 | { |
---|
293 | { eval $1=; unset $1;} |
---|
294 | } |
---|
295 | as_unset=as_fn_unset |
---|
296 | |
---|
297 | # as_fn_set_status STATUS |
---|
298 | # ----------------------- |
---|
299 | # Set $? to STATUS, without forking. |
---|
300 | as_fn_set_status () |
---|
301 | { |
---|
302 | return $1 |
---|
303 | } # as_fn_set_status |
---|
304 | |
---|
305 | # as_fn_exit STATUS |
---|
306 | # ----------------- |
---|
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
308 | as_fn_exit () |
---|
309 | { |
---|
310 | set +e |
---|
311 | as_fn_set_status $1 |
---|
312 | exit $1 |
---|
313 | } # as_fn_exit |
---|
314 | |
---|
315 | # as_fn_mkdir_p |
---|
316 | # ------------- |
---|
317 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
318 | as_fn_mkdir_p () |
---|
319 | { |
---|
320 | |
---|
321 | case $as_dir in #( |
---|
322 | -*) as_dir=./$as_dir;; |
---|
323 | esac |
---|
324 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
325 | as_dirs= |
---|
326 | while :; do |
---|
327 | case $as_dir in #( |
---|
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
329 | *) as_qdir=$as_dir;; |
---|
330 | esac |
---|
331 | as_dirs="'$as_qdir' $as_dirs" |
---|
332 | as_dir=`$as_dirname -- "$as_dir" || |
---|
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
335 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
337 | $as_echo X"$as_dir" | |
---|
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
339 | s//\1/ |
---|
340 | q |
---|
341 | } |
---|
342 | /^X\(\/\/\)[^/].*/{ |
---|
343 | s//\1/ |
---|
344 | q |
---|
345 | } |
---|
346 | /^X\(\/\/\)$/{ |
---|
347 | s//\1/ |
---|
348 | q |
---|
349 | } |
---|
350 | /^X\(\/\).*/{ |
---|
351 | s//\1/ |
---|
352 | q |
---|
353 | } |
---|
354 | s/.*/./; q'` |
---|
355 | test -d "$as_dir" && break |
---|
356 | done |
---|
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
359 | |
---|
360 | |
---|
361 | } # as_fn_mkdir_p |
---|
362 | |
---|
363 | # as_fn_executable_p FILE |
---|
364 | # ----------------------- |
---|
365 | # Test if FILE is an executable regular file. |
---|
366 | as_fn_executable_p () |
---|
367 | { |
---|
368 | test -f "$1" && test -x "$1" |
---|
369 | } # as_fn_executable_p |
---|
370 | # as_fn_append VAR VALUE |
---|
371 | # ---------------------- |
---|
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
373 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
374 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
375 | # implementations. |
---|
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
377 | eval 'as_fn_append () |
---|
378 | { |
---|
379 | eval $1+=\$2 |
---|
380 | }' |
---|
381 | else |
---|
382 | as_fn_append () |
---|
383 | { |
---|
384 | eval $1=\$$1\$2 |
---|
385 | } |
---|
386 | fi # as_fn_append |
---|
387 | |
---|
388 | # as_fn_arith ARG... |
---|
389 | # ------------------ |
---|
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
392 | # must be portable across $(()) and expr. |
---|
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
394 | eval 'as_fn_arith () |
---|
395 | { |
---|
396 | as_val=$(( $* )) |
---|
397 | }' |
---|
398 | else |
---|
399 | as_fn_arith () |
---|
400 | { |
---|
401 | as_val=`expr "$@" || test $? -eq 1` |
---|
402 | } |
---|
403 | fi # as_fn_arith |
---|
404 | |
---|
405 | |
---|
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
407 | # ---------------------------------------- |
---|
408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
410 | # script with STATUS, using 1 if that was 0. |
---|
411 | as_fn_error () |
---|
412 | { |
---|
413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
414 | if test "$4"; then |
---|
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
417 | fi |
---|
418 | $as_echo "$as_me: error: $2" >&2 |
---|
419 | as_fn_exit $as_status |
---|
420 | } # as_fn_error |
---|
421 | |
---|
422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
424 | as_expr=expr |
---|
425 | else |
---|
426 | as_expr=false |
---|
427 | fi |
---|
428 | |
---|
429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
430 | as_basename=basename |
---|
431 | else |
---|
432 | as_basename=false |
---|
433 | fi |
---|
434 | |
---|
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
436 | as_dirname=dirname |
---|
437 | else |
---|
438 | as_dirname=false |
---|
439 | fi |
---|
440 | |
---|
441 | as_me=`$as_basename -- "$0" || |
---|
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
443 | X"$0" : 'X\(//\)$' \| \ |
---|
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
445 | $as_echo X/"$0" | |
---|
446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
447 | s//\1/ |
---|
448 | q |
---|
449 | } |
---|
450 | /^X\/\(\/\/\)$/{ |
---|
451 | s//\1/ |
---|
452 | q |
---|
453 | } |
---|
454 | /^X\/\(\/\).*/{ |
---|
455 | s//\1/ |
---|
456 | q |
---|
457 | } |
---|
458 | s/.*/./; q'` |
---|
459 | |
---|
460 | # Avoid depending upon Character Ranges. |
---|
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
464 | as_cr_digits='0123456789' |
---|
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
466 | |
---|
467 | |
---|
468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
473 | sed -n ' |
---|
474 | p |
---|
475 | /[$]LINENO/= |
---|
476 | ' <$as_myself | |
---|
477 | sed ' |
---|
478 | s/[$]LINENO.*/&-/ |
---|
479 | t lineno |
---|
480 | b |
---|
481 | :lineno |
---|
482 | N |
---|
483 | :loop |
---|
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
485 | t loop |
---|
486 | s/-\n.*// |
---|
487 | ' >$as_me.lineno && |
---|
488 | chmod +x "$as_me.lineno" || |
---|
489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
490 | |
---|
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
---|
492 | # already done that, so ensure we don't try to do so again and fall |
---|
493 | # in an infinite loop. This has already happened in practice. |
---|
494 | _as_can_reexec=no; export _as_can_reexec |
---|
495 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
496 | # (the dirname of $[0] is not the place where we might find the |
---|
497 | # original and so on. Autoconf is especially sensitive to this). |
---|
498 | . "./$as_me.lineno" |
---|
499 | # Exit status is that of the last command. |
---|
500 | exit |
---|
501 | } |
---|
502 | |
---|
503 | ECHO_C= ECHO_N= ECHO_T= |
---|
504 | case `echo -n x` in #((((( |
---|
505 | -n*) |
---|
506 | case `echo 'xy\c'` in |
---|
507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
508 | xy) ECHO_C='\c';; |
---|
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
510 | ECHO_T=' ';; |
---|
511 | esac;; |
---|
512 | *) |
---|
513 | ECHO_N='-n';; |
---|
514 | esac |
---|
515 | |
---|
516 | rm -f conf$$ conf$$.exe conf$$.file |
---|
517 | if test -d conf$$.dir; then |
---|
518 | rm -f conf$$.dir/conf$$.file |
---|
519 | else |
---|
520 | rm -f conf$$.dir |
---|
521 | mkdir conf$$.dir 2>/dev/null |
---|
522 | fi |
---|
523 | if (echo >conf$$.file) 2>/dev/null; then |
---|
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
525 | as_ln_s='ln -s' |
---|
526 | # ... but there are two gotchas: |
---|
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
529 | # In both cases, we have to default to `cp -pR'. |
---|
530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
531 | as_ln_s='cp -pR' |
---|
532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
533 | as_ln_s=ln |
---|
534 | else |
---|
535 | as_ln_s='cp -pR' |
---|
536 | fi |
---|
537 | else |
---|
538 | as_ln_s='cp -pR' |
---|
539 | fi |
---|
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
541 | rmdir conf$$.dir 2>/dev/null |
---|
542 | |
---|
543 | if mkdir -p . 2>/dev/null; then |
---|
544 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
545 | else |
---|
546 | test -d ./-p && rmdir ./-p |
---|
547 | as_mkdir_p=false |
---|
548 | fi |
---|
549 | |
---|
550 | as_test_x='test -x' |
---|
551 | as_executable_p=as_fn_executable_p |
---|
552 | |
---|
553 | # Sed expression to map a string onto a valid CPP name. |
---|
554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
555 | |
---|
556 | # Sed expression to map a string onto a valid variable name. |
---|
557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
558 | |
---|
559 | |
---|
560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
561 | exec 6>&1 |
---|
562 | |
---|
563 | # Name of the host. |
---|
564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
565 | # so uname gets run too. |
---|
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
567 | |
---|
568 | # |
---|
569 | # Initializations. |
---|
570 | # |
---|
571 | ac_default_prefix=/usr/local |
---|
572 | ac_clean_files= |
---|
573 | ac_config_libobj_dir=. |
---|
574 | LIBOBJS= |
---|
575 | cross_compiling=no |
---|
576 | subdirs= |
---|
577 | MFLAGS= |
---|
578 | MAKEFLAGS= |
---|
579 | |
---|
580 | # Identity of this package. |
---|
581 | PACKAGE_NAME='cfa-cc' |
---|
582 | PACKAGE_TARNAME='cfa-cc' |
---|
583 | PACKAGE_VERSION='1.0.0.0' |
---|
584 | PACKAGE_STRING='cfa-cc 1.0.0.0' |
---|
585 | PACKAGE_BUGREPORT='cforall@plg.uwaterloo.ca' |
---|
586 | PACKAGE_URL='' |
---|
587 | |
---|
588 | # Factoring default headers for most tests. |
---|
589 | ac_includes_default="\ |
---|
590 | #include <stdio.h> |
---|
591 | #ifdef HAVE_SYS_TYPES_H |
---|
592 | # include <sys/types.h> |
---|
593 | #endif |
---|
594 | #ifdef HAVE_SYS_STAT_H |
---|
595 | # include <sys/stat.h> |
---|
596 | #endif |
---|
597 | #ifdef STDC_HEADERS |
---|
598 | # include <stdlib.h> |
---|
599 | # include <stddef.h> |
---|
600 | #else |
---|
601 | # ifdef HAVE_STDLIB_H |
---|
602 | # include <stdlib.h> |
---|
603 | # endif |
---|
604 | #endif |
---|
605 | #ifdef HAVE_STRING_H |
---|
606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
607 | # include <memory.h> |
---|
608 | # endif |
---|
609 | # include <string.h> |
---|
610 | #endif |
---|
611 | #ifdef HAVE_STRINGS_H |
---|
612 | # include <strings.h> |
---|
613 | #endif |
---|
614 | #ifdef HAVE_INTTYPES_H |
---|
615 | # include <inttypes.h> |
---|
616 | #endif |
---|
617 | #ifdef HAVE_STDINT_H |
---|
618 | # include <stdint.h> |
---|
619 | #endif |
---|
620 | #ifdef HAVE_UNISTD_H |
---|
621 | # include <unistd.h> |
---|
622 | #endif" |
---|
623 | |
---|
624 | ac_subst_vars='am__EXEEXT_FALSE |
---|
625 | am__EXEEXT_TRUE |
---|
626 | LTLIBOBJS |
---|
627 | LIBOBJS |
---|
628 | CFA_BACKEND_CC |
---|
629 | ALLOCA |
---|
630 | EGREP |
---|
631 | GREP |
---|
632 | CPP |
---|
633 | WITH_LIBFIBRE_FALSE |
---|
634 | WITH_LIBFIBRE_TRUE |
---|
635 | RANLIB |
---|
636 | LEXLIB |
---|
637 | LEX_OUTPUT_ROOT |
---|
638 | LEX |
---|
639 | YFLAGS |
---|
640 | YACC |
---|
641 | am__fastdepCCAS_FALSE |
---|
642 | am__fastdepCCAS_TRUE |
---|
643 | CCASDEPMODE |
---|
644 | CCASFLAGS |
---|
645 | CCAS |
---|
646 | am__fastdepCC_FALSE |
---|
647 | am__fastdepCC_TRUE |
---|
648 | CCDEPMODE |
---|
649 | ac_ct_CC |
---|
650 | CFLAGS |
---|
651 | CC |
---|
652 | am__fastdepCXX_FALSE |
---|
653 | am__fastdepCXX_TRUE |
---|
654 | CXXDEPMODE |
---|
655 | am__nodep |
---|
656 | AMDEPBACKSLASH |
---|
657 | AMDEP_FALSE |
---|
658 | AMDEP_TRUE |
---|
659 | am__quote |
---|
660 | am__include |
---|
661 | DEPDIR |
---|
662 | OBJEXT |
---|
663 | EXEEXT |
---|
664 | ac_ct_CXX |
---|
665 | CPPFLAGS |
---|
666 | LDFLAGS |
---|
667 | CXXFLAGS |
---|
668 | CXX |
---|
669 | CFA_FLAGS |
---|
670 | LIBCFA_TARGET_MAKEFILES |
---|
671 | LIBCFA_TARGET_DIRS |
---|
672 | TARGET_HOSTS |
---|
673 | HOST_FLAGS |
---|
674 | host_os |
---|
675 | host_vendor |
---|
676 | host_cpu |
---|
677 | host |
---|
678 | build_os |
---|
679 | build_vendor |
---|
680 | build_cpu |
---|
681 | build |
---|
682 | BUILD_IN_TREE_FLAGS |
---|
683 | CFACPP |
---|
684 | CFACC |
---|
685 | DRIVER_DIR |
---|
686 | CFA_LIBDIR |
---|
687 | CFA_BINDIR |
---|
688 | CFA_INCDIR |
---|
689 | CFA_PREFIX |
---|
690 | DOendif |
---|
691 | DOifskipcompile |
---|
692 | CFA_NAME |
---|
693 | am__untar |
---|
694 | am__tar |
---|
695 | AMTAR |
---|
696 | am__leading_dot |
---|
697 | SET_MAKE |
---|
698 | AWK |
---|
699 | mkdir_p |
---|
700 | MKDIR_P |
---|
701 | INSTALL_STRIP_PROGRAM |
---|
702 | STRIP |
---|
703 | install_sh |
---|
704 | MAKEINFO |
---|
705 | AUTOHEADER |
---|
706 | AUTOMAKE |
---|
707 | AUTOCONF |
---|
708 | ACLOCAL |
---|
709 | VERSION |
---|
710 | PACKAGE |
---|
711 | CYGPATH_W |
---|
712 | am__isrc |
---|
713 | INSTALL_DATA |
---|
714 | INSTALL_SCRIPT |
---|
715 | INSTALL_PROGRAM |
---|
716 | AM_BACKSLASH |
---|
717 | AM_DEFAULT_VERBOSITY |
---|
718 | AM_DEFAULT_V |
---|
719 | AM_V |
---|
720 | target_alias |
---|
721 | host_alias |
---|
722 | build_alias |
---|
723 | LIBS |
---|
724 | ECHO_T |
---|
725 | ECHO_N |
---|
726 | ECHO_C |
---|
727 | DEFS |
---|
728 | mandir |
---|
729 | localedir |
---|
730 | libdir |
---|
731 | psdir |
---|
732 | pdfdir |
---|
733 | dvidir |
---|
734 | htmldir |
---|
735 | infodir |
---|
736 | docdir |
---|
737 | oldincludedir |
---|
738 | includedir |
---|
739 | runstatedir |
---|
740 | localstatedir |
---|
741 | sharedstatedir |
---|
742 | sysconfdir |
---|
743 | datadir |
---|
744 | datarootdir |
---|
745 | libexecdir |
---|
746 | sbindir |
---|
747 | bindir |
---|
748 | program_transform_name |
---|
749 | prefix |
---|
750 | exec_prefix |
---|
751 | PACKAGE_URL |
---|
752 | PACKAGE_BUGREPORT |
---|
753 | PACKAGE_STRING |
---|
754 | PACKAGE_VERSION |
---|
755 | PACKAGE_TARNAME |
---|
756 | PACKAGE_NAME |
---|
757 | PATH_SEPARATOR |
---|
758 | SHELL' |
---|
759 | ac_subst_files='' |
---|
760 | ac_user_opts=' |
---|
761 | enable_option_checking |
---|
762 | enable_silent_rules |
---|
763 | with_cfa_name |
---|
764 | with_target_hosts |
---|
765 | enable_dependency_tracking |
---|
766 | ' |
---|
767 | ac_precious_vars='build_alias |
---|
768 | host_alias |
---|
769 | target_alias |
---|
770 | CXX |
---|
771 | CXXFLAGS |
---|
772 | LDFLAGS |
---|
773 | LIBS |
---|
774 | CPPFLAGS |
---|
775 | CCC |
---|
776 | CC |
---|
777 | CFLAGS |
---|
778 | CCAS |
---|
779 | CCASFLAGS |
---|
780 | YACC |
---|
781 | YFLAGS |
---|
782 | CPP' |
---|
783 | |
---|
784 | |
---|
785 | # Initialize some variables set by options. |
---|
786 | ac_init_help= |
---|
787 | ac_init_version=false |
---|
788 | ac_unrecognized_opts= |
---|
789 | ac_unrecognized_sep= |
---|
790 | # The variables have the same names as the options, with |
---|
791 | # dashes changed to underlines. |
---|
792 | cache_file=/dev/null |
---|
793 | exec_prefix=NONE |
---|
794 | no_create= |
---|
795 | no_recursion= |
---|
796 | prefix=NONE |
---|
797 | program_prefix=NONE |
---|
798 | program_suffix=NONE |
---|
799 | program_transform_name=s,x,x, |
---|
800 | silent= |
---|
801 | site= |
---|
802 | srcdir= |
---|
803 | verbose= |
---|
804 | x_includes=NONE |
---|
805 | x_libraries=NONE |
---|
806 | |
---|
807 | # Installation directory options. |
---|
808 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
809 | # and all the variables that are supposed to be based on exec_prefix |
---|
810 | # by default will actually change. |
---|
811 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
812 | # (The list follows the same order as the GNU Coding Standards.) |
---|
813 | bindir='${exec_prefix}/bin' |
---|
814 | sbindir='${exec_prefix}/sbin' |
---|
815 | libexecdir='${exec_prefix}/libexec' |
---|
816 | datarootdir='${prefix}/share' |
---|
817 | datadir='${datarootdir}' |
---|
818 | sysconfdir='${prefix}/etc' |
---|
819 | sharedstatedir='${prefix}/com' |
---|
820 | localstatedir='${prefix}/var' |
---|
821 | runstatedir='${localstatedir}/run' |
---|
822 | includedir='${prefix}/include' |
---|
823 | oldincludedir='/usr/include' |
---|
824 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
825 | infodir='${datarootdir}/info' |
---|
826 | htmldir='${docdir}' |
---|
827 | dvidir='${docdir}' |
---|
828 | pdfdir='${docdir}' |
---|
829 | psdir='${docdir}' |
---|
830 | libdir='${exec_prefix}/lib' |
---|
831 | localedir='${datarootdir}/locale' |
---|
832 | mandir='${datarootdir}/man' |
---|
833 | |
---|
834 | ac_prev= |
---|
835 | ac_dashdash= |
---|
836 | for ac_option |
---|
837 | do |
---|
838 | # If the previous option needs an argument, assign it. |
---|
839 | if test -n "$ac_prev"; then |
---|
840 | eval $ac_prev=\$ac_option |
---|
841 | ac_prev= |
---|
842 | continue |
---|
843 | fi |
---|
844 | |
---|
845 | case $ac_option in |
---|
846 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
847 | *=) ac_optarg= ;; |
---|
848 | *) ac_optarg=yes ;; |
---|
849 | esac |
---|
850 | |
---|
851 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
852 | |
---|
853 | case $ac_dashdash$ac_option in |
---|
854 | --) |
---|
855 | ac_dashdash=yes ;; |
---|
856 | |
---|
857 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
858 | ac_prev=bindir ;; |
---|
859 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
860 | bindir=$ac_optarg ;; |
---|
861 | |
---|
862 | -build | --build | --buil | --bui | --bu) |
---|
863 | ac_prev=build_alias ;; |
---|
864 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
865 | build_alias=$ac_optarg ;; |
---|
866 | |
---|
867 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
868 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
869 | ac_prev=cache_file ;; |
---|
870 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
871 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
872 | cache_file=$ac_optarg ;; |
---|
873 | |
---|
874 | --config-cache | -C) |
---|
875 | cache_file=config.cache ;; |
---|
876 | |
---|
877 | -datadir | --datadir | --datadi | --datad) |
---|
878 | ac_prev=datadir ;; |
---|
879 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
880 | datadir=$ac_optarg ;; |
---|
881 | |
---|
882 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
883 | | --dataroo | --dataro | --datar) |
---|
884 | ac_prev=datarootdir ;; |
---|
885 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
886 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
887 | datarootdir=$ac_optarg ;; |
---|
888 | |
---|
889 | -disable-* | --disable-*) |
---|
890 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
891 | # Reject names that are not valid shell variable names. |
---|
892 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
893 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
894 | ac_useropt_orig=$ac_useropt |
---|
895 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
896 | case $ac_user_opts in |
---|
897 | *" |
---|
898 | "enable_$ac_useropt" |
---|
899 | "*) ;; |
---|
900 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
901 | ac_unrecognized_sep=', ';; |
---|
902 | esac |
---|
903 | eval enable_$ac_useropt=no ;; |
---|
904 | |
---|
905 | -docdir | --docdir | --docdi | --doc | --do) |
---|
906 | ac_prev=docdir ;; |
---|
907 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
908 | docdir=$ac_optarg ;; |
---|
909 | |
---|
910 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
911 | ac_prev=dvidir ;; |
---|
912 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
913 | dvidir=$ac_optarg ;; |
---|
914 | |
---|
915 | -enable-* | --enable-*) |
---|
916 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
917 | # Reject names that are not valid shell variable names. |
---|
918 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
919 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
920 | ac_useropt_orig=$ac_useropt |
---|
921 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
922 | case $ac_user_opts in |
---|
923 | *" |
---|
924 | "enable_$ac_useropt" |
---|
925 | "*) ;; |
---|
926 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
927 | ac_unrecognized_sep=', ';; |
---|
928 | esac |
---|
929 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
930 | |
---|
931 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
932 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
933 | | --exec | --exe | --ex) |
---|
934 | ac_prev=exec_prefix ;; |
---|
935 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
936 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
937 | | --exec=* | --exe=* | --ex=*) |
---|
938 | exec_prefix=$ac_optarg ;; |
---|
939 | |
---|
940 | -gas | --gas | --ga | --g) |
---|
941 | # Obsolete; use --with-gas. |
---|
942 | with_gas=yes ;; |
---|
943 | |
---|
944 | -help | --help | --hel | --he | -h) |
---|
945 | ac_init_help=long ;; |
---|
946 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
947 | ac_init_help=recursive ;; |
---|
948 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
949 | ac_init_help=short ;; |
---|
950 | |
---|
951 | -host | --host | --hos | --ho) |
---|
952 | ac_prev=host_alias ;; |
---|
953 | -host=* | --host=* | --hos=* | --ho=*) |
---|
954 | host_alias=$ac_optarg ;; |
---|
955 | |
---|
956 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
957 | ac_prev=htmldir ;; |
---|
958 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
959 | | --ht=*) |
---|
960 | htmldir=$ac_optarg ;; |
---|
961 | |
---|
962 | -includedir | --includedir | --includedi | --included | --include \ |
---|
963 | | --includ | --inclu | --incl | --inc) |
---|
964 | ac_prev=includedir ;; |
---|
965 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
966 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
967 | includedir=$ac_optarg ;; |
---|
968 | |
---|
969 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
970 | ac_prev=infodir ;; |
---|
971 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
972 | infodir=$ac_optarg ;; |
---|
973 | |
---|
974 | -libdir | --libdir | --libdi | --libd) |
---|
975 | ac_prev=libdir ;; |
---|
976 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
977 | libdir=$ac_optarg ;; |
---|
978 | |
---|
979 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
980 | | --libexe | --libex | --libe) |
---|
981 | ac_prev=libexecdir ;; |
---|
982 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
983 | | --libexe=* | --libex=* | --libe=*) |
---|
984 | libexecdir=$ac_optarg ;; |
---|
985 | |
---|
986 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
987 | ac_prev=localedir ;; |
---|
988 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
989 | localedir=$ac_optarg ;; |
---|
990 | |
---|
991 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
992 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
993 | ac_prev=localstatedir ;; |
---|
994 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
995 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
996 | localstatedir=$ac_optarg ;; |
---|
997 | |
---|
998 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
999 | ac_prev=mandir ;; |
---|
1000 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
1001 | mandir=$ac_optarg ;; |
---|
1002 | |
---|
1003 | -nfp | --nfp | --nf) |
---|
1004 | # Obsolete; use --without-fp. |
---|
1005 | with_fp=no ;; |
---|
1006 | |
---|
1007 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
1008 | | --no-cr | --no-c | -n) |
---|
1009 | no_create=yes ;; |
---|
1010 | |
---|
1011 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
1012 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
1013 | no_recursion=yes ;; |
---|
1014 | |
---|
1015 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
1016 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
1017 | | --oldin | --oldi | --old | --ol | --o) |
---|
1018 | ac_prev=oldincludedir ;; |
---|
1019 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
1020 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
1021 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
1022 | oldincludedir=$ac_optarg ;; |
---|
1023 | |
---|
1024 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
1025 | ac_prev=prefix ;; |
---|
1026 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
1027 | prefix=$ac_optarg ;; |
---|
1028 | |
---|
1029 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
1030 | | --program-pre | --program-pr | --program-p) |
---|
1031 | ac_prev=program_prefix ;; |
---|
1032 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
1033 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
1034 | program_prefix=$ac_optarg ;; |
---|
1035 | |
---|
1036 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
1037 | | --program-suf | --program-su | --program-s) |
---|
1038 | ac_prev=program_suffix ;; |
---|
1039 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1040 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1041 | program_suffix=$ac_optarg ;; |
---|
1042 | |
---|
1043 | -program-transform-name | --program-transform-name \ |
---|
1044 | | --program-transform-nam | --program-transform-na \ |
---|
1045 | | --program-transform-n | --program-transform- \ |
---|
1046 | | --program-transform | --program-transfor \ |
---|
1047 | | --program-transfo | --program-transf \ |
---|
1048 | | --program-trans | --program-tran \ |
---|
1049 | | --progr-tra | --program-tr | --program-t) |
---|
1050 | ac_prev=program_transform_name ;; |
---|
1051 | -program-transform-name=* | --program-transform-name=* \ |
---|
1052 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1053 | | --program-transform-n=* | --program-transform-=* \ |
---|
1054 | | --program-transform=* | --program-transfor=* \ |
---|
1055 | | --program-transfo=* | --program-transf=* \ |
---|
1056 | | --program-trans=* | --program-tran=* \ |
---|
1057 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1058 | program_transform_name=$ac_optarg ;; |
---|
1059 | |
---|
1060 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1061 | ac_prev=pdfdir ;; |
---|
1062 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1063 | pdfdir=$ac_optarg ;; |
---|
1064 | |
---|
1065 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1066 | ac_prev=psdir ;; |
---|
1067 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1068 | psdir=$ac_optarg ;; |
---|
1069 | |
---|
1070 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1071 | | -silent | --silent | --silen | --sile | --sil) |
---|
1072 | silent=yes ;; |
---|
1073 | |
---|
1074 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
---|
1075 | | --runstate | --runstat | --runsta | --runst | --runs \ |
---|
1076 | | --run | --ru | --r) |
---|
1077 | ac_prev=runstatedir ;; |
---|
1078 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
---|
1079 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
---|
1080 | | --run=* | --ru=* | --r=*) |
---|
1081 | runstatedir=$ac_optarg ;; |
---|
1082 | |
---|
1083 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1084 | ac_prev=sbindir ;; |
---|
1085 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1086 | | --sbi=* | --sb=*) |
---|
1087 | sbindir=$ac_optarg ;; |
---|
1088 | |
---|
1089 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1090 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1091 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1092 | | --sha | --sh) |
---|
1093 | ac_prev=sharedstatedir ;; |
---|
1094 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1095 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1096 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1097 | | --sha=* | --sh=*) |
---|
1098 | sharedstatedir=$ac_optarg ;; |
---|
1099 | |
---|
1100 | -site | --site | --sit) |
---|
1101 | ac_prev=site ;; |
---|
1102 | -site=* | --site=* | --sit=*) |
---|
1103 | site=$ac_optarg ;; |
---|
1104 | |
---|
1105 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1106 | ac_prev=srcdir ;; |
---|
1107 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1108 | srcdir=$ac_optarg ;; |
---|
1109 | |
---|
1110 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1111 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1112 | ac_prev=sysconfdir ;; |
---|
1113 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1114 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1115 | sysconfdir=$ac_optarg ;; |
---|
1116 | |
---|
1117 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1118 | ac_prev=target_alias ;; |
---|
1119 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1120 | target_alias=$ac_optarg ;; |
---|
1121 | |
---|
1122 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1123 | verbose=yes ;; |
---|
1124 | |
---|
1125 | -version | --version | --versio | --versi | --vers | -V) |
---|
1126 | ac_init_version=: ;; |
---|
1127 | |
---|
1128 | -with-* | --with-*) |
---|
1129 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1130 | # Reject names that are not valid shell variable names. |
---|
1131 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1132 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1133 | ac_useropt_orig=$ac_useropt |
---|
1134 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1135 | case $ac_user_opts in |
---|
1136 | *" |
---|
1137 | "with_$ac_useropt" |
---|
1138 | "*) ;; |
---|
1139 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1140 | ac_unrecognized_sep=', ';; |
---|
1141 | esac |
---|
1142 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1143 | |
---|
1144 | -without-* | --without-*) |
---|
1145 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1146 | # Reject names that are not valid shell variable names. |
---|
1147 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1148 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1149 | ac_useropt_orig=$ac_useropt |
---|
1150 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1151 | case $ac_user_opts in |
---|
1152 | *" |
---|
1153 | "with_$ac_useropt" |
---|
1154 | "*) ;; |
---|
1155 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1156 | ac_unrecognized_sep=', ';; |
---|
1157 | esac |
---|
1158 | eval with_$ac_useropt=no ;; |
---|
1159 | |
---|
1160 | --x) |
---|
1161 | # Obsolete; use --with-x. |
---|
1162 | with_x=yes ;; |
---|
1163 | |
---|
1164 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1165 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1166 | ac_prev=x_includes ;; |
---|
1167 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1168 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1169 | x_includes=$ac_optarg ;; |
---|
1170 | |
---|
1171 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1172 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1173 | ac_prev=x_libraries ;; |
---|
1174 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1175 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1176 | x_libraries=$ac_optarg ;; |
---|
1177 | |
---|
1178 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1179 | Try \`$0 --help' for more information" |
---|
1180 | ;; |
---|
1181 | |
---|
1182 | *=*) |
---|
1183 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1184 | # Reject names that are not valid shell variable names. |
---|
1185 | case $ac_envvar in #( |
---|
1186 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1187 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1188 | esac |
---|
1189 | eval $ac_envvar=\$ac_optarg |
---|
1190 | export $ac_envvar ;; |
---|
1191 | |
---|
1192 | *) |
---|
1193 | # FIXME: should be removed in autoconf 3.0. |
---|
1194 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1195 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1196 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1197 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1198 | ;; |
---|
1199 | |
---|
1200 | esac |
---|
1201 | done |
---|
1202 | |
---|
1203 | if test -n "$ac_prev"; then |
---|
1204 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1205 | as_fn_error $? "missing argument to $ac_option" |
---|
1206 | fi |
---|
1207 | |
---|
1208 | if test -n "$ac_unrecognized_opts"; then |
---|
1209 | case $enable_option_checking in |
---|
1210 | no) ;; |
---|
1211 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1212 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1213 | esac |
---|
1214 | fi |
---|
1215 | |
---|
1216 | # Check all directory arguments for consistency. |
---|
1217 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1218 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1219 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1220 | libdir localedir mandir runstatedir |
---|
1221 | do |
---|
1222 | eval ac_val=\$$ac_var |
---|
1223 | # Remove trailing slashes. |
---|
1224 | case $ac_val in |
---|
1225 | */ ) |
---|
1226 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1227 | eval $ac_var=\$ac_val;; |
---|
1228 | esac |
---|
1229 | # Be sure to have absolute directory names. |
---|
1230 | case $ac_val in |
---|
1231 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1232 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1233 | esac |
---|
1234 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1235 | done |
---|
1236 | |
---|
1237 | # There might be people who depend on the old broken behavior: `$host' |
---|
1238 | # used to hold the argument of --host etc. |
---|
1239 | # FIXME: To remove some day. |
---|
1240 | build=$build_alias |
---|
1241 | host=$host_alias |
---|
1242 | target=$target_alias |
---|
1243 | |
---|
1244 | # FIXME: To remove some day. |
---|
1245 | if test "x$host_alias" != x; then |
---|
1246 | if test "x$build_alias" = x; then |
---|
1247 | cross_compiling=maybe |
---|
1248 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1249 | cross_compiling=yes |
---|
1250 | fi |
---|
1251 | fi |
---|
1252 | |
---|
1253 | ac_tool_prefix= |
---|
1254 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1255 | |
---|
1256 | test "$silent" = yes && exec 6>/dev/null |
---|
1257 | |
---|
1258 | |
---|
1259 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1260 | ac_ls_di=`ls -di .` && |
---|
1261 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1262 | as_fn_error $? "working directory cannot be determined" |
---|
1263 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1264 | as_fn_error $? "pwd does not report name of working directory" |
---|
1265 | |
---|
1266 | |
---|
1267 | # Find the source files, if location was not specified. |
---|
1268 | if test -z "$srcdir"; then |
---|
1269 | ac_srcdir_defaulted=yes |
---|
1270 | # Try the directory containing this script, then the parent directory. |
---|
1271 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1272 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1273 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1274 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1275 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1276 | $as_echo X"$as_myself" | |
---|
1277 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1278 | s//\1/ |
---|
1279 | q |
---|
1280 | } |
---|
1281 | /^X\(\/\/\)[^/].*/{ |
---|
1282 | s//\1/ |
---|
1283 | q |
---|
1284 | } |
---|
1285 | /^X\(\/\/\)$/{ |
---|
1286 | s//\1/ |
---|
1287 | q |
---|
1288 | } |
---|
1289 | /^X\(\/\).*/{ |
---|
1290 | s//\1/ |
---|
1291 | q |
---|
1292 | } |
---|
1293 | s/.*/./; q'` |
---|
1294 | srcdir=$ac_confdir |
---|
1295 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1296 | srcdir=.. |
---|
1297 | fi |
---|
1298 | else |
---|
1299 | ac_srcdir_defaulted=no |
---|
1300 | fi |
---|
1301 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1302 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1303 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1304 | fi |
---|
1305 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1306 | ac_abs_confdir=`( |
---|
1307 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1308 | pwd)` |
---|
1309 | # When building in place, set srcdir=. |
---|
1310 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1311 | srcdir=. |
---|
1312 | fi |
---|
1313 | # Remove unnecessary trailing slashes from srcdir. |
---|
1314 | # Double slashes in file names in object file debugging info |
---|
1315 | # mess up M-x gdb in Emacs. |
---|
1316 | case $srcdir in |
---|
1317 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1318 | esac |
---|
1319 | for ac_var in $ac_precious_vars; do |
---|
1320 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1321 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1322 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1323 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1324 | done |
---|
1325 | |
---|
1326 | # |
---|
1327 | # Report the --help message. |
---|
1328 | # |
---|
1329 | if test "$ac_init_help" = "long"; then |
---|
1330 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1331 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1332 | cat <<_ACEOF |
---|
1333 | \`configure' configures cfa-cc 1.0.0.0 to adapt to many kinds of systems. |
---|
1334 | |
---|
1335 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1336 | |
---|
1337 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1338 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1339 | |
---|
1340 | Defaults for the options are specified in brackets. |
---|
1341 | |
---|
1342 | Configuration: |
---|
1343 | -h, --help display this help and exit |
---|
1344 | --help=short display options specific to this package |
---|
1345 | --help=recursive display the short help of all the included packages |
---|
1346 | -V, --version display version information and exit |
---|
1347 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1348 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1349 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1350 | -n, --no-create do not create output files |
---|
1351 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1352 | |
---|
1353 | Installation directories: |
---|
1354 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1355 | [$ac_default_prefix] |
---|
1356 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1357 | [PREFIX] |
---|
1358 | |
---|
1359 | By default, \`make install' will install all the files in |
---|
1360 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1361 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1362 | for instance \`--prefix=\$HOME'. |
---|
1363 | |
---|
1364 | For better control, use the options below. |
---|
1365 | |
---|
1366 | Fine tuning of the installation directories: |
---|
1367 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1368 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1369 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1370 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1371 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1372 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1373 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
---|
1374 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1375 | --includedir=DIR C header files [PREFIX/include] |
---|
1376 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1377 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1378 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1379 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1380 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1381 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1382 | --docdir=DIR documentation root [DATAROOTDIR/doc/cfa-cc] |
---|
1383 | --htmldir=DIR html documentation [DOCDIR] |
---|
1384 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1385 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1386 | --psdir=DIR ps documentation [DOCDIR] |
---|
1387 | _ACEOF |
---|
1388 | |
---|
1389 | cat <<\_ACEOF |
---|
1390 | |
---|
1391 | Program names: |
---|
1392 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1393 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1394 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1395 | |
---|
1396 | System types: |
---|
1397 | --build=BUILD configure for building on BUILD [guessed] |
---|
1398 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1399 | _ACEOF |
---|
1400 | fi |
---|
1401 | |
---|
1402 | if test -n "$ac_init_help"; then |
---|
1403 | case $ac_init_help in |
---|
1404 | short | recursive ) echo "Configuration of cfa-cc 1.0.0.0:";; |
---|
1405 | esac |
---|
1406 | cat <<\_ACEOF |
---|
1407 | |
---|
1408 | Optional Features: |
---|
1409 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1410 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1411 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1412 | --enable-silent-rules less verbose build output (undo: "make V=1") |
---|
1413 | --disable-silent-rules verbose build output (undo: "make V=0") |
---|
1414 | --enable-dependency-tracking |
---|
1415 | do not reject slow dependency extractors |
---|
1416 | --disable-dependency-tracking |
---|
1417 | speeds up one-time build |
---|
1418 | |
---|
1419 | Optional Packages: |
---|
1420 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1421 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1422 | --with-cfa-name=NAME NAME too which cfa will be installed |
---|
1423 | --with-target-hosts=HOSTS HOSTS comma seperated list of hosts to build for, format ARCH:debug|nodebug|nolib |
---|
1424 | |
---|
1425 | Some influential environment variables: |
---|
1426 | CXX C++ compiler command |
---|
1427 | CXXFLAGS C++ compiler flags |
---|
1428 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1429 | nonstandard directory <lib dir> |
---|
1430 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1431 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1432 | you have headers in a nonstandard directory <include dir> |
---|
1433 | CC C compiler command |
---|
1434 | CFLAGS C compiler flags |
---|
1435 | CCAS assembler compiler command (defaults to CC) |
---|
1436 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) |
---|
1437 | YACC The `Yet Another Compiler Compiler' implementation to use. |
---|
1438 | Defaults to the first program found out of: `bison -y', `byacc', |
---|
1439 | `yacc'. |
---|
1440 | YFLAGS The list of arguments that will be passed by default to $YACC. |
---|
1441 | This script will default YFLAGS to the empty string to avoid a |
---|
1442 | default value of `-d' given by some make applications. |
---|
1443 | CPP C preprocessor |
---|
1444 | |
---|
1445 | Use these variables to override the choices made by `configure' or to help |
---|
1446 | it to find libraries and programs with nonstandard names/locations. |
---|
1447 | |
---|
1448 | Report bugs to <cforall@plg.uwaterloo.ca>. |
---|
1449 | _ACEOF |
---|
1450 | ac_status=$? |
---|
1451 | fi |
---|
1452 | |
---|
1453 | if test "$ac_init_help" = "recursive"; then |
---|
1454 | # If there are subdirs, report their specific --help. |
---|
1455 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1456 | test -d "$ac_dir" || |
---|
1457 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1458 | continue |
---|
1459 | ac_builddir=. |
---|
1460 | |
---|
1461 | case "$ac_dir" in |
---|
1462 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1463 | *) |
---|
1464 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1465 | # A ".." for each directory in $ac_dir_suffix. |
---|
1466 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1467 | case $ac_top_builddir_sub in |
---|
1468 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1469 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1470 | esac ;; |
---|
1471 | esac |
---|
1472 | ac_abs_top_builddir=$ac_pwd |
---|
1473 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1474 | # for backward compatibility: |
---|
1475 | ac_top_builddir=$ac_top_build_prefix |
---|
1476 | |
---|
1477 | case $srcdir in |
---|
1478 | .) # We are building in place. |
---|
1479 | ac_srcdir=. |
---|
1480 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1481 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1482 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1483 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1484 | ac_top_srcdir=$srcdir |
---|
1485 | ac_abs_top_srcdir=$srcdir ;; |
---|
1486 | *) # Relative name. |
---|
1487 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1488 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1489 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1490 | esac |
---|
1491 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1492 | |
---|
1493 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1494 | # Check for guested configure. |
---|
1495 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1496 | echo && |
---|
1497 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1498 | elif test -f "$ac_srcdir/configure"; then |
---|
1499 | echo && |
---|
1500 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1501 | else |
---|
1502 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1503 | fi || ac_status=$? |
---|
1504 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1505 | done |
---|
1506 | fi |
---|
1507 | |
---|
1508 | test -n "$ac_init_help" && exit $ac_status |
---|
1509 | if $ac_init_version; then |
---|
1510 | cat <<\_ACEOF |
---|
1511 | cfa-cc configure 1.0.0.0 |
---|
1512 | generated by GNU Autoconf 2.69 |
---|
1513 | |
---|
1514 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
1515 | This configure script is free software; the Free Software Foundation |
---|
1516 | gives unlimited permission to copy, distribute and modify it. |
---|
1517 | _ACEOF |
---|
1518 | exit |
---|
1519 | fi |
---|
1520 | |
---|
1521 | ## ------------------------ ## |
---|
1522 | ## Autoconf initialization. ## |
---|
1523 | ## ------------------------ ## |
---|
1524 | |
---|
1525 | # ac_fn_cxx_try_compile LINENO |
---|
1526 | # ---------------------------- |
---|
1527 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1528 | ac_fn_cxx_try_compile () |
---|
1529 | { |
---|
1530 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1531 | rm -f conftest.$ac_objext |
---|
1532 | if { { ac_try="$ac_compile" |
---|
1533 | case "(($ac_try" in |
---|
1534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1535 | *) ac_try_echo=$ac_try;; |
---|
1536 | esac |
---|
1537 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1538 | $as_echo "$ac_try_echo"; } >&5 |
---|
1539 | (eval "$ac_compile") 2>conftest.err |
---|
1540 | ac_status=$? |
---|
1541 | if test -s conftest.err; then |
---|
1542 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1543 | cat conftest.er1 >&5 |
---|
1544 | mv -f conftest.er1 conftest.err |
---|
1545 | fi |
---|
1546 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1547 | test $ac_status = 0; } && { |
---|
1548 | test -z "$ac_cxx_werror_flag" || |
---|
1549 | test ! -s conftest.err |
---|
1550 | } && test -s conftest.$ac_objext; then : |
---|
1551 | ac_retval=0 |
---|
1552 | else |
---|
1553 | $as_echo "$as_me: failed program was:" >&5 |
---|
1554 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1555 | |
---|
1556 | ac_retval=1 |
---|
1557 | fi |
---|
1558 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1559 | as_fn_set_status $ac_retval |
---|
1560 | |
---|
1561 | } # ac_fn_cxx_try_compile |
---|
1562 | |
---|
1563 | # ac_fn_c_try_compile LINENO |
---|
1564 | # -------------------------- |
---|
1565 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1566 | ac_fn_c_try_compile () |
---|
1567 | { |
---|
1568 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1569 | rm -f conftest.$ac_objext |
---|
1570 | if { { ac_try="$ac_compile" |
---|
1571 | case "(($ac_try" in |
---|
1572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1573 | *) ac_try_echo=$ac_try;; |
---|
1574 | esac |
---|
1575 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1576 | $as_echo "$ac_try_echo"; } >&5 |
---|
1577 | (eval "$ac_compile") 2>conftest.err |
---|
1578 | ac_status=$? |
---|
1579 | if test -s conftest.err; then |
---|
1580 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1581 | cat conftest.er1 >&5 |
---|
1582 | mv -f conftest.er1 conftest.err |
---|
1583 | fi |
---|
1584 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1585 | test $ac_status = 0; } && { |
---|
1586 | test -z "$ac_c_werror_flag" || |
---|
1587 | test ! -s conftest.err |
---|
1588 | } && test -s conftest.$ac_objext; then : |
---|
1589 | ac_retval=0 |
---|
1590 | else |
---|
1591 | $as_echo "$as_me: failed program was:" >&5 |
---|
1592 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1593 | |
---|
1594 | ac_retval=1 |
---|
1595 | fi |
---|
1596 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1597 | as_fn_set_status $ac_retval |
---|
1598 | |
---|
1599 | } # ac_fn_c_try_compile |
---|
1600 | |
---|
1601 | # ac_fn_c_try_link LINENO |
---|
1602 | # ----------------------- |
---|
1603 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1604 | ac_fn_c_try_link () |
---|
1605 | { |
---|
1606 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1607 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1608 | if { { ac_try="$ac_link" |
---|
1609 | case "(($ac_try" in |
---|
1610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1611 | *) ac_try_echo=$ac_try;; |
---|
1612 | esac |
---|
1613 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1614 | $as_echo "$ac_try_echo"; } >&5 |
---|
1615 | (eval "$ac_link") 2>conftest.err |
---|
1616 | ac_status=$? |
---|
1617 | if test -s conftest.err; then |
---|
1618 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1619 | cat conftest.er1 >&5 |
---|
1620 | mv -f conftest.er1 conftest.err |
---|
1621 | fi |
---|
1622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1623 | test $ac_status = 0; } && { |
---|
1624 | test -z "$ac_c_werror_flag" || |
---|
1625 | test ! -s conftest.err |
---|
1626 | } && test -s conftest$ac_exeext && { |
---|
1627 | test "$cross_compiling" = yes || |
---|
1628 | test -x conftest$ac_exeext |
---|
1629 | }; then : |
---|
1630 | ac_retval=0 |
---|
1631 | else |
---|
1632 | $as_echo "$as_me: failed program was:" >&5 |
---|
1633 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1634 | |
---|
1635 | ac_retval=1 |
---|
1636 | fi |
---|
1637 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1638 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1639 | # interfere with the next link command; also delete a directory that is |
---|
1640 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1641 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1642 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1643 | as_fn_set_status $ac_retval |
---|
1644 | |
---|
1645 | } # ac_fn_c_try_link |
---|
1646 | |
---|
1647 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
---|
1648 | # ------------------------------------------- |
---|
1649 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
---|
1650 | # variable VAR accordingly. |
---|
1651 | ac_fn_c_check_type () |
---|
1652 | { |
---|
1653 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1655 | $as_echo_n "checking for $2... " >&6; } |
---|
1656 | if eval \${$3+:} false; then : |
---|
1657 | $as_echo_n "(cached) " >&6 |
---|
1658 | else |
---|
1659 | eval "$3=no" |
---|
1660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1661 | /* end confdefs.h. */ |
---|
1662 | $4 |
---|
1663 | int |
---|
1664 | main () |
---|
1665 | { |
---|
1666 | if (sizeof ($2)) |
---|
1667 | return 0; |
---|
1668 | ; |
---|
1669 | return 0; |
---|
1670 | } |
---|
1671 | _ACEOF |
---|
1672 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1674 | /* end confdefs.h. */ |
---|
1675 | $4 |
---|
1676 | int |
---|
1677 | main () |
---|
1678 | { |
---|
1679 | if (sizeof (($2))) |
---|
1680 | return 0; |
---|
1681 | ; |
---|
1682 | return 0; |
---|
1683 | } |
---|
1684 | _ACEOF |
---|
1685 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1686 | |
---|
1687 | else |
---|
1688 | eval "$3=yes" |
---|
1689 | fi |
---|
1690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1691 | fi |
---|
1692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1693 | fi |
---|
1694 | eval ac_res=\$$3 |
---|
1695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1696 | $as_echo "$ac_res" >&6; } |
---|
1697 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1698 | |
---|
1699 | } # ac_fn_c_check_type |
---|
1700 | |
---|
1701 | # ac_fn_c_try_cpp LINENO |
---|
1702 | # ---------------------- |
---|
1703 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1704 | ac_fn_c_try_cpp () |
---|
1705 | { |
---|
1706 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1707 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1708 | case "(($ac_try" in |
---|
1709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1710 | *) ac_try_echo=$ac_try;; |
---|
1711 | esac |
---|
1712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1713 | $as_echo "$ac_try_echo"; } >&5 |
---|
1714 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1715 | ac_status=$? |
---|
1716 | if test -s conftest.err; then |
---|
1717 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1718 | cat conftest.er1 >&5 |
---|
1719 | mv -f conftest.er1 conftest.err |
---|
1720 | fi |
---|
1721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1722 | test $ac_status = 0; } > conftest.i && { |
---|
1723 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1724 | test ! -s conftest.err |
---|
1725 | }; then : |
---|
1726 | ac_retval=0 |
---|
1727 | else |
---|
1728 | $as_echo "$as_me: failed program was:" >&5 |
---|
1729 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1730 | |
---|
1731 | ac_retval=1 |
---|
1732 | fi |
---|
1733 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1734 | as_fn_set_status $ac_retval |
---|
1735 | |
---|
1736 | } # ac_fn_c_try_cpp |
---|
1737 | |
---|
1738 | # ac_fn_c_try_run LINENO |
---|
1739 | # ---------------------- |
---|
1740 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1741 | # that executables *can* be run. |
---|
1742 | ac_fn_c_try_run () |
---|
1743 | { |
---|
1744 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1745 | if { { ac_try="$ac_link" |
---|
1746 | case "(($ac_try" in |
---|
1747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1748 | *) ac_try_echo=$ac_try;; |
---|
1749 | esac |
---|
1750 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1751 | $as_echo "$ac_try_echo"; } >&5 |
---|
1752 | (eval "$ac_link") 2>&5 |
---|
1753 | ac_status=$? |
---|
1754 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1755 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1756 | { { case "(($ac_try" in |
---|
1757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1758 | *) ac_try_echo=$ac_try;; |
---|
1759 | esac |
---|
1760 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1761 | $as_echo "$ac_try_echo"; } >&5 |
---|
1762 | (eval "$ac_try") 2>&5 |
---|
1763 | ac_status=$? |
---|
1764 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1765 | test $ac_status = 0; }; }; then : |
---|
1766 | ac_retval=0 |
---|
1767 | else |
---|
1768 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1769 | $as_echo "$as_me: failed program was:" >&5 |
---|
1770 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1771 | |
---|
1772 | ac_retval=$ac_status |
---|
1773 | fi |
---|
1774 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1775 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1776 | as_fn_set_status $ac_retval |
---|
1777 | |
---|
1778 | } # ac_fn_c_try_run |
---|
1779 | |
---|
1780 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1781 | # ------------------------------------------------------- |
---|
1782 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1783 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1784 | ac_fn_c_check_header_compile () |
---|
1785 | { |
---|
1786 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1788 | $as_echo_n "checking for $2... " >&6; } |
---|
1789 | if eval \${$3+:} false; then : |
---|
1790 | $as_echo_n "(cached) " >&6 |
---|
1791 | else |
---|
1792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1793 | /* end confdefs.h. */ |
---|
1794 | $4 |
---|
1795 | #include <$2> |
---|
1796 | _ACEOF |
---|
1797 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1798 | eval "$3=yes" |
---|
1799 | else |
---|
1800 | eval "$3=no" |
---|
1801 | fi |
---|
1802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1803 | fi |
---|
1804 | eval ac_res=\$$3 |
---|
1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1806 | $as_echo "$ac_res" >&6; } |
---|
1807 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1808 | |
---|
1809 | } # ac_fn_c_check_header_compile |
---|
1810 | |
---|
1811 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1812 | # ---------------------------------- |
---|
1813 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1814 | ac_fn_c_check_func () |
---|
1815 | { |
---|
1816 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1818 | $as_echo_n "checking for $2... " >&6; } |
---|
1819 | if eval \${$3+:} false; then : |
---|
1820 | $as_echo_n "(cached) " >&6 |
---|
1821 | else |
---|
1822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1823 | /* end confdefs.h. */ |
---|
1824 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1825 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1826 | #define $2 innocuous_$2 |
---|
1827 | |
---|
1828 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1829 | which can conflict with char $2 (); below. |
---|
1830 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1831 | <limits.h> exists even on freestanding compilers. */ |
---|
1832 | |
---|
1833 | #ifdef __STDC__ |
---|
1834 | # include <limits.h> |
---|
1835 | #else |
---|
1836 | # include <assert.h> |
---|
1837 | #endif |
---|
1838 | |
---|
1839 | #undef $2 |
---|
1840 | |
---|
1841 | /* Override any GCC internal prototype to avoid an error. |
---|
1842 | Use char because int might match the return type of a GCC |
---|
1843 | builtin and then its argument prototype would still apply. */ |
---|
1844 | #ifdef __cplusplus |
---|
1845 | extern "C" |
---|
1846 | #endif |
---|
1847 | char $2 (); |
---|
1848 | /* The GNU C library defines this for functions which it implements |
---|
1849 | to always fail with ENOSYS. Some functions are actually named |
---|
1850 | something starting with __ and the normal name is an alias. */ |
---|
1851 | #if defined __stub_$2 || defined __stub___$2 |
---|
1852 | choke me |
---|
1853 | #endif |
---|
1854 | |
---|
1855 | int |
---|
1856 | main () |
---|
1857 | { |
---|
1858 | return $2 (); |
---|
1859 | ; |
---|
1860 | return 0; |
---|
1861 | } |
---|
1862 | _ACEOF |
---|
1863 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1864 | eval "$3=yes" |
---|
1865 | else |
---|
1866 | eval "$3=no" |
---|
1867 | fi |
---|
1868 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1869 | conftest$ac_exeext conftest.$ac_ext |
---|
1870 | fi |
---|
1871 | eval ac_res=\$$3 |
---|
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1873 | $as_echo "$ac_res" >&6; } |
---|
1874 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1875 | |
---|
1876 | } # ac_fn_c_check_func |
---|
1877 | |
---|
1878 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1879 | # ------------------------------------------------------- |
---|
1880 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1881 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1882 | # accordingly. |
---|
1883 | ac_fn_c_check_header_mongrel () |
---|
1884 | { |
---|
1885 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1886 | if eval \${$3+:} false; then : |
---|
1887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1888 | $as_echo_n "checking for $2... " >&6; } |
---|
1889 | if eval \${$3+:} false; then : |
---|
1890 | $as_echo_n "(cached) " >&6 |
---|
1891 | fi |
---|
1892 | eval ac_res=\$$3 |
---|
1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1894 | $as_echo "$ac_res" >&6; } |
---|
1895 | else |
---|
1896 | # Is the header compilable? |
---|
1897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1898 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1900 | /* end confdefs.h. */ |
---|
1901 | $4 |
---|
1902 | #include <$2> |
---|
1903 | _ACEOF |
---|
1904 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1905 | ac_header_compiler=yes |
---|
1906 | else |
---|
1907 | ac_header_compiler=no |
---|
1908 | fi |
---|
1909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1911 | $as_echo "$ac_header_compiler" >&6; } |
---|
1912 | |
---|
1913 | # Is the header present? |
---|
1914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1915 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1917 | /* end confdefs.h. */ |
---|
1918 | #include <$2> |
---|
1919 | _ACEOF |
---|
1920 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
1921 | ac_header_preproc=yes |
---|
1922 | else |
---|
1923 | ac_header_preproc=no |
---|
1924 | fi |
---|
1925 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1927 | $as_echo "$ac_header_preproc" >&6; } |
---|
1928 | |
---|
1929 | # So? What about this header? |
---|
1930 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
1931 | yes:no: ) |
---|
1932 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1933 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1934 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1935 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1936 | ;; |
---|
1937 | no:yes:* ) |
---|
1938 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1939 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1941 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1942 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1943 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1944 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1945 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1946 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1947 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1948 | ( $as_echo "## --------------------------------------- ## |
---|
1949 | ## Report this to cforall@plg.uwaterloo.ca ## |
---|
1950 | ## --------------------------------------- ##" |
---|
1951 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1952 | ;; |
---|
1953 | esac |
---|
1954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1955 | $as_echo_n "checking for $2... " >&6; } |
---|
1956 | if eval \${$3+:} false; then : |
---|
1957 | $as_echo_n "(cached) " >&6 |
---|
1958 | else |
---|
1959 | eval "$3=\$ac_header_compiler" |
---|
1960 | fi |
---|
1961 | eval ac_res=\$$3 |
---|
1962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1963 | $as_echo "$ac_res" >&6; } |
---|
1964 | fi |
---|
1965 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1966 | |
---|
1967 | } # ac_fn_c_check_header_mongrel |
---|
1968 | |
---|
1969 | # ac_fn_c_find_intX_t LINENO BITS VAR |
---|
1970 | # ----------------------------------- |
---|
1971 | # Finds a signed integer type with width BITS, setting cache variable VAR |
---|
1972 | # accordingly. |
---|
1973 | ac_fn_c_find_intX_t () |
---|
1974 | { |
---|
1975 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
---|
1977 | $as_echo_n "checking for int$2_t... " >&6; } |
---|
1978 | if eval \${$3+:} false; then : |
---|
1979 | $as_echo_n "(cached) " >&6 |
---|
1980 | else |
---|
1981 | eval "$3=no" |
---|
1982 | # Order is important - never check a type that is potentially smaller |
---|
1983 | # than half of the expected target width. |
---|
1984 | for ac_type in int$2_t 'int' 'long int' \ |
---|
1985 | 'long long int' 'short int' 'signed char'; do |
---|
1986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1987 | /* end confdefs.h. */ |
---|
1988 | $ac_includes_default |
---|
1989 | enum { N = $2 / 2 - 1 }; |
---|
1990 | int |
---|
1991 | main () |
---|
1992 | { |
---|
1993 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
---|
1994 | test_array [0] = 0; |
---|
1995 | return test_array [0]; |
---|
1996 | |
---|
1997 | ; |
---|
1998 | return 0; |
---|
1999 | } |
---|
2000 | _ACEOF |
---|
2001 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2003 | /* end confdefs.h. */ |
---|
2004 | $ac_includes_default |
---|
2005 | enum { N = $2 / 2 - 1 }; |
---|
2006 | int |
---|
2007 | main () |
---|
2008 | { |
---|
2009 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
---|
2010 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
---|
2011 | test_array [0] = 0; |
---|
2012 | return test_array [0]; |
---|
2013 | |
---|
2014 | ; |
---|
2015 | return 0; |
---|
2016 | } |
---|
2017 | _ACEOF |
---|
2018 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2019 | |
---|
2020 | else |
---|
2021 | case $ac_type in #( |
---|
2022 | int$2_t) : |
---|
2023 | eval "$3=yes" ;; #( |
---|
2024 | *) : |
---|
2025 | eval "$3=\$ac_type" ;; |
---|
2026 | esac |
---|
2027 | fi |
---|
2028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2029 | fi |
---|
2030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2031 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
2032 | |
---|
2033 | else |
---|
2034 | break |
---|
2035 | fi |
---|
2036 | done |
---|
2037 | fi |
---|
2038 | eval ac_res=\$$3 |
---|
2039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2040 | $as_echo "$ac_res" >&6; } |
---|
2041 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2042 | |
---|
2043 | } # ac_fn_c_find_intX_t |
---|
2044 | |
---|
2045 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
---|
2046 | # ------------------------------------ |
---|
2047 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
---|
2048 | # accordingly. |
---|
2049 | ac_fn_c_find_uintX_t () |
---|
2050 | { |
---|
2051 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
---|
2053 | $as_echo_n "checking for uint$2_t... " >&6; } |
---|
2054 | if eval \${$3+:} false; then : |
---|
2055 | $as_echo_n "(cached) " >&6 |
---|
2056 | else |
---|
2057 | eval "$3=no" |
---|
2058 | # Order is important - never check a type that is potentially smaller |
---|
2059 | # than half of the expected target width. |
---|
2060 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
---|
2061 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
---|
2062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2063 | /* end confdefs.h. */ |
---|
2064 | $ac_includes_default |
---|
2065 | int |
---|
2066 | main () |
---|
2067 | { |
---|
2068 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
---|
2069 | test_array [0] = 0; |
---|
2070 | return test_array [0]; |
---|
2071 | |
---|
2072 | ; |
---|
2073 | return 0; |
---|
2074 | } |
---|
2075 | _ACEOF |
---|
2076 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2077 | case $ac_type in #( |
---|
2078 | uint$2_t) : |
---|
2079 | eval "$3=yes" ;; #( |
---|
2080 | *) : |
---|
2081 | eval "$3=\$ac_type" ;; |
---|
2082 | esac |
---|
2083 | fi |
---|
2084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2085 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
2086 | |
---|
2087 | else |
---|
2088 | break |
---|
2089 | fi |
---|
2090 | done |
---|
2091 | fi |
---|
2092 | eval ac_res=\$$3 |
---|
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2094 | $as_echo "$ac_res" >&6; } |
---|
2095 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2096 | |
---|
2097 | } # ac_fn_c_find_uintX_t |
---|
2098 | cat >config.log <<_ACEOF |
---|
2099 | This file contains any messages produced by compilers while |
---|
2100 | running configure, to aid debugging if configure makes a mistake. |
---|
2101 | |
---|
2102 | It was created by cfa-cc $as_me 1.0.0.0, which was |
---|
2103 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
2104 | |
---|
2105 | $ $0 $@ |
---|
2106 | |
---|
2107 | _ACEOF |
---|
2108 | exec 5>>config.log |
---|
2109 | { |
---|
2110 | cat <<_ASUNAME |
---|
2111 | ## --------- ## |
---|
2112 | ## Platform. ## |
---|
2113 | ## --------- ## |
---|
2114 | |
---|
2115 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2116 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2117 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2118 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2119 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2120 | |
---|
2121 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2122 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2123 | |
---|
2124 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2125 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2126 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2127 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2128 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2129 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2130 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2131 | |
---|
2132 | _ASUNAME |
---|
2133 | |
---|
2134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2135 | for as_dir in $PATH |
---|
2136 | do |
---|
2137 | IFS=$as_save_IFS |
---|
2138 | test -z "$as_dir" && as_dir=. |
---|
2139 | $as_echo "PATH: $as_dir" |
---|
2140 | done |
---|
2141 | IFS=$as_save_IFS |
---|
2142 | |
---|
2143 | } >&5 |
---|
2144 | |
---|
2145 | cat >&5 <<_ACEOF |
---|
2146 | |
---|
2147 | |
---|
2148 | ## ----------- ## |
---|
2149 | ## Core tests. ## |
---|
2150 | ## ----------- ## |
---|
2151 | |
---|
2152 | _ACEOF |
---|
2153 | |
---|
2154 | |
---|
2155 | # Keep a trace of the command line. |
---|
2156 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2157 | # Strip out --silent because we don't want to record it for future runs. |
---|
2158 | # Also quote any args containing shell meta-characters. |
---|
2159 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2160 | ac_configure_args= |
---|
2161 | ac_configure_args0= |
---|
2162 | ac_configure_args1= |
---|
2163 | ac_must_keep_next=false |
---|
2164 | for ac_pass in 1 2 |
---|
2165 | do |
---|
2166 | for ac_arg |
---|
2167 | do |
---|
2168 | case $ac_arg in |
---|
2169 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2170 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2171 | | -silent | --silent | --silen | --sile | --sil) |
---|
2172 | continue ;; |
---|
2173 | *\'*) |
---|
2174 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2175 | esac |
---|
2176 | case $ac_pass in |
---|
2177 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2178 | 2) |
---|
2179 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2180 | if test $ac_must_keep_next = true; then |
---|
2181 | ac_must_keep_next=false # Got value, back to normal. |
---|
2182 | else |
---|
2183 | case $ac_arg in |
---|
2184 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2185 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2186 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2187 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2188 | case "$ac_configure_args0 " in |
---|
2189 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2190 | esac |
---|
2191 | ;; |
---|
2192 | -* ) ac_must_keep_next=true ;; |
---|
2193 | esac |
---|
2194 | fi |
---|
2195 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2196 | ;; |
---|
2197 | esac |
---|
2198 | done |
---|
2199 | done |
---|
2200 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2201 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2202 | |
---|
2203 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2204 | # config.log. We remove comments because anyway the quotes in there |
---|
2205 | # would cause problems or look ugly. |
---|
2206 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2207 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2208 | trap 'exit_status=$? |
---|
2209 | # Save into config.log some information that might help in debugging. |
---|
2210 | { |
---|
2211 | echo |
---|
2212 | |
---|
2213 | $as_echo "## ---------------- ## |
---|
2214 | ## Cache variables. ## |
---|
2215 | ## ---------------- ##" |
---|
2216 | echo |
---|
2217 | # The following way of writing the cache mishandles newlines in values, |
---|
2218 | ( |
---|
2219 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2220 | eval ac_val=\$$ac_var |
---|
2221 | case $ac_val in #( |
---|
2222 | *${as_nl}*) |
---|
2223 | case $ac_var in #( |
---|
2224 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2225 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2226 | esac |
---|
2227 | case $ac_var in #( |
---|
2228 | _ | IFS | as_nl) ;; #( |
---|
2229 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2230 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2231 | esac ;; |
---|
2232 | esac |
---|
2233 | done |
---|
2234 | (set) 2>&1 | |
---|
2235 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2236 | *${as_nl}ac_space=\ *) |
---|
2237 | sed -n \ |
---|
2238 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2239 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2240 | ;; #( |
---|
2241 | *) |
---|
2242 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2243 | ;; |
---|
2244 | esac | |
---|
2245 | sort |
---|
2246 | ) |
---|
2247 | echo |
---|
2248 | |
---|
2249 | $as_echo "## ----------------- ## |
---|
2250 | ## Output variables. ## |
---|
2251 | ## ----------------- ##" |
---|
2252 | echo |
---|
2253 | for ac_var in $ac_subst_vars |
---|
2254 | do |
---|
2255 | eval ac_val=\$$ac_var |
---|
2256 | case $ac_val in |
---|
2257 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2258 | esac |
---|
2259 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2260 | done | sort |
---|
2261 | echo |
---|
2262 | |
---|
2263 | if test -n "$ac_subst_files"; then |
---|
2264 | $as_echo "## ------------------- ## |
---|
2265 | ## File substitutions. ## |
---|
2266 | ## ------------------- ##" |
---|
2267 | echo |
---|
2268 | for ac_var in $ac_subst_files |
---|
2269 | do |
---|
2270 | eval ac_val=\$$ac_var |
---|
2271 | case $ac_val in |
---|
2272 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2273 | esac |
---|
2274 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2275 | done | sort |
---|
2276 | echo |
---|
2277 | fi |
---|
2278 | |
---|
2279 | if test -s confdefs.h; then |
---|
2280 | $as_echo "## ----------- ## |
---|
2281 | ## confdefs.h. ## |
---|
2282 | ## ----------- ##" |
---|
2283 | echo |
---|
2284 | cat confdefs.h |
---|
2285 | echo |
---|
2286 | fi |
---|
2287 | test "$ac_signal" != 0 && |
---|
2288 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2289 | $as_echo "$as_me: exit $exit_status" |
---|
2290 | } >&5 |
---|
2291 | rm -f core *.core core.conftest.* && |
---|
2292 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2293 | exit $exit_status |
---|
2294 | ' 0 |
---|
2295 | for ac_signal in 1 2 13 15; do |
---|
2296 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2297 | done |
---|
2298 | ac_signal=0 |
---|
2299 | |
---|
2300 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2301 | rm -f -r conftest* confdefs.h |
---|
2302 | |
---|
2303 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2304 | |
---|
2305 | # Predefined preprocessor variables. |
---|
2306 | |
---|
2307 | cat >>confdefs.h <<_ACEOF |
---|
2308 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2309 | _ACEOF |
---|
2310 | |
---|
2311 | cat >>confdefs.h <<_ACEOF |
---|
2312 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2313 | _ACEOF |
---|
2314 | |
---|
2315 | cat >>confdefs.h <<_ACEOF |
---|
2316 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2317 | _ACEOF |
---|
2318 | |
---|
2319 | cat >>confdefs.h <<_ACEOF |
---|
2320 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2321 | _ACEOF |
---|
2322 | |
---|
2323 | cat >>confdefs.h <<_ACEOF |
---|
2324 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2325 | _ACEOF |
---|
2326 | |
---|
2327 | cat >>confdefs.h <<_ACEOF |
---|
2328 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2329 | _ACEOF |
---|
2330 | |
---|
2331 | |
---|
2332 | # Let the site file select an alternate cache file if it wants to. |
---|
2333 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2334 | ac_site_file1=NONE |
---|
2335 | ac_site_file2=NONE |
---|
2336 | if test -n "$CONFIG_SITE"; then |
---|
2337 | # We do not want a PATH search for config.site. |
---|
2338 | case $CONFIG_SITE in #(( |
---|
2339 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2340 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2341 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2342 | esac |
---|
2343 | elif test "x$prefix" != xNONE; then |
---|
2344 | ac_site_file1=$prefix/share/config.site |
---|
2345 | ac_site_file2=$prefix/etc/config.site |
---|
2346 | else |
---|
2347 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2348 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2349 | fi |
---|
2350 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2351 | do |
---|
2352 | test "x$ac_site_file" = xNONE && continue |
---|
2353 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2355 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2356 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2357 | . "$ac_site_file" \ |
---|
2358 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2359 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2360 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2361 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2362 | fi |
---|
2363 | done |
---|
2364 | |
---|
2365 | if test -r "$cache_file"; then |
---|
2366 | # Some versions of bash will fail to source /dev/null (special files |
---|
2367 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2368 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2369 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2370 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2371 | case $cache_file in |
---|
2372 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2373 | *) . "./$cache_file";; |
---|
2374 | esac |
---|
2375 | fi |
---|
2376 | else |
---|
2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2378 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2379 | >$cache_file |
---|
2380 | fi |
---|
2381 | |
---|
2382 | # Check that the precious variables saved in the cache have kept the same |
---|
2383 | # value. |
---|
2384 | ac_cache_corrupted=false |
---|
2385 | for ac_var in $ac_precious_vars; do |
---|
2386 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2387 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2388 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2389 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2390 | case $ac_old_set,$ac_new_set in |
---|
2391 | set,) |
---|
2392 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2393 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2394 | ac_cache_corrupted=: ;; |
---|
2395 | ,set) |
---|
2396 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2397 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2398 | ac_cache_corrupted=: ;; |
---|
2399 | ,);; |
---|
2400 | *) |
---|
2401 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2402 | # differences in whitespace do not lead to failure. |
---|
2403 | ac_old_val_w=`echo x $ac_old_val` |
---|
2404 | ac_new_val_w=`echo x $ac_new_val` |
---|
2405 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2406 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2407 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2408 | ac_cache_corrupted=: |
---|
2409 | else |
---|
2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2411 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2412 | eval $ac_var=\$ac_old_val |
---|
2413 | fi |
---|
2414 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2415 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2416 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2417 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2418 | fi;; |
---|
2419 | esac |
---|
2420 | # Pass precious variables to config.status. |
---|
2421 | if test "$ac_new_set" = set; then |
---|
2422 | case $ac_new_val in |
---|
2423 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2424 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2425 | esac |
---|
2426 | case " $ac_configure_args " in |
---|
2427 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2428 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2429 | esac |
---|
2430 | fi |
---|
2431 | done |
---|
2432 | if $ac_cache_corrupted; then |
---|
2433 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2434 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2435 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2436 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2437 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2438 | fi |
---|
2439 | ## -------------------- ## |
---|
2440 | ## Main body of script. ## |
---|
2441 | ## -------------------- ## |
---|
2442 | |
---|
2443 | ac_ext=c |
---|
2444 | ac_cpp='$CPP $CPPFLAGS' |
---|
2445 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2446 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2447 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2448 | |
---|
2449 | |
---|
2450 | ac_aux_dir= |
---|
2451 | for ac_dir in automake "$srcdir"/automake; do |
---|
2452 | if test -f "$ac_dir/install-sh"; then |
---|
2453 | ac_aux_dir=$ac_dir |
---|
2454 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2455 | break |
---|
2456 | elif test -f "$ac_dir/install.sh"; then |
---|
2457 | ac_aux_dir=$ac_dir |
---|
2458 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2459 | break |
---|
2460 | elif test -f "$ac_dir/shtool"; then |
---|
2461 | ac_aux_dir=$ac_dir |
---|
2462 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2463 | break |
---|
2464 | fi |
---|
2465 | done |
---|
2466 | if test -z "$ac_aux_dir"; then |
---|
2467 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in automake \"$srcdir\"/automake" "$LINENO" 5 |
---|
2468 | fi |
---|
2469 | |
---|
2470 | # These three variables are undocumented and unsupported, |
---|
2471 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2472 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2473 | # whose full name contains unusual characters. |
---|
2474 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2475 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2476 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2477 | |
---|
2478 | |
---|
2479 | #AC_CONFIG_SRCDIR([src/main.cc]) |
---|
2480 | ac_config_headers="$ac_config_headers config.h:src/config.h.in" |
---|
2481 | |
---|
2482 | # Check whether --enable-silent-rules was given. |
---|
2483 | if test "${enable_silent_rules+set}" = set; then : |
---|
2484 | enableval=$enable_silent_rules; |
---|
2485 | fi |
---|
2486 | |
---|
2487 | case $enable_silent_rules in # ((( |
---|
2488 | yes) AM_DEFAULT_VERBOSITY=0;; |
---|
2489 | no) AM_DEFAULT_VERBOSITY=1;; |
---|
2490 | *) AM_DEFAULT_VERBOSITY=0;; |
---|
2491 | esac |
---|
2492 | am_make=${MAKE-make} |
---|
2493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
---|
2494 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
---|
2495 | if ${am_cv_make_support_nested_variables+:} false; then : |
---|
2496 | $as_echo_n "(cached) " >&6 |
---|
2497 | else |
---|
2498 | if $as_echo 'TRUE=$(BAR$(V)) |
---|
2499 | BAR0=false |
---|
2500 | BAR1=true |
---|
2501 | V=1 |
---|
2502 | am__doit: |
---|
2503 | @$(TRUE) |
---|
2504 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
---|
2505 | am_cv_make_support_nested_variables=yes |
---|
2506 | else |
---|
2507 | am_cv_make_support_nested_variables=no |
---|
2508 | fi |
---|
2509 | fi |
---|
2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
---|
2511 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
---|
2512 | if test $am_cv_make_support_nested_variables = yes; then |
---|
2513 | AM_V='$(V)' |
---|
2514 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
---|
2515 | else |
---|
2516 | AM_V=$AM_DEFAULT_VERBOSITY |
---|
2517 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
---|
2518 | fi |
---|
2519 | AM_BACKSLASH='\' |
---|
2520 | |
---|
2521 | |
---|
2522 | |
---|
2523 | |
---|
2524 | |
---|
2525 | |
---|
2526 | |
---|
2527 | |
---|
2528 | |
---|
2529 | |
---|
2530 | # don't use the default CFLAGS as they unconditonnaly add -O2 |
---|
2531 | : ${CFLAGS=""} |
---|
2532 | |
---|
2533 | am__api_version='1.15' |
---|
2534 | |
---|
2535 | # Find a good install program. We prefer a C program (faster), |
---|
2536 | # so one script is as good as another. But avoid the broken or |
---|
2537 | # incompatible versions: |
---|
2538 | # SysV /etc/install, /usr/sbin/install |
---|
2539 | # SunOS /usr/etc/install |
---|
2540 | # IRIX /sbin/install |
---|
2541 | # AIX /bin/install |
---|
2542 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2543 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2544 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2545 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2546 | # OS/2's system install, which has a completely different semantic |
---|
2547 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2548 | # Reject install programs that cannot install multiple files. |
---|
2549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2550 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2551 | if test -z "$INSTALL"; then |
---|
2552 | if ${ac_cv_path_install+:} false; then : |
---|
2553 | $as_echo_n "(cached) " >&6 |
---|
2554 | else |
---|
2555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2556 | for as_dir in $PATH |
---|
2557 | do |
---|
2558 | IFS=$as_save_IFS |
---|
2559 | test -z "$as_dir" && as_dir=. |
---|
2560 | # Account for people who put trailing slashes in PATH elements. |
---|
2561 | case $as_dir/ in #(( |
---|
2562 | ./ | .// | /[cC]/* | \ |
---|
2563 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2564 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2565 | /usr/ucb/* ) ;; |
---|
2566 | *) |
---|
2567 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2568 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2569 | # by default. |
---|
2570 | for ac_prog in ginstall scoinst install; do |
---|
2571 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2572 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
2573 | if test $ac_prog = install && |
---|
2574 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2575 | # AIX install. It has an incompatible calling convention. |
---|
2576 | : |
---|
2577 | elif test $ac_prog = install && |
---|
2578 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2579 | # program-specific install script used by HP pwplus--don't use. |
---|
2580 | : |
---|
2581 | else |
---|
2582 | rm -rf conftest.one conftest.two conftest.dir |
---|
2583 | echo one > conftest.one |
---|
2584 | echo two > conftest.two |
---|
2585 | mkdir conftest.dir |
---|
2586 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2587 | test -s conftest.one && test -s conftest.two && |
---|
2588 | test -s conftest.dir/conftest.one && |
---|
2589 | test -s conftest.dir/conftest.two |
---|
2590 | then |
---|
2591 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2592 | break 3 |
---|
2593 | fi |
---|
2594 | fi |
---|
2595 | fi |
---|
2596 | done |
---|
2597 | done |
---|
2598 | ;; |
---|
2599 | esac |
---|
2600 | |
---|
2601 | done |
---|
2602 | IFS=$as_save_IFS |
---|
2603 | |
---|
2604 | rm -rf conftest.one conftest.two conftest.dir |
---|
2605 | |
---|
2606 | fi |
---|
2607 | if test "${ac_cv_path_install+set}" = set; then |
---|
2608 | INSTALL=$ac_cv_path_install |
---|
2609 | else |
---|
2610 | # As a last resort, use the slow shell script. Don't cache a |
---|
2611 | # value for INSTALL within a source directory, because that will |
---|
2612 | # break other packages using the cache if that directory is |
---|
2613 | # removed, or if the value is a relative name. |
---|
2614 | INSTALL=$ac_install_sh |
---|
2615 | fi |
---|
2616 | fi |
---|
2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2618 | $as_echo "$INSTALL" >&6; } |
---|
2619 | |
---|
2620 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2621 | # It thinks the first close brace ends the variable substitution. |
---|
2622 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2623 | |
---|
2624 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2625 | |
---|
2626 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2627 | |
---|
2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
---|
2629 | $as_echo_n "checking whether build environment is sane... " >&6; } |
---|
2630 | # Reject unsafe characters in $srcdir or the absolute working directory |
---|
2631 | # name. Accept space and tab only in the latter. |
---|
2632 | am_lf=' |
---|
2633 | ' |
---|
2634 | case `pwd` in |
---|
2635 | *[\\\"\#\$\&\'\`$am_lf]*) |
---|
2636 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
---|
2637 | esac |
---|
2638 | case $srcdir in |
---|
2639 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
---|
2640 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
---|
2641 | esac |
---|
2642 | |
---|
2643 | # Do 'set' in a subshell so we don't clobber the current shell's |
---|
2644 | # arguments. Must try -L first in case configure is actually a |
---|
2645 | # symlink; some systems play weird games with the mod time of symlinks |
---|
2646 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
2647 | # directory). |
---|
2648 | if ( |
---|
2649 | am_has_slept=no |
---|
2650 | for am_try in 1 2; do |
---|
2651 | echo "timestamp, slept: $am_has_slept" > conftest.file |
---|
2652 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
---|
2653 | if test "$*" = "X"; then |
---|
2654 | # -L didn't work. |
---|
2655 | set X `ls -t "$srcdir/configure" conftest.file` |
---|
2656 | fi |
---|
2657 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
2658 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
2659 | |
---|
2660 | # If neither matched, then we have a broken ls. This can happen |
---|
2661 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
2662 | # broken ls alias from the environment. This has actually |
---|
2663 | # happened. Such a system could not be considered "sane". |
---|
2664 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
---|
2665 | alias in your environment" "$LINENO" 5 |
---|
2666 | fi |
---|
2667 | if test "$2" = conftest.file || test $am_try -eq 2; then |
---|
2668 | break |
---|
2669 | fi |
---|
2670 | # Just in case. |
---|
2671 | sleep 1 |
---|
2672 | am_has_slept=yes |
---|
2673 | done |
---|
2674 | test "$2" = conftest.file |
---|
2675 | ) |
---|
2676 | then |
---|
2677 | # Ok. |
---|
2678 | : |
---|
2679 | else |
---|
2680 | as_fn_error $? "newly created file is older than distributed files! |
---|
2681 | Check your system clock" "$LINENO" 5 |
---|
2682 | fi |
---|
2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2684 | $as_echo "yes" >&6; } |
---|
2685 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
---|
2686 | # generated files are strictly newer. |
---|
2687 | am_sleep_pid= |
---|
2688 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
---|
2689 | ( sleep 1 ) & |
---|
2690 | am_sleep_pid=$! |
---|
2691 | fi |
---|
2692 | |
---|
2693 | rm -f conftest.file |
---|
2694 | |
---|
2695 | test "$program_prefix" != NONE && |
---|
2696 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
2697 | # Use a double $ so make ignores it. |
---|
2698 | test "$program_suffix" != NONE && |
---|
2699 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
2700 | # Double any \ or $. |
---|
2701 | # By default was `s,x,x', remove it if useless. |
---|
2702 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
---|
2703 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
---|
2704 | |
---|
2705 | # Expand $ac_aux_dir to an absolute path. |
---|
2706 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
---|
2707 | |
---|
2708 | if test x"${MISSING+set}" != xset; then |
---|
2709 | case $am_aux_dir in |
---|
2710 | *\ * | *\ *) |
---|
2711 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
---|
2712 | *) |
---|
2713 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
---|
2714 | esac |
---|
2715 | fi |
---|
2716 | # Use eval to expand $SHELL |
---|
2717 | if eval "$MISSING --is-lightweight"; then |
---|
2718 | am_missing_run="$MISSING " |
---|
2719 | else |
---|
2720 | am_missing_run= |
---|
2721 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
---|
2722 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
---|
2723 | fi |
---|
2724 | |
---|
2725 | if test x"${install_sh+set}" != xset; then |
---|
2726 | case $am_aux_dir in |
---|
2727 | *\ * | *\ *) |
---|
2728 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
---|
2729 | *) |
---|
2730 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
---|
2731 | esac |
---|
2732 | fi |
---|
2733 | |
---|
2734 | # Installed binaries are usually stripped using 'strip' when the user |
---|
2735 | # run "make install-strip". However 'strip' might not be the right |
---|
2736 | # tool to use in cross-compilation environments, therefore Automake |
---|
2737 | # will honor the 'STRIP' environment variable to overrule this program. |
---|
2738 | if test "$cross_compiling" != no; then |
---|
2739 | if test -n "$ac_tool_prefix"; then |
---|
2740 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
2741 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2743 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2744 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
2745 | $as_echo_n "(cached) " >&6 |
---|
2746 | else |
---|
2747 | if test -n "$STRIP"; then |
---|
2748 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
2749 | else |
---|
2750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2751 | for as_dir in $PATH |
---|
2752 | do |
---|
2753 | IFS=$as_save_IFS |
---|
2754 | test -z "$as_dir" && as_dir=. |
---|
2755 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2756 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2757 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
2758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2759 | break 2 |
---|
2760 | fi |
---|
2761 | done |
---|
2762 | done |
---|
2763 | IFS=$as_save_IFS |
---|
2764 | |
---|
2765 | fi |
---|
2766 | fi |
---|
2767 | STRIP=$ac_cv_prog_STRIP |
---|
2768 | if test -n "$STRIP"; then |
---|
2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
2770 | $as_echo "$STRIP" >&6; } |
---|
2771 | else |
---|
2772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2773 | $as_echo "no" >&6; } |
---|
2774 | fi |
---|
2775 | |
---|
2776 | |
---|
2777 | fi |
---|
2778 | if test -z "$ac_cv_prog_STRIP"; then |
---|
2779 | ac_ct_STRIP=$STRIP |
---|
2780 | # Extract the first word of "strip", so it can be a program name with args. |
---|
2781 | set dummy strip; ac_word=$2 |
---|
2782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2783 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2784 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
2785 | $as_echo_n "(cached) " >&6 |
---|
2786 | else |
---|
2787 | if test -n "$ac_ct_STRIP"; then |
---|
2788 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
2789 | else |
---|
2790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2791 | for as_dir in $PATH |
---|
2792 | do |
---|
2793 | IFS=$as_save_IFS |
---|
2794 | test -z "$as_dir" && as_dir=. |
---|
2795 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2796 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2797 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
2798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2799 | break 2 |
---|
2800 | fi |
---|
2801 | done |
---|
2802 | done |
---|
2803 | IFS=$as_save_IFS |
---|
2804 | |
---|
2805 | fi |
---|
2806 | fi |
---|
2807 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
2808 | if test -n "$ac_ct_STRIP"; then |
---|
2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
2810 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
2811 | else |
---|
2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2813 | $as_echo "no" >&6; } |
---|
2814 | fi |
---|
2815 | |
---|
2816 | if test "x$ac_ct_STRIP" = x; then |
---|
2817 | STRIP=":" |
---|
2818 | else |
---|
2819 | case $cross_compiling:$ac_tool_warned in |
---|
2820 | yes:) |
---|
2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2822 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2823 | ac_tool_warned=yes ;; |
---|
2824 | esac |
---|
2825 | STRIP=$ac_ct_STRIP |
---|
2826 | fi |
---|
2827 | else |
---|
2828 | STRIP="$ac_cv_prog_STRIP" |
---|
2829 | fi |
---|
2830 | |
---|
2831 | fi |
---|
2832 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
---|
2833 | |
---|
2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2835 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2836 | if test -z "$MKDIR_P"; then |
---|
2837 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2838 | $as_echo_n "(cached) " >&6 |
---|
2839 | else |
---|
2840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2841 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2842 | do |
---|
2843 | IFS=$as_save_IFS |
---|
2844 | test -z "$as_dir" && as_dir=. |
---|
2845 | for ac_prog in mkdir gmkdir; do |
---|
2846 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2847 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
---|
2848 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2849 | 'mkdir (GNU coreutils) '* | \ |
---|
2850 | 'mkdir (coreutils) '* | \ |
---|
2851 | 'mkdir (fileutils) '4.1*) |
---|
2852 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2853 | break 3;; |
---|
2854 | esac |
---|
2855 | done |
---|
2856 | done |
---|
2857 | done |
---|
2858 | IFS=$as_save_IFS |
---|
2859 | |
---|
2860 | fi |
---|
2861 | |
---|
2862 | test -d ./--version && rmdir ./--version |
---|
2863 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2864 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2865 | else |
---|
2866 | # As a last resort, use the slow shell script. Don't cache a |
---|
2867 | # value for MKDIR_P within a source directory, because that will |
---|
2868 | # break other packages using the cache if that directory is |
---|
2869 | # removed, or if the value is a relative name. |
---|
2870 | MKDIR_P="$ac_install_sh -d" |
---|
2871 | fi |
---|
2872 | fi |
---|
2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2874 | $as_echo "$MKDIR_P" >&6; } |
---|
2875 | |
---|
2876 | for ac_prog in gawk mawk nawk awk |
---|
2877 | do |
---|
2878 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2879 | set dummy $ac_prog; ac_word=$2 |
---|
2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2881 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2882 | if ${ac_cv_prog_AWK+:} false; then : |
---|
2883 | $as_echo_n "(cached) " >&6 |
---|
2884 | else |
---|
2885 | if test -n "$AWK"; then |
---|
2886 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
2887 | else |
---|
2888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2889 | for as_dir in $PATH |
---|
2890 | do |
---|
2891 | IFS=$as_save_IFS |
---|
2892 | test -z "$as_dir" && as_dir=. |
---|
2893 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2894 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2895 | ac_cv_prog_AWK="$ac_prog" |
---|
2896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2897 | break 2 |
---|
2898 | fi |
---|
2899 | done |
---|
2900 | done |
---|
2901 | IFS=$as_save_IFS |
---|
2902 | |
---|
2903 | fi |
---|
2904 | fi |
---|
2905 | AWK=$ac_cv_prog_AWK |
---|
2906 | if test -n "$AWK"; then |
---|
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
---|
2908 | $as_echo "$AWK" >&6; } |
---|
2909 | else |
---|
2910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2911 | $as_echo "no" >&6; } |
---|
2912 | fi |
---|
2913 | |
---|
2914 | |
---|
2915 | test -n "$AWK" && break |
---|
2916 | done |
---|
2917 | |
---|
2918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2919 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2920 | set x ${MAKE-make} |
---|
2921 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2922 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
2923 | $as_echo_n "(cached) " >&6 |
---|
2924 | else |
---|
2925 | cat >conftest.make <<\_ACEOF |
---|
2926 | SHELL = /bin/sh |
---|
2927 | all: |
---|
2928 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2929 | _ACEOF |
---|
2930 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
2931 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2932 | *@@@%%%=?*=@@@%%%*) |
---|
2933 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2934 | *) |
---|
2935 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2936 | esac |
---|
2937 | rm -f conftest.make |
---|
2938 | fi |
---|
2939 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2941 | $as_echo "yes" >&6; } |
---|
2942 | SET_MAKE= |
---|
2943 | else |
---|
2944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2945 | $as_echo "no" >&6; } |
---|
2946 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2947 | fi |
---|
2948 | |
---|
2949 | rm -rf .tst 2>/dev/null |
---|
2950 | mkdir .tst 2>/dev/null |
---|
2951 | if test -d .tst; then |
---|
2952 | am__leading_dot=. |
---|
2953 | else |
---|
2954 | am__leading_dot=_ |
---|
2955 | fi |
---|
2956 | rmdir .tst 2>/dev/null |
---|
2957 | |
---|
2958 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
---|
2959 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
---|
2960 | # is not polluted with repeated "-I." |
---|
2961 | am__isrc=' -I$(srcdir)' |
---|
2962 | # test to see if srcdir already configured |
---|
2963 | if test -f $srcdir/config.status; then |
---|
2964 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
---|
2965 | fi |
---|
2966 | fi |
---|
2967 | |
---|
2968 | # test whether we have cygpath |
---|
2969 | if test -z "$CYGPATH_W"; then |
---|
2970 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
2971 | CYGPATH_W='cygpath -w' |
---|
2972 | else |
---|
2973 | CYGPATH_W=echo |
---|
2974 | fi |
---|
2975 | fi |
---|
2976 | |
---|
2977 | |
---|
2978 | # Define the identity of the package. |
---|
2979 | PACKAGE='cfa-cc' |
---|
2980 | VERSION='1.0.0.0' |
---|
2981 | |
---|
2982 | |
---|
2983 | cat >>confdefs.h <<_ACEOF |
---|
2984 | #define PACKAGE "$PACKAGE" |
---|
2985 | _ACEOF |
---|
2986 | |
---|
2987 | |
---|
2988 | cat >>confdefs.h <<_ACEOF |
---|
2989 | #define VERSION "$VERSION" |
---|
2990 | _ACEOF |
---|
2991 | |
---|
2992 | # Some tools Automake needs. |
---|
2993 | |
---|
2994 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
2995 | |
---|
2996 | |
---|
2997 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
2998 | |
---|
2999 | |
---|
3000 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
3001 | |
---|
3002 | |
---|
3003 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
3004 | |
---|
3005 | |
---|
3006 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
3007 | |
---|
3008 | # For better backward compatibility. To be removed once Automake 1.9.x |
---|
3009 | # dies out for good. For more background, see: |
---|
3010 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
---|
3011 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
---|
3012 | mkdir_p='$(MKDIR_P)' |
---|
3013 | |
---|
3014 | # We need awk for the "check" target (and possibly the TAP driver). The |
---|
3015 | # system "awk" is bad on some platforms. |
---|
3016 | # Always define AMTAR for backward compatibility. Yes, it's still used |
---|
3017 | # in the wild :-( We should find a proper way to deprecate it ... |
---|
3018 | AMTAR='$${TAR-tar}' |
---|
3019 | |
---|
3020 | |
---|
3021 | # We'll loop over all known methods to create a tar archive until one works. |
---|
3022 | _am_tools='gnutar pax cpio none' |
---|
3023 | |
---|
3024 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
---|
3025 | |
---|
3026 | |
---|
3027 | |
---|
3028 | |
---|
3029 | |
---|
3030 | |
---|
3031 | # POSIX will say in a future version that running "rm -f" with no argument |
---|
3032 | # is OK; and we want to be able to make that assumption in our Makefile |
---|
3033 | # recipes. So use an aggressive probe to check that the usage we want is |
---|
3034 | # actually supported "in the wild" to an acceptable degree. |
---|
3035 | # See automake bug#10828. |
---|
3036 | # To make any issue more visible, cause the running configure to be aborted |
---|
3037 | # by default if the 'rm' program in use doesn't match our expectations; the |
---|
3038 | # user can still override this though. |
---|
3039 | if rm -f && rm -fr && rm -rf; then : OK; else |
---|
3040 | cat >&2 <<'END' |
---|
3041 | Oops! |
---|
3042 | |
---|
3043 | Your 'rm' program seems unable to run without file operands specified |
---|
3044 | on the command line, even when the '-f' option is present. This is contrary |
---|
3045 | to the behaviour of most rm programs out there, and not conforming with |
---|
3046 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
---|
3047 | |
---|
3048 | Please tell bug-automake@gnu.org about your system, including the value |
---|
3049 | of your $PATH and any error possibly output before this message. This |
---|
3050 | can help us improve future automake versions. |
---|
3051 | |
---|
3052 | END |
---|
3053 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
---|
3054 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
---|
3055 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
---|
3056 | echo >&2 |
---|
3057 | else |
---|
3058 | cat >&2 <<'END' |
---|
3059 | Aborting the configuration process, to ensure you take notice of the issue. |
---|
3060 | |
---|
3061 | You can download and install GNU coreutils to get an 'rm' implementation |
---|
3062 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
---|
3063 | |
---|
3064 | If you want to complete the configuration process using your problematic |
---|
3065 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
---|
3066 | to "yes", and re-run configure. |
---|
3067 | |
---|
3068 | END |
---|
3069 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
---|
3070 | fi |
---|
3071 | fi |
---|
3072 | |
---|
3073 | |
---|
3074 | # Allow program name tansformation |
---|
3075 | # will fill program_transform_name with appropriate sed regex |
---|
3076 | |
---|
3077 | |
---|
3078 | #============================================================================== |
---|
3079 | #Trasforming cc1 will break compilation |
---|
3080 | |
---|
3081 | if test "${program_transform_name}" = ""; then |
---|
3082 | as_fn_error $? "Program transform not supported. |
---|
3083 | Use --with-cfa-name='[Desired name here]' instead" "$LINENO" 5 |
---|
3084 | fi |
---|
3085 | |
---|
3086 | #Define the new name of the installed command |
---|
3087 | |
---|
3088 | # Check whether --with-cfa-name was given. |
---|
3089 | if test "${with_cfa_name+set}" = set; then : |
---|
3090 | withval=$with_cfa_name; cfa_name=$withval |
---|
3091 | else |
---|
3092 | cfa_name="cfa" |
---|
3093 | fi |
---|
3094 | |
---|
3095 | |
---|
3096 | CFA_NAME=${cfa_name} |
---|
3097 | |
---|
3098 | |
---|
3099 | |
---|
3100 | #============================================================================== |
---|
3101 | # version information |
---|
3102 | |
---|
3103 | rm -f version |
---|
3104 | echo ${PACKAGE_VERSION} > version # file containing version number for other tools |
---|
3105 | chmod ugo-w version |
---|
3106 | ver_major=`cut -d '.' -f1 version` # subdivide version number into components at periods |
---|
3107 | ver_minor=`cut -d '.' -f2 version` |
---|
3108 | ver_patch=`cut -d '.' -f3 version` |
---|
3109 | ver_build=`cut -d '.' -f4 version` |
---|
3110 | |
---|
3111 | # AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/version']) |
---|
3112 | |
---|
3113 | cat >>confdefs.h <<_ACEOF |
---|
3114 | #define CFA_VERSION_MAJOR ${ver_major} |
---|
3115 | _ACEOF |
---|
3116 | |
---|
3117 | |
---|
3118 | cat >>confdefs.h <<_ACEOF |
---|
3119 | #define CFA_VERSION_MINOR ${ver_minor} |
---|
3120 | _ACEOF |
---|
3121 | |
---|
3122 | |
---|
3123 | cat >>confdefs.h <<_ACEOF |
---|
3124 | #define CFA_VERSION_PATCH ${ver_patch} |
---|
3125 | _ACEOF |
---|
3126 | |
---|
3127 | |
---|
3128 | cat >>confdefs.h <<_ACEOF |
---|
3129 | #define CFA_VERSION_BUILD ${ver_build} |
---|
3130 | _ACEOF |
---|
3131 | |
---|
3132 | |
---|
3133 | cat >>confdefs.h <<_ACEOF |
---|
3134 | #define CFA_VERSION_SHORT "${ver_major}" |
---|
3135 | _ACEOF |
---|
3136 | |
---|
3137 | |
---|
3138 | cat >>confdefs.h <<_ACEOF |
---|
3139 | #define CFA_VERSION "${ver_major}.${ver_minor}" |
---|
3140 | _ACEOF |
---|
3141 | |
---|
3142 | |
---|
3143 | cat >>confdefs.h <<_ACEOF |
---|
3144 | #define CFA_VERSION_LONG "${ver_major}.${ver_minor}.${ver_patch}" |
---|
3145 | _ACEOF |
---|
3146 | |
---|
3147 | |
---|
3148 | cat >>confdefs.h <<_ACEOF |
---|
3149 | #define CFA_VERSION_FULL "${ver_major}.${ver_minor}.${ver_patch}.${ver_build}" |
---|
3150 | _ACEOF |
---|
3151 | |
---|
3152 | |
---|
3153 | #============================================================================== |
---|
3154 | # HACK to be able to use conditionnals inside makefiles |
---|
3155 | DOifskipcompile='ifeq ($(skipcompile),yes) |
---|
3156 | else' |
---|
3157 | |
---|
3158 | |
---|
3159 | |
---|
3160 | DOendif='endif' |
---|
3161 | |
---|
3162 | |
---|
3163 | |
---|
3164 | #============================================================================== |
---|
3165 | # Installation paths |
---|
3166 | |
---|
3167 | if test "x$prefix" = "xNONE"; then |
---|
3168 | cfa_prefix=${ac_default_prefix} |
---|
3169 | else |
---|
3170 | cfa_prefix=${prefix} |
---|
3171 | fi |
---|
3172 | cfa_prefix="$(readlink -m ${cfa_prefix})/" |
---|
3173 | |
---|
3174 | cat >>confdefs.h <<_ACEOF |
---|
3175 | #define CFA_PREFIX "${cfa_prefix}" |
---|
3176 | _ACEOF |
---|
3177 | |
---|
3178 | CFA_PREFIX=${cfa_prefix} |
---|
3179 | |
---|
3180 | |
---|
3181 | if test "$includedir" = '${prefix}/include'; then |
---|
3182 | cfa_incdir="${cfa_prefix}include/${cfa_name}" |
---|
3183 | else |
---|
3184 | cfa_incdir=${includedir} |
---|
3185 | fi |
---|
3186 | cfa_incdir="$(readlink -m ${cfa_incdir})/" |
---|
3187 | |
---|
3188 | cat >>confdefs.h <<_ACEOF |
---|
3189 | #define CFA_INCDIR "${cfa_incdir}" |
---|
3190 | _ACEOF |
---|
3191 | |
---|
3192 | CFA_INCDIR=${cfa_incdir} |
---|
3193 | |
---|
3194 | |
---|
3195 | if test "$bindir" = '${exec_prefix}/bin'; then |
---|
3196 | cfa_bindir="${cfa_prefix}bin" |
---|
3197 | else |
---|
3198 | cfa_bindir=${bindir} |
---|
3199 | fi |
---|
3200 | cfa_bindir="$(readlink -m ${cfa_bindir})/" |
---|
3201 | |
---|
3202 | cat >>confdefs.h <<_ACEOF |
---|
3203 | #define CFA_BINDIR "${cfa_bindir}" |
---|
3204 | _ACEOF |
---|
3205 | |
---|
3206 | CFA_BINDIR=${cfa_bindir} |
---|
3207 | |
---|
3208 | |
---|
3209 | if test "$libdir" = '${exec_prefix}/lib'; then |
---|
3210 | if test "${ARCHITECTURE}" != ""; then |
---|
3211 | cfa_libdir="${cfa_prefix}lib/${cfa_name}/${ARCHITECTURE}-${CONFIGURATION}/" |
---|
3212 | else |
---|
3213 | cfa_libdir="${cfa_prefix}lib/${cfa_name}/" |
---|
3214 | fi |
---|
3215 | else |
---|
3216 | cfa_libdir="${libdir}/${ARCHITECTURE}${CONFIGURATION}" |
---|
3217 | fi |
---|
3218 | cfa_libdir="$(readlink -m ${cfa_libdir})/" |
---|
3219 | |
---|
3220 | cat >>confdefs.h <<_ACEOF |
---|
3221 | #define CFA_LIBDIR "${cfa_libdir}" |
---|
3222 | _ACEOF |
---|
3223 | |
---|
3224 | CFA_LIBDIR=${cfa_libdir} |
---|
3225 | |
---|
3226 | |
---|
3227 | |
---|
3228 | #============================================================================== |
---|
3229 | # Create variables for commonly used targets |
---|
3230 | |
---|
3231 | TOP_SRCDIR="$(readlink -m $ac_confdir/)/" |
---|
3232 | TOP_BUILDDIR="$(readlink -m $ac_pwd/)/" |
---|
3233 | |
---|
3234 | |
---|
3235 | cat >>confdefs.h <<_ACEOF |
---|
3236 | #define TOP_SRCDIR "$TOP_SRCDIR" |
---|
3237 | _ACEOF |
---|
3238 | |
---|
3239 | |
---|
3240 | cat >>confdefs.h <<_ACEOF |
---|
3241 | #define TOP_BUILDDIR "$TOP_BUILDDIR" |
---|
3242 | _ACEOF |
---|
3243 | |
---|
3244 | |
---|
3245 | DRIVER_DIR=${TOP_BUILDDIR}driver/ |
---|
3246 | CFACC=${DRIVER_DIR}cfa |
---|
3247 | CFACPP=${DRIVER_DIR}cfa-cpp |
---|
3248 | |
---|
3249 | |
---|
3250 | |
---|
3251 | |
---|
3252 | #============================================================================== |
---|
3253 | # Flag variables needed to build in tree |
---|
3254 | LIBCFA_SRC='${TOP_SRCDIR}/libcfa/src' |
---|
3255 | BUILD_IN_TREE_FLAGS="-XCFA -t -B${DRIVER_DIR}" |
---|
3256 | |
---|
3257 | |
---|
3258 | #============================================================================== |
---|
3259 | # handle the list of hosts to build for |
---|
3260 | for var in $ac_configure_args |
---|
3261 | do |
---|
3262 | #strip quotes surrouding values |
---|
3263 | case $var in |
---|
3264 | # skip cross compilation related arguments |
---|
3265 | \'--host=*) ;; \'host_alias=*) ;; \'--build=*) ;; \'build_alias=*) ;; \'--target=*) ;; \'target_alias=*) ;; |
---|
3266 | |
---|
3267 | # skip the target hosts |
---|
3268 | \'--with-target-hosts=*) ;; |
---|
3269 | |
---|
3270 | # append all other arguments to the sub configure arguments |
---|
3271 | *) LIBCFA_GENERAL_ARGS="${LIBCFA_GENERAL_ARGS} $var";; |
---|
3272 | esac |
---|
3273 | done |
---|
3274 | |
---|
3275 | #============================================================================== |
---|
3276 | # handle the list of hosts to build for |
---|
3277 | # Make sure we can run config.sub. |
---|
3278 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
3279 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
---|
3280 | |
---|
3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
---|
3282 | $as_echo_n "checking build system type... " >&6; } |
---|
3283 | if ${ac_cv_build+:} false; then : |
---|
3284 | $as_echo_n "(cached) " >&6 |
---|
3285 | else |
---|
3286 | ac_build_alias=$build_alias |
---|
3287 | test "x$ac_build_alias" = x && |
---|
3288 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
3289 | test "x$ac_build_alias" = x && |
---|
3290 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
---|
3291 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
3292 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
---|
3293 | |
---|
3294 | fi |
---|
3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
---|
3296 | $as_echo "$ac_cv_build" >&6; } |
---|
3297 | case $ac_cv_build in |
---|
3298 | *-*-*) ;; |
---|
3299 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
---|
3300 | esac |
---|
3301 | build=$ac_cv_build |
---|
3302 | ac_save_IFS=$IFS; IFS='-' |
---|
3303 | set x $ac_cv_build |
---|
3304 | shift |
---|
3305 | build_cpu=$1 |
---|
3306 | build_vendor=$2 |
---|
3307 | shift; shift |
---|
3308 | # Remember, the first character of IFS is used to create $*, |
---|
3309 | # except with old shells: |
---|
3310 | build_os=$* |
---|
3311 | IFS=$ac_save_IFS |
---|
3312 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
3313 | |
---|
3314 | |
---|
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
---|
3316 | $as_echo_n "checking host system type... " >&6; } |
---|
3317 | if ${ac_cv_host+:} false; then : |
---|
3318 | $as_echo_n "(cached) " >&6 |
---|
3319 | else |
---|
3320 | if test "x$host_alias" = x; then |
---|
3321 | ac_cv_host=$ac_cv_build |
---|
3322 | else |
---|
3323 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
3324 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
---|
3325 | fi |
---|
3326 | |
---|
3327 | fi |
---|
3328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
---|
3329 | $as_echo "$ac_cv_host" >&6; } |
---|
3330 | case $ac_cv_host in |
---|
3331 | *-*-*) ;; |
---|
3332 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
---|
3333 | esac |
---|
3334 | host=$ac_cv_host |
---|
3335 | ac_save_IFS=$IFS; IFS='-' |
---|
3336 | set x $ac_cv_host |
---|
3337 | shift |
---|
3338 | host_cpu=$1 |
---|
3339 | host_vendor=$2 |
---|
3340 | shift; shift |
---|
3341 | # Remember, the first character of IFS is used to create $*, |
---|
3342 | # except with old shells: |
---|
3343 | host_os=$* |
---|
3344 | IFS=$ac_save_IFS |
---|
3345 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
3346 | |
---|
3347 | |
---|
3348 | |
---|
3349 | if ! test "$host_cpu" = "$build_cpu"; then |
---|
3350 | case $host_cpu in |
---|
3351 | i386) |
---|
3352 | HOST_FLAGS="-m32" |
---|
3353 | ;; |
---|
3354 | i686) |
---|
3355 | HOST_FLAGS="-m32" |
---|
3356 | ;; |
---|
3357 | x86_64) |
---|
3358 | HOST_FLAGS="-m64" |
---|
3359 | ;; |
---|
3360 | esac |
---|
3361 | fi |
---|
3362 | |
---|
3363 | |
---|
3364 | default_target="${host_cpu}:debug, ${host_cpu}:nodebug" |
---|
3365 | |
---|
3366 | # Check whether --with-target-hosts was given. |
---|
3367 | if test "${with_target_hosts+set}" = set; then : |
---|
3368 | withval=$with_target_hosts; target_hosts=$withval |
---|
3369 | else |
---|
3370 | target_hosts=${default_target} |
---|
3371 | fi |
---|
3372 | |
---|
3373 | |
---|
3374 | TARGET_HOSTS=${target_hosts} |
---|
3375 | |
---|
3376 | |
---|
3377 | LIBCFA_PATHS="DRIVER_DIR=${DRIVER_DIR}" |
---|
3378 | |
---|
3379 | for i in $(echo $target_hosts | sed "s/,/ /g") |
---|
3380 | do |
---|
3381 | # call your procedure/other scripts here below |
---|
3382 | arch_name=$(echo $i | sed -r "s/:(.*)//g") |
---|
3383 | lib_config=$(echo $i | sed -r "s/(.*)://g") |
---|
3384 | |
---|
3385 | case $lib_config in |
---|
3386 | "nodebug") ;; |
---|
3387 | "debug") ;; |
---|
3388 | "nolib") ;; |
---|
3389 | *) |
---|
3390 | >&2 echo "Configuration must be 'debug', 'nodebug' or 'nolib'" |
---|
3391 | exit 1 |
---|
3392 | ;; |
---|
3393 | esac |
---|
3394 | |
---|
3395 | |
---|
3396 | case ${arch_name} in |
---|
3397 | "host") arch_name=${host_cpu};; |
---|
3398 | *) arch_name=${arch_name};; |
---|
3399 | esac |
---|
3400 | |
---|
3401 | case $arch_name in |
---|
3402 | "x64" ) cannon_arch_name="x64";; |
---|
3403 | "x86-64" ) cannon_arch_name="x64";; |
---|
3404 | "x86_64" ) cannon_arch_name="x64";; |
---|
3405 | "x86" ) cannon_arch_name="x86";; |
---|
3406 | "i386" ) cannon_arch_name="x86";; |
---|
3407 | "i486" ) cannon_arch_name="x86";; |
---|
3408 | "i686" ) cannon_arch_name="x86";; |
---|
3409 | "Intel 80386") cannon_arch_name="x86";; |
---|
3410 | "arm" ) cannon_arch_name="arm";; |
---|
3411 | "ARM" ) cannon_arch_name="arm";; |
---|
3412 | *) |
---|
3413 | >&2 echo "Unkown architecture " $arch_name; |
---|
3414 | exit 1 |
---|
3415 | ;; |
---|
3416 | esac |
---|
3417 | |
---|
3418 | lib_arch=${cannon_arch_name} |
---|
3419 | lib_dir="libcfa/${lib_arch}-${lib_config}" |
---|
3420 | |
---|
3421 | LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}" |
---|
3422 | LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile" |
---|
3423 | |
---|
3424 | mkdir -p ${lib_dir} |
---|
3425 | echo -n "${LIBCFA_GENERAL_ARGS} " > ${lib_dir}/config.data |
---|
3426 | echo -n "${LIBCFA_PATHS} " >> ${lib_dir}/config.data |
---|
3427 | echo -n "ARCHITECTURE=${lib_arch} " >> ${lib_dir}/config.data |
---|
3428 | echo -n "CONFIGURATION=${lib_config} " >> ${lib_dir}/config.data |
---|
3429 | echo -n "CFA_VERSION=${ver_major}:${ver_minor}:${ver_patch}" >> ${lib_dir}/config.data |
---|
3430 | done |
---|
3431 | |
---|
3432 | |
---|
3433 | |
---|
3434 | |
---|
3435 | |
---|
3436 | case ${host_cpu} in |
---|
3437 | "host") arch_name=${host_cpu};; |
---|
3438 | *) arch_name=${host_cpu};; |
---|
3439 | esac |
---|
3440 | |
---|
3441 | case $arch_name in |
---|
3442 | "x64" ) cannon_arch_name="x64";; |
---|
3443 | "x86-64" ) cannon_arch_name="x64";; |
---|
3444 | "x86_64" ) cannon_arch_name="x64";; |
---|
3445 | "x86" ) cannon_arch_name="x86";; |
---|
3446 | "i386" ) cannon_arch_name="x86";; |
---|
3447 | "i486" ) cannon_arch_name="x86";; |
---|
3448 | "i686" ) cannon_arch_name="x86";; |
---|
3449 | "Intel 80386") cannon_arch_name="x86";; |
---|
3450 | "arm" ) cannon_arch_name="arm";; |
---|
3451 | "ARM" ) cannon_arch_name="arm";; |
---|
3452 | *) |
---|
3453 | >&2 echo "Unkown architecture " $arch_name; |
---|
3454 | exit 1 |
---|
3455 | ;; |
---|
3456 | esac |
---|
3457 | |
---|
3458 | |
---|
3459 | cat >>confdefs.h <<_ACEOF |
---|
3460 | #define CFA_DEFAULT_CPU "$cannon_arch_name" |
---|
3461 | _ACEOF |
---|
3462 | |
---|
3463 | |
---|
3464 | cat >>confdefs.h <<_ACEOF |
---|
3465 | #define CFA_64_CPU "x64" |
---|
3466 | _ACEOF |
---|
3467 | |
---|
3468 | |
---|
3469 | cat >>confdefs.h <<_ACEOF |
---|
3470 | #define CFA_32_CPU "x86" |
---|
3471 | _ACEOF |
---|
3472 | |
---|
3473 | |
---|
3474 | #============================================================================== |
---|
3475 | # CAFLAGS |
---|
3476 | |
---|
3477 | cat >>confdefs.h <<_ACEOF |
---|
3478 | #define CFA_FLAGS "${CFAFLAGS}" |
---|
3479 | _ACEOF |
---|
3480 | |
---|
3481 | CFA_FLAGS=${CFAFLAGS} |
---|
3482 | |
---|
3483 | |
---|
3484 | #============================================================================== |
---|
3485 | # Checks for programs. |
---|
3486 | ac_ext=cpp |
---|
3487 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3488 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3489 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3490 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3491 | if test -z "$CXX"; then |
---|
3492 | if test -n "$CCC"; then |
---|
3493 | CXX=$CCC |
---|
3494 | else |
---|
3495 | if test -n "$ac_tool_prefix"; then |
---|
3496 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3497 | do |
---|
3498 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3499 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3501 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3502 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3503 | $as_echo_n "(cached) " >&6 |
---|
3504 | else |
---|
3505 | if test -n "$CXX"; then |
---|
3506 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3507 | else |
---|
3508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3509 | for as_dir in $PATH |
---|
3510 | do |
---|
3511 | IFS=$as_save_IFS |
---|
3512 | test -z "$as_dir" && as_dir=. |
---|
3513 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3514 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3515 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3517 | break 2 |
---|
3518 | fi |
---|
3519 | done |
---|
3520 | done |
---|
3521 | IFS=$as_save_IFS |
---|
3522 | |
---|
3523 | fi |
---|
3524 | fi |
---|
3525 | CXX=$ac_cv_prog_CXX |
---|
3526 | if test -n "$CXX"; then |
---|
3527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3528 | $as_echo "$CXX" >&6; } |
---|
3529 | else |
---|
3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3531 | $as_echo "no" >&6; } |
---|
3532 | fi |
---|
3533 | |
---|
3534 | |
---|
3535 | test -n "$CXX" && break |
---|
3536 | done |
---|
3537 | fi |
---|
3538 | if test -z "$CXX"; then |
---|
3539 | ac_ct_CXX=$CXX |
---|
3540 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3541 | do |
---|
3542 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3543 | set dummy $ac_prog; ac_word=$2 |
---|
3544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3545 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3546 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3547 | $as_echo_n "(cached) " >&6 |
---|
3548 | else |
---|
3549 | if test -n "$ac_ct_CXX"; then |
---|
3550 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3551 | else |
---|
3552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3553 | for as_dir in $PATH |
---|
3554 | do |
---|
3555 | IFS=$as_save_IFS |
---|
3556 | test -z "$as_dir" && as_dir=. |
---|
3557 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3558 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3559 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3560 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3561 | break 2 |
---|
3562 | fi |
---|
3563 | done |
---|
3564 | done |
---|
3565 | IFS=$as_save_IFS |
---|
3566 | |
---|
3567 | fi |
---|
3568 | fi |
---|
3569 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3570 | if test -n "$ac_ct_CXX"; then |
---|
3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3572 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3573 | else |
---|
3574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3575 | $as_echo "no" >&6; } |
---|
3576 | fi |
---|
3577 | |
---|
3578 | |
---|
3579 | test -n "$ac_ct_CXX" && break |
---|
3580 | done |
---|
3581 | |
---|
3582 | if test "x$ac_ct_CXX" = x; then |
---|
3583 | CXX="g++" |
---|
3584 | else |
---|
3585 | case $cross_compiling:$ac_tool_warned in |
---|
3586 | yes:) |
---|
3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3588 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3589 | ac_tool_warned=yes ;; |
---|
3590 | esac |
---|
3591 | CXX=$ac_ct_CXX |
---|
3592 | fi |
---|
3593 | fi |
---|
3594 | |
---|
3595 | fi |
---|
3596 | fi |
---|
3597 | # Provide some information about the compiler. |
---|
3598 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3599 | set X $ac_compile |
---|
3600 | ac_compiler=$2 |
---|
3601 | for ac_option in --version -v -V -qversion; do |
---|
3602 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3603 | case "(($ac_try" in |
---|
3604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3605 | *) ac_try_echo=$ac_try;; |
---|
3606 | esac |
---|
3607 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3608 | $as_echo "$ac_try_echo"; } >&5 |
---|
3609 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3610 | ac_status=$? |
---|
3611 | if test -s conftest.err; then |
---|
3612 | sed '10a\ |
---|
3613 | ... rest of stderr output deleted ... |
---|
3614 | 10q' conftest.err >conftest.er1 |
---|
3615 | cat conftest.er1 >&5 |
---|
3616 | fi |
---|
3617 | rm -f conftest.er1 conftest.err |
---|
3618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3619 | test $ac_status = 0; } |
---|
3620 | done |
---|
3621 | |
---|
3622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3623 | /* end confdefs.h. */ |
---|
3624 | |
---|
3625 | int |
---|
3626 | main () |
---|
3627 | { |
---|
3628 | |
---|
3629 | ; |
---|
3630 | return 0; |
---|
3631 | } |
---|
3632 | _ACEOF |
---|
3633 | ac_clean_files_save=$ac_clean_files |
---|
3634 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3635 | # Try to create an executable without -o first, disregard a.out. |
---|
3636 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3637 | # of exeext. |
---|
3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
---|
3639 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
---|
3640 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3641 | |
---|
3642 | # The possible output files: |
---|
3643 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3644 | |
---|
3645 | ac_rmfiles= |
---|
3646 | for ac_file in $ac_files |
---|
3647 | do |
---|
3648 | case $ac_file in |
---|
3649 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3650 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3651 | esac |
---|
3652 | done |
---|
3653 | rm -f $ac_rmfiles |
---|
3654 | |
---|
3655 | if { { ac_try="$ac_link_default" |
---|
3656 | case "(($ac_try" in |
---|
3657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3658 | *) ac_try_echo=$ac_try;; |
---|
3659 | esac |
---|
3660 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3661 | $as_echo "$ac_try_echo"; } >&5 |
---|
3662 | (eval "$ac_link_default") 2>&5 |
---|
3663 | ac_status=$? |
---|
3664 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3665 | test $ac_status = 0; }; then : |
---|
3666 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3667 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3668 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3669 | # so that the user can short-circuit this test for compilers unknown to |
---|
3670 | # Autoconf. |
---|
3671 | for ac_file in $ac_files '' |
---|
3672 | do |
---|
3673 | test -f "$ac_file" || continue |
---|
3674 | case $ac_file in |
---|
3675 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3676 | ;; |
---|
3677 | [ab].out ) |
---|
3678 | # We found the default executable, but exeext='' is most |
---|
3679 | # certainly right. |
---|
3680 | break;; |
---|
3681 | *.* ) |
---|
3682 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3683 | then :; else |
---|
3684 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3685 | fi |
---|
3686 | # We set ac_cv_exeext here because the later test for it is not |
---|
3687 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3688 | # argument, so we may need to know it at that point already. |
---|
3689 | # Even if this section looks crufty: it has the advantage of |
---|
3690 | # actually working. |
---|
3691 | break;; |
---|
3692 | * ) |
---|
3693 | break;; |
---|
3694 | esac |
---|
3695 | done |
---|
3696 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3697 | |
---|
3698 | else |
---|
3699 | ac_file='' |
---|
3700 | fi |
---|
3701 | if test -z "$ac_file"; then : |
---|
3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3703 | $as_echo "no" >&6; } |
---|
3704 | $as_echo "$as_me: failed program was:" >&5 |
---|
3705 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3706 | |
---|
3707 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3708 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3709 | as_fn_error 77 "C++ compiler cannot create executables |
---|
3710 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3711 | else |
---|
3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3713 | $as_echo "yes" >&6; } |
---|
3714 | fi |
---|
3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
---|
3716 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
---|
3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3718 | $as_echo "$ac_file" >&6; } |
---|
3719 | ac_exeext=$ac_cv_exeext |
---|
3720 | |
---|
3721 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3722 | ac_clean_files=$ac_clean_files_save |
---|
3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3724 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3725 | if { { ac_try="$ac_link" |
---|
3726 | case "(($ac_try" in |
---|
3727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3728 | *) ac_try_echo=$ac_try;; |
---|
3729 | esac |
---|
3730 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3731 | $as_echo "$ac_try_echo"; } >&5 |
---|
3732 | (eval "$ac_link") 2>&5 |
---|
3733 | ac_status=$? |
---|
3734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3735 | test $ac_status = 0; }; then : |
---|
3736 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3737 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3738 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3739 | # `rm'. |
---|
3740 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3741 | test -f "$ac_file" || continue |
---|
3742 | case $ac_file in |
---|
3743 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3744 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3745 | break;; |
---|
3746 | * ) break;; |
---|
3747 | esac |
---|
3748 | done |
---|
3749 | else |
---|
3750 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3751 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3752 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3753 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3754 | fi |
---|
3755 | rm -f conftest conftest$ac_cv_exeext |
---|
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3757 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3758 | |
---|
3759 | rm -f conftest.$ac_ext |
---|
3760 | EXEEXT=$ac_cv_exeext |
---|
3761 | ac_exeext=$EXEEXT |
---|
3762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3763 | /* end confdefs.h. */ |
---|
3764 | #include <stdio.h> |
---|
3765 | int |
---|
3766 | main () |
---|
3767 | { |
---|
3768 | FILE *f = fopen ("conftest.out", "w"); |
---|
3769 | return ferror (f) || fclose (f) != 0; |
---|
3770 | |
---|
3771 | ; |
---|
3772 | return 0; |
---|
3773 | } |
---|
3774 | _ACEOF |
---|
3775 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3776 | # Check that the compiler produces executables we can run. If not, either |
---|
3777 | # the compiler is broken, or we cross compile. |
---|
3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3779 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3780 | if test "$cross_compiling" != yes; then |
---|
3781 | { { ac_try="$ac_link" |
---|
3782 | case "(($ac_try" in |
---|
3783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3784 | *) ac_try_echo=$ac_try;; |
---|
3785 | esac |
---|
3786 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3787 | $as_echo "$ac_try_echo"; } >&5 |
---|
3788 | (eval "$ac_link") 2>&5 |
---|
3789 | ac_status=$? |
---|
3790 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3791 | test $ac_status = 0; } |
---|
3792 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3793 | { { case "(($ac_try" in |
---|
3794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3795 | *) ac_try_echo=$ac_try;; |
---|
3796 | esac |
---|
3797 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3798 | $as_echo "$ac_try_echo"; } >&5 |
---|
3799 | (eval "$ac_try") 2>&5 |
---|
3800 | ac_status=$? |
---|
3801 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3802 | test $ac_status = 0; }; }; then |
---|
3803 | cross_compiling=no |
---|
3804 | else |
---|
3805 | if test "$cross_compiling" = maybe; then |
---|
3806 | cross_compiling=yes |
---|
3807 | else |
---|
3808 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3809 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3810 | as_fn_error $? "cannot run C++ compiled programs. |
---|
3811 | If you meant to cross compile, use \`--host'. |
---|
3812 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3813 | fi |
---|
3814 | fi |
---|
3815 | fi |
---|
3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3817 | $as_echo "$cross_compiling" >&6; } |
---|
3818 | |
---|
3819 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3820 | ac_clean_files=$ac_clean_files_save |
---|
3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3822 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3823 | if ${ac_cv_objext+:} false; then : |
---|
3824 | $as_echo_n "(cached) " >&6 |
---|
3825 | else |
---|
3826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3827 | /* end confdefs.h. */ |
---|
3828 | |
---|
3829 | int |
---|
3830 | main () |
---|
3831 | { |
---|
3832 | |
---|
3833 | ; |
---|
3834 | return 0; |
---|
3835 | } |
---|
3836 | _ACEOF |
---|
3837 | rm -f conftest.o conftest.obj |
---|
3838 | if { { ac_try="$ac_compile" |
---|
3839 | case "(($ac_try" in |
---|
3840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3841 | *) ac_try_echo=$ac_try;; |
---|
3842 | esac |
---|
3843 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3844 | $as_echo "$ac_try_echo"; } >&5 |
---|
3845 | (eval "$ac_compile") 2>&5 |
---|
3846 | ac_status=$? |
---|
3847 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3848 | test $ac_status = 0; }; then : |
---|
3849 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3850 | test -f "$ac_file" || continue; |
---|
3851 | case $ac_file in |
---|
3852 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3853 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3854 | break;; |
---|
3855 | esac |
---|
3856 | done |
---|
3857 | else |
---|
3858 | $as_echo "$as_me: failed program was:" >&5 |
---|
3859 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3860 | |
---|
3861 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3862 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3863 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3864 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3865 | fi |
---|
3866 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3867 | fi |
---|
3868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3869 | $as_echo "$ac_cv_objext" >&6; } |
---|
3870 | OBJEXT=$ac_cv_objext |
---|
3871 | ac_objext=$OBJEXT |
---|
3872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3873 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3874 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3875 | $as_echo_n "(cached) " >&6 |
---|
3876 | else |
---|
3877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3878 | /* end confdefs.h. */ |
---|
3879 | |
---|
3880 | int |
---|
3881 | main () |
---|
3882 | { |
---|
3883 | #ifndef __GNUC__ |
---|
3884 | choke me |
---|
3885 | #endif |
---|
3886 | |
---|
3887 | ; |
---|
3888 | return 0; |
---|
3889 | } |
---|
3890 | _ACEOF |
---|
3891 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3892 | ac_compiler_gnu=yes |
---|
3893 | else |
---|
3894 | ac_compiler_gnu=no |
---|
3895 | fi |
---|
3896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3897 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3898 | |
---|
3899 | fi |
---|
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3901 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3902 | if test $ac_compiler_gnu = yes; then |
---|
3903 | GXX=yes |
---|
3904 | else |
---|
3905 | GXX= |
---|
3906 | fi |
---|
3907 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3908 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3910 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3911 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3912 | $as_echo_n "(cached) " >&6 |
---|
3913 | else |
---|
3914 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3915 | ac_cxx_werror_flag=yes |
---|
3916 | ac_cv_prog_cxx_g=no |
---|
3917 | CXXFLAGS="-g" |
---|
3918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3919 | /* end confdefs.h. */ |
---|
3920 | |
---|
3921 | int |
---|
3922 | main () |
---|
3923 | { |
---|
3924 | |
---|
3925 | ; |
---|
3926 | return 0; |
---|
3927 | } |
---|
3928 | _ACEOF |
---|
3929 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3930 | ac_cv_prog_cxx_g=yes |
---|
3931 | else |
---|
3932 | CXXFLAGS="" |
---|
3933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3934 | /* end confdefs.h. */ |
---|
3935 | |
---|
3936 | int |
---|
3937 | main () |
---|
3938 | { |
---|
3939 | |
---|
3940 | ; |
---|
3941 | return 0; |
---|
3942 | } |
---|
3943 | _ACEOF |
---|
3944 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3945 | |
---|
3946 | else |
---|
3947 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3948 | CXXFLAGS="-g" |
---|
3949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3950 | /* end confdefs.h. */ |
---|
3951 | |
---|
3952 | int |
---|
3953 | main () |
---|
3954 | { |
---|
3955 | |
---|
3956 | ; |
---|
3957 | return 0; |
---|
3958 | } |
---|
3959 | _ACEOF |
---|
3960 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3961 | ac_cv_prog_cxx_g=yes |
---|
3962 | fi |
---|
3963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3964 | fi |
---|
3965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3966 | fi |
---|
3967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3968 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3969 | fi |
---|
3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3971 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3972 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3973 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3974 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3975 | if test "$GXX" = yes; then |
---|
3976 | CXXFLAGS="-g -O2" |
---|
3977 | else |
---|
3978 | CXXFLAGS="-g" |
---|
3979 | fi |
---|
3980 | else |
---|
3981 | if test "$GXX" = yes; then |
---|
3982 | CXXFLAGS="-O2" |
---|
3983 | else |
---|
3984 | CXXFLAGS= |
---|
3985 | fi |
---|
3986 | fi |
---|
3987 | ac_ext=c |
---|
3988 | ac_cpp='$CPP $CPPFLAGS' |
---|
3989 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3990 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3991 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3992 | DEPDIR="${am__leading_dot}deps" |
---|
3993 | |
---|
3994 | ac_config_commands="$ac_config_commands depfiles" |
---|
3995 | |
---|
3996 | |
---|
3997 | am_make=${MAKE-make} |
---|
3998 | cat > confinc << 'END' |
---|
3999 | am__doit: |
---|
4000 | @echo this is the am__doit target |
---|
4001 | .PHONY: am__doit |
---|
4002 | END |
---|
4003 | # If we don't find an include directive, just comment out the code. |
---|
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
---|
4005 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
---|
4006 | am__include="#" |
---|
4007 | am__quote= |
---|
4008 | _am_result=none |
---|
4009 | # First try GNU make style include. |
---|
4010 | echo "include confinc" > confmf |
---|
4011 | # Ignore all kinds of additional output from 'make'. |
---|
4012 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
4013 | *the\ am__doit\ target*) |
---|
4014 | am__include=include |
---|
4015 | am__quote= |
---|
4016 | _am_result=GNU |
---|
4017 | ;; |
---|
4018 | esac |
---|
4019 | # Now try BSD make style include. |
---|
4020 | if test "$am__include" = "#"; then |
---|
4021 | echo '.include "confinc"' > confmf |
---|
4022 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
4023 | *the\ am__doit\ target*) |
---|
4024 | am__include=.include |
---|
4025 | am__quote="\"" |
---|
4026 | _am_result=BSD |
---|
4027 | ;; |
---|
4028 | esac |
---|
4029 | fi |
---|
4030 | |
---|
4031 | |
---|
4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
---|
4033 | $as_echo "$_am_result" >&6; } |
---|
4034 | rm -f confinc confmf |
---|
4035 | |
---|
4036 | # Check whether --enable-dependency-tracking was given. |
---|
4037 | if test "${enable_dependency_tracking+set}" = set; then : |
---|
4038 | enableval=$enable_dependency_tracking; |
---|
4039 | fi |
---|
4040 | |
---|
4041 | if test "x$enable_dependency_tracking" != xno; then |
---|
4042 | am_depcomp="$ac_aux_dir/depcomp" |
---|
4043 | AMDEPBACKSLASH='\' |
---|
4044 | am__nodep='_no' |
---|
4045 | fi |
---|
4046 | if test "x$enable_dependency_tracking" != xno; then |
---|
4047 | AMDEP_TRUE= |
---|
4048 | AMDEP_FALSE='#' |
---|
4049 | else |
---|
4050 | AMDEP_TRUE='#' |
---|
4051 | AMDEP_FALSE= |
---|
4052 | fi |
---|
4053 | |
---|
4054 | |
---|
4055 | |
---|
4056 | depcc="$CXX" am_compiler_list= |
---|
4057 | |
---|
4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4059 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4060 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
---|
4061 | $as_echo_n "(cached) " >&6 |
---|
4062 | else |
---|
4063 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4064 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4065 | # making bogus files that we don't know about and never remove. For |
---|
4066 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4067 | # making a dummy file named 'D' -- because '-MD' means "put the output |
---|
4068 | # in D". |
---|
4069 | rm -rf conftest.dir |
---|
4070 | mkdir conftest.dir |
---|
4071 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4072 | # using a relative directory. |
---|
4073 | cp "$am_depcomp" conftest.dir |
---|
4074 | cd conftest.dir |
---|
4075 | # We will build objects and dependencies in a subdirectory because |
---|
4076 | # it helps to detect inapplicable dependency modes. For instance |
---|
4077 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4078 | # side effect of compilation, but ICC will put the dependencies in |
---|
4079 | # the current directory while Tru64 will put them in the object |
---|
4080 | # directory. |
---|
4081 | mkdir sub |
---|
4082 | |
---|
4083 | am_cv_CXX_dependencies_compiler_type=none |
---|
4084 | if test "$am_compiler_list" = ""; then |
---|
4085 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4086 | fi |
---|
4087 | am__universal=false |
---|
4088 | case " $depcc " in #( |
---|
4089 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4090 | esac |
---|
4091 | |
---|
4092 | for depmode in $am_compiler_list; do |
---|
4093 | # Setup a source with many dependencies, because some compilers |
---|
4094 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4095 | # we should not choose a depcomp mode which is confused by this. |
---|
4096 | # |
---|
4097 | # We need to recreate these files for each test, as the compiler may |
---|
4098 | # overwrite some of them when testing with obscure command lines. |
---|
4099 | # This happens at least with the AIX C compiler. |
---|
4100 | : > sub/conftest.c |
---|
4101 | for i in 1 2 3 4 5 6; do |
---|
4102 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4103 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
---|
4104 | # Solaris 10 /bin/sh. |
---|
4105 | echo '/* dummy */' > sub/conftst$i.h |
---|
4106 | done |
---|
4107 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4108 | |
---|
4109 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
---|
4110 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4111 | # handle '-M -o', and we need to detect this. Also, some Intel |
---|
4112 | # versions had trouble with output in subdirs. |
---|
4113 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4114 | am__minus_obj="-o $am__obj" |
---|
4115 | case $depmode in |
---|
4116 | gcc) |
---|
4117 | # This depmode causes a compiler race in universal mode. |
---|
4118 | test "$am__universal" = false || continue |
---|
4119 | ;; |
---|
4120 | nosideeffect) |
---|
4121 | # After this tag, mechanisms are not by side-effect, so they'll |
---|
4122 | # only be used when explicitly requested. |
---|
4123 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4124 | continue |
---|
4125 | else |
---|
4126 | break |
---|
4127 | fi |
---|
4128 | ;; |
---|
4129 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4130 | # This compiler won't grok '-c -o', but also, the minuso test has |
---|
4131 | # not run yet. These depmodes are late enough in the game, and |
---|
4132 | # so weak that their functioning should not be impacted. |
---|
4133 | am__obj=conftest.${OBJEXT-o} |
---|
4134 | am__minus_obj= |
---|
4135 | ;; |
---|
4136 | none) break ;; |
---|
4137 | esac |
---|
4138 | if depmode=$depmode \ |
---|
4139 | source=sub/conftest.c object=$am__obj \ |
---|
4140 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4141 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4142 | >/dev/null 2>conftest.err && |
---|
4143 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4144 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4145 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4146 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4147 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4148 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4149 | # that says an option was ignored or not supported. |
---|
4150 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4151 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4152 | # The diagnosis changed in icc 8.0: |
---|
4153 | # icc: Command line remark: option '-MP' not supported |
---|
4154 | if (grep 'ignoring option' conftest.err || |
---|
4155 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4156 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
4157 | break |
---|
4158 | fi |
---|
4159 | fi |
---|
4160 | done |
---|
4161 | |
---|
4162 | cd .. |
---|
4163 | rm -rf conftest.dir |
---|
4164 | else |
---|
4165 | am_cv_CXX_dependencies_compiler_type=none |
---|
4166 | fi |
---|
4167 | |
---|
4168 | fi |
---|
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
4170 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
---|
4171 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
4172 | |
---|
4173 | if |
---|
4174 | test "x$enable_dependency_tracking" != xno \ |
---|
4175 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
4176 | am__fastdepCXX_TRUE= |
---|
4177 | am__fastdepCXX_FALSE='#' |
---|
4178 | else |
---|
4179 | am__fastdepCXX_TRUE='#' |
---|
4180 | am__fastdepCXX_FALSE= |
---|
4181 | fi |
---|
4182 | |
---|
4183 | |
---|
4184 | ac_ext=c |
---|
4185 | ac_cpp='$CPP $CPPFLAGS' |
---|
4186 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4187 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4188 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4189 | if test -n "$ac_tool_prefix"; then |
---|
4190 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
4191 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4193 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4194 | if ${ac_cv_prog_CC+:} false; then : |
---|
4195 | $as_echo_n "(cached) " >&6 |
---|
4196 | else |
---|
4197 | if test -n "$CC"; then |
---|
4198 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4199 | else |
---|
4200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4201 | for as_dir in $PATH |
---|
4202 | do |
---|
4203 | IFS=$as_save_IFS |
---|
4204 | test -z "$as_dir" && as_dir=. |
---|
4205 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4206 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4207 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
4208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4209 | break 2 |
---|
4210 | fi |
---|
4211 | done |
---|
4212 | done |
---|
4213 | IFS=$as_save_IFS |
---|
4214 | |
---|
4215 | fi |
---|
4216 | fi |
---|
4217 | CC=$ac_cv_prog_CC |
---|
4218 | if test -n "$CC"; then |
---|
4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4220 | $as_echo "$CC" >&6; } |
---|
4221 | else |
---|
4222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4223 | $as_echo "no" >&6; } |
---|
4224 | fi |
---|
4225 | |
---|
4226 | |
---|
4227 | fi |
---|
4228 | if test -z "$ac_cv_prog_CC"; then |
---|
4229 | ac_ct_CC=$CC |
---|
4230 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
4231 | set dummy gcc; ac_word=$2 |
---|
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4233 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4234 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
4235 | $as_echo_n "(cached) " >&6 |
---|
4236 | else |
---|
4237 | if test -n "$ac_ct_CC"; then |
---|
4238 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
4239 | else |
---|
4240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4241 | for as_dir in $PATH |
---|
4242 | do |
---|
4243 | IFS=$as_save_IFS |
---|
4244 | test -z "$as_dir" && as_dir=. |
---|
4245 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4246 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4247 | ac_cv_prog_ac_ct_CC="gcc" |
---|
4248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4249 | break 2 |
---|
4250 | fi |
---|
4251 | done |
---|
4252 | done |
---|
4253 | IFS=$as_save_IFS |
---|
4254 | |
---|
4255 | fi |
---|
4256 | fi |
---|
4257 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4258 | if test -n "$ac_ct_CC"; then |
---|
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4260 | $as_echo "$ac_ct_CC" >&6; } |
---|
4261 | else |
---|
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4263 | $as_echo "no" >&6; } |
---|
4264 | fi |
---|
4265 | |
---|
4266 | if test "x$ac_ct_CC" = x; then |
---|
4267 | CC="" |
---|
4268 | else |
---|
4269 | case $cross_compiling:$ac_tool_warned in |
---|
4270 | yes:) |
---|
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4272 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4273 | ac_tool_warned=yes ;; |
---|
4274 | esac |
---|
4275 | CC=$ac_ct_CC |
---|
4276 | fi |
---|
4277 | else |
---|
4278 | CC="$ac_cv_prog_CC" |
---|
4279 | fi |
---|
4280 | |
---|
4281 | if test -z "$CC"; then |
---|
4282 | if test -n "$ac_tool_prefix"; then |
---|
4283 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
4284 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4286 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4287 | if ${ac_cv_prog_CC+:} false; then : |
---|
4288 | $as_echo_n "(cached) " >&6 |
---|
4289 | else |
---|
4290 | if test -n "$CC"; then |
---|
4291 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4292 | else |
---|
4293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4294 | for as_dir in $PATH |
---|
4295 | do |
---|
4296 | IFS=$as_save_IFS |
---|
4297 | test -z "$as_dir" && as_dir=. |
---|
4298 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4299 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4300 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
4301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4302 | break 2 |
---|
4303 | fi |
---|
4304 | done |
---|
4305 | done |
---|
4306 | IFS=$as_save_IFS |
---|
4307 | |
---|
4308 | fi |
---|
4309 | fi |
---|
4310 | CC=$ac_cv_prog_CC |
---|
4311 | if test -n "$CC"; then |
---|
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4313 | $as_echo "$CC" >&6; } |
---|
4314 | else |
---|
4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4316 | $as_echo "no" >&6; } |
---|
4317 | fi |
---|
4318 | |
---|
4319 | |
---|
4320 | fi |
---|
4321 | fi |
---|
4322 | if test -z "$CC"; then |
---|
4323 | # Extract the first word of "cc", so it can be a program name with args. |
---|
4324 | set dummy cc; ac_word=$2 |
---|
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4326 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4327 | if ${ac_cv_prog_CC+:} false; then : |
---|
4328 | $as_echo_n "(cached) " >&6 |
---|
4329 | else |
---|
4330 | if test -n "$CC"; then |
---|
4331 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4332 | else |
---|
4333 | ac_prog_rejected=no |
---|
4334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4335 | for as_dir in $PATH |
---|
4336 | do |
---|
4337 | IFS=$as_save_IFS |
---|
4338 | test -z "$as_dir" && as_dir=. |
---|
4339 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4340 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4341 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
4342 | ac_prog_rejected=yes |
---|
4343 | continue |
---|
4344 | fi |
---|
4345 | ac_cv_prog_CC="cc" |
---|
4346 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4347 | break 2 |
---|
4348 | fi |
---|
4349 | done |
---|
4350 | done |
---|
4351 | IFS=$as_save_IFS |
---|
4352 | |
---|
4353 | if test $ac_prog_rejected = yes; then |
---|
4354 | # We found a bogon in the path, so make sure we never use it. |
---|
4355 | set dummy $ac_cv_prog_CC |
---|
4356 | shift |
---|
4357 | if test $# != 0; then |
---|
4358 | # We chose a different compiler from the bogus one. |
---|
4359 | # However, it has the same basename, so the bogon will be chosen |
---|
4360 | # first if we set CC to just the basename; use the full file name. |
---|
4361 | shift |
---|
4362 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
4363 | fi |
---|
4364 | fi |
---|
4365 | fi |
---|
4366 | fi |
---|
4367 | CC=$ac_cv_prog_CC |
---|
4368 | if test -n "$CC"; then |
---|
4369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4370 | $as_echo "$CC" >&6; } |
---|
4371 | else |
---|
4372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4373 | $as_echo "no" >&6; } |
---|
4374 | fi |
---|
4375 | |
---|
4376 | |
---|
4377 | fi |
---|
4378 | if test -z "$CC"; then |
---|
4379 | if test -n "$ac_tool_prefix"; then |
---|
4380 | for ac_prog in cl.exe |
---|
4381 | do |
---|
4382 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
4383 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4385 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4386 | if ${ac_cv_prog_CC+:} false; then : |
---|
4387 | $as_echo_n "(cached) " >&6 |
---|
4388 | else |
---|
4389 | if test -n "$CC"; then |
---|
4390 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4391 | else |
---|
4392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4393 | for as_dir in $PATH |
---|
4394 | do |
---|
4395 | IFS=$as_save_IFS |
---|
4396 | test -z "$as_dir" && as_dir=. |
---|
4397 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4398 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4399 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
4400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4401 | break 2 |
---|
4402 | fi |
---|
4403 | done |
---|
4404 | done |
---|
4405 | IFS=$as_save_IFS |
---|
4406 | |
---|
4407 | fi |
---|
4408 | fi |
---|
4409 | CC=$ac_cv_prog_CC |
---|
4410 | if test -n "$CC"; then |
---|
4411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4412 | $as_echo "$CC" >&6; } |
---|
4413 | else |
---|
4414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4415 | $as_echo "no" >&6; } |
---|
4416 | fi |
---|
4417 | |
---|
4418 | |
---|
4419 | test -n "$CC" && break |
---|
4420 | done |
---|
4421 | fi |
---|
4422 | if test -z "$CC"; then |
---|
4423 | ac_ct_CC=$CC |
---|
4424 | for ac_prog in cl.exe |
---|
4425 | do |
---|
4426 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4427 | set dummy $ac_prog; ac_word=$2 |
---|
4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4429 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4430 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
4431 | $as_echo_n "(cached) " >&6 |
---|
4432 | else |
---|
4433 | if test -n "$ac_ct_CC"; then |
---|
4434 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
4435 | else |
---|
4436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4437 | for as_dir in $PATH |
---|
4438 | do |
---|
4439 | IFS=$as_save_IFS |
---|
4440 | test -z "$as_dir" && as_dir=. |
---|
4441 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4442 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4443 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
4444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4445 | break 2 |
---|
4446 | fi |
---|
4447 | done |
---|
4448 | done |
---|
4449 | IFS=$as_save_IFS |
---|
4450 | |
---|
4451 | fi |
---|
4452 | fi |
---|
4453 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4454 | if test -n "$ac_ct_CC"; then |
---|
4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4456 | $as_echo "$ac_ct_CC" >&6; } |
---|
4457 | else |
---|
4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4459 | $as_echo "no" >&6; } |
---|
4460 | fi |
---|
4461 | |
---|
4462 | |
---|
4463 | test -n "$ac_ct_CC" && break |
---|
4464 | done |
---|
4465 | |
---|
4466 | if test "x$ac_ct_CC" = x; then |
---|
4467 | CC="" |
---|
4468 | else |
---|
4469 | case $cross_compiling:$ac_tool_warned in |
---|
4470 | yes:) |
---|
4471 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4472 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4473 | ac_tool_warned=yes ;; |
---|
4474 | esac |
---|
4475 | CC=$ac_ct_CC |
---|
4476 | fi |
---|
4477 | fi |
---|
4478 | |
---|
4479 | fi |
---|
4480 | |
---|
4481 | |
---|
4482 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4483 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4484 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
4485 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4486 | |
---|
4487 | # Provide some information about the compiler. |
---|
4488 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
4489 | set X $ac_compile |
---|
4490 | ac_compiler=$2 |
---|
4491 | for ac_option in --version -v -V -qversion; do |
---|
4492 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
4493 | case "(($ac_try" in |
---|
4494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4495 | *) ac_try_echo=$ac_try;; |
---|
4496 | esac |
---|
4497 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4498 | $as_echo "$ac_try_echo"; } >&5 |
---|
4499 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
4500 | ac_status=$? |
---|
4501 | if test -s conftest.err; then |
---|
4502 | sed '10a\ |
---|
4503 | ... rest of stderr output deleted ... |
---|
4504 | 10q' conftest.err >conftest.er1 |
---|
4505 | cat conftest.er1 >&5 |
---|
4506 | fi |
---|
4507 | rm -f conftest.er1 conftest.err |
---|
4508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4509 | test $ac_status = 0; } |
---|
4510 | done |
---|
4511 | |
---|
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
4513 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
4514 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
4515 | $as_echo_n "(cached) " >&6 |
---|
4516 | else |
---|
4517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4518 | /* end confdefs.h. */ |
---|
4519 | |
---|
4520 | int |
---|
4521 | main () |
---|
4522 | { |
---|
4523 | #ifndef __GNUC__ |
---|
4524 | choke me |
---|
4525 | #endif |
---|
4526 | |
---|
4527 | ; |
---|
4528 | return 0; |
---|
4529 | } |
---|
4530 | _ACEOF |
---|
4531 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4532 | ac_compiler_gnu=yes |
---|
4533 | else |
---|
4534 | ac_compiler_gnu=no |
---|
4535 | fi |
---|
4536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4537 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
4538 | |
---|
4539 | fi |
---|
4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
4541 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
4542 | if test $ac_compiler_gnu = yes; then |
---|
4543 | GCC=yes |
---|
4544 | else |
---|
4545 | GCC= |
---|
4546 | fi |
---|
4547 | ac_test_CFLAGS=${CFLAGS+set} |
---|
4548 | ac_save_CFLAGS=$CFLAGS |
---|
4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
4550 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
4551 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
4552 | $as_echo_n "(cached) " >&6 |
---|
4553 | else |
---|
4554 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
4555 | ac_c_werror_flag=yes |
---|
4556 | ac_cv_prog_cc_g=no |
---|
4557 | CFLAGS="-g" |
---|
4558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4559 | /* end confdefs.h. */ |
---|
4560 | |
---|
4561 | int |
---|
4562 | main () |
---|
4563 | { |
---|
4564 | |
---|
4565 | ; |
---|
4566 | return 0; |
---|
4567 | } |
---|
4568 | _ACEOF |
---|
4569 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4570 | ac_cv_prog_cc_g=yes |
---|
4571 | else |
---|
4572 | CFLAGS="" |
---|
4573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4574 | /* end confdefs.h. */ |
---|
4575 | |
---|
4576 | int |
---|
4577 | main () |
---|
4578 | { |
---|
4579 | |
---|
4580 | ; |
---|
4581 | return 0; |
---|
4582 | } |
---|
4583 | _ACEOF |
---|
4584 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4585 | |
---|
4586 | else |
---|
4587 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4588 | CFLAGS="-g" |
---|
4589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4590 | /* end confdefs.h. */ |
---|
4591 | |
---|
4592 | int |
---|
4593 | main () |
---|
4594 | { |
---|
4595 | |
---|
4596 | ; |
---|
4597 | return 0; |
---|
4598 | } |
---|
4599 | _ACEOF |
---|
4600 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4601 | ac_cv_prog_cc_g=yes |
---|
4602 | fi |
---|
4603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4604 | fi |
---|
4605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4606 | fi |
---|
4607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4608 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4609 | fi |
---|
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
4611 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
4612 | if test "$ac_test_CFLAGS" = set; then |
---|
4613 | CFLAGS=$ac_save_CFLAGS |
---|
4614 | elif test $ac_cv_prog_cc_g = yes; then |
---|
4615 | if test "$GCC" = yes; then |
---|
4616 | CFLAGS="-g -O2" |
---|
4617 | else |
---|
4618 | CFLAGS="-g" |
---|
4619 | fi |
---|
4620 | else |
---|
4621 | if test "$GCC" = yes; then |
---|
4622 | CFLAGS="-O2" |
---|
4623 | else |
---|
4624 | CFLAGS= |
---|
4625 | fi |
---|
4626 | fi |
---|
4627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
4628 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
4629 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
4630 | $as_echo_n "(cached) " >&6 |
---|
4631 | else |
---|
4632 | ac_cv_prog_cc_c89=no |
---|
4633 | ac_save_CC=$CC |
---|
4634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4635 | /* end confdefs.h. */ |
---|
4636 | #include <stdarg.h> |
---|
4637 | #include <stdio.h> |
---|
4638 | struct stat; |
---|
4639 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
4640 | struct buf { int x; }; |
---|
4641 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
4642 | static char *e (p, i) |
---|
4643 | char **p; |
---|
4644 | int i; |
---|
4645 | { |
---|
4646 | return p[i]; |
---|
4647 | } |
---|
4648 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
4649 | { |
---|
4650 | char *s; |
---|
4651 | va_list v; |
---|
4652 | va_start (v,p); |
---|
4653 | s = g (p, va_arg (v,int)); |
---|
4654 | va_end (v); |
---|
4655 | return s; |
---|
4656 | } |
---|
4657 | |
---|
4658 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
4659 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
4660 | These don't provoke an error unfortunately, instead are silently treated |
---|
4661 | as 'x'. The following induces an error, until -std is added to get |
---|
4662 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
4663 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
4664 | that's true only with -std. */ |
---|
4665 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
4666 | |
---|
4667 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
4668 | inside strings and character constants. */ |
---|
4669 | #define FOO(x) 'x' |
---|
4670 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
4671 | |
---|
4672 | int test (int i, double x); |
---|
4673 | struct s1 {int (*f) (int a);}; |
---|
4674 | struct s2 {int (*f) (double a);}; |
---|
4675 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
4676 | int argc; |
---|
4677 | char **argv; |
---|
4678 | int |
---|
4679 | main () |
---|
4680 | { |
---|
4681 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
4682 | ; |
---|
4683 | return 0; |
---|
4684 | } |
---|
4685 | _ACEOF |
---|
4686 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
4687 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
4688 | do |
---|
4689 | CC="$ac_save_CC $ac_arg" |
---|
4690 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4691 | ac_cv_prog_cc_c89=$ac_arg |
---|
4692 | fi |
---|
4693 | rm -f core conftest.err conftest.$ac_objext |
---|
4694 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
4695 | done |
---|
4696 | rm -f conftest.$ac_ext |
---|
4697 | CC=$ac_save_CC |
---|
4698 | |
---|
4699 | fi |
---|
4700 | # AC_CACHE_VAL |
---|
4701 | case "x$ac_cv_prog_cc_c89" in |
---|
4702 | x) |
---|
4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
4704 | $as_echo "none needed" >&6; } ;; |
---|
4705 | xno) |
---|
4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
4707 | $as_echo "unsupported" >&6; } ;; |
---|
4708 | *) |
---|
4709 | CC="$CC $ac_cv_prog_cc_c89" |
---|
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
4711 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
4712 | esac |
---|
4713 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
4714 | |
---|
4715 | fi |
---|
4716 | |
---|
4717 | ac_ext=c |
---|
4718 | ac_cpp='$CPP $CPPFLAGS' |
---|
4719 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4720 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4721 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4722 | |
---|
4723 | ac_ext=c |
---|
4724 | ac_cpp='$CPP $CPPFLAGS' |
---|
4725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
---|
4729 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
---|
4730 | if ${am_cv_prog_cc_c_o+:} false; then : |
---|
4731 | $as_echo_n "(cached) " >&6 |
---|
4732 | else |
---|
4733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4734 | /* end confdefs.h. */ |
---|
4735 | |
---|
4736 | int |
---|
4737 | main () |
---|
4738 | { |
---|
4739 | |
---|
4740 | ; |
---|
4741 | return 0; |
---|
4742 | } |
---|
4743 | _ACEOF |
---|
4744 | # Make sure it works both with $CC and with simple cc. |
---|
4745 | # Following AC_PROG_CC_C_O, we do the test twice because some |
---|
4746 | # compilers refuse to overwrite an existing .o file with -o, |
---|
4747 | # though they will create one. |
---|
4748 | am_cv_prog_cc_c_o=yes |
---|
4749 | for am_i in 1 2; do |
---|
4750 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
---|
4751 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
---|
4752 | ac_status=$? |
---|
4753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4754 | (exit $ac_status); } \ |
---|
4755 | && test -f conftest2.$ac_objext; then |
---|
4756 | : OK |
---|
4757 | else |
---|
4758 | am_cv_prog_cc_c_o=no |
---|
4759 | break |
---|
4760 | fi |
---|
4761 | done |
---|
4762 | rm -f core conftest* |
---|
4763 | unset am_i |
---|
4764 | fi |
---|
4765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
---|
4766 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
---|
4767 | if test "$am_cv_prog_cc_c_o" != yes; then |
---|
4768 | # Losing compiler, so override with the script. |
---|
4769 | # FIXME: It is wrong to rewrite CC. |
---|
4770 | # But if we don't then we get into trouble of one sort or another. |
---|
4771 | # A longer-term fix would be to have automake use am__CC in this case, |
---|
4772 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
---|
4773 | CC="$am_aux_dir/compile $CC" |
---|
4774 | fi |
---|
4775 | ac_ext=c |
---|
4776 | ac_cpp='$CPP $CPPFLAGS' |
---|
4777 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4778 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4779 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4780 | |
---|
4781 | |
---|
4782 | depcc="$CC" am_compiler_list= |
---|
4783 | |
---|
4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4785 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4786 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
---|
4787 | $as_echo_n "(cached) " >&6 |
---|
4788 | else |
---|
4789 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4790 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4791 | # making bogus files that we don't know about and never remove. For |
---|
4792 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4793 | # making a dummy file named 'D' -- because '-MD' means "put the output |
---|
4794 | # in D". |
---|
4795 | rm -rf conftest.dir |
---|
4796 | mkdir conftest.dir |
---|
4797 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4798 | # using a relative directory. |
---|
4799 | cp "$am_depcomp" conftest.dir |
---|
4800 | cd conftest.dir |
---|
4801 | # We will build objects and dependencies in a subdirectory because |
---|
4802 | # it helps to detect inapplicable dependency modes. For instance |
---|
4803 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4804 | # side effect of compilation, but ICC will put the dependencies in |
---|
4805 | # the current directory while Tru64 will put them in the object |
---|
4806 | # directory. |
---|
4807 | mkdir sub |
---|
4808 | |
---|
4809 | am_cv_CC_dependencies_compiler_type=none |
---|
4810 | if test "$am_compiler_list" = ""; then |
---|
4811 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4812 | fi |
---|
4813 | am__universal=false |
---|
4814 | case " $depcc " in #( |
---|
4815 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4816 | esac |
---|
4817 | |
---|
4818 | for depmode in $am_compiler_list; do |
---|
4819 | # Setup a source with many dependencies, because some compilers |
---|
4820 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4821 | # we should not choose a depcomp mode which is confused by this. |
---|
4822 | # |
---|
4823 | # We need to recreate these files for each test, as the compiler may |
---|
4824 | # overwrite some of them when testing with obscure command lines. |
---|
4825 | # This happens at least with the AIX C compiler. |
---|
4826 | : > sub/conftest.c |
---|
4827 | for i in 1 2 3 4 5 6; do |
---|
4828 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4829 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
---|
4830 | # Solaris 10 /bin/sh. |
---|
4831 | echo '/* dummy */' > sub/conftst$i.h |
---|
4832 | done |
---|
4833 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4834 | |
---|
4835 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
---|
4836 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4837 | # handle '-M -o', and we need to detect this. Also, some Intel |
---|
4838 | # versions had trouble with output in subdirs. |
---|
4839 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4840 | am__minus_obj="-o $am__obj" |
---|
4841 | case $depmode in |
---|
4842 | gcc) |
---|
4843 | # This depmode causes a compiler race in universal mode. |
---|
4844 | test "$am__universal" = false || continue |
---|
4845 | ;; |
---|
4846 | nosideeffect) |
---|
4847 | # After this tag, mechanisms are not by side-effect, so they'll |
---|
4848 | # only be used when explicitly requested. |
---|
4849 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4850 | continue |
---|
4851 | else |
---|
4852 | break |
---|
4853 | fi |
---|
4854 | ;; |
---|
4855 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4856 | # This compiler won't grok '-c -o', but also, the minuso test has |
---|
4857 | # not run yet. These depmodes are late enough in the game, and |
---|
4858 | # so weak that their functioning should not be impacted. |
---|
4859 | am__obj=conftest.${OBJEXT-o} |
---|
4860 | am__minus_obj= |
---|
4861 | ;; |
---|
4862 | none) break ;; |
---|
4863 | esac |
---|
4864 | if depmode=$depmode \ |
---|
4865 | source=sub/conftest.c object=$am__obj \ |
---|
4866 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4867 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4868 | >/dev/null 2>conftest.err && |
---|
4869 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4870 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4871 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4872 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4873 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4874 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4875 | # that says an option was ignored or not supported. |
---|
4876 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4877 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4878 | # The diagnosis changed in icc 8.0: |
---|
4879 | # icc: Command line remark: option '-MP' not supported |
---|
4880 | if (grep 'ignoring option' conftest.err || |
---|
4881 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4882 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
4883 | break |
---|
4884 | fi |
---|
4885 | fi |
---|
4886 | done |
---|
4887 | |
---|
4888 | cd .. |
---|
4889 | rm -rf conftest.dir |
---|
4890 | else |
---|
4891 | am_cv_CC_dependencies_compiler_type=none |
---|
4892 | fi |
---|
4893 | |
---|
4894 | fi |
---|
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
4896 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
4897 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
4898 | |
---|
4899 | if |
---|
4900 | test "x$enable_dependency_tracking" != xno \ |
---|
4901 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
4902 | am__fastdepCC_TRUE= |
---|
4903 | am__fastdepCC_FALSE='#' |
---|
4904 | else |
---|
4905 | am__fastdepCC_TRUE='#' |
---|
4906 | am__fastdepCC_FALSE= |
---|
4907 | fi |
---|
4908 | |
---|
4909 | |
---|
4910 | # By default we simply use the C compiler to build assembly code. |
---|
4911 | |
---|
4912 | test "${CCAS+set}" = set || CCAS=$CC |
---|
4913 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS |
---|
4914 | |
---|
4915 | |
---|
4916 | |
---|
4917 | depcc="$CCAS" am_compiler_list= |
---|
4918 | |
---|
4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4920 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4921 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : |
---|
4922 | $as_echo_n "(cached) " >&6 |
---|
4923 | else |
---|
4924 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4925 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4926 | # making bogus files that we don't know about and never remove. For |
---|
4927 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4928 | # making a dummy file named 'D' -- because '-MD' means "put the output |
---|
4929 | # in D". |
---|
4930 | rm -rf conftest.dir |
---|
4931 | mkdir conftest.dir |
---|
4932 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4933 | # using a relative directory. |
---|
4934 | cp "$am_depcomp" conftest.dir |
---|
4935 | cd conftest.dir |
---|
4936 | # We will build objects and dependencies in a subdirectory because |
---|
4937 | # it helps to detect inapplicable dependency modes. For instance |
---|
4938 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4939 | # side effect of compilation, but ICC will put the dependencies in |
---|
4940 | # the current directory while Tru64 will put them in the object |
---|
4941 | # directory. |
---|
4942 | mkdir sub |
---|
4943 | |
---|
4944 | am_cv_CCAS_dependencies_compiler_type=none |
---|
4945 | if test "$am_compiler_list" = ""; then |
---|
4946 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4947 | fi |
---|
4948 | am__universal=false |
---|
4949 | |
---|
4950 | |
---|
4951 | for depmode in $am_compiler_list; do |
---|
4952 | # Setup a source with many dependencies, because some compilers |
---|
4953 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4954 | # we should not choose a depcomp mode which is confused by this. |
---|
4955 | # |
---|
4956 | # We need to recreate these files for each test, as the compiler may |
---|
4957 | # overwrite some of them when testing with obscure command lines. |
---|
4958 | # This happens at least with the AIX C compiler. |
---|
4959 | : > sub/conftest.c |
---|
4960 | for i in 1 2 3 4 5 6; do |
---|
4961 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4962 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
---|
4963 | # Solaris 10 /bin/sh. |
---|
4964 | echo '/* dummy */' > sub/conftst$i.h |
---|
4965 | done |
---|
4966 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4967 | |
---|
4968 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
---|
4969 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4970 | # handle '-M -o', and we need to detect this. Also, some Intel |
---|
4971 | # versions had trouble with output in subdirs. |
---|
4972 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4973 | am__minus_obj="-o $am__obj" |
---|
4974 | case $depmode in |
---|
4975 | gcc) |
---|
4976 | # This depmode causes a compiler race in universal mode. |
---|
4977 | test "$am__universal" = false || continue |
---|
4978 | ;; |
---|
4979 | nosideeffect) |
---|
4980 | # After this tag, mechanisms are not by side-effect, so they'll |
---|
4981 | # only be used when explicitly requested. |
---|
4982 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4983 | continue |
---|
4984 | else |
---|
4985 | break |
---|
4986 | fi |
---|
4987 | ;; |
---|
4988 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4989 | # This compiler won't grok '-c -o', but also, the minuso test has |
---|
4990 | # not run yet. These depmodes are late enough in the game, and |
---|
4991 | # so weak that their functioning should not be impacted. |
---|
4992 | am__obj=conftest.${OBJEXT-o} |
---|
4993 | am__minus_obj= |
---|
4994 | ;; |
---|
4995 | none) break ;; |
---|
4996 | esac |
---|
4997 | if depmode=$depmode \ |
---|
4998 | source=sub/conftest.c object=$am__obj \ |
---|
4999 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
5000 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
5001 | >/dev/null 2>conftest.err && |
---|
5002 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
5003 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
5004 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
5005 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
5006 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
5007 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
5008 | # that says an option was ignored or not supported. |
---|
5009 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
5010 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
5011 | # The diagnosis changed in icc 8.0: |
---|
5012 | # icc: Command line remark: option '-MP' not supported |
---|
5013 | if (grep 'ignoring option' conftest.err || |
---|
5014 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
5015 | am_cv_CCAS_dependencies_compiler_type=$depmode |
---|
5016 | break |
---|
5017 | fi |
---|
5018 | fi |
---|
5019 | done |
---|
5020 | |
---|
5021 | cd .. |
---|
5022 | rm -rf conftest.dir |
---|
5023 | else |
---|
5024 | am_cv_CCAS_dependencies_compiler_type=none |
---|
5025 | fi |
---|
5026 | |
---|
5027 | fi |
---|
5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 |
---|
5029 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } |
---|
5030 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type |
---|
5031 | |
---|
5032 | if |
---|
5033 | test "x$enable_dependency_tracking" != xno \ |
---|
5034 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then |
---|
5035 | am__fastdepCCAS_TRUE= |
---|
5036 | am__fastdepCCAS_FALSE='#' |
---|
5037 | else |
---|
5038 | am__fastdepCCAS_TRUE='#' |
---|
5039 | am__fastdepCCAS_FALSE= |
---|
5040 | fi |
---|
5041 | |
---|
5042 | |
---|
5043 | # deprecated |
---|
5044 | # These are often not installed and people miss seeing the "no", so stop the configure. |
---|
5045 | for ac_prog in 'bison -y' byacc |
---|
5046 | do |
---|
5047 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5048 | set dummy $ac_prog; ac_word=$2 |
---|
5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5050 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5051 | if ${ac_cv_prog_YACC+:} false; then : |
---|
5052 | $as_echo_n "(cached) " >&6 |
---|
5053 | else |
---|
5054 | if test -n "$YACC"; then |
---|
5055 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
5056 | else |
---|
5057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5058 | for as_dir in $PATH |
---|
5059 | do |
---|
5060 | IFS=$as_save_IFS |
---|
5061 | test -z "$as_dir" && as_dir=. |
---|
5062 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5063 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5064 | ac_cv_prog_YACC="$ac_prog" |
---|
5065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5066 | break 2 |
---|
5067 | fi |
---|
5068 | done |
---|
5069 | done |
---|
5070 | IFS=$as_save_IFS |
---|
5071 | |
---|
5072 | fi |
---|
5073 | fi |
---|
5074 | YACC=$ac_cv_prog_YACC |
---|
5075 | if test -n "$YACC"; then |
---|
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
---|
5077 | $as_echo "$YACC" >&6; } |
---|
5078 | else |
---|
5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5080 | $as_echo "no" >&6; } |
---|
5081 | fi |
---|
5082 | |
---|
5083 | |
---|
5084 | test -n "$YACC" && break |
---|
5085 | done |
---|
5086 | test -n "$YACC" || YACC="yacc" |
---|
5087 | |
---|
5088 | if test "${YACC}" = "yacc" ; then echo "Error: bison required." ; exit 1 ; fi |
---|
5089 | |
---|
5090 | for ac_prog in flex lex |
---|
5091 | do |
---|
5092 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5093 | set dummy $ac_prog; ac_word=$2 |
---|
5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5095 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5096 | if ${ac_cv_prog_LEX+:} false; then : |
---|
5097 | $as_echo_n "(cached) " >&6 |
---|
5098 | else |
---|
5099 | if test -n "$LEX"; then |
---|
5100 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
5101 | else |
---|
5102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5103 | for as_dir in $PATH |
---|
5104 | do |
---|
5105 | IFS=$as_save_IFS |
---|
5106 | test -z "$as_dir" && as_dir=. |
---|
5107 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5108 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5109 | ac_cv_prog_LEX="$ac_prog" |
---|
5110 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5111 | break 2 |
---|
5112 | fi |
---|
5113 | done |
---|
5114 | done |
---|
5115 | IFS=$as_save_IFS |
---|
5116 | |
---|
5117 | fi |
---|
5118 | fi |
---|
5119 | LEX=$ac_cv_prog_LEX |
---|
5120 | if test -n "$LEX"; then |
---|
5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
---|
5122 | $as_echo "$LEX" >&6; } |
---|
5123 | else |
---|
5124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5125 | $as_echo "no" >&6; } |
---|
5126 | fi |
---|
5127 | |
---|
5128 | |
---|
5129 | test -n "$LEX" && break |
---|
5130 | done |
---|
5131 | test -n "$LEX" || LEX=":" |
---|
5132 | |
---|
5133 | if test "x$LEX" != "x:"; then |
---|
5134 | cat >conftest.l <<_ACEOF |
---|
5135 | %% |
---|
5136 | a { ECHO; } |
---|
5137 | b { REJECT; } |
---|
5138 | c { yymore (); } |
---|
5139 | d { yyless (1); } |
---|
5140 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
---|
5141 | yyless ((input () != 0)); } |
---|
5142 | f { unput (yytext[0]); } |
---|
5143 | . { BEGIN INITIAL; } |
---|
5144 | %% |
---|
5145 | #ifdef YYTEXT_POINTER |
---|
5146 | extern char *yytext; |
---|
5147 | #endif |
---|
5148 | int |
---|
5149 | main (void) |
---|
5150 | { |
---|
5151 | return ! yylex () + ! yywrap (); |
---|
5152 | } |
---|
5153 | _ACEOF |
---|
5154 | { { ac_try="$LEX conftest.l" |
---|
5155 | case "(($ac_try" in |
---|
5156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5157 | *) ac_try_echo=$ac_try;; |
---|
5158 | esac |
---|
5159 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
5160 | $as_echo "$ac_try_echo"; } >&5 |
---|
5161 | (eval "$LEX conftest.l") 2>&5 |
---|
5162 | ac_status=$? |
---|
5163 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
5164 | test $ac_status = 0; } |
---|
5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
---|
5166 | $as_echo_n "checking lex output file root... " >&6; } |
---|
5167 | if ${ac_cv_prog_lex_root+:} false; then : |
---|
5168 | $as_echo_n "(cached) " >&6 |
---|
5169 | else |
---|
5170 | |
---|
5171 | if test -f lex.yy.c; then |
---|
5172 | ac_cv_prog_lex_root=lex.yy |
---|
5173 | elif test -f lexyy.c; then |
---|
5174 | ac_cv_prog_lex_root=lexyy |
---|
5175 | else |
---|
5176 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
---|
5177 | fi |
---|
5178 | fi |
---|
5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
---|
5180 | $as_echo "$ac_cv_prog_lex_root" >&6; } |
---|
5181 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
5182 | |
---|
5183 | if test -z "${LEXLIB+set}"; then |
---|
5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
---|
5185 | $as_echo_n "checking lex library... " >&6; } |
---|
5186 | if ${ac_cv_lib_lex+:} false; then : |
---|
5187 | $as_echo_n "(cached) " >&6 |
---|
5188 | else |
---|
5189 | |
---|
5190 | ac_save_LIBS=$LIBS |
---|
5191 | ac_cv_lib_lex='none needed' |
---|
5192 | for ac_lib in '' -lfl -ll; do |
---|
5193 | LIBS="$ac_lib $ac_save_LIBS" |
---|
5194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5195 | /* end confdefs.h. */ |
---|
5196 | `cat $LEX_OUTPUT_ROOT.c` |
---|
5197 | _ACEOF |
---|
5198 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5199 | ac_cv_lib_lex=$ac_lib |
---|
5200 | fi |
---|
5201 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5202 | conftest$ac_exeext conftest.$ac_ext |
---|
5203 | test "$ac_cv_lib_lex" != 'none needed' && break |
---|
5204 | done |
---|
5205 | LIBS=$ac_save_LIBS |
---|
5206 | |
---|
5207 | fi |
---|
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
---|
5209 | $as_echo "$ac_cv_lib_lex" >&6; } |
---|
5210 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
---|
5211 | fi |
---|
5212 | |
---|
5213 | |
---|
5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
---|
5215 | $as_echo_n "checking whether yytext is a pointer... " >&6; } |
---|
5216 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
---|
5217 | $as_echo_n "(cached) " >&6 |
---|
5218 | else |
---|
5219 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
5220 | # default is implementation-dependent. Figure out which it is, since |
---|
5221 | # not all implementations provide the %pointer and %array declarations. |
---|
5222 | ac_cv_prog_lex_yytext_pointer=no |
---|
5223 | ac_save_LIBS=$LIBS |
---|
5224 | LIBS="$LEXLIB $ac_save_LIBS" |
---|
5225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5226 | /* end confdefs.h. */ |
---|
5227 | |
---|
5228 | #define YYTEXT_POINTER 1 |
---|
5229 | `cat $LEX_OUTPUT_ROOT.c` |
---|
5230 | _ACEOF |
---|
5231 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5232 | ac_cv_prog_lex_yytext_pointer=yes |
---|
5233 | fi |
---|
5234 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5235 | conftest$ac_exeext conftest.$ac_ext |
---|
5236 | LIBS=$ac_save_LIBS |
---|
5237 | |
---|
5238 | fi |
---|
5239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
---|
5240 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
---|
5241 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
5242 | |
---|
5243 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
---|
5244 | |
---|
5245 | fi |
---|
5246 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
---|
5247 | |
---|
5248 | fi |
---|
5249 | if test "${LEX}" = "lex" ; then echo "Error: flex required." ; exit 1 ; fi |
---|
5250 | |
---|
5251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
5252 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
5253 | set x ${MAKE-make} |
---|
5254 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
5255 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
5256 | $as_echo_n "(cached) " >&6 |
---|
5257 | else |
---|
5258 | cat >conftest.make <<\_ACEOF |
---|
5259 | SHELL = /bin/sh |
---|
5260 | all: |
---|
5261 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
5262 | _ACEOF |
---|
5263 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
5264 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
5265 | *@@@%%%=?*=@@@%%%*) |
---|
5266 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
5267 | *) |
---|
5268 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
5269 | esac |
---|
5270 | rm -f conftest.make |
---|
5271 | fi |
---|
5272 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
5274 | $as_echo "yes" >&6; } |
---|
5275 | SET_MAKE= |
---|
5276 | else |
---|
5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5278 | $as_echo "no" >&6; } |
---|
5279 | SET_MAKE="MAKE=${MAKE-make}" |
---|
5280 | fi |
---|
5281 | |
---|
5282 | if test -n "$ac_tool_prefix"; then |
---|
5283 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
5284 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5286 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5287 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
5288 | $as_echo_n "(cached) " >&6 |
---|
5289 | else |
---|
5290 | if test -n "$RANLIB"; then |
---|
5291 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
5292 | else |
---|
5293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5294 | for as_dir in $PATH |
---|
5295 | do |
---|
5296 | IFS=$as_save_IFS |
---|
5297 | test -z "$as_dir" && as_dir=. |
---|
5298 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5299 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5300 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
5301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5302 | break 2 |
---|
5303 | fi |
---|
5304 | done |
---|
5305 | done |
---|
5306 | IFS=$as_save_IFS |
---|
5307 | |
---|
5308 | fi |
---|
5309 | fi |
---|
5310 | RANLIB=$ac_cv_prog_RANLIB |
---|
5311 | if test -n "$RANLIB"; then |
---|
5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
5313 | $as_echo "$RANLIB" >&6; } |
---|
5314 | else |
---|
5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5316 | $as_echo "no" >&6; } |
---|
5317 | fi |
---|
5318 | |
---|
5319 | |
---|
5320 | fi |
---|
5321 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
5322 | ac_ct_RANLIB=$RANLIB |
---|
5323 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
5324 | set dummy ranlib; ac_word=$2 |
---|
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5326 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5327 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
5328 | $as_echo_n "(cached) " >&6 |
---|
5329 | else |
---|
5330 | if test -n "$ac_ct_RANLIB"; then |
---|
5331 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
5332 | else |
---|
5333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5334 | for as_dir in $PATH |
---|
5335 | do |
---|
5336 | IFS=$as_save_IFS |
---|
5337 | test -z "$as_dir" && as_dir=. |
---|
5338 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5339 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5340 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
5341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5342 | break 2 |
---|
5343 | fi |
---|
5344 | done |
---|
5345 | done |
---|
5346 | IFS=$as_save_IFS |
---|
5347 | |
---|
5348 | fi |
---|
5349 | fi |
---|
5350 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
5351 | if test -n "$ac_ct_RANLIB"; then |
---|
5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
5353 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
5354 | else |
---|
5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5356 | $as_echo "no" >&6; } |
---|
5357 | fi |
---|
5358 | |
---|
5359 | if test "x$ac_ct_RANLIB" = x; then |
---|
5360 | RANLIB=":" |
---|
5361 | else |
---|
5362 | case $cross_compiling:$ac_tool_warned in |
---|
5363 | yes:) |
---|
5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
5365 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
5366 | ac_tool_warned=yes ;; |
---|
5367 | esac |
---|
5368 | RANLIB=$ac_ct_RANLIB |
---|
5369 | fi |
---|
5370 | else |
---|
5371 | RANLIB="$ac_cv_prog_RANLIB" |
---|
5372 | fi |
---|
5373 | |
---|
5374 | |
---|
5375 | # Checks for libraries. |
---|
5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fibre::yield in -lfibre" >&5 |
---|
5377 | $as_echo_n "checking for Fibre::yield in -lfibre... " >&6; } |
---|
5378 | if ${ac_cv_lib_fibre_Fibre__yield+:} false; then : |
---|
5379 | $as_echo_n "(cached) " >&6 |
---|
5380 | else |
---|
5381 | ac_check_lib_save_LIBS=$LIBS |
---|
5382 | LIBS="-lfibre $LIBS" |
---|
5383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5384 | /* end confdefs.h. */ |
---|
5385 | |
---|
5386 | /* Override any GCC internal prototype to avoid an error. |
---|
5387 | Use char because int might match the return type of a GCC |
---|
5388 | builtin and then its argument prototype would still apply. */ |
---|
5389 | #ifdef __cplusplus |
---|
5390 | extern "C" |
---|
5391 | #endif |
---|
5392 | char Fibre::yield (); |
---|
5393 | int |
---|
5394 | main () |
---|
5395 | { |
---|
5396 | return Fibre::yield (); |
---|
5397 | ; |
---|
5398 | return 0; |
---|
5399 | } |
---|
5400 | _ACEOF |
---|
5401 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5402 | ac_cv_lib_fibre_Fibre__yield=yes |
---|
5403 | else |
---|
5404 | ac_cv_lib_fibre_Fibre__yield=no |
---|
5405 | fi |
---|
5406 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5407 | conftest$ac_exeext conftest.$ac_ext |
---|
5408 | LIBS=$ac_check_lib_save_LIBS |
---|
5409 | fi |
---|
5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fibre_Fibre__yield" >&5 |
---|
5411 | $as_echo "$ac_cv_lib_fibre_Fibre__yield" >&6; } |
---|
5412 | if test "x$ac_cv_lib_fibre_Fibre__yield" = xyes; then : |
---|
5413 | HAVE_LIBFIBRE=1 |
---|
5414 | else |
---|
5415 | HAVE_LIBFIBRE=0 |
---|
5416 | fi |
---|
5417 | |
---|
5418 | if test "$HAVE_LIBFIBRE" -eq 1; then |
---|
5419 | WITH_LIBFIBRE_TRUE= |
---|
5420 | WITH_LIBFIBRE_FALSE='#' |
---|
5421 | else |
---|
5422 | WITH_LIBFIBRE_TRUE='#' |
---|
5423 | WITH_LIBFIBRE_FALSE= |
---|
5424 | fi |
---|
5425 | |
---|
5426 | |
---|
5427 | # Checks for header files. |
---|
5428 | ac_ext=c |
---|
5429 | ac_cpp='$CPP $CPPFLAGS' |
---|
5430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
5434 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
5435 | # On Suns, sometimes $CPP names a directory. |
---|
5436 | if test -n "$CPP" && test -d "$CPP"; then |
---|
5437 | CPP= |
---|
5438 | fi |
---|
5439 | if test -z "$CPP"; then |
---|
5440 | if ${ac_cv_prog_CPP+:} false; then : |
---|
5441 | $as_echo_n "(cached) " >&6 |
---|
5442 | else |
---|
5443 | # Double quotes because CPP needs to be expanded |
---|
5444 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
5445 | do |
---|
5446 | ac_preproc_ok=false |
---|
5447 | for ac_c_preproc_warn_flag in '' yes |
---|
5448 | do |
---|
5449 | # Use a header file that comes with gcc, so configuring glibc |
---|
5450 | # with a fresh cross-compiler works. |
---|
5451 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5452 | # <limits.h> exists even on freestanding compilers. |
---|
5453 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5454 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5456 | /* end confdefs.h. */ |
---|
5457 | #ifdef __STDC__ |
---|
5458 | # include <limits.h> |
---|
5459 | #else |
---|
5460 | # include <assert.h> |
---|
5461 | #endif |
---|
5462 | Syntax error |
---|
5463 | _ACEOF |
---|
5464 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5465 | |
---|
5466 | else |
---|
5467 | # Broken: fails on valid input. |
---|
5468 | continue |
---|
5469 | fi |
---|
5470 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5471 | |
---|
5472 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5473 | # can be detected and how. |
---|
5474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5475 | /* end confdefs.h. */ |
---|
5476 | #include <ac_nonexistent.h> |
---|
5477 | _ACEOF |
---|
5478 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5479 | # Broken: success on invalid input. |
---|
5480 | continue |
---|
5481 | else |
---|
5482 | # Passes both tests. |
---|
5483 | ac_preproc_ok=: |
---|
5484 | break |
---|
5485 | fi |
---|
5486 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5487 | |
---|
5488 | done |
---|
5489 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5490 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
5491 | if $ac_preproc_ok; then : |
---|
5492 | break |
---|
5493 | fi |
---|
5494 | |
---|
5495 | done |
---|
5496 | ac_cv_prog_CPP=$CPP |
---|
5497 | |
---|
5498 | fi |
---|
5499 | CPP=$ac_cv_prog_CPP |
---|
5500 | else |
---|
5501 | ac_cv_prog_CPP=$CPP |
---|
5502 | fi |
---|
5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
5504 | $as_echo "$CPP" >&6; } |
---|
5505 | ac_preproc_ok=false |
---|
5506 | for ac_c_preproc_warn_flag in '' yes |
---|
5507 | do |
---|
5508 | # Use a header file that comes with gcc, so configuring glibc |
---|
5509 | # with a fresh cross-compiler works. |
---|
5510 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5511 | # <limits.h> exists even on freestanding compilers. |
---|
5512 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5513 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5515 | /* end confdefs.h. */ |
---|
5516 | #ifdef __STDC__ |
---|
5517 | # include <limits.h> |
---|
5518 | #else |
---|
5519 | # include <assert.h> |
---|
5520 | #endif |
---|
5521 | Syntax error |
---|
5522 | _ACEOF |
---|
5523 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5524 | |
---|
5525 | else |
---|
5526 | # Broken: fails on valid input. |
---|
5527 | continue |
---|
5528 | fi |
---|
5529 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5530 | |
---|
5531 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5532 | # can be detected and how. |
---|
5533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5534 | /* end confdefs.h. */ |
---|
5535 | #include <ac_nonexistent.h> |
---|
5536 | _ACEOF |
---|
5537 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5538 | # Broken: success on invalid input. |
---|
5539 | continue |
---|
5540 | else |
---|
5541 | # Passes both tests. |
---|
5542 | ac_preproc_ok=: |
---|
5543 | break |
---|
5544 | fi |
---|
5545 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5546 | |
---|
5547 | done |
---|
5548 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5549 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
5550 | if $ac_preproc_ok; then : |
---|
5551 | |
---|
5552 | else |
---|
5553 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
5554 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5555 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
5556 | See \`config.log' for more details" "$LINENO" 5; } |
---|
5557 | fi |
---|
5558 | |
---|
5559 | ac_ext=c |
---|
5560 | ac_cpp='$CPP $CPPFLAGS' |
---|
5561 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5562 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5563 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5564 | |
---|
5565 | |
---|
5566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
5567 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
5568 | if ${ac_cv_path_GREP+:} false; then : |
---|
5569 | $as_echo_n "(cached) " >&6 |
---|
5570 | else |
---|
5571 | if test -z "$GREP"; then |
---|
5572 | ac_path_GREP_found=false |
---|
5573 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5575 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5576 | do |
---|
5577 | IFS=$as_save_IFS |
---|
5578 | test -z "$as_dir" && as_dir=. |
---|
5579 | for ac_prog in grep ggrep; do |
---|
5580 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5581 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5582 | as_fn_executable_p "$ac_path_GREP" || continue |
---|
5583 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
5584 | # Check for GNU $ac_path_GREP |
---|
5585 | case `"$ac_path_GREP" --version 2>&1` in |
---|
5586 | *GNU*) |
---|
5587 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
5588 | *) |
---|
5589 | ac_count=0 |
---|
5590 | $as_echo_n 0123456789 >"conftest.in" |
---|
5591 | while : |
---|
5592 | do |
---|
5593 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5594 | mv "conftest.tmp" "conftest.in" |
---|
5595 | cp "conftest.in" "conftest.nl" |
---|
5596 | $as_echo 'GREP' >> "conftest.nl" |
---|
5597 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5598 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5599 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5600 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
5601 | # Best one so far, save it but keep looking for a better one |
---|
5602 | ac_cv_path_GREP="$ac_path_GREP" |
---|
5603 | ac_path_GREP_max=$ac_count |
---|
5604 | fi |
---|
5605 | # 10*(2^10) chars as input seems more than enough |
---|
5606 | test $ac_count -gt 10 && break |
---|
5607 | done |
---|
5608 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5609 | esac |
---|
5610 | |
---|
5611 | $ac_path_GREP_found && break 3 |
---|
5612 | done |
---|
5613 | done |
---|
5614 | done |
---|
5615 | IFS=$as_save_IFS |
---|
5616 | if test -z "$ac_cv_path_GREP"; then |
---|
5617 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5618 | fi |
---|
5619 | else |
---|
5620 | ac_cv_path_GREP=$GREP |
---|
5621 | fi |
---|
5622 | |
---|
5623 | fi |
---|
5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
5625 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
5626 | GREP="$ac_cv_path_GREP" |
---|
5627 | |
---|
5628 | |
---|
5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
5630 | $as_echo_n "checking for egrep... " >&6; } |
---|
5631 | if ${ac_cv_path_EGREP+:} false; then : |
---|
5632 | $as_echo_n "(cached) " >&6 |
---|
5633 | else |
---|
5634 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
5635 | then ac_cv_path_EGREP="$GREP -E" |
---|
5636 | else |
---|
5637 | if test -z "$EGREP"; then |
---|
5638 | ac_path_EGREP_found=false |
---|
5639 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5641 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5642 | do |
---|
5643 | IFS=$as_save_IFS |
---|
5644 | test -z "$as_dir" && as_dir=. |
---|
5645 | for ac_prog in egrep; do |
---|
5646 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5647 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5648 | as_fn_executable_p "$ac_path_EGREP" || continue |
---|
5649 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
5650 | # Check for GNU $ac_path_EGREP |
---|
5651 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
5652 | *GNU*) |
---|
5653 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
5654 | *) |
---|
5655 | ac_count=0 |
---|
5656 | $as_echo_n 0123456789 >"conftest.in" |
---|
5657 | while : |
---|
5658 | do |
---|
5659 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5660 | mv "conftest.tmp" "conftest.in" |
---|
5661 | cp "conftest.in" "conftest.nl" |
---|
5662 | $as_echo 'EGREP' >> "conftest.nl" |
---|
5663 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5664 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5665 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5666 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
5667 | # Best one so far, save it but keep looking for a better one |
---|
5668 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
5669 | ac_path_EGREP_max=$ac_count |
---|
5670 | fi |
---|
5671 | # 10*(2^10) chars as input seems more than enough |
---|
5672 | test $ac_count -gt 10 && break |
---|
5673 | done |
---|
5674 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5675 | esac |
---|
5676 | |
---|
5677 | $ac_path_EGREP_found && break 3 |
---|
5678 | done |
---|
5679 | done |
---|
5680 | done |
---|
5681 | IFS=$as_save_IFS |
---|
5682 | if test -z "$ac_cv_path_EGREP"; then |
---|
5683 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5684 | fi |
---|
5685 | else |
---|
5686 | ac_cv_path_EGREP=$EGREP |
---|
5687 | fi |
---|
5688 | |
---|
5689 | fi |
---|
5690 | fi |
---|
5691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
5692 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
5693 | EGREP="$ac_cv_path_EGREP" |
---|
5694 | |
---|
5695 | |
---|
5696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
5697 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
5698 | if ${ac_cv_header_stdc+:} false; then : |
---|
5699 | $as_echo_n "(cached) " >&6 |
---|
5700 | else |
---|
5701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5702 | /* end confdefs.h. */ |
---|
5703 | #include <stdlib.h> |
---|
5704 | #include <stdarg.h> |
---|
5705 | #include <string.h> |
---|
5706 | #include <float.h> |
---|
5707 | |
---|
5708 | int |
---|
5709 | main () |
---|
5710 | { |
---|
5711 | |
---|
5712 | ; |
---|
5713 | return 0; |
---|
5714 | } |
---|
5715 | _ACEOF |
---|
5716 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5717 | ac_cv_header_stdc=yes |
---|
5718 | else |
---|
5719 | ac_cv_header_stdc=no |
---|
5720 | fi |
---|
5721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5722 | |
---|
5723 | if test $ac_cv_header_stdc = yes; then |
---|
5724 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5726 | /* end confdefs.h. */ |
---|
5727 | #include <string.h> |
---|
5728 | |
---|
5729 | _ACEOF |
---|
5730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5731 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
5732 | |
---|
5733 | else |
---|
5734 | ac_cv_header_stdc=no |
---|
5735 | fi |
---|
5736 | rm -f conftest* |
---|
5737 | |
---|
5738 | fi |
---|
5739 | |
---|
5740 | if test $ac_cv_header_stdc = yes; then |
---|
5741 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5743 | /* end confdefs.h. */ |
---|
5744 | #include <stdlib.h> |
---|
5745 | |
---|
5746 | _ACEOF |
---|
5747 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5748 | $EGREP "free" >/dev/null 2>&1; then : |
---|
5749 | |
---|
5750 | else |
---|
5751 | ac_cv_header_stdc=no |
---|
5752 | fi |
---|
5753 | rm -f conftest* |
---|
5754 | |
---|
5755 | fi |
---|
5756 | |
---|
5757 | if test $ac_cv_header_stdc = yes; then |
---|
5758 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5759 | if test "$cross_compiling" = yes; then : |
---|
5760 | : |
---|
5761 | else |
---|
5762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5763 | /* end confdefs.h. */ |
---|
5764 | #include <ctype.h> |
---|
5765 | #include <stdlib.h> |
---|
5766 | #if ((' ' & 0x0FF) == 0x020) |
---|
5767 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5768 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5769 | #else |
---|
5770 | # define ISLOWER(c) \ |
---|
5771 | (('a' <= (c) && (c) <= 'i') \ |
---|
5772 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5773 | || ('s' <= (c) && (c) <= 'z')) |
---|
5774 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5775 | #endif |
---|
5776 | |
---|
5777 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5778 | int |
---|
5779 | main () |
---|
5780 | { |
---|
5781 | int i; |
---|
5782 | for (i = 0; i < 256; i++) |
---|
5783 | if (XOR (islower (i), ISLOWER (i)) |
---|
5784 | || toupper (i) != TOUPPER (i)) |
---|
5785 | return 2; |
---|
5786 | return 0; |
---|
5787 | } |
---|
5788 | _ACEOF |
---|
5789 | if ac_fn_c_try_run "$LINENO"; then : |
---|
5790 | |
---|
5791 | else |
---|
5792 | ac_cv_header_stdc=no |
---|
5793 | fi |
---|
5794 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5795 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5796 | fi |
---|
5797 | |
---|
5798 | fi |
---|
5799 | fi |
---|
5800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
5801 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
5802 | if test $ac_cv_header_stdc = yes; then |
---|
5803 | |
---|
5804 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
5805 | |
---|
5806 | fi |
---|
5807 | |
---|
5808 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
5809 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
5810 | inttypes.h stdint.h unistd.h |
---|
5811 | do : |
---|
5812 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5813 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
5814 | " |
---|
5815 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
5816 | cat >>confdefs.h <<_ACEOF |
---|
5817 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5818 | _ACEOF |
---|
5819 | |
---|
5820 | fi |
---|
5821 | |
---|
5822 | done |
---|
5823 | |
---|
5824 | |
---|
5825 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
5826 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
5827 | |
---|
5828 | else |
---|
5829 | |
---|
5830 | cat >>confdefs.h <<_ACEOF |
---|
5831 | #define size_t unsigned int |
---|
5832 | _ACEOF |
---|
5833 | |
---|
5834 | fi |
---|
5835 | |
---|
5836 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
5837 | # for constant arguments. Useless! |
---|
5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
---|
5839 | $as_echo_n "checking for working alloca.h... " >&6; } |
---|
5840 | if ${ac_cv_working_alloca_h+:} false; then : |
---|
5841 | $as_echo_n "(cached) " >&6 |
---|
5842 | else |
---|
5843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5844 | /* end confdefs.h. */ |
---|
5845 | #include <alloca.h> |
---|
5846 | int |
---|
5847 | main () |
---|
5848 | { |
---|
5849 | char *p = (char *) alloca (2 * sizeof (int)); |
---|
5850 | if (p) return 0; |
---|
5851 | ; |
---|
5852 | return 0; |
---|
5853 | } |
---|
5854 | _ACEOF |
---|
5855 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5856 | ac_cv_working_alloca_h=yes |
---|
5857 | else |
---|
5858 | ac_cv_working_alloca_h=no |
---|
5859 | fi |
---|
5860 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5861 | conftest$ac_exeext conftest.$ac_ext |
---|
5862 | fi |
---|
5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
---|
5864 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
---|
5865 | if test $ac_cv_working_alloca_h = yes; then |
---|
5866 | |
---|
5867 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
---|
5868 | |
---|
5869 | fi |
---|
5870 | |
---|
5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
---|
5872 | $as_echo_n "checking for alloca... " >&6; } |
---|
5873 | if ${ac_cv_func_alloca_works+:} false; then : |
---|
5874 | $as_echo_n "(cached) " >&6 |
---|
5875 | else |
---|
5876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5877 | /* end confdefs.h. */ |
---|
5878 | #ifdef __GNUC__ |
---|
5879 | # define alloca __builtin_alloca |
---|
5880 | #else |
---|
5881 | # ifdef _MSC_VER |
---|
5882 | # include <malloc.h> |
---|
5883 | # define alloca _alloca |
---|
5884 | # else |
---|
5885 | # ifdef HAVE_ALLOCA_H |
---|
5886 | # include <alloca.h> |
---|
5887 | # else |
---|
5888 | # ifdef _AIX |
---|
5889 | #pragma alloca |
---|
5890 | # else |
---|
5891 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
5892 | void *alloca (size_t); |
---|
5893 | # endif |
---|
5894 | # endif |
---|
5895 | # endif |
---|
5896 | # endif |
---|
5897 | #endif |
---|
5898 | |
---|
5899 | int |
---|
5900 | main () |
---|
5901 | { |
---|
5902 | char *p = (char *) alloca (1); |
---|
5903 | if (p) return 0; |
---|
5904 | ; |
---|
5905 | return 0; |
---|
5906 | } |
---|
5907 | _ACEOF |
---|
5908 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5909 | ac_cv_func_alloca_works=yes |
---|
5910 | else |
---|
5911 | ac_cv_func_alloca_works=no |
---|
5912 | fi |
---|
5913 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5914 | conftest$ac_exeext conftest.$ac_ext |
---|
5915 | fi |
---|
5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
---|
5917 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
---|
5918 | |
---|
5919 | if test $ac_cv_func_alloca_works = yes; then |
---|
5920 | |
---|
5921 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
---|
5922 | |
---|
5923 | else |
---|
5924 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
5925 | # that cause trouble. Some versions do not even contain alloca or |
---|
5926 | # contain a buggy version. If you still want to use their alloca, |
---|
5927 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
5928 | |
---|
5929 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
---|
5930 | |
---|
5931 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
---|
5932 | |
---|
5933 | |
---|
5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
---|
5935 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
---|
5936 | if ${ac_cv_os_cray+:} false; then : |
---|
5937 | $as_echo_n "(cached) " >&6 |
---|
5938 | else |
---|
5939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5940 | /* end confdefs.h. */ |
---|
5941 | #if defined CRAY && ! defined CRAY2 |
---|
5942 | webecray |
---|
5943 | #else |
---|
5944 | wenotbecray |
---|
5945 | #endif |
---|
5946 | |
---|
5947 | _ACEOF |
---|
5948 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5949 | $EGREP "webecray" >/dev/null 2>&1; then : |
---|
5950 | ac_cv_os_cray=yes |
---|
5951 | else |
---|
5952 | ac_cv_os_cray=no |
---|
5953 | fi |
---|
5954 | rm -f conftest* |
---|
5955 | |
---|
5956 | fi |
---|
5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
---|
5958 | $as_echo "$ac_cv_os_cray" >&6; } |
---|
5959 | if test $ac_cv_os_cray = yes; then |
---|
5960 | for ac_func in _getb67 GETB67 getb67; do |
---|
5961 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5962 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
5963 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
5964 | |
---|
5965 | cat >>confdefs.h <<_ACEOF |
---|
5966 | #define CRAY_STACKSEG_END $ac_func |
---|
5967 | _ACEOF |
---|
5968 | |
---|
5969 | break |
---|
5970 | fi |
---|
5971 | |
---|
5972 | done |
---|
5973 | fi |
---|
5974 | |
---|
5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
---|
5976 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
---|
5977 | if ${ac_cv_c_stack_direction+:} false; then : |
---|
5978 | $as_echo_n "(cached) " >&6 |
---|
5979 | else |
---|
5980 | if test "$cross_compiling" = yes; then : |
---|
5981 | ac_cv_c_stack_direction=0 |
---|
5982 | else |
---|
5983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5984 | /* end confdefs.h. */ |
---|
5985 | $ac_includes_default |
---|
5986 | int |
---|
5987 | find_stack_direction (int *addr, int depth) |
---|
5988 | { |
---|
5989 | int dir, dummy = 0; |
---|
5990 | if (! addr) |
---|
5991 | addr = &dummy; |
---|
5992 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
---|
5993 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
---|
5994 | return dir + dummy; |
---|
5995 | } |
---|
5996 | |
---|
5997 | int |
---|
5998 | main (int argc, char **argv) |
---|
5999 | { |
---|
6000 | return find_stack_direction (0, argc + !argv + 20) < 0; |
---|
6001 | } |
---|
6002 | _ACEOF |
---|
6003 | if ac_fn_c_try_run "$LINENO"; then : |
---|
6004 | ac_cv_c_stack_direction=1 |
---|
6005 | else |
---|
6006 | ac_cv_c_stack_direction=-1 |
---|
6007 | fi |
---|
6008 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
6009 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
6010 | fi |
---|
6011 | |
---|
6012 | fi |
---|
6013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
---|
6014 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
---|
6015 | cat >>confdefs.h <<_ACEOF |
---|
6016 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
6017 | _ACEOF |
---|
6018 | |
---|
6019 | |
---|
6020 | fi |
---|
6021 | |
---|
6022 | for ac_header in fenv.h float.h inttypes.h libintl.h limits.h malloc.h stddef.h stdlib.h string.h unistd.h |
---|
6023 | do : |
---|
6024 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6025 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
6026 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
6027 | cat >>confdefs.h <<_ACEOF |
---|
6028 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6029 | _ACEOF |
---|
6030 | |
---|
6031 | fi |
---|
6032 | |
---|
6033 | done |
---|
6034 | |
---|
6035 | |
---|
6036 | # Checks for typedefs, structures, and compiler characteristics. |
---|
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
---|
6038 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
---|
6039 | if ${ac_cv_header_stdbool_h+:} false; then : |
---|
6040 | $as_echo_n "(cached) " >&6 |
---|
6041 | else |
---|
6042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6043 | /* end confdefs.h. */ |
---|
6044 | |
---|
6045 | #include <stdbool.h> |
---|
6046 | #ifndef bool |
---|
6047 | "error: bool is not defined" |
---|
6048 | #endif |
---|
6049 | #ifndef false |
---|
6050 | "error: false is not defined" |
---|
6051 | #endif |
---|
6052 | #if false |
---|
6053 | "error: false is not 0" |
---|
6054 | #endif |
---|
6055 | #ifndef true |
---|
6056 | "error: true is not defined" |
---|
6057 | #endif |
---|
6058 | #if true != 1 |
---|
6059 | "error: true is not 1" |
---|
6060 | #endif |
---|
6061 | #ifndef __bool_true_false_are_defined |
---|
6062 | "error: __bool_true_false_are_defined is not defined" |
---|
6063 | #endif |
---|
6064 | |
---|
6065 | struct s { _Bool s: 1; _Bool t; } s; |
---|
6066 | |
---|
6067 | char a[true == 1 ? 1 : -1]; |
---|
6068 | char b[false == 0 ? 1 : -1]; |
---|
6069 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
6070 | char d[(bool) 0.5 == true ? 1 : -1]; |
---|
6071 | /* See body of main program for 'e'. */ |
---|
6072 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
---|
6073 | char g[true]; |
---|
6074 | char h[sizeof (_Bool)]; |
---|
6075 | char i[sizeof s.t]; |
---|
6076 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
---|
6077 | /* The following fails for |
---|
6078 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
---|
6079 | _Bool n[m]; |
---|
6080 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
---|
6081 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
---|
6082 | /* Catch a bug in an HP-UX C compiler. See |
---|
6083 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
---|
6084 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
---|
6085 | */ |
---|
6086 | _Bool q = true; |
---|
6087 | _Bool *pq = &q; |
---|
6088 | |
---|
6089 | int |
---|
6090 | main () |
---|
6091 | { |
---|
6092 | |
---|
6093 | bool e = &s; |
---|
6094 | *pq |= q; |
---|
6095 | *pq |= ! q; |
---|
6096 | /* Refer to every declared value, to avoid compiler optimizations. */ |
---|
6097 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
---|
6098 | + !m + !n + !o + !p + !q + !pq); |
---|
6099 | |
---|
6100 | ; |
---|
6101 | return 0; |
---|
6102 | } |
---|
6103 | _ACEOF |
---|
6104 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6105 | ac_cv_header_stdbool_h=yes |
---|
6106 | else |
---|
6107 | ac_cv_header_stdbool_h=no |
---|
6108 | fi |
---|
6109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6110 | fi |
---|
6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
---|
6112 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
---|
6113 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
---|
6114 | if test "x$ac_cv_type__Bool" = xyes; then : |
---|
6115 | |
---|
6116 | cat >>confdefs.h <<_ACEOF |
---|
6117 | #define HAVE__BOOL 1 |
---|
6118 | _ACEOF |
---|
6119 | |
---|
6120 | |
---|
6121 | fi |
---|
6122 | |
---|
6123 | |
---|
6124 | if test $ac_cv_header_stdbool_h = yes; then |
---|
6125 | |
---|
6126 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
---|
6127 | |
---|
6128 | fi |
---|
6129 | |
---|
6130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
---|
6131 | $as_echo_n "checking for inline... " >&6; } |
---|
6132 | if ${ac_cv_c_inline+:} false; then : |
---|
6133 | $as_echo_n "(cached) " >&6 |
---|
6134 | else |
---|
6135 | ac_cv_c_inline=no |
---|
6136 | for ac_kw in inline __inline__ __inline; do |
---|
6137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6138 | /* end confdefs.h. */ |
---|
6139 | #ifndef __cplusplus |
---|
6140 | typedef int foo_t; |
---|
6141 | static $ac_kw foo_t static_foo () {return 0; } |
---|
6142 | $ac_kw foo_t foo () {return 0; } |
---|
6143 | #endif |
---|
6144 | |
---|
6145 | _ACEOF |
---|
6146 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6147 | ac_cv_c_inline=$ac_kw |
---|
6148 | fi |
---|
6149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6150 | test "$ac_cv_c_inline" != no && break |
---|
6151 | done |
---|
6152 | |
---|
6153 | fi |
---|
6154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
---|
6155 | $as_echo "$ac_cv_c_inline" >&6; } |
---|
6156 | |
---|
6157 | case $ac_cv_c_inline in |
---|
6158 | inline | yes) ;; |
---|
6159 | *) |
---|
6160 | case $ac_cv_c_inline in |
---|
6161 | no) ac_val=;; |
---|
6162 | *) ac_val=$ac_cv_c_inline;; |
---|
6163 | esac |
---|
6164 | cat >>confdefs.h <<_ACEOF |
---|
6165 | #ifndef __cplusplus |
---|
6166 | #define inline $ac_val |
---|
6167 | #endif |
---|
6168 | _ACEOF |
---|
6169 | ;; |
---|
6170 | esac |
---|
6171 | |
---|
6172 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
---|
6173 | case $ac_cv_c_int16_t in #( |
---|
6174 | no|yes) ;; #( |
---|
6175 | *) |
---|
6176 | |
---|
6177 | cat >>confdefs.h <<_ACEOF |
---|
6178 | #define int16_t $ac_cv_c_int16_t |
---|
6179 | _ACEOF |
---|
6180 | ;; |
---|
6181 | esac |
---|
6182 | |
---|
6183 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
---|
6184 | case $ac_cv_c_int32_t in #( |
---|
6185 | no|yes) ;; #( |
---|
6186 | *) |
---|
6187 | |
---|
6188 | cat >>confdefs.h <<_ACEOF |
---|
6189 | #define int32_t $ac_cv_c_int32_t |
---|
6190 | _ACEOF |
---|
6191 | ;; |
---|
6192 | esac |
---|
6193 | |
---|
6194 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
---|
6195 | case $ac_cv_c_int8_t in #( |
---|
6196 | no|yes) ;; #( |
---|
6197 | *) |
---|
6198 | |
---|
6199 | cat >>confdefs.h <<_ACEOF |
---|
6200 | #define int8_t $ac_cv_c_int8_t |
---|
6201 | _ACEOF |
---|
6202 | ;; |
---|
6203 | esac |
---|
6204 | |
---|
6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
---|
6206 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
---|
6207 | if ${ac_cv_c_restrict+:} false; then : |
---|
6208 | $as_echo_n "(cached) " >&6 |
---|
6209 | else |
---|
6210 | ac_cv_c_restrict=no |
---|
6211 | # The order here caters to the fact that C++ does not require restrict. |
---|
6212 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
---|
6213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6214 | /* end confdefs.h. */ |
---|
6215 | typedef int * int_ptr; |
---|
6216 | int foo (int_ptr $ac_kw ip) { |
---|
6217 | return ip[0]; |
---|
6218 | } |
---|
6219 | int |
---|
6220 | main () |
---|
6221 | { |
---|
6222 | int s[1]; |
---|
6223 | int * $ac_kw t = s; |
---|
6224 | t[0] = 0; |
---|
6225 | return foo(t) |
---|
6226 | ; |
---|
6227 | return 0; |
---|
6228 | } |
---|
6229 | _ACEOF |
---|
6230 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6231 | ac_cv_c_restrict=$ac_kw |
---|
6232 | fi |
---|
6233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6234 | test "$ac_cv_c_restrict" != no && break |
---|
6235 | done |
---|
6236 | |
---|
6237 | fi |
---|
6238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
---|
6239 | $as_echo "$ac_cv_c_restrict" >&6; } |
---|
6240 | |
---|
6241 | case $ac_cv_c_restrict in |
---|
6242 | restrict) ;; |
---|
6243 | no) $as_echo "#define restrict /**/" >>confdefs.h |
---|
6244 | ;; |
---|
6245 | *) cat >>confdefs.h <<_ACEOF |
---|
6246 | #define restrict $ac_cv_c_restrict |
---|
6247 | _ACEOF |
---|
6248 | ;; |
---|
6249 | esac |
---|
6250 | |
---|
6251 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
6252 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
6253 | |
---|
6254 | else |
---|
6255 | |
---|
6256 | cat >>confdefs.h <<_ACEOF |
---|
6257 | #define size_t unsigned int |
---|
6258 | _ACEOF |
---|
6259 | |
---|
6260 | fi |
---|
6261 | |
---|
6262 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
---|
6263 | case $ac_cv_c_uint16_t in #( |
---|
6264 | no|yes) ;; #( |
---|
6265 | *) |
---|
6266 | |
---|
6267 | |
---|
6268 | cat >>confdefs.h <<_ACEOF |
---|
6269 | #define uint16_t $ac_cv_c_uint16_t |
---|
6270 | _ACEOF |
---|
6271 | ;; |
---|
6272 | esac |
---|
6273 | |
---|
6274 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
---|
6275 | case $ac_cv_c_uint32_t in #( |
---|
6276 | no|yes) ;; #( |
---|
6277 | *) |
---|
6278 | |
---|
6279 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
---|
6280 | |
---|
6281 | |
---|
6282 | cat >>confdefs.h <<_ACEOF |
---|
6283 | #define uint32_t $ac_cv_c_uint32_t |
---|
6284 | _ACEOF |
---|
6285 | ;; |
---|
6286 | esac |
---|
6287 | |
---|
6288 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
---|
6289 | case $ac_cv_c_uint8_t in #( |
---|
6290 | no|yes) ;; #( |
---|
6291 | *) |
---|
6292 | |
---|
6293 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
---|
6294 | |
---|
6295 | |
---|
6296 | cat >>confdefs.h <<_ACEOF |
---|
6297 | #define uint8_t $ac_cv_c_uint8_t |
---|
6298 | _ACEOF |
---|
6299 | ;; |
---|
6300 | esac |
---|
6301 | |
---|
6302 | |
---|
6303 | # Checks for library functions. |
---|
6304 | for ac_func in memset putenv strchr strtol |
---|
6305 | do : |
---|
6306 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
6307 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
6308 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
6309 | cat >>confdefs.h <<_ACEOF |
---|
6310 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
6311 | _ACEOF |
---|
6312 | |
---|
6313 | fi |
---|
6314 | done |
---|
6315 | |
---|
6316 | |
---|
6317 | #============================================================================== |
---|
6318 | # backend compiler implementation |
---|
6319 | |
---|
6320 | cat >>confdefs.h <<_ACEOF |
---|
6321 | #define CFA_BACKEND_CC "${CC}" |
---|
6322 | _ACEOF |
---|
6323 | |
---|
6324 | |
---|
6325 | |
---|
6326 | #============================================================================== |
---|
6327 | ac_config_files="$ac_config_files Makefile driver/Makefile src/Makefile benchmark/Makefile tests/Makefile tests/preempt_longrun/Makefile tools/Makefile tools/prettyprinter/Makefile" |
---|
6328 | |
---|
6329 | |
---|
6330 | ac_config_links="$ac_config_links tests/test.py:tests/test.py" |
---|
6331 | |
---|
6332 | |
---|
6333 | ac_config_files="$ac_config_files tests/config.py" |
---|
6334 | |
---|
6335 | cat >confcache <<\_ACEOF |
---|
6336 | # This file is a shell script that caches the results of configure |
---|
6337 | # tests run on this system so they can be shared between configure |
---|
6338 | # scripts and configure runs, see configure's option --config-cache. |
---|
6339 | # It is not useful on other systems. If it contains results you don't |
---|
6340 | # want to keep, you may remove or edit it. |
---|
6341 | # |
---|
6342 | # config.status only pays attention to the cache file if you give it |
---|
6343 | # the --recheck option to rerun configure. |
---|
6344 | # |
---|
6345 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
6346 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
6347 | # following values. |
---|
6348 | |
---|
6349 | _ACEOF |
---|
6350 | |
---|
6351 | # The following way of writing the cache mishandles newlines in values, |
---|
6352 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6353 | # So, we kill variables containing newlines. |
---|
6354 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6355 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6356 | ( |
---|
6357 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
6358 | eval ac_val=\$$ac_var |
---|
6359 | case $ac_val in #( |
---|
6360 | *${as_nl}*) |
---|
6361 | case $ac_var in #( |
---|
6362 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
6363 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
6364 | esac |
---|
6365 | case $ac_var in #( |
---|
6366 | _ | IFS | as_nl) ;; #( |
---|
6367 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
6368 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
6369 | esac ;; |
---|
6370 | esac |
---|
6371 | done |
---|
6372 | |
---|
6373 | (set) 2>&1 | |
---|
6374 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
6375 | *${as_nl}ac_space=\ *) |
---|
6376 | # `set' does not quote correctly, so add quotes: double-quote |
---|
6377 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
6378 | sed -n \ |
---|
6379 | "s/'/'\\\\''/g; |
---|
6380 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
6381 | ;; #( |
---|
6382 | *) |
---|
6383 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6384 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
6385 | ;; |
---|
6386 | esac | |
---|
6387 | sort |
---|
6388 | ) | |
---|
6389 | sed ' |
---|
6390 | /^ac_cv_env_/b end |
---|
6391 | t clear |
---|
6392 | :clear |
---|
6393 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
6394 | t end |
---|
6395 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
6396 | :end' >>confcache |
---|
6397 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
6398 | if test -w "$cache_file"; then |
---|
6399 | if test "x$cache_file" != "x/dev/null"; then |
---|
6400 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
6401 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
6402 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
6403 | cat confcache >"$cache_file" |
---|
6404 | else |
---|
6405 | case $cache_file in #( |
---|
6406 | */* | ?:*) |
---|
6407 | mv -f confcache "$cache_file"$$ && |
---|
6408 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
6409 | *) |
---|
6410 | mv -f confcache "$cache_file" ;; |
---|
6411 | esac |
---|
6412 | fi |
---|
6413 | fi |
---|
6414 | else |
---|
6415 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
6416 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
6417 | fi |
---|
6418 | fi |
---|
6419 | rm -f confcache |
---|
6420 | |
---|
6421 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6422 | # Let make expand exec_prefix. |
---|
6423 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6424 | |
---|
6425 | DEFS=-DHAVE_CONFIG_H |
---|
6426 | |
---|
6427 | ac_libobjs= |
---|
6428 | ac_ltlibobjs= |
---|
6429 | U= |
---|
6430 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
6431 | # 1. Remove the extension, and $U if already installed. |
---|
6432 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
6433 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
6434 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
6435 | # will be set to the directory where LIBOBJS objects are built. |
---|
6436 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
6437 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
6438 | done |
---|
6439 | LIBOBJS=$ac_libobjs |
---|
6440 | |
---|
6441 | LTLIBOBJS=$ac_ltlibobjs |
---|
6442 | |
---|
6443 | |
---|
6444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
---|
6445 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
---|
6446 | if test -n "$am_sleep_pid"; then |
---|
6447 | # Hide warnings about reused PIDs. |
---|
6448 | wait $am_sleep_pid 2>/dev/null |
---|
6449 | fi |
---|
6450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
---|
6451 | $as_echo "done" >&6; } |
---|
6452 | if test -n "$EXEEXT"; then |
---|
6453 | am__EXEEXT_TRUE= |
---|
6454 | am__EXEEXT_FALSE='#' |
---|
6455 | else |
---|
6456 | am__EXEEXT_TRUE='#' |
---|
6457 | am__EXEEXT_FALSE= |
---|
6458 | fi |
---|
6459 | |
---|
6460 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
6461 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
---|
6462 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6463 | fi |
---|
6464 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
6465 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
---|
6466 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6467 | fi |
---|
6468 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
6469 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
---|
6470 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6471 | fi |
---|
6472 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then |
---|
6473 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. |
---|
6474 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6475 | fi |
---|
6476 | if test -z "${WITH_LIBFIBRE_TRUE}" && test -z "${WITH_LIBFIBRE_FALSE}"; then |
---|
6477 | as_fn_error $? "conditional \"WITH_LIBFIBRE\" was never defined. |
---|
6478 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6479 | fi |
---|
6480 | |
---|
6481 | : "${CONFIG_STATUS=./config.status}" |
---|
6482 | ac_write_fail=0 |
---|
6483 | ac_clean_files_save=$ac_clean_files |
---|
6484 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
6485 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
6486 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
6487 | as_write_fail=0 |
---|
6488 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
6489 | #! $SHELL |
---|
6490 | # Generated by $as_me. |
---|
6491 | # Run this file to recreate the current configuration. |
---|
6492 | # Compiler output produced by configure, useful for debugging |
---|
6493 | # configure, is in config.log if it exists. |
---|
6494 | |
---|
6495 | debug=false |
---|
6496 | ac_cs_recheck=false |
---|
6497 | ac_cs_silent=false |
---|
6498 | |
---|
6499 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6500 | export SHELL |
---|
6501 | _ASEOF |
---|
6502 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
6503 | ## -------------------- ## |
---|
6504 | ## M4sh Initialization. ## |
---|
6505 | ## -------------------- ## |
---|
6506 | |
---|
6507 | # Be more Bourne compatible |
---|
6508 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
6509 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
6510 | emulate sh |
---|
6511 | NULLCMD=: |
---|
6512 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
6513 | # is contrary to our usage. Disable this feature. |
---|
6514 | alias -g '${1+"$@"}'='"$@"' |
---|
6515 | setopt NO_GLOB_SUBST |
---|
6516 | else |
---|
6517 | case `(set -o) 2>/dev/null` in #( |
---|
6518 | *posix*) : |
---|
6519 | set -o posix ;; #( |
---|
6520 | *) : |
---|
6521 | ;; |
---|
6522 | esac |
---|
6523 | fi |
---|
6524 | |
---|
6525 | |
---|
6526 | as_nl=' |
---|
6527 | ' |
---|
6528 | export as_nl |
---|
6529 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
6530 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
6531 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6532 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6533 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
6534 | # but without wasting forks for bash or zsh. |
---|
6535 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
6536 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
6537 | as_echo='print -r --' |
---|
6538 | as_echo_n='print -rn --' |
---|
6539 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
6540 | as_echo='printf %s\n' |
---|
6541 | as_echo_n='printf %s' |
---|
6542 | else |
---|
6543 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
6544 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
6545 | as_echo_n='/usr/ucb/echo -n' |
---|
6546 | else |
---|
6547 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
6548 | as_echo_n_body='eval |
---|
6549 | arg=$1; |
---|
6550 | case $arg in #( |
---|
6551 | *"$as_nl"*) |
---|
6552 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
6553 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
6554 | esac; |
---|
6555 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
6556 | ' |
---|
6557 | export as_echo_n_body |
---|
6558 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
6559 | fi |
---|
6560 | export as_echo_body |
---|
6561 | as_echo='sh -c $as_echo_body as_echo' |
---|
6562 | fi |
---|
6563 | |
---|
6564 | # The user is always right. |
---|
6565 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6566 | PATH_SEPARATOR=: |
---|
6567 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
6568 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
6569 | PATH_SEPARATOR=';' |
---|
6570 | } |
---|
6571 | fi |
---|
6572 | |
---|
6573 | |
---|
6574 | # IFS |
---|
6575 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
6576 | # there to prevent editors from complaining about space-tab. |
---|
6577 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
6578 | # splitting by setting IFS to empty value.) |
---|
6579 | IFS=" "" $as_nl" |
---|
6580 | |
---|
6581 | # Find who we are. Look in the path if we contain no directory separator. |
---|
6582 | as_myself= |
---|
6583 | case $0 in #(( |
---|
6584 | *[\\/]* ) as_myself=$0 ;; |
---|
6585 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6586 | for as_dir in $PATH |
---|
6587 | do |
---|
6588 | IFS=$as_save_IFS |
---|
6589 | test -z "$as_dir" && as_dir=. |
---|
6590 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6591 | done |
---|
6592 | IFS=$as_save_IFS |
---|
6593 | |
---|
6594 | ;; |
---|
6595 | esac |
---|
6596 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6597 | # in which case we are not to be found in the path. |
---|
6598 | if test "x$as_myself" = x; then |
---|
6599 | as_myself=$0 |
---|
6600 | fi |
---|
6601 | if test ! -f "$as_myself"; then |
---|
6602 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
6603 | exit 1 |
---|
6604 | fi |
---|
6605 | |
---|
6606 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
6607 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
6608 | # suppresses any "Segmentation fault" message there. '((' could |
---|
6609 | # trigger a bug in pdksh 5.2.14. |
---|
6610 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
6611 | do eval test x\${$as_var+set} = xset \ |
---|
6612 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
6613 | done |
---|
6614 | PS1='$ ' |
---|
6615 | PS2='> ' |
---|
6616 | PS4='+ ' |
---|
6617 | |
---|
6618 | # NLS nuisances. |
---|
6619 | LC_ALL=C |
---|
6620 | export LC_ALL |
---|
6621 | LANGUAGE=C |
---|
6622 | export LANGUAGE |
---|
6623 | |
---|
6624 | # CDPATH. |
---|
6625 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
6626 | |
---|
6627 | |
---|
6628 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
6629 | # ---------------------------------------- |
---|
6630 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
6631 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
6632 | # script with STATUS, using 1 if that was 0. |
---|
6633 | as_fn_error () |
---|
6634 | { |
---|
6635 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
6636 | if test "$4"; then |
---|
6637 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
6638 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
6639 | fi |
---|
6640 | $as_echo "$as_me: error: $2" >&2 |
---|
6641 | as_fn_exit $as_status |
---|
6642 | } # as_fn_error |
---|
6643 | |
---|
6644 | |
---|
6645 | # as_fn_set_status STATUS |
---|
6646 | # ----------------------- |
---|
6647 | # Set $? to STATUS, without forking. |
---|
6648 | as_fn_set_status () |
---|
6649 | { |
---|
6650 | return $1 |
---|
6651 | } # as_fn_set_status |
---|
6652 | |
---|
6653 | # as_fn_exit STATUS |
---|
6654 | # ----------------- |
---|
6655 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
6656 | as_fn_exit () |
---|
6657 | { |
---|
6658 | set +e |
---|
6659 | as_fn_set_status $1 |
---|
6660 | exit $1 |
---|
6661 | } # as_fn_exit |
---|
6662 | |
---|
6663 | # as_fn_unset VAR |
---|
6664 | # --------------- |
---|
6665 | # Portably unset VAR. |
---|
6666 | as_fn_unset () |
---|
6667 | { |
---|
6668 | { eval $1=; unset $1;} |
---|
6669 | } |
---|
6670 | as_unset=as_fn_unset |
---|
6671 | # as_fn_append VAR VALUE |
---|
6672 | # ---------------------- |
---|
6673 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
6674 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
6675 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
6676 | # implementations. |
---|
6677 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
6678 | eval 'as_fn_append () |
---|
6679 | { |
---|
6680 | eval $1+=\$2 |
---|
6681 | }' |
---|
6682 | else |
---|
6683 | as_fn_append () |
---|
6684 | { |
---|
6685 | eval $1=\$$1\$2 |
---|
6686 | } |
---|
6687 | fi # as_fn_append |
---|
6688 | |
---|
6689 | # as_fn_arith ARG... |
---|
6690 | # ------------------ |
---|
6691 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
6692 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
6693 | # must be portable across $(()) and expr. |
---|
6694 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
6695 | eval 'as_fn_arith () |
---|
6696 | { |
---|
6697 | as_val=$(( $* )) |
---|
6698 | }' |
---|
6699 | else |
---|
6700 | as_fn_arith () |
---|
6701 | { |
---|
6702 | as_val=`expr "$@" || test $? -eq 1` |
---|
6703 | } |
---|
6704 | fi # as_fn_arith |
---|
6705 | |
---|
6706 | |
---|
6707 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
6708 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
6709 | as_expr=expr |
---|
6710 | else |
---|
6711 | as_expr=false |
---|
6712 | fi |
---|
6713 | |
---|
6714 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
6715 | as_basename=basename |
---|
6716 | else |
---|
6717 | as_basename=false |
---|
6718 | fi |
---|
6719 | |
---|
6720 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
6721 | as_dirname=dirname |
---|
6722 | else |
---|
6723 | as_dirname=false |
---|
6724 | fi |
---|
6725 | |
---|
6726 | as_me=`$as_basename -- "$0" || |
---|
6727 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6728 | X"$0" : 'X\(//\)$' \| \ |
---|
6729 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
6730 | $as_echo X/"$0" | |
---|
6731 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
6732 | s//\1/ |
---|
6733 | q |
---|
6734 | } |
---|
6735 | /^X\/\(\/\/\)$/{ |
---|
6736 | s//\1/ |
---|
6737 | q |
---|
6738 | } |
---|
6739 | /^X\/\(\/\).*/{ |
---|
6740 | s//\1/ |
---|
6741 | q |
---|
6742 | } |
---|
6743 | s/.*/./; q'` |
---|
6744 | |
---|
6745 | # Avoid depending upon Character Ranges. |
---|
6746 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6747 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6748 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6749 | as_cr_digits='0123456789' |
---|
6750 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6751 | |
---|
6752 | ECHO_C= ECHO_N= ECHO_T= |
---|
6753 | case `echo -n x` in #((((( |
---|
6754 | -n*) |
---|
6755 | case `echo 'xy\c'` in |
---|
6756 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
6757 | xy) ECHO_C='\c';; |
---|
6758 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
6759 | ECHO_T=' ';; |
---|
6760 | esac;; |
---|
6761 | *) |
---|
6762 | ECHO_N='-n';; |
---|
6763 | esac |
---|
6764 | |
---|
6765 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6766 | if test -d conf$$.dir; then |
---|
6767 | rm -f conf$$.dir/conf$$.file |
---|
6768 | else |
---|
6769 | rm -f conf$$.dir |
---|
6770 | mkdir conf$$.dir 2>/dev/null |
---|
6771 | fi |
---|
6772 | if (echo >conf$$.file) 2>/dev/null; then |
---|
6773 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6774 | as_ln_s='ln -s' |
---|
6775 | # ... but there are two gotchas: |
---|
6776 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
6777 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
6778 | # In both cases, we have to default to `cp -pR'. |
---|
6779 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
6780 | as_ln_s='cp -pR' |
---|
6781 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6782 | as_ln_s=ln |
---|
6783 | else |
---|
6784 | as_ln_s='cp -pR' |
---|
6785 | fi |
---|
6786 | else |
---|
6787 | as_ln_s='cp -pR' |
---|
6788 | fi |
---|
6789 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
6790 | rmdir conf$$.dir 2>/dev/null |
---|
6791 | |
---|
6792 | |
---|
6793 | # as_fn_mkdir_p |
---|
6794 | # ------------- |
---|
6795 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
6796 | as_fn_mkdir_p () |
---|
6797 | { |
---|
6798 | |
---|
6799 | case $as_dir in #( |
---|
6800 | -*) as_dir=./$as_dir;; |
---|
6801 | esac |
---|
6802 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
6803 | as_dirs= |
---|
6804 | while :; do |
---|
6805 | case $as_dir in #( |
---|
6806 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
6807 | *) as_qdir=$as_dir;; |
---|
6808 | esac |
---|
6809 | as_dirs="'$as_qdir' $as_dirs" |
---|
6810 | as_dir=`$as_dirname -- "$as_dir" || |
---|
6811 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6812 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6813 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6814 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
6815 | $as_echo X"$as_dir" | |
---|
6816 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6817 | s//\1/ |
---|
6818 | q |
---|
6819 | } |
---|
6820 | /^X\(\/\/\)[^/].*/{ |
---|
6821 | s//\1/ |
---|
6822 | q |
---|
6823 | } |
---|
6824 | /^X\(\/\/\)$/{ |
---|
6825 | s//\1/ |
---|
6826 | q |
---|
6827 | } |
---|
6828 | /^X\(\/\).*/{ |
---|
6829 | s//\1/ |
---|
6830 | q |
---|
6831 | } |
---|
6832 | s/.*/./; q'` |
---|
6833 | test -d "$as_dir" && break |
---|
6834 | done |
---|
6835 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
6836 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
6837 | |
---|
6838 | |
---|
6839 | } # as_fn_mkdir_p |
---|
6840 | if mkdir -p . 2>/dev/null; then |
---|
6841 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
6842 | else |
---|
6843 | test -d ./-p && rmdir ./-p |
---|
6844 | as_mkdir_p=false |
---|
6845 | fi |
---|
6846 | |
---|
6847 | |
---|
6848 | # as_fn_executable_p FILE |
---|
6849 | # ----------------------- |
---|
6850 | # Test if FILE is an executable regular file. |
---|
6851 | as_fn_executable_p () |
---|
6852 | { |
---|
6853 | test -f "$1" && test -x "$1" |
---|
6854 | } # as_fn_executable_p |
---|
6855 | as_test_x='test -x' |
---|
6856 | as_executable_p=as_fn_executable_p |
---|
6857 | |
---|
6858 | # Sed expression to map a string onto a valid CPP name. |
---|
6859 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6860 | |
---|
6861 | # Sed expression to map a string onto a valid variable name. |
---|
6862 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6863 | |
---|
6864 | |
---|
6865 | exec 6>&1 |
---|
6866 | ## ----------------------------------- ## |
---|
6867 | ## Main body of $CONFIG_STATUS script. ## |
---|
6868 | ## ----------------------------------- ## |
---|
6869 | _ASEOF |
---|
6870 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
6871 | |
---|
6872 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6873 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
6874 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6875 | # values after options handling. |
---|
6876 | ac_log=" |
---|
6877 | This file was extended by cfa-cc $as_me 1.0.0.0, which was |
---|
6878 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
6879 | |
---|
6880 | CONFIG_FILES = $CONFIG_FILES |
---|
6881 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6882 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6883 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6884 | $ $0 $@ |
---|
6885 | |
---|
6886 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
6887 | " |
---|
6888 | |
---|
6889 | _ACEOF |
---|
6890 | |
---|
6891 | case $ac_config_files in *" |
---|
6892 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
6893 | esac |
---|
6894 | |
---|
6895 | case $ac_config_headers in *" |
---|
6896 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
6897 | esac |
---|
6898 | |
---|
6899 | |
---|
6900 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6901 | # Files that config.status was made for. |
---|
6902 | config_files="$ac_config_files" |
---|
6903 | config_headers="$ac_config_headers" |
---|
6904 | config_links="$ac_config_links" |
---|
6905 | config_commands="$ac_config_commands" |
---|
6906 | |
---|
6907 | _ACEOF |
---|
6908 | |
---|
6909 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6910 | ac_cs_usage="\ |
---|
6911 | \`$as_me' instantiates files and other configuration actions |
---|
6912 | from templates according to the current configuration. Unless the files |
---|
6913 | and actions are specified as TAGs, all are instantiated by default. |
---|
6914 | |
---|
6915 | Usage: $0 [OPTION]... [TAG]... |
---|
6916 | |
---|
6917 | -h, --help print this help, then exit |
---|
6918 | -V, --version print version number and configuration settings, then exit |
---|
6919 | --config print configuration, then exit |
---|
6920 | -q, --quiet, --silent |
---|
6921 | do not print progress messages |
---|
6922 | -d, --debug don't remove temporary files |
---|
6923 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6924 | --file=FILE[:TEMPLATE] |
---|
6925 | instantiate the configuration file FILE |
---|
6926 | --header=FILE[:TEMPLATE] |
---|
6927 | instantiate the configuration header FILE |
---|
6928 | |
---|
6929 | Configuration files: |
---|
6930 | $config_files |
---|
6931 | |
---|
6932 | Configuration headers: |
---|
6933 | $config_headers |
---|
6934 | |
---|
6935 | Configuration links: |
---|
6936 | $config_links |
---|
6937 | |
---|
6938 | Configuration commands: |
---|
6939 | $config_commands |
---|
6940 | |
---|
6941 | Report bugs to <cforall@plg.uwaterloo.ca>." |
---|
6942 | |
---|
6943 | _ACEOF |
---|
6944 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6945 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
6946 | ac_cs_version="\\ |
---|
6947 | cfa-cc config.status 1.0.0.0 |
---|
6948 | configured by $0, generated by GNU Autoconf 2.69, |
---|
6949 | with options \\"\$ac_cs_config\\" |
---|
6950 | |
---|
6951 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
6952 | This config.status script is free software; the Free Software Foundation |
---|
6953 | gives unlimited permission to copy, distribute and modify it." |
---|
6954 | |
---|
6955 | ac_pwd='$ac_pwd' |
---|
6956 | srcdir='$srcdir' |
---|
6957 | INSTALL='$INSTALL' |
---|
6958 | MKDIR_P='$MKDIR_P' |
---|
6959 | AWK='$AWK' |
---|
6960 | test -n "\$AWK" || AWK=awk |
---|
6961 | _ACEOF |
---|
6962 | |
---|
6963 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6964 | # The default lists apply if the user does not specify any file. |
---|
6965 | ac_need_defaults=: |
---|
6966 | while test $# != 0 |
---|
6967 | do |
---|
6968 | case $1 in |
---|
6969 | --*=?*) |
---|
6970 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6971 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
6972 | ac_shift=: |
---|
6973 | ;; |
---|
6974 | --*=) |
---|
6975 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6976 | ac_optarg= |
---|
6977 | ac_shift=: |
---|
6978 | ;; |
---|
6979 | *) |
---|
6980 | ac_option=$1 |
---|
6981 | ac_optarg=$2 |
---|
6982 | ac_shift=shift |
---|
6983 | ;; |
---|
6984 | esac |
---|
6985 | |
---|
6986 | case $ac_option in |
---|
6987 | # Handling of the options. |
---|
6988 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6989 | ac_cs_recheck=: ;; |
---|
6990 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
6991 | $as_echo "$ac_cs_version"; exit ;; |
---|
6992 | --config | --confi | --conf | --con | --co | --c ) |
---|
6993 | $as_echo "$ac_cs_config"; exit ;; |
---|
6994 | --debug | --debu | --deb | --de | --d | -d ) |
---|
6995 | debug=: ;; |
---|
6996 | --file | --fil | --fi | --f ) |
---|
6997 | $ac_shift |
---|
6998 | case $ac_optarg in |
---|
6999 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
7000 | '') as_fn_error $? "missing file argument" ;; |
---|
7001 | esac |
---|
7002 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
7003 | ac_need_defaults=false;; |
---|
7004 | --header | --heade | --head | --hea ) |
---|
7005 | $ac_shift |
---|
7006 | case $ac_optarg in |
---|
7007 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
7008 | esac |
---|
7009 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
7010 | ac_need_defaults=false;; |
---|
7011 | --he | --h) |
---|
7012 | # Conflict between --help and --header |
---|
7013 | as_fn_error $? "ambiguous option: \`$1' |
---|
7014 | Try \`$0 --help' for more information.";; |
---|
7015 | --help | --hel | -h ) |
---|
7016 | $as_echo "$ac_cs_usage"; exit ;; |
---|
7017 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
7018 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
7019 | ac_cs_silent=: ;; |
---|
7020 | |
---|
7021 | # This is an error. |
---|
7022 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
7023 | Try \`$0 --help' for more information." ;; |
---|
7024 | |
---|
7025 | *) as_fn_append ac_config_targets " $1" |
---|
7026 | ac_need_defaults=false ;; |
---|
7027 | |
---|
7028 | esac |
---|
7029 | shift |
---|
7030 | done |
---|
7031 | |
---|
7032 | ac_configure_extra_args= |
---|
7033 | |
---|
7034 | if $ac_cs_silent; then |
---|
7035 | exec 6>/dev/null |
---|
7036 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
7037 | fi |
---|
7038 | |
---|
7039 | _ACEOF |
---|
7040 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7041 | if \$ac_cs_recheck; then |
---|
7042 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
7043 | shift |
---|
7044 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
7045 | CONFIG_SHELL='$SHELL' |
---|
7046 | export CONFIG_SHELL |
---|
7047 | exec "\$@" |
---|
7048 | fi |
---|
7049 | |
---|
7050 | _ACEOF |
---|
7051 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7052 | exec 5>>config.log |
---|
7053 | { |
---|
7054 | echo |
---|
7055 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
7056 | ## Running $as_me. ## |
---|
7057 | _ASBOX |
---|
7058 | $as_echo "$ac_log" |
---|
7059 | } >&5 |
---|
7060 | |
---|
7061 | _ACEOF |
---|
7062 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7063 | # |
---|
7064 | # INIT-COMMANDS |
---|
7065 | # |
---|
7066 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
7067 | |
---|
7068 | _ACEOF |
---|
7069 | |
---|
7070 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7071 | |
---|
7072 | # Handling of arguments. |
---|
7073 | for ac_config_target in $ac_config_targets |
---|
7074 | do |
---|
7075 | case $ac_config_target in |
---|
7076 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:src/config.h.in" ;; |
---|
7077 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
7078 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
7079 | "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;; |
---|
7080 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
7081 | "benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES benchmark/Makefile" ;; |
---|
7082 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
---|
7083 | "tests/preempt_longrun/Makefile") CONFIG_FILES="$CONFIG_FILES tests/preempt_longrun/Makefile" ;; |
---|
7084 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
---|
7085 | "tools/prettyprinter/Makefile") CONFIG_FILES="$CONFIG_FILES tools/prettyprinter/Makefile" ;; |
---|
7086 | "tests/test.py") CONFIG_LINKS="$CONFIG_LINKS tests/test.py:tests/test.py" ;; |
---|
7087 | "tests/config.py") CONFIG_FILES="$CONFIG_FILES tests/config.py" ;; |
---|
7088 | |
---|
7089 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
7090 | esac |
---|
7091 | done |
---|
7092 | |
---|
7093 | |
---|
7094 | # If the user did not use the arguments to specify the items to instantiate, |
---|
7095 | # then the envvar interface is used. Set only those that are not. |
---|
7096 | # We use the long form for the default assignment because of an extremely |
---|
7097 | # bizarre bug on SunOS 4.1.3. |
---|
7098 | if $ac_need_defaults; then |
---|
7099 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
7100 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
7101 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
---|
7102 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
7103 | fi |
---|
7104 | |
---|
7105 | # Have a temporary directory for convenience. Make it in the build tree |
---|
7106 | # simply because there is no reason against having it here, and in addition, |
---|
7107 | # creating and moving files from /tmp can sometimes cause problems. |
---|
7108 | # Hook for its removal unless debugging. |
---|
7109 | # Note that there is a small window in which the directory will not be cleaned: |
---|
7110 | # after its creation but before its name has been assigned to `$tmp'. |
---|
7111 | $debug || |
---|
7112 | { |
---|
7113 | tmp= ac_tmp= |
---|
7114 | trap 'exit_status=$? |
---|
7115 | : "${ac_tmp:=$tmp}" |
---|
7116 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
7117 | ' 0 |
---|
7118 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
7119 | } |
---|
7120 | # Create a (secure) tmp directory for tmp files. |
---|
7121 | |
---|
7122 | { |
---|
7123 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
7124 | test -d "$tmp" |
---|
7125 | } || |
---|
7126 | { |
---|
7127 | tmp=./conf$$-$RANDOM |
---|
7128 | (umask 077 && mkdir "$tmp") |
---|
7129 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
7130 | ac_tmp=$tmp |
---|
7131 | |
---|
7132 | # Set up the scripts for CONFIG_FILES section. |
---|
7133 | # No need to generate them if there are no CONFIG_FILES. |
---|
7134 | # This happens for instance with `./config.status config.h'. |
---|
7135 | if test -n "$CONFIG_FILES"; then |
---|
7136 | |
---|
7137 | |
---|
7138 | ac_cr=`echo X | tr X '\015'` |
---|
7139 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
7140 | # But we know of no other shell where ac_cr would be empty at this |
---|
7141 | # point, so we can use a bashism as a fallback. |
---|
7142 | if test "x$ac_cr" = x; then |
---|
7143 | eval ac_cr=\$\'\\r\' |
---|
7144 | fi |
---|
7145 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
7146 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
7147 | ac_cs_awk_cr='\\r' |
---|
7148 | else |
---|
7149 | ac_cs_awk_cr=$ac_cr |
---|
7150 | fi |
---|
7151 | |
---|
7152 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
7153 | _ACEOF |
---|
7154 | |
---|
7155 | |
---|
7156 | { |
---|
7157 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
7158 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
7159 | echo "_ACEOF" |
---|
7160 | } >conf$$subs.sh || |
---|
7161 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7162 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
7163 | ac_delim='%!_!# ' |
---|
7164 | for ac_last_try in false false false false false :; do |
---|
7165 | . ./conf$$subs.sh || |
---|
7166 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7167 | |
---|
7168 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
7169 | if test $ac_delim_n = $ac_delim_num; then |
---|
7170 | break |
---|
7171 | elif $ac_last_try; then |
---|
7172 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7173 | else |
---|
7174 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
7175 | fi |
---|
7176 | done |
---|
7177 | rm -f conf$$subs.sh |
---|
7178 | |
---|
7179 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7180 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
7181 | _ACEOF |
---|
7182 | sed -n ' |
---|
7183 | h |
---|
7184 | s/^/S["/; s/!.*/"]=/ |
---|
7185 | p |
---|
7186 | g |
---|
7187 | s/^[^!]*!// |
---|
7188 | :repl |
---|
7189 | t repl |
---|
7190 | s/'"$ac_delim"'$// |
---|
7191 | t delim |
---|
7192 | :nl |
---|
7193 | h |
---|
7194 | s/\(.\{148\}\)..*/\1/ |
---|
7195 | t more1 |
---|
7196 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
7197 | p |
---|
7198 | n |
---|
7199 | b repl |
---|
7200 | :more1 |
---|
7201 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7202 | p |
---|
7203 | g |
---|
7204 | s/.\{148\}// |
---|
7205 | t nl |
---|
7206 | :delim |
---|
7207 | h |
---|
7208 | s/\(.\{148\}\)..*/\1/ |
---|
7209 | t more2 |
---|
7210 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
7211 | p |
---|
7212 | b |
---|
7213 | :more2 |
---|
7214 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7215 | p |
---|
7216 | g |
---|
7217 | s/.\{148\}// |
---|
7218 | t delim |
---|
7219 | ' <conf$$subs.awk | sed ' |
---|
7220 | /^[^""]/{ |
---|
7221 | N |
---|
7222 | s/\n// |
---|
7223 | } |
---|
7224 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
7225 | rm -f conf$$subs.awk |
---|
7226 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7227 | _ACAWK |
---|
7228 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
7229 | for (key in S) S_is_set[key] = 1 |
---|
7230 | FS = "" |
---|
7231 | |
---|
7232 | } |
---|
7233 | { |
---|
7234 | line = $ 0 |
---|
7235 | nfields = split(line, field, "@") |
---|
7236 | substed = 0 |
---|
7237 | len = length(field[1]) |
---|
7238 | for (i = 2; i < nfields; i++) { |
---|
7239 | key = field[i] |
---|
7240 | keylen = length(key) |
---|
7241 | if (S_is_set[key]) { |
---|
7242 | value = S[key] |
---|
7243 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
7244 | len += length(value) + length(field[++i]) |
---|
7245 | substed = 1 |
---|
7246 | } else |
---|
7247 | len += 1 + keylen |
---|
7248 | } |
---|
7249 | |
---|
7250 | print line |
---|
7251 | } |
---|
7252 | |
---|
7253 | _ACAWK |
---|
7254 | _ACEOF |
---|
7255 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7256 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
7257 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
7258 | else |
---|
7259 | cat |
---|
7260 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
7261 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
7262 | _ACEOF |
---|
7263 | |
---|
7264 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
7265 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
7266 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
7267 | # (actually we leave an empty line to preserve line numbers). |
---|
7268 | if test "x$srcdir" = x.; then |
---|
7269 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
7270 | h |
---|
7271 | s/// |
---|
7272 | s/^/:/ |
---|
7273 | s/[ ]*$/:/ |
---|
7274 | s/:\$(srcdir):/:/g |
---|
7275 | s/:\${srcdir}:/:/g |
---|
7276 | s/:@srcdir@:/:/g |
---|
7277 | s/^:*// |
---|
7278 | s/:*$// |
---|
7279 | x |
---|
7280 | s/\(=[ ]*\).*/\1/ |
---|
7281 | G |
---|
7282 | s/\n// |
---|
7283 | s/^[^=]*=[ ]*$// |
---|
7284 | }' |
---|
7285 | fi |
---|
7286 | |
---|
7287 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7288 | fi # test -n "$CONFIG_FILES" |
---|
7289 | |
---|
7290 | # Set up the scripts for CONFIG_HEADERS section. |
---|
7291 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
7292 | # This happens for instance with `./config.status Makefile'. |
---|
7293 | if test -n "$CONFIG_HEADERS"; then |
---|
7294 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
7295 | BEGIN { |
---|
7296 | _ACEOF |
---|
7297 | |
---|
7298 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
7299 | # here-document in config.status, that substitutes the proper values into |
---|
7300 | # config.h.in to produce config.h. |
---|
7301 | |
---|
7302 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
7303 | # handling of long lines. |
---|
7304 | ac_delim='%!_!# ' |
---|
7305 | for ac_last_try in false false :; do |
---|
7306 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
7307 | if test -z "$ac_tt"; then |
---|
7308 | break |
---|
7309 | elif $ac_last_try; then |
---|
7310 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
7311 | else |
---|
7312 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
7313 | fi |
---|
7314 | done |
---|
7315 | |
---|
7316 | # For the awk script, D is an array of macro values keyed by name, |
---|
7317 | # likewise P contains macro parameters if any. Preserve backslash |
---|
7318 | # newline sequences. |
---|
7319 | |
---|
7320 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
7321 | sed -n ' |
---|
7322 | s/.\{148\}/&'"$ac_delim"'/g |
---|
7323 | t rset |
---|
7324 | :rset |
---|
7325 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
7326 | t def |
---|
7327 | d |
---|
7328 | :def |
---|
7329 | s/\\$// |
---|
7330 | t bsnl |
---|
7331 | s/["\\]/\\&/g |
---|
7332 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
7333 | D["\1"]=" \3"/p |
---|
7334 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
7335 | d |
---|
7336 | :bsnl |
---|
7337 | s/["\\]/\\&/g |
---|
7338 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
7339 | D["\1"]=" \3\\\\\\n"\\/p |
---|
7340 | t cont |
---|
7341 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
7342 | t cont |
---|
7343 | d |
---|
7344 | :cont |
---|
7345 | n |
---|
7346 | s/.\{148\}/&'"$ac_delim"'/g |
---|
7347 | t clear |
---|
7348 | :clear |
---|
7349 | s/\\$// |
---|
7350 | t bsnlc |
---|
7351 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
7352 | d |
---|
7353 | :bsnlc |
---|
7354 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
7355 | b cont |
---|
7356 | ' <confdefs.h | sed ' |
---|
7357 | s/'"$ac_delim"'/"\\\ |
---|
7358 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
7359 | |
---|
7360 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7361 | for (key in D) D_is_set[key] = 1 |
---|
7362 | FS = "" |
---|
7363 | } |
---|
7364 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
7365 | line = \$ 0 |
---|
7366 | split(line, arg, " ") |
---|
7367 | if (arg[1] == "#") { |
---|
7368 | defundef = arg[2] |
---|
7369 | mac1 = arg[3] |
---|
7370 | } else { |
---|
7371 | defundef = substr(arg[1], 2) |
---|
7372 | mac1 = arg[2] |
---|
7373 | } |
---|
7374 | split(mac1, mac2, "(") #) |
---|
7375 | macro = mac2[1] |
---|
7376 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
7377 | if (D_is_set[macro]) { |
---|
7378 | # Preserve the white space surrounding the "#". |
---|
7379 | print prefix "define", macro P[macro] D[macro] |
---|
7380 | next |
---|
7381 | } else { |
---|
7382 | # Replace #undef with comments. This is necessary, for example, |
---|
7383 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
7384 | # on some systems where configure will not decide to define it. |
---|
7385 | if (defundef == "undef") { |
---|
7386 | print "/*", prefix defundef, macro, "*/" |
---|
7387 | next |
---|
7388 | } |
---|
7389 | } |
---|
7390 | } |
---|
7391 | { print } |
---|
7392 | _ACAWK |
---|
7393 | _ACEOF |
---|
7394 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7395 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
7396 | fi # test -n "$CONFIG_HEADERS" |
---|
7397 | |
---|
7398 | |
---|
7399 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" |
---|
7400 | shift |
---|
7401 | for ac_tag |
---|
7402 | do |
---|
7403 | case $ac_tag in |
---|
7404 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
7405 | esac |
---|
7406 | case $ac_mode$ac_tag in |
---|
7407 | :[FHL]*:*);; |
---|
7408 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
7409 | :[FH]-) ac_tag=-:-;; |
---|
7410 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
7411 | esac |
---|
7412 | ac_save_IFS=$IFS |
---|
7413 | IFS=: |
---|
7414 | set x $ac_tag |
---|
7415 | IFS=$ac_save_IFS |
---|
7416 | shift |
---|
7417 | ac_file=$1 |
---|
7418 | shift |
---|
7419 | |
---|
7420 | case $ac_mode in |
---|
7421 | :L) ac_source=$1;; |
---|
7422 | :[FH]) |
---|
7423 | ac_file_inputs= |
---|
7424 | for ac_f |
---|
7425 | do |
---|
7426 | case $ac_f in |
---|
7427 | -) ac_f="$ac_tmp/stdin";; |
---|
7428 | *) # Look for the file first in the build tree, then in the source tree |
---|
7429 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
7430 | # because $ac_f cannot contain `:'. |
---|
7431 | test -f "$ac_f" || |
---|
7432 | case $ac_f in |
---|
7433 | [\\/$]*) false;; |
---|
7434 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
7435 | esac || |
---|
7436 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
7437 | esac |
---|
7438 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
7439 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
7440 | done |
---|
7441 | |
---|
7442 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7443 | # use $as_me), people would be surprised to read: |
---|
7444 | # /* config.h. Generated by config.status. */ |
---|
7445 | configure_input='Generated from '` |
---|
7446 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
7447 | `' by configure.' |
---|
7448 | if test x"$ac_file" != x-; then |
---|
7449 | configure_input="$ac_file. $configure_input" |
---|
7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
7451 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
7452 | fi |
---|
7453 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
7454 | case $configure_input in #( |
---|
7455 | *\&* | *\|* | *\\* ) |
---|
7456 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
7457 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
7458 | *) ac_sed_conf_input=$configure_input;; |
---|
7459 | esac |
---|
7460 | |
---|
7461 | case $ac_tag in |
---|
7462 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
7463 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
7464 | esac |
---|
7465 | ;; |
---|
7466 | esac |
---|
7467 | |
---|
7468 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
7469 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7470 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7471 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7472 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
7473 | $as_echo X"$ac_file" | |
---|
7474 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7475 | s//\1/ |
---|
7476 | q |
---|
7477 | } |
---|
7478 | /^X\(\/\/\)[^/].*/{ |
---|
7479 | s//\1/ |
---|
7480 | q |
---|
7481 | } |
---|
7482 | /^X\(\/\/\)$/{ |
---|
7483 | s//\1/ |
---|
7484 | q |
---|
7485 | } |
---|
7486 | /^X\(\/\).*/{ |
---|
7487 | s//\1/ |
---|
7488 | q |
---|
7489 | } |
---|
7490 | s/.*/./; q'` |
---|
7491 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
7492 | ac_builddir=. |
---|
7493 | |
---|
7494 | case "$ac_dir" in |
---|
7495 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7496 | *) |
---|
7497 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
7498 | # A ".." for each directory in $ac_dir_suffix. |
---|
7499 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
7500 | case $ac_top_builddir_sub in |
---|
7501 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7502 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
7503 | esac ;; |
---|
7504 | esac |
---|
7505 | ac_abs_top_builddir=$ac_pwd |
---|
7506 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
7507 | # for backward compatibility: |
---|
7508 | ac_top_builddir=$ac_top_build_prefix |
---|
7509 | |
---|
7510 | case $srcdir in |
---|
7511 | .) # We are building in place. |
---|
7512 | ac_srcdir=. |
---|
7513 | ac_top_srcdir=$ac_top_builddir_sub |
---|
7514 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
7515 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
7516 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7517 | ac_top_srcdir=$srcdir |
---|
7518 | ac_abs_top_srcdir=$srcdir ;; |
---|
7519 | *) # Relative name. |
---|
7520 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
7521 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
7522 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
7523 | esac |
---|
7524 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
7525 | |
---|
7526 | |
---|
7527 | case $ac_mode in |
---|
7528 | :F) |
---|
7529 | # |
---|
7530 | # CONFIG_FILE |
---|
7531 | # |
---|
7532 | |
---|
7533 | case $INSTALL in |
---|
7534 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
7535 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
7536 | esac |
---|
7537 | ac_MKDIR_P=$MKDIR_P |
---|
7538 | case $MKDIR_P in |
---|
7539 | [\\/$]* | ?:[\\/]* ) ;; |
---|
7540 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
7541 | esac |
---|
7542 | _ACEOF |
---|
7543 | |
---|
7544 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7545 | # If the template does not know about datarootdir, expand it. |
---|
7546 | # FIXME: This hack should be removed a few years after 2.60. |
---|
7547 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
7548 | ac_sed_dataroot=' |
---|
7549 | /datarootdir/ { |
---|
7550 | p |
---|
7551 | q |
---|
7552 | } |
---|
7553 | /@datadir@/p |
---|
7554 | /@docdir@/p |
---|
7555 | /@infodir@/p |
---|
7556 | /@localedir@/p |
---|
7557 | /@mandir@/p' |
---|
7558 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
7559 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
7560 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
7562 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
7563 | _ACEOF |
---|
7564 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7565 | ac_datarootdir_hack=' |
---|
7566 | s&@datadir@&$datadir&g |
---|
7567 | s&@docdir@&$docdir&g |
---|
7568 | s&@infodir@&$infodir&g |
---|
7569 | s&@localedir@&$localedir&g |
---|
7570 | s&@mandir@&$mandir&g |
---|
7571 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
7572 | esac |
---|
7573 | _ACEOF |
---|
7574 | |
---|
7575 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
7576 | # Shell code in configure.ac might set extrasub. |
---|
7577 | # FIXME: do we really want to maintain this feature? |
---|
7578 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7579 | ac_sed_extra="$ac_vpsub |
---|
7580 | $extrasub |
---|
7581 | _ACEOF |
---|
7582 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7583 | :t |
---|
7584 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
7585 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
7586 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
7587 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
7588 | s&@srcdir@&$ac_srcdir&;t t |
---|
7589 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
7590 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
7591 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
7592 | s&@builddir@&$ac_builddir&;t t |
---|
7593 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
7594 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
7595 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
7596 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
7597 | $ac_datarootdir_hack |
---|
7598 | " |
---|
7599 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
7600 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7601 | |
---|
7602 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
7603 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
7604 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
7605 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
7606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7607 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
7608 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7609 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
7610 | |
---|
7611 | rm -f "$ac_tmp/stdin" |
---|
7612 | case $ac_file in |
---|
7613 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
7614 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
7615 | esac \ |
---|
7616 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7617 | ;; |
---|
7618 | :H) |
---|
7619 | # |
---|
7620 | # CONFIG_HEADER |
---|
7621 | # |
---|
7622 | if test x"$ac_file" != x-; then |
---|
7623 | { |
---|
7624 | $as_echo "/* $configure_input */" \ |
---|
7625 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
7626 | } >"$ac_tmp/config.h" \ |
---|
7627 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7628 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
7629 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
7630 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
7631 | else |
---|
7632 | rm -f "$ac_file" |
---|
7633 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
7634 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7635 | fi |
---|
7636 | else |
---|
7637 | $as_echo "/* $configure_input */" \ |
---|
7638 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
7639 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
7640 | fi |
---|
7641 | # Compute "$ac_file"'s index in $config_headers. |
---|
7642 | _am_arg="$ac_file" |
---|
7643 | _am_stamp_count=1 |
---|
7644 | for _am_header in $config_headers :; do |
---|
7645 | case $_am_header in |
---|
7646 | $_am_arg | $_am_arg:* ) |
---|
7647 | break ;; |
---|
7648 | * ) |
---|
7649 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
7650 | esac |
---|
7651 | done |
---|
7652 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
---|
7653 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7654 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
---|
7655 | X"$_am_arg" : 'X\(//\)$' \| \ |
---|
7656 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
---|
7657 | $as_echo X"$_am_arg" | |
---|
7658 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7659 | s//\1/ |
---|
7660 | q |
---|
7661 | } |
---|
7662 | /^X\(\/\/\)[^/].*/{ |
---|
7663 | s//\1/ |
---|
7664 | q |
---|
7665 | } |
---|
7666 | /^X\(\/\/\)$/{ |
---|
7667 | s//\1/ |
---|
7668 | q |
---|
7669 | } |
---|
7670 | /^X\(\/\).*/{ |
---|
7671 | s//\1/ |
---|
7672 | q |
---|
7673 | } |
---|
7674 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
7675 | ;; |
---|
7676 | :L) |
---|
7677 | # |
---|
7678 | # CONFIG_LINK |
---|
7679 | # |
---|
7680 | |
---|
7681 | if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then |
---|
7682 | : |
---|
7683 | else |
---|
7684 | # Prefer the file from the source tree if names are identical. |
---|
7685 | if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then |
---|
7686 | ac_source=$srcdir/$ac_source |
---|
7687 | fi |
---|
7688 | |
---|
7689 | { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 |
---|
7690 | $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} |
---|
7691 | |
---|
7692 | if test ! -r "$ac_source"; then |
---|
7693 | as_fn_error $? "$ac_source: file not found" "$LINENO" 5 |
---|
7694 | fi |
---|
7695 | rm -f "$ac_file" |
---|
7696 | |
---|
7697 | # Try a relative symlink, then a hard link, then a copy. |
---|
7698 | case $ac_source in |
---|
7699 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; |
---|
7700 | *) ac_rel_source=$ac_top_build_prefix$ac_source ;; |
---|
7701 | esac |
---|
7702 | ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || |
---|
7703 | ln "$ac_source" "$ac_file" 2>/dev/null || |
---|
7704 | cp -p "$ac_source" "$ac_file" || |
---|
7705 | as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 |
---|
7706 | fi |
---|
7707 | ;; |
---|
7708 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
---|
7709 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
---|
7710 | ;; |
---|
7711 | esac |
---|
7712 | |
---|
7713 | |
---|
7714 | case $ac_file$ac_mode in |
---|
7715 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
---|
7716 | # Older Autoconf quotes --file arguments for eval, but not when files |
---|
7717 | # are listed without --file. Let's play safe and only enable the eval |
---|
7718 | # if we detect the quoting. |
---|
7719 | case $CONFIG_FILES in |
---|
7720 | *\'*) eval set x "$CONFIG_FILES" ;; |
---|
7721 | *) set x $CONFIG_FILES ;; |
---|
7722 | esac |
---|
7723 | shift |
---|
7724 | for mf |
---|
7725 | do |
---|
7726 | # Strip MF so we end up with the name of the file. |
---|
7727 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
7728 | # Check whether this is an Automake generated Makefile or not. |
---|
7729 | # We used to match only the files named 'Makefile.in', but |
---|
7730 | # some people rename them; so instead we look at the file content. |
---|
7731 | # Grep'ing the first line is not enough: some people post-process |
---|
7732 | # each Makefile.in and add a new line on top of each file to say so. |
---|
7733 | # Grep'ing the whole file is not good either: AIX grep has a line |
---|
7734 | # limit of 2048, but all sed's we know have understand at least 4000. |
---|
7735 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
---|
7736 | dirpart=`$as_dirname -- "$mf" || |
---|
7737 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7738 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
7739 | X"$mf" : 'X\(//\)$' \| \ |
---|
7740 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
---|
7741 | $as_echo X"$mf" | |
---|
7742 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7743 | s//\1/ |
---|
7744 | q |
---|
7745 | } |
---|
7746 | /^X\(\/\/\)[^/].*/{ |
---|
7747 | s//\1/ |
---|
7748 | q |
---|
7749 | } |
---|
7750 | /^X\(\/\/\)$/{ |
---|
7751 | s//\1/ |
---|
7752 | q |
---|
7753 | } |
---|
7754 | /^X\(\/\).*/{ |
---|
7755 | s//\1/ |
---|
7756 | q |
---|
7757 | } |
---|
7758 | s/.*/./; q'` |
---|
7759 | else |
---|
7760 | continue |
---|
7761 | fi |
---|
7762 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
7763 | # from the Makefile without running 'make'. |
---|
7764 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
7765 | test -z "$DEPDIR" && continue |
---|
7766 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
7767 | test -z "$am__include" && continue |
---|
7768 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
7769 | # Find all dependency output files, they are included files with |
---|
7770 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
7771 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
7772 | # expansion. |
---|
7773 | for file in `sed -n " |
---|
7774 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
7775 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
---|
7776 | # Make sure the directory exists. |
---|
7777 | test -f "$dirpart/$file" && continue |
---|
7778 | fdir=`$as_dirname -- "$file" || |
---|
7779 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7780 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
7781 | X"$file" : 'X\(//\)$' \| \ |
---|
7782 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
---|
7783 | $as_echo X"$file" | |
---|
7784 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7785 | s//\1/ |
---|
7786 | q |
---|
7787 | } |
---|
7788 | /^X\(\/\/\)[^/].*/{ |
---|
7789 | s//\1/ |
---|
7790 | q |
---|
7791 | } |
---|
7792 | /^X\(\/\/\)$/{ |
---|
7793 | s//\1/ |
---|
7794 | q |
---|
7795 | } |
---|
7796 | /^X\(\/\).*/{ |
---|
7797 | s//\1/ |
---|
7798 | q |
---|
7799 | } |
---|
7800 | s/.*/./; q'` |
---|
7801 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
---|
7802 | # echo "creating $dirpart/$file" |
---|
7803 | echo '# dummy' > "$dirpart/$file" |
---|
7804 | done |
---|
7805 | done |
---|
7806 | } |
---|
7807 | ;; |
---|
7808 | |
---|
7809 | esac |
---|
7810 | done # for ac_tag |
---|
7811 | |
---|
7812 | |
---|
7813 | as_fn_exit 0 |
---|
7814 | _ACEOF |
---|
7815 | ac_clean_files=$ac_clean_files_save |
---|
7816 | |
---|
7817 | test $ac_write_fail = 0 || |
---|
7818 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
7819 | |
---|
7820 | |
---|
7821 | # configure is writing to config.log, and then calls config.status. |
---|
7822 | # config.status does its own redirection, appending to config.log. |
---|
7823 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7824 | # by configure, so config.status won't be able to write to it; its |
---|
7825 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7826 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7827 | # appended to by config.status. When coming back to configure, we |
---|
7828 | # need to make the FD available again. |
---|
7829 | if test "$no_create" != yes; then |
---|
7830 | ac_cs_success=: |
---|
7831 | ac_config_status_args= |
---|
7832 | test "$silent" = yes && |
---|
7833 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
7834 | exec 5>/dev/null |
---|
7835 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
7836 | exec 5>>config.log |
---|
7837 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7838 | # would make configure fail if this is the last instruction. |
---|
7839 | $ac_cs_success || as_fn_exit 1 |
---|
7840 | fi |
---|
7841 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
7842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
7843 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
7844 | fi |
---|
7845 | |
---|
7846 | |
---|
7847 | # Final text |
---|
7848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cforall configuraton completed. Type \"make -j 8 install\"." >&5 |
---|
7849 | $as_echo "Cforall configuraton completed. Type \"make -j 8 install\"." >&6; } |
---|