head 1.3; access; symbols; locks acli:1.3; strict; comment @# @; 1.3 date 2001.11.18.03.44.55; author acli; state Exp; branches; next 1.2; 1.2 date 2001.11.17.17.00.55; author acli; state Exp; branches; next 1.1; 1.1 date 99.06.19.06.32.08; author acli; state Exp; branches; next ; desc @Run gtk+/ glib configure @ 1.3 log @Change sysconfdir @ text @what=`/bin/pwd|sed -e 's+.*/++'` real_version=`echo $what|cut -d- -f2-` version=`echo $real_version|cut -d. -f1-2` glib_path=gimp_dev-$real_version CFLAGS="-O2 -I/software/gimp_dev-$real_version/include/glib-$version" LDFLAGS="-L/software/gimp_dev-$real_version/lib/" OPTS="" #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=/software/gimp_dev-$real_version/lib:/software/$dir/lib:$LD_LIBRARY_PATH PATH=`/bin/showpath +wto $dir current` export LD_LIBRARY_PATH break fi done case "$what" in gtk+-*) if [ -d /software/gimp_dev-$version ]; then OPTS="$OPTS --with-glib-prefix=/software/gimp_dev-$version" LD_LIBRARY_PATH=/software/gimp_dev-$version/lib export LD_LIBRARY_PATH fi PATH=`showpath gimp-$version current` ;; glib-*) ;; *) echo "strange working directory for a gtk+ configure" >&2 exit 1 esac what=gimp_dev-`echo $what |cut -d- -f2-` #what=gtk+-`echo $what |cut -d- -f2-` if [ -z "$LD_LIBRARY_PATH" ]; then LD_LIBRARY_PATH=/software/gimp_dev-$real_version/lib/ export LD_LIBRARY_PATH else LD_LIBRARY_PATH="/software/gimp_dev-$real_version/lib/:$LD_LIBRARY_PATH" fi GLIB_CONFIG=`/bin/showpath u=m findfirst=glib-config $glib_path gimp_dev standard` export GLIB_CONFIG prefix=/.software/share/$what eprefix=/.software/arch/$what ## We don't want to care about the patch level, ## but have to care about the minor version number (stable/unstable status) what=`echo $what |cut -d. -f1-2` case "`uname -m`" in i?86) CFLAGS="$CFLAGS -m486" gcc -v 2>&1|grep egcs>/dev/null || CFLAGS="$CFLAGS -no-strength-reduce" ;; arm*) #OPTS="$OPTS build=arm-linuxelf" doesn't work for gimp or gtk+ CFLAGS="-O -D__USE_GNU";; esac for dir in . glib; do (cd $dir && 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 ) done export CFLAGS LDFLAGS PATH=`/bin/showpath +wto $glib_path standard autoconf texinfo current` ./configure \ --prefix=$prefix \ --exec-prefix=$eprefix \ --datadir=$prefix/data \ --sysconfdir=$prefix/config \ $OPTS @ 1.2 log @Make it work for 1.2.9 @ text @d105 6 a110 1 ./configure --prefix=$prefix --exec-prefix=$eprefix --datadir=$prefix/data $OPTS @ 1.1 log @Initial revision @ text @d2 2 a3 1 version=`echo $what|cut -d- -f2-|cut -d. -f1-2` d5 4 a8 1 CFLAGS="-O2" d11 1 a11 1 version=1.2 d15 1 a15 1 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/software/$dir/lib d37 10 d102 2 a103 2 export CFLAGS PATH=`/bin/showpath +wto standard autoconf texinfo current` @