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