summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fltk-config.cmake.in20
-rwxr-xr-xfltk-config.in18
2 files changed, 35 insertions, 3 deletions
diff --git a/fltk-config.cmake.in b/fltk-config.cmake.in
index fcf146093..a0b1dac41 100644
--- a/fltk-config.cmake.in
+++ b/fltk-config.cmake.in
@@ -4,7 +4,7 @@
#
# FLTK configuration utility.
#
-# Copyright 2000-2009 by Bill Spitzak and others.
+# Copyright 2000-2010 by Bill Spitzak and others.
# Original version Copyright 2000 by James Dean Palmer
# Adapted by Vincent Penne and Michael Sweet
#
@@ -41,7 +41,7 @@ prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
exec_prefix_set=no
bindir=@PREFIX_BIN@
-includedir=@CPREFIX_INCLUDE@
+includedir=@PREFIX_INCLUDE@
libdir=@PREFIX_LIB@
srcdir=.
@@ -123,6 +123,8 @@ Options telling what information we request:
[--ldstaticflags] return flags to link against static FLTK library
even if there are DSOs installed
[--libs] return FLTK libraries full path for dependencies
+ [--prefix] return FLTK install time --prefix directory
+ [--includedir] return FLTK install time include directory
Options to compile and link an application:
[-g] compile the program with debugging information
@@ -197,6 +199,12 @@ do
--libs)
echo_libs=yes
;;
+ --prefix)
+ echo_prefix=yes
+ ;;
+ --includedir)
+ echo_includedir=yes
+ ;;
-g)
debug=-g
;;
@@ -385,6 +393,14 @@ if test "$echo_libs" = "yes"; then
echo $USELIBS
fi
+if test "$echo_prefix" = "yes"; then
+ echo $prefix
+fi
+
+if test "$echo_includedir" = "yes"; then
+ echo $includedir
+fi
+
#
# End of "$Id: fltk-config.in 6614 2009-01-01 16:11:32Z matt $".
#
diff --git a/fltk-config.in b/fltk-config.in
index 76876b44f..23fa799bd 100755
--- a/fltk-config.in
+++ b/fltk-config.in
@@ -4,7 +4,7 @@
#
# FLTK configuration utility.
#
-# Copyright 2000-2009 by Bill Spitzak and others.
+# Copyright 2000-2010 by Bill Spitzak and others.
# Original version Copyright 2000 by James Dean Palmer
# Adapted by Vincent Penne and Michael Sweet
#
@@ -123,6 +123,8 @@ Options telling what information we request:
[--ldstaticflags] return flags to link against static FLTK library
even if there are DSOs installed
[--libs] return FLTK libraries full path for dependencies
+ [--prefix] return FLTK install time --prefix directory
+ [--includedir] return FLTK install time include directory
Options to compile and link an application:
[-g] compile the program with debugging information
@@ -197,6 +199,12 @@ do
--libs)
echo_libs=yes
;;
+ --prefix)
+ echo_prefix=yes
+ ;;
+ --includedir)
+ echo_includedir=yes
+ ;;
-g)
debug=-g
;;
@@ -385,6 +393,14 @@ if test "$echo_libs" = "yes"; then
echo $USELIBS
fi
+if test "$echo_prefix" = "yes"; then
+ echo $prefix
+fi
+
+if test "$echo_includedir" = "yes"; then
+ echo $includedir
+fi
+
#
# End of "$Id$".
#