Ticket #40795: patch-configure.diff

File patch-configure.diff, 9.4 KB (added by nano103, 11 years ago)
  • configure

    old new  
    765765GTK_LIBS
    766766GTK_CFLAGS
    767767LIBXMU
     768GTK_MAC_LIBS
     769GTK_MAC_CFLAGS
    768770LIBM
    769771GMODULE_LIBS
    770772GMODULE_CFLAGS
     
    10321034GOBJECT_LIBS
    10331035GMODULE_CFLAGS
    10341036GMODULE_LIBS
     1037GTK_MAC_CFLAGS
     1038GTK_MAC_LIBS
    10351039GTK_CFLAGS
    10361040GTK_LIBS
    10371041FFTW3_CFLAGS
     
    17771781              C compiler flags for GMODULE, overriding pkg-config
    17781782  GMODULE_LIBS
    17791783              linker flags for GMODULE, overriding pkg-config
     1784  GTK_MAC_CFLAGS
     1785              C compiler flags for GTK_MAC, overriding pkg-config
     1786  GTK_MAC_LIBS
     1787              linker flags for GTK_MAC, overriding pkg-config
    17801788  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
    17811789  GTK_LIBS    linker flags for GTK, overriding pkg-config
    17821790  FFTW3_CFLAGS
     
    31003108case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
    31013109
    31023110
    3103 am__api_version='1.13'
     3111am__api_version='1.14'
    31043112
    31053113# Find a good install program.  We prefer a C program (faster),
    31063114# so one script is as good as another.  But avoid the broken or
     
    36373645
    36383646
    36393647
     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.
     3656if rm -f && rm -fr && rm -rf; then : OK; else
     3657  cat >&2 <<'END'
     3658Oops!
     3659
     3660Your 'rm' program seems unable to run without file operands specified
     3661on the command line, even when the '-f' option is present.  This is contrary
     3662to the behaviour of most rm programs out there, and not conforming with
     3663the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
     3664
     3665Please tell bug-automake@gnu.org about your system, including the value
     3666of your $PATH and any error possibly output before this message.  This
     3667can help us improve future automake versions.
     3668
     3669END
     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'
     3676Aborting the configuration process, to ensure you take notice of the issue.
     3677
     3678You can download and install GNU coreutils to get an 'rm' implementation
     3679that behaves properly: <http://www.gnu.org/software/coreutils/>.
     3680
     3681If you want to complete the configuration process using your problematic
     3682'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
     3683to "yes", and re-run configure.
     3684
     3685END
     3686    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
     3687  fi
     3688fi
    36403689
    36413690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
    36423691$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
     
    45314580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    45324581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    45334582ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4583
     4584ac_ext=c
     4585ac_cpp='$CPP $CPPFLAGS'
     4586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4588ac_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; }
     4591if ${am_cv_prog_cc_c_o+:} false; then :
     4592  $as_echo_n "(cached) " >&6
     4593else
     4594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4595/* end confdefs.h.  */
     4596
     4597int
     4598main ()
     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
     4625fi
     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; }
     4628if 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"
     4635fi
     4636ac_ext=c
     4637ac_cpp='$CPP $CPPFLAGS'
     4638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4640ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4641
    45344642DEPDIR="${am__leading_dot}deps"
    45354643
    45364644ac_config_commands="$ac_config_commands depfiles"
     
    1197112079  # before this can be enabled.
    1197212080  hardcode_into_libs=yes
    1197312081
    11974   # Add ABI-specific directories to the system library path.
    11975   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
    11976 
    1197712082  # Append ld.so.conf contents to the search path
    1197812083  if test -f /etc/ld.so.conf; then
    1197912084    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    11980     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
    11981 
     12085    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    1198212086  fi
    1198312087
    1198412088  # We used to test for /lib/ld.so.1 and disable shared libraries on
     
    1580615910  # before this can be enabled.
    1580715911  hardcode_into_libs=yes
    1580815912
    15809   # Add ABI-specific directories to the system library path.
    15810   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
    15811 
    1581215913  # Append ld.so.conf contents to the search path
    1581315914  if test -f /etc/ld.so.conf; then
    1581415915    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    15815     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
    15816 
     15916    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    1581715917  fi
    1581815918
    1581915919  # We used to test for /lib/ld.so.1 and disable shared libraries on
     
    1928319383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdk_target" >&5
    1928419384$as_echo "$gdk_target" >&6; }
    1928519385remote_backend=none
    19286 target_quartz=no
    1928719386pangoft2=pangoft2
    1928819387case "$gdk_target" in
    1928919388  x11)
     
    1934819447    fi
    1934919448    ;;
    1935019449  quartz)
    19351     target_quartz=yes
     19450
     19451pkg_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
     19455if 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`
     19466else
     19467  pkg_failed=yes
     19468fi
     19469    fi
     19470else
     19471        pkg_failed=untried
     19472fi
     19473if 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`
     19484else
     19485  pkg_failed=yes
     19486fi
     19487    fi
     19488else
     19489        pkg_failed=untried
     19490fi
     19491
     19492
     19493
     19494if test $pkg_failed = yes; then
     19495
     19496if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
     19497        _pkg_short_errors_supported=yes
     19498else
     19499        _pkg_short_errors_supported=no
     19500fi
     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                :
     19512elif test $pkg_failed = untried; then
     19513        :
     19514else
     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
     19522fi
    1935219523    pangoft2=
    1935319524    ;;
    1935419525  win32)