LD="@SHARED_LD@"
cross_compiling=@cross_compiling@
target=@host_alias@
-static_flag=no
+static_flag=@STATIC_FLAG@
usage()
{
cat <<EOF
Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--static]
- [--libs] [--gl-libs] [--cppflags] [--cflags] [--cxxflags] [--rezflags]
+ [--libs] [--gl-libs]
+ [--cppflags] [--cflags] [--cxxflags] [--ldflags] [--rezflags]
[--cc] [--cxx] [--ld]
wx-config returns configuration information about the installed
{
if test "@includedir@" != "/usr/include" \
-a "@includedir@" != "/usr/include/c++" \
+ -a "@includedir@" != "/usr/local/include" \
-a \( "${cross_compiling}" != "yes" \
-o "@includedir@" != "/usr/${target}/include" \) ;
then
includes="-I@libdir@/wx/include/@TOOLCHAIN_NAME@ $includes"
if test $static_flag = yes ; then
- echo $includes @WXDEBUG_DEFINE@ @TOOLCHAIN_DEFS@ @WXCONFIG_INCLUDE@
+ echo $includes @WXDEBUG_DEFINE@ @TOOLCHAIN_DEFS@ @WXCONFIG_INCLUDE@ @WX_LARGEFILE_FLAGS@
else
- echo $includes @WXDEBUG_DEFINE@ @TOOLCHAIN_DEFS@ @TOOLCHAIN_DLL_DEFS@ @WXCONFIG_INCLUDE@
+ echo $includes @WXDEBUG_DEFINE@ @TOOLCHAIN_DEFS@ @TOOLCHAIN_DLL_DEFS@ @WXCONFIG_INCLUDE@ @WX_LARGEFILE_FLAGS@
fi
}
--cxxflags)
echo `cppflags` @CODE_GEN_FLAGS@ @CODE_GEN_FLAGS_CXX@
;;
+ --ldflags)
+ echo @LDFLAGS_EXE@
+ ;;
--rezflags)
echo @LIBWXMACRESWXCONFIG@
;;
fi
if test $static_flag = yes ; then
- echo "$libs @LDFLAGS@ @WXCONFIG_LIBS@ @LIBS@ @DMALLOC_LIBS@"
+ echo "$libs @LDFLAGS@ @WXCONFIG_RPATH@ @libdir@/@WXCONFIG_LIBS_STATIC@ @LIBS@ @DMALLOC_LIBS@"
else
- echo $libs @LDFLAGS@ @WXCONFIG_LIBS@ @DMALLOC_LIBS@
+ echo $libs @LDFLAGS@ @WXCONFIG_RPATH@ @WXCONFIG_LIBS@ @DMALLOC_LIBS@
fi
;;
--gl-libs)
- echo @LDFLAGS_GL@ @WXCONFIG_LIBS_GL@
+ if test $static_flag = yes -a "x" != "x@WXCONFIG_LIBS_STATIC_GL@" ; then
+ gllibs="@libdir@/@WXCONFIG_LIBS_STATIC_GL@"
+ else
+ gllibs="@WXCONFIG_LIBS_GL@"
+ fi
+ echo @LDFLAGS_GL@ "$gllibs"
;;
--cc)
echo $CC