1 diff -ruN allegro-4.1.11./configure.in allegro-4.1.11/configure.in
2 --- allegro-4.1.11./configure.in 2003-06-30 01:27:00.000000000 +0200
3 +++ allegro-4.1.11/configure.in 2003-08-25 00:23:10.000000000 +0200
5 AC_CHECK_FUNCS(memcmp mkstemp stricmp strlwr strupr)
7 dnl Tweak header files for library build
8 -CFLAGS="$CFLAGS -DALLEGRO_LIB_BUILD"
9 +CFLAGS="$TARGET_ARCH -DALLEGRO_LIB_BUILD"
11 dnl How to compile C and asm files.
12 if test -n "GCC"; then
13 - if test "X$allegro_strict_warnings" = "Xyes"; then
14 - WFLAGS="-Wall -W -Wstrict-prototypes -Wno-unused -Werror"
16 - WFLAGS="-Wall -Wno-unused"
18 - if test "$allegro_cv_support_asm" = i386; then
19 - if test "$allegro_exclusive_optimizations" != none; then
20 - TARGET_ARCH="-march=$allegro_exclusive_optimizations"
22 - TARGET_ARCH="-mcpu=$allegro_optimizations"
27 - if test "X$allegro_cv_can_use_pipe" = "Xyes"; then
28 - CFLAGS="$CFLAGS -pipe"
30 + WFLAGS="-Wall -Wno-unused"
32 if test "$allegro_cv_support_asm" != i386; then
33 CFLAGS="$CFLAGS -DALLEGRO_USE_C"
35 - dnl Allow to specify additional flags.
36 - CFLAGS="$CFLAGS $XCFLAGS"
37 - WFLAGS="$WFLAGS $WCFLAGS"
38 - dnl In this order...
39 - ALLEGRO_DEBUG_CFLAGS="$CFLAGS -g $WFLAGS -DDEBUGMODE"
41 + ALLEGRO_DEBUG_CFLAGS="-g $WFLAGS -DDEBUGMODE"
42 if test "X$allegro_debug_with_fortify" = "Xyes"; then
43 ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DFORTIFY"
45 - ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS"
46 - if test "X$allegro_cv_support_fomit_frame_pointer" = "Xyes"; then
47 - CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math -fomit-frame-pointer $WFLAGS"
49 - CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS"
51 + ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $WFLAGS"
52 ALLEGRO_SFLAGS="-x assembler-with-cpp"
53 ALLEGRO_SHAREDLIB_CFLAGS="-fPIC -DALLEGRO_SHARED"