Skip to content

Commit

Permalink
Hopefully fix broken autoconfs.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 17, 2002
1 parent 7d63933 commit adcd591
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions configure.in
Expand Up @@ -70,15 +70,15 @@ AC_ARG_ENABLE(debug,
, enable_debug=yes)
if test x$enable_debug = xyes; then
if test x$ac_cv_prog_cc_g = xyes; then
CFLAGS="-g -O0"
PHYSFSCFLAGS="-g -O0"
else
CFLAGS="-O0"
PHYSFSCFLAGS="-O0"
fi
CFLAGS="$CFLAGS -Werror -Wall"
PHYSFSCFLAGS="$PHYSFSCFLAGS -Werror -Wall"
AC_DEFINE([DEBUG], 1, [define if debug build is enabled])
AC_DEFINE([DEBUG_CHATTER], 1, [define if debug chatter is enabled])
else
CFLAGS="-O2"
PHYSFSCFLAGS="-O2"
AC_DEFINE([NDEBUG], 1, [define if debug build is disabled])
fi

Expand Down Expand Up @@ -325,7 +325,7 @@ AC_MSG_RESULT([$this_is_beos])
AC_MSG_CHECKING([if this is Cygwin])
if test x$build_os = xcygwin; then
this_is_cygwin=yes
CFLAGS="$CFLAGS -DWIN32"
PHYSFSCFLAGS="$PHYSFSCFLAGS -DWIN32"
enable_pthreads=no
have_non_posix_threads=yes
else
Expand All @@ -351,7 +351,7 @@ if test x$we_have_sed = xyes; then
x=`echo $build_os |tr A-Z a-z |sed "s/.*freebsd.*/freebsd/"`
if test x$x = xfreebsd; then
this_is_freebsd=yes
LDFLAGS="$LDFLAGS -pthread"
PHYSFSLDFLAGS="$PHYSFSLDFLAGS -pthread"
fi

AC_MSG_RESULT([$this_is_freebsd])
Expand All @@ -363,7 +363,7 @@ if test x$we_have_sed = xyes; then
x=`echo $build_os |tr A-Z a-z |sed "s/.*openbsd.*/openbsd/"`
if test x$x = xopenbsd; then
this_is_openbsd=yes
LDFLAGS="$LDFLAGS -pthread"
PHYSFSLDFLAGS="$PHYSFSLDFLAGS -pthread"
fi

AC_MSG_RESULT([$this_is_openbsd])
Expand All @@ -388,7 +388,7 @@ if test x$we_have_sed = xyes; then
x=`echo $build_os |tr A-Z a-z |sed "s/.*os2.*/os2/"`
if test x$x = xos2; then
this_is_os2=yes
CFLAGS="$CFLAGS -DOS2"
PHYSFSCFLAGS="$PHYSFSCFLAGS -DOS2"
fi

AC_MSG_RESULT([$this_is_os2])
Expand Down Expand Up @@ -440,8 +440,8 @@ AC_CHECK_FUNCS([memset strrchr])

AC_CHECK_SIZEOF(int, 4)

CFLAGS="$CFLAGS -D_REENTRANT -D_THREAD_SAFE"
LDFLAGS="$LDFLAGS -no-undefined"
CFLAGS="$CFLAGS $PHYSFSCFLAGS -D_REENTRANT -D_THREAD_SAFE"
LDFLAGS="$LDFLAGS $PHYSFSLDFLAGS -no-undefined"

dnl Add Makefile conditionals
AM_CONDITIONAL(BUILD_ZLIB, test x$enable_internal_zlib = xyes)
Expand Down

0 comments on commit adcd591

Please sign in to comment.