3 # Call the 'configure' script located in 'builds/unix'.
5 # This should re-generate the following files:
12 if test "x$GNUMAKE" = x; then
16 if test -z "`$GNUMAKE -v 2>/dev/null | grep GNU`"; then
17 echo "Sorry, GNU make is required to build FreeType2." >&2
18 echo "Please try \`GNUMAKE=<GNU make command name> $0'." >&2
22 # Uh, oh. This is taken from autoconf. They know what they are doing...
24 if expr a : '\(a\)' >/dev/null 2>&1; then
30 ft2_dir=`(dirname "$0") 2>/dev/null ||
31 $ft_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32 X"$0" : 'X\(//\)[^/]' \| \
33 X"$0" : 'X\(//\)$' \| \
35 . : '\(.\)' 2>/dev/null ||
37 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39 /^X\(\/\/\)$/{ s//\1/; q; }
40 /^X\(\/\).*/{ s//\1/; q; }
44 abs_ft2_dir=`cd "$ft2_dir" && pwd`
46 # build a dummy Makefile if we are not building in the source tree
48 if test "$abs_curr_dir" != "$abs_ft2_dir"; then
49 echo "OBJ_DIR=$abs_curr_dir" > Makefile
50 echo "TOP_DIR=$abs_ft2_dir" >> Makefile
51 echo "OBJ_BUILD=$abs_curr_dir" >> Makefile
52 echo "LIBTOOL=$abs_curr_dir/libtool" >> Makefile
53 echo "include $abs_ft2_dir/Makefile" >> Makefile
58 CFG="$@" $GNUMAKE setup unix