From a086d9b0c33d54bbce83fafe4057e8b8dc28a35e Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 30 Oct 2012 15:02:11 -0700 Subject: Imported Upstream version 0.13 --- acinclude.m4 | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 acinclude.m4 (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 new file mode 100644 index 0000000..82e5df6 --- /dev/null +++ b/acinclude.m4 @@ -0,0 +1,44 @@ +dnl +dnl Add macros +dnl JAPHAR_GREP_CFLAGS +dnl + +dnl +dnl JAPHAR_GREP_CFLAGS(flag, cmd_if_missing, cmd_if_present) +dnl +dnl From Japhar. Report changes to japhar@hungry.com +dnl +AC_DEFUN(JAPHAR_GREP_CFLAGS, +[case "$CFLAGS" in +"$1" | "$1 "* | *" $1" | *" $1 "* ) + ifelse($#, 3, [$3], [:]) + ;; +*) + $2 + ;; +esac +]) + +AC_DEFUN(CHRPATH_LDRPATH_OPTION, +[AC_REQUIRE([AC_CANONICAL_TARGET])[]dnl +case "$target" in + *-linux*) + LDRPATH=-Wl,-rpath, + ;; + *-*-irix*|*-*-osf*) + LDRPATH="-rpath " + ;; + *-*-hpux*) + # Hm, this seem to set runpath on ia64, not rpath + LDRPATH="-Wl,+b," + ;; + *-*-darwin*) + # No idea how to add rpath/runpath on Darwin + LDRPATH="" + ;; + *) + LDRPATH="-R " + ;; +esac +AC_SUBST(LDRPATH) +]) -- cgit v1.2.3