]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
rpath fix proper fix
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 1 Mar 2010 15:48:31 +0000 (15:48 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 1 Mar 2010 15:48:31 +0000 (15:48 +0000)
git-svn-id: file:///svn/unbound/trunk@2003 be551aaa-1e26-0410-a405-d3ace91eadb9

acx_nlnetlabs.m4
configure

index 692ae004c4add707eaa305809e12a47ed6bc4283..bb7ac286722bdb4348a3ccaf549c78db7b68b7fd 100644 (file)
@@ -2,7 +2,8 @@
 # Copyright 2009, Wouter Wijngaards, NLnet Labs.   
 # BSD licensed.
 #
-# Version 7
+# Version 8
+# 2010-03-01 Fix RPATH using CONFIG_COMMANDS to run at the very end.
 # 2010-02-18 WITH_SSL outputs the LIBSSL_LDFLAGS, LIBS, CPPFLAGS seperate, -ldl
 # 2010-02-01 added ACX_CHECK_MEMCMP_SIGNED, AHX_MEMCMP_BROKEN
 # 2010-01-20 added AHX_COONFIG_STRLCAT
@@ -556,12 +557,14 @@ AC_ARG_ENABLE(rpath,
         [  --disable-rpath         disable hardcoded rpath (default=enabled)],
        enable_rpath=$enableval, enable_rpath=yes)
 if test "x$enable_rpath" = xno; then
-       AC_MSG_RESULT([Fixing libtool for -rpath problems.])
+       dnl AC_MSG_RESULT([Fixing libtool for -rpath problems.])
+       AC_CONFIG_COMMANDS([disable-rpath], [
        sed < libtool > libtool-2 \
        's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
        mv libtool-2 libtool
        chmod 755 libtool
        libtool="./libtool"
+       ])
 fi
 ])
 
index 5af6231bbbf8fb87e500c262dc650567a2424dc0..9a00c4768e0b1cb5a071f53c7fd6cf7b91a770ec 100755 (executable)
--- a/configure
+++ b/configure
@@ -15559,13 +15559,8 @@ else
 fi
 
 if test "x$enable_rpath" = xno; then
-       { $as_echo "$as_me:$LINENO: result: Fixing libtool for -rpath problems." >&5
-$as_echo "Fixing libtool for -rpath problems." >&6; }
-       sed < libtool > libtool-2 \
-       's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
-       mv libtool-2 libtool
-       chmod 755 libtool
-       libtool="./libtool"
+               ac_config_commands="$ac_config_commands disable-rpath"
+
 fi
 
 
@@ -24019,6 +24014,7 @@ for ac_config_target in $ac_config_targets
 do
   case $ac_config_target in
     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
+    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
     "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
@@ -25271,6 +25267,13 @@ _LT_EOF
   chmod +x "$ofile"
 
  ;;
+    "disable-rpath":C)
+       sed < libtool > libtool-2 \
+       's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
+       mv libtool-2 libtool
+       chmod 755 libtool
+       libtool="./libtool"
+        ;;
 
   esac
 done # for ac_tag