This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: MPE Port


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			


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]