diff options
author | James Peach <jpeach@samba.org> | 2006-02-10 02:46:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:10:01 -0500 |
commit | 457e6ac0430abc9961747366e0ec90d755362d1d (patch) | |
tree | 36f48006e99c67f694a96b3f1ccc5d58d2eba735 /source3/aclocal.m4 | |
parent | e2ad693d032814506e4bf405880259135794936a (diff) | |
download | samba-457e6ac0430abc9961747366e0ec90d755362d1d.tar.gz samba-457e6ac0430abc9961747366e0ec90d755362d1d.tar.bz2 samba-457e6ac0430abc9961747366e0ec90d755362d1d.zip |
r13425: Revert all the "clever" compiler options checks. They broke
the build on Solaris, AIX and S390. The fundamental problem is
that macros like AX_CFLAGS_IRIX_OPTION can spuriously succeed.
(This used to be commit 30122f61c35b1af977efd6e4727204c2e2e1c7a3)
Diffstat (limited to 'source3/aclocal.m4')
-rw-r--r-- | source3/aclocal.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/aclocal.m4 b/source3/aclocal.m4 index 3d6642d373..86c43f80dc 100644 --- a/source3/aclocal.m4 +++ b/source3/aclocal.m4 @@ -76,6 +76,18 @@ AC_DEFUN(SMB_SUBSYSTEM, ifelse([$2], , :, [rm -f $2]) ]) +dnl AC_PROG_CC_FLAG(flag) +AC_DEFUN(AC_PROG_CC_FLAG, +[AC_CACHE_CHECK(whether ${CC-cc} accepts -$1, ac_cv_prog_cc_$1, +[echo 'void f(){}' > conftest.c +if test -z "`${CC-cc} -$1 -c conftest.c 2>&1`"; then + ac_cv_prog_cc_$1=yes +else + ac_cv_prog_cc_$1=no +fi +rm -f conftest* +])]) + dnl see if a declaration exists for a function or variable dnl defines HAVE_function_DECL if it exists dnl AC_HAVE_DECL(var, includes) |