This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch to disable libgd support via -with-gd=no


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)
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]