diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-02-21 15:45:26 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-02-21 15:45:26 +0000 |
commit | 6dab8688a9499c94048d74cb19979af437980d67 (patch) | |
tree | 768a704247b2881d02ce6556816b5622f27411c6 /configure.in | |
parent | 1999031e0438e50a8037d2e3022a55c4db94637a (diff) | |
download | glibc-6dab8688a9499c94048d74cb19979af437980d67.tar.gz glibc-6dab8688a9499c94048d74cb19979af437980d67.tar.xz glibc-6dab8688a9499c94048d74cb19979af437980d67.zip |
Uodate.
* configure.in: Don't check fir libgd if user set --without-gd. Patch by Achim Gottinger <achim@gentoo.org>.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/configure.in b/configure.in index 8b345de08a..2b2faa4ba5 100644 --- a/configure.in +++ b/configure.in @@ -1324,16 +1324,20 @@ fi dnl Check whether we have the gd library available. AC_MSG_CHECKING(for libgd) -old_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS $libgd_include" -old_LDFLAGS="$LDFLAGS" -LDFLAGS="$LDFLAGS $libgd_ldflags" -old_LIBS="$LIBS" -LIBS="$LIBS -lgd -lpng -lz -lm" -AC_TRY_LINK([#include <gd.h>], [gdImagePng (0, 0)], LIBGD=yes, LIBGD=no) -CFLAGS="$old_CFLAGS" -LDFLAGS="$old_LDFLAGS" -LIBS="$old_LIBS" +if test "$with_gd" != "no"; then + old_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $libgd_include" + old_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $libgd_ldflags" + old_LIBS="$LIBS" + LIBS="$LIBS -lgd -lpng -lz -lm" + AC_TRY_LINK([#include <gd.h>], [gdImagePng (0, 0)], LIBGD=yes, LIBGD=no) + CFLAGS="$old_CFLAGS" + LDFLAGS="$old_LDFLAGS" + LIBS="$old_LIBS" +else + LIBGD=no +fi AC_MSG_RESULT($LIBGD) AC_SUBST(LIBGD) |