;;
esac
fi
+if test -n "$DJGPP"; then
+ trnl='\012'
+fi
if test X"$trnl" = X; then
cat <<EOM >&2
d_getsbyname=''
d_getsbyport=''
d_gnulibc=''
-i_arpa_inet=''
+i_arpainet=''
d_htonl=''
d_inetaton=''
d_isascii=''
al="$al SYSTYPE_BSD SYSTYPE_SVR4 SYSTYPE_SYSV Tek4132 Tek4300"
al="$al UMAXV USGr4 USGr4_2 UTEK UTS UTek UnicomPBB UnicomPBD Utek"
al="$al VMS Xenix286"
-al="$al _AIX _AIX32 _AIX370 _AM29000 _COFF _CRAY _CX_UX _EPI"
+al="$al _AIX _AIX32 _AIX370 _AIX41 _AM29000 _COFF _CRAY _CX_UX _EPI _POWER"
al="$al _IBMESA _IBMR2 _M88K _M88KBCS_TARGET"
al="$al _MIPSEB _MIPSEL _M_COFF _M_I86 _M_I86SM _M_SYS3"
al="$al _M_SYS5 _M_SYSIII _M_SYSV _M_UNIX _M_XENIX _NLS _PGC_ _R3000"
return 1;
}
EOM
-$cc $ccflags $ldflags -o tebcdic tebcdic.c $libs >/dev/null 2>&1
-if ./tebcdic; then
- echo "You have EBCDIC. Adding -DEBCDIC to ccflags." >&4
- ccflags="$ccflags -DEBCDIC"
- val="$define"
+val=$undef
+set tebcdic
+if eval $compile_ok; then
+ if ./tebcdic; then
+ echo "You have EBCDIC." >&4
+ val="$define"
+ else
+ echo "Nope, no EBCDIC. Assuming ASCII or some ISO Latin." >&4
+ fi
else
- echo "Nope, no EBCDIC. Assuming ASCII or some ISO Latin. Or UTF-8." >&4
- val="$undef"
+ echo "I'm unable to compile the test program." >&4
+ echo "I'll asuume ASCII or some ISO Latin." >&4
fi
-rm -f tebcdic.c tebcdic
+$rm -f tebcdic.c tebcdic
set ebcdic
eval $setvar
eval $inhdr
: see if this is an arpa/inet.h
-set arpa/inet.h i_arpa_inet
+set arpa/inet.h i_arpainet
eval $inhdr
: see if htonl --and friends-- exists
#include <sys/types.h>
#$i_niin I_NETINET_IN
#$i_sysin I_SYS_IN
-#$i_arpa_inet I_ARPA_INET
+#$i_arpainet I_ARPA_INET
#ifdef I_NETINET_IN
#include <netinet/in.h>
#endif
hint='$hint'
hostcat='$hostcat'
huge='$huge'
-i_arpa_inet='$i_arpa_inet'
+i_arpainet='$i_arpainet'
i_bsdioctl='$i_bsdioctl'
i_db='$i_db'
i_dbm='$i_dbm'