| 3648 | # POSIX will say in a future version that running "rm -f" with no argument |
| 3649 | # is OK; and we want to be able to make that assumption in our Makefile |
| 3650 | # recipes. So use an aggressive probe to check that the usage we want is |
| 3651 | # actually supported "in the wild" to an acceptable degree. |
| 3652 | # See automake bug#10828. |
| 3653 | # To make any issue more visible, cause the running configure to be aborted |
| 3654 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 3655 | # user can still override this though. |
| 3656 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 3657 | cat >&2 <<'END' |
| 3658 | Oops! |
| 3659 | |
| 3660 | Your 'rm' program seems unable to run without file operands specified |
| 3661 | on the command line, even when the '-f' option is present. This is contrary |
| 3662 | to the behaviour of most rm programs out there, and not conforming with |
| 3663 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 3664 | |
| 3665 | Please tell bug-automake@gnu.org about your system, including the value |
| 3666 | of your $PATH and any error possibly output before this message. This |
| 3667 | can help us improve future automake versions. |
| 3668 | |
| 3669 | END |
| 3670 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 3671 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 3672 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 3673 | echo >&2 |
| 3674 | else |
| 3675 | cat >&2 <<'END' |
| 3676 | Aborting the configuration process, to ensure you take notice of the issue. |
| 3677 | |
| 3678 | You can download and install GNU coreutils to get an 'rm' implementation |
| 3679 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| 3680 | |
| 3681 | If you want to complete the configuration process using your problematic |
| 3682 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 3683 | to "yes", and re-run configure. |
| 3684 | |
| 3685 | END |
| 3686 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 3687 | fi |
| 3688 | fi |
| 4583 | |
| 4584 | ac_ext=c |
| 4585 | ac_cpp='$CPP $CPPFLAGS' |
| 4586 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4587 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4588 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 4590 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 4591 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 4592 | $as_echo_n "(cached) " >&6 |
| 4593 | else |
| 4594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4595 | /* end confdefs.h. */ |
| 4596 | |
| 4597 | int |
| 4598 | main () |
| 4599 | { |
| 4600 | |
| 4601 | ; |
| 4602 | return 0; |
| 4603 | } |
| 4604 | _ACEOF |
| 4605 | # Make sure it works both with $CC and with simple cc. |
| 4606 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 4607 | # compilers refuse to overwrite an existing .o file with -o, |
| 4608 | # though they will create one. |
| 4609 | am_cv_prog_cc_c_o=yes |
| 4610 | for am_i in 1 2; do |
| 4611 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 4612 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 4613 | ac_status=$? |
| 4614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4615 | (exit $ac_status); } \ |
| 4616 | && test -f conftest2.$ac_objext; then |
| 4617 | : OK |
| 4618 | else |
| 4619 | am_cv_prog_cc_c_o=no |
| 4620 | break |
| 4621 | fi |
| 4622 | done |
| 4623 | rm -f core conftest* |
| 4624 | unset am_i |
| 4625 | fi |
| 4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 4627 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 4628 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 4629 | # Losing compiler, so override with the script. |
| 4630 | # FIXME: It is wrong to rewrite CC. |
| 4631 | # But if we don't then we get into trouble of one sort or another. |
| 4632 | # A longer-term fix would be to have automake use am__CC in this case, |
| 4633 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 4634 | CC="$am_aux_dir/compile $CC" |
| 4635 | fi |
| 4636 | ac_ext=c |
| 4637 | ac_cpp='$CPP $CPPFLAGS' |
| 4638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4641 | |
19351 | | target_quartz=yes |
| 19450 | |
| 19451 | pkg_failed=no |
| 19452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_MAC" >&5 |
| 19453 | $as_echo_n "checking for GTK_MAC... " >&6; } |
| 19454 | |
| 19455 | if test -n "$PKG_CONFIG"; then |
| 19456 | if test -n "$GTK_MAC_CFLAGS"; then |
| 19457 | pkg_cv_GTK_MAC_CFLAGS="$GTK_MAC_CFLAGS" |
| 19458 | else |
| 19459 | if test -n "$PKG_CONFIG" && \ |
| 19460 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration\""; } >&5 |
| 19461 | ($PKG_CONFIG --exists --print-errors "gtk-mac-integration") 2>&5 |
| 19462 | ac_status=$? |
| 19463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 19464 | test $ac_status = 0; }; then |
| 19465 | pkg_cv_GTK_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration" 2>/dev/null` |
| 19466 | else |
| 19467 | pkg_failed=yes |
| 19468 | fi |
| 19469 | fi |
| 19470 | else |
| 19471 | pkg_failed=untried |
| 19472 | fi |
| 19473 | if test -n "$PKG_CONFIG"; then |
| 19474 | if test -n "$GTK_MAC_LIBS"; then |
| 19475 | pkg_cv_GTK_MAC_LIBS="$GTK_MAC_LIBS" |
| 19476 | else |
| 19477 | if test -n "$PKG_CONFIG" && \ |
| 19478 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration\""; } >&5 |
| 19479 | ($PKG_CONFIG --exists --print-errors "gtk-mac-integration") 2>&5 |
| 19480 | ac_status=$? |
| 19481 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 19482 | test $ac_status = 0; }; then |
| 19483 | pkg_cv_GTK_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration" 2>/dev/null` |
| 19484 | else |
| 19485 | pkg_failed=yes |
| 19486 | fi |
| 19487 | fi |
| 19488 | else |
| 19489 | pkg_failed=untried |
| 19490 | fi |
| 19491 | |
| 19492 | |
| 19493 | |
| 19494 | if test $pkg_failed = yes; then |
| 19495 | |
| 19496 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 19497 | _pkg_short_errors_supported=yes |
| 19498 | else |
| 19499 | _pkg_short_errors_supported=no |
| 19500 | fi |
| 19501 | if test $_pkg_short_errors_supported = yes; then |
| 19502 | GTK_MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk-mac-integration"` |
| 19503 | else |
| 19504 | GTK_MAC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk-mac-integration"` |
| 19505 | fi |
| 19506 | # Put the nasty error message in config.log where it belongs |
| 19507 | echo "$GTK_MAC_PKG_ERRORS" >&5 |
| 19508 | |
| 19509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19510 | $as_echo "no" >&6; } |
| 19511 | : |
| 19512 | elif test $pkg_failed = untried; then |
| 19513 | : |
| 19514 | else |
| 19515 | GTK_MAC_CFLAGS=$pkg_cv_GTK_MAC_CFLAGS |
| 19516 | GTK_MAC_LIBS=$pkg_cv_GTK_MAC_LIBS |
| 19517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19518 | $as_echo "yes" >&6; } |
| 19519 | |
| 19520 | $as_echo "#define HAVE_GTK_MAC_INTEGRATION 1" >>confdefs.h |
| 19521 | |
| 19522 | fi |