diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-01-06 21:28:17 +0100 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-01-07 08:44:28 +0000 |
commit | e9cd5087366f930efd89a95c0a5610fe8f375581 (patch) | |
tree | 77e83e7d88a8f6cf4a485b5f70686588661bc7a8 /configure.ac | |
parent | 2e11a3e03ed37eb86cd87f68191c48d2a6e442cb (diff) |
configure: hard-code /usr/bin/{sort,find} for Cygwin
... to avoid calling C:/Windows/system32/{sort,find}.exe, if those
happen to be first in PATH.
On a Windows 7 system, the other conflicts appear to be harmless,
we don't use "more", "expand", "timeout", "whoami".
Change-Id: Iceefeb7ee6725291b04c0eba465991bb1df96b57
Reviewed-on: https://gerrit.libreoffice.org/21175
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 605726d10eee..35cffc131f1e 100644 --- a/configure.ac +++ b/configure.ac @@ -12772,19 +12772,26 @@ if test "$build_os" = "cygwin"; then if test "$BITNESS_OVERRIDE" = 64; then ATL_LIB="$ATL_LIB/amd64" fi + # sort.exe and find.exe also exist in C:/Windows/system32 so need /usr/bin/ + PathFormat "/usr/bin/find.exe" + FIND="$formatted_path" + PathFormat "/usr/bin/sort.exe" + SORT="$formatted_path" PathFormat "/usr/bin/grep.exe" WIN_GREP="$formatted_path" - PathFormat "/usr/bin/find.exe" - WIN_FIND="$formatted_path" PathFormat "/usr/bin/ls.exe" WIN_LS="$formatted_path" PathFormat "/usr/bin/touch.exe" WIN_TOUCH="$formatted_path" +else + FIND=find + SORT=sort fi AC_SUBST(ATL_INCLUDE) AC_SUBST(ATL_LIB) -AC_SUBST(WIN_FIND) +AC_SUBST(FIND) +AC_SUBST(SORT) AC_SUBST(WIN_GREP) AC_SUBST(WIN_LS) AC_SUBST(WIN_TOUCH) |