diff options
Diffstat (limited to 'contrib/amd/m4/macros/opt_ldflags.m4')
-rw-r--r-- | contrib/amd/m4/macros/opt_ldflags.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/amd/m4/macros/opt_ldflags.m4 b/contrib/amd/m4/macros/opt_ldflags.m4 new file mode 100644 index 0000000..9afd9a9 --- /dev/null +++ b/contrib/amd/m4/macros/opt_ldflags.m4 @@ -0,0 +1,22 @@ +dnl ###################################################################### +dnl Initial settings for LDFLAGS (-L options) +dnl NOTE: this is for configuration as well as compilations! +AC_DEFUN(AMU_OPT_LDFLAGS, +[AC_MSG_CHECKING(for configuration/compilation (-L) library flags) +AC_ARG_ENABLE(ldflags, +AC_HELP_STRING([--enable-ldflags=ARG], + [configure/compile with ARG (-L) library flags]), +[ +if test "$enableval" = "" || test "$enableval" = "yes" || test "$enableval" = "no"; then + AC_MSG_ERROR(ldflags must be supplied if option is used) +fi +# use supplied options +LDFLAGS="$LDFLAGS $enableval" +export LDFLAGS +AC_MSG_RESULT($enableval) +], [ + # default is to have no additional flags + AC_MSG_RESULT(none) +]) +]) +dnl ====================================================================== |