Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 4 Oct 1999 23:15:01 +0000 (23:15 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 4 Oct 1999 23:15:01 +0000 (23:15 +0000)
* configure.in: Add additional options --with-gd-include and
--with-gd-lib to help people with strange installations.

ChangeLog
configure.in

index 2eddb29..a15f57e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 1999-10-04  Ulrich Drepper  <drepper@cygnus.com>
 
+       * configure.in: Add additional options --with-gd-include and
+       --with-gd-lib to help people with strange installations.
+
        * malloc/Makefile: Add libdl dependency to libmemprof.so.
        * malloc/Depend: New file.
 
index 3890039..28290d8 100644 (file)
@@ -37,15 +37,36 @@ AC_ARG_WITH(gd, dnl
   --with-gd=DIR           find libgd include dir and library with prefix DIR,
            [dnl
 case "$with_gd" in
-yes|''|no) config_vars="$config_vars
-libgd-LDFLAGS =" ;;
-*) config_vars="$config_vars
-CFLAGS-memprofstat.c = -I$withval/include
-libgd-LDFLAGS = -L$withval/lib"
-   libgd_include="-I$withval/include"
+yes|''|no) ;;
+*) libgd_include="-I$withval/include"
    libgd_ldflags="-L$withval/lib" ;;
 esac
 ])
+AC_ARG_WITH(gd-include, dnl
+  --with-gd-include=DIR   find libgd include files in DIR,
+            [dnl
+case "$with_gd_include" in
+''|no) ;;
+*) libgd_include="-I$withval" ;;
+esac
+])
+AC_ARG_WITH(gd-lib, dnl
+  --with-gd-lib=DIR       find libgd library files in DIR,
+            [dnl
+case "$with_gd_lib" in
+''|no) ;;
+*) libgd_ldflags="-L$withval" ;;
+esac
+])
+
+if test -n "$libgd_include"; then
+  config_vars="$config_vars
+CFLAGS-memprofstat.c = $libgd_include"
+fi
+if test -n "$libgd_ldflags"; then
+  config_vars="$config_vars
+libgd-LDFLAGS = $libgd_ldflags"
+fi
 
 dnl Arguments to specify presence of other packages/features.
 AC_ARG_WITH(fp, dnl