export CPPFLAGS="-I/usr/local/include -I/usr/local/include/tiff -I/software/libjpeg/include -I/software/libmpeg/include -I/software/xdelta/include -I/software/libpng/include -I/software/zlib/include -I/software/aa/include" export LDFLAGS="-L/software/libjpeg/lib -L/software/libmpeg/lib -L/software/xdelta/lib -L/software/libpng/lib -L/software/zlib/lib -L/software/aa/lib" export LDLIBS="-lz -lgdbm" export PATH=`/bin/showpath +wto standard autoconf texinfo current` # We need to distinguish between 1.0 and 1.2; 1.2 is way too slow on armv4l basedir=`pwd` basedir=`basename "$basedir"` case "$basedir" in gimp-*) package="`echo $basedir|sed -e 's/^\(gimp-[0-9]*\.[0-9]*\)\..*$/\1/'`" ;; *) echo "$basedir: weird current directory for gimp" >&2 exit 1 ;; esac prefix=/software/$package eprefix=/.software/arch/$package # Don't use perl extension OPTS=--disable-perl version=1.2 for dir in gimp_dev-$version gtk+-$version gimp_dev gtk+; do if [ -d /software/gimp_dev-$version ]; then OPTS="$OPTS --with-gtk-prefix=/software/$dir --with-gtk-exec-prefix=/software/$dir" LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/software/$dir/lib PATH=`/bin/showpath +wto $dir current` export LD_LIBRARY_PATH break fi done gtkconfig=`/bin/showpath +wto gimp_dev-$version gimp standard current findfirst=gtk-config` gtkprefix=`$gtkconfig --prefix` grep -q netwinder config.sub || patch --verbose -u -t -N -p2< --- libc/scripts/config.sub Tue Oct 27 11:38:36 1998 +++ glibc/scripts/config.sub Tue Nov 3 16:20:40 1998 @@ -182,7 +182,7 @@ | sparc64-* | mips64-* | mipsel-* \\ | mips64el-* | mips64orion-* | mips64orionel-* \\ | mipstx39-* | mipstx39el-* \\ - | f301-*) + | f301-* | armv*-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. @@ -412,6 +412,10 @@ basic_machine=i486-ncr os=-sysv4 ;; + netwinder) + basic_machine=armv4l-ccc + os=-linux + ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos @@ -801,6 +805,9 @@ case \$basic_machine in *-acorn) os=-riscix1.2 + ;; + arm*-ccc) + os=-linux ;; arm*-semi) os=-aout EOF export CFLAGS="" case "`uname -m`" in i?86) CFLAGS="$CFLAGS -O2 -m486" gcc -v 2>&1|grep egcs>/dev/null || CFLAGS="$CFLAGS -no-strength-reduce" ;; arm*) CFLAGS="$CFLAGS -O -D__USE_GNU -DG_GNUC_NORETURN='__attribute__((noreturn))'";; esac ./configure --prefix=$prefix --exec-prefix=$eprefix --datadir=$prefix/data --sysconfdir=$prefix/config $OPTS