2000-03-18 06:48:54 +08:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
2021-09-15 12:22:54 +08:00
|
|
|
AC_PREREQ(2.69)dnl
|
2000-03-18 06:48:54 +08:00
|
|
|
|
2021-09-15 12:45:17 +08:00
|
|
|
AC_INIT(wince-stub, 1.0)
|
2000-03-18 06:48:54 +08:00
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AC_ARG_PROGRAM
|
2021-09-15 12:45:17 +08:00
|
|
|
AM_INIT_AUTOMAKE
|
2000-03-18 06:48:54 +08:00
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
cross_compiling=yes
|
|
|
|
program_transform_name=s,^,@target_alias@-,;
|
|
|
|
|
|
|
|
: ${CFLAGS='-O2'}
|
2006-04-20 03:44:05 +08:00
|
|
|
LIB_AC_PROG_CC
|
2000-03-18 06:48:54 +08:00
|
|
|
# CFLAGS="$CFLAGS -Xlinker --defsym -Xlinker _main=_WinMain"
|
|
|
|
AC_CHECK_TOOL(LD, ld, ld)
|
|
|
|
AC_SUBST(LD)
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
case "${target}" in
|
|
|
|
*arm*-*-*) LDADD='-lwinsock -lsslsock' ;;
|
|
|
|
*) LDADD='-lwinsock'
|
|
|
|
esac
|
|
|
|
AC_SUBST(LDADD)
|
2006-04-20 03:44:05 +08:00
|
|
|
LIB_AM_PROG_AS
|
2000-03-18 06:48:54 +08:00
|
|
|
#
|
|
|
|
# The following is sort of a kludge but we *know* that we need
|
|
|
|
# an executable extension and, currently, the sh-pe-gcc compiler
|
|
|
|
# doesn't play well with configure, so, set a "cache" entry.
|
|
|
|
#
|
|
|
|
: ${ac_cv_exeext='.exe'}
|
|
|
|
AC_EXEEXT
|
|
|
|
|
|
|
|
AC_OUTPUT([Makefile])
|