From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Klein To: law@cygnus.com Cc: gcc@gcc.gnu.org Subject: Re: MPE Port Date: Mon, 06 Sep 1999 10:40:00 -0000 Message-id: <4.1.19990906103514.00c867a0@garfield.dis.com> X-SW-Source: 1999-09/msg00190.html Explanation: MPE/iX is a late binding OS, so simply compiling and linking a test program to prove the existence of various routines won't work. I've built a customized autoconf where the ac_link macro also attempts to run what it links. It does so in a fashion such that if the final bind is successful, then the program will not actually be run because in most cases, it will fail, which will still give a false negative. This script simply finds all cases of configure.in scripts that are autoconf versions, not Cygnus versions. Sat Sep 4 18:00:00 PDT 1999 Mark Klein (mklein@dis.com) * configure.mpe: New file for MPE port. *** egcs/configure.mpe Wed Dec 31 16:00:00 1969 --- egcs-ss/configure.mpe Mon Aug 30 21:51:54 1999 *************** *** 0 **** --- 1,31 ---- + # + # MPE is by definition a "shared" environment and the configure scripts + # will fail to correctly determine whether or not something exists by + # simply doing a compile. Rerun autoconf to update the configure scripts. + # Use the autoconf from + # http://jazz.external.hp.com/src/gnu/gnu_tools/gnutools.html + # + # Find configure.in scripts containing AC_INIT and run autoconf in those + # directories. + for f in `find . -name configure.in` + do + fgrep AC_INIT ${f} > /dev/null + if [ $? = 0 ] + then + echo Processing ${f} + (cd `dirname ${f}`; autoconf) + fi + done + + export CFLAGS="-I/usr/contrib/include -DSYSV -D_POSIX_SOURCE -D_SOCKET_SOURCE \ + -D_MPEIX_SOURCE -D_MPEXL_SOURCE" + export CXXFLAGS="$CFLAGS" + export CPPFLAGS="$CFLAGS" + export LDFLAGS="-lsocket -lcurses -lsvipc -ldce" + export CC=gcc + export CPP="gcc -E" + + mkdir obj-MPE + cd obj-MPE + ../configure --with-gnu-as --disable-pic --disable-shared --enable-threads=dce + # ../configure --with-gnu-as --disable-pic --disable-shared -- Mark Klein DIS International, Ltd. http://www.dis.com 415-892-8400 PGP Public Key Available From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Klein To: law@cygnus.com Cc: gcc@gcc.gnu.org Subject: Re: MPE Port Date: Thu, 30 Sep 1999 18:02:00 -0000 Message-ID: <4.1.19990906103514.00c867a0@garfield.dis.com> X-SW-Source: 1999-09n/msg00190.html Message-ID: <19990930180200.kmwX5HPq37d9I5QzhDdQcR5na8Ak_UQY1QIPrSPA254@z> Explanation: MPE/iX is a late binding OS, so simply compiling and linking a test program to prove the existence of various routines won't work. I've built a customized autoconf where the ac_link macro also attempts to run what it links. It does so in a fashion such that if the final bind is successful, then the program will not actually be run because in most cases, it will fail, which will still give a false negative. This script simply finds all cases of configure.in scripts that are autoconf versions, not Cygnus versions. Sat Sep 4 18:00:00 PDT 1999 Mark Klein (mklein@dis.com) * configure.mpe: New file for MPE port. *** egcs/configure.mpe Wed Dec 31 16:00:00 1969 --- egcs-ss/configure.mpe Mon Aug 30 21:51:54 1999 *************** *** 0 **** --- 1,31 ---- + # + # MPE is by definition a "shared" environment and the configure scripts + # will fail to correctly determine whether or not something exists by + # simply doing a compile. Rerun autoconf to update the configure scripts. + # Use the autoconf from + # http://jazz.external.hp.com/src/gnu/gnu_tools/gnutools.html + # + # Find configure.in scripts containing AC_INIT and run autoconf in those + # directories. + for f in `find . -name configure.in` + do + fgrep AC_INIT ${f} > /dev/null + if [ $? = 0 ] + then + echo Processing ${f} + (cd `dirname ${f}`; autoconf) + fi + done + + export CFLAGS="-I/usr/contrib/include -DSYSV -D_POSIX_SOURCE -D_SOCKET_SOURCE \ + -D_MPEIX_SOURCE -D_MPEXL_SOURCE" + export CXXFLAGS="$CFLAGS" + export CPPFLAGS="$CFLAGS" + export LDFLAGS="-lsocket -lcurses -lsvipc -ldce" + export CC=gcc + export CPP="gcc -E" + + mkdir obj-MPE + cd obj-MPE + ../configure --with-gnu-as --disable-pic --disable-shared --enable-threads=dce + # ../configure --with-gnu-as --disable-pic --disable-shared -- Mark Klein DIS International, Ltd. http://www.dis.com 415-892-8400 PGP Public Key Available