1 --- aa/allegro-4.1.15/configure.in 2004-04-27 13:53:02.000000000 +0200
2 +++ allegro-4.1.15/configure.in 2004-05-23 21:18:36.478313632 +0200
5 dnl How to compile C and asm files.
6 if test -n "$GCC"; then
7 - if test "X$allegro_strict_warnings" = "Xyes"; then
8 - WFLAGS="-Wall -W -Wstrict-prototypes -Wno-unused-parameter -Werror"
10 - WFLAGS="-Wall -Wno-unused"
12 - if test "X$allegro_cv_processor_type" = "Xi386"; then
13 - if test "$allegro_exclusive_optimizations" != none; then
14 - TARGET_ARCH="-march=$allegro_exclusive_optimizations"
15 - elif test "X$allegro_cv_support_i386_mtune" = "Xyes"; then
16 - TARGET_ARCH="-mtune=$allegro_optimizations"
18 - TARGET_ARCH="-mcpu=$allegro_optimizations"
20 - elif test "X$allegro_cv_processor_type" = "Xamd64"; then
21 - dnl Change default pentium->athlon64
22 - if test "X$allegro_optimizations" = "Xpentium"; then
23 - allegro_optimizations="k8"
25 - if test "$allegro_exclusive_optimizations" != none; then
26 - TARGET_ARCH="-march=$allegro_exclusive_optimizations"
27 - elif test "X$allegro_cv_support_amd64_mtune" = "Xyes"; then
28 - TARGET_ARCH="-mtune=$allegro_optimizations"
30 - TARGET_ARCH="-mcpu=$allegro_optimizations"
35 - dnl Allow to specify additional flags.
36 - CFLAGS="$CFLAGS $XCFLAGS"
37 - WFLAGS="$WFLAGS $WCFLAGS"
38 - dnl In this order...
39 + WFLAGS="-Wall -Wno-unused"
40 ALLEGRO_DEBUG_CFLAGS="$CFLAGS -g $WFLAGS -DDEBUGMODE"
41 if test "X$allegro_debug_with_fortify" = "Xyes"; then
42 ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DFORTIFY"
44 if test "X$allegro_debug_with_dmalloc" = "Xyes"; then
45 ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DDMALLOC"
47 - ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS"
48 - if test "X$allegro_cv_support_fomit_frame_pointer" = "Xyes"; then
49 - CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math -fomit-frame-pointer $WFLAGS"
51 - CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS"
53 + CFLAGS="$CFLAGS $TARGET_ARCH"
54 + ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $WFLAGS"
55 ALLEGRO_SFLAGS="-x assembler-with-cpp"
56 ALLEGRO_SHAREDLIB_CFLAGS="-fPIC -DALLEGRO_SHARED"