]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Delete configure options --with-lib-path and --with-include-path.
authorNiels Möller <nisse@lysator.liu.se>
Thu, 18 Sep 2025 17:57:39 +0000 (19:57 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Thu, 18 Sep 2025 17:57:39 +0000 (19:57 +0200)
ChangeLog
aclocal.m4
configure.ac

index b3fbaa803b70d45ab51f44e6ac02cd38ad3e8e0d..bb61676194e0a3ac7105bdda7e0b6e117a9045a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-09-18  Niels Möller  <nisse@lysator.liu.se>
+
+       * configure.ac: Delete unusual configure options --with-lib-path
+       and --with-lib-path.
+       * aclocal.m4 (LSH_PATH_ADD, LSH_RPATH_ADD, LSH_RPATH_INIT)
+       (LSH_RPATH_FIX): Deleted now unused macros.
+
 2025-09-15  Niels Möller  <nisse@lysator.liu.se>
 
        * slh-dsa-sha2-128f.c (slh_dsa_sha2_128f_root)
index de7f23316694c8ec8f92438f03afa4f42d04c03e..73bf0cfbf39a60ec3cf6acc04635bbdd8f0ca7cc 100644 (file)
@@ -38,112 +38,6 @@ AC_CACHE_VAL(lsh_cv_sys_ccpic,[
 CCPIC="$lsh_cv_sys_ccpic"
 AC_MSG_RESULT($CCPIC)])
 
-dnl LSH_PATH_ADD(path-id, directory)
-AC_DEFUN([LSH_PATH_ADD],
-[AC_MSG_CHECKING($2)
-ac_exists=no
-if test -d "$2/." ; then
-  ac_real_dir=`cd $2 && pwd`
-  if test -n "$ac_real_dir" ; then
-    ac_exists=yes
-    for old in $1_REAL_DIRS ; do
-      ac_found=no
-      if test x$ac_real_dir = x$old ; then
-        ac_found=yes;
-       break;
-      fi
-    done
-    if test $ac_found = yes ; then
-      AC_MSG_RESULT(already added)
-    else
-      AC_MSG_RESULT(added)
-      # LDFLAGS="$LDFLAGS -L $2"
-      $1_REAL_DIRS="$ac_real_dir [$]$1_REAL_DIRS"
-      $1_DIRS="$2 [$]$1_DIRS"
-    fi
-  fi
-fi
-if test $ac_exists = no ; then
-  AC_MSG_RESULT(not found)
-fi
-])
-
-dnl LSH_RPATH_ADD(dir)
-AC_DEFUN([LSH_RPATH_ADD], [LSH_PATH_ADD(RPATH_CANDIDATE, $1)])
-
-dnl LSH_RPATH_INIT(candidates)
-AC_DEFUN([LSH_RPATH_INIT],
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
-AC_MSG_CHECKING([for -R flag])
-RPATHFLAG=''
-case "$host_os" in
-  osf1*)               RPATHFLAG="-rpath " ;;
-  irix6.*|irix5.*)     RPATHFLAG="-rpath " ;;
-  solaris*)
-    if test "$TCC" = "yes"; then
-      # tcc doesn't know about -R
-      RPATHFLAG="-Wl,-R,"
-    else
-      RPATHFLAG=-R
-    fi
-    ;;
-  linux*|freebsd*)     RPATHFLAG="-Wl,-rpath," ;;
-  *)                   RPATHFLAG="" ;;
-esac
-
-if test x$RPATHFLAG = x ; then
-  AC_MSG_RESULT(none)
-else
-  AC_MSG_RESULT([using $RPATHFLAG])
-fi
-
-RPATH_CANDIDATE_REAL_DIRS=''
-RPATH_CANDIDATE_DIRS=''
-
-AC_MSG_RESULT([Searching for libraries])
-
-for d in $1 ; do
-  LSH_RPATH_ADD($d)
-done
-])    
-
-dnl Try to execute a main program, and if it fails, try adding some
-dnl -R flag.
-dnl LSH_RPATH_FIX
-AC_DEFUN([LSH_RPATH_FIX],
-[if test $cross_compiling = no -a "x$RPATHFLAG" != x ; then
-  ac_success=no
-  AC_RUN_IFELSE([AC_LANG_SOURCE([[int main(int argc, char **argv) { return 0; }]])],
-    [ac_success=yes], [ac_success=no], [:])
-  
-  if test $ac_success = no ; then
-    AC_MSG_CHECKING([Running simple test program failed. Trying -R flags])
-dnl echo RPATH_CANDIDATE_DIRS = $RPATH_CANDIDATE_DIRS
-    ac_remaining_dirs=''
-    ac_rpath_save_LDFLAGS="$LDFLAGS"
-    for d in $RPATH_CANDIDATE_DIRS ; do
-      if test $ac_success = yes ; then
-       ac_remaining_dirs="$ac_remaining_dirs $d"
-      else
-       LDFLAGS="$RPATHFLAG$d $LDFLAGS"
-dnl echo LDFLAGS = $LDFLAGS
-       AC_RUN_IFELSE([AC_LANG_SOURCE([[int main(int argc, char **argv) { return 0; }]])],
-         [ac_success=yes
-         ac_rpath_save_LDFLAGS="$LDFLAGS"
-         AC_MSG_RESULT([adding $RPATHFLAG$d])
-         ],
-         [ac_remaining_dirs="$ac_remaining_dirs $d"], [:])
-       LDFLAGS="$ac_rpath_save_LDFLAGS"
-      fi
-    done
-    RPATH_CANDIDATE_DIRS=$ac_remaining_dirs
-  fi
-  if test $ac_success = no ; then
-    AC_MSG_RESULT(failed)
-  fi
-fi
-])
-
 dnl LSH_GCC_ATTRIBUTES
 dnl Check for gcc's __attribute__ construction
 
