summaryrefslogtreecommitdiff
path: root/m4/fp_prog_sh.m4
blob: 18e909da518c6f4687afc8ed9c26b3e92740d7a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# FP_PROG_SH
# ------------
# Find a functional Bourne shell
AC_DEFUN([FP_PROG_SH],
[
 AC_REQUIRE([FPTOOLS_SET_PLATFORMS_VARS]) dnl for $windows
 AC_ARG_VAR(SH,[Use as the full path to a Bourne shell. [default=autodetect]])
 AC_PATH_PROGS([SH], [sh bash])
 if test "$windows" = "YES"; then
   dnl use mixed (-m) mode to get C:/mingw64/... with forward slashes.
   dnl     windows (-w) mode will give us C:\... and mess with escaping.
   SH=`cygpath -m "$SH"`
 fi
 AC_SUBST([SH])[]dnl
])# FP_PROG_SH