------- start of forwarded message ------- Return-Path: <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> Mime-Version: 1.0 From: mike burrell <[EMAIL PROTECTED]> Sender: "mike burrell,,," <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: proposal for autoconf languages Date: Sat, 23 Sep 2000 17:30:30 -0600 i've been trying to wrap autoconf around one of my projects (in progress). the problem is that my project relies heavily on Objective C. as i'm sure you know, there is no AC_LANG_OBJC macro :). i'm finding that for Objective C related things, i'm needlessly reimplementing some of the already existing macros, e.g. AC_TRY_COMPILE. rather than proposing AC_LANG_OBJC (which actually wouldn't be too hard), i'm proposing an AC_LANG_CUSTOM. syntax might look like so: AC_LANG_CUSTOM(language-name, extension[, compiler[, flags[, cross]]]) which, in my case, might look something like: AC_LANG_CUSTOM(Objective C, m, $OBJCC, $OBJCFLAGS) or maybe AC_LANG_CUSTOM(Objective C, m, gcc) or something to that effect. example (beginnings of) code might look something like: dnl AC_LANG_CUSTOM() AC_DEFUN(AC_LANG_CUSTOM, [define([AC_LANG], $1)dnl ac_ext=$2 ac_compile='$3 -c $4 $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC' ac_link='$3 -o conftest${ac_exeext} $4 $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC' cross_compiling=$5 ]) which i've patterned after AC_LANG_C there are still some things i have yet to figure out: how this would work with LANG_SAVE and LANG_RESTORE; how to intelligently search for a compiler (analogous to AC_PROG_CC). quite frankly i was hoping that you (or someone you know) might have time to think about this and/or start implementing it. i have a few projects that i'm working on already that i would like to finish first. if you need to discuss it more or want me to provide some trivial code, then i can do that, so long as i don't have to do something that's going to take me days to do :). i just thought about it a bit this afternoon and there's nothing about it to me that immediately makes it seem impractical. personally, i think this would be a much cleaner solution than having a myriad of AC_LANG_*. cheers -- /"\ m i k e b u r r e l l \ / ASCII RIBBON CAMPAIGN [EMAIL PROTECTED] X AGAINST HTML MAIL, / \ AND NEWS TOO, dammit finger [EMAIL PROTECTED] for GPG key ------- end of forwarded message -------