This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Patch to disable libgd support via -with-gd=no
- To: libc-alpha at sources dot redhat dot com
- Subject: Patch to disable libgd support via -with-gd=no
- From: 320095285153-0001 at t-online dot de (Achim Gottinger)
- Date: Tue, 20 Feb 2001 10:49:10 +0100
- Reply-To: achim at gentoo dot org
Hi devs,
I made a patch for glibc-2.2.2 that allows turning off libgd support
even if it is available on the system if you use --with-gd=no.
Andreas Jäger told me to send this patch to you guys for a review.
I tested it over here and it worked for me.
achim~
--- configure.orig Tue Feb 20 10:44:30 2001
+++ configure.in Tue Feb 20 11:03:14 2001
@@ -1324,6 +1324,7 @@
dnl Check whether we have the gd library available.
AC_MSG_CHECKING(for libgd)
+if test "$with_gd" != "no"; then
old_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $libgd_include"
old_LDFLAGS="$LDFLAGS"
@@ -1334,6 +1335,9 @@
CFLAGS="$old_CFLAGS"
LDFLAGS="$old_LDFLAGS"
LIBS="$old_LIBS"
+else
+LIBGD="no"
+fi
AC_MSG_RESULT($LIBGD)
AC_SUBST(LIBGD)