summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2007-03-06 20:00:04 +0000
committerMatthias Melcher <fltk@matthiasm.com>2007-03-06 20:00:04 +0000
commitb2e0a1b087e4b6c0053123460d37a221b46e77b6 (patch)
tree1c644b9b06ccbbe3f7e6d6bee3254b3e7befe934
parent4102380d65cc4ce718d40707dba68f613c344e55 (diff)
STR #1624: Added --optim option for fltk-config which returns all flags for compilation that are not returned by --cflags or --cxxflags.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rwxr-xr-xfltk-config.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/fltk-config.in b/fltk-config.in
index e7668d569..c073d5020 100755
--- a/fltk-config.in
+++ b/fltk-config.in
@@ -58,6 +58,7 @@ CFLAGS="@CFLAGS@ @LARGEFILE@ @PTHREAD_FLAGS@"
CXXFLAGS="@CXXFLAGS@ @LARGEFILE@ @PTHREAD_FLAGS@"
LDFLAGS="@LDFLAGS@"
LDLIBS="@LIBS@"
+OPTIM="@OPTIM@"
# Check for local invocation, and update paths accordingly...
if test -f "$selfdir/FL/Fl_Window.H"; then
@@ -109,6 +110,7 @@ Options telling what we are doing:
Options telling what information we request:
[--cc] return C compiler used to compile FLTK
[--cxx] return C++ compiler used to compile FLTK
+ [--optim] return compiler optimization used to compile FLTK
[--cflags] return flags to compile C using FLTK
[--cxxflags] return flags to compile C++ using FLTK
[--ldflags] return flags to link against FLTK
@@ -159,6 +161,9 @@ do
--cxx)
echo $CXX
;;
+ --optim)
+ echo_optim=yes
+ ;;
--use-gl | --use-glut)
use_gl=yes
;;
@@ -284,6 +289,10 @@ if test "$echo_cxxflags" = "yes"; then
echo $includes $CXXFLAGS
fi
+if test "$echo_optim" = "yes"; then
+ echo $OPTIM
+fi
+
if test "$echo_ldflags" = "yes"; then
my_libs=
libdirs=$libs