Mercurial > hg > xemacs-beta
diff configure.ac @ 2667:4f72b178ae35
[xemacs-hg @ 2005-03-15 12:37:07 by malcolmp]
configure.ac OpenBSD, --with-cflags-optimization, PNG and TIFF fixes.
author | malcolmp |
---|---|
date | Tue, 15 Mar 2005 12:37:14 +0000 |
parents | d5a00a8fb31a |
children | b26d8b5d0d30 |
line wrap: on
line diff
--- a/configure.ac Tue Mar 15 11:56:35 2005 +0000 +++ b/configure.ac Tue Mar 15 12:37:14 2005 +0000 @@ -11,7 +11,7 @@ xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' ac_cpp='$CPP '"$xe_cppflags" -ac_compile='$CC -c $CFLAGS'"$xe_cppflags"' conftest.$ac_ext >&AS_MESSAGE_LOG_FD' +ac_compile='$CC -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext >&AS_MESSAGE_LOG_FD' ac_link='$CC -o conftest$ac_exeext $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' >&AS_MESSAGE_LOG_FD' ac_compiler_gnu=$ac_cv_c_compiler_gnu ]) @@ -1706,12 +1706,12 @@ else cflags_warning_specified=no; fi -if test "${cflags_optimization-unset}" != unset +if test "${with_cflags_optimization-unset}" != unset then cflags_optimization_specified=yes; else cflags_optimization_specified=no; fi -if test "${cflags_debugging-unset}" != unset +if test "${with_cflags_debugging-unset}" != unset then cflags_debugging_specified=yes; else cflags_debugging_specified=no; fi @@ -2048,11 +2048,11 @@ dnl Calculate optimization flags. These will be off by default in beta dnl versions and on in release versions. -if test -z "$with_optimization" ; then - if test -n "$emacs_is_beta" ; then +if test -z "$with_optimization"; then + if test -z "$emacs_is_beta" -o "$cflags_optimization_specified" = "yes"; then + with_optimization=yes + else with_optimization=no - else - with_optimization=yes fi fi @@ -3811,7 +3811,7 @@ png_problem="" test -z "$with_png" && { AC_CHECK_FUNC(pow, ,with_png=no) } test -z "$with_png" && { AC_CHECK_HEADER(png.h, ,with_png=no) } - test -z "$with_png" && { AC_CHECK_LIB(png, png_read_image,[:],with_png=no) } + test -z "$with_png" && { AC_CHECK_LIB(png, png_read_image,[:],with_png=no,[-lz]) } if test -z "$with_png"; then AC_MSG_CHECKING(for workable png version information) xe_check_libs="-lpng -lz" @@ -3847,7 +3847,7 @@ dnl autodetect TIFF test -z "$with_tiff" && { AC_CHECK_HEADER(tiffio.h, ,with_tiff=no) } - test -z "$with_tiff" && { AC_CHECK_LIB(tiff, TIFFClientOpen,[:],with_tiff=no) } + test -z "$with_tiff" && { AC_CHECK_LIB(tiff, TIFFClientOpen,[:],with_tiff=no,[-lz]) } test -z "$with_tiff" && with_tiff=yes if test "$with_tiff" = "yes"; then AC_DEFINE(HAVE_TIFF)