GSS_S_PROMPTING_NEEDED is a bit
[cyrus-sasl.git] / cmulocal / libtoolhack.m4
1 dnl libtoolhack.m4--hack to make libtool behave better
2 dnl Rob Earhart
3 dnl $Id: libtoolhack.m4,v 1.4 2003/10/08 20:35:25 rjs3 Exp $
4
5 dnl Libtool tries to compile an empty file to see whether it can build
6 dnl shared libraries, and treats *any* warning as a problem.
7 dnl Solaris's and HP's cc complains about the empty file.  So we hack
8 dnl the CFLAGS to make cc not complain.
9
10 AC_DEFUN([CMU_PROG_LIBTOOL], [
11 AC_REQUIRE([AC_PROG_CC])
12 if test "$ac_cv_prog_gcc" = no; then
13   case "$host_os" in
14     solaris2*)
15       save_cflags="${CFLAGS}"
16       CFLAGS="-erroff=E_EMPTY_TRANSLATION_UNIT ${CFLAGS}"
17       ;;
18     hpux*)
19       save_cflags="${CFLAGS}"
20       CFLAGS="-w"
21       ;;
22   esac
23 fi
24
25 AC_PROG_LIBTOOL
26
27 if test "$ac_cv_prog_gcc" = no; then
28   case "$host_os" in
29     solaris2*|hpux*)
30       CFLAGS="${save_cflags}"
31   esac
32 fi
33 ])