4 exec_prefix
=@exec_prefix@
9 cross_compiling
=@cross_compiling@
11 static_flag
=@STATIC_FLAG@
16 Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--static]
18 [--cppflags] [--cflags] [--cxxflags] [--ldflags] [--rezflags]
21 wx-config returns configuration information about the installed
22 version of wxWindows. It may be used to query its version and
23 installation directories and also retrieve the C and C++ compilers
24 and linker which were used for its building and the corresponding
33 if test "@includedir@" != "/usr/include" \
34 -a "@includedir@" != "/usr/include/c++" \
35 -a "@includedir@" != "/usr/local/include" \
36 -a \
( "${cross_compiling}" != "yes" \
37 -o "@includedir@" != "/usr/${target}/include" \
) ;
39 includes
=-I@includedir@
42 includes
="-I@libdir@/wx/include/@TOOLCHAIN_NAME@ $includes"
44 if test $static_flag = yes ; then
45 echo $includes @WXDEBUG_DEFINE@ @TOOLCHAIN_DEFS@ @WXCONFIG_INCLUDE@ @WX_LARGEFILE_FLAGS@
47 echo $includes @WXDEBUG_DEFINE@ @TOOLCHAIN_DEFS@ @TOOLCHAIN_DLL_DEFS@ @WXCONFIG_INCLUDE@ @WX_LARGEFILE_FLAGS@
51 if test $# -eq 0; then
55 while test $# -gt 0; do
57 -*=*) optarg
=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
64 if test $exec_prefix_set = no
; then
79 echo @WX_MAJOR_VERSION_NUMBER@.@WX_MINOR_VERSION_NUMBER@.@WX_RELEASE_NUMBER@
88 echo `cppflags` @CODE_GEN_FLAGS@
91 echo `cppflags` @CODE_GEN_FLAGS@ @CODE_GEN_FLAGS_CXX@
97 echo @LIBWXMACRESWXCONFIG@
100 if test "@libdir@" != "/usr/lib" \
101 -a \
( "${cross_compiling}" != "yes" \
102 -o "@libdir@" != "/usr/${target}/lib" \
) ;
107 if test $static_flag = yes ; then
108 echo "$libs @LDFLAGS@ @WXCONFIG_RPATH@ @libdir@/@WXCONFIG_LIBS_STATIC@ @LIBS@ @DMALLOC_LIBS@"
110 echo $libs @LDFLAGS@ @WXCONFIG_RPATH@ @WXCONFIG_LIBS@ @DMALLOC_LIBS@
115 if test $static_flag = yes -a "x" != "x@WXCONFIG_LIBS_STATIC_GL@" ; then
116 gllibs
="@libdir@/@WXCONFIG_LIBS_STATIC_GL@"
118 gllibs
="@WXCONFIG_LIBS_GL@"
120 echo @LDFLAGS_GL@
"$gllibs"