Fixed return type of _set_entity_ident()
[libfirm] / aclocal.m4
index 45c8636..dd7337a 100644 (file)
@@ -1,16 +1,19 @@
-
-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
@@ -28,6 +31,7 @@ int foo() { return 0; }
 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