-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# ld-output-def.m4 serial 2 | ||
dnl Copyright (C) 2008, 2009, 2010 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 | ||
dnl see http://www.gnu.org/software/hello/manual/gnulib/Visual-Studio-Compatibility.html | ||
|
||
|
||
# PD_LD_OUTPUT_DEF() | ||
# ------------- | ||
# Check if linker supports -Wl,--output-def and define automake | ||
# conditional HAVE_LD_OUTPUT_DEF if it is. | ||
AC_DEFUN([PD_LD_OUTPUT_DEF], | ||
[ | ||
AC_CACHE_CHECK([if gcc/ld supports -Wl,--output-def], | ||
[pd_cv_ld_output_def], | ||
[if test "$enable_shared" = no; then | ||
pd_cv_ld_output_def="not needed, shared libraries are disabled" | ||
else | ||
pd_ldflags_save=$LDFLAGS | ||
LDFLAGS="-Wl,--output-def,conftest.def" | ||
AC_LINK_IFELSE([AC_LANG_PROGRAM([])], | ||
[pd_cv_ld_output_def=yes], | ||
[pd_cv_ld_output_def=no]) | ||
rm -f conftest.def | ||
LDFLAGS="$pd_ldflags_save" | ||
fi]) | ||
AM_CONDITIONAL([HAVE_LD_OUTPUT_DEF], test "x$pd_cv_ld_output_def" = "xyes") | ||
]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters