OLD | NEW |
(Empty) | |
| 1 --- configure.ac 2009-02-18 00:20:53.000000000 +0100 |
| 2 +++ configure.ac.new 2009-06-16 22:37:05.000000000 +0200 |
| 3 @@ -214,6 +214,20 @@ |
| 4 |
| 5 fi |
| 6 |
| 7 +dnl Get the host compiler if cross-compiling |
| 8 +dnl |
| 9 +AM_CONDITIONAL(CROSS_COMPILING, [ test $cross_compiling = yes ]) |
| 10 +AC_MSG_CHECKING([for CC_FOR_BUILD]) |
| 11 +if test "x${CC_FOR_BUILD+set}" != "xset" ; then |
| 12 + if test "x$cross_compiling" = "xyes" ; then |
| 13 + CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
| 14 + else |
| 15 + CC_FOR_BUILD=${CC} |
| 16 + fi |
| 17 +fi |
| 18 +AC_MSG_RESULT([$CC_FOR_BUILD]) |
| 19 +AC_SUBST(CC_FOR_BUILD) |
| 20 + |
| 21 AC_CONFIG_FILES( |
| 22 Makefile |
| 23 pygobject-2.0.pc |
| 24 --- gobject/Makefile.am 2009-06-16 22:58:36.000000000 +0200 |
| 25 +++ gobject/Makefile.am.new 2009-06-16 23:01:55.000000000 +0200 |
| 26 @@ -71,6 +71,12 @@ |
| 27 if PLATFORM_WIN32 |
| 28 _gobject_la_CFLAGS += -DPLATFORM_WIN32 |
| 29 endif |
| 30 + |
| 31 +generate-constants$(EXEEXT): generate-constants.c |
| 32 + $(CC) $(generate_constants_CFLAGS) -E -o generate-constants.pre.c genera
te-constants.c |
| 33 + $(CC_FOR_BUILD) -o $@ generate-constants.pre.c |
| 34 + rm -f generate-constants.pre.c |
| 35 + |
| 36 |
| 37 |
OLD | NEW |