what=`basename $PWD` case "$what" in mysql*) ;; *) echo "strange current directory..."; exit 1 esac prefix=/.software/share/$what eprefix=/.software/arch/$what PATH=`/bin/showpath +wto u=s perl5 standard current` export CFLAGS="" case "`uname -m`" in i?86) CFLAGS="$CFLAGS -O2 -fno-strength-reduce -m486" OPTS="--without-debug --with-pthread" ;; arm*) CFLAGS="-O" OPTS="--with-debug" ;; esac CXXFLAGS="$CFLAGS" export CFLAGS CXXFLAGS ./configure --prefix=$prefix --exec-prefix=$eprefix --libexecdir=$eprefix/servers --datadir=$prefix/data --localstatedir=$prefix/spool --sysconfdir=$prefix/config --enable-shared --with-unix-socket-path=/var/run/mysql/mysql.sock \ --with-mysqld-user=mysql \ $OPTS