diff options
| author | Aiden Woodruff <aiden.woodruff@gmail.com> | 2018-09-04 18:09:51 -0500 |
|---|---|---|
| committer | Aiden Woodruff <aiden.woodruff@gmail.com> | 2018-09-04 18:09:51 -0500 |
| commit | f4cb6a5879a7be0bbc15a2a04eb4977248316ad1 (patch) | |
| tree | 35ff1234c26adbdf29ee1645351749315d587eaa | |
| parent | 82911972c6e1b8e01e820b4e413ef684ed95bffc (diff) | |
| download | life-f4cb6a5879a7be0bbc15a2a04eb4977248316ad1.tar.gz life-f4cb6a5879a7be0bbc15a2a04eb4977248316ad1.tar.bz2 life-f4cb6a5879a7be0bbc15a2a04eb4977248316ad1.zip | |
Fix small autoconf, automake, etc. issues
autoconf: check for C preprocessor and typeof extension
automake: Change headers to be noinst
Use return at end of main, not exit
sanity sanity don't run exec
blank test correctly order redirections
Signed-off-by: Aiden Woodruff <aiden.woodruff@gmail.com>
| -rw-r--r-- | config.h.in | 6 | ||||
| -rwxr-xr-x | configure | 212 | ||||
| -rw-r--r-- | configure.ac | 2 | ||||
| -rw-r--r-- | life-1.6.0.tar.gz | bin | 135098 -> 134709 bytes | |||
| -rw-r--r-- | src/Makefile.am | 2 | ||||
| -rw-r--r-- | src/Makefile.in | 76 | ||||
| -rw-r--r-- | src/life.c | 2 | ||||
| -rwxr-xr-x | test/blank.sh | 2 | ||||
| -rwxr-xr-x | test/sanity | 2 |
9 files changed, 159 insertions, 145 deletions
diff --git a/config.h.in b/config.h.in index b47e612..56181f0 100644 --- a/config.h.in +++ b/config.h.in | |||
| @@ -33,6 +33,9 @@ | |||
| 33 | /* Define to 1 if you have the <sys/types.h> header file. */ | 33 | /* Define to 1 if you have the <sys/types.h> header file. */ |
| 34 | #undef HAVE_SYS_TYPES_H | 34 | #undef HAVE_SYS_TYPES_H |
| 35 | 35 | ||
| 36 | /* Define to 1 if typeof works with your compiler. */ | ||
| 37 | #undef HAVE_TYPEOF | ||
| 38 | |||
| 36 | /* Define to 1 if you have the <unistd.h> header file. */ | 39 | /* Define to 1 if you have the <unistd.h> header file. */ |
| 37 | #undef HAVE_UNISTD_H | 40 | #undef HAVE_UNISTD_H |
| 38 | 41 | ||
| @@ -62,3 +65,6 @@ | |||
| 62 | 65 | ||
| 63 | /* Version number of package */ | 66 | /* Version number of package */ |
| 64 | #undef VERSION | 67 | #undef VERSION |
| 68 | |||
| 69 | /* Define to __typeof__ if your compiler spells it that way. */ | ||
| 70 | #undef typeof | ||
| @@ -1487,21 +1487,20 @@ fi | |||
| 1487 | 1487 | ||
| 1488 | } # ac_fn_c_try_compile | 1488 | } # ac_fn_c_try_compile |
| 1489 | 1489 | ||
| 1490 | # ac_fn_c_try_link LINENO | 1490 | # ac_fn_c_try_cpp LINENO |
| 1491 | # ----------------------- | 1491 | # ---------------------- |
| 1492 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 1492 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1493 | ac_fn_c_try_link () | 1493 | ac_fn_c_try_cpp () |
| 1494 | { | 1494 | { |
| 1495 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1495 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1496 | rm -f conftest.$ac_objext conftest$ac_exeext | 1496 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1497 | if { { ac_try="$ac_link" | ||
| 1498 | case "(($ac_try" in | 1497 | case "(($ac_try" in |
| 1499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 1498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1500 | *) ac_try_echo=$ac_try;; | 1499 | *) ac_try_echo=$ac_try;; |
| 1501 | esac | 1500 | esac |
| 1502 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 1501 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1503 | $as_echo "$ac_try_echo"; } >&5 | 1502 | $as_echo "$ac_try_echo"; } >&5 |
| 1504 | (eval "$ac_link") 2>conftest.err | 1503 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1505 | ac_status=$? | 1504 | ac_status=$? |
| 1506 | if test -s conftest.err; then | 1505 | if test -s conftest.err; then |
| 1507 | grep -v '^ *+' conftest.err >conftest.er1 | 1506 | grep -v '^ *+' conftest.err >conftest.er1 |
| @@ -1509,44 +1508,37 @@ $as_echo "$ac_try_echo"; } >&5 | |||
| 1509 | mv -f conftest.er1 conftest.err | 1508 | mv -f conftest.er1 conftest.err |
| 1510 | fi | 1509 | fi |
| 1511 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 1510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1512 | test $ac_status = 0; } && { | 1511 | test $ac_status = 0; } > conftest.i && { |
| 1513 | test -z "$ac_c_werror_flag" || | 1512 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1514 | test ! -s conftest.err | 1513 | test ! -s conftest.err |
| 1515 | } && test -s conftest$ac_exeext && { | ||
| 1516 | test "$cross_compiling" = yes || | ||
| 1517 | test -x conftest$ac_exeext | ||
| 1518 | }; then : | 1514 | }; then : |
| 1519 | ac_retval=0 | 1515 | ac_retval=0 |
| 1520 | else | 1516 | else |
| 1521 | $as_echo "$as_me: failed program was:" >&5 | 1517 | $as_echo "$as_me: failed program was:" >&5 |
| 1522 | sed 's/^/| /' conftest.$ac_ext >&5 | 1518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1523 | 1519 | ||
| 1524 | ac_retval=1 | 1520 | ac_retval=1 |
| 1525 | fi | 1521 | fi |
| 1526 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
| 1527 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
| 1528 | # interfere with the next link command; also delete a directory that is | ||
| 1529 | # left behind by Apple's compiler. We do this before executing the actions. | ||
| 1530 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
| 1531 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 1522 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1532 | as_fn_set_status $ac_retval | 1523 | as_fn_set_status $ac_retval |
| 1533 | 1524 | ||
| 1534 | } # ac_fn_c_try_link | 1525 | } # ac_fn_c_try_cpp |
| 1535 | 1526 | ||
| 1536 | # ac_fn_c_try_cpp LINENO | 1527 | # ac_fn_c_try_link LINENO |
| 1537 | # ---------------------- | 1528 | # ----------------------- |
| 1538 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 1529 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1539 | ac_fn_c_try_cpp () | 1530 | ac_fn_c_try_link () |
| 1540 | { | 1531 | { |
| 1541 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1532 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1542 | if { { ac_try="$ac_cpp conftest.$ac_ext" | 1533 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1534 | if { { ac_try="$ac_link" | ||
| 1543 | case "(($ac_try" in | 1535 | case "(($ac_try" in |
| 1544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 1536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1545 | *) ac_try_echo=$ac_try;; | 1537 | *) ac_try_echo=$ac_try;; |
| 1546 | esac | 1538 | esac |
| 1547 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 1539 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1548 | $as_echo "$ac_try_echo"; } >&5 | 1540 | $as_echo "$ac_try_echo"; } >&5 |
| 1549 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 1541 | (eval "$ac_link") 2>conftest.err |
| 1550 | ac_status=$? | 1542 | ac_status=$? |
| 1551 | if test -s conftest.err; then | 1543 | if test -s conftest.err; then |
| 1552 | grep -v '^ *+' conftest.err >conftest.er1 | 1544 | grep -v '^ *+' conftest.err >conftest.er1 |
| @@ -1554,21 +1546,29 @@ $as_echo "$ac_try_echo"; } >&5 | |||
| 1554 | mv -f conftest.er1 conftest.err | 1546 | mv -f conftest.er1 conftest.err |
| 1555 | fi | 1547 | fi |
| 1556 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 1548 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1557 | test $ac_status = 0; } > conftest.i && { | 1549 | test $ac_status = 0; } && { |
| 1558 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 1550 | test -z "$ac_c_werror_flag" || |
| 1559 | test ! -s conftest.err | 1551 | test ! -s conftest.err |
| 1552 | } && test -s conftest$ac_exeext && { | ||
| 1553 | test "$cross_compiling" = yes || | ||
| 1554 | test -x conftest$ac_exeext | ||
| 1560 | }; then : | 1555 | }; then : |
| 1561 | ac_retval=0 | 1556 | ac_retval=0 |
| 1562 | else | 1557 | else |
| 1563 | $as_echo "$as_me: failed program was:" >&5 | 1558 | $as_echo "$as_me: failed program was:" >&5 |
| 1564 | sed 's/^/| /' conftest.$ac_ext >&5 | 1559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1565 | 1560 | ||
| 1566 | ac_retval=1 | 1561 | ac_retval=1 |
| 1567 | fi | 1562 | fi |
| 1563 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
| 1564 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
| 1565 | # interfere with the next link command; also delete a directory that is | ||
| 1566 | # left behind by Apple's compiler. We do this before executing the actions. | ||
| 1567 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
| 1568 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 1568 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1569 | as_fn_set_status $ac_retval | 1569 | as_fn_set_status $ac_retval |
| 1570 | 1570 | ||
| 1571 | } # ac_fn_c_try_cpp | 1571 | } # ac_fn_c_try_link |
| 1572 | 1572 | ||
| 1573 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 1573 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1574 | # ------------------------------------------------------- | 1574 | # ------------------------------------------------------- |
| @@ -3214,56 +3214,6 @@ if test "x$ac_cv_prog_cc_c99" != xno; then : | |||
| 3214 | fi | 3214 | fi |
| 3215 | 3215 | ||
| 3216 | 3216 | ||
| 3217 | |||
| 3218 | # Checks for libraries. | ||
| 3219 | |||
| 3220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 | ||
| 3221 | $as_echo_n "checking for initscr in -lncurses... " >&6; } | ||
| 3222 | if ${ac_cv_lib_ncurses_initscr+:} false; then : | ||
| 3223 | $as_echo_n "(cached) " >&6 | ||
| 3224 | else | ||
| 3225 | ac_check_lib_save_LIBS=$LIBS | ||
| 3226 | LIBS="-lncurses $LIBS" | ||
| 3227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 3228 | /* end confdefs.h. */ | ||
| 3229 | |||
| 3230 | /* Override any GCC internal prototype to avoid an error. | ||
| 3231 | Use char because int might match the return type of a GCC | ||
| 3232 | builtin and then its argument prototype would still apply. */ | ||
| 3233 | #ifdef __cplusplus | ||
| 3234 | extern "C" | ||
| 3235 | #endif | ||
| 3236 | char initscr (); | ||
| 3237 | int | ||
| 3238 | main () | ||
| 3239 | { | ||
| 3240 | return initscr (); | ||
| 3241 | ; | ||
| 3242 | return 0; | ||
| 3243 | } | ||
| 3244 | _ACEOF | ||
| 3245 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 3246 | ac_cv_lib_ncurses_initscr=yes | ||
| 3247 | else | ||
| 3248 | ac_cv_lib_ncurses_initscr=no | ||
| 3249 | fi | ||
| 3250 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 3251 | conftest$ac_exeext conftest.$ac_ext | ||
| 3252 | LIBS=$ac_check_lib_save_LIBS | ||
| 3253 | fi | ||
| 3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5 | ||
| 3255 | $as_echo "$ac_cv_lib_ncurses_initscr" >&6; } | ||
| 3256 | if test "x$ac_cv_lib_ncurses_initscr" = xyes; then : | ||
| 3257 | cat >>confdefs.h <<_ACEOF | ||
| 3258 | #define HAVE_LIBNCURSES 1 | ||
| 3259 | _ACEOF | ||
| 3260 | |||
| 3261 | LIBS="-lncurses $LIBS" | ||
| 3262 | |||
| 3263 | fi | ||
| 3264 | |||
| 3265 | |||
| 3266 | # Checks for header files. | ||
| 3267 | ac_ext=c | 3217 | ac_ext=c |
| 3268 | ac_cpp='$CPP $CPPFLAGS' | 3218 | ac_cpp='$CPP $CPPFLAGS' |
| 3269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 3219 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| @@ -3402,6 +3352,110 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | |||
| 3402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 3352 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3403 | 3353 | ||
| 3404 | 3354 | ||
| 3355 | |||
| 3356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5 | ||
| 3357 | $as_echo_n "checking for typeof syntax and keyword spelling... " >&6; } | ||
| 3358 | if ${ac_cv_c_typeof+:} false; then : | ||
| 3359 | $as_echo_n "(cached) " >&6 | ||
| 3360 | else | ||
| 3361 | ac_cv_c_typeof=no | ||
| 3362 | for ac_kw in typeof __typeof__ no; do | ||
| 3363 | test $ac_kw = no && break | ||
| 3364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 3365 | /* end confdefs.h. */ | ||
| 3366 | |||
| 3367 | int | ||
| 3368 | main () | ||
| 3369 | { | ||
| 3370 | |||
| 3371 | int value; | ||
| 3372 | typedef struct { | ||
| 3373 | char a [1 | ||
| 3374 | + ! (($ac_kw (value)) | ||
| 3375 | (($ac_kw (value)) 0 < ($ac_kw (value)) -1 | ||
| 3376 | ? ($ac_kw (value)) - 1 | ||
| 3377 | : ~ (~ ($ac_kw (value)) 0 | ||
| 3378 | << sizeof ($ac_kw (value)))))]; } | ||
| 3379 | ac__typeof_type_; | ||
| 3380 | return | ||
| 3381 | (! ((void) ((ac__typeof_type_ *) 0), 0)); | ||
| 3382 | |||
| 3383 | ; | ||
| 3384 | return 0; | ||
| 3385 | } | ||
| 3386 | _ACEOF | ||
| 3387 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 3388 | ac_cv_c_typeof=$ac_kw | ||
| 3389 | fi | ||
| 3390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 3391 | test $ac_cv_c_typeof != no && break | ||
| 3392 | done | ||
| 3393 | fi | ||
| 3394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5 | ||
| 3395 | $as_echo "$ac_cv_c_typeof" >&6; } | ||
| 3396 | if test $ac_cv_c_typeof != no; then | ||
| 3397 | |||
| 3398 | $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h | ||
| 3399 | |||
| 3400 | if test $ac_cv_c_typeof != typeof; then | ||
| 3401 | |||
| 3402 | cat >>confdefs.h <<_ACEOF | ||
| 3403 | #define typeof $ac_cv_c_typeof | ||
| 3404 | _ACEOF | ||
| 3405 | |||
| 3406 | fi | ||
| 3407 | fi | ||
| 3408 | |||
| 3409 | |||
| 3410 | # Checks for libraries. | ||
| 3411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 | ||
| 3412 | $as_echo_n "checking for initscr in -lncurses... " >&6; } | ||
| 3413 | if ${ac_cv_lib_ncurses_initscr+:} false; then : | ||
| 3414 | $as_echo_n "(cached) " >&6 | ||
| 3415 | else | ||
| 3416 | ac_check_lib_save_LIBS=$LIBS | ||
| 3417 | LIBS="-lncurses $LIBS" | ||
| 3418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 3419 | /* end confdefs.h. */ | ||
| 3420 | |||
| 3421 | /* Override any GCC internal prototype to avoid an error. | ||
| 3422 | Use char because int might match the return type of a GCC | ||
| 3423 | builtin and then its argument prototype would still apply. */ | ||
| 3424 | #ifdef __cplusplus | ||
| 3425 | extern "C" | ||
| 3426 | #endif | ||
| 3427 | char initscr (); | ||
| 3428 | int | ||
| 3429 | main () | ||
| 3430 | { | ||
| 3431 | return initscr (); | ||
| 3432 | ; | ||
| 3433 | return 0; | ||
| 3434 | } | ||
| 3435 | _ACEOF | ||
| 3436 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 3437 | ac_cv_lib_ncurses_initscr=yes | ||
| 3438 | else | ||
| 3439 | ac_cv_lib_ncurses_initscr=no | ||
| 3440 | fi | ||
| 3441 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 3442 | conftest$ac_exeext conftest.$ac_ext | ||
| 3443 | LIBS=$ac_check_lib_save_LIBS | ||
| 3444 | fi | ||
| 3445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5 | ||
| 3446 | $as_echo "$ac_cv_lib_ncurses_initscr" >&6; } | ||
| 3447 | if test "x$ac_cv_lib_ncurses_initscr" = xyes; then : | ||
| 3448 | cat >>confdefs.h <<_ACEOF | ||
| 3449 | #define HAVE_LIBNCURSES 1 | ||
| 3450 | _ACEOF | ||
| 3451 | |||
| 3452 | LIBS="-lncurses $LIBS" | ||
| 3453 | |||
| 3454 | fi | ||
| 3455 | |||
| 3456 | |||
| 3457 | # Checks for header files. | ||
| 3458 | |||
| 3405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 3459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 3406 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 3460 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3407 | if ${ac_cv_path_GREP+:} false; then : | 3461 | if ${ac_cv_path_GREP+:} false; then : |
diff --git a/configure.ac b/configure.ac index 27ce705..4d8897a 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -9,6 +9,8 @@ AC_CONFIG_HEADERS([config.h]) | |||
| 9 | # Checks for programs. | 9 | # Checks for programs. |
| 10 | AC_PROG_CC | 10 | AC_PROG_CC |
| 11 | AC_PROG_CC_C99 | 11 | AC_PROG_CC_C99 |
| 12 | AC_PROG_CPP | ||
| 13 | AC_C_TYPEOF | ||
| 12 | 14 | ||
| 13 | # Checks for libraries. | 15 | # Checks for libraries. |
| 14 | AC_CHECK_LIB([ncurses], [initscr]) | 16 | AC_CHECK_LIB([ncurses], [initscr]) |
diff --git a/life-1.6.0.tar.gz b/life-1.6.0.tar.gz index b3087ed..60c1d7d 100644 --- a/life-1.6.0.tar.gz +++ b/life-1.6.0.tar.gz | |||
| Binary files differ | |||
diff --git a/src/Makefile.am b/src/Makefile.am index e308a9f..3a59f50 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | bin_PROGRAMS = life | 1 | bin_PROGRAMS = life |
| 2 | life_SOURCES = life.c cmdline-life.c updatemap.c menus.c | 2 | life_SOURCES = life.c cmdline-life.c updatemap.c menus.c |
| 3 | life_CFLAGS = -Wall -pedantic | 3 | life_CFLAGS = -Wall -pedantic |
| 4 | include_HEADERS = life.h updatemap.h menus.h cmdline-life.h life-macros.h | 4 | noinst_HEADERS = life.h updatemap.h menus.h cmdline-life.h life-macros.h |
diff --git a/src/Makefile.in b/src/Makefile.in index bd9200c..61cc02b 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -93,13 +93,13 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |||
| 93 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | 93 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
| 94 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | 94 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
| 95 | $(ACLOCAL_M4) | 95 | $(ACLOCAL_M4) |
| 96 | DIST_COMMON = $(srcdir)/Makefile.am $(include_HEADERS) \ | 96 | DIST_COMMON = $(srcdir)/Makefile.am $(noinst_HEADERS) \ |
| 97 | $(am__DIST_COMMON) | 97 | $(am__DIST_COMMON) |
| 98 | mkinstalldirs = $(install_sh) -d | 98 | mkinstalldirs = $(install_sh) -d |
| 99 | CONFIG_HEADER = $(top_builddir)/config.h | 99 | CONFIG_HEADER = $(top_builddir)/config.h |
| 100 | CONFIG_CLEAN_FILES = | 100 | CONFIG_CLEAN_FILES = |
| 101 | CONFIG_CLEAN_VPATH_FILES = | 101 | CONFIG_CLEAN_VPATH_FILES = |
| 102 | am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(includedir)" | 102 | am__installdirs = "$(DESTDIR)$(bindir)" |
| 103 | PROGRAMS = $(bin_PROGRAMS) | 103 | PROGRAMS = $(bin_PROGRAMS) |
| 104 | am_life_OBJECTS = life-life.$(OBJEXT) life-cmdline-life.$(OBJEXT) \ | 104 | am_life_OBJECTS = life-life.$(OBJEXT) life-cmdline-life.$(OBJEXT) \ |
| 105 | life-updatemap.$(OBJEXT) life-menus.$(OBJEXT) | 105 | life-updatemap.$(OBJEXT) life-menus.$(OBJEXT) |
| @@ -146,34 +146,7 @@ am__can_run_installinfo = \ | |||
| 146 | n|no|NO) false;; \ | 146 | n|no|NO) false;; \ |
| 147 | *) (install-info --version) >/dev/null 2>&1;; \ | 147 | *) (install-info --version) >/dev/null 2>&1;; \ |
| 148 | esac | 148 | esac |
| 149 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | 149 | HEADERS = $(noinst_HEADERS) |
| 150 | am__vpath_adj = case $$p in \ | ||
| 151 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
| 152 | *) f=$$p;; \ | ||
| 153 | esac; | ||
| 154 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
| 155 | am__install_max = 40 | ||
| 156 | am__nobase_strip_setup = \ | ||
| 157 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
| 158 | am__nobase_strip = \ | ||
| 159 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
| 160 | am__nobase_list = $(am__nobase_strip_setup); \ | ||
| 161 | for p in $$list; do echo "$$p $$p"; done | \ | ||
| 162 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | ||
| 163 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | ||
| 164 | if (++n[$$2] == $(am__install_max)) \ | ||
| 165 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | ||
| 166 | END { for (dir in files) print dir, files[dir] }' | ||
| 167 | am__base_list = \ | ||
| 168 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
| 169 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
| 170 | am__uninstall_files_from_dir = { \ | ||
| 171 | test -z "$$files" \ | ||
| 172 | || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ | ||
| 173 | || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ | ||
| 174 | $(am__cd) "$$dir" && rm -f $$files; }; \ | ||
| 175 | } | ||
| 176 | HEADERS = $(include_HEADERS) | ||
| 177 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | 150 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) |
| 178 | # Read a list of newline-separated strings from the standard input, | 151 | # Read a list of newline-separated strings from the standard input, |
| 179 | # and print each of them once, without duplicates. Input order is | 152 | # and print each of them once, without duplicates. Input order is |
| @@ -285,7 +258,7 @@ top_builddir = @top_builddir@ | |||
| 285 | top_srcdir = @top_srcdir@ | 258 | top_srcdir = @top_srcdir@ |
| 286 | life_SOURCES = life.c cmdline-life.c updatemap.c menus.c | 259 | life_SOURCES = life.c cmdline-life.c updatemap.c menus.c |
| 287 | life_CFLAGS = -Wall -pedantic | 260 | life_CFLAGS = -Wall -pedantic |
| 288 | include_HEADERS = life.h updatemap.h menus.h cmdline-life.h life-macros.h | 261 | noinst_HEADERS = life.h updatemap.h menus.h cmdline-life.h life-macros.h |
| 289 | all: all-am | 262 | all: all-am |
| 290 | 263 | ||
| 291 | .SUFFIXES: | 264 | .SUFFIXES: |
| @@ -446,27 +419,6 @@ life-menus.obj: menus.c | |||
| 446 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='menus.c' object='life-menus.obj' libtool=no @AMDEPBACKSLASH@ | 419 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='menus.c' object='life-menus.obj' libtool=no @AMDEPBACKSLASH@ |
| 447 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | 420 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| 448 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(life_CFLAGS) $(CFLAGS) -c -o life-menus.obj `if test -f 'menus.c'; then $(CYGPATH_W) 'menus.c'; else $(CYGPATH_W) '$(srcdir)/menus.c'; fi` | 421 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(life_CFLAGS) $(CFLAGS) -c -o life-menus.obj `if test -f 'menus.c'; then $(CYGPATH_W) 'menus.c'; else $(CYGPATH_W) '$(srcdir)/menus.c'; fi` |
| 449 | install-includeHEADERS: $(include_HEADERS) | ||
| 450 | @$(NORMAL_INSTALL) | ||
| 451 | @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ | ||
| 452 | if test -n "$$list"; then \ | ||
| 453 | echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \ | ||
| 454 | $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \ | ||
| 455 | fi; \ | ||
| 456 | for p in $$list; do \ | ||
| 457 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
| 458 | echo "$$d$$p"; \ | ||
| 459 | done | $(am__base_list) | \ | ||
| 460 | while read files; do \ | ||
| 461 | echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ | ||
| 462 | $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ | ||
| 463 | done | ||
| 464 | |||
| 465 | uninstall-includeHEADERS: | ||
| 466 | @$(NORMAL_UNINSTALL) | ||
| 467 | @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ | ||
| 468 | files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ | ||
| 469 | dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) | ||
| 470 | 422 | ||
| 471 | ID: $(am__tagged_files) | 423 | ID: $(am__tagged_files) |
| 472 | $(am__define_uniq_tagged_files); mkid -fID $$unique | 424 | $(am__define_uniq_tagged_files); mkid -fID $$unique |
| @@ -554,7 +506,7 @@ check-am: all-am | |||
| 554 | check: check-am | 506 | check: check-am |
| 555 | all-am: Makefile $(PROGRAMS) $(HEADERS) | 507 | all-am: Makefile $(PROGRAMS) $(HEADERS) |
| 556 | installdirs: | 508 | installdirs: |
| 557 | for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(includedir)"; do \ | 509 | for dir in "$(DESTDIR)$(bindir)"; do \ |
| 558 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | 510 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ |
| 559 | done | 511 | done |
| 560 | install: install-am | 512 | install: install-am |
| @@ -609,7 +561,7 @@ info: info-am | |||
| 609 | 561 | ||
| 610 | info-am: | 562 | info-am: |
| 611 | 563 | ||
| 612 | install-data-am: install-includeHEADERS | 564 | install-data-am: |
| 613 | 565 | ||
| 614 | install-dvi: install-dvi-am | 566 | install-dvi: install-dvi-am |
| 615 | 567 | ||
| @@ -654,7 +606,7 @@ ps: ps-am | |||
| 654 | 606 | ||
| 655 | ps-am: | 607 | ps-am: |
| 656 | 608 | ||
| 657 | uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS | 609 | uninstall-am: uninstall-binPROGRAMS |
| 658 | 610 | ||
| 659 | .MAKE: install-am install-strip | 611 | .MAKE: install-am install-strip |
| 660 | 612 | ||
| @@ -664,13 +616,13 @@ uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS | |||
| 664 | distdir dvi dvi-am html html-am info info-am install \ | 616 | distdir dvi dvi-am html html-am info info-am install \ |
| 665 | install-am install-binPROGRAMS install-data install-data-am \ | 617 | install-am install-binPROGRAMS install-data install-data-am \ |
| 666 | install-dvi install-dvi-am install-exec install-exec-am \ | 618 | install-dvi install-dvi-am install-exec install-exec-am \ |
| 667 | install-html install-html-am install-includeHEADERS \ | 619 | install-html install-html-am install-info install-info-am \ |
| 668 | install-info install-info-am install-man install-pdf \ | 620 | install-man install-pdf install-pdf-am install-ps \ |
| 669 | install-pdf-am install-ps install-ps-am install-strip \ | 621 | install-ps-am install-strip installcheck installcheck-am \ |
| 670 | installcheck installcheck-am installdirs maintainer-clean \ | 622 | installdirs maintainer-clean maintainer-clean-generic \ |
| 671 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | 623 | mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \ |
| 672 | mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ | 624 | ps ps-am tags tags-am uninstall uninstall-am \ |
| 673 | uninstall-am uninstall-binPROGRAMS uninstall-includeHEADERS | 625 | uninstall-binPROGRAMS |
| 674 | 626 | ||
| 675 | .PRECIOUS: Makefile | 627 | .PRECIOUS: Makefile |
| 676 | 628 | ||
| @@ -261,5 +261,5 @@ int main (int argc, char * argv[]) { | |||
| 261 | delwin(stdscr); | 261 | delwin(stdscr); |
| 262 | free(map); | 262 | free(map); |
| 263 | map = NULL; | 263 | map = NULL; |
| 264 | exit(EXIT_SUCCESS); | 264 | return 0; |
| 265 | } | 265 | } |
diff --git a/test/blank.sh b/test/blank.sh index e375e97..33364de 100755 --- a/test/blank.sh +++ b/test/blank.sh | |||
| @@ -1,3 +1,3 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | echo -n 'q' | ../src/life 2>&1 > /dev/null | 3 | echo -n 'q' | ../src/life > /dev/null 2>&1 |
diff --git a/test/sanity b/test/sanity index e2a8af0..376fae9 100755 --- a/test/sanity +++ b/test/sanity | |||
| @@ -1,3 +1,3 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | exec ../src/life -V > /dev/null 2>&1 | 3 | ../src/life -V > /dev/null 2>&1 |
