diff -Nur -x '*.orig' -x '*~' sqlite-2.8.17/main.mk sqlite-2.8.17.new/main.mk --- sqlite-2.8.17/main.mk 2008-07-10 15:52:40.000000000 +0100 +++ sqlite-2.8.17.new/main.mk 2008-07-10 15:53:38.000000000 +0100 @@ -239,14 +239,8 @@ # configure the config.h file. # config.h: - echo '#include ' >temp.c - echo 'int main(){printf(' >>temp.c - echo '"#define SQLITE_PTR_SZ %d",sizeof(char*));' >>temp.c - echo 'exit(0);}' >>temp.c - $(BCC) -o temp temp.c - ./temp >config.h + echo `grep "^ac_cv_sizeof_char_p" config.log | cut -d'=' -f2 | sed -e 's/.*/#define SQLITE_PTR_SZ &/'` > config.h echo >>config.h - rm -f temp.c temp sqlite.h: $(TOP)/src/sqlite.h.in sed -e s/--VERS--/`cat ${TOP}/VERSION`/ \ diff -Nur -x '*.orig' -x '*~' sqlite-2.8.17/Makefile.in sqlite-2.8.17.new/Makefile.in --- sqlite-2.8.17/Makefile.in 2008-07-10 15:49:17.000000000 +0100 +++ sqlite-2.8.17.new/Makefile.in 2008-07-10 15:54:08.000000000 +0100 @@ -267,15 +267,9 @@ # to a target with a different pointer size, you'll need to manually # configure the config.h file. # -config.h: - echo '#include ' >temp.c - echo 'int main(){printf(' >>temp.c - echo '"#define SQLITE_PTR_SZ %d",sizeof(char*));' >>temp.c - echo 'exit(0);}' >>temp.c - $(BCC) -o temp temp.c - ./temp >config.h +config.h: + echo `grep "^ac_cv_sizeof_char_p" config.log | cut -d'=' -f2 | sed -e 's/.*/#define SQLITE_PTR_SZ &/'` > config.h echo >>config.h - rm -f temp.c temp sqlite.h: $(TOP)/src/sqlite.h.in sed -e s/--VERS--/`cat ${TOP}/VERSION`/ \