correct cygwin detection (issue #5328)

handle parallel make better (issue #5328)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6725 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-10-05 00:17:57 +00:00
parent aeaf9f4cc6
commit 0bffff1930
5 changed files with 14 additions and 11 deletions

View File

@@ -3,9 +3,8 @@
#
OSTYPE=$(shell uname -s)
cygx="$(shell uname -s | sed -e c\cygwin | tr [:upper:] [:lower:])"
define cyg_subst_sys
if [ $(cygx) = "cygwin" ]; then \
if uname -s | grep -qi cygwin; then \
cat $@ | sed -e s/"sys\.h"/"config.h"/g > $@.copy; \
mv --force $@.copy $@; \
fi
@@ -230,3 +229,5 @@ editline.c : $(ACSRCS) $(BCSRCS) $(AGCSRCS)
.c.o_s : $(AGHDRS) $(BGHDRS)
$(CC) -c $(S_CFLAGS) $(CFLAGS) $(CPPFLAGS) $< -o $@
$(CCSRCS) : $(BGHDRS)

3
editline/configure vendored
View File

@@ -895,8 +895,7 @@ case "${host}" in
ABI="elf"
;;
*-*-linux* | *cygwin*)
cyg="$(echo ${host} | sed -e c\cygwin)"
if [ ${cyg} = cygwin ]; then \
if echo ${host} | grep -q cygwin ; then \
echo "cygwin detected"; \
S_CFLAGS=""; \
echo "/* cygdef.h. Generated automatically by configure. */

View File

@@ -32,8 +32,7 @@ case "${host}" in
ABI="elf"
;;
*-*-linux* | *cygwin*)
cyg="$(echo ${host} | sed -e c\cygwin)"
if [ ${cyg} = cygwin ]; then \
if echo ${host} | grep -q cygwin ; then \
echo "cygwin detected"; \
S_CFLAGS=""; \
echo "/* cygdef.h. Generated automatically by configure. */