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