- Propogate LD through to Makefile
diff --git a/configure.in b/configure.in
index 27317be..81265f1 100644
--- a/configure.in
+++ b/configure.in
@@ -4,10 +4,6 @@
 AC_PROG_CC
 AC_CANONICAL_HOST
 
-# C Compiler features
-if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall"; fi
-AC_C_INLINE
-
 # Checks for programs.
 AC_PROG_CPP
 AC_PROG_RANLIB
@@ -16,6 +12,17 @@
 AC_PATH_PROG(PERL, perl)
 AC_SUBST(PERL)
 
+if test -z "$LD" ; then
+	LD=$CC
+fi
+AC_SUBST(LD)
+	
+# C Compiler features
+AC_C_INLINE
+if test "$GCC" = "yes"; then 
+	CFLAGS="$CFLAGS -Wall"
+fi
+
 # Check for some target-specific stuff
 case "$host" in
 *-*-aix*)