Changeset 32c632f


Ignore:
Timestamp:
2005-12-17T01:00:38Z (18 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
00f434f, 643dfc4
Parents:
4bfca70
Message:

Allow overriding the pkg-config command to run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r4bfca70 r32c632f  
    145145fi
    146146
    147 if type pkg-config > /dev/null 2>/dev/null && pkg-config glib-2.0; then
     147if [ -z "$PKG_CONFIG" ]; then
     148        PKG_CONFIG=pkg-config
     149fi
     150
     151if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then
    148152        cat<<EOF>>Makefile.settings
    149 EFLAGS+=`pkg-config --libs glib-2.0 gmodule-2.0`
    150 CFLAGS+=`pkg-config --cflags glib-2.0 gmodule-2.0`
     153EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0`
     154CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0`
    151155EOF
    152156        echo '#define GLIB2' >> config.h
     
    190194detect_nss()
    191195{
    192         if type pkg-config > /dev/null 2>/dev/null && pkg-config mozilla-nss; then
     196        if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG mozilla-nss; then
    193197                cat<<EOF>>Makefile.settings
    194 EFLAGS+=`pkg-config --libs mozilla-nss`
    195 CFLAGS+=`pkg-config --cflags mozilla-nss`
     198EFLAGS+=`$PKG_CONFIG --libs mozilla-nss`
     199CFLAGS+=`$PKG_CONFIG --cflags mozilla-nss`
    196200EOF
    197201               
Note: See TracChangeset for help on using the changeset viewer.