make editline build properly on cygwin (bug #4624)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-07-05 19:30:18 +00:00
parent 232e7869e0
commit 7d841b1885
4 changed files with 54 additions and 3 deletions

View File

@@ -31,7 +31,26 @@ case "${host}" in
*-*-freebsd*)
ABI="elf"
;;
*-*-linux*)
*-*-linux* | *cygwin*)
cyg="$(echo ${host} | sed -e c\cygwin)"
if [ ${cyg} = cygwin ]; then \
echo "cygwin detected"; \
S_CFLAGS=""; \
echo "/* cygdef.h. Generated automatically by configure. */
#ifndef _CYGDEF_H_
#define _CYGDEF_H_ 1
#include <sys/ioctl.h>
#define __linux__ 1
typedef void (*sig_t)(int);
#endif /* _CYGDEF_H_ */" > cygdef.h; \
echo "
#define CYGWIN 1
" > confdefs.h; \
fi
ABI="elf"
;;
*-*-netbsd*)