medit/mingw-configure

69 lines
2.3 KiB
Plaintext
Raw Normal View History

2005-06-22 11:20:32 -07:00
#!/bin/sh
if [ -z $GTK_PREFIX ]; then
2006-02-11 17:57:24 -08:00
export GTK_PREFIX=/usr/local/win/gtk
2005-06-22 11:20:32 -07:00
fi
2005-11-03 20:32:30 -08:00
export PKG_CONFIG_PATH=$GTK_PREFIX/lib/pkgconfig
export PKG_CONFIG_LIBDIR=$GTK_PREFIX/lib/pkgconfig
2005-06-22 11:20:32 -07:00
############################################################################
if [ x`basename $0` = xfake-pkg-config ]; then
if [ $1 -a $1 = "--atleast-pkgconfig-version" ]; then
2005-11-03 20:32:30 -08:00
exec /usr/bin/pkg-config --atleast-pkgconfig-version $2
2005-06-22 11:20:32 -07:00
else
2005-11-03 20:32:30 -08:00
exec /usr/bin/pkg-config --define-variable=prefix=$GTK_PREFIX $*
2005-06-22 11:20:32 -07:00
fi
fi
############################################################################
if [ x$CONFIGURE = x ]; then
CONFIGURE="configure"
if [ ! -e $CONFIGURE ]; then
CONFIGURE=`dirname $0`/configure
fi
if [ ! -e $CONFIGURE ]; then
echo "Can't find configure script"
exit 1
fi
fi
export ADDR2LINE="/usr/bin/i586-mingw32msvc-addr2line"
export AR="/usr/bin/i586-mingw32msvc-ar"
export AS="/usr/bin/i586-mingw32msvc-as"
2005-11-03 20:32:30 -08:00
export CC="/usr/bin/i586-mingw32msvc-gcc"
2005-06-22 11:20:32 -07:00
export CPP="/usr/bin/i586-mingw32msvc-cpp"
export CPPFILT="/usr/bin/i586-mingw32msvc-c++filt"
2005-11-03 20:32:30 -08:00
export CXX="/usr/bin/i586-mingw32msvc-g++"
2005-06-22 11:20:32 -07:00
export DLLTOOL="/usr/bin/i586-mingw32msvc-dlltool"
export DLLWRAP="/usr/bin/i586-mingw32msvc-dllwrap"
export GCOV="/usr/bin/i586-mingw32msvc-gcov"
export LD="/usr/bin/i586-mingw32msvc-ld"
export NM="/usr/bin/i586-mingw32msvc-nm"
export OBJCOPY="/usr/bin/i586-mingw32msvc-objcopy"
export OBJDUMP="/usr/bin/i586-mingw32msvc-objdump"
export RANLIB="/usr/bin/i586-mingw32msvc-ranlib"
export READELF="/usr/bin/i586-mingw32msvc-readelf"
export SIZE="/usr/bin/i586-mingw32msvc-size"
export STRINGS="/usr/bin/i586-mingw32msvc-strings"
export STRIP="/usr/bin/i586-mingw32msvc-strip"
export WINDRES="/usr/bin/i586-mingw32msvc-windres"
2006-04-09 15:16:13 -07:00
export CPATH=$GTK_PREFIX/include
export LDFLAGS="-L$GTK_PREFIX/lib $LDFLAGS"
export CFLAGS="${CFLAGS:-"-O2 -g"} -I$GTK_PREFIX/include -mms-bitfields -march=i686"
export CXXFLAGS="${CFLAGS:-"-O2 -g"} -I$GTK_PREFIX/include -mms-bitfields -march=i686"
2005-06-22 11:20:32 -07:00
export PATH=$MINGW_BIN:/usr/i586-mingw32msvc/bin:$PATH
if [ -L fake-pkg-config ]; then
rm fake-pkg-config
fi
ln -s $0 fake-pkg-config
export PKG_CONFIG="./fake-pkg-config"
TARGET=i586-pc-mingw32msvc
2005-06-22 11:20:32 -07:00
exec sh $CONFIGURE --target=$TARGET --host=$TARGET --enable-all-gcc-warnings $*