* configure.ac: Set CPP to build one when checkoing for freetype for
build.
This commit is contained in:
parent
506b336b82
commit
b224c26627
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* configure.ac: Set CPP to build one when checkoing for freetype for
|
||||
build.
|
||||
|
||||
2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
|
||||
|
|
|
@ -395,6 +395,7 @@ fi
|
|||
HOST_CC=$CC
|
||||
AC_CHECK_PROGS(BUILD_CC, [gcc egcs cc])
|
||||
test -z "$BUILD_CC" && AC_MSG_ERROR([none of gcc, egcs and cc is found. set BUILD_CC manually.])
|
||||
BUILD_CPP="$BUILD_CC -E"
|
||||
|
||||
# For gnulib.
|
||||
gl_INIT
|
||||
|
@ -990,9 +991,11 @@ AC_SUBST([freetype_cflags])
|
|||
AC_SUBST([freetype_libs])
|
||||
|
||||
SAVED_CC="$CC"
|
||||
SAVED_CPP="$CPP"
|
||||
SAVED_CFLAGS="$CFLAGS"
|
||||
SAVED_CPPFLAGS="$CPPFLAGS"
|
||||
CC="$BUILD_CC"
|
||||
CPP="$BUILD_CPP"
|
||||
CFLAGS="$BUILD_CFLAGS"
|
||||
CPPFLAGS="$BUILD_CPPFLAGS"
|
||||
|
||||
|
@ -1046,6 +1049,7 @@ AC_SUBST([build_freetype_cflags])
|
|||
AC_SUBST([build_freetype_libs])
|
||||
|
||||
CC="$SAVED_CC"
|
||||
CPP="$SAVED_CPP"
|
||||
CFLAGS="$SAVED_CFLAGS"
|
||||
CPPFLAGS="$SAVED_CPPFLAGS"
|
||||
|
||||
|
|
Loading…
Reference in a new issue