Add AC_CANONICAL_HOST([]) to configure.ac and after AC_PROG_CC add

manual provision of CC=gcc, AR=ar, and LD=ld if they are not set and
the target is *-*-*djgpp.  (Requested by Christophe Grenier)

(Logical change 1.298)
edge.strict_endians
cantab.net!aia21 2004-03-05 23:19:25 +00:00
parent 0260c6db9c
commit 2658aaa398
1 changed files with 13 additions and 4 deletions

View File

@ -23,6 +23,7 @@
AC_PREREQ(2.57)
AC_INIT([ntfsprogs],[1.8.6-WIP],[linux-ntfs-dev@lists.sourceforge.net])
AC_CANONICAL_HOST([])
AC_CANONICAL_TARGET([])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADERS([config.h])
@ -37,14 +38,14 @@ AM_ENABLE_STATIC
# but doesn't. So this sets host and erases nonopt effectively moving the
# standalone command line option into the --host= form.
if test "x$nonopt" != "xNONE"; then
host="$nonopt"
nonopt="NONE"
host="$nonopt"
nonopt="NONE"
fi
AC_PREFIX_DEFAULT(/usr/local)
if test "x$prefix" = "xNONE"; then
prefix=$ac_default_prefix
ac_configure_args="$ac_configure_args --prefix $prefix"
prefix=$ac_default_prefix
ac_configure_args="$ac_configure_args --prefix $prefix"
fi
# Command-line options.
@ -98,6 +99,14 @@ AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
case "$target" in
*-*-*djgpp)
if test -z "$CC"; then CC=gcc; fi
if test -z "$AR"; then AR=ar; fi
if test -z "$LD"; then LD=ld; fi
;;
esac
# Enable large file support.
AC_SYS_LARGEFILE