4 exec_prefix
=@exec_prefix@
9 cross_compiling
=@cross_compiling@
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 \
( "${cross_compiling}" != "yes" \
36 -o "@includedir@" != "/usr/${target}/include" \
) ;
38 includes
=-I@includedir@
41 includes
="-I@libdir@/wx/include/@TOOLCHAIN_NAME@ $includes"
43 if test $static_flag = yes ; then
44 echo $includes @WXDEBUG_DEFINE@ @TOOLCHAIN_DEFS@ @WXCONFIG_INCLUDE@
46 echo $includes @WXDEBUG_DEFINE@ @TOOLCHAIN_DEFS@ @TOOLCHAIN_DLL_DEFS@ @WXCONFIG_INCLUDE@
50 if test $# -eq 0; then
54 while test $# -gt 0; do
56 -*=*) optarg
=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
63 if test $exec_prefix_set = no
; then
78 echo @WX_MAJOR_VERSION_NUMBER@.@WX_MINOR_VERSION_NUMBER@.@WX_RELEASE_NUMBER@
87 echo `cppflags` @CODE_GEN_FLAGS@
90 echo `cppflags` @CODE_GEN_FLAGS@ @CODE_GEN_FLAGS_CXX@
96 echo @LIBWXMACRESWXCONFIG@
99 if test "@libdir@" != "/usr/lib" \
100 -a \
( "${cross_compiling}" != "yes" \
101 -o "@libdir@" != "/usr/${target}/lib" \
) ;
106 if test $static_flag = yes ; then
107 echo "$libs @LDFLAGS@ @WXCONFIG_RPATH@ @libdir@/@WXCONFIG_LIBS_STATIC@ @LIBS@ @DMALLOC_LIBS@"
109 echo $libs @LDFLAGS@ @WXCONFIG_RPATH@ @WXCONFIG_LIBS@ @DMALLOC_LIBS@
114 if test $static_flag = yes -a "x" != "x@WXCONFIG_LIBS_STATIC_GL@" ; then
115 gllibs
="@libdir@/@WXCONFIG_LIBS_STATIC_GL@"
117 gllibs
="@WXCONFIG_LIBS_GL@"
119 echo @LDFLAGS_GL@
"$gllibs"