comparison configure @ 84:ac0620f6398e r20-0b92

Import from CVS: tag r20-0b92
author cvs
date Mon, 13 Aug 2007 09:08:29 +0200
parents 6a378aca36af
children 821dec489c24
comparison
equal deleted inserted replaced
83:ba3ba6e17456 84:ac0620f6398e
3897 rm -rf conftest* 3897 rm -rf conftest*
3898 with_png="no" 3898 with_png="no"
3899 fi 3899 fi
3900 rm -f conftest* 3900 rm -f conftest*
3901 } 3901 }
3902 test -z "${with_png}" && { ac_save_LIBS="${LIBS}" 3902 test -z "${with_png}" && { test -n "$silent" || echo "checking for pow"
3903 cat > conftest.${ac_ext} <<EOF
3904 #include "confdefs.h"
3905 #include <ctype.h>
3906 int main() { return 0; }
3907 int t() {
3908 /* The GNU C library defines this for functions which it implements
3909 to always fail with ENOSYS. Some functions are actually named
3910 something starting with __ and the normal name is an alias. */
3911 #if defined (__stub_pow) || defined (__stub___pow)
3912 choke me
3913 #else
3914 /* Override any gcc2 internal prototype to avoid an error. */
3915 extern char pow(); pow();
3916 #endif
3917 ; return 0; }
3918 EOF
3919 if eval $ac_compile; then
3920 :
3921 else
3922 rm -rf conftest*
3923 with_png="no"
3924 fi
3925 rm -f conftest*
3926 }
3927 if test -z "${with_png}" ; then
3928 ac_save_LIBS="${LIBS}"
3929 LIBS="${LIBS} -lz"
3930 ac_have_lib=""
3931 test -n "$silent" || echo "checking for -lz"
3932 cat > conftest.${ac_ext} <<EOF
3933 #include "confdefs.h"
3934
3935 int main() { return 0; }
3936 int t() { main();; return 0; }
3937 EOF
3938 if eval $ac_compile; then
3939 rm -rf conftest*
3940 ac_have_lib="1"
3941
3942 fi
3943 rm -f conftest*
3944 LIBS="${ac_save_LIBS}"
3945 if test -n "${ac_have_lib}"; then
3946 :; with_png="yes"
3947 else
3948 :;
3949 fi
3950
3951 test -z "${with_png}" && { ac_save_LIBS="${LIBS}"
3952 LIBS="${LIBS} -lgz"
3953 ac_have_lib=""
3954 test -n "$silent" || echo "checking for -lgz"
3955 cat > conftest.${ac_ext} <<EOF
3956 #include "confdefs.h"
3957
3958 int main() { return 0; }
3959 int t() { main();; return 0; }
3960 EOF
3961 if eval $ac_compile; then
3962 rm -rf conftest*
3963 ac_have_lib="1"
3964
3965 fi
3966 rm -f conftest*
3967 LIBS="${ac_save_LIBS}"
3968 if test -n "${ac_have_lib}"; then
3969 :; with_png="gnuz"
3970 else
3971 :; with_png="no"
3972 fi
3973 }
3974 if test "${with_png}" != "no"; then
3975 png_save_libs="${LIBS}"
3976 case "${with_png}" in
3977 yes ) LIBS="${LIBS} -lz" ;;
3978 gnuz ) LIBS="${LIBS} -lgz" ;;
3979 esac
3980 ac_save_LIBS="${LIBS}"
3903 LIBS="${LIBS} -lpng" 3981 LIBS="${LIBS} -lpng"
3904 ac_have_lib="" 3982 ac_have_lib=""
3905 test -n "$silent" || echo "checking for -lpng" 3983 test -n "$silent" || echo "checking for -lpng"
3906 cat > conftest.${ac_ext} <<EOF 3984 cat > conftest.${ac_ext} <<EOF
3907 #include "confdefs.h" 3985 #include "confdefs.h"
3919 if test -n "${ac_have_lib}"; then 3997 if test -n "${ac_have_lib}"; then
3920 :; 3998 :;
3921 else 3999 else
3922 :; with_png="no" 4000 :; with_png="no"
3923 fi 4001 fi
3924 } 4002
3925 test -z "${with_png}" && { ac_save_LIBS="${LIBS}" 4003 LIBS="$png_save_libs"
3926 LIBS="${LIBS} -lz" 4004 fi
3927 ac_have_lib="" 4005 fi
3928 test -n "$silent" || echo "checking for -lz"
3929 cat > conftest.${ac_ext} <<EOF
3930 #include "confdefs.h"
3931
3932 int main() { return 0; }
3933 int t() { main();; return 0; }
3934 EOF
3935 if eval $ac_compile; then
3936 rm -rf conftest*
3937 ac_have_lib="1"
3938
3939 fi
3940 rm -f conftest*
3941 LIBS="${ac_save_LIBS}"
3942 if test -n "${ac_have_lib}"; then
3943 :; with_png="yes"
3944 else
3945 :;
3946 fi
3947 }
3948 test -z "${with_png}" && { ac_save_LIBS="${LIBS}"
3949 LIBS="${LIBS} -lgz"
3950 ac_have_lib=""
3951 test -n "$silent" || echo "checking for -lgz"
3952 cat > conftest.${ac_ext} <<EOF
3953 #include "confdefs.h"
3954
3955 int main() { return 0; }
3956 int t() { main();; return 0; }
3957 EOF
3958 if eval $ac_compile; then
3959 rm -rf conftest*
3960 ac_have_lib="1"
3961
3962 fi
3963 rm -f conftest*
3964 LIBS="${ac_save_LIBS}"
3965 if test -n "${ac_have_lib}"; then
3966 :; with_png="gnuz"
3967 else
3968 :; with_png="no"
3969 fi
3970 }
3971 case "${with_png}" in 4006 case "${with_png}" in
3972 yes ) 4007 yes )
3973 { 4008 {
3974 test -n "$verbose" && \ 4009 test -n "$verbose" && \
3975 echo " defining HAVE_PNG" 4010 echo " defining HAVE_PNG"