forked from osmocom/wireshark
Add stuff to add platform-specific compiler flags; currently, we have
only flags for HP's ANSI C compiler, as suggested by Jost Martin. svn path=/trunk/; revision=1517
This commit is contained in:
parent
d9f1ce299f
commit
0b3f81ad8f
30
configure.in
30
configure.in
|
@ -1,4 +1,4 @@
|
|||
# $Id: configure.in,v 1.79 2000/01/21 06:18:16 guy Exp $
|
||||
# $Id: configure.in,v 1.80 2000/01/21 08:44:40 guy Exp $
|
||||
dnl
|
||||
dnl Process this file with autoconf 2.13 or later to produce a
|
||||
dnl configure script; 2.12 doesn't generate a "configure" script that
|
||||
|
@ -40,6 +40,34 @@ else
|
|||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
||||
#
|
||||
# Add any platform-specific compiler flags needed.
|
||||
#
|
||||
AC_MSG_CHECKING(for platform-specific compiler flags)
|
||||
if test "x$GCC" = x
|
||||
then
|
||||
#
|
||||
# Not GCC - assume it's the vendor's compiler.
|
||||
#
|
||||
case "$host_os" in
|
||||
hpux*)
|
||||
#
|
||||
# HP's ANSI C compiler; flags suggested by Jost Martin.
|
||||
# "-Aa" for ANSI C
|
||||
# "-Ae" for extensions to ANSI, for "long long".
|
||||
# "+O2", for optimization. XXX - works with "-g"?
|
||||
#
|
||||
CFLAGS="-Aa -Ae +O2 $CFLAGS"
|
||||
AC_MSG_RESULT(HP ANSI C compiler - added -Aa -Ae +O2)
|
||||
;;
|
||||
*)
|
||||
AC_MSG_RESULT(none needed)
|
||||
;;
|
||||
esac
|
||||
else
|
||||
AC_MSG_RESULT(none needed)
|
||||
fi
|
||||
|
||||
#
|
||||
# Arrange that we search for header files in the source directory
|
||||
# and in its "wiretap" subdirectory, as well as in "/usr/local/include",
|
||||
|
|
Loading…
Reference in New Issue