mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-20 08:45:53 +01:00
configure: Allow changing default search paths
This changes the behavior of the --with-{inc,lib}s-from arguments
to replace the default paths instead of adding to them. This is
required when cross-compiling in a sysroot, since the default paths
will include files from the host system which can have an
incompatible architecture.
This commit is contained in:
committed by
Carlos R. Mafra
parent
f9bc310fa6
commit
6320bb6219
@@ -284,18 +284,14 @@ _bindir=`eval echo $_bindir`
|
|||||||
_libdir=`eval echo $libdir`
|
_libdir=`eval echo $libdir`
|
||||||
_libdir=`eval echo $_libdir`
|
_libdir=`eval echo $_libdir`
|
||||||
|
|
||||||
lib_search_path='-L${libdir}'
|
|
||||||
|
|
||||||
inc_search_path='-I${includedir}'
|
|
||||||
|
|
||||||
dnl ===============================================
|
dnl ===============================================
|
||||||
dnl Specify paths to look for libraries and headers
|
dnl Specify paths to look for libraries and headers
|
||||||
dnl ===============================================
|
dnl ===============================================
|
||||||
AC_ARG_WITH(libs-from, AS_HELP_STRING([--with-libs-from], [pass compiler flags to look for libraries]),
|
AC_ARG_WITH(libs-from, AS_HELP_STRING([--with-libs-from], [pass compiler flags to look for libraries]),
|
||||||
[lib_search_path="$withval $lib_search_path"])
|
[lib_search_path="$withval"], [lib_search_path='-L${libdir}'])
|
||||||
|
|
||||||
AC_ARG_WITH(incs-from, AS_HELP_STRING([--with-incs-from], [pass compiler flags to look for header files]),
|
AC_ARG_WITH(incs-from, AS_HELP_STRING([--with-incs-from], [pass compiler flags to look for header files]),
|
||||||
[inc_search_path="$withval $inc_search_path"])
|
[inc_search_path="$withval"], [inc_search_path='-I${includedir}'])
|
||||||
|
|
||||||
|
|
||||||
dnl Features Configuration
|
dnl Features Configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user