configure: Pull from Non-DAW.

This commit is contained in:
Jonathan Moore Liles 2008-05-20 23:35:46 -05:00
parent cdcd6516e7
commit d68f09691e
2 changed files with 16 additions and 6 deletions

View File

@ -29,9 +29,9 @@ CFLAGS+=-DVERSION=\"$(VERSION)\" \
-DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \ -DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \
-DDOCUMENT_PATH=\"$(DOCUMENT_PATH)\" -DDOCUMENT_PATH=\"$(DOCUMENT_PATH)\"
CXXFLAGS:=$(CFLAGS) $(CXXFLAGS) $(FLTK_CFLAGS) $(sigcpp_CFLAGS) $(LASH_CFLAGS) CXXFLAGS:=$(CFLAGS) $(CXXFLAGS) $(FLTK_CFLAGS) $(SIGCPP_CFLAGS) $(LASH_CFLAGS)
LIBS:=$(FLTK_LIBS) $(JACK_LIBS) $(LASH_LIBS) $(sigcpp_LIBS) LIBS:=$(FLTK_LIBS) $(JACK_LIBS) $(LASH_LIBS) $(SIGCPP_LIBS)
ifeq ($(JACK_MIDI_PROTO_API),yes) ifeq ($(JACK_MIDI_PROTO_API),yes)
CXXFLAGS+=-DJACK_MIDI_PROTO_API CXXFLAGS+=-DJACK_MIDI_PROTO_API

View File

@ -57,9 +57,14 @@ using ()
return $? return $?
} }
upcase ()
{
echo "$*" | tr '[[:lower:]]' '[[:upper:]]'
}
extract_options () extract_options ()
{ {
local line; local line name value
if [ -f make.conf ] if [ -f make.conf ]
then then
@ -75,7 +80,9 @@ extract_options ()
then then
break break
else else
eval "$line" name=${line%=*}
value=${line#*=}
eval "$name='$value'"
fi fi
done done
} < make.conf } < make.conf
@ -133,6 +140,8 @@ require_command ()
require_package () require_package ()
{ {
local name
echo -n "Checking for $BOLD$1$SGR0..." echo -n "Checking for $BOLD$1$SGR0..."
if ! pkg-config --exists $3 if ! pkg-config --exists $3
then then
@ -144,8 +153,9 @@ require_package ()
fatal "The installed version of $1 (`pkg-config --mod-version $3`) is too old." fatal "The installed version of $1 (`pkg-config --mod-version $3`) is too old."
fi fi
append "${1}_LIBS=`pkg-config --libs $3`" name="`upcase \"$1\"`"
append "${1}_CFLAGS=-DHAVE_${1} `pkg-config --cflags $3`" append "${name}_LIBS=`pkg-config --libs $3`"
append "${name}_CFLAGS=-DHAVE_${1} `pkg-config --cflags $3`"
ok ok
return 0 return 0