From: Andy Eskilsson Newsgroups: comp.os.msdos.djgpp Subject: Detecting djgpp before compiling. Date: 19 Feb 1997 10:20:13 +0100 Organization: Telelogic AB, Sweden Lines: 16 Sender: x-aes AT ping Message-ID: Reply-To: x-aes AT telelogic DOT se NNTP-Posting-Host: ping.telelogic.se Mime-Version: 1.0 (generated by tm-edit 7.101) Content-Type: text/plain; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I am messing around with bash and configure, porting python (check it out! http://www.python.org) to msdos.. Well one of the brick walls I banged my head to is stat, unfortunetaly python doesn't use the constants defined in stat.h, but defines them itself after 'de facto standard definitions' for example.. Python(UNIX) djgpp S_IFDIR 0x4000 0x3000 (And no, I can't get python to use the constants in stat.h) Well one solution to this problem would be to detect that I am using djgpp in configure, either I compile somehing like #ifdef __djgpp__ retun 1 #else return 0, or well is there any other solution? /Andy