1 diff -aurN djvulibre-3.5.17.orig/config/acinclude.m4 djvulibre-3.5.17/config/acinclude.m4
2 --- djvulibre-3.5.17.orig/config/acinclude.m4 2006-02-22 00:16:17.000000000 +0100
3 +++ djvulibre-3.5.17/config/acinclude.m4 2006-05-16 19:04:01.600526896 +0200
5 [ac_debug=$enableval],[ac_debug=no])
8 - saved_CXXFLAGS="$CXXFLAGS"
9 - saved_CFLAGS="$CFLAGS"
12 - for opt in $saved_CXXFLAGS ; do
14 - -g*) test $ac_debug != no && OPTS="$OPTS $opt" ;;
16 - *) CXXFLAGS="$CXXFLAGS $opt" ;;
19 - for opt in $saved_CFLAGS ; do
22 - *) CFLAGS="$CFLAGS $opt" ;;
25 - if test x$ac_debug = xno ; then
27 - AC_CHECK_CXX_OPT([-Wall],[OPTS="$OPTS -Wall"])
28 - AC_CHECK_CXX_OPT([-O3],[OPTS="$OPTS -O3"],
29 - [ AC_CHECK_CXX_OPT([-O2], [OPTS="$OPTS -O2"] ) ] )
30 - dnl This triggers compiler bugs with gcc-3.2.2:
31 - dnl AC_CHECK_CXX_OPT([-funroll-loops], [OPTS="$OPTS -funroll-loops"])
32 - dnl QT3 has plenty of this:
33 - AC_CHECK_CXX_OPT([-Wno-non-virtual-dtor],[OPTS="$OPTS -Wno-non-virtual-dtor"])
34 - cpu=`uname -m 2>/dev/null`
35 - test -z "$cpu" && cpu=${host_cpu}
36 - case "${host_cpu}" in
38 - opt="-mtune=${host_cpu}"
39 - AC_CHECK_CXX_OPT([$opt], [OPTS="$OPTS $opt"],
40 - [ opt="-mcpu=${host_cpu}"
41 - AC_CHECK_CXX_OPT([$opt], [OPTS="$OPTS $opt"]) ])
45 - AC_CHECK_CXX_OPT([-Wall],[OPTS="$OPTS -Wall"])
46 - AC_CHECK_CXX_OPT([-Wno-non-virtual-dtor],[OPTS="$OPTS -Wno-non-virtual-dtor"])
49 changequote(<<, >>)dnl
50 x[0-9]) OPTS="$OPTS -DDEBUGLVL=$ac_debug" ;;