diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2013-09-26 10:55:02 +0200 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2013-09-26 10:55:35 +0200 |
commit | 3b8efccf32c0da4a08609676910a4ad045e6d015 (patch) | |
tree | 8026c4c70adb338ad24433820e5f84937eab01cd /m4 | |
parent | 865aa20fe4b63fe6da45b1ac924c27f7ca16af13 (diff) |
m4: Get rid of AS_SCRUB_INCLUDE now that it's not used anymore
Diffstat (limited to 'm4')
-rw-r--r-- | m4/as-scrub-include.m4 | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/m4/as-scrub-include.m4 b/m4/as-scrub-include.m4 deleted file mode 100644 index 3ed49b0..0000000 --- a/m4/as-scrub-include.m4 +++ /dev/null @@ -1,36 +0,0 @@ -dnl as-scrub-include.m4 0.0.4 - -dnl autostars m4 macro for scrubbing CFLAGS of system include dirs -dnl because gcc 3.x complains about including system including dirs - -dnl Thomas Vander Stichele <thomas at apestaart dot org> - -dnl $Id: as-scrub-include.m4,v 1.7 2004/06/12 08:30:20 thomasvs Exp $ - -dnl This macro uses output of cpp -v and expects it to contain text that -dnl looks a little bit like this: -dnl #include <...> search starts here: -dnl /usr/local/include -dnl /usr/lib/gcc-lib/i386-redhat-linux/3.2/include -dnl /usr/include -dnl End of search list. - -dnl AS_SCRUB_INCLUDE(VAR) -dnl example -dnl AS_SCRUB_INCLUDE(CFLAGS) -dnl will remove all system include dirs from the given CFLAGS - -AC_DEFUN([AS_SCRUB_INCLUDE], -[ - GIVEN_CFLAGS=$[$1] - INCLUDE_DIRS=`echo | cpp -v 2>&1` - - dnl remove everything from this output between the "starts here" and "End of" - dnl line - INCLUDE_DIRS=`echo $INCLUDE_DIRS | sed -e 's/.*<...> search starts here://' | sed -e 's/End of search list.*//'` - for dir in $INCLUDE_DIRS; do - dnl use "" as the sed script so $dir gets expanded - GIVEN_CFLAGS=`echo $GIVEN_CFLAGS | sed -e "s#-I$dir ##"` - done - [$1]=$GIVEN_CFLAGS -]) |