1 diff -Nur DjVu3.orig/config/cc.sh DjVu3/config/cc.sh
2 --- DjVu3.orig/config/cc.sh Tue Jan 9 18:29:22 2001
3 +++ DjVu3/config/cc.sh Mon Jul 9 00:58:27 2001
8 - (echo '#include <stdio.h>';echo 'int main(void) {puts("Hello World\n");return 0;}')|testfile $temp.c
9 + (echo '#include <stdio.h>';echo 'int main(void) {puts("Hello World\\n");return 0;}')|testfile $temp.c
15 CCFLAGS=`echo "${CCPIPE}" "${CCFLAGS}"`
19 - if [ "${m}" = i686 ]
21 - echon "Chesking whether ${CC} -mpentiumpro and -mmx work ... "
22 - if ( run $CC ${CCFLAGS} -mpentiumpro -c $temp.c)
24 - CCMMX="-mpentiumpro"
25 - if ( run $CC ${CCFLAGS} ${CCMMX} -mmx -c $temp.c )
28 - echo "yes, both work"
30 - echo "just $CCMMX works"
35 - CCFLAGS=`echo "${CCMMX}" "${CCFLAGS}"`
38 echon "Checking whether ${CC} is gcc ... "
39 echo 'int main(void) { return __GNUC__;}' | testfile $temp.c
45 - echon "Checking whether ${CC} -O3 works ... "
46 - if ( run $CC ${CCFLAGS} -O3 -c $temp.c )
53 - echon "Checking whether ${CC} -funroll-loops works ... "
54 - if ( run $CC ${CCFLAGS} ${CCOPT} -funroll-loops -c $temp.c )
55 + echon "Checking whether ${CC} ${OPT} works ... "
56 + if ( run $CC ${CCFLAGS} ${OPT} -c $temp.c )
59 - CCUNROLL="-funroll-loops"
64 --- DjVu3/config/ccpic.sh.orig 2001-01-09 18:29:22.000000000 +0100
65 +++ DjVu3/config/ccpic.sh 2021-03-28 17:10:41.502783064 +0200
70 - (echo '#include <stdio.h>';echo 'int main(void) {puts("Hello World\n");return 0;}')|testfile $temp.c
71 + (echo '#include <stdio.h>';echo 'int main(void) {puts("Hello World\\n");return 0;}')|testfile $temp.c
73 echon "Checking ${CC} symbolic option ... "
75 diff -Nur DjVu3.orig/config/cxx.sh DjVu3/config/cxx.sh
76 --- DjVu3.orig/config/cxx.sh Tue Jan 9 18:29:22 2001
77 +++ DjVu3/config/cxx.sh Mon Jul 9 01:00:18 2001
80 CXXFLAGS=`echo "${CXXPIPE}" "${CXXFLAGS}"`
83 - if [ `uname -m` = i686 ]
85 - echon "Checking ${CXX} supports pentium optimizations ... "
86 - check_compile_flags CXXMMX $temp.cpp "-mpentiumpro -mmx" "-mpentiumpro"
87 - if [ -z "$CXXMMX" ] ; then
91 - CXXFLAGS="${CXXMMX} ${CXXFLAGS}"
95 echon "Checking whether ${CXX} is gcc ... "
96 echo 'int main(void) { return __GNUG__;}' | testfile $temp.cpp
102 - echon "Checking whether ${CXX} -O3 works ... "
103 - if ( run $CXX ${CXXFLAGS} -O3 -c $temp.cpp ) ; then
109 - echon "Checking whether ${CXX} -funroll-loops works ... "
110 - if ( run $CXX ${CXXFLAGS} ${CXXOPT} -funroll-loops -c $temp.cpp )
112 + echon "Checking whether ${CXX} ${OPTXX} works ... "
113 + if ( run $CXX ${CXXFLAGS} ${OPTXX} -c $temp.cpp ) ; then
115 - CXXUNROLL="-funroll-loops"
120 diff -Nur DjVu3.orig/configure DjVu3/configure
121 --- DjVu3.orig/configure Thu Nov 9 21:15:05 2000
122 +++ DjVu3/configure Mon Jul 9 00:56:09 2001
127 #C- DjVu® Reference Library (v. 3.0)
133 -if [ ! -d "$TOPSRCDIR/src/3rd-party/libjpeg" ]
138 if [ -z "$without_jpeg" ]
141 A_DEFS="$A_DEFS -DNEED_JPEG_DECODER"
143 - A_INCS="$A_INCS -I./TOPDIR/src/3rd-party/libjpeg -I./TOPDIR/SRCDIR/src/3rd-party/libjpeg"
144 - LIBJPEG='$(LIBPATH)/libdjpeg.a'
145 + A_INCS="$A_INCS -I/usr/include"
151 generate_makefile src/libdjvu++/Test
152 generate_makefile src/djvutools/reference
154 -if [ -z "$without_jpeg" ]
156 - ## This is the version with JPEG
157 - generate_makefile src/3rd-party/libjpeg
158 - generate_main_makefile src/3rd-party/libjpeg src/libdjvu++ <<\EOF
160 - ( cd src/3rd-party/libjpeg; $(MAKE) lib prog)
161 - ( cd src/libdjvu++; $(MAKE) lib )
162 - ( cd src/djvutools/reference; $(MAKE) prog )
165 - echo Rule not supported...
169 ## This is the regular version
170 generate_main_makefile src/libdjvu++ <<\EOF
174 echo Rule not supported...