aboutsummaryrefslogtreecommitdiffstats
path: root/m4/mpd_check_cflag.m4
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-07-30 11:10:04 +0200
committerMax Kellermann <max@duempel.org>2012-07-30 11:10:04 +0200
commit18da582c875bc331aa91efcd1969219f4406706d (patch)
tree9866e958b55707441da8a32cb67e37ce7a084c5a /m4/mpd_check_cflag.m4
parent0562cf99ba907f10c7d28b0bb6dd2d846e0947b8 (diff)
downloadmpd-18da582c875bc331aa91efcd1969219f4406706d.tar.gz
mpd-18da582c875bc331aa91efcd1969219f4406706d.tar.xz
mpd-18da582c875bc331aa91efcd1969219f4406706d.zip
configure.ac: replace MPD_CHECK_FLAG with autoconf-archive scripts
Use standard scripts instead of MPD's custom implementation.
Diffstat (limited to '')
-rw-r--r--m4/mpd_check_cflag.m418
1 files changed, 0 insertions, 18 deletions
diff --git a/m4/mpd_check_cflag.m4 b/m4/mpd_check_cflag.m4
deleted file mode 100644
index 8e7144936..000000000
--- a/m4/mpd_check_cflag.m4
+++ /dev/null
@@ -1,18 +0,0 @@
-AC_DEFUN([MPD_CHECK_FLAG],[
- var=`echo "$1" | tr "=-" "__"`
- AC_CACHE_CHECK([whether the C compiler accepts $1],
- [mpd_check_cflag_$var],[
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $1"
- AC_COMPILE_IFELSE([AC_LANG_SOURCE([
- int main(void) { return 0; }
- ])], [ eval "mpd_check_cflag_$var=yes"
- ], [ eval "mpd_check_cflag_$var=no" ])
- CFLAGS="$save_CFLAGS"
- ])
- if eval "test x`echo '$mpd_check_cflag_'$var` = xyes"
- then
- AM_CFLAGS="$AM_CFLAGS $1"
- fi
- ])
-])