-
-dnl libFIRM Project
-
-dnl Macros for autoconf
-dnl $Id$
+dnl
+dnl Project: libFIRM
+dnl File name: aclocal.m4
+dnl Purpose: Macros for autoconf
+dnl Author: Till Riedel
+dnl Modified by:
+dnl Created:
+dnl CVS-ID: $Id$
+dnl Copyright: (c) 2002-2003 Universität Karlsruhe
+dnl Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
+dnl
dnl Set variable `LD' to the name of the linker program.
-AC_DEFUN(LIBFIRM_PROG_LD,
+AC_DEFUN(LIBFIRM_PROG_LD,[
dnl AC_REQUIRE([AC_PROG_CC])
-[if test -z "$LD" && test "$GCC" = yes; then
- AC_CHECK_TOOL(LD, gld, "")
-fi
if test -z "$LD"; then
AC_CHECK_TOOL(LD, ld)
fi
EOF
if eval $ac_compile && mv conftest.o conftest2.o; then
cat > conftest.$ac_ext <<EOF
+extern int foo();
int main() { return foo(); }
EOF
if eval $ac_compile; then