1 #! /bin/sh |
1 #! /bin/sh |
2 # Guess values for system-dependent variables and create Makefiles. |
2 # Guess values for system-dependent variables and create Makefiles. |
3 # Generated by GNU Autoconf 2.69 for matiec 0.1. |
3 # Generated by GNU Autoconf 2.68 for matiec 0.1. |
4 # |
4 # |
5 # Report bugs to <msousa@fe.up.pt, beremiz-devel@lists.sourceforge.net>. |
5 # Report bugs to <msousa@fe.up.pt, beremiz-devel@lists.sourceforge.net>. |
6 # |
6 # |
7 # |
7 # |
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
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. |
9 # |
11 # |
10 # |
12 # |
11 # This configure script is free software; the Free Software Foundation |
13 # This configure script is free software; the Free Software Foundation |
12 # gives unlimited permission to copy, distribute and modify it. |
14 # gives unlimited permission to copy, distribute and modify it. |
13 ## -------------------- ## |
15 ## -------------------- ## |
132 export LANGUAGE |
134 export LANGUAGE |
133 |
135 |
134 # CDPATH. |
136 # CDPATH. |
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
136 |
138 |
137 # Use a proper internal environment variable to ensure we don't fall |
|
138 # into an infinite loop, continuously re-executing ourselves. |
|
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
|
140 _as_can_reexec=no; export _as_can_reexec; |
|
141 # We cannot yet assume a decent shell, so we have to provide a |
|
142 # neutralization value for shells without unset; and this also |
|
143 # works around shells that cannot unset nonexistent variables. |
|
144 # Preserve -v and -x to the replacement shell. |
|
145 BASH_ENV=/dev/null |
|
146 ENV=/dev/null |
|
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
148 case $- in # (((( |
|
149 *v*x* | *x*v* ) as_opts=-vx ;; |
|
150 *v* ) as_opts=-v ;; |
|
151 *x* ) as_opts=-x ;; |
|
152 * ) as_opts= ;; |
|
153 esac |
|
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
|
155 # Admittedly, this is quite paranoid, since all the known shells bail |
|
156 # out after a failed `exec'. |
|
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
158 as_fn_exit 255 |
|
159 fi |
|
160 # We don't want this to propagate to other subprocesses. |
|
161 { _as_can_reexec=; unset _as_can_reexec;} |
|
162 if test "x$CONFIG_SHELL" = x; then |
139 if test "x$CONFIG_SHELL" = x; then |
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
164 emulate sh |
141 emulate sh |
165 NULLCMD=: |
142 NULLCMD=: |
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
191 |
168 |
192 else |
169 else |
193 exitcode=1; echo positional parameters were not saved. |
170 exitcode=1; echo positional parameters were not saved. |
194 fi |
171 fi |
195 test x\$exitcode = x0 || exit 1 |
172 test x\$exitcode = x0 || exit 1" |
196 test -x / || exit 1" |
|
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
201 test \$(( 1 + 1 )) = 2 || exit 1" |
177 test \$(( 1 + 1 )) = 2 || exit 1" |
236 fi; } |
212 fi; } |
237 IFS=$as_save_IFS |
213 IFS=$as_save_IFS |
238 |
214 |
239 |
215 |
240 if test "x$CONFIG_SHELL" != x; then : |
216 if test "x$CONFIG_SHELL" != x; then : |
241 export CONFIG_SHELL |
217 # We cannot yet assume a decent shell, so we have to provide a |
242 # We cannot yet assume a decent shell, so we have to provide a |
218 # neutralization value for shells without unset; and this also |
243 # neutralization value for shells without unset; and this also |
219 # works around shells that cannot unset nonexistent variables. |
244 # works around shells that cannot unset nonexistent variables. |
220 # Preserve -v and -x to the replacement shell. |
245 # Preserve -v and -x to the replacement shell. |
221 BASH_ENV=/dev/null |
246 BASH_ENV=/dev/null |
222 ENV=/dev/null |
247 ENV=/dev/null |
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
224 export CONFIG_SHELL |
249 case $- in # (((( |
225 case $- in # (((( |
250 *v*x* | *x*v* ) as_opts=-vx ;; |
226 *v*x* | *x*v* ) as_opts=-vx ;; |
251 *v* ) as_opts=-v ;; |
227 *v* ) as_opts=-v ;; |
252 *x* ) as_opts=-x ;; |
228 *x* ) as_opts=-x ;; |
253 * ) as_opts= ;; |
229 * ) as_opts= ;; |
254 esac |
230 esac |
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
256 # Admittedly, this is quite paranoid, since all the known shells bail |
|
257 # out after a failed `exec'. |
|
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
259 exit 255 |
|
260 fi |
232 fi |
261 |
233 |
262 if test x$as_have_required = xno; then : |
234 if test x$as_have_required = xno; then : |
263 $as_echo "$0: This script requires a shell more modern than all" |
235 $as_echo "$0: This script requires a shell more modern than all" |
264 $as_echo "$0: the shells that I found on your system." |
236 $as_echo "$0: the shells that I found on your system." |
357 test -z "$as_dirs" || eval "mkdir $as_dirs" |
329 test -z "$as_dirs" || eval "mkdir $as_dirs" |
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
359 |
331 |
360 |
332 |
361 } # as_fn_mkdir_p |
333 } # as_fn_mkdir_p |
362 |
|
363 # as_fn_executable_p FILE |
|
364 # ----------------------- |
|
365 # Test if FILE is an executable regular file. |
|
366 as_fn_executable_p () |
|
367 { |
|
368 test -f "$1" && test -x "$1" |
|
369 } # as_fn_executable_p |
|
370 # as_fn_append VAR VALUE |
334 # as_fn_append VAR VALUE |
371 # ---------------------- |
335 # ---------------------- |
372 # Append the text in VALUE to the end of the definition contained in VAR. Take |
336 # Append the text in VALUE to the end of the definition contained in VAR. Take |
373 # advantage of any shell optimizations that allow amortized linear growth over |
337 # advantage of any shell optimizations that allow amortized linear growth over |
374 # repeated appends, instead of the typical quadratic growth present in naive |
338 # repeated appends, instead of the typical quadratic growth present in naive |
486 s/-\n.*// |
450 s/-\n.*// |
487 ' >$as_me.lineno && |
451 ' >$as_me.lineno && |
488 chmod +x "$as_me.lineno" || |
452 chmod +x "$as_me.lineno" || |
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
490 |
454 |
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
|
492 # already done that, so ensure we don't try to do so again and fall |
|
493 # in an infinite loop. This has already happened in practice. |
|
494 _as_can_reexec=no; export _as_can_reexec |
|
495 # Don't try to exec as it changes $[0], causing all sort of problems |
455 # Don't try to exec as it changes $[0], causing all sort of problems |
496 # (the dirname of $[0] is not the place where we might find the |
456 # (the dirname of $[0] is not the place where we might find the |
497 # original and so on. Autoconf is especially sensitive to this). |
457 # original and so on. Autoconf is especially sensitive to this). |
498 . "./$as_me.lineno" |
458 . "./$as_me.lineno" |
499 # Exit status is that of the last command. |
459 # Exit status is that of the last command. |
524 if ln -s conf$$.file conf$$ 2>/dev/null; then |
484 if ln -s conf$$.file conf$$ 2>/dev/null; then |
525 as_ln_s='ln -s' |
485 as_ln_s='ln -s' |
526 # ... but there are two gotchas: |
486 # ... but there are two gotchas: |
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
529 # In both cases, we have to default to `cp -pR'. |
489 # In both cases, we have to default to `cp -p'. |
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
531 as_ln_s='cp -pR' |
491 as_ln_s='cp -p' |
532 elif ln conf$$.file conf$$ 2>/dev/null; then |
492 elif ln conf$$.file conf$$ 2>/dev/null; then |
533 as_ln_s=ln |
493 as_ln_s=ln |
534 else |
494 else |
535 as_ln_s='cp -pR' |
495 as_ln_s='cp -p' |
536 fi |
496 fi |
537 else |
497 else |
538 as_ln_s='cp -pR' |
498 as_ln_s='cp -p' |
539 fi |
499 fi |
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
541 rmdir conf$$.dir 2>/dev/null |
501 rmdir conf$$.dir 2>/dev/null |
542 |
502 |
543 if mkdir -p . 2>/dev/null; then |
503 if mkdir -p . 2>/dev/null; then |
545 else |
505 else |
546 test -d ./-p && rmdir ./-p |
506 test -d ./-p && rmdir ./-p |
547 as_mkdir_p=false |
507 as_mkdir_p=false |
548 fi |
508 fi |
549 |
509 |
550 as_test_x='test -x' |
510 if test -x / >/dev/null 2>&1; then |
551 as_executable_p=as_fn_executable_p |
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 |
552 |
532 |
553 # Sed expression to map a string onto a valid CPP name. |
533 # Sed expression to map a string onto a valid CPP name. |
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
555 |
535 |
556 # Sed expression to map a string onto a valid variable name. |
536 # Sed expression to map a string onto a valid variable name. |
1439 |
1422 |
1440 test -n "$ac_init_help" && exit $ac_status |
1423 test -n "$ac_init_help" && exit $ac_status |
1441 if $ac_init_version; then |
1424 if $ac_init_version; then |
1442 cat <<\_ACEOF |
1425 cat <<\_ACEOF |
1443 matiec configure 0.1 |
1426 matiec configure 0.1 |
1444 generated by GNU Autoconf 2.69 |
1427 generated by GNU Autoconf 2.68 |
1445 |
1428 |
1446 Copyright (C) 2012 Free Software Foundation, Inc. |
1429 Copyright (C) 2010 Free Software Foundation, Inc. |
1447 This configure script is free software; the Free Software Foundation |
1430 This configure script is free software; the Free Software Foundation |
1448 gives unlimited permission to copy, distribute and modify it. |
1431 gives unlimited permission to copy, distribute and modify it. |
1449 _ACEOF |
1432 _ACEOF |
1450 exit |
1433 exit |
1451 fi |
1434 fi |
1517 test $ac_status = 0; } && { |
1500 test $ac_status = 0; } && { |
1518 test -z "$ac_c_werror_flag" || |
1501 test -z "$ac_c_werror_flag" || |
1519 test ! -s conftest.err |
1502 test ! -s conftest.err |
1520 } && test -s conftest$ac_exeext && { |
1503 } && test -s conftest$ac_exeext && { |
1521 test "$cross_compiling" = yes || |
1504 test "$cross_compiling" = yes || |
1522 test -x conftest$ac_exeext |
1505 $as_test_x conftest$ac_exeext |
1523 }; then : |
1506 }; then : |
1524 ac_retval=0 |
1507 ac_retval=0 |
1525 else |
1508 else |
1526 $as_echo "$as_me: failed program was:" >&5 |
1509 $as_echo "$as_me: failed program was:" >&5 |
1527 sed 's/^/| /' conftest.$ac_ext >&5 |
1510 sed 's/^/| /' conftest.$ac_ext >&5 |
2451 # OSF1 and SCO ODT 3.0 have their own names for install. |
2431 # OSF1 and SCO ODT 3.0 have their own names for install. |
2452 # Don't use installbsd from OSF since it installs stuff as root |
2432 # Don't use installbsd from OSF since it installs stuff as root |
2453 # by default. |
2433 # by default. |
2454 for ac_prog in ginstall scoinst install; do |
2434 for ac_prog in ginstall scoinst install; do |
2455 for ac_exec_ext in '' $ac_executable_extensions; do |
2435 for ac_exec_ext in '' $ac_executable_extensions; do |
2456 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2436 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2457 if test $ac_prog = install && |
2437 if test $ac_prog = install && |
2458 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2438 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2459 # AIX install. It has an incompatible calling convention. |
2439 # AIX install. It has an incompatible calling convention. |
2460 : |
2440 : |
2461 elif test $ac_prog = install && |
2441 elif test $ac_prog = install && |
2711 do |
2691 do |
2712 IFS=$as_save_IFS |
2692 IFS=$as_save_IFS |
2713 test -z "$as_dir" && as_dir=. |
2693 test -z "$as_dir" && as_dir=. |
2714 for ac_prog in mkdir gmkdir; do |
2694 for ac_prog in mkdir gmkdir; do |
2715 for ac_exec_ext in '' $ac_executable_extensions; do |
2695 for ac_exec_ext in '' $ac_executable_extensions; do |
2716 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
2696 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
2717 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2697 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2718 'mkdir (GNU coreutils) '* | \ |
2698 'mkdir (GNU coreutils) '* | \ |
2719 'mkdir (coreutils) '* | \ |
2699 'mkdir (coreutils) '* | \ |
2720 'mkdir (fileutils) '4.1*) |
2700 'mkdir (fileutils) '4.1*) |
2721 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2701 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
3710 ac_save_CC=$CC |
3691 ac_save_CC=$CC |
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3712 /* end confdefs.h. */ |
3693 /* end confdefs.h. */ |
3713 #include <stdarg.h> |
3694 #include <stdarg.h> |
3714 #include <stdio.h> |
3695 #include <stdio.h> |
3715 struct stat; |
3696 #include <sys/types.h> |
|
3697 #include <sys/stat.h> |
3716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3717 struct buf { int x; }; |
3699 struct buf { int x; }; |
3718 FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3700 FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3719 static char *e (p, i) |
3701 static char *e (p, i) |
3720 char **p; |
3702 char **p; |
3808 # We make a subdir and do the tests there. Otherwise we can end up |
3790 # We make a subdir and do the tests there. Otherwise we can end up |
3809 # making bogus files that we don't know about and never remove. For |
3791 # making bogus files that we don't know about and never remove. For |
3810 # instance it was reported that on HP-UX the gcc test will end up |
3792 # instance it was reported that on HP-UX the gcc test will end up |
3811 # making a dummy file named `D' -- because `-MD' means `put the output |
3793 # making a dummy file named `D' -- because `-MD' means `put the output |
3812 # in D'. |
3794 # in D'. |
|
3795 rm -rf conftest.dir |
3813 mkdir conftest.dir |
3796 mkdir conftest.dir |
3814 # Copy depcomp to subdir because otherwise we won't find it if we're |
3797 # Copy depcomp to subdir because otherwise we won't find it if we're |
3815 # using a relative directory. |
3798 # using a relative directory. |
3816 cp "$am_depcomp" conftest.dir |
3799 cp "$am_depcomp" conftest.dir |
3817 cd conftest.dir |
3800 cd conftest.dir |
3867 continue |
3850 continue |
3868 else |
3851 else |
3869 break |
3852 break |
3870 fi |
3853 fi |
3871 ;; |
3854 ;; |
3872 msvisualcpp | msvcmsys) |
3855 msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3873 # This compiler won't grok `-c -o', but also, the minuso test has |
3856 # This compiler won't grok `-c -o', but also, the minuso test has |
3874 # not run yet. These depmodes are late enough in the game, and |
3857 # not run yet. These depmodes are late enough in the game, and |
3875 # so weak that their functioning should not be impacted. |
3858 # so weak that their functioning should not be impacted. |
3876 am__obj=conftest.${OBJEXT-o} |
3859 am__obj=conftest.${OBJEXT-o} |
3877 am__minus_obj= |
3860 am__minus_obj= |
4352 # We make a subdir and do the tests there. Otherwise we can end up |
4334 # We make a subdir and do the tests there. Otherwise we can end up |
4353 # making bogus files that we don't know about and never remove. For |
4335 # making bogus files that we don't know about and never remove. For |
4354 # instance it was reported that on HP-UX the gcc test will end up |
4336 # instance it was reported that on HP-UX the gcc test will end up |
4355 # making a dummy file named `D' -- because `-MD' means `put the output |
4337 # making a dummy file named `D' -- because `-MD' means `put the output |
4356 # in D'. |
4338 # in D'. |
|
4339 rm -rf conftest.dir |
4357 mkdir conftest.dir |
4340 mkdir conftest.dir |
4358 # Copy depcomp to subdir because otherwise we won't find it if we're |
4341 # Copy depcomp to subdir because otherwise we won't find it if we're |
4359 # using a relative directory. |
4342 # using a relative directory. |
4360 cp "$am_depcomp" conftest.dir |
4343 cp "$am_depcomp" conftest.dir |
4361 cd conftest.dir |
4344 cd conftest.dir |
4411 continue |
4394 continue |
4412 else |
4395 else |
4413 break |
4396 break |
4414 fi |
4397 fi |
4415 ;; |
4398 ;; |
4416 msvisualcpp | msvcmsys) |
4399 msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
4417 # This compiler won't grok `-c -o', but also, the minuso test has |
4400 # This compiler won't grok `-c -o', but also, the minuso test has |
4418 # not run yet. These depmodes are late enough in the game, and |
4401 # not run yet. These depmodes are late enough in the game, and |
4419 # so weak that their functioning should not be impacted. |
4402 # so weak that their functioning should not be impacted. |
4420 am__obj=conftest.${OBJEXT-o} |
4403 am__obj=conftest.${OBJEXT-o} |
4421 am__minus_obj= |
4404 am__minus_obj= |
4817 IFS=$as_save_IFS |
4800 IFS=$as_save_IFS |
4818 test -z "$as_dir" && as_dir=. |
4801 test -z "$as_dir" && as_dir=. |
4819 for ac_prog in grep ggrep; do |
4802 for ac_prog in grep ggrep; do |
4820 for ac_exec_ext in '' $ac_executable_extensions; do |
4803 for ac_exec_ext in '' $ac_executable_extensions; do |
4821 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4804 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4822 as_fn_executable_p "$ac_path_GREP" || continue |
4805 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
4823 # Check for GNU ac_path_GREP and select it if it is found. |
4806 # Check for GNU ac_path_GREP and select it if it is found. |
4824 # Check for GNU $ac_path_GREP |
4807 # Check for GNU $ac_path_GREP |
4825 case `"$ac_path_GREP" --version 2>&1` in |
4808 case `"$ac_path_GREP" --version 2>&1` in |
4826 *GNU*) |
4809 *GNU*) |
4827 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
4810 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
4883 IFS=$as_save_IFS |
4866 IFS=$as_save_IFS |
4884 test -z "$as_dir" && as_dir=. |
4867 test -z "$as_dir" && as_dir=. |
4885 for ac_prog in egrep; do |
4868 for ac_prog in egrep; do |
4886 for ac_exec_ext in '' $ac_executable_extensions; do |
4869 for ac_exec_ext in '' $ac_executable_extensions; do |
4887 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4870 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4888 as_fn_executable_p "$ac_path_EGREP" || continue |
4871 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
4889 # Check for GNU ac_path_EGREP and select it if it is found. |
4872 # Check for GNU ac_path_EGREP and select it if it is found. |
4890 # Check for GNU $ac_path_EGREP |
4873 # Check for GNU $ac_path_EGREP |
4891 case `"$ac_path_EGREP" --version 2>&1` in |
4874 case `"$ac_path_EGREP" --version 2>&1` in |
4892 *GNU*) |
4875 *GNU*) |
4893 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
4876 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
5083 $as_echo_n "(cached) " >&6 |
5066 $as_echo_n "(cached) " >&6 |
5084 else |
5067 else |
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5086 /* end confdefs.h. */ |
5069 /* end confdefs.h. */ |
5087 |
5070 |
5088 #include <stdbool.h> |
5071 #include <stdbool.h> |
5089 #ifndef bool |
5072 #ifndef bool |
5090 "error: bool is not defined" |
5073 "error: bool is not defined" |
5091 #endif |
5074 #endif |
5092 #ifndef false |
5075 #ifndef false |
5093 "error: false is not defined" |
5076 "error: false is not defined" |
5094 #endif |
5077 #endif |
5095 #if false |
5078 #if false |
5096 "error: false is not 0" |
5079 "error: false is not 0" |
5097 #endif |
5080 #endif |
5098 #ifndef true |
5081 #ifndef true |
5099 "error: true is not defined" |
5082 "error: true is not defined" |
5100 #endif |
5083 #endif |
5101 #if true != 1 |
5084 #if true != 1 |
5102 "error: true is not 1" |
5085 "error: true is not 1" |
5103 #endif |
5086 #endif |
5104 #ifndef __bool_true_false_are_defined |
5087 #ifndef __bool_true_false_are_defined |
5105 "error: __bool_true_false_are_defined is not defined" |
5088 "error: __bool_true_false_are_defined is not defined" |
5106 #endif |
5089 #endif |
5107 |
5090 |
5108 struct s { _Bool s: 1; _Bool t; } s; |
5091 struct s { _Bool s: 1; _Bool t; } s; |
5109 |
5092 |
5110 char a[true == 1 ? 1 : -1]; |
5093 char a[true == 1 ? 1 : -1]; |
5111 char b[false == 0 ? 1 : -1]; |
5094 char b[false == 0 ? 1 : -1]; |
5112 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
5095 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
5113 char d[(bool) 0.5 == true ? 1 : -1]; |
5096 char d[(bool) 0.5 == true ? 1 : -1]; |
5114 /* See body of main program for 'e'. */ |
5097 /* See body of main program for 'e'. */ |
5115 char f[(_Bool) 0.0 == false ? 1 : -1]; |
5098 char f[(_Bool) 0.0 == false ? 1 : -1]; |
5116 char g[true]; |
5099 char g[true]; |
5117 char h[sizeof (_Bool)]; |
5100 char h[sizeof (_Bool)]; |
5118 char i[sizeof s.t]; |
5101 char i[sizeof s.t]; |
5119 enum { j = false, k = true, l = false * true, m = true * 256 }; |
5102 enum { j = false, k = true, l = false * true, m = true * 256 }; |
5120 /* The following fails for |
5103 /* The following fails for |
5121 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
5104 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
5122 _Bool n[m]; |
5105 _Bool n[m]; |
5123 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
5106 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
5124 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
5107 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
5125 /* Catch a bug in an HP-UX C compiler. See |
5108 /* Catch a bug in an HP-UX C compiler. See |
5126 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
5109 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
5127 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
5110 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
5128 */ |
5111 */ |
5129 _Bool q = true; |
5112 _Bool q = true; |
5130 _Bool *pq = &q; |
5113 _Bool *pq = &q; |
5131 |
5114 |
5132 int |
5115 int |
5133 main () |
5116 main () |
5134 { |
5117 { |
5135 |
5118 |
5136 bool e = &s; |
5119 bool e = &s; |
5137 *pq |= q; |
5120 *pq |= q; |
5138 *pq |= ! q; |
5121 *pq |= ! q; |
5139 /* Refer to every declared value, to avoid compiler optimizations. */ |
5122 /* Refer to every declared value, to avoid compiler optimizations. */ |
5140 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
5123 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
5141 + !m + !n + !o + !p + !q + !pq); |
5124 + !m + !n + !o + !p + !q + !pq); |
5142 |
5125 |
5143 ; |
5126 ; |
5144 return 0; |
5127 return 0; |
5145 } |
5128 } |
5146 _ACEOF |
5129 _ACEOF |
5151 fi |
5134 fi |
5152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5153 fi |
5136 fi |
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
5155 $as_echo "$ac_cv_header_stdbool_h" >&6; } |
5138 $as_echo "$ac_cv_header_stdbool_h" >&6; } |
5156 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
5139 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
5157 if test "x$ac_cv_type__Bool" = xyes; then : |
5140 if test "x$ac_cv_type__Bool" = xyes; then : |
5158 |
5141 |
5159 cat >>confdefs.h <<_ACEOF |
5142 cat >>confdefs.h <<_ACEOF |
5160 #define HAVE__BOOL 1 |
5143 #define HAVE__BOOL 1 |
5161 _ACEOF |
5144 _ACEOF |
5162 |
5145 |
5163 |
5146 |
5164 fi |
5147 fi |
5165 |
|
5166 |
5148 |
5167 if test $ac_cv_header_stdbool_h = yes; then |
5149 if test $ac_cv_header_stdbool_h = yes; then |
5168 |
5150 |
5169 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
5151 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
5170 |
5152 |
6187 if ln -s conf$$.file conf$$ 2>/dev/null; then |
6169 if ln -s conf$$.file conf$$ 2>/dev/null; then |
6188 as_ln_s='ln -s' |
6170 as_ln_s='ln -s' |
6189 # ... but there are two gotchas: |
6171 # ... but there are two gotchas: |
6190 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
6172 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
6191 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
6173 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
6192 # In both cases, we have to default to `cp -pR'. |
6174 # In both cases, we have to default to `cp -p'. |
6193 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
6175 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
6194 as_ln_s='cp -pR' |
6176 as_ln_s='cp -p' |
6195 elif ln conf$$.file conf$$ 2>/dev/null; then |
6177 elif ln conf$$.file conf$$ 2>/dev/null; then |
6196 as_ln_s=ln |
6178 as_ln_s=ln |
6197 else |
6179 else |
6198 as_ln_s='cp -pR' |
6180 as_ln_s='cp -p' |
6199 fi |
6181 fi |
6200 else |
6182 else |
6201 as_ln_s='cp -pR' |
6183 as_ln_s='cp -p' |
6202 fi |
6184 fi |
6203 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
6185 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
6204 rmdir conf$$.dir 2>/dev/null |
6186 rmdir conf$$.dir 2>/dev/null |
6205 |
6187 |
6206 |
6188 |
6256 else |
6238 else |
6257 test -d ./-p && rmdir ./-p |
6239 test -d ./-p && rmdir ./-p |
6258 as_mkdir_p=false |
6240 as_mkdir_p=false |
6259 fi |
6241 fi |
6260 |
6242 |
6261 |
6243 if test -x / >/dev/null 2>&1; then |
6262 # as_fn_executable_p FILE |
6244 as_test_x='test -x' |
6263 # ----------------------- |
6245 else |
6264 # Test if FILE is an executable regular file. |
6246 if ls -dL / >/dev/null 2>&1; then |
6265 as_fn_executable_p () |
6247 as_ls_L_option=L |
6266 { |
6248 else |
6267 test -f "$1" && test -x "$1" |
6249 as_ls_L_option= |
6268 } # as_fn_executable_p |
6250 fi |
6269 as_test_x='test -x' |
6251 as_test_x=' |
6270 as_executable_p=as_fn_executable_p |
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 |
6271 |
6265 |
6272 # Sed expression to map a string onto a valid CPP name. |
6266 # Sed expression to map a string onto a valid CPP name. |
6273 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
6267 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
6274 |
6268 |
6275 # Sed expression to map a string onto a valid variable name. |
6269 # Sed expression to map a string onto a valid variable name. |
6287 # Save the log message, to keep $0 and so on meaningful, and to |
6281 # Save the log message, to keep $0 and so on meaningful, and to |
6288 # report actual input values of CONFIG_FILES etc. instead of their |
6282 # report actual input values of CONFIG_FILES etc. instead of their |
6289 # values after options handling. |
6283 # values after options handling. |
6290 ac_log=" |
6284 ac_log=" |
6291 This file was extended by matiec $as_me 0.1, which was |
6285 This file was extended by matiec $as_me 0.1, which was |
6292 generated by GNU Autoconf 2.69. Invocation command line was |
6286 generated by GNU Autoconf 2.68. Invocation command line was |
6293 |
6287 |
6294 CONFIG_FILES = $CONFIG_FILES |
6288 CONFIG_FILES = $CONFIG_FILES |
6295 CONFIG_HEADERS = $CONFIG_HEADERS |
6289 CONFIG_HEADERS = $CONFIG_HEADERS |
6296 CONFIG_LINKS = $CONFIG_LINKS |
6290 CONFIG_LINKS = $CONFIG_LINKS |
6297 CONFIG_COMMANDS = $CONFIG_COMMANDS |
6291 CONFIG_COMMANDS = $CONFIG_COMMANDS |
6353 _ACEOF |
6347 _ACEOF |
6354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6355 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
6349 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
6356 ac_cs_version="\\ |
6350 ac_cs_version="\\ |
6357 matiec config.status 0.1 |
6351 matiec config.status 0.1 |
6358 configured by $0, generated by GNU Autoconf 2.69, |
6352 configured by $0, generated by GNU Autoconf 2.68, |
6359 with options \\"\$ac_cs_config\\" |
6353 with options \\"\$ac_cs_config\\" |
6360 |
6354 |
6361 Copyright (C) 2012 Free Software Foundation, Inc. |
6355 Copyright (C) 2010 Free Software Foundation, Inc. |
6362 This config.status script is free software; the Free Software Foundation |
6356 This config.status script is free software; the Free Software Foundation |
6363 gives unlimited permission to copy, distribute and modify it." |
6357 gives unlimited permission to copy, distribute and modify it." |
6364 |
6358 |
6365 ac_pwd='$ac_pwd' |
6359 ac_pwd='$ac_pwd' |
6366 srcdir='$srcdir' |
6360 srcdir='$srcdir' |