summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-03-04 15:25:13 +0100
committerSimon Josefsson <simon@josefsson.org>2009-03-04 15:25:13 +0100
commite06297f5dced46aafc3deac1805929acd4d9ce02 (patch)
tree01e3871eac5783154e77c2d3ae814abb56c556ff /m4
parentf6b9ec0b58fb3bd81818536fe8dbeeb522112760 (diff)
downloadlibtasn1-e06297f5dced46aafc3deac1805929acd4d9ce02.tar.gz
libtasn1-e06297f5dced46aafc3deac1805929acd4d9ce02.tar.bz2
libtasn1-e06297f5dced46aafc3deac1805929acd4d9ce02.zip
Use linker script test from gnulib.
Diffstat (limited to 'm4')
-rw-r--r--m4/linker-script.m429
1 files changed, 0 insertions, 29 deletions
diff --git a/m4/linker-script.m4 b/m4/linker-script.m4
deleted file mode 100644
index edf0469..0000000
--- a/m4/linker-script.m4
+++ /dev/null
@@ -1,29 +0,0 @@
-# linker-script.m4 serial 1
-dnl Copyright (C) 2008 Free Software Foundation, Inc.
-dnl This file is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-
-dnl From Simon Josefsson
-
-# sj_LINKER_SCRIPT()
-# -------------
-# Check if ld supports linker scripts, and define automake conditional
-# HAVE_LD_VERSION_SCRIPT if so.
-AC_DEFUN([sj_LINKER_SCRIPT],
-[
- AC_ARG_ENABLE([ld-version-script],
- AS_HELP_STRING([--enable-ld-version-script],
- [enable/disable linker version script (default is enabled when possible)]),
- [have_ld_version_script=$enableval], [])
- if test -z "$have_ld_version_script"; then
- AC_MSG_CHECKING([if -Wl,--version-script works])
- save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS -Wl,--version-script=$srcdir/lib/libtasn1.vers"
- AC_LINK_IFELSE(AC_LANG_PROGRAM([], []),
- [have_ld_version_script=yes], [have_ld_version_script=no])
- LDFLAGS="$save_LDFLAGS"
- AC_MSG_RESULT($have_ld_version_script)
- fi
- AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$have_ld_version_script" = "yes")
-])