Skip to content

Commit

Permalink
configure.ac: Set BDW_GC_CFLAGS and BDW_GC_LIBS after checking for th…
Browse files Browse the repository at this point in the history
…e existence of the...

2016-11-30  Matthias Klose  <[email protected]>

        * configure.ac: Set BDW_GC_CFLAGS and BDW_GC_LIBS after checking
        for the existence of the pkg-config modules.
        * Regenerate.

From-SVN: r243037
  • Loading branch information
doko42 authored and Matthias Klose committed Nov 30, 2016
1 parent 3ba9051 commit de683d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions libobjc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2016-11-30 Matthias Klose <[email protected]>

* configure.ac: Set BDW_GC_CFLAGS and BDW_GC_LIBS after checking
for the existence of the pkg-config modules.
* Regenerate.

2016-11-30 Jakub Jelinek <[email protected]>

* configure.ac (--enable-objc-gc): If not given, default to
Expand Down
2 changes: 2 additions & 0 deletions libobjc/configure
Original file line number Diff line number Diff line change
Expand Up @@ -11668,6 +11668,8 @@ if test -n "$PKG_CONFIG" && \
test $ac_status = 0; }; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc pkg-config module" >&5
$as_echo "using bdw-gc pkg-config module" >&6; }
BDW_GC_CFLAGS=`$PKG_CONFIG --cflags bdw-gc`
BDW_GC_LIBS=`$PKG_CONFIG --libs bdw-gc`
else
as_fn_error "no --with-target-bdw-gc options and no bdw-gc pkg-config module found" "$LINENO" 5
fi
Expand Down
4 changes: 3 additions & 1 deletion libobjc/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ no)
if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
dnl no bdw-gw options, fall back to the bdw-gc pkg-config module
PKG_CHECK_EXISTS(bdw-gc,
AC_MSG_RESULT([using bdw-gc pkg-config module]),
[AC_MSG_RESULT([using bdw-gc pkg-config module])
BDW_GC_CFLAGS=`$PKG_CONFIG --cflags bdw-gc`
BDW_GC_LIBS=`$PKG_CONFIG --libs bdw-gc`],
AC_MSG_ERROR([no --with-target-bdw-gc options and no bdw-gc pkg-config module found]))
else
dnl bdw-gw options passed by configure flags
Expand Down

0 comments on commit de683d5

Please sign in to comment.