index 53e9013c8aee53b12cffa97f3c175b3095ac2d50..c49a23ddf09837fc4d79d0f5da3dceb249a1dfe6 100644 (file)
@@ -25,22 +25,6 @@ AC_SUBST([MINOR_VERSION])
 AC_CANONICAL_HOST
 
 # Command line options
-AC_ARG_WITH(include-path,
-  AS_HELP_STRING([--with-include-path], [A colon-separated list of directories to search for include files]),,
-  [with_include_path=''])
-
-if test x$with_include_path != x ; then
-  CPPFLAGS="$CPPFLAGS -I`echo $with_include_path | sed 's/:/ -I/g'`"
-fi
-
-AC_ARG_WITH(lib-path,
-  AS_HELP_STRING([--with-lib-path], [A colon-separated list of directories to search for libraries]),,
-  [with_lib_path=''])
-
-if test x$with_lib_path != x ; then
-  LDFLAGS="$LDFLAGS -L`echo $with_lib_path | sed 's/:/ -L/g'`"
-fi
-
 AC_ARG_ENABLE(public-key,
   AS_HELP_STRING([--disable-public-key], [Disable public key algorithms]),,
   [enable_public_key=yes])
@@ -141,11 +125,6 @@ if test "$enable_extra_asserts" = yes ; then
   AC_DEFINE(WITH_EXTRA_ASSERTS)
 fi
 
-LSH_RPATH_INIT([`echo $with_lib_path | sed 's/:/ /g'` \
-    `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"` \
-    /usr/local/lib /sw/local/lib /sw/lib \
-    /usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib /usr/pkg/lib])
-
 # Checks for programs.
 AC_PROG_CC
 
@@ -270,9 +249,6 @@ if test "x$enable_public_key" = "xyes" ; then
     [GNU MP not found, or too old. GMP-6.1.0 or later is needed, see https://gmplib.org/.
     Support for public key algorithms will be unavailable.])]
         enable_public_key=no)
-
-    # Add -R flags needed to run programs linked with gmp
-    LSH_RPATH_FIX
   fi
 fi