From 6632a6c9dcb108d33393e42f61f8f18a05973668 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 9 Jun 2005 18:56:03 +0000 Subject: checking for additional libraries needed by mingw svn path=/trunk/externals/zexy/; revision=3149 --- src/configure.ac | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/configure.ac') diff --git a/src/configure.ac b/src/configure.ac index c94c1dc..49c4aa2 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -39,6 +39,9 @@ dnl Replace `main' with a function in -lc: AC_CHECK_LIB(c, main) AC_CHECK_LIB(crtdll, fclose) +AC_CHECK_LIB(coldname, lseek) +AC_CHECK_LIB(kernel32, main) + dnl Replace `main' with a function in -lm: AC_CHECK_LIB(m, main) dnl Replace `main' with a function in -lpthread: @@ -118,7 +121,24 @@ fi dnl if we don't have $LD set, we set it to $(CC) +dnl LD=${LD:=$CC} +if test "x$LD" = "x" +then + if test "x$host" != "x" + then + LD=${host}-ld + if $(which ${LD} > /dev/null) + then + : + else + LD="" + fi + fi +fi LD=${LD:=$CC} + + + dnl if we don't have $STRIP set, we set it to ${host}-strip or strip if test "x$STRIP" = "x" then -- cgit v1.2.1