]> code.delx.au - gnu-emacs/commitdiff
Fix test for dladdr
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 Feb 2016 15:46:59 +0000 (07:46 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 Feb 2016 15:47:48 +0000 (07:47 -0800)
Problem reported by Andreas Schwab in:
http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg00327.html
* configure.ac (dladdr): Link with LIBMODULES when checking for
this function.

configure.ac

index 57bde94d8542a28127cf9cf65d715a6948a42e11..1ff9c493586952449162e5833f96c605aa667a8b 100644 (file)
@@ -3360,7 +3360,7 @@ if test "${with_modules}" != "no"; then
   else
     SAVE_LIBS=$LIBS
     LIBS="$LIBS $LIBMODULES"
-    AC_CHECK_FUNCS([dlfunc])
+    AC_CHECK_FUNCS([dladdr dlfunc])
     LIBS=$SAVE_LIBS
   fi
 fi
@@ -3373,7 +3373,6 @@ if test "${HAVE_MODULES}" = yes; then
 fi
 AC_SUBST(MODULES_OBJ)
 AC_SUBST(LIBMODULES)
-AC_CHECK_FUNCS(dladdr)
 
 ### Use -lpng if available, unless '--with-png=no'.
 HAVE_PNG=no