This should fix OpenBSD for good.

Thanks Wilbern Cobb and Thorsten Glaser.
This commit is contained in:
theoddone33
2002-05-23 17:09:35 +00:00
parent e26983d63d
commit 7de3445a22
9 changed files with 15 additions and 21 deletions

View File

@@ -25,7 +25,7 @@ AC_CANONICAL_SYSTEM
case "$target" in
*-*-linux*)
CFLAGS="$CFLAGS -D__LINUX__"
NFLAGS="$NFLAGS -D__LINUX__ -f elf"
NFLAGS="$NFLAGS -D__LINUX__ -f elf -DELF"
;;
*-*-*openbsd*)
CFLAGS="$CFLAGS -D__LINUX__ -D__FreeBSD__"
@@ -33,7 +33,7 @@ case "$target" in
;;
*-*-*bsd*)
CFLAGS="$CFLAGS -D__LINUX__ -D__FreeBSD__"
NFLAGS="$NFLAGS -D__LINUX__ -D__FreeBSD__ -f elf"
NFLAGS="$NFLAGS -D__LINUX__ -D__FreeBSD__ -DELF -f elf"
;;
*-*-cygwin* | *-*-*ming*)
CFLAGS="$CFLAGS -D__LINUX__"
@@ -78,7 +78,7 @@ else
AC_MSG_ERROR(zlib is required)
fi
AC_ARG_WITH(opengl,[ --without-opengl Build without OpenGL support ],with_opengl=no)
AC_ARG_WITH(opengl,[ --without-opengl Build without OpenGL support ],with_opengl=$withval)
AC_MSG_CHECKING(for OpenGL support)
if test x$with_opengl != xno; then
with_opengl=no
@@ -100,7 +100,7 @@ else
AC_MSG_RESULT(disabled by user)
fi
AC_ARG_ENABLE(png, [ --without-png Build without PNG screenshot support ],with_png=no)
AC_ARG_WITH(png, [ --without-png Build without PNG screenshot support ],with_png=$withval)
AC_MSG_CHECKING(for libPNG support)
if test x$with_png != xno; then
with_png=no