----- Original Message -----
From: "Akim Demaille" <[EMAIL PROTECTED]>
To: "Robert Collins" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, March 16, 2001 2:16 AM
Subject: Re: win32 compiler test V3a
>
> | > | AC_REQUIRE([AC_PROG_CC])
> | >
> | > dnl at the end
> |
> | what do you mean by this?
>
> AC_REQUIRE([AC_PROG_CC])dnl
>
> | The curse of reading other peoples code : I got this from a
> | /usr/share/aclocal/ routine
>
> Send fixes to the authors :)
>
>
> | I'm not quite sure whether you meant indent all of them a certain
> | amount, or use heirarchical indenting on them..
>
> See the documentation.
>
> #if
> # if
> ...
> # else
> ...
> # fi
> #else
> #fi
>
> | I had a problem with _AC_LANG not being found by autoconf with your
> | suggested code. In fact I'm not sure that $_AC_LANG will be found
> | either.
>
> What code, how did you write it?
>
> /tmp % cat configure.ac
nostromo Err 1
> AC_DEFUN([Rob],
> [AC_LANG([$1])
> AC_LANG_CASE([C], [# Nada],
> [C++], [# Niente],
> [AC_FATAL([no support for: ]_AC_LANG)])])
>
> AC_INIT
> Rob([C])
> Rob([C++])
> Rob([Fortran 77])
> /tmp % ace
nostromo 16:15
> autoconf: warning: both `configure.ac' and `configure.in' are present.
> autoconf: warning: proceeding with `configure.ac'.
> configure.ac:10: error: no support for: Fortran 77
> configure.ac:5: Rob is expanded from...
> configure.ac:5: Rob is expanded from...
> configure.ac:5: Rob is expanded from...
> configure.ac:10: the top level
>
AC_LANG_CASE(
dnl[C], AC_PROG_CC_WIN32 [CFLAGS="$CFLAGS $WIN32FLAGS],
dnl [C++], [CXXFLAGS="$CXXFLAGS $WIN32FLAGS],
dnl [Fortran 77], [FFLAGS="$FFLAGS $WIN32FLAGS],
[AC_FATAL([NIah? Never heard of] _AC_LANG)])
--
I'll try this tomorrow.. thanks for the great help - I'm off to get some
sleep.
Rob