The fltk-config script now supports running from a source
directory (STR #840) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4341 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
fdf8cbad74
commit
743b0f984e
2
CHANGES
2
CHANGES
@ -2,6 +2,8 @@ CHANGES IN FLTK 1.1.7
|
||||
|
||||
- Documentation fixes (STR #648, STR #692, STR #730, STR
|
||||
#744, STR #745)
|
||||
- The fltk-config script now supports running from a
|
||||
source directory (STR #840)
|
||||
- Fl_Browser_ didn't update the position properly when an
|
||||
item was deleted (STR #839)
|
||||
- fl_contrast() now compares the luminosity of each color
|
||||
|
||||
@ -36,6 +36,7 @@ APIVERSION="$MAJOR_VERSION.$MINOR_VERSION"
|
||||
|
||||
### BEGIN fltk-config
|
||||
|
||||
selfdir=`dirname $0`
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
exec_prefix_set=no
|
||||
@ -57,6 +58,28 @@ CXXFLAGS="@CXXFLAGS@"
|
||||
LDFLAGS="@LDFLAGS@"
|
||||
LDLIBS="@LIBS@"
|
||||
|
||||
# Check for local invocation, and update paths accordingly...
|
||||
if test -e "$selfdir/FL/Fl_Window.H"; then
|
||||
bindir="$selfdir/fluid"
|
||||
includedir="$selfdir"
|
||||
libdir="$selfdir/lib"
|
||||
|
||||
if test -e "$libdir/libfltk_jpeg.a"; then
|
||||
CFLAGS="-I$includedir/jpeg $CFLAGS"
|
||||
CXXFLAGS="-I$includedir/jpeg $CXXFLAGS"
|
||||
fi
|
||||
|
||||
if test -e "$libdir/libfltk_z.a"; then
|
||||
CFLAGS="-I$includedir/zlib $CFLAGS"
|
||||
CXXFLAGS="-I$includedir/zlib $CXXFLAGS"
|
||||
fi
|
||||
|
||||
if test -e "$libdir/libfltk_png.a"; then
|
||||
CFLAGS="-I$includedir/png $CFLAGS"
|
||||
CXXFLAGS="-I$includedir/png $CXXFLAGS"
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -d $includedir/FL/images; then
|
||||
CFLAGS="-I$includedir/FL/images $CFLAGS"
|
||||
CXXFLAGS="-I$includedir/FL/images $CXXFLAGS"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user