From MAILER-DAEMON Sun Jan 02 13:04:19 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PZSHz-000419-OQ
	for mharc-autoconf@gnu.org; Sun, 02 Jan 2011 13:04:19 -0500
Received: from [140.186.70.92] (port=48694 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PZSHw-00040f-AQ
	for autoconf@gnu.org; Sun, 02 Jan 2011 13:04:17 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bruce.korb@gmail.com>) id 1PZSHl-0005eE-A5
	for autoconf@gnu.org; Sun, 02 Jan 2011 13:04:06 -0500
Received: from mail-pw0-f41.google.com ([209.85.160.41]:42461)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruce.korb@gmail.com>) id 1PZSHl-0005e2-2M
	for autoconf@gnu.org; Sun, 02 Jan 2011 13:04:05 -0500
Received: by pwj8 with SMTP id 8so2272148pwj.0
	for <autoconf@gnu.org>; Sun, 02 Jan 2011 10:04:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:message-id:date:from
	:user-agent:mime-version:to:cc:subject:references:in-reply-to
	:content-type:content-transfer-encoding;
	bh=AByoaZrMZwo1e45UUf4QRy6we1PDLAw0EjZVUyKrinY=;
	b=rkNC23mI+n5qwF8dfo6/p7pNr+jiTtyLV/1A62OBqc3fno0r4npKvhhzAoR2j7qAKj
	snibCummmGE5jVgQB6FBI2a9xI3l1XO/YM1Enn80AMbji/9CjSKzlnqx0Ao+6JPq8mY1
	aLdQ7YGGkpNHnWDDKAWUsgRLAESycyxyU0i38=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:user-agent:mime-version:to:cc:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	b=HJtbV8sbOHGi8oCXvmjSn71YASxVqBIsh4Jnvd2CpX6x3aFh++y+7etJy+eNe4wTd1
	EckhMHaYYwRYv9U0DrMUDZiqME/j69ZLdsNkcOSqcAPm+7Tn0/40y4f9Z3yNpUAUOlMV
	pmh1GuRKcVY+bU0NEjAEM3MQtT4aYFc0kvuLc=
Received: by 10.142.203.1 with SMTP id a1mr16126083wfg.345.1293991443641;
	Sun, 02 Jan 2011 10:04:03 -0800 (PST)
Received: from [10.10.1.101] (adsl-75-2-133-184.dsl.pltn13.sbcglobal.net
	[75.2.133.184])
	by mx.google.com with ESMTPS id w14sm27950289wfd.18.2011.01.02.10.04.02
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Sun, 02 Jan 2011 10:04:02 -0800 (PST)
Message-ID: <4D20BE0B.6040104@gmail.com>
Date: Sun, 02 Jan 2011 10:03:55 -0800
From: Bruce Korb <bruce.korb@gmail.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11
MIME-Version: 1.0
To: Eric Blake <eblake@redhat.com>, GIT Development <git@vger.kernel.org>
References: <4D1D33D7.7040809@gmail.com> <4D1DFF96.4010004@redhat.com>
In-Reply-To: <4D1DFF96.4010004@redhat.com>
Content-Type: text/plain; charset=windows-1256
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: GNU Autoconf mailing list <autoconf@gnu.org>
Subject: Re: fatal: ambiguous message
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 02 Jan 2011 18:04:17 -0000

On 12/31/10 08:06, Eric Blake wrote:
> On 12/30/2010 06:37 PM, Bruce Korb wrote:
>> Hi,
>>
>> Is this fatal?  If so, how come it continued?
> 
> It's fatal to git-version-gen, which did not continue.

git-version-gen has but two fatal conditions: invalid arguments
yielding a usage message and an unreadable "tarball version file".
That is not this message, but might be clarified with:

    v=`cat $tarball_version_file 2>&1` || {
        echo "$0 error: unreadable tarball version file $1:  $v" >&2
        exit 1
    }

In any event, the invocation is:
   ./git-version-gen .tarball-version
and the file ".tarball-version" does not exist, hence git-version-gen
should not fail at all.  So, this message says, "fatal: ..."
and comes from git and all three "git" invocations redirect stderr to
/dev/null.  The fact that we see it is a git bug.  Error messages
should be directed to stderr and thus written to /dev/null.

So, git-version-gen is correct to continue, but git should fail
with a message that names the program that fails ("git") and
should direct the message to stderr.

Note to GIT list: the message in question:

    fatal: ambiguous argument 'v0.1..HEAD': unknown revision \
       or path not in the working tree.

Thanks!  Regards, Bruce


From MAILER-DAEMON Sun Jan 02 13:07:38 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PZSLC-0005Av-5u
	for mharc-autoconf@gnu.org; Sun, 02 Jan 2011 13:07:38 -0500
Received: from [140.186.70.92] (port=46014 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PZSLA-00057i-6U
	for autoconf@gnu.org; Sun, 02 Jan 2011 13:07:37 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bruce.korb@gmail.com>) id 1PZSL8-0006Ew-4j
	for autoconf@gnu.org; Sun, 02 Jan 2011 13:07:35 -0500
Received: from mail-pv0-f169.google.com ([74.125.83.169]:37340)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruce.korb@gmail.com>) id 1PZSL7-0006EY-OJ
	for autoconf@gnu.org; Sun, 02 Jan 2011 13:07:34 -0500
Received: by pvc30 with SMTP id 30so3267233pvc.0
	for <autoconf@gnu.org>; Sun, 02 Jan 2011 10:07:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:message-id:date:from
	:user-agent:mime-version:to:cc:subject:references:in-reply-to
	:content-type:content-transfer-encoding;
	bh=I7PPuXpHHl4B0FHKaLOaAt1raxXtNZYcymVQYm9UEw4=;
	b=S33KuUnzbk5LRPC3CUujxZ/uNZt8WtPUOVs6GDyXN/eXUSjGxQUjdUc4rjz7K/C0eM
	HIYtZASgN+18Ow2hyf+u+5gwHbYhMKRoJ55oSsMj3yZEPrdhfxMd9ObytpJafKdr7ZBv
	HvEngk538XCb2HIDKgtChacX+xi2joNu90YBI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:user-agent:mime-version:to:cc:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	b=U6UerlQwmGEurI5/iMRIr74CWkZkTZOFL3Pkd+/L8zJWt9TTsTHda7KDKldY3fBXd7
	T5w//HGZWmQIpAhm47066cwJbZigTmWAOye5RQz+JGzbXAsbXBH9HeH+HuDA1NDl848N
	3Pq5Klj4OPslk1yY43TTZi0XqNYYhste4xhy4=
Received: by 10.143.161.17 with SMTP id n17mr16188678wfo.160.1293991652847;
	Sun, 02 Jan 2011 10:07:32 -0800 (PST)
Received: from [10.10.1.101] (adsl-75-2-133-184.dsl.pltn13.sbcglobal.net
	[75.2.133.184])
	by mx.google.com with ESMTPS id o1sm3886892wfl.14.2011.01.02.10.07.31
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Sun, 02 Jan 2011 10:07:32 -0800 (PST)
Message-ID: <4D20BEDD.7010709@gmail.com>
Date: Sun, 02 Jan 2011 10:07:25 -0800
From: Bruce Korb <bruce.korb@gmail.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11
MIME-Version: 1.0
To: Eric Blake <eblake@redhat.com>
References: <4D1D33D7.7040809@gmail.com> <4D1DFF96.4010004@redhat.com>
In-Reply-To: <4D1DFF96.4010004@redhat.com>
Content-Type: text/plain; charset=windows-1256
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: GNU Autoconf mailing list <autoconf@gnu.org>
Subject: Re: fatal: ambiguous message
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 02 Jan 2011 18:07:37 -0000

On 12/31/10 08:06, Eric Blake wrote:
>> the configure.ac file starts with this:
>>
>>> AC_INIT([GNU libposix],
>>>     m4_esyscmd([./git-version-gen .tarball-version]),
>>>     [bug-gnulib@gnu.org])
> 
> Also, you should patch configure.ac to add an additional line:
> 
> m4_if(m4_sysval, [0], [],
>  [m4_fatal([git-version-gen failed, please investigate])])

Hi Eric,

Per my message of seconds ago, I am sure that git-version-gen
has finished correctly with a zero exit code.  Also, if such
complexity is required, perhaps an autoconf macro a la:
  AC_ESYSCMD_OK([./git-version-gen .tarball-version])
that will error out of the command exits non-zero?


From MAILER-DAEMON Sun Jan 02 19:16:34 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PZY6D-0005Rg-VA
	for mharc-autoconf@gnu.org; Sun, 02 Jan 2011 19:16:34 -0500
Received: from [140.186.70.92] (port=47794 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PZY6B-0005RR-V6
	for autoconf@gnu.org; Sun, 02 Jan 2011 19:16:33 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bruce.korb@gmail.com>) id 1PZY6A-0004Aw-61
	for autoconf@gnu.org; Sun, 02 Jan 2011 19:16:31 -0500
Received: from mail-gy0-f169.google.com ([209.85.160.169]:47703)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruce.korb@gmail.com>) id 1PZY6A-0004Ao-01
	for autoconf@gnu.org; Sun, 02 Jan 2011 19:16:30 -0500
Received: by gyd10 with SMTP id 10so2232970gyd.0
	for <autoconf@gnu.org>; Sun, 02 Jan 2011 16:16:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:message-id:date:from
	:user-agent:mime-version:to:cc:subject:references:in-reply-to
	:content-type; bh=lSI/l28X99XtwIfvevTaUp34uICJmFJQE6Nc1zW3yRA=;
	b=D8HDKmcUOv1qmzVsBYXfUiJqmNl1HDsGNd05+iEE1q/ywIdcPr71paVK38Ywdbk4yA
	/JQwoFUJNCKIlep5eFigrmzfwGCEDax5CasQyk2WpTQshySL3J+NjDNwWVvEXVINo2yD
	W2onjQOOE8e/sRbHuuvwsZiYHF6ce1eiqaVWg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:user-agent:mime-version:to:cc:subject
	:references:in-reply-to:content-type;
	b=e+HQuINoZ/0rjXJxsjtv8fdfhb/w8M2kdfeWdnsXh+KfM8JM2oUvNhiJgZaUW4o9dh
	X7icBIepV58GIn/cYzyF8Go2juaoRqR7RljNMK9/PBJIIh4NrXUY5XE6EUBQHGsNxuWm
	Bx51hcKcqNebKVXNDyKXqDVArjvgNooKxiS88=
Received: by 10.100.195.4 with SMTP id s4mr9189958anf.166.1294013789291;
	Sun, 02 Jan 2011 16:16:29 -0800 (PST)
Received: from [10.10.1.101] (adsl-75-2-133-184.dsl.pltn13.sbcglobal.net
	[75.2.133.184])
	by mx.google.com with ESMTPS id j14sm27312154anb.19.2011.01.02.16.16.27
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Sun, 02 Jan 2011 16:16:28 -0800 (PST)
Message-ID: <4D211555.1040502@gmail.com>
Date: Sun, 02 Jan 2011 16:16:21 -0800
From: Bruce Korb <bruce.korb@gmail.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11
MIME-Version: 1.0
To: Jonathan Nieder <jrnieder@gmail.com>
References: <4D1D33D7.7040809@gmail.com> <4D1DFF96.4010004@redhat.com>
	<4D20BE0B.6040104@gmail.com> <20110102183453.GA13463@burratino>
In-Reply-To: <20110102183453.GA13463@burratino>
Content-Type: multipart/mixed; boundary="------------020507080704030404030103"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: GNU Autoconf mailing list <autoconf@gnu.org>,
	Eric Blake <eblake@redhat.com>, GIT Development <git@vger.kernel.org>
Subject: Re: fatal: ambiguous message
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 03 Jan 2011 00:16:33 -0000

This is a multi-part message in MIME format.
--------------020507080704030404030103
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi Jonathan,

On Sun, Jan 2, 2011 at 10:34 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
> Were you been able to reproduce that outside the script?

No, I was blind to the invocation.  You found it.  I was looking
without seeing.  Thank you.

Given that shells without functions can be considered sufficiently
obsolete to not be a consideration, perhaps a better solution is
to put the I-don't-care-about-error-messages code into a separate
function with stderr redirected.  Doing that turned out messier
than I had hoped....


--------------020507080704030404030103
Content-Type: text/x-patch;
 name="gvg.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="gvg.patch"

diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen
index c278f6a..8a238b0 100755
--- a/build-aux/git-version-gen
+++ b/build-aux/git-version-gen
@@ -1,6 +1,6 @@
 #!/bin/sh
 # Print a version string.
-scriptversion=2010-10-13.20; # UTC
+scriptversion=2011-01-03.00; # UTC
 
 # Copyright (C) 2007-2011 Free Software Foundation, Inc.
 #
@@ -78,76 +78,96 @@ tag_sed_script="${2:-s/x/x/}"
 nl='
 '
 
-# Avoid meddling by environment variable of the same name.
-v=
+get_ver()
+{
+    local PS4='>gv> '
+    git status >/dev/null 2>&1 || {
+        printf UNKNOWN
+        exit 0
+    }
 
-# First see if there is a tarball-only version file.
-# then try "git describe", then default.
-if test -f $tarball_version_file
-then
-    v=`cat $tarball_version_file` || exit 1
-    case $v in
-	*$nl*) v= ;; # reject multi-line output
-	[0-9]*) ;;
-	*) v= ;;
+    test "`git log -1 --pretty=format:x . 2>&1`" = x || {
+        printf UNKNOWN
+        exit 0
+    }
+
+    X=`git describe --abbrev=4 --match='v*' HEAD || \
+        git describe --abbrev=4 HEAD` || {
+        printf UNKNOWN
+        exit 0
+    }
+
+    case "$X" in
+    v[0-9]* ) : ;;
+    * )
+        printf UNKNOWN
+        exit 0
+        ;;
     esac
-    test -z "$v" \
-	&& echo "$0: WARNING: $tarball_version_file seems to be damaged" 1>&2
-fi
 
-if test -n "$v"
-then
-    : # use $v
-# Otherwise, if there is at least one git commit involving the working
-# directory, and "git describe" output looks sensible, use that to
-# derive a version string.
-elif test "`git log -1 --pretty=format:x . 2>&1`" = x \
-    && v=`git describe --abbrev=4 --match='v*' HEAD 2>/dev/null \
-	  || git describe --abbrev=4 HEAD 2>/dev/null` \
-    && v=`printf '%s\n' "$v" | sed "$tag_sed_script"` \
-    && case $v in
-	 v[0-9]*) ;;
-	 *) (exit 1) ;;
-       esac
-then
     # Is this a new git that lists number of commits since the last
     # tag or the previous older version that did not?
     #   Newer: v6.10-77-g0f8faeb
     #   Older: v6.10-g0f8faeb
-    case $v in
+    case $X in
 	*-*-*) : git describe is okay three part flavor ;;
 	*-*)
 	    : git describe is older two part flavor
 	    # Recreate the number of commits and rewrite such that the
 	    # result is the same as if we were using the newer version
 	    # of git describe.
-	    vtag=`echo "$v" | sed 's/-.*//'`
+	    vtag=`echo "$X" | sed 's/-.*//'`
 	    numcommits=`git rev-list "$vtag"..HEAD | wc -l`
-	    v=`echo "$v" | sed "s/\(.*\)-\(.*\)/\1-$numcommits-\2/"`;
+	    X=`echo "$X" | sed "s/\(.*\)-\(.*\)/\1-$numcommits-\2/"`;
 	    ;;
     esac
 
+    # Don't declare a version "dirty" merely because a time stamp has changed.
+    silent_git update-index --refresh >/dev/null 2>&1
+
+    dirty=`git diff-index --name-only HEAD` || dirty=
+    case "$dirty" in
+    '') ;;
+    *) # Append the suffix only if there isn't one already.
+	case $X in
+	  *-dirty) ;;
+	  *) X="$X-dirty" ;;
+	esac
+        ;;
+    esac
+
     # Change the first '-' to a '.', so version-comparing tools work properly.
     # Remove the "g" in git describe's output string, to save a byte.
-    v=`echo "$v" | sed 's/-/./;s/\(.*\)-g/\1-/'`;
+    echo "$X" | sed 's/^v//;s/-/./;s/\(.*\)-g/\1-/'
+}
+
+# First see if there is a tarball-only version file.
+# then try "git describe", then default.
+if test -f $tarball_version_file
+then
+    v=`cat $tarball_version_file` || exit 1
+    case $v in
+	*$nl*) v= ;; # reject multi-line output
+	[0-9]*) ;;
+	*) v= ;;
+    esac
+    test -z "$v" \
+	&& echo "$0: WARNING: $tarball_version_file seems to be damaged" 1>&2
 else
-    v=UNKNOWN
+    v=
 fi
 
-v=`echo "$v" |sed 's/^v//'`
-
-# Don't declare a version "dirty" merely because a time stamp has changed.
-git update-index --refresh > /dev/null 2>&1
+if test -n "$v"
+then
+    : # use $v
 
-dirty=`sh -c 'git diff-index --name-only HEAD' 2>/dev/null` || dirty=
-case "$dirty" in
-    '') ;;
-    *) # Append the suffix only if there isn't one already.
-	case $v in
-	  *-dirty) ;;
-	  *) v="$v-dirty" ;;
-	esac ;;
-esac
+else
+    # Otherwise, if there is at least one git commit involving the
+    # working directory, and "git describe" output looks sensible, use
+    # that to derive a version string.
+    #
+    v=`get_ver` 2>/dev/null
+fi
 
 # Omit the trailing newline, so that m4_esyscmd can use the result directly.
 echo "$v" | tr -d "$nl"

--------------020507080704030404030103--


From MAILER-DAEMON Mon Jan 03 04:48:49 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PZh20-0004Mf-OD
	for mharc-autoconf@gnu.org; Mon, 03 Jan 2011 04:48:48 -0500
Received: from [140.186.70.92] (port=47823 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PZSlo-0006W1-NC
	for autoconf@gnu.org; Sun, 02 Jan 2011 13:35:09 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jrnieder@gmail.com>) id 1PZSln-00024D-F2
	for autoconf@gnu.org; Sun, 02 Jan 2011 13:35:08 -0500
Received: from mail-iw0-f169.google.com ([209.85.214.169]:60921)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jrnieder@gmail.com>) id 1PZSln-00023w-C7
	for autoconf@gnu.org; Sun, 02 Jan 2011 13:35:07 -0500
Received: by iwn40 with SMTP id 40so14435367iwn.0
	for <autoconf@gnu.org>; Sun, 02 Jan 2011 10:35:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:date:from:to:cc:subject
	:message-id:references:mime-version:content-type:content-disposition
	:in-reply-to:user-agent;
	bh=YwmGjO+rj/jrrtUYYHzs1MQzaPPgFmJ9OCQbZWFszBQ=;
	b=jhahko22e3X43i5AW7iinlUGhd8qZzzT9AHAwbxcZl1fmt8nSXMuDXvKKBnf+icRsm
	YgLRd20N9dXhorXcy//U2Ito5l8kpwgeNwLyRz9NCX2tBi/T3nas3bGV92X9lkPM1bZw
	/4r56tw8Ij954R+e7fjZFFY3j+cqeGoBjWOhY=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=date:from:to:cc:subject:message-id:references:mime-version
	:content-type:content-disposition:in-reply-to:user-agent;
	b=IvgHahCF5/q94r4L5l9wXSHmA4OraFDhucmAMdAO+R3p7zE+yFu5IrYKPH2revhPCx
	/kIhfIRrt1tyWu6hO18+IKaBJuq4X738QDCpyzkDu/8/QKNKW5AqHvtHWw23SoDhHKdr
	BOntiMzrh+MPA3jyJd5acfw8lHdfUehW4YdOQ=
Received: by 10.42.227.131 with SMTP id ja3mr6081051icb.250.1293993305878;
	Sun, 02 Jan 2011 10:35:05 -0800 (PST)
Received: from burratino (adsl-69-209-72-219.dsl.chcgil.ameritech.net
	[69.209.72.219])
	by mx.google.com with ESMTPS id jv9sm16897371icb.1.2011.01.02.10.35.03
	(version=SSLv3 cipher=RC4-MD5); Sun, 02 Jan 2011 10:35:05 -0800 (PST)
Date: Sun, 2 Jan 2011 12:34:53 -0600
From: Jonathan Nieder <jrnieder@gmail.com>
To: Bruce Korb <bruce.korb@gmail.com>
Message-ID: <20110102183453.GA13463@burratino>
References: <4D1D33D7.7040809@gmail.com> <4D1DFF96.4010004@redhat.com>
	<4D20BE0B.6040104@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4D20BE0B.6040104@gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Mailman-Approved-At: Mon, 03 Jan 2011 04:48:46 -0500
Cc: GNU Autoconf mailing list <autoconf@gnu.org>,
	Eric Blake <eblake@redhat.com>, GIT Development <git@vger.kernel.org>
Subject: Re: fatal: ambiguous message
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 02 Jan 2011 18:35:09 -0000

Hi,

Context: http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blob;f=build-aux/git-version-gen

Bruce Korb wrote:
>                          So, this message says, "fatal: ..."
> and comes from git and all three "git" invocations redirect stderr to
> /dev/null.  The fact that we see it is a git bug.  Error messages
> should be directed to stderr and thus written to /dev/null.

Were you been able to reproduce that outside the script?

> So, git-version-gen is correct to continue, but git should fail
> with a message that names the program that fails ("git") and
> should direct the message to stderr.

No thoughts on this part.  git has at least four kinds of message it
sends to stderr (fatal:, warning:, error:, and usage:) but I am
not sure it is useful to distinguish them ---

	git add: pathspec 'nonsense' did not match any files

might be nicer.

diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen
index 5617eb8..119d7aa 100755
--- a/build-aux/git-version-gen
+++ b/build-aux/git-version-gen
@@ -119,7 +119,7 @@ then
 	    # result is the same as if we were using the newer version
 	    # of git describe.
 	    vtag=`echo "$v" | sed 's/-.*//'`
-	    numcommits=`git rev-list "$vtag"..HEAD | wc -l`
+	    numcommits=`git rev-list "$vtag"..HEAD 2>/dev/null | wc -l`
 	    v=`echo "$v" | sed "s/\(.*\)-\(.*\)/\1-$numcommits-\2/"`;
 	    ;;
     esac


From MAILER-DAEMON Mon Jan 03 10:04:29 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PZlxV-0006NJ-LW
	for mharc-autoconf@gnu.org; Mon, 03 Jan 2011 10:04:29 -0500
Received: from [140.186.70.92] (port=57142 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PZlxT-0006N7-PP
	for autoconf@gnu.org; Mon, 03 Jan 2011 10:04:28 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1PZlxR-00086P-Gi
	for autoconf@gnu.org; Mon, 03 Jan 2011 10:04:27 -0500
Received: from mx1.redhat.com ([209.132.183.28]:64114)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>)
	id 1PZlxR-00085l-9i; Mon, 03 Jan 2011 10:04:25 -0500
Received: from int-mx12.intmail.prod.int.phx2.redhat.com
	(int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p03F4LUC022059
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Mon, 3 Jan 2011 10:04:21 -0500
Received: from [10.3.113.114] (ovpn-113-114.phx2.redhat.com [10.3.113.114])
	by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id p03F4KLC002172; Mon, 3 Jan 2011 10:04:21 -0500
Message-ID: <4D21E574.50404@redhat.com>
Date: Mon, 03 Jan 2011 08:04:20 -0700
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14
	Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7
MIME-Version: 1.0
To: Bruce Korb <bruce.korb@gmail.com>
References: <4D1D33D7.7040809@gmail.com>
	<4D1DFF96.4010004@redhat.com>	<4D20BE0B.6040104@gmail.com>
	<20110102183453.GA13463@burratino> <4D211555.1040502@gmail.com>
In-Reply-To: <4D211555.1040502@gmail.com>
X-Enigmail-Version: 1.1.2
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enigB5613A78432AE0FAE80FD0EE"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: Jonathan Nieder <jrnieder@gmail.com>,
	GNU Autoconf mailing list <autoconf@gnu.org>,
	bug-gnulib <bug-gnulib@gnu.org>, GIT Development <git@vger.kernel.org>
Subject: Re: fatal: ambiguous message
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 03 Jan 2011 15:04:29 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigB5613A78432AE0FAE80FD0EE
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

[redirecting to bug-gnulib as the owner of the git-version-gen script in
question; replies can drop other lists]

On 01/02/2011 05:16 PM, Bruce Korb wrote:
> Hi Jonathan,
>=20
> On Sun, Jan 2, 2011 at 10:34 AM, Jonathan Nieder <jrnieder@gmail.com> w=
rote:
>> Were you been able to reproduce that outside the script?
>=20
> No, I was blind to the invocation.  You found it.  I was looking
> without seeing.  Thank you.
>=20
> Given that shells without functions can be considered sufficiently
> obsolete to not be a consideration, perhaps a better solution is
> to put the I-don't-care-about-error-messages code into a separate
> function with stderr redirected.  Doing that turned out messier
> than I had hoped....

Jonathan's patch:

> diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen
> index 5617eb8..119d7aa 100755
> --- a/build-aux/git-version-gen
> +++ b/build-aux/git-version-gen
> @@ -119,7 +119,7 @@ then
>  	    # result is the same as if we were using the newer version
>  	    # of git describe.
>  	    vtag=3D`echo "$v" | sed 's/-.*//'`
> -	    numcommits=3D`git rev-list "$vtag"..HEAD | wc -l`
> +	    numcommits=3D`git rev-list "$vtag"..HEAD 2>/dev/null | wc -l`
>  	    v=3D`echo "$v" | sed "s/\(.*\)-\(.*\)/\1-$numcommits-\2/"`;
>  	    ;;
>      esac

makes sense to suppress the error message from leaking (whether or not
git can be improved to have the error message claim which program is
issuing the message); but there's still the nagging issue that because
git output is fed to a pipe, there's no way to check $? to see if git
failed, in order to properly react to that situation.

Bruce's patch mixes refactoring with bug fixing, making it a bit harder
to read, and introduced a bug in its own right:

> diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen
> index c278f6a..8a238b0 100755
> --- a/build-aux/git-version-gen
> +++ b/build-aux/git-version-gen
> @@ -1,6 +1,6 @@
>  #!/bin/sh
>  # Print a version string.
> -scriptversion=3D2010-10-13.20; # UTC
> +scriptversion=3D2011-01-03.00; # UTC
> =20
>  # Copyright (C) 2007-2011 Free Software Foundation, Inc.
>  #
> @@ -78,76 +78,96 @@ tag_sed_script=3D"${2:-s/x/x/}"
>  nl=3D'
>  '
> =20
> -# Avoid meddling by environment variable of the same name.
> -v=3D
> +get_ver()
> +{
> +    local PS4=3D'>gv> '

Portable scripts CANNOT use local (since POSIX does not require it), and
setting PS4 is not commonly done in portable scripting.

I'll probably end up writing yet a third approach, which collects git
rev-list output into a temporary variable in order to correctly detect
failures, without refactoring into a helper function.

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enigB5613A78432AE0FAE80FD0EE
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNIeV0AAoJEKeha0olJ0NqDlsH/3nHgZZmRsh+gryQ+GrJHCwl
0ST+1K69KZmBcIaH/6zOu1xX/NooWTiuzw37++t4qdXE9JmxOwjbtjAZ1BiesH3Q
GBfzljJBPEFim2L7vu9mwVW4v0+xWZBWVzaPWBnXEHohFRURD6dGHljNv+MtQHUT
OMTrfyE0p4fj+/Flp3BXwE6v4fgDYJBkAsJNt86zLA0ki/FA5T6R6Taq8MwY24HM
uER3woI/JkP837BvwlskewHP/KZG7G3NePwR922c/Ij3PubdWl+2hME48HARGNXR
qIEY900JXBNUwnUlSwrwT5ABzMpSZDSpAHpznfSGTstGkIxyAIuK7rnPIaqP/4o=
=ThL5
-----END PGP SIGNATURE-----

--------------enigB5613A78432AE0FAE80FD0EE--


From MAILER-DAEMON Mon Jan 03 13:56:20 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PZpZs-0002bm-BF
	for mharc-autoconf@gnu.org; Mon, 03 Jan 2011 13:56:20 -0500
Received: from [140.186.70.92] (port=37989 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PZpZp-0002bX-Ho
	for autoconf@gnu.org; Mon, 03 Jan 2011 13:56:18 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1PZpZo-00050j-7L
	for autoconf@gnu.org; Mon, 03 Jan 2011 13:56:17 -0500
Received: from mx1.redhat.com ([209.132.183.28]:1736)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1PZpZo-00050R-08
	for autoconf@gnu.org; Mon, 03 Jan 2011 13:56:16 -0500
Received: from int-mx12.intmail.prod.int.phx2.redhat.com
	(int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p03IuDGB026152
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Mon, 3 Jan 2011 13:56:13 -0500
Received: from [10.3.113.114] (ovpn-113-114.phx2.redhat.com [10.3.113.114])
	by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id p03IuDxi026464; Mon, 3 Jan 2011 13:56:13 -0500
Message-ID: <4D221BCC.7010504@redhat.com>
Date: Mon, 03 Jan 2011 11:56:12 -0700
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14
	Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7
MIME-Version: 1.0
To: Bruce Korb <bruce.korb@gmail.com>
References: <4D1D33D7.7040809@gmail.com> <4D1DFF96.4010004@redhat.com>
	<4D20BEDD.7010709@gmail.com>
In-Reply-To: <4D20BEDD.7010709@gmail.com>
X-Enigmail-Version: 1.1.2
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig57369F5E0530A5FF5ED56BD5"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: GNU Autoconf mailing list <autoconf@gnu.org>
Subject: Re: fatal: ambiguous message
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 03 Jan 2011 18:56:18 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig57369F5E0530A5FF5ED56BD5
Content-Type: text/plain; charset=windows-1256
Content-Transfer-Encoding: quoted-printable

On 01/02/2011 11:07 AM, Bruce Korb wrote:
> On 12/31/10 08:06, Eric Blake wrote:
>>> the configure.ac file starts with this:
>>>
>>>> AC_INIT([GNU libposix],
>>>>     m4_esyscmd([./git-version-gen .tarball-version]),
>>>>     [bug-gnulib@gnu.org])
>>
>> Also, you should patch configure.ac to add an additional line:
>>
>> m4_if(m4_sysval, [0], [],
>>  [m4_fatal([git-version-gen failed, please investigate])])
>=20
> Hi Eric,
>=20
> Per my message of seconds ago, I am sure that git-version-gen
> has finished correctly with a zero exit code.

Well, hopefully that aspect of git-version-gen gets fixed (if it hasn't
already in today's flurry of patches).  But that's an issue for
bug-gnulib, if it still exists.

>  Also, if such
> complexity is required, perhaps an autoconf macro a la:
>   AC_ESYSCMD_OK([./git-version-gen .tarball-version])
> that will error out of the command exits non-zero?

Now that's a nice idea!  I'd rather name it m4_esyscmd_ok (and a
counterpart m4_syscmd_ok), since it ties closely to m4_esyscmd, but the
idea of having a syntactic sugar wrapper that automatically issues a
fatal error if a child command does not complete successfully does seem
useful.  Of course, a drawback is that you'd have to require a
new-enough autoconf to use that new macro, or else provide it's
implementation as a fallback when using older autoconf.

(My autoconf time has suffered as of late due to demands from other
projects, but I hope to be able to put better time into autoconf later
this month).

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig57369F5E0530A5FF5ED56BD5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNIhvMAAoJEKeha0olJ0NqpEoH/RUgzcXIZ8de1VoY8Uci6Q1R
ACblbwMm4XfTwIahPw7gQmOkcOw+3Ma3ib4hfVsjHOI3NFQGRCrOz82fzMjrxIU4
PnIaUMFpG3AeqcBdOXTlAdmD5IlecSMYGSTtiwgXJffK2qJ4L3TA1QT8tStYpqAG
2VGcSDZVmF6spWjdYLjHj1FWDXNjwpRg/bB7NV1sRuY59rQu6NxjbXLRU0vIXS66
wTrXekLqNYOr5gs9trX5SJDFcKQCroVpU03GMvLKxvxtubU8vkAYWuzMpfe7wz7l
fngpzZvWLVUwkcoDH8fZU050UV2zu6Dok5LWdpihPP9TMp33L0IvSxjVj/BAxzs=
=e890
-----END PGP SIGNATURE-----

--------------enig57369F5E0530A5FF5ED56BD5--


From MAILER-DAEMON Mon Jan 03 14:08:43 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PZplr-00051R-1d
	for mharc-autoconf@gnu.org; Mon, 03 Jan 2011 14:08:43 -0500
Received: from [140.186.70.92] (port=58014 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PZplp-0004wp-6j
	for autoconf@gnu.org; Mon, 03 Jan 2011 14:08:42 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bruce.korb@gmail.com>) id 1PZpln-00076a-Tp
	for autoconf@gnu.org; Mon, 03 Jan 2011 14:08:40 -0500
Received: from mail-gy0-f169.google.com ([209.85.160.169]:51449)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruce.korb@gmail.com>) id 1PZpln-00076R-O3
	for autoconf@gnu.org; Mon, 03 Jan 2011 14:08:39 -0500
Received: by gyd10 with SMTP id 10so2481779gyd.0
	for <autoconf@gnu.org>; Mon, 03 Jan 2011 11:08:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:message-id:date:from
	:user-agent:mime-version:to:cc:subject:references:in-reply-to
	:content-type:content-transfer-encoding;
	bh=Q8FBbmlnTXChNkfpztPsAVb1GlEQplC+51BiiyPr/l0=;
	b=LwRtDb0nS6a6mwkAol9Mq+OrVm7aS2pcGlJ5PeqLBT6Mas+bJN9bbv79zx3t6PRO1q
	PLx9xpA+NfaIPvHs9w9acg3UoF2fyYICzev0W6GAp1AI2Oih/gyzxBVoLA/1jWZag9/l
	WkP4Seub26grXdeavWm3OqoMxDktrfwRXi1co=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:user-agent:mime-version:to:cc:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	b=DwH5DUhrqYET/y6lDY0XnmbRQ2RctWwQJ/nd/8ppH922/kCpds7crZNE4GJU7sBATc
	JpKgrPQ3uKAXpsFMkuxlYN8AW6u90eJt9Lfm4VkHPrXenvsFL3o3y331XIazzphTm3CV
	FdKhR1LdLGS/20dPiug4Iz1WrcRpM3n74Ruy8=
Received: by 10.147.83.17 with SMTP id k17mr29730274yal.9.1294081718595;
	Mon, 03 Jan 2011 11:08:38 -0800 (PST)
Received: from [10.10.1.101] (adsl-75-2-133-184.dsl.pltn13.sbcglobal.net
	[75.2.133.184])
	by mx.google.com with ESMTPS id 37sm28479448anr.24.2011.01.03.11.08.37
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Mon, 03 Jan 2011 11:08:37 -0800 (PST)
Message-ID: <4D221EAF.2000601@gmail.com>
Date: Mon, 03 Jan 2011 11:08:31 -0800
From: Bruce Korb <bruce.korb@gmail.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11
MIME-Version: 1.0
To: Eric Blake <eblake@redhat.com>
References: <4D1D33D7.7040809@gmail.com> <4D1DFF96.4010004@redhat.com>
	<4D20BEDD.7010709@gmail.com> <4D221BCC.7010504@redhat.com>
In-Reply-To: <4D221BCC.7010504@redhat.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: GNU Autoconf mailing list <autoconf@gnu.org>
Subject: Re: fatal: ambiguous message
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 03 Jan 2011 19:08:42 -0000

On 01/03/11 10:56, Eric Blake wrote:
>>  Also, if such
>> complexity is required, perhaps an autoconf macro a la:
>>   AC_ESYSCMD_OK([./git-version-gen .tarball-version])
>> that will error out of the command exits non-zero?
> 
> Now that's a nice idea!  I'd rather name it m4_esyscmd_ok (and a
> counterpart m4_syscmd_ok), since it ties closely to m4_esyscmd, but the
> idea of having a syntactic sugar wrapper ....... does seem
> useful.  Of course, a drawback is that you'd have to require a
> new-enough autoconf to use that new macro, or else provide it's
> implementation as a fallback when using older autoconf.

Hi Eric,

I would surely do that in libposix.  Thanks!
But, since the git-version-gen script is being fixed, it
shouldn't be necessary....

Cheers - Bruce


From MAILER-DAEMON Mon Jan 10 16:05:54 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PcOw6-0001oP-S6
	for mharc-autoconf@gnu.org; Mon, 10 Jan 2011 16:05:54 -0500
Received: from [140.186.70.92] (port=51508 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PcOw4-0001n3-NH
	for autoconf@gnu.org; Mon, 10 Jan 2011 16:05:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <johanp@aditus.nu>) id 1PcOw1-00060T-Ni
	for autoconf@gnu.org; Mon, 10 Jan 2011 16:05:52 -0500
Received: from hubext02.fsdata.se ([195.35.82.71]:46466 helo=smtp04.fsdata.se)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <johanp@aditus.nu>) id 1PcOw1-00060P-IV
	for autoconf@gnu.org; Mon, 10 Jan 2011 16:05:49 -0500
Received: from lambda.local (85.230.207.153) by smtp.fsdata.se (195.35.82.78)
	with Microsoft SMTP Server id 8.1.436.0;
	Mon, 10 Jan 2011 21:59:30 +0100
Received: by lambda.local (Postfix, from userid 30)	id CE63C8867; Mon, 10 Jan
	2011 22:05:46 +0100 (CET)
To: <autoconf@gnu.org>
MIME-Version: 1.0
Date: Mon, 10 Jan 2011 22:05:46 +0100
From: Johan Persson <johanp@aditus.nu>
Message-ID: <a578dfe10d924a45e33925a82b4530b9@localhost>
X-Sender: ljp@localhost
User-Agent: RoundCube Webmail/0.2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+
Subject: Best practice for user decided unusual library  paths ?
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 10 Jan 2011 21:05:53 -0000


I have a package which uses a specific library that most user have=0D
installed in the "usual" places so this works fine. =0D
=0D
However after having reports that some user have the library in=0D
not-so-common places (like /opt/local) i decided to add a "--with-package"=
=0D
switch so the user can add the root-directory for this alternative place.=
=0D
However, I believe that my solution (while it works) is very "ugly" and=0D
there must be a "best practice" for how to do this in a "proper" way.=0D
=0D
What I did was adding the extra flag and some variables for use with=0D
automake in configure.ac (in this case the library was libpcre.so) as in=0D
(ignore the non-formatted help text)=0D
=0D
AC_ARG_WITH(libpcre,=0D
    [--with-libpcre   Specify parent directory for the PCRE library and=0D
headers],=0D
    [with_libpcre=3D${withval}],=0D
    [])=0D
=0D
PCRELIB=3D=0D
if test ! -z ${with_libpcre}; then=0D
   =0D
AC_DEFINE_UNQUOTED(WITH_PCRELIBHEADER,["${with_libpcre}/include/pcre.h"],[S=
pecify=0D
header file for PCRE library])=0D
    AC_SUBST(PCRELIB,[${with_libpcre}/lib/libpcre.so])=0D
    AM_CONDITIONAL(need_pcrelib_special, test 1 =3D 1 )=0D
else=0D
    AM_CONDITIONAL(need_pcrelib_special, test 1 =3D 0 )=0D
fi=0D
=0D
I added the defines above to be able to include the correct header in the=
=0D
source files as in:=0D
=0D
#ifdef WITH_PCRELIBHEADER=0D
#include WITH_PCRELIBHEADER=0D
#else=0D
#include <pcre.h>=0D
#endif=0D
=0D
and then some automake conditionals to be able to add a test in my=0D
Makefile.am template=0D
=0D
if need_pcrelib_special=0D
myprogram_LDADD +=3D ${PCRELIB}=0D
endif=0D
=0D
This looks pretty ugly to me and I can't help thinking there must be a=0D
cleaner way to do this? =0D
How do others solve this particular issue? (it must be a fairly common=0D
thing to want to do, I guess)=0D
=0D
(Two things I particularly don't like are the fact that the library is=0D
hard coded to the *.so name and the #include handling.)=0D
=0D
A point to notice here might be that I don't want to add a generic -I and=
=0D
-L flags to the compiler options so it searches in the extra directory=0D
since the user may have generic version of the library in the normal places=
=0D
so those places should never be searched. =0D
=0D
/J


From MAILER-DAEMON Mon Jan 10 16:09:01 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PcOz7-0003ib-Kn
	for mharc-autoconf@gnu.org; Mon, 10 Jan 2011 16:09:01 -0500
Received: from [140.186.70.92] (port=52572 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PcOz4-0003gG-Hj
	for autoconf@gnu.org; Mon, 10 Jan 2011 16:08:59 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PcOz0-0006XL-GY
	for autoconf@gnu.org; Mon, 10 Jan 2011 16:08:55 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:51465 helo=mail.gmx.net)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PcOz0-0006X5-1j
	for autoconf@gnu.org; Mon, 10 Jan 2011 16:08:54 -0500
Received: (qmail invoked by alias); 10 Jan 2011 21:08:51 -0000
Received: from xdsl-89-0-104-73.netcologne.de (EHLO localhost.localdomain)
	[89.0.104.73]
	by mail.gmx.net (mp057) with SMTP; 10 Jan 2011 22:08:51 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX19Jyndt3tpJ8gseXrOl9kQ+PIesIQJYszOVo0UibO
	GC9CEkOori3y5N
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1PcOyx-0004QL-3u; Mon, 10 Jan 2011 22:08:51 +0100
Date: Mon, 10 Jan 2011 22:08:51 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: Johan Persson <johanp@aditus.nu>
Message-ID: <20110110210850.GG15241@gmx.de>
Mail-Followup-To: Johan Persson <johanp@aditus.nu>, autoconf@gnu.org
References: <a578dfe10d924a45e33925a82b4530b9@localhost>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <a578dfe10d924a45e33925a82b4530b9@localhost>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: autoconf@gnu.org
Subject: Re: Best practice for user decided unusual library  paths ?
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 10 Jan 2011 21:08:59 -0000

Hi Johan,

* Johan Persson wrote on Mon, Jan 10, 2011 at 10:05:46PM CET:
> However after having reports that some user have the library in
> not-so-common places (like /opt/local) i decided to add a "--with-package"
> switch so the user can add the root-directory for this alternative place.
> However, I believe that my solution (while it works) is very "ugly" and
> there must be a "best practice" for how to do this in a "proper" way.

Look at the gnulib "havelib" module.

Cheers,
Ralf


From MAILER-DAEMON Mon Jan 10 17:03:56 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PcPqF-0008FD-Rj
	for mharc-autoconf@gnu.org; Mon, 10 Jan 2011 17:03:55 -0500
Received: from [140.186.70.92] (port=47727 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PcPqD-0008BQ-8t
	for autoconf@gnu.org; Mon, 10 Jan 2011 17:03:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <johanp@aditus.nu>) id 1PcPqC-0001pu-9Z
	for autoconf@gnu.org; Mon, 10 Jan 2011 17:03:53 -0500
Received: from hubext02.fsdata.se ([195.35.82.71]:53248 helo=smtp04.fsdata.se)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <johanp@aditus.nu>) id 1PcPqC-0001pN-4Z
	for autoconf@gnu.org; Mon, 10 Jan 2011 17:03:52 -0500
Received: from lambda.local (85.230.207.153) by smtp.fsdata.se (195.35.82.78)
	with Microsoft SMTP Server id 8.1.436.0;
	Mon, 10 Jan 2011 22:57:31 +0100
Received: by lambda.local (Postfix, from userid 30)	id 9444A8867; Mon, 10 Jan
	2011 23:03:47 +0100 (CET)
To: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
MIME-Version: 1.0
Date: Mon, 10 Jan 2011 23:03:47 +0100
From: Johan Persson <johanp@aditus.nu>
In-Reply-To: <20110110210850.GG15241@gmx.de>
References: <a578dfe10d924a45e33925a82b4530b9@localhost>
	<20110110210850.GG15241@gmx.de>
Message-ID: <90911e0720b9fca689ec83aafbdd2c14@localhost>
X-Sender: ljp@localhost
User-Agent: RoundCube Webmail/0.2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+
Cc: johanp@aditus.nu, autoconf@gnu.org
Subject: Re: Best practice for user decided unusual library  paths ?
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 10 Jan 2011 22:03:54 -0000


On Mon, 10 Jan 2011 22:08:51 +0100, Ralf Wildenhues=0D
<Ralf.Wildenhues@gmx.de> wrote:=0D
> =0D
> Look at the gnulib "havelib" module.=0D
> =0D
> Cheers,=0D
> Ralf=0D
=0D
Thanks !! =0D
=0D
It really simplifies things (and it is amazing how much extra macro code=0D
was needed to achieve this simplicity from a maintainer point of view)=0D
=0D
I had completely forgotten about that macro - time to re-read the autoconf=
=0D
manual !=0D
=0D
Cheers=0D
Johan=0D



From MAILER-DAEMON Tue Jan 11 06:31:39 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PccRu-0002lz-Db
	for mharc-autoconf@gnu.org; Tue, 11 Jan 2011 06:31:39 -0500
Received: from [140.186.70.92] (port=38544 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PccRs-0002kJ-C5
	for autoconf@gnu.org; Tue, 11 Jan 2011 06:31:37 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rjshaw@netspace.net.au>) id 1PccRq-0001IC-EM
	for autoconf@gnu.org; Tue, 11 Jan 2011 06:31:35 -0500
Received: from mail-out6.netspace.net.au ([203.10.110.88]:36662
	helo=smtp.netspace.net.au) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rjshaw@netspace.net.au>) id 1PccRq-0001HC-2s
	for autoconf@gnu.org; Tue, 11 Jan 2011 06:31:34 -0500
Received: from localhost (localhost [127.0.0.1])
	by localhost.netspace.net.au (Postfix) with ESMTP id CF2181C4013
	for <autoconf@gnu.org>; Tue, 11 Jan 2011 22:31:24 +1100 (EST)
X-Virus-Scanned: by mail-out6.netpace.net.au
Received: from smtp.netspace.net.au ([127.0.0.1])
	by localhost (mail-out6.netpace.net.au [127.0.0.1]) (amavisd-new,
	port 10024) with ESMTP id AaOoReNOulwT for <autoconf@gnu.org>;
	Tue, 11 Jan 2011 22:31:23 +1100 (EST)
Received: from [192.168.0.10] (220-253-9-17.VIC.netspace.net.au [220.253.9.17])
	by smtp.netspace.net.au (Postfix) with ESMTPA id 3702C1C4011
	for <autoconf@gnu.org>; Tue, 11 Jan 2011 22:31:22 +1100 (EST)
Message-ID: <4D2C3F8D.5050500@netspace.net.au>
Date: Tue, 11 Jan 2011 22:31:25 +1100
From: Russell Shaw <rjshaw@netspace.net.au>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10
MIME-Version: 1.0
To: autoconf@gnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Subject: Bison
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 11 Jan 2011 11:31:37 -0000

Hi,
On debian, there is /usr/bin/bison, and
/usr/bin/bison.yacc just does:

   exec '/usr/bin/bison' -y "$@"

How can i get autoconf to use bison?

The problem with yacc is that you can't rename
the output files and always get: y.tab.h y.tab.c

Is there a way i can get yacc to give better output
file names like myproj.tab.h myproj.tab.c ?


From MAILER-DAEMON Tue Jan 11 13:54:34 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PcjMY-0003LF-H6
	for mharc-autoconf@gnu.org; Tue, 11 Jan 2011 13:54:34 -0500
Received: from [140.186.70.92] (port=57835 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PcjML-0003Jc-70
	for autoconf@gnu.org; Tue, 11 Jan 2011 13:54:32 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tfogal@sci.utah.edu>) id 1PcjMC-0006hx-Ju
	for autoconf@gnu.org; Tue, 11 Jan 2011 13:54:21 -0500
Received: from mail.sci.utah.edu ([155.98.58.80]:6754 helo=sci.utah.edu)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tfogal@sci.utah.edu>) id 1PcjMC-0006hF-Fu
	for autoconf@gnu.org; Tue, 11 Jan 2011 13:54:12 -0500
Received: from dummy.name; Tue, 11 Jan 2011 11:54:09 -0700
Message-ID: <4D2CA70D.6000105@sci.utah.edu>
Date: Tue, 11 Jan 2011 11:53:01 -0700
From: tom fogal <tfogal@sci.utah.edu>
User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329)
MIME-Version: 1.0
To: Russell Shaw <rjshaw@netspace.net.au>
References: <4D2C3F8D.5050500@netspace.net.au>
In-Reply-To: <4D2C3F8D.5050500@netspace.net.au>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6
Cc: autoconf@gnu.org
Subject: Re: Bison
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 11 Jan 2011 18:54:32 -0000

Russell Shaw wrote:
> How can i get autoconf to use bison?
> 
> The problem with yacc is that you can't rename
> the output files and always get: y.tab.h y.tab.c
> 
> Is there a way i can get yacc to give better output
> file names like myproj.tab.h myproj.tab.c ?

Is this really an autoconf question?  Seems like something the build 
system should handle, not the configuration system.

If you're using automake, look into BUILT_SOURCES:
 
http://www.gnu.org/software/hello/manual/automake/Built-Sources-Example.html

cheers,

-tom


From MAILER-DAEMON Tue Jan 11 14:27:36 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PcjsW-0005q5-PH
	for mharc-autoconf@gnu.org; Tue, 11 Jan 2011 14:27:36 -0500
Received: from [140.186.70.92] (port=36301 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PcjrJ-0005bu-Qc
	for autoconf@gnu.org; Tue, 11 Jan 2011 14:27:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <john.calcote@gmail.com>) id 1Pcjpw-0007IT-25
	for autoconf@gnu.org; Tue, 11 Jan 2011 14:26:21 -0500
Received: from mail-gx0-f169.google.com ([209.85.161.169]:33592)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <john.calcote@gmail.com>) id 1Pcjpv-0007IC-W2
	for autoconf@gnu.org; Tue, 11 Jan 2011 14:24:56 -0500
Received: by gxk5 with SMTP id 5so9482991gxk.0
	for <autoconf@gnu.org>; Tue, 11 Jan 2011 11:24:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:message-id:date:from
	:user-agent:mime-version:to:cc:subject:references:in-reply-to
	:content-type:content-transfer-encoding;
	bh=F6DHJsBz/c95MKKskKsE+skJXiQ2Hm1ypZGixCoaSsM=;
	b=vc7C5rTls5kDiDi4NF5fYQ3NI5fCch8gqV6pUxaJxezK3RpKSxND9XKXw+qiuGqRaR
	YrKBCeEw65wmMtTSoVC2ffwE1x67XdQd3oWX/gDIZmuZnJum063RWBGtabjgpwasPyLM
	0WHP6ihkI3bvsVQKtlHluX3tcoMi7rY9MoSMg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:user-agent:mime-version:to:cc:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	b=hVAVGK5dOxP1f9+7FUJqaxYxBOag1/YIjj3co82hfVRLO6kKT+u9M3/WsJLqRydsXp
	b1XVjfeglXSpU48skepvMEa4WuLpc3/ey2xFNa9k9sN+njW9AujPWJiSt+Hsfa8L35rc
	dzi7o8kb5TK+iPtXqyoMXZU5H9dA2jUPi1PM0=
Received: by 10.100.6.15 with SMTP id 15mr9072157anf.189.1294773894592;
	Tue, 11 Jan 2011 11:24:54 -0800 (PST)
Received: from [10.10.16.119] ([64.244.102.2])
	by mx.google.com with ESMTPS id 35sm39242254ano.31.2011.01.11.11.24.52
	(version=SSLv3 cipher=RC4-MD5); Tue, 11 Jan 2011 11:24:53 -0800 (PST)
Message-ID: <4D2CAE83.1070709@gmail.com>
Date: Tue, 11 Jan 2011 12:24:51 -0700
From: John Calcote <john.calcote@gmail.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7
MIME-Version: 1.0
To: Russell Shaw <rjshaw@netspace.net.au>
References: <4D2C3F8D.5050500@netspace.net.au>
In-Reply-To: <4D2C3F8D.5050500@netspace.net.au>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: autoconf@gnu.org
Subject: Re: Bison
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 11 Jan 2011 19:27:36 -0000

On 01/11/2011 04:31 AM, Russell Shaw wrote:
> Hi,
> On debian, there is /usr/bin/bison, and
> /usr/bin/bison.yacc just does:
>
>   exec '/usr/bin/bison' -y "$@"
>
> How can i get autoconf to use bison?
>
> The problem with yacc is that you can't rename
> the output files and always get: y.tab.h y.tab.c
>
> Is there a way i can get yacc to give better output
> file names like myproj.tab.h myproj.tab.c ?

Hi Russell - try the techniques listed here:
http://www.mail-archive.com/help-bison@gnu.org/msg01897.html

Regards,
John


From MAILER-DAEMON Tue Jan 11 20:28:53 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PcpW9-0000LL-Gi
	for mharc-autoconf@gnu.org; Tue, 11 Jan 2011 20:28:53 -0500
Received: from [140.186.70.92] (port=58174 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PcpW8-0000LD-0z
	for autoconf@gnu.org; Tue, 11 Jan 2011 20:28:52 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rjshaw@netspace.net.au>) id 1PcpW6-0007Qo-M2
	for autoconf@gnu.org; Tue, 11 Jan 2011 20:28:51 -0500
Received: from mail-out2.netspace.net.au ([203.10.110.72]:50481
	helo=smtp.netspace.net.au) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rjshaw@netspace.net.au>) id 1PcpW6-0007QJ-0V
	for autoconf@gnu.org; Tue, 11 Jan 2011 20:28:50 -0500
Received: from localhost (localhost [127.0.0.1])
	by localhost.netspace.net.au (Postfix) with ESMTP id 63A7937C9E
	for <autoconf@gnu.org>; Wed, 12 Jan 2011 12:28:46 +1100 (EST)
X-Virus-Scanned: by mail-out2.netpace.net.au
Received: from smtp.netspace.net.au ([127.0.0.1])
	by localhost (mail-out2.netpace.net.au [127.0.0.1]) (amavisd-new,
	port 10024) with ESMTP id 9fehhYbqA12i for <autoconf@gnu.org>;
	Wed, 12 Jan 2011 12:28:44 +1100 (EST)
Received: from [192.168.0.10] (220-253-9-17.VIC.netspace.net.au [220.253.9.17])
	by smtp.netspace.net.au (Postfix) with ESMTPA id 9B09C37C94
	for <autoconf@gnu.org>; Wed, 12 Jan 2011 12:28:44 +1100 (EST)
Message-ID: <4D2D03C9.6060800@netspace.net.au>
Date: Wed, 12 Jan 2011 12:28:41 +1100
From: Russell Shaw <rjshaw@netspace.net.au>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10
MIME-Version: 1.0
CC: autoconf@gnu.org
References: <4D2C3F8D.5050500@netspace.net.au> <4D2CAE83.1070709@gmail.com>
In-Reply-To: <4D2CAE83.1070709@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Subject: Re: Bison
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Jan 2011 01:28:53 -0000

On 12/01/11 06:24, John Calcote wrote:
> On 01/11/2011 04:31 AM, Russell Shaw wrote:
>> Hi,
>> On debian, there is /usr/bin/bison, and
>> /usr/bin/bison.yacc just does:
>>
>>    exec '/usr/bin/bison' -y "$@"
>>
>> How can i get autoconf to use bison?
>>
>> The problem with yacc is that you can't rename
>> the output files and always get: y.tab.h y.tab.c
>>
>> Is there a way i can get yacc to give better output
>> file names like myproj.tab.h myproj.tab.c ?
>
> Hi Russell - try the techniques listed here:
> http://www.mail-archive.com/help-bison@gnu.org/msg01897.html

Hi J.C,
It's close to what i'm looking for, but not complete enough.
I'm not good at autoconf stuff. Why is descriptor "5" used?

ac_compile_yacc='$CC -c $CFLAGS $CPPFLAGS $ac_cv_prog_yacc_root.c >&5'


From MAILER-DAEMON Wed Jan 12 13:59:46 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pd5v8-0001t6-0T
	for mharc-autoconf@gnu.org; Wed, 12 Jan 2011 13:59:46 -0500
Received: from [140.186.70.92] (port=42146 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pd5v5-0001sV-80
	for autoconf@gnu.org; Wed, 12 Jan 2011 13:59:44 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fang@vlsi.csl.cornell.edu>) id 1Pd5v3-0004dU-Rw
	for autoconf@gnu.org; Wed, 12 Jan 2011 13:59:43 -0500
Received: from csl.cornell.edu ([128.84.224.10]:3297 helo=vlsi.csl.cornell.edu)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fang@vlsi.csl.cornell.edu>) id 1Pd5v3-0004Y6-P3
	for autoconf@gnu.org; Wed, 12 Jan 2011 13:59:41 -0500
Received: from fiji.csl.cornell.edu (fiji.csl.cornell.edu [128.84.224.104])
	by vlsi.csl.cornell.edu (8.13.4/8.13.4) with ESMTP id p0CIxGmw029049;
	Wed, 12 Jan 2011 13:59:21 -0500 (EST)
Received: from fiji.csl.cornell.edu (localhost.csl.cornell.edu [127.0.0.1])
	by fiji.csl.cornell.edu (8.13.8/8.13.8) with ESMTP id p0CIxGYD066657;
	Wed, 12 Jan 2011 13:59:16 -0500 (EST)
	(envelope-from fang@fiji.csl.cornell.edu)
Received: from localhost (fang@localhost)
	by fiji.csl.cornell.edu (8.13.8/8.13.8/Submit) with ESMTP id
	p0CIxF9S066654; Wed, 12 Jan 2011 13:59:15 -0500 (EST)
	(envelope-from fang@fiji.csl.cornell.edu)
Date: Wed, 12 Jan 2011 13:59:13 -0500 (EST)
From: David Fang <fang@csl.cornell.edu>
To: Russell Shaw <rjshaw@netspace.net.au>
In-Reply-To: <4D2D03C9.6060800@netspace.net.au>
Message-ID: <20110112135449.K66591@fiji.csl.cornell.edu>
References: <4D2C3F8D.5050500@netspace.net.au> <4D2CAE83.1070709@gmail.com>
	<4D2D03C9.6060800@netspace.net.au>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="0-1988531813-1294858753=:66591"
X-detected-operating-system: by eggs.gnu.org: FreeBSD 2.0-4.2
Cc: autoconf@gnu.org
Subject: Re: Bison
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Jan 2011 18:59:44 -0000

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-1988531813-1294858753=:66591
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

Hi,

> On 12/01/11 06:24, John Calcote wrote:
>> On 01/11/2011 04:31 AM, Russell Shaw wrote:
>>> Hi,
>>> On debian, there is /usr/bin/bison, and
>>> /usr/bin/bison.yacc just does:
>>>
>>>    exec '/usr/bin/bison' -y "$@"
>>> 
>>> How can i get autoconf to use bison?
>>> 
>>> The problem with yacc is that you can't rename
>>> the output files and always get: y.tab.h y.tab.c
>>> 
>>> Is there a way i can get yacc to give better output
>>> file names like myproj.tab.h myproj.tab.c ?
>> 
>> Hi Russell - try the techniques listed here:
>> http://www.mail-archive.com/help-bison@gnu.org/msg01897.html
>
> Hi J.C,
> It's close to what i'm looking for, but not complete enough.
> I'm not good at autoconf stuff. Why is descriptor "5" used?
>
> ac_compile_yacc='$CC -c $CFLAGS $CPPFLAGS $ac_cv_prog_yacc_root.c >&5'

If you're using automake-1.10+, that should provide a YACC variable 
override: ./configure YACC=/my/yacc ...

I've attached my m4 macro for testing whether $YACC is really bison or 
yacc, not just relying on the program name.

automake also provides a helper script 'ylwrap' to deal with yacc/bison 
compilations and do some file renaming.

Fang

David Fang
http://www.csl.cornell.edu/~fang/
http://www.achronix.com/

--0-1988531813-1294858753=:66591
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=my_arg_var_yacc.m4
Content-Transfer-Encoding: BASE64
Content-ID: <20110112135913.A66591@fiji.csl.cornell.edu>
Content-Description: 
Content-Disposition: attachment; filename=my_arg_var_yacc.m4

ZG5sIEBzeW5vcHNpcyBIQUNLVF9BUkdfVkFSX1lBQ0MNCmRubA0KZG5sIEVu
YWJsZXMgWUFDQyBhcyBhIGNvbmZpZ3VyYWJsZSB2YXJpYWJsZS4gIA0KZG5s
IFRoaXMgdXN1YWxseSBwaWNrcyB1cCBiaXNvbiBieSBkZWZhdWx0IGlmIGZv
dW5kLCANCmRubCBidXQgY2FuIGJlIG1hbnVhbGx5IG92ZXJyaWRkZW4uDQpk
bmwgTm90ZTogYXV0b21ha2UtMS4xMCsgYWxyZWFkeSBwcm92aWRlcyBZQUND
IHZhcmlhYmxlDQpkbmwgVGhpcyBtYWNybyBub3cgcnVucyBzb21lIHRlc3Qg
dG8gZGV0ZWN0IGNlcnRhaW4gdHJhaXRzDQpkbmwgb2YgdGhlIHBhcnNlciBn
ZW5lcmF0b3IuDQpkbmwNCmRubCBAY2F0ZWdvcnkgSW5zdGFsbGVkUGFja2Fn
ZXMNCmRubCBAdmVyc2lvbiAyMDA4LTAzLTE0DQpkbmwgQGF1dGhvciBEYXZp
ZCBGYW5nIDxmYW5naXNtQHVzZXJzLnNvdXJjZWZvcmdlLm5ldD4NCmRubCBA
bGljZW5zZSBBbGxQZXJtaXNzaXZlDQpkbmwNCkFDX0RFRlVOKFtIQUNLVF9B
UkdfVkFSX1lBQ0NdLA0KW0FDX1JFUVVJUkUoW0FDX1BST0dfWUFDQ10pDQpB
Q19BUkdfVkFSKFlBQ0MsIFtwYXJzZXIgZ2VuZXJhdG9yLCByZXF1aXJlcyBM
QUxSKDEpLCBzdWNoIGFzIHlhY2MvYmlzb25dKQ0KY2F0ID4gY29uZnRlc3Qu
eSA8PEFDRU9GDQoldG9rZW4gIEZJUlNUX1RPSw0KJXRva2VuICBMQVNUX1RP
Sw0KJXN0YXJ0IHRvcA0KJSUNCnRvcDogRklSU1RfVE9LIExBU1RfVE9LDQol
JQ0KQUNFT0YNCmRubCBmYWtlIGNhY2hlIHZhcmlhYmxlPCBzaG91bGQgcHJv
YmFibHkgdXNlIGRpZmZlcmVudCBuYW1lIHByZWZpeA0KYWNfY3ZfcHJvZ195
YWNjX3Jvb3Q9InkudGFiIg0KYWNfY29tcGlsZV95YWNjPSckQ0MgLWMgJENG
TEFHUyAkQ1BQRkxBR1MgJGFjX2N2X3Byb2dfeWFjY19yb290LmMgPiY1Jw0K
DQpkbmwgdGVzdCAxOiBmaW5kIHRoZSBlbnVtZXJhbCB2YWx1ZSBvZiB0aGUg
Zmlyc3QgdG9rZW4NCmlmICRZQUNDIC1kIC10IC12IGNvbmZ0ZXN0LnkgJiYg
ZXZhbCAiJGFjX2NvbXBpbGVfeWFjYyINCnRoZW4NCmlmICEgdGVzdCAtZiAk
YWNfY3ZfcHJvZ195YWNjX3Jvb3QuYw0KdGhlbiBBQ19NU0dfRVJST1IoWyRZ
QUNDIGRvZXMgbm90IHByb2R1Y2UgJGFjX2N2X3Byb2dfeWFjY19yb290LmMu
XSkNCmZpDQppZiAhIHRlc3QgLWYgJGFjX2N2X3Byb2dfeWFjY19yb290LmgN
CnRoZW4gQUNfTVNHX0VSUk9SKFskWUFDQyBkb2VzIG5vdCBwcm9kdWNlICRh
Y19jdl9wcm9nX3lhY2Nfcm9vdC5oLl0pDQpmaQ0KWUFDQ19GSVJTVF9UT0tF
Tl9FTlVNPWBncmVwICJeI2RlZmluZS4qRklSU1RfVE9LIiAkYWNfY3ZfcHJv
Z195YWNjX3Jvb3QuaCB8IGN1dCAtZFwgIC1mM2ANCmZpDQpBQ19TVUJTVChZ
QUNDX0ZJUlNUX1RPS0VOX0VOVU0pDQoNCmRubCB0ZXN0IDI6IGlmIHlhY2Ms
IGdldCB0aGUgdmVyc2lvbiBzdHJpbmcgb2YgdGhlIHNrZWxldG9uDQpkbmwg
ZXZlbnR1YWxseSBwYXNzIHRoaXMgaW50byBZQUNDX1ZFUlNJT04NCnlhY2Nf
c2tlbGV0b25fdmVyc2lvbj1gZ3JlcCAic2tlbGV0b24iICRhY19jdl9wcm9n
X3lhY2Nfcm9vdC5jIHwgXA0KICAgICAgICBjdXQgLWRcIiAtZjIgfCBzZWQg
J3MvWyRdLy9nJ2ANCg0KZG5sIHRlc3QgMzogZmluZCBuYW1lIG9mIHByZXBy
b2Nlc3NvciBzeW1ib2wgZm9yIE1BWFRPSw0KZG5sIGlzIFlZTUFYVE9LRU4g
Zm9yIHlhY2MsIFlZTUFYVVRPSyBmb3IgYmlzb24NCg0KZG5sIHRlc3QgNDog
d2hhdCBpcyB0aGUgcmVhbCB1bmRlcmx5aW5nIHBhcnNlciBnZW5lcmF0b3I/
DQphY19mb3JfcmVhbF95YWNjPQ0KaWYgZ3JlcCAtcSBZWUJJU09OICRhY19j
dl9wcm9nX3lhY2Nfcm9vdC5jIDsgdGhlbg0KICAgICAgICBhY19mb3JfcmVh
bF95YWNjPWJpc29uDQogICAgICAgIEFDX0RFRklORShVU0lOR19CSVNPTiwg
MSwgW0RlZmluZSB0byAxIGlmIHdlJ3JlIHVzaW5nIGJpc29uLl0pDQplbGlm
IGdyZXAgLXEgWVlCWUFDQyAkYWNfY3ZfcHJvZ195YWNjX3Jvb3QuYyA7IHRo
ZW4NCiAgICAgICAgYWNfZm9yX3JlYWxfeWFjYz1ieWFjYw0KICAgICAgICBB
Q19ERUZJTkUoVVNJTkdfQllBQ0MsIDEsIFtEZWZpbmUgdG8gMSBpZiB3ZSdy
ZSB1c2luZyBieWFjYy5dKQ0KZWxzZQ0KICAgICAgICBkbmwgaXMgWUFDQw0K
ICAgICAgICBhY19mb3JfcmVhbF95YWNjPXlhY2MNCiAgICAgICAgQUNfREVG
SU5FKFVTSU5HX1lBQ0MsIDEsIFtEZWZpbmUgdG8gMSBpZiB3ZSdyZSB1c2lu
ZyB5YWNjLl0pDQpmaQ0KQUNfTVNHX05PVElDRShwYXJzZXIgZ2VuZXJhdG9y
IGlzIHJlYWxseSAkYWNfZm9yX3JlYWxfeWFjYykNCkFNX0NPTkRJVElPTkFM
KEhBVkVfQklTT04sIHRlc3QgJGFjX2Zvcl9yZWFsX3lhY2MgPSBiaXNvbikN
CkFNX0NPTkRJVElPTkFMKEhBVkVfQllBQ0MsIHRlc3QgJGFjX2Zvcl9yZWFs
X3lhY2MgPSBieWFjYykNCkFNX0NPTkRJVElPTkFMKEhBVkVfWUFDQywgdGVz
dCAkYWNfZm9yX3JlYWxfeWFjYyA9IHlhY2MpDQoNCmRubCB0ZXN0IDU6IGRp
cmVjdGl2ZSBzdXBwb3J0DQpjYXNlICRhY19mb3JfcmVhbF95YWNjIGluDQpk
bmwgKA0KYmlzb24gKSBZQUNDX1BVUkVfUEFSU0VSPSVwdXJlX3BhcnNlciA7
Ow0KZG5sICgNCiopICAgICAgWUFDQ19QVVJFX1BBUlNFUj0iIiA7Ow0KZXNh
Yw0KQUNfU1VCU1QoWUFDQ19QVVJFX1BBUlNFUikNCg0KZG5sIHRlc3QgNjog
dmVyc2lvbiBzdHJpbmcNCmNhc2UgJGFjX2Zvcl9yZWFsX3lhY2MgaW4NCmRu
bCAoDQpiaXNvbiApDQogICAgICAgIFlBQ0NfVkVSU0lPTj1gJFlBQ0MgLS12
ZXJzaW9uIDI+JjEgfCBoZWFkIC1uIDFgDQogICAgICAgIFtCSVNPTl9WRVJT
SU9OPWBlY2hvIHgkWUFDQ19WRVJTSU9OIHwgc2VkICdzL1teLjAtOV0vL2cn
YF0NCiAgICAgICAgQUNfTVNHX05PVElDRShbZm91bmQgYmlzb24gdmVyc2lv
biAkQklTT05fVkVSU0lPTi5dKSA7Ow0KZG5sICgNCiopICAgICAgWUFDQ19W
RVJTSU9OPSIkeWFjY19za2VsZXRvbl92ZXJzaW9uIiA7Ow0KZXNhYw0KQUNf
U1VCU1QoWUFDQ19WRVJTSU9OKQ0KDQpkbmwgVE9ETzogcnVuIG1vcmUgdGVz
dHMNCmRubCBjbGVhbiB1cCBmaWxlczogeS50YWIuYyB5LnRhYi5oIHkub3V0
cHV0DQpybSAtZiB5LioNCmRubCBmb3IgdXNlIGluIE1ha2VmaWxlDQpdKWRu
bA0KDQo=

--0-1988531813-1294858753=:66591--


From MAILER-DAEMON Wed Jan 12 16:31:53 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pd8IL-0002ZP-D2
	for mharc-autoconf@gnu.org; Wed, 12 Jan 2011 16:31:53 -0500
Received: from [140.186.70.92] (port=33537 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pd8II-0002Y6-Ew
	for Autoconf@gnu.org; Wed, 12 Jan 2011 16:31:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <davidstuartbruce@gmail.com>) id 1Pd8IH-0002dJ-7g
	for Autoconf@gnu.org; Wed, 12 Jan 2011 16:31:50 -0500
Received: from mail-wy0-f169.google.com ([74.125.82.169]:43816)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <davidstuartbruce@gmail.com>) id 1Pd8IH-0002d5-2K
	for Autoconf@gnu.org; Wed, 12 Jan 2011 16:31:49 -0500
Received: by wyj26 with SMTP id 26so1041627wyj.0
	for <Autoconf@gnu.org>; Wed, 12 Jan 2011 13:31:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:date:message-id:subject:from:to
	:content-type; bh=a/ryk2jwbuw3OyUBkzz6h/Mmbq3oesszEzfpCVcHPv4=;
	b=FugGP+K3Wwc8E69VJzaLFddfo/3IiONtuiqJ7Y8i4NO0z8z9IM1nTZfDjNrRTNrioX
	zpvObNN6KN8nuwuJYAF2wNRxYZq2BtETO9HqM7GU22PeNAn93iYtJ3K9FZhV38VrLjT+
	HsJqRD8nV5zckJOL3Xw1Xjr5+ry/T0d04cEDY=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	b=EHbdyRkElh/ZR/ghXZiO925grUhCZB73aVt92m/R3bSTuRP10kg6aEkn+m9Gad9Fgq
	Dl2HKnAV2bwh3H+5DTEFdpH7YT3/V0F1UYOX9dYLX2CA8d7m1Az+3KpJeXT0or7OWZmW
	49JbGBVduHtW0qTEzzF7ExeCp6U25FHpPLJhk=
MIME-Version: 1.0
Received: by 10.216.48.197 with SMTP id v47mr4459631web.82.1294867876996; Wed,
	12 Jan 2011 13:31:16 -0800 (PST)
Received: by 10.216.49.210 with HTTP; Wed, 12 Jan 2011 13:31:16 -0800 (PST)
Date: Wed, 12 Jan 2011 15:31:16 -0600
Message-ID: <AANLkTimynZDNa02F+wr-EZGnXfXTXAJSS-rGPiPP9n1p@mail.gmail.com>
From: David Bruce <davidstuartbruce@gmail.com>
To: Autoconf <Autoconf@gnu.org>
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: 
Subject: ax_prefix_config_h.m4 causes files to be left after "make distclean"
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Jan 2011 21:31:52 -0000

Hello Eric, Ralf et al,

We have reorganized our package (tuxmath) into a smaller package for
the game itself, plus a separate library package (t4k_common).  Both
packages use autotools, including autoheader.  As part of t4k_common,
we provide a couple of replacement functions (alphasort() and
scandir()) for platforms lacking these functions.  Thus, our
t4k_common.h header needs to have an autoheader include so it can
conditionally include the prototypes for these functions.

Since just putting #include "config.h" at the top of our library
header would cause a name collision with tuxmath's config.h, I have
used the ax_prefix_config_h.m4 macro to rename t4k_common's config.h
to "t4k_common-config.h", and adapted all the *.c files accordingly.

So far, so good - everything seems to work as documented.  The problem
is that "make distcheck" fails due to a failure of "make distclean":


make[1]: Leaving directory `/usr/local/src/git/t4kcommon/build'
rm -f config.status config.cache config.log configure.lineno
config.status.lineno
rm -f Makefile
ERROR: files left in build directory after distclean:
./t4k_common-config.h
./_configs.sed
make: *** [distcleancheck] Error 1

Relevant code snippets:

>From configure.ac: -----------------

AC_CONFIG_HEADER([config.h])
dnl ------------- give config.h another name so it won't clash when
t4k_common.h included by tuxmath/tuxtype:
AX_PREFIX_CONFIG_H

>From t4k_globals.h (#included at top of every source file) -----------------

#include "t4k_common-config.h"

Sorry if there is something else I am supposed to be doing, but I
think I have followed the documentation and that there is a problem
with the behavior of ax_prefix_config_h.m4 with respect to "make
distclean"

Sincerely,

David Bruce


From MAILER-DAEMON Wed Jan 12 16:57:45 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pd8hN-0001b1-MG
	for mharc-autoconf@gnu.org; Wed, 12 Jan 2011 16:57:45 -0500
Received: from [140.186.70.92] (port=45278 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pd8hL-0001aw-OH
	for Autoconf@gnu.org; Wed, 12 Jan 2011 16:57:44 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rhys.ulerich@gmail.com>) id 1Pd8hH-0007YP-AH
	for Autoconf@gnu.org; Wed, 12 Jan 2011 16:57:43 -0500
Received: from mail-fx0-f41.google.com ([209.85.161.41]:42145)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rhys.ulerich@gmail.com>) id 1Pd8hH-0007Y2-1X
	for Autoconf@gnu.org; Wed, 12 Jan 2011 16:57:39 -0500
Received: by fxm12 with SMTP id 12so1015971fxm.0
	for <Autoconf@gnu.org>; Wed, 12 Jan 2011 13:57:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc:content-type:content-transfer-encoding;
	bh=5ITTiotHM5lYPeHyWW6VtVkaq3WoqCpT3J0W+sCPo0E=;
	b=vkwBXauTzdosSupJELqVhvpukPnqKBlAqz6MTVViOQrM+R8IbQ2WG32g+jJxZD9ej5
	jFQzYpEJEhJ+vWV08ASuz8D+9I7pNTWJfuMmlB85v67ajIRLUHw01Z2BAMmPpRWGPaUr
	bFjSOlnnq0Pqu/iWYAHHVydwn7K2hXHKTlwH0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	b=mubBChi/Jq0k3J/22m1SgEDQVuQxi8FJrGgxozsxfFdAA1lB8lUDl+AlxzUx4eNXh9
	5fhGrmzdaZuz0ti6/VYJaJBI6jm3AuqVGQa+DRQBLFBOJTtp9j5rwx/E4GRzUsjQZk2Q
	QvXkfQq6Z1kRIBGw/Cao7igBpB+mdo6Q0taXI=
Received: by 10.223.103.198 with SMTP id l6mr1516728fao.99.1294869457654; Wed,
	12 Jan 2011 13:57:37 -0800 (PST)
MIME-Version: 1.0
Received: by 10.223.121.19 with HTTP; Wed, 12 Jan 2011 13:57:17 -0800 (PST)
In-Reply-To: <AANLkTimynZDNa02F+wr-EZGnXfXTXAJSS-rGPiPP9n1p@mail.gmail.com>
References: <AANLkTimynZDNa02F+wr-EZGnXfXTXAJSS-rGPiPP9n1p@mail.gmail.com>
From: Rhys Ulerich <rhys.ulerich@gmail.com>
Date: Wed, 12 Jan 2011 15:57:17 -0600
Message-ID: <AANLkTi=yoCrPADspEysG0L-+ReFZn2fw3xgN3UEd005R@mail.gmail.com>
To: David Bruce <davidstuartbruce@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: Autoconf <Autoconf@gnu.org>
Subject: Re: ax_prefix_config_h.m4 causes files to be left after "make
	distclean"
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Jan 2011 21:57:44 -0000

Hi David,

On Wed, Jan 12, 2011 at 3:31 PM, David Bruce <davidstuartbruce@gmail.com> w=
rote:
> make[1]: Leaving directory `/usr/local/src/git/t4kcommon/build'
> rm -f config.status config.cache config.log configure.lineno
> config.status.lineno
> rm -f Makefile
> ERROR: files left in build directory after distclean:
> ./t4k_common-config.h
> ./_configs.sed
> make: *** [distcleancheck] Error 1
>
> Sorry if there is something else I am supposed to be doing, but I
> think I have followed the documentation and that there is a problem
> with the behavior of ax_prefix_config_h.m4 with respect to "make
> distclean"

I ran into this myself in the past few days.=A0 Add the offending files
to DISTCLEANFILES within your toplevel Makefile.am and your distclean
target will work again.

For example, in a package called ESIO within configure.ac I call
=A0=A0 AX_PREFIX_CONFIG_H([esio/esio-config.h])
and the corresponding entries within my toplevel Makefile.am's
DISTCLEANFILES are
   DISTCLEANFILES =3D _configs.sed esio/esio-config.h

- Rhys


From MAILER-DAEMON Wed Jan 12 17:11:35 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pd8ul-0003gD-8T
	for mharc-autoconf@gnu.org; Wed, 12 Jan 2011 17:11:35 -0500
Received: from [140.186.70.92] (port=38000 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pd8uj-0003fX-0n
	for autoconf@gnu.org; Wed, 12 Jan 2011 17:11:33 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1Pd8ug-0002I4-Qs
	for autoconf@gnu.org; Wed, 12 Jan 2011 17:11:32 -0500
Received: from mmp1.nems.noaa.gov ([140.90.121.156]:60484)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1Pd8ug-0002Hx-K8
	for autoconf@gnu.org; Wed, 12 Jan 2011 17:11:30 -0500
Received: from [10.202.232.94] ([140.90.47.70])
	by mmp1.nems.noaa.gov (Sun Java System Messaging Server 6.2-6.01 (built
	Apr 3
	2006)) with ESMTPSA id <0LEX00F2VKB5M020@mmp1.nems.noaa.gov> for
	autoconf@gnu.org; Wed, 12 Jan 2011 17:11:29 -0500 (EST)
Date: Wed, 12 Jan 2011 17:11:29 -0500
From: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
To: autoconf@gnu.org
Message-id: <4D2E2711.5020709@noaa.gov>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-Enigmail-Version: 1.1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
	Gecko/20101207 Thunderbird/3.1.7
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Subject: newbie - autoscan for f90
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Jan 2011 22:11:33 -0000

Hello autoconf community,

I am a newbie to autoconf so I am sorry in advance for my basics
questions....

I am trying to swicth my existing config to an autoconf config. I tried
to run autoscan in my src directory but it is not finding any of my f90
files... From what the verbose mode tells it is not really looking for
it either.... Can autoscan deal with f90 programs?
Here is the output I get:
 autoscan ../libsrc/ --verbose
autoscan: srcdir = ../libsrc/
cfiles:
makefiles: makefile
shfiles:

function:

header:

identifier:

program:

makevar:

librarie:
autoscan: running: /usr/bin/autom4te --language=autoconf --verbose
--include=/us
autom4te: configure.ac: no such file or directory
autoscan: /usr/bin/autom4te failed with exit status: 1

I then tried to go back to square 1 and found a mini tutorial about
autoconf.. I put the following in my configure.ac
AC_INIT(myconfig, version-0.1)
AC_MSG_NOTICE([Hello, world.])
AC_INIT(myconfig, version-0.1)
echo "                             Testing for a C compiler"
AC_PROG_CC
echo "                             Testing for a C++ compiler"
AC_PROG_CXX
echo "                             Testing for a FORTRAN compiler"
AC_PROG_F77

When I run autoconf configure.ac > configure
I get:
NONE:0: error: m4_init: unbalanced m4_divert_push:
configure.ac:1: m4_divert_push: BODY
configure.ac:1: m4_divert_push: KILL
NONE:0: the top level
autom4te: /usr/bin/m4 failed with exit status: 1

Did I miss something?

Thanks,
Have a great evening!
Cheers,
Eve-Marie







-- 
Eve-Marie Devaliere, MS
Senior Science System/Software Engineer
Joint Center for Satellite Data Assimilation (JCSDA)
Phone: (301) 763-8172
Fax: (301) 763-8149
Address: World Weather Building
         Room #808
	 5200 Auth Rd
	 Camp Springs, MD 20746

The contents of this message are mine personally and do not necessarily reflect any position of NOAA



From MAILER-DAEMON Wed Jan 12 17:41:48 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pd9Nz-0004Sg-Vd
	for mharc-autoconf@gnu.org; Wed, 12 Jan 2011 17:41:48 -0500
Received: from [140.186.70.92] (port=39720 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pd9Nw-0004SY-Rk
	for autoconf@gnu.org; Wed, 12 Jan 2011 17:41:45 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1Pd9Nv-0007p1-EG
	for autoconf@gnu.org; Wed, 12 Jan 2011 17:41:44 -0500
Received: from mx1.redhat.com ([209.132.183.28]:54815)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1Pd9Nv-0007oo-5n
	for autoconf@gnu.org; Wed, 12 Jan 2011 17:41:43 -0500
Received: from int-mx01.intmail.prod.int.phx2.redhat.com
	(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0CMfgdc026138
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Wed, 12 Jan 2011 17:41:42 -0500
Received: from [10.3.113.124] (ovpn-113-124.phx2.redhat.com [10.3.113.124])
	by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id p0CMffDa019723; Wed, 12 Jan 2011 17:41:41 -0500
Message-ID: <4D2E2E24.2010504@redhat.com>
Date: Wed, 12 Jan 2011 15:41:40 -0700
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14
	Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7
MIME-Version: 1.0
To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
References: <4D2E2711.5020709@noaa.gov>
In-Reply-To: <4D2E2711.5020709@noaa.gov>
X-Enigmail-Version: 1.1.2
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig7B7AAEF7D868FA289A98F080"
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: autoconf@gnu.org
Subject: Re: newbie - autoscan for f90
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Jan 2011 22:41:46 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig7B7AAEF7D868FA289A98F080
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 01/12/2011 03:11 PM, Eve-Marie Devaliere wrote:
> Hello autoconf community,
>=20
> I am a newbie to autoconf so I am sorry in advance for my basics
> questions....
>=20
> I am trying to swicth my existing config to an autoconf config. I tried=

> to run autoscan in my src directory but it is not finding any of my f90=

> files... From what the verbose mode tells it is not really looking for
> it either.... Can autoscan deal with f90 programs?

Unfortunately, autoscan deals primarily with C, not Fortran.  So I'm not
entirely surprised that it isn't turning up much.  But running autoscan
tends to be a once-only process done at the initial autoconfiscation
time, and not something done regularly (that explains why it doesn't
work as well); and since it is not a prerequisite to writing a working
autoconf.ac and using autoconf, it shouldn't hurt if you skip that step
as useless in your situation.

>=20
> I then tried to go back to square 1 and found a mini tutorial about
> autoconf.. I put the following in my configure.ac
> AC_INIT(myconfig, version-0.1)

Quoting style - we recommend:

AC_INIT([myconfig], [version-0.1])

> AC_MSG_NOTICE([Hello, world.])
> AC_INIT(myconfig, version-0.1)

Oops - you called AC_INIT twice.  It should only be called once (and
hmm, maybe we should improve AC_INIT to detect and diagnose duplicate
invocation in a nicer manner than just complaining about unbalanced
diversions).

> echo "                             Testing for a FORTRAN compiler"
> AC_PROG_F77

Do you really want to test for AC_PROG_F77 if you are compiling f90
sources, or did you mean AC_PROG_FC([], [Fortran 90])

Also, have you read the automake tutorial?
http://www.gnu.org/software/automake/manual/automake.html#Autotools-Intro=
duction

It sounds like you want to use both autoconf and automake together, if
you are worried about tracking which .f90 files are built into your packa=
ge.

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig7B7AAEF7D868FA289A98F080
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNLi4kAAoJEKeha0olJ0NqqXMH/1zweZmj7pS6Ux7VxfI92MUa
wEGsoPSFhn0bcYPP54ol0alA33Z5nGQJQqEcL43HJLeyJYoRS39IKxa7XMVwnyIB
1u75bGt2oj/QDHY0/Cx7PzM6JaxXLPfll87MH5gGXsFqnLa6QcYg/HOPp8Rg0ovq
qYZ8FHnqZvU9+NKAPjkEjUmOwa1amaA1MuO11UcSvFXg57zGctUCWiwk7Zna8+LP
6vGjHR4xa4SCK/2MXxOXQA5/VzBDTyTmouO/6CngkSkehvbTTox8n0WFrbL6sppP
vbLEIl14hlSWKtFhfVkZy7FgdQc9KLAMWXW4VCZgtodWfe8Dqt3VGF5u9lcTDvo=
=EHpf
-----END PGP SIGNATURE-----

--------------enig7B7AAEF7D868FA289A98F080--


From MAILER-DAEMON Thu Jan 13 10:16:39 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdOul-0003v0-PA
	for mharc-autoconf@gnu.org; Thu, 13 Jan 2011 10:16:39 -0500
Received: from [140.186.70.92] (port=48929 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdOuj-0003rx-17
	for Autoconf@gnu.org; Thu, 13 Jan 2011 10:16:38 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <davidstuartbruce@gmail.com>) id 1PdOuh-0005p4-Op
	for Autoconf@gnu.org; Thu, 13 Jan 2011 10:16:36 -0500
Received: from mail-ew0-f41.google.com ([209.85.215.41]:58465)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <davidstuartbruce@gmail.com>) id 1PdOuh-0005on-KF
	for Autoconf@gnu.org; Thu, 13 Jan 2011 10:16:35 -0500
Received: by ewy27 with SMTP id 27so824157ewy.0
	for <Autoconf@gnu.org>; Thu, 13 Jan 2011 07:16:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:cc:content-type
	:content-transfer-encoding;
	bh=wsTeUSoPQ4fEa9wMFp/qraOT+Ev4DfnmmvMQzHj3DjU=;
	b=PgjTIbPsJw8H178CFcUxE2/ucXYAQSXnPDZ7vTsWUN8pkArJR/22L8e9iat5wUvxAs
	40RcSvMR1tpO2B3ubjuM5wgXJZzGeHNdl+doIL/wsbYoF63mAt4tcdiKdUwAtroY8GmF
	X/D/QwXjpBfV6TBG78qQh+/CG/OGOBDuJo1uk=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	b=XzM1vlc0L64Ds54uimkp25ApILLnHEZKQPusPGGYg2gR2jAZkTNYV2Igq24d5vYr/Y
	ieGvOoTspweu3h94iwrGtby17raygrOxrKXolX3IeM5OE5WYO54k9P1Zc4l0W63F1+HL
	cNtYUJ9C14WG5IE43Hpao8L5BiLBM2oHwAF+c=
MIME-Version: 1.0
Received: by 10.216.4.83 with SMTP id 61mr709462wei.67.1294931794395; Thu, 13
	Jan 2011 07:16:34 -0800 (PST)
Received: by 10.216.49.210 with HTTP; Thu, 13 Jan 2011 07:16:34 -0800 (PST)
In-Reply-To: <AANLkTi=yoCrPADspEysG0L-+ReFZn2fw3xgN3UEd005R@mail.gmail.com>
References: <AANLkTimynZDNa02F+wr-EZGnXfXTXAJSS-rGPiPP9n1p@mail.gmail.com>
	<AANLkTi=yoCrPADspEysG0L-+ReFZn2fw3xgN3UEd005R@mail.gmail.com>
Date: Thu, 13 Jan 2011 09:16:34 -0600
Message-ID: <AANLkTinOVFKrgMXoGpX874uwE-BUGhj2NSWNHesGVXZ8@mail.gmail.com>
From: David Bruce <davidstuartbruce@gmail.com>
To: Rhys Ulerich <rhys.ulerich@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: Autoconf <Autoconf@gnu.org>
Subject: Re: ax_prefix_config_h.m4 causes files to be left after "make
	distclean"
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Jan 2011 15:16:38 -0000

Hi Rhys,

> I ran into this myself in the past few days.=C2=A0 Add the offending file=
s
> to DISTCLEANFILES within your toplevel Makefile.am and your distclean
> target will work again.
>
> For example, in a package called ESIO within configure.ac I call
> =C2=A0=C2=A0 AX_PREFIX_CONFIG_H([esio/esio-config.h])
> and the corresponding entries within my toplevel Makefile.am's
> DISTCLEANFILES are
> =C2=A0 DISTCLEANFILES =3D _configs.sed esio/esio-config.h

Thanks - I had come up with another workaround, which was to manually
add the offending files to be removed in distclean-hdr:

# If using AX_PREFIX_CONFIG_H, distclean leaves some files so get rid
of them (HACK)
distclean-hdr:
	-rm -f config.h stamp-h1 _configs.sed t4k_common-config.h

But if I try simply "DISTCLEANFILES =3D _configs.sed
t4k_common-config.h", I now get an error that the other
config.h-related files don't get removed, namely config.h and
stamp-h1.  Of course it is simple enough to just put them on the same
line.  My question is, is there a correct way to augment a built-in
rule or variable without clobbering the behavior it would ordinarily
have?  I wasn't able to use "DISTCLEAN +=3D" for this.  Anyway, my
project is working.

Thanks,

David Bruce


From MAILER-DAEMON Thu Jan 13 10:46:06 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdPNG-0006iS-Rn
	for mharc-autoconf@gnu.org; Thu, 13 Jan 2011 10:46:06 -0500
Received: from [140.186.70.92] (port=35227 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdPJS-00064I-WE
	for Autoconf@gnu.org; Thu, 13 Jan 2011 10:42:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1PdPJR-0002h8-Ci
	for Autoconf@gnu.org; Thu, 13 Jan 2011 10:42:10 -0500
Received: from mx1.redhat.com ([209.132.183.28]:59407)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1PdPJR-0002gu-5X
	for Autoconf@gnu.org; Thu, 13 Jan 2011 10:42:09 -0500
Received: from int-mx09.intmail.prod.int.phx2.redhat.com
	(int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0DFg6Dt004926
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Thu, 13 Jan 2011 10:42:07 -0500
Received: from [10.3.113.124] (ovpn-113-124.phx2.redhat.com [10.3.113.124])
	by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id p0DFg6Zv029596; Thu, 13 Jan 2011 10:42:06 -0500
Message-ID: <4D2F1D4D.5050705@redhat.com>
Date: Thu, 13 Jan 2011 08:42:05 -0700
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14
	Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7
MIME-Version: 1.0
To: David Bruce <davidstuartbruce@gmail.com>
References: <AANLkTimynZDNa02F+wr-EZGnXfXTXAJSS-rGPiPP9n1p@mail.gmail.com>	<AANLkTi=yoCrPADspEysG0L-+ReFZn2fw3xgN3UEd005R@mail.gmail.com>
	<AANLkTinOVFKrgMXoGpX874uwE-BUGhj2NSWNHesGVXZ8@mail.gmail.com>
In-Reply-To: <AANLkTinOVFKrgMXoGpX874uwE-BUGhj2NSWNHesGVXZ8@mail.gmail.com>
X-Enigmail-Version: 1.1.2
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enigF9B61A8FBF65A53AF2C745CD"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: Autoconf <Autoconf@gnu.org>, Rhys Ulerich <rhys.ulerich@gmail.com>
Subject: Re: ax_prefix_config_h.m4 causes files to be left after
	"make	distclean"
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Jan 2011 15:46:05 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigF9B61A8FBF65A53AF2C745CD
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 01/13/2011 08:16 AM, David Bruce wrote:
> Hi Rhys,
>=20
>> I ran into this myself in the past few days.  Add the offending files
>> to DISTCLEANFILES within your toplevel Makefile.am and your distclean
>> target will work again.

> But if I try simply "DISTCLEANFILES =3D _configs.sed
> t4k_common-config.h", I now get an error that the other
> config.h-related files don't get removed, namely config.h and
> stamp-h1.

DISTCLEANFILES is an automake concept, you'll probably get better
response on the automake list.

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enigF9B61A8FBF65A53AF2C745CD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNLx1NAAoJEKeha0olJ0NqU3oH/2mQRM1zIQFyuUfr9NqYL6D9
NWLW3PFWN+K6V/4HGMj7EmMKp6JjmgA8OFuaxisQzSFNc2+NcNbDW25mg1inR4UA
VvE1Q6yfrRUPUhd5BvhszD9cFWbpHZYnMAqDsUiq6a9Nl/bQVPTPFBdwd0NleQXm
bJ4BUXaczeFY8Ni6n2yV9odLzjPtDvYKtCoF31gddACe6hsiRYevm0DcZuzp/ZA9
0SFu+IAbvk+pYAxj9+Z+lJPh4yV+GCSSfzlv81Ve5grFq+jPruOqIQ3HqhS9BHzo
kOLEsZ3yR5KRnabjsEK5kwJwsSr56euhfr70oazcptk2e8sYhPmZ5vCEISJv8DI=
=XITB
-----END PGP SIGNATURE-----

--------------enigF9B61A8FBF65A53AF2C745CD--


From MAILER-DAEMON Thu Jan 13 11:51:40 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdQOi-0005et-D5
	for mharc-autoconf@gnu.org; Thu, 13 Jan 2011 11:51:40 -0500
Received: from [140.186.70.92] (port=39079 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdQOg-0005by-HO
	for autoconf@gnu.org; Thu, 13 Jan 2011 11:51:39 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <brooks@deseret.com>) id 1PdQOe-00021m-9z
	for autoconf@gnu.org; Thu, 13 Jan 2011 11:51:37 -0500
Received: from mail2.deseret.com ([74.208.75.229]:45878)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <brooks@deseret.com>) id 1PdQOe-0001sz-4y
	for autoconf@gnu.org; Thu, 13 Jan 2011 11:51:36 -0500
Received: (qmail 2020 invoked by uid 1500); 13 Jan 2011 16:51:27 -0000
Date: Thu, 13 Jan 2011 11:51:27 -0500
From: Lyle Brooks <brooks@deseret.com>
To: autoconf@gnu.org
Message-ID: <20110113165127.GA28096@s15265707.onlinehome-server.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4.2.1i
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
Subject: Macro for compile, run, and return output
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Jan 2011 16:51:39 -0000

I am relatively new to the use of autoconf.

I have been attempting to copy and modify a macro for a
new library.  I was looking at ax_lib_oracle_oci.m4  and
ax_lib_xerces.m4 as the basis for a start.

What I'd like to do is obtain the library version info for
this new shared library.

The above macros get the library version info by parsing header
files.  With the library I am using, the version information is
obtained via a function call.

Is there a "best practice" way of compiling a short piece of code,
running it, and then getting the output back into the configure
variables?

If so, could someone point me to an existing macro or project that
does this?

Thank you.

Lyle



From MAILER-DAEMON Thu Jan 13 12:20:23 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdQqU-0008LW-Ml
	for mharc-autoconf@gnu.org; Thu, 13 Jan 2011 12:20:22 -0500
Received: from [140.186.70.92] (port=37329 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdPLR-0006ap-1l
	for autoconf@gnu.org; Thu, 13 Jan 2011 10:44:14 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <yeti@physics.muni.cz>) id 1PdPLP-0003da-Th
	for autoconf@gnu.org; Thu, 13 Jan 2011 10:44:12 -0500
Received: from minas.ics.muni.cz ([147.251.4.40]:45103)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <yeti@physics.muni.cz>) id 1PdPLP-0003Zs-Hy
	for autoconf@gnu.org; Thu, 13 Jan 2011 10:44:11 -0500
Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz
	[147.251.27.2])
	by minas.ics.muni.cz (8.13.8/8.13.8/SuSE Linux 0.8) with ESMTP id
	p0DFi1qn011332
	for <autoconf@gnu.org>; Thu, 13 Jan 2011 16:44:02 +0100
Received: by monoceros.physics.muni.cz (Postfix, from userid 16809)
	id 070DEC1B819; Thu, 13 Jan 2011 16:44:01 +0100 (CET)
Date: Thu, 13 Jan 2011 16:44:01 +0100
From: David =?utf-8?B?TmXEjWFz?= <yeti@physics.muni.cz>
To: autoconf@gnu.org
Message-ID: <20110113154400.GQ2468@physics.muni.cz>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.18 (2008-05-17)
X-Muni-Spam-TestIP: 147.251.27.2
X-Muni-Envelope-From: yeti@physics.muni.cz
X-Muni-Virus-Test: Clean
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0
	(minas.ics.muni.cz [147.251.4.35]);
	Thu, 13 Jan 2011 16:44:02 +0100 (CET)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Mailman-Approved-At: Thu, 13 Jan 2011 12:20:14 -0500
Subject: Enforcing cross-compilation
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Jan 2011 15:44:14 -0000


Hello,

is it possible to enforce cross-compilation by some configure arugments
or env vars?

I cross-compile for win32 using the mingw32 cross-compiler toolchain but
I *can* run the created excutables as I have wine installed.  So
configure concludes I am not cross-compiling and this leads to various
problems later.

Of course, I can easily work around it by unregistering the binfmt
interpreter and thus losing the ability to run the MS executables
directly.  But generally, the cross-compilation check does not seem to
be reliable so I would like to be able to ask for cross-compilation
explicitly.

Yeti



From MAILER-DAEMON Thu Jan 13 12:32:07 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdR1r-0005R9-7T
	for mharc-autoconf@gnu.org; Thu, 13 Jan 2011 12:32:07 -0500
Received: from [140.186.70.92] (port=45982 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdR1n-0005ML-Hr
	for autoconf@gnu.org; Thu, 13 Jan 2011 12:32:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1PdR1i-0000nH-M6
	for autoconf@gnu.org; Thu, 13 Jan 2011 12:32:00 -0500
Received: from mx1.redhat.com ([209.132.183.28]:58431)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1PdR1i-0000n7-FB
	for autoconf@gnu.org; Thu, 13 Jan 2011 12:31:58 -0500
Received: from int-mx02.intmail.prod.int.phx2.redhat.com
	(int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0DHVvCt024591
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Thu, 13 Jan 2011 12:31:57 -0500
Received: from [10.3.113.124] (ovpn-113-124.phx2.redhat.com [10.3.113.124])
	by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id p0DHVuXX026599; Thu, 13 Jan 2011 12:31:56 -0500
Message-ID: <4D2F370C.8090203@redhat.com>
Date: Thu, 13 Jan 2011 10:31:56 -0700
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14
	Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7
MIME-Version: 1.0
To: =?UTF-8?B?RGF2aWQgTmXEjWFz?= <yeti@physics.muni.cz>
References: <20110113154400.GQ2468@physics.muni.cz>
In-Reply-To: <20110113154400.GQ2468@physics.muni.cz>
X-Enigmail-Version: 1.1.2
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig8AD26BD18B229ED401EAF620"
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: autoconf@gnu.org
Subject: Re: Enforcing cross-compilation
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Jan 2011 17:32:06 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig8AD26BD18B229ED401EAF620
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 01/13/2011 08:44 AM, David Ne=C4=8Das wrote:
>=20
> Hello,
>=20
> is it possible to enforce cross-compilation by some configure arugments=

> or env vars?

Yes: call configure with explicit --build and --host arguments that diffe=
r.

>=20
> I cross-compile for win32 using the mingw32 cross-compiler toolchain bu=
t
> I *can* run the created excutables as I have wine installed.  So
> configure concludes I am not cross-compiling and this leads to various
> problems later.

When using a cross toolchain, you should also set the --build and --host
arguments rather than just modifying CC.

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig8AD26BD18B229ED401EAF620
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNLzcMAAoJEKeha0olJ0NqCM4H/A/Dv8KUnSLU/+51GB4onJ+5
fNzEeG4dWn9AS3MfB4KNvgOsyoAtVP2yyX9dwM2kb0TDcQS+zmwYhhRm8V7VGaEZ
FUKjhj02D/xhcCxuNyxNV8GHLbwQWREH0xArBAl3gJxEla3TsbiQYJht5FBEGCQ0
PbARh2305vuc2eZ1aYp6P8d4l9xsAWbcN7P8O5wpev/Td2u3VKzzqtTKnmTKEkL4
s/dHbzljixfk0FGZakIhGT6021uzotnRW0UlCVuIpiS/OrlK2yCsS+oR7qmocS4R
RexY/zqr35zIawHCMcN5rAViwulcFhIUbIaCGxZZ8ZQLvPL3nXRhFHLtRSRBQ74=
=aMXI
-----END PGP SIGNATURE-----

--------------enig8AD26BD18B229ED401EAF620--


From MAILER-DAEMON Thu Jan 13 12:56:47 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdRPj-0006q3-Cd
	for mharc-autoconf@gnu.org; Thu, 13 Jan 2011 12:56:47 -0500
Received: from [140.186.70.92] (port=39471 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdRPd-0006bj-CR
	for autoconf@gnu.org; Thu, 13 Jan 2011 12:56:45 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mpsuzuki@hiroshima-u.ac.jp>) id 1PdRM6-0004mX-Ql
	for autoconf@gnu.org; Thu, 13 Jan 2011 12:53:03 -0500
Received: from smtp01.hiroshima-u.ac.jp ([133.41.15.116]:45814)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mpsuzuki@hiroshima-u.ac.jp>) id 1PdRM6-0004jd-H1
	for autoconf@gnu.org; Thu, 13 Jan 2011 12:53:02 -0500
Received: from smtp01.hiroshima-u.ac.jp (smtp01.hiroshima-u.ac.jp [127.0.0.1])
	by dummy.hiroshima-u.ac.jp (Postfix) with ESMTP id BA3E8520A96;
	Fri, 14 Jan 2011 02:52:55 +0900 (JST)
Received: from [125.28.11.242] (KD125028011242.ppp.prin.ne.jp [125.28.11.242])
	(using TLSv1 with cipher AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp01.hiroshima-u.ac.jp (Postfix) with ESMTP id 0FC94520A94;
	Fri, 14 Jan 2011 02:52:53 +0900 (JST)
Message-ID: <4D2F3BEF.9070108@hiroshima-u.ac.jp>
Date: Fri, 14 Jan 2011 02:52:47 +0900
From: suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
User-Agent: Mozilla-Thunderbird 2.0.0.12 (X11/20080406)
MIME-Version: 1.0
To: =?UTF-8?B?RGF2aWQgTmXEjWFz?= <yeti@physics.muni.cz>
References: <20110113154400.GQ2468@physics.muni.cz>
In-Reply-To: <20110113154400.GQ2468@physics.muni.cz>
Content-Type: text/plain; charset=UTF-8; format=flowed
X-TM-AS-Product-Ver: IMSS-7.1.0.1241-6.0.0.1038-17730.004
X-TM-AS-Result: No--7.253-8.0-31-1
X-imss-scan-details: No--7.253-8.0-31-1
X-TM-AS-User-Approved-Sender: No
X-TM-AS-User-Blocked-Sender: No
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
Cc: autoconf@gnu.org
Subject: Re: [autoconf] Enforcing cross-compilation
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Jan 2011 17:56:45 -0000

In your case that the prefix of compilers are clearly different,
something like

./configure --host=3Di586-mingw32msvc --build=3Di386-pc-linux-gnu

may configure recognize that now it is working for cross compiling.
Please try.

Regards,
mpsuzuki

David Ne=C4=8Das wrote:
> Hello,
>=20
> is it possible to enforce cross-compilation by some configure arugments
> or env vars?
>=20
> I cross-compile for win32 using the mingw32 cross-compiler toolchain bu=
t
> I *can* run the created excutables as I have wine installed.  So
> configure concludes I am not cross-compiling and this leads to various
> problems later.
>=20
> Of course, I can easily work around it by unregistering the binfmt
> interpreter and thus losing the ability to run the MS executables
> directly.  But generally, the cross-compilation check does not seem to
> be reliable so I would like to be able to ask for cross-compilation
> explicitly.
>=20
> Yeti
>=20
>=20
> _______________________________________________
> Autoconf mailing list
> Autoconf@gnu.org
> http://lists.gnu.org/mailman/listinfo/autoconf



From MAILER-DAEMON Thu Jan 13 12:58:16 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdRRA-0007ii-37
	for mharc-autoconf@gnu.org; Thu, 13 Jan 2011 12:58:16 -0500
Received: from [140.186.70.92] (port=41287 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdRR4-0007fd-Em
	for autoconf@gnu.org; Thu, 13 Jan 2011 12:58:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <nbowler@elliptictech.com>) id 1PdRR0-0005uH-Pn
	for autoconf@gnu.org; Thu, 13 Jan 2011 12:58:10 -0500
Received: from dsl-67-204-24-19.acanac.net ([67.204.24.19]:52851
	helo=mail.ellipticsemi.com) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nbowler@elliptictech.com>) id 1PdRR0-0005sw-8I
	for autoconf@gnu.org; Thu, 13 Jan 2011 12:58:06 -0500
Received: from nbowler by mail.ellipticsemi.com with local (Exim 4.72)
	(envelope-from <nbowler@elliptictech.com>)
	id 1PdRQw-00057J-Bn; Thu, 13 Jan 2011 12:58:02 -0500
Date: Thu, 13 Jan 2011 12:58:02 -0500
From: Nick Bowler <nbowler@elliptictech.com>
To: David =?utf-8?B?TmXEjWFz?= <yeti@physics.muni.cz>
Message-ID: <20110113175802.GA17960@elliptictech.com>
References: <20110113154400.GQ2468@physics.muni.cz>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <20110113154400.GQ2468@physics.muni.cz>
Organization: Elliptic Technologies Inc.
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: autoconf@gnu.org
Subject: Re: Enforcing cross-compilation
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Jan 2011 17:58:13 -0000

On 2011-01-13 16:44 +0100, David Nečas wrote:
> I cross-compile for win32 using the mingw32 cross-compiler toolchain but
> I *can* run the created excutables as I have wine installed.  So
> configure concludes I am not cross-compiling and this leads to various
> problems later.

>From the autoconf manual (emphasis mine):

  [The build, host, and target] default to the result of running
  config.guess, unless you specify either --build or --host. In this
  case, the default becomes the system type you specified.
  ***If you specify both, and they're different, configure enters cross
  compilation mode***, so it doesn't run any tests that require execution.
  
  Hint: if you mean to override the result of config.guess, prefer --build over
  --host. In the future, --host will not override the name of the build system
  type. Whenever you specify --host, be sure to specify --build too.

-- 
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)


From MAILER-DAEMON Thu Jan 13 13:26:59 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdRsx-0003J9-Dq
	for mharc-autoconf@gnu.org; Thu, 13 Jan 2011 13:26:59 -0500
Received: from [140.186.70.92] (port=38375 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdRsv-0003Ib-BV
	for autoconf@gnu.org; Thu, 13 Jan 2011 13:26:58 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <robertjwoodworth@gmail.com>) id 1PdRsu-0002rv-6m
	for autoconf@gnu.org; Thu, 13 Jan 2011 13:26:57 -0500
Received: from mail-wy0-f169.google.com ([74.125.82.169]:33202)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <robertjwoodworth@gmail.com>) id 1PdRsu-0002rf-2E
	for autoconf@gnu.org; Thu, 13 Jan 2011 13:26:56 -0500
Received: by wyj26 with SMTP id 26so1994138wyj.0
	for <autoconf@gnu.org>; Thu, 13 Jan 2011 10:26:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:message-id:date:from:user-agent:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding;
	bh=x2nzyrG4eVJ6FD5bM6Y9B5W2xKIAfXEOXyr4aq69VCM=;
	b=w4MK/124YgQlt4A6MrWfam5QADfd5LgqR5r40BivJPKv5chVGYbWe5Bwa+REDGyOtz
	TOosYPc78SIYLJkmj3DUQ0zeOycDxxEFbFec2MwHSmsIcHNcpxuaHLII/a9IRqxeuBpn
	NhBahhlp9T0YWoePE65bH6wgOZl0qBUG0cTbM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:user-agent:mime-version:to:subject:references
	:in-reply-to:content-type:content-transfer-encoding;
	b=m+MMjE6Nz5Zf51MWSHUyJCQIrhCg03wpAOzBnW8g0KxS6oSWtNpEsF1jdJpakAnaGl
	ojmlN0fN3Ywfu38iK3CoNPJKis2kvMBfCZTeVNWsVkt/5M6iR01vVqDbP8EatxqSQw7W
	E+dzbtCEYmFVy2PPxgqTqKQAsBq62DVtqdogQ=
Received: by 10.227.144.12 with SMTP id x12mr2665774wbu.102.1294943214299;
	Thu, 13 Jan 2011 10:26:54 -0800 (PST)
Received: from [10.9.73.233] (chewy2.dalsemi.com [205.153.101.8])
	by mx.google.com with ESMTPS id m10sm258165wbc.16.2011.01.13.10.26.52
	(version=SSLv3 cipher=RC4-MD5); Thu, 13 Jan 2011 10:26:53 -0800 (PST)
Message-ID: <4D2F43EA.1090707@gmail.com>
Date: Thu, 13 Jan 2011 11:26:50 -0700
From: Robert Woodworth <robertjwoodworth@gmail.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7
MIME-Version: 1.0
To: autoconf@gnu.org
References: <20110113154400.GQ2468@physics.muni.cz>
In-Reply-To: <20110113154400.GQ2468@physics.muni.cz>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: Re: Enforcing cross-compilation
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Jan 2011 18:26:58 -0000

I have a configure.ac with the following just after AC_INIT
It works well.

<snip>

host=mips-elf
host_alias=mips-elf
ac_tool_prefix=mips-elf-
cross_compiling=yes

</snip>

This works fine, and when the AC_PROG_CC executes it looks exclusively 
for 'mips-elf-gcc' and fails if not found. It also sets 
'CC=mips-elf-gcc' in all my Makefiles.

This is for a source tree of embedded firmware code.



Rob.





On 01/13/2011 08:44 AM, David Nečas wrote:
> Hello,
>
> is it possible to enforce cross-compilation by some configure arugments
> or env vars?
>
> I cross-compile for win32 using the mingw32 cross-compiler toolchain but
> I *can* run the created excutables as I have wine installed.  So
> configure concludes I am not cross-compiling and this leads to various
> problems later.
>
> Of course, I can easily work around it by unregistering the binfmt
> interpreter and thus losing the ability to run the MS executables
> directly.  But generally, the cross-compilation check does not seem to
> be reliable so I would like to be able to ask for cross-compilation
> explicitly.
>
> Yeti
>
>
> _______________________________________________
> Autoconf mailing list
> Autoconf@gnu.org
> http://lists.gnu.org/mailman/listinfo/autoconf



From MAILER-DAEMON Thu Jan 13 14:19:03 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdShL-00033W-Iv
	for mharc-autoconf@gnu.org; Thu, 13 Jan 2011 14:19:03 -0500
Received: from [140.186.70.92] (port=49432 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdShJ-00032T-C5
	for Autoconf@gnu.org; Thu, 13 Jan 2011 14:19:02 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PdShH-0003kn-PD
	for Autoconf@gnu.org; Thu, 13 Jan 2011 14:19:01 -0500
Received: from mailout-de.gmx.net ([213.165.64.22]:54682 helo=mail.gmx.net)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PdShH-0003kO-DP
	for Autoconf@gnu.org; Thu, 13 Jan 2011 14:18:59 -0500
Received: (qmail invoked by alias); 13 Jan 2011 19:18:57 -0000
Received: from xdsl-89-0-165-4.netcologne.de (EHLO localhost.localdomain)
	[89.0.165.4]
	by mail.gmx.net (mp026) with SMTP; 13 Jan 2011 20:18:57 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX19tZFUhNAttmAttqp2yudGwXR4SAUEZNHlWfAzVIp
	daKd+VKjLTUT5K
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1PdShE-0000c2-Ne; Thu, 13 Jan 2011 20:18:56 +0100
Date: Thu, 13 Jan 2011 20:18:56 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: David Bruce <davidstuartbruce@gmail.com>
Message-ID: <20110113191856.GG29948@gmx.de>
Mail-Followup-To: David Bruce <davidstuartbruce@gmail.com>,
	Rhys Ulerich <rhys.ulerich@gmail.com>, Autoconf <Autoconf@gnu.org>
References: <AANLkTimynZDNa02F+wr-EZGnXfXTXAJSS-rGPiPP9n1p@mail.gmail.com>
	<AANLkTi=yoCrPADspEysG0L-+ReFZn2fw3xgN3UEd005R@mail.gmail.com>
	<AANLkTinOVFKrgMXoGpX874uwE-BUGhj2NSWNHesGVXZ8@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <AANLkTinOVFKrgMXoGpX874uwE-BUGhj2NSWNHesGVXZ8@mail.gmail.com>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: Autoconf <Autoconf@gnu.org>, Rhys Ulerich <rhys.ulerich@gmail.com>
Subject: Re: ax_prefix_config_h.m4 causes files to be left after "make
 distclean"
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Jan 2011 19:19:02 -0000

* David Bruce wrote on Thu, Jan 13, 2011 at 04:16:34PM CET:
> >   DISTCLEANFILES = _configs.sed esio/esio-config.h
> 
> Thanks - I had come up with another workaround, which was to manually
> add the offending files to be removed in distclean-hdr:
> 
> # If using AX_PREFIX_CONFIG_H, distclean leaves some files so get rid
> of them (HACK)
> distclean-hdr:
> 	-rm -f config.h stamp-h1 _configs.sed t4k_common-config.h

If you need a Makefile.am snippet that does what you want but doesn't
override part of automake's output (yeah, it's not great style to have
an internal helper rule named so non-internally), then please use

distclean-local: distclean-ax-prefix-config-h
distclean-ax-prefix-config-h:
        rm -f _configs.sed t4k_common-config.h


Using the -local targets is the recommended way to extend targets, and
using a helper target avoids duplicate rule definitions if someone else
wants to extend the -local target as well.

The AX_PREFIX_CONFIG_H macro could distribute a fragment.am file with a
rule such as above (and the header file name suitably replaced by a
variable which could be AC_SUBSTed).

Cheers,
Ralf


From MAILER-DAEMON Thu Jan 13 14:44:05 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdT5Y-0002M1-Ve
	for mharc-autoconf@gnu.org; Thu, 13 Jan 2011 14:44:05 -0500
Received: from [140.186.70.92] (port=51774 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdT5W-0001yy-Qc
	for Autoconf@gnu.org; Thu, 13 Jan 2011 14:44:04 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <davidstuartbruce@gmail.com>) id 1PdT3K-0008If-5I
	for Autoconf@gnu.org; Thu, 13 Jan 2011 14:41:46 -0500
Received: from mail-ww0-f49.google.com ([74.125.82.49]:51273)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <davidstuartbruce@gmail.com>) id 1PdT3J-0008IS-S4
	for Autoconf@gnu.org; Thu, 13 Jan 2011 14:41:46 -0500
Received: by wwb17 with SMTP id 17so2084136wwb.30
	for <Autoconf@gnu.org>; Thu, 13 Jan 2011 11:41:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type:content-transfer-encoding;
	bh=935nrJViDGK6lwoi+zzxXmgaDWoXl6ulSslqpotSw8Q=;
	b=lK8BgSpuAjxK0pzzUVo8zWo7vTos68MLmK+gTlqE4MPWy6TpVk9IbIumTZdi5FEANI
	1pg4/elafwB7cKpt53kPBqPr94XZGqzI01nHXzxO/RJ9lzVKpOvICjELk5ZgEDMl7W+g
	SeQasuWBJm1hRORhR3pn0jUwVLQ97wH6yL9nM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type:content-transfer-encoding;
	b=p8Xar7iIE7yuXQHiOyRkZNgx8VW6+etYjqaYFNoaSITG6DBSWLcrtYFkPtMnx5dS1Y
	xjnG2rLPuQ1SmGFW0vRZlE7L4WH+eWnSHJxW6QuR1Rd4j0nGkTTHIpk/DXT+iLFgSeeW
	fPVhMQRjF0cerZQrsjzd13TRLAXhKSQKBltWk=
MIME-Version: 1.0
Received: by 10.216.4.83 with SMTP id 61mr940111wei.67.1294947621430; Thu, 13
	Jan 2011 11:40:21 -0800 (PST)
Received: by 10.216.49.210 with HTTP; Thu, 13 Jan 2011 11:40:21 -0800 (PST)
In-Reply-To: <20110113191856.GG29948@gmx.de>
References: <AANLkTimynZDNa02F+wr-EZGnXfXTXAJSS-rGPiPP9n1p@mail.gmail.com>
	<AANLkTi=yoCrPADspEysG0L-+ReFZn2fw3xgN3UEd005R@mail.gmail.com>
	<AANLkTinOVFKrgMXoGpX874uwE-BUGhj2NSWNHesGVXZ8@mail.gmail.com>
	<20110113191856.GG29948@gmx.de>
Date: Thu, 13 Jan 2011 13:40:21 -0600
Message-ID: <AANLkTinEp4zAPw+VGaqmcT-U0=SwKW0OgGwjomNuVdFs@mail.gmail.com>
From: David Bruce <davidstuartbruce@gmail.com>
To: David Bruce <davidstuartbruce@gmail.com>,
	Rhys Ulerich <rhys.ulerich@gmail.com>, Autoconf <Autoconf@gnu.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: 
Subject: Re: ax_prefix_config_h.m4 causes files to be left after "make
	distclean"
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Jan 2011 19:44:04 -0000

Hi,

> If you need a Makefile.am snippet that does what you want but doesn't
> override part of automake's output (yeah, it's not great style to have
> an internal helper rule named so non-internally), then please use
>
> distclean-local: distclean-ax-prefix-config-h
> distclean-ax-prefix-config-h:
> =C2=A0 =C2=A0 =C2=A0 =C2=A0rm -f _configs.sed t4k_common-config.h

Thanks Ralf, that's exactly what I wanted to know.  I realize that it
wound up being an automake work-around, but the thread did start off
as an autoconf issue.

David


From MAILER-DAEMON Fri Jan 14 01:56:06 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PddZu-0005vL-EM
	for mharc-autoconf@gnu.org; Fri, 14 Jan 2011 01:56:06 -0500
Received: from [140.186.70.92] (port=42586 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PddZs-0005uy-5d
	for autoconf@gnu.org; Fri, 14 Jan 2011 01:56:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PddZr-0003AL-77
	for autoconf@gnu.org; Fri, 14 Jan 2011 01:56:04 -0500
Received: from mailout-de.gmx.net ([213.165.64.22]:39663 helo=mail.gmx.net)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PddZq-0003AE-RK
	for autoconf@gnu.org; Fri, 14 Jan 2011 01:56:03 -0500
Received: (qmail invoked by alias); 14 Jan 2011 06:56:01 -0000
Received: from xdsl-89-0-190-196.netcologne.de (EHLO localhost.localdomain)
	[89.0.190.196]
	by mail.gmx.net (mp050) with SMTP; 14 Jan 2011 07:56:01 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX1+7kioGFA671uL+2UAw/X1ELswSGFGQPmLquM6FD0
	ZJ1NMKWvs4sHdF
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1PddZo-00042Z-6A; Fri, 14 Jan 2011 07:56:00 +0100
Date: Fri, 14 Jan 2011 07:56:00 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: Lyle Brooks <brooks@deseret.com>
Message-ID: <20110114065559.GE14583@gmx.de>
Mail-Followup-To: Lyle Brooks <brooks@deseret.com>, autoconf@gnu.org
References: <20110113165127.GA28096@s15265707.onlinehome-server.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20110113165127.GA28096@s15265707.onlinehome-server.com>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
Cc: autoconf@gnu.org
Subject: Re: Macro for compile, run, and return output
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Jan 2011 06:56:05 -0000

Hello Lyle,

* Lyle Brooks wrote on Thu, Jan 13, 2011 at 05:51:27PM CET:
> I have been attempting to copy and modify a macro for a
> new library.  I was looking at ax_lib_oracle_oci.m4  and
> ax_lib_xerces.m4 as the basis for a start.
> 
> What I'd like to do is obtain the library version info for
> this new shared library.
> 
> The above macros get the library version info by parsing header
> files.  With the library I am using, the version information is
> obtained via a function call.

That is less ideal for cross-compilation, when you cannot execute code
compiled on the build system.

> Is there a "best practice" way of compiling a short piece of code,
> running it, and then getting the output back into the configure
> variables?

There is the AC_RUN_IFELSE macro which you can use for generally running
programs.  It has an argument you can set which is used for cross
compilation.  Autoconf also has an undocumented macro
  AC_LANG_INT_SAVE([prologue], [expression])

which saves the runtime evaluation of expression into the "conftest.val"
file.  You could at least look at what it does (autoconf/c.m4).

Eric, would it make sense to document the macro?

Hope this helps, Lyle.  If you need more help, show what you tried and
how that works or doesn't work.  (I'm sure others have done this before
too, but I don't have any reference.)

Cheers,
Ralf


From MAILER-DAEMON Fri Jan 14 03:05:28 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pdef2-0005Hx-G8
	for mharc-autoconf@gnu.org; Fri, 14 Jan 2011 03:05:28 -0500
Received: from [140.186.70.92] (port=58453 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pdeez-0005Fl-Tv
	for Autoconf@gnu.org; Fri, 14 Jan 2011 03:05:26 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <steffen.dettmer@googlemail.com>) id 1Pdeey-0005c3-5c
	for Autoconf@gnu.org; Fri, 14 Jan 2011 03:05:25 -0500
Received: from mail-px0-f169.google.com ([209.85.212.169]:65218)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <steffen.dettmer@googlemail.com>) id 1Pdeex-0005bm-Tv
	for Autoconf@gnu.org; Fri, 14 Jan 2011 03:05:24 -0500
Received: by pxi12 with SMTP id 12so496243pxi.0
	for <Autoconf@gnu.org>; Fri, 14 Jan 2011 00:05:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type:content-transfer-encoding;
	bh=JsI/Mt31CjkfaJszoWJGZwaNo6ZYf0XQQpvlvYJ6c10=;
	b=omhSlz1QEW+OqhVwMG9iV6bKCylawoMi6HLmm2oMJk6NrcMxlSTJLU2ZztKuZUilLi
	hkOUNU6qIRvJJOsbQTs1zWVPBA1k/5ZtX/fMqElj/UZddhG2L2XZZ8mcwVLcuJNuG+lt
	MU30G5Z6TGhhXxU6r6ubKh3pgqWP8dn0mKrJ0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type:content-transfer-encoding;
	b=MISC36dR0IRjr4EXgAGfrYAVms/VdK7fIWbJHau8ltIzGWsbbcKTpHSEbQ6z/cWdqV
	QotEK2dljqdZOLJcOx29dNny+5djSucLBXtG6hgJXOEouvAwMK3HC5DQmQYHg9TXlnWn
	Y6wj3HFVRu2Y/fRKt5+FThVV82dyEoLm37kDI=
MIME-Version: 1.0
Received: by 10.142.162.18 with SMTP id k18mr468799wfe.296.1294992321156; Fri,
	14 Jan 2011 00:05:21 -0800 (PST)
Received: by 10.142.154.6 with HTTP; Fri, 14 Jan 2011 00:05:21 -0800 (PST)
In-Reply-To: <20110113191856.GG29948@gmx.de>
References: <AANLkTimynZDNa02F+wr-EZGnXfXTXAJSS-rGPiPP9n1p@mail.gmail.com>
	<AANLkTi=yoCrPADspEysG0L-+ReFZn2fw3xgN3UEd005R@mail.gmail.com>
	<AANLkTinOVFKrgMXoGpX874uwE-BUGhj2NSWNHesGVXZ8@mail.gmail.com>
	<20110113191856.GG29948@gmx.de>
Date: Fri, 14 Jan 2011 09:05:21 +0100
Message-ID: <AANLkTimHF9Z1D=T-8b+gps4=hCrS11VTa9zDy8eDM8Ee@mail.gmail.com>
From: Steffen Dettmer <steffen.dettmer@googlemail.com>
To: Autoconf <Autoconf@gnu.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: 
Subject: Re: ax_prefix_config_h.m4 causes files to be left after "make
	distclean"
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Jan 2011 08:05:26 -0000

On Thu, Jan 13, 2011 at 8:18 PM, Ralf Wildenhues <Ralf.Wildenhues@gmx.de> w=
rote:
> * David Bruce wrote on Thu, Jan 13, 2011 at 04:16:34PM CET:
>> > =A0 DISTCLEANFILES =3D _configs.sed esio/esio-config.h
> distclean-local: distclean-ax-prefix-config-h
>
> Using the -local targets is the recommended way to extend targets,

Hope it is OK to ask another automake question here, to ensure I
understood correctly:

Does this mean that in general distclean-local should be prefered
over DISTCLEANFILES?

Same for CLEANFILES?

Steffen


From MAILER-DAEMON Fri Jan 14 11:33:49 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pdmaz-0001gB-1F
	for mharc-autoconf@gnu.org; Fri, 14 Jan 2011 11:33:49 -0500
Received: from [140.186.70.92] (port=33082 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pdmav-0000qg-4F
	for autoconf@gnu.org; Fri, 14 Jan 2011 11:33:46 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PdmaD-000633-Mj
	for autoconf@gnu.org; Fri, 14 Jan 2011 11:33:03 -0500
Received: from mmp1.nems.noaa.gov ([140.90.121.156]:42457)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PdmaD-00062H-KA
	for autoconf@gnu.org; Fri, 14 Jan 2011 11:33:01 -0500
Received: from [10.202.232.94] ([140.90.47.70])
	by mmp1.nems.noaa.gov (Sun Java System Messaging Server 6.2-6.01 (built
	Apr 3
	2006)) with ESMTPSA id <0LF000LC1TYYBP30@mmp1.nems.noaa.gov> for
	autoconf@gnu.org; Fri, 14 Jan 2011 11:32:58 -0500 (EST)
Date: Fri, 14 Jan 2011 11:32:58 -0500
From: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
To: autoconf@gnu.org
Message-id: <4D307ABA.6000607@noaa.gov>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-Enigmail-Version: 1.1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
	Gecko/20101207 Thunderbird/3.1.7
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Subject: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Jan 2011 16:33:46 -0000

Good morning autoconf community,

I am a newbie to autoconf and while I have made some good progress I am
hitting a road block.

I am taking this project from someone else and trying to use autoconf to
package it rather than the manual approach they had.

I have created my makefiles and configure.ac...
I have read in the tutorial that FCFLAG had to be set to -g (unless it
is g77).. Well I need to create *.mod and *.o so I need another set of
flags.....

if I ran configure this way:
 ./configure FC=ifort FC_FLAGS="-c -O2 -convert big_endian -free -assume
byterecl"

it does print out:
 =========================================
compilation environment variables:
   FC:       ifort
   FC_FLAGS: -c -O2 -convert big_endian -free -assume byterecl
=========================================

but if I check the value of FCFLAG in the created Makefile it says -g
only....

so when I run make it tries
ifort  -g   -o Type_Kinds  Type_Kinds.o
while I want
ifort -c -O2 -convert big_endian -free -assume byterecl Type_Kinds.f90

In my Makefile.am I have entries such as:(there are many more like that)
bin_PROGRAMS = Type_Kinds
Type_Kinds_SOURCES = Type_Kinds.f90
... is that wrong for modules?

I tried those macro too
AC_PROG_FC_C_O
AC_FC_MAIN
in my configure.ac to try telling it it didn't have a main (I just want
modules), but no luck.... (Please bear with me as I am new to Fortran
too... )

Can anyone shed some light on the situation?
Thanks a lot,
Cheers,
Eve-Marie

-- 
Eve-Marie Devaliere, MS
Senior Science System/Software Engineer
Joint Center for Satellite Data Assimilation (JCSDA)
Phone: (301) 763-8172
Fax: (301) 763-8149
Address: World Weather Building
         Room #808
	 5200 Auth Rd
	 Camp Springs, MD 20746

The contents of this message are mine personally and do not necessarily reflect any position of NOAA



From MAILER-DAEMON Fri Jan 14 12:23:50 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdnNO-0001fl-06
	for mharc-autoconf@gnu.org; Fri, 14 Jan 2011 12:23:50 -0500
Received: from [140.186.70.92] (port=60957 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdnNL-0001dy-8x
	for autoconf@gnu.org; Fri, 14 Jan 2011 12:23:48 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PdnNJ-0007jO-QD
	for autoconf@gnu.org; Fri, 14 Jan 2011 12:23:47 -0500
Received: from mmp3.nems.noaa.gov ([140.90.121.158]:48853)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PdnNJ-0007jK-MS
	for autoconf@gnu.org; Fri, 14 Jan 2011 12:23:45 -0500
Received: from [10.202.232.94] ([140.90.47.70])
	by mmp3.nems.noaa.gov (Sun Java System Messaging Server 6.2-6.01 (built
	Apr 3
	2006)) with ESMTPSA id <0LF000JYBWBKLSB0@mmp3.nems.noaa.gov> for
	autoconf@gnu.org; Fri, 14 Jan 2011 12:23:44 -0500 (EST)
Date: Fri, 14 Jan 2011 12:23:44 -0500
From: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
In-reply-to: <4D307ABA.6000607@noaa.gov>
To: autoconf@gnu.org
Message-id: <4D3086A0.4000407@noaa.gov>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-Enigmail-Version: 1.1.1
References: <4D307ABA.6000607@noaa.gov>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
	Gecko/20101207 Thunderbird/3.1.7
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Subject: Re: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Jan 2011 17:23:48 -0000

I am sorry I think I figured out my own typo... it should be FCFLAGS not
FC_FLAGS... (For some reasons they had FC_FLAGS in their original program)
Now if I export FCFLAGS before running configure I can't even configure
; it is saying
checking whether the Fortran compiler works... configure: error: cannot
run Fortran compiled programs.
????
This is very strange... I tried to reset FC to ifort to make sure but no
luck....
If I export FCFLAGS again with -g ; (it configures again but make
doesn't work)

Eve-Marie Devaliere said the following on 1/14/2011 11:32 AM:
> Good morning autoconf community,
>
> I am a newbie to autoconf and while I have made some good progress I am
> hitting a road block.
>
> I am taking this project from someone else and trying to use autoconf to
> package it rather than the manual approach they had.
>
> I have created my makefiles and configure.ac...
> I have read in the tutorial that FCFLAG had to be set to -g (unless it
> is g77).. Well I need to create *.mod and *.o so I need another set of
> flags.....
>
> if I ran configure this way:
>  ./configure FC=ifort FC_FLAGS="-c -O2 -convert big_endian -free -assume
> byterecl"
>
> it does print out:
>  =========================================
> compilation environment variables:
>    FC:       ifort
>    FC_FLAGS: -c -O2 -convert big_endian -free -assume byterecl
> =========================================
>
> but if I check the value of FCFLAG in the created Makefile it says -g
> only....
>
> so when I run make it tries
> ifort  -g   -o Type_Kinds  Type_Kinds.o
> while I want
> ifort -c -O2 -convert big_endian -free -assume byterecl Type_Kinds.f90
>
> In my Makefile.am I have entries such as:(there are many more like that)
> bin_PROGRAMS = Type_Kinds
> Type_Kinds_SOURCES = Type_Kinds.f90
> ... is that wrong for modules?
>
> I tried those macro too
> AC_PROG_FC_C_O
> AC_FC_MAIN
> in my configure.ac to try telling it it didn't have a main (I just want
> modules), but no luck.... (Please bear with me as I am new to Fortran
> too... )
>
> Can anyone shed some light on the situation?
> Thanks a lot,
> Cheers,
> Eve-Marie
>


From MAILER-DAEMON Fri Jan 14 13:26:46 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdoMI-0007XY-Db
	for mharc-autoconf@gnu.org; Fri, 14 Jan 2011 13:26:46 -0500
Received: from [140.186.70.92] (port=56155 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdoMG-0007X2-Fj
	for Autoconf@gnu.org; Fri, 14 Jan 2011 13:26:45 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PdoMF-0000UG-6F
	for Autoconf@gnu.org; Fri, 14 Jan 2011 13:26:44 -0500
Received: from mailout-de.gmx.net ([213.165.64.22]:50693)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PdoME-0000U6-Pv
	for Autoconf@gnu.org; Fri, 14 Jan 2011 13:26:43 -0500
Received: (qmail invoked by alias); 14 Jan 2011 18:26:39 -0000
Received: from xdsl-89-0-188-238.netcologne.de (EHLO localhost.localdomain)
	[89.0.188.238]
	by mail.gmx.net (mp064) with SMTP; 14 Jan 2011 19:26:39 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX19yC8saCohyV8j5MFcMdrVR2hBTOnxHdBhFTKZ6xw
	wQWHZ9X59aDnvT
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1PdoMA-0004D4-PB; Fri, 14 Jan 2011 19:26:38 +0100
Date: Fri, 14 Jan 2011 19:26:38 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: Steffen Dettmer <steffen.dettmer@googlemail.com>
Message-ID: <20110114182638.GA16163@gmx.de>
Mail-Followup-To: Steffen Dettmer <steffen.dettmer@googlemail.com>,
	Autoconf <Autoconf@gnu.org>
References: <AANLkTimynZDNa02F+wr-EZGnXfXTXAJSS-rGPiPP9n1p@mail.gmail.com>
	<AANLkTi=yoCrPADspEysG0L-+ReFZn2fw3xgN3UEd005R@mail.gmail.com>
	<AANLkTinOVFKrgMXoGpX874uwE-BUGhj2NSWNHesGVXZ8@mail.gmail.com>
	<20110113191856.GG29948@gmx.de>
	<AANLkTimHF9Z1D=T-8b+gps4=hCrS11VTa9zDy8eDM8Ee@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <AANLkTimHF9Z1D=T-8b+gps4=hCrS11VTa9zDy8eDM8Ee@mail.gmail.com>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: Autoconf <Autoconf@gnu.org>
Subject: Re: ax_prefix_config_h.m4 causes files to be left after "make
 distclean"
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Jan 2011 18:26:45 -0000

* Steffen Dettmer wrote on Fri, Jan 14, 2011 at 09:05:21AM CET:
> On Thu, Jan 13, 2011 at 8:18 PM, Ralf Wildenhues wrote:
> > * David Bruce wrote on Thu, Jan 13, 2011 at 04:16:34PM CET:
> >> >   DISTCLEANFILES = _configs.sed esio/esio-config.h
> > distclean-local: distclean-ax-prefix-config-h
> >
> > Using the -local targets is the recommended way to extend targets,
> 
> Hope it is OK to ask another automake question here, to ensure I
> understood correctly:
> 
> Does this mean that in general distclean-local should be prefered
> over DISTCLEANFILES?

No, that is not what I meant to say.  I meant to say only what I
wrote explicitly.

Alternatively to my previous suggestion, you can also distribute a
fragment.am snippet
  DISTCLEANFILES += _configs.sed $(whatever_other_header)

but the slight disadvantage of that is that you have to document for
your users the requirement to initialize DISTCLEANFILES in their
Makefile.am before including your fragment.

Other than that, the two options are fairly equivalent (OK, the
distclean-local one involves 1-2 more fork&execs, but hey, who cares
in this case).

Cheers,
Ralf


From MAILER-DAEMON Fri Jan 14 13:39:08 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdoYG-0001RR-2I
	for mharc-autoconf@gnu.org; Fri, 14 Jan 2011 13:39:08 -0500
Received: from [140.186.70.92] (port=58471 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdoEO-0005pS-OX
	for autoconf@gnu.org; Fri, 14 Jan 2011 13:18:37 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1PdoEM-0007VP-IJ
	for autoconf@gnu.org; Fri, 14 Jan 2011 13:18:36 -0500
Received: from smtp.cs.ucla.edu ([131.179.128.62]:54959)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1PdoEM-0007Ut-8j
	for autoconf@gnu.org; Fri, 14 Jan 2011 13:18:34 -0500
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 3EA3D39E80DC;
	Fri, 14 Jan 2011 10:18:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id zLkxKN8RHNUj; Fri, 14 Jan 2011 10:18:31 -0800 (PST)
Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id C5CE639E8083;
	Fri, 14 Jan 2011 10:18:31 -0800 (PST)
Message-ID: <4D30936F.6010905@cs.ucla.edu>
Date: Fri, 14 Jan 2011 10:18:23 -0800
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
MIME-Version: 1.0
To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
References: <4D307ABA.6000607@noaa.gov> <4D3086A0.4000407@noaa.gov>
In-Reply-To: <4D3086A0.4000407@noaa.gov>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
Cc: autoconf@gnu.org
Subject: Re: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Jan 2011 18:39:07 -0000

On 01/14/11 09:23, Eve-Marie Devaliere wrote:
> checking whether the Fortran compiler works... configure: error: cannot
> run Fortran compiled programs.

Please check the output log: it should have a copy of the program
that couldn't run, along with how it was compiled and built.
This should let you reproduce the problem and determine how to
work around it.


From MAILER-DAEMON Fri Jan 14 14:07:53 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pdp04-0001Mi-Vy
	for mharc-autoconf@gnu.org; Fri, 14 Jan 2011 14:07:53 -0500
Received: from [140.186.70.92] (port=56105 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pdp02-0001En-8D
	for autoconf@gnu.org; Fri, 14 Jan 2011 14:07:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1Pdp00-0006X1-Vm
	for autoconf@gnu.org; Fri, 14 Jan 2011 14:07:49 -0500
Received: from mmp1.nems.noaa.gov ([140.90.121.156]:54014)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1Pdp00-0006Wm-PV
	for autoconf@gnu.org; Fri, 14 Jan 2011 14:07:48 -0500
Received: from [10.202.232.94] ([140.90.47.70])
	by mmp1.nems.noaa.gov (Sun Java System Messaging Server 6.2-6.01 (built
	Apr 3
	2006)) with ESMTPSA id <0LF100LE014ZBPD0@mmp1.nems.noaa.gov> for
	autoconf@gnu.org; Fri, 14 Jan 2011 14:07:47 -0500 (EST)
Date: Fri, 14 Jan 2011 14:07:47 -0500
From: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
In-reply-to: <4D30936F.6010905@cs.ucla.edu>
To: Paul Eggert <eggert@cs.ucla.edu>
Message-id: <4D309F03.1070904@noaa.gov>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-Enigmail-Version: 1.1.1
References: <4D307ABA.6000607@noaa.gov> <4D3086A0.4000407@noaa.gov>
	<4D30936F.6010905@cs.ucla.edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
	Gecko/20101207 Thunderbird/3.1.7
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: autoconf@gnu.org
Subject: Re: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Jan 2011 19:07:51 -0000

Thanks Paul!
well it is looking for b.out....
---
configure:1840: $? = 0
configure:1854: checking for Fortran compiler default output file name
configure:1857: ifort -c -O2 -convert big_endian -free -assume
byterecl   conftest.f  >&5
configure:1860: $? = 0
configure:1908: result: b.out
configure:1913: checking whether the Fortran compiler works
configure:1919: ./b.out
./configure: line 1920: ./b.out: No such file or directory
------
nbut I don't see any file names conftest.f (locate either)
when I run with FCFLAGS=-g ; it is looking for a.out and finds it
(didn't find any file with that name either) and keeps on going...
this happens in configure there:
-----
# b.out is created by i960 compilers.
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.*
conftest.* b.out
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg |
*.o | *.obj )
        ;;
    conftest.$ac_ext )
        # This is the source file.
        ;;
    [ab].out )
        # We found the default executable, but exeext='' is most
        # certainly right.
        break;;
    *.* )
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
        # FIXME: I believe we export ac_cv_exeext for Libtool,
        # but it would be cool to find out if it's true.  Does anybody
        # maintain Libtool? --akim.
        export ac_cv_exeext
        break;;
    * )
        break;;
  esac
done
---
it does say b.out is created by i960 compilers but my compiler hasn't
changed ; just the flags....?
I did print out the path and it is in my current directory... I don't
have any a.out or b.out....

I'll keep on digging but I am at a lost here....
Thanks,
Cheers,
Eve-Marie

Paul Eggert said the following on 1/14/2011 1:18 PM:
> On 01/14/11 09:23, Eve-Marie Devaliere wrote:
>> checking whether the Fortran compiler works... configure: error: cannot
>> run Fortran compiled programs.
> Please check the output log: it should have a copy of the program
> that couldn't run, along with how it was compiled and built.
> This should let you reproduce the problem and determine how to
> work around it.


From MAILER-DAEMON Fri Jan 14 14:14:02 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pdp62-0006cM-Gt
	for mharc-autoconf@gnu.org; Fri, 14 Jan 2011 14:14:02 -0500
Received: from [140.186.70.92] (port=34201 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pdp5b-0006Hn-SU
	for autoconf@gnu.org; Fri, 14 Jan 2011 14:14:01 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1Pdp5W-0007Os-TV
	for autoconf@gnu.org; Fri, 14 Jan 2011 14:13:32 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:40951)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1Pdp5W-0007Oo-Dm
	for autoconf@gnu.org; Fri, 14 Jan 2011 14:13:30 -0500
Received: (qmail invoked by alias); 14 Jan 2011 19:13:28 -0000
Received: from xdsl-89-0-188-238.netcologne.de (EHLO localhost.localdomain)
	[89.0.188.238]
	by mail.gmx.net (mp007) with SMTP; 14 Jan 2011 20:13:28 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX18ey/MpFyYeO53BJqy4pF41vdU1uGltcPV2mUldVL
	BgqlTL5L/fRAsT
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1Pdp5S-0004Jn-2j; Fri, 14 Jan 2011 20:13:26 +0100
Date: Fri, 14 Jan 2011 20:13:26 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
Message-ID: <20110114191325.GH16163@gmx.de>
Mail-Followup-To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>,
	autoconf@gnu.org
References: <4D307ABA.6000607@noaa.gov>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4D307ABA.6000607@noaa.gov>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
Cc: autoconf@gnu.org
Subject: Re: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Jan 2011 19:14:01 -0000

Hello Eve-Marie,

addressing the remaining part of your question:

* Eve-Marie Devaliere wrote on Fri, Jan 14, 2011 at 05:32:58PM CET:
> I have created my makefiles and configure.ac...
> I have read in the tutorial that FCFLAG had to be set to -g (unless it
> is g77).. Well I need to create *.mod and *.o so I need another set of
> flags.....
[...]

> In my Makefile.am I have entries such as:(there are many more like that)
> bin_PROGRAMS = Type_Kinds
> Type_Kinds_SOURCES = Type_Kinds.f90
> ... is that wrong for modules?
> 
> I tried those macro too
> AC_PROG_FC_C_O
> AC_FC_MAIN
> in my configure.ac to try telling it it didn't have a main (I just want
> modules), but no luck.... (Please bear with me as I am new to Fortran
> too... )

Do you need the package to be very portable?  If so, I suggest you go to
the Autoconf Macro Archive and grab two Fortran-related macros,
AX_F90_MODULE_EXTENSION and AX_F90_MODULE_FLAG.

We then use roughly the following in configure.ac besides what you
already have:

# Find out how to add to the Fortran include path.
AX_F90_MODULE_FLAG
# The module flag may be "-I " or so, and some make implementations
# swallow trailing space in variable settings, so we employ a little
# trick.
AC_SUBST([empty], [""])
AC_SUBST([FC_MODINC], [$ax_f90_modflag'${empty}'])
# Find out the file name extensions of Fortran module files.
AX_F90_MODULE_EXTENSION
if test "x$ax_f90_modext" != xunknown; then
  FC_MODEXT=$ax_f90_modext
else
  FC_MODEXT=$ax_f90_modext
fi
AC_SUBST([FC_MODEXT])


And then we use the substituted variables in the Makefile.am files,
more or less like this:

# Find module files from the ../lib directory.
AM_FCFLAGS = $(FC_MODINC)../lib

# Clean up modules.
clean-local: clean-modules
clean-modules:
	test -z "$(FC_MODEXT)" || $(RM) *.$(FC_MODEXT)


Now, Automake doesn't (yet) have builtin support for Fortran module
dependencies, so you will have to write dependencies yourself, or use
one of the several scripts out there for them.  Sorry.  We would like to
change this in the near future ...

If you need to support long lines in Fortran sources (and can require
Autoconf >= 2.68), you can also use the new AC_FC_LINE_LENGTH macro.

Hope that helps.

Cheers,
Ralf


From MAILER-DAEMON Fri Jan 14 14:30:05 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdpLZ-0006PT-Hg
	for mharc-autoconf@gnu.org; Fri, 14 Jan 2011 14:30:05 -0500
Received: from [140.186.70.92] (port=45387 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdpLU-0006GS-4T
	for autoconf@gnu.org; Fri, 14 Jan 2011 14:30:01 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PdpLD-0001Nc-VI
	for autoconf@gnu.org; Fri, 14 Jan 2011 14:29:44 -0500
Received: from mailout-de.gmx.net ([213.165.64.22]:36499)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PdpLD-0001NL-IK
	for autoconf@gnu.org; Fri, 14 Jan 2011 14:29:43 -0500
Received: (qmail invoked by alias); 14 Jan 2011 19:29:41 -0000
Received: from xdsl-89-0-188-238.netcologne.de (EHLO localhost.localdomain)
	[89.0.188.238]
	by mail.gmx.net (mp018) with SMTP; 14 Jan 2011 20:29:41 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX18E3XMVCGIEmXAVAzdIqtsijHDOmteGd5Xhr6XLxP
	8QW6/bv3qVyr3E
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1PdpLA-0004L1-SH; Fri, 14 Jan 2011 20:29:40 +0100
Date: Fri, 14 Jan 2011 20:29:40 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
Message-ID: <20110114192940.GI16163@gmx.de>
Mail-Followup-To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>,
	Paul Eggert <eggert@cs.ucla.edu>, autoconf@gnu.org
References: <4D307ABA.6000607@noaa.gov> <4D3086A0.4000407@noaa.gov>
	<4D30936F.6010905@cs.ucla.edu> <4D309F03.1070904@noaa.gov>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4D309F03.1070904@noaa.gov>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: Paul Eggert <eggert@cs.ucla.edu>, autoconf@gnu.org
Subject: Re: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Jan 2011 19:30:01 -0000

* Eve-Marie Devaliere wrote on Fri, Jan 14, 2011 at 08:07:47PM CET:
> well it is looking for b.out....
> ---
> configure:1840: $? = 0
> configure:1854: checking for Fortran compiler default output file name
> configure:1857: ifort -c -O2 -convert big_endian -free -assume
> byterecl   conftest.f  >&5
> configure:1860: $? = 0
> configure:1908: result: b.out
> configure:1913: checking whether the Fortran compiler works
> configure:1919: ./b.out
> ./configure: line 1920: ./b.out: No such file or directory

Ahh.  You have a very old Autoconf version installed.  Please install a
newer version (and if you need to do it in a local directory, go ahead
and install a newer Automake right along in the same prefix).

Then rerun autoreconf -v inside your project (after adjusting PATH so it
points to the new autotools).

I bet this is
http://lists.gnu.org/archive/html/autoconf-patches/2006-08/msg00008.html
fixed by commit 75f337207698f515f252005ff67d7d8fd1728f4d.

Cheers,
Ralf


From MAILER-DAEMON Fri Jan 14 14:36:34 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdpRp-0003B6-Ve
	for mharc-autoconf@gnu.org; Fri, 14 Jan 2011 14:36:34 -0500
Received: from [140.186.70.92] (port=41140 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdpRn-0003Ac-Bh
	for autoconf@gnu.org; Fri, 14 Jan 2011 14:36:32 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PdpRm-0002R8-7v
	for autoconf@gnu.org; Fri, 14 Jan 2011 14:36:31 -0500
Received: from mmp3.nems.noaa.gov ([140.90.121.158]:58573)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PdpRm-0002R3-45
	for autoconf@gnu.org; Fri, 14 Jan 2011 14:36:30 -0500
Received: from [10.202.232.94] ([140.90.47.70])
	by mmp3.nems.noaa.gov (Sun Java System Messaging Server 6.2-6.01 (built
	Apr 3
	2006)) with ESMTPSA id <0LF100BNZ2GSRZ40@mmp3.nems.noaa.gov> for
	autoconf@gnu.org; Fri, 14 Jan 2011 14:36:29 -0500 (EST)
Date: Fri, 14 Jan 2011 14:36:28 -0500
From: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
In-reply-to: <20110114192940.GI16163@gmx.de>
To: Paul Eggert <eggert@cs.ucla.edu>, autoconf@gnu.org
Message-id: <4D30A5BC.1000108@noaa.gov>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-Enigmail-Version: 1.1.1
References: <4D307ABA.6000607@noaa.gov> <4D3086A0.4000407@noaa.gov>
	<4D30936F.6010905@cs.ucla.edu> <4D309F03.1070904@noaa.gov>
	<20110114192940.GI16163@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
	Gecko/20101207 Thunderbird/3.1.7
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: 
Subject: Re: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Jan 2011 19:36:32 -0000

ohh yes this look like the same issue indeed....
yes I do have an old version...
I am trying to get the IT team to do it since this is how it works here
at NOAA... but I may be able to try installing in a local directory...
Thanks again!
Eve-Marie

Ralf Wildenhues said the following on 1/14/2011 2:29 PM:
> * Eve-Marie Devaliere wrote on Fri, Jan 14, 2011 at 08:07:47PM CET:
>> well it is looking for b.out....
>> ---
>> configure:1840: $? = 0
>> configure:1854: checking for Fortran compiler default output file name
>> configure:1857: ifort -c -O2 -convert big_endian -free -assume
>> byterecl   conftest.f  >&5
>> configure:1860: $? = 0
>> configure:1908: result: b.out
>> configure:1913: checking whether the Fortran compiler works
>> configure:1919: ./b.out
>> ./configure: line 1920: ./b.out: No such file or directory
> Ahh.  You have a very old Autoconf version installed.  Please install a
> newer version (and if you need to do it in a local directory, go ahead
> and install a newer Automake right along in the same prefix).
>
> Then rerun autoreconf -v inside your project (after adjusting PATH so it
> points to the new autotools).
>
> I bet this is
> http://lists.gnu.org/archive/html/autoconf-patches/2006-08/msg00008.html
> fixed by commit 75f337207698f515f252005ff67d7d8fd1728f4d.
>
> Cheers,
> Ralf


From MAILER-DAEMON Fri Jan 14 16:43:49 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdrQy-0003II-Ui
	for mharc-autoconf@gnu.org; Fri, 14 Jan 2011 16:43:49 -0500
Received: from [140.186.70.92] (port=40900 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdrQu-0003Eo-Kx
	for autoconf@gnu.org; Fri, 14 Jan 2011 16:43:46 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PdrQq-0004A0-AK
	for autoconf@gnu.org; Fri, 14 Jan 2011 16:43:41 -0500
Received: from mmp2.nems.noaa.gov ([140.90.121.157]:44613)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PdrQq-00049s-4v
	for autoconf@gnu.org; Fri, 14 Jan 2011 16:43:40 -0500
Received: from [10.202.232.94] ([140.90.47.70])
	by mmp2.nems.noaa.gov (Sun Java System Messaging Server 6.2-6.01 (built
	Apr 3
	2006)) with ESMTPSA id <0LF100I5H8CQAS10@mmp2.nems.noaa.gov> for
	autoconf@gnu.org; Fri, 14 Jan 2011 16:43:38 -0500 (EST)
Date: Fri, 14 Jan 2011 16:43:38 -0500
From: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
In-reply-to: <20110114191325.GH16163@gmx.de>
To: autoconf@gnu.org
Message-id: <4D30C38A.7020604@noaa.gov>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-Enigmail-Version: 1.1.1
References: <4D307ABA.6000607@noaa.gov> <20110114191325.GH16163@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
	Gecko/20101207 Thunderbird/3.1.7
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Subject: Re: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Jan 2011 21:43:47 -0000

Hello Ralph and all,

I think I have updated autoconf succesfully...
Now it says:
configure: error: Fortran compiler cannot create executables

If I check the log it says:
checking for Fortran compiler version
$FC --version >&5
configure:2460: ifort --version >&5
ifort (IFORT) 12.0.0 20101006
Copyright (C) 1985-2010 Intel Corporation.  All rights reserved.

configure:2471: $? = 0
$FC -v >&5
configure:2460: ifort -v >&5
Version 12.0.0
configure:2471: $? = 0
$FC -V >&5
configure:2460: ifort -V >&5
Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on
Intel(R) 64, Version 12.0.0.084 Build 20101006
Copyright (C) 1985-2010 Intel Corporation.  All rights reserved.

configure:2471: $? = 0
$FC -qversion >&5
configure:2460: ifort -qversion >&5
ifort: command line warning #10006: ignoring unknown option '-qversion'
ifort: command line error: no files specified; for help type "ifort -help"
configure:2471: $? = 1
configure:2486: checking whether the Fortran compiler works
configure:2508: ifort -c -O2 -convert big_endian -free -assume
byterecl   conftest.f  >&5
configure:2512: $? = 0
configure:2550: result: no
configure: failed program was:
|       program main
|
|       end
configure:2555: error: in
`/net/orbit272l/home/pub/evemarie/projects/CRTM/autoconf/play/CRTM':
configure:2557: error: Fortran compiler cannot create executables


First I am not sure why it goes through all those tests to find the
version and doesn't stop once one test has been successful but that is
probably not part of the problem....

I still don't see a conftest...

As previously if I use -g only as my FCFLAGS instead of -c -O2 -convert
big_endian -free -assume byterecl , configure runs fine but then of
course make doesn't....

Any insights would be greatly appreciated,
Have a great week-end,
Thanks,
Cheers,
Eve-Marie
Ralf Wildenhues said the following on 1/14/2011 2:13 PM:
> Hello Eve-Marie,
>
> addressing the remaining part of your question:
>
> * Eve-Marie Devaliere wrote on Fri, Jan 14, 2011 at 05:32:58PM CET:
>> I have created my makefiles and configure.ac...
>> I have read in the tutorial that FCFLAG had to be set to -g (unless it
>> is g77).. Well I need to create *.mod and *.o so I need another set of
>> flags.....
> [...]
>
>> In my Makefile.am I have entries such as:(there are many more like that)
>> bin_PROGRAMS = Type_Kinds
>> Type_Kinds_SOURCES = Type_Kinds.f90
>> ... is that wrong for modules?
>>
>> I tried those macro too
>> AC_PROG_FC_C_O
>> AC_FC_MAIN
>> in my configure.ac to try telling it it didn't have a main (I just want
>> modules), but no luck.... (Please bear with me as I am new to Fortran
>> too... )
> Do you need the package to be very portable?  If so, I suggest you go to
> the Autoconf Macro Archive and grab two Fortran-related macros,
> AX_F90_MODULE_EXTENSION and AX_F90_MODULE_FLAG.
>
> We then use roughly the following in configure.ac besides what you
> already have:
>
> # Find out how to add to the Fortran include path.
> AX_F90_MODULE_FLAG
> # The module flag may be "-I " or so, and some make implementations
> # swallow trailing space in variable settings, so we employ a little
> # trick.
> AC_SUBST([empty], [""])
> AC_SUBST([FC_MODINC], [$ax_f90_modflag'${empty}'])
> # Find out the file name extensions of Fortran module files.
> AX_F90_MODULE_EXTENSION
> if test "x$ax_f90_modext" != xunknown; then
>   FC_MODEXT=$ax_f90_modext
> else
>   FC_MODEXT=$ax_f90_modext
> fi
> AC_SUBST([FC_MODEXT])
>
>
> And then we use the substituted variables in the Makefile.am files,
> more or less like this:
>
> # Find module files from the ../lib directory.
> AM_FCFLAGS = $(FC_MODINC)../lib
>
> # Clean up modules.
> clean-local: clean-modules
> clean-modules:
> 	test -z "$(FC_MODEXT)" || $(RM) *.$(FC_MODEXT)
>
>
> Now, Automake doesn't (yet) have builtin support for Fortran module
> dependencies, so you will have to write dependencies yourself, or use
> one of the several scripts out there for them.  Sorry.  We would like to
> change this in the near future ...
>
> If you need to support long lines in Fortran sources (and can require
> Autoconf >= 2.68), you can also use the new AC_FC_LINE_LENGTH macro.
>
> Hope that helps.
>
> Cheers,
> Ralf
>
> _______________________________________________
> Autoconf mailing list
> Autoconf@gnu.org
> http://lists.gnu.org/mailman/listinfo/autoconf


From MAILER-DAEMON Fri Jan 14 16:51:37 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PdrYX-0000ha-Bk
	for mharc-autoconf@gnu.org; Fri, 14 Jan 2011 16:51:37 -0500
Received: from [140.186.70.92] (port=59720 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PdrYU-0000gs-R8
	for autoconf@gnu.org; Fri, 14 Jan 2011 16:51:35 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1PdrYT-0005ev-Hj
	for autoconf@gnu.org; Fri, 14 Jan 2011 16:51:34 -0500
Received: from smtp.cs.ucla.edu ([131.179.128.62]:50350)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1PdrYT-0005ei-Ca
	for autoconf@gnu.org; Fri, 14 Jan 2011 16:51:33 -0500
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 46B7939E80E1;
	Fri, 14 Jan 2011 13:51:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id qZYjc7nhUbuW; Fri, 14 Jan 2011 13:51:31 -0800 (PST)
Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id C449239E80DB;
	Fri, 14 Jan 2011 13:51:31 -0800 (PST)
Message-ID: <4D30C562.9070005@cs.ucla.edu>
Date: Fri, 14 Jan 2011 13:51:30 -0800
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
MIME-Version: 1.0
To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
References: <4D307ABA.6000607@noaa.gov> <20110114191325.GH16163@gmx.de>
	<4D30C38A.7020604@noaa.gov>
In-Reply-To: <4D30C38A.7020604@noaa.gov>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
Cc: autoconf@gnu.org
Subject: Re: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Jan 2011 21:51:36 -0000

On 01/14/11 13:43, Eve-Marie Devaliere wrote:
> configure:2486: checking whether the Fortran compiler works
> configure:2508: ifort -c -O2 -convert big_endian -free -assume
> byterecl   conftest.f  >&5
> configure:2512: $? = 0
> configure:2550: result: no
> configure: failed program was:
> |       program main
> |
> |       end

Apparently it tried to run this command:

ifort -c -O2 -convert big_endian -free -assume byterecl   conftest.f

on a simple file that looks like this:

  program main
  end

The compilation succeeded (that's the "$? = 0") but it still
didn't like things.  Most likely it's trying to run the resulting
executable but can't find it.  Please look in lines 2512 through 2550
to see the details.


From MAILER-DAEMON Fri Jan 14 20:16:38 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pdukw-000519-KB
	for mharc-autoconf@gnu.org; Fri, 14 Jan 2011 20:16:38 -0500
Received: from [140.186.70.92] (port=47020 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pduku-0004yw-Sv
	for autoconf@gnu.org; Fri, 14 Jan 2011 20:16:37 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chan@mcs.anl.gov>) id 1Pdukt-0004g6-U5
	for autoconf@gnu.org; Fri, 14 Jan 2011 20:16:36 -0500
Received: from mailhost.anl.gov ([130.202.113.50]:61393)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chan@mcs.anl.gov>) id 1Pdukt-0004fm-RP
	for autoconf@gnu.org; Fri, 14 Jan 2011 20:16:35 -0500
Received: from mailhost.anl.gov (mailhost.anl.gov [130.202.113.50])
	by localhost.anl.gov (Postfix) with ESMTP id 3A7CE97;
	Fri, 14 Jan 2011 19:16:34 -0600 (CST)
Received: from zimbra.anl.gov (zimbra.anl.gov [130.202.101.12])
	by mailhost.anl.gov (Postfix) with ESMTP id 2BE3E8A;
	Fri, 14 Jan 2011 19:16:34 -0600 (CST)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by zimbra.anl.gov (Postfix) with ESMTP id 1EE48124CC;
	Fri, 14 Jan 2011 19:16:34 -0600 (CST)
X-Virus-Scanned: amavisd-new at zimbra.anl.gov
Received: from zimbra.anl.gov ([127.0.0.1])
	by localhost (zimbra.anl.gov [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id s7d2YBj4KBt3; Fri, 14 Jan 2011 19:16:34 -0600 (CST)
Received: from zimbra.anl.gov (zimbra.anl.gov [130.202.101.12])
	by zimbra.anl.gov (Postfix) with ESMTP id 0BEDE124CA;
	Fri, 14 Jan 2011 19:16:34 -0600 (CST)
Date: Fri, 14 Jan 2011 19:16:34 -0600 (CST)
From: Anthony Chan <chan@mcs.anl.gov>
To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
Message-ID: <1930740657.66593.1295054194012.JavaMail.root@zimbra.anl.gov>
In-Reply-To: <4D30C38A.7020604@noaa.gov>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [130.202.101.12]
X-detected-operating-system: by eggs.gnu.org: Solaris 9
Cc: autoconf@gnu.org
Subject: Re: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Anthony Chan <chan@mcs.anl.gov>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 15 Jan 2011 01:16:37 -0000



----- Original Message -----

> As previously if I use -g only as my FCFLAGS instead of -c -O2
> -convert
> big_endian -free -assume byterecl , configure runs fine but then of
> course make doesn't....

Try removing "-c" in FCFLAGS.

A.Chan 


From MAILER-DAEMON Sat Jan 15 08:28:12 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pe6Au-0007vW-8b
	for mharc-autoconf@gnu.org; Sat, 15 Jan 2011 08:28:12 -0500
Received: from [140.186.70.92] (port=53664 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pe6As-0007vO-78
	for autoconf@gnu.org; Sat, 15 Jan 2011 08:28:11 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <cchgroupmail@gmail.com>) id 1Pe6Ar-0001pW-1j
	for autoconf@gnu.org; Sat, 15 Jan 2011 08:28:10 -0500
Received: from mail-ey0-f169.google.com ([209.85.215.169]:63858)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <cchgroupmail@gmail.com>) id 1Pe6Aq-0001pP-Tl
	for autoconf@gnu.org; Sat, 15 Jan 2011 08:28:09 -0500
Received: by eyh6 with SMTP id 6so1859197eyh.0
	for <autoconf@gnu.org>; Sat, 15 Jan 2011 05:28:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:cc:content-type
	:content-transfer-encoding;
	bh=IXb8GFO6zSqDp1xt78g7UO0sxLKWbacPSk8iwz60dwM=;
	b=Ji1KE/NQjSSBHyN04K+Jxj+/iRSGMMbSQk895qLd3RMzAEdNwKNdbjAqOPp8wCj+Mg
	z3stiRXyQgN/Z8TmzWMpj8dGep1Vkm2kxXTF+Ys0QNKS7597FIrg2uWyEicjlepTwqqf
	Hf4xumunSDgCakXCugOiKxDZy7ZoIlCLp+LR0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	b=S4MmyugHEPO+IQdI0vZF+Rr3qWdX6GtstJwboBn/XeLDfnC4cMNxXsjyGpdEOIvfAJ
	AEd2YHqxnpbp0K/XPrx3l8nrC+y1vYhl4CNTua7XOkOpHwFCy3uy2wKEp78T/bafqdmR
	7YuIovTCP3BazXoXKyL/sMOoCsOXIo/hcgyX8=
MIME-Version: 1.0
Received: by 10.213.13.14 with SMTP id z14mr609285ebz.93.1295098087076; Sat,
	15 Jan 2011 05:28:07 -0800 (PST)
Received: by 10.213.16.210 with HTTP; Sat, 15 Jan 2011 05:28:06 -0800 (PST)
In-Reply-To: <4D30C38A.7020604@noaa.gov>
References: <4D307ABA.6000607@noaa.gov> <20110114191325.GH16163@gmx.de>
	<4D30C38A.7020604@noaa.gov>
Date: Sat, 15 Jan 2011 08:28:06 -0500
Message-ID: <AANLkTik-Jz-a69HiuqNnEmRxRMyxLseXUz=14LHwnLgN@mail.gmail.com>
From: Christopher Hulbert <cchgroupmail@gmail.com>
To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: autoconf@gnu.org
Subject: Re: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 15 Jan 2011 13:28:11 -0000

On Fri, Jan 14, 2011 at 4:43 PM, Eve-Marie Devaliere
<Eve-Marie.Devaliere@noaa.gov> wrote:
> Hello Ralph and all,
>
> I think I have updated autoconf succesfully...
> Now it says:
> configure: error: Fortran compiler cannot create executables

Are you still passing "-c" in FCFLAGS as you indicated in your first 2
posts? If so, this is why your fortran compiler is not creating an
executable. As you can see by the line below:

configure:2508: ifort -c -O2 -convert big_endian -free -assume
                                 ^
                          This is why no executable is created.

Chris

>
> If I check the log it says:
> checking for Fortran compiler version
> $FC --version >&5
> configure:2460: ifort --version >&5
> ifort (IFORT) 12.0.0 20101006
> Copyright (C) 1985-2010 Intel Corporation. =A0All rights reserved.
>
> configure:2471: $? =3D 0
> $FC -v >&5
> configure:2460: ifort -v >&5
> Version 12.0.0
> configure:2471: $? =3D 0
> $FC -V >&5
> configure:2460: ifort -V >&5
> Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on
> Intel(R) 64, Version 12.0.0.084 Build 20101006
> Copyright (C) 1985-2010 Intel Corporation. =A0All rights reserved.
>
> configure:2471: $? =3D 0
> $FC -qversion >&5
> configure:2460: ifort -qversion >&5
> ifort: command line warning #10006: ignoring unknown option '-qversion'
> ifort: command line error: no files specified; for help type "ifort -help=
"
> configure:2471: $? =3D 1
> configure:2486: checking whether the Fortran compiler works
> configure:2508: ifort -c -O2 -convert big_endian -free -assume
> byterecl =A0 conftest.f =A0>&5
> configure:2512: $? =3D 0
> configure:2550: result: no
> configure: failed program was:
> | =A0 =A0 =A0 program main
> |
> | =A0 =A0 =A0 end
> configure:2555: error: in
> `/net/orbit272l/home/pub/evemarie/projects/CRTM/autoconf/play/CRTM':
> configure:2557: error: Fortran compiler cannot create executables
>
>
> First I am not sure why it goes through all those tests to find the
> version and doesn't stop once one test has been successful but that is
> probably not part of the problem....
>
> I still don't see a conftest...
>
> As previously if I use -g only as my FCFLAGS instead of -c -O2 -convert
> big_endian -free -assume byterecl , configure runs fine but then of
> course make doesn't....

Why are you using -c? Don't do this.

Chris

>
> Any insights would be greatly appreciated,
> Have a great week-end,
> Thanks,
> Cheers,
> Eve-Marie


From MAILER-DAEMON Sun Jan 16 11:09:21 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PeVAP-00079S-6b
	for mharc-autoconf@gnu.org; Sun, 16 Jan 2011 11:09:21 -0500
Received: from [140.186.70.92] (port=53136 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PeVAM-00079E-OL
	for autoconf@gnu.org; Sun, 16 Jan 2011 11:09:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <yeti@physics.muni.cz>) id 1PeVAL-0005eG-UP
	for autoconf@gnu.org; Sun, 16 Jan 2011 11:09:18 -0500
Received: from minas.ics.muni.cz ([147.251.4.40]:38004)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <yeti@physics.muni.cz>) id 1PeVAL-0005dl-Ii
	for autoconf@gnu.org; Sun, 16 Jan 2011 11:09:17 -0500
Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz
	[147.251.27.2])
	by minas.ics.muni.cz (8.13.8/8.13.8/SuSE Linux 0.8) with ESMTP id
	p0GG97Wn026406
	for <autoconf@gnu.org>; Sun, 16 Jan 2011 17:09:08 +0100
Received: by monoceros.physics.muni.cz (Postfix, from userid 16809)
	id 8B64EC1B819; Sun, 16 Jan 2011 17:09:07 +0100 (CET)
Date: Sun, 16 Jan 2011 17:09:07 +0100
From: David =?utf-8?B?TmXEjWFz?= <yeti@physics.muni.cz>
To: autoconf@gnu.org
Message-ID: <20110116160907.GV2468@physics.muni.cz>
References: <20110113154400.GQ2468@physics.muni.cz>
	<4D2F370C.8090203@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <4D2F370C.8090203@redhat.com>
User-Agent: Mutt/1.5.18 (2008-05-17)
X-Muni-Spam-TestIP: 147.251.27.2
X-Muni-Envelope-From: yeti@physics.muni.cz
X-Muni-Virus-Test: Clean
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0
	(minas.ics.muni.cz [147.251.4.35]);
	Sun, 16 Jan 2011 17:09:08 +0100 (CET)
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by minas.ics.muni.cz id
	p0GG97Wn026406
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
Subject: Re: Enforcing cross-compilation
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 16 Jan 2011 16:09:19 -0000

On Thu, Jan 13, 2011 at 10:31:56AM -0700, Eric Blake wrote:
> On 01/13/2011 08:44 AM, David Ne=C4=8Das wrote:
> >=20
> > is it possible to enforce cross-compilation by some configure arugmen=
ts
> > or env vars?
>=20
> Yes: call configure with explicit --build and --host arguments that dif=
fer.

OK, thanks also to others who answered.  So the simplest method to do
this

    ./configure --host=3Di686-pc-mingw32 --build=3Di386-pc-linux-gnu

generically is

    ./configure --host=3Di686-pc-mingw32 --build=3D$(./config.guess)

> When using a cross toolchain, you should also set the --build and --hos=
t
> arguments rather than just modifying CC.

Of course I set --host.  I hoped there is some shortcut for setting
--build as above.  But well, running config.guess is not that bad.

Regards,

Yeti



From MAILER-DAEMON Tue Jan 18 09:48:27 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PfCrD-0008Ec-Ka
	for mharc-autoconf@gnu.org; Tue, 18 Jan 2011 09:48:27 -0500
Received: from [140.186.70.92] (port=42770 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PfCrA-0008Ac-GX
	for autoconf@gnu.org; Tue, 18 Jan 2011 09:48:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PfCr9-0004l4-30
	for autoconf@gnu.org; Tue, 18 Jan 2011 09:48:24 -0500
Received: from mmp1.nems.noaa.gov ([140.90.121.156]:58308)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PfCr9-0004kt-0F
	for autoconf@gnu.org; Tue, 18 Jan 2011 09:48:23 -0500
Received: from [10.202.232.94] ([140.90.47.70])
	by mmp1.nems.noaa.gov (Sun Java System Messaging Server 6.2-6.01 (built
	Apr 3
	2006)) with ESMTPSA id <0LF800FCZ3SLMB80@mmp1.nems.noaa.gov> for
	autoconf@gnu.org; Tue, 18 Jan 2011 09:48:21 -0500 (EST)
Date: Tue, 18 Jan 2011 09:48:21 -0500
From: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
In-reply-to: <AANLkTik-Jz-a69HiuqNnEmRxRMyxLseXUz=14LHwnLgN@mail.gmail.com>
To: Christopher Hulbert <cchgroupmail@gmail.com>
Message-id: <4D35A835.3090308@noaa.gov>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-Enigmail-Version: 1.1.1
References: <4D307ABA.6000607@noaa.gov> <20110114191325.GH16163@gmx.de>
	<4D30C38A.7020604@noaa.gov>
	<AANLkTik-Jz-a69HiuqNnEmRxRMyxLseXUz=14LHwnLgN@mail.gmail.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
	Gecko/20101207 Thunderbird/3.1.7
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: autoconf@gnu.org
Subject: Re: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 18 Jan 2011 14:48:25 -0000

Good morning,
Thanks all for your posts....
I haven't written the package and I am just trying to use autoconf to
make the install easier...Just to say that I am trying to make sense of
the package too... :) They are using modules so for each f90 file I need
a .o and .mod.... the -c -02... flags are the one they were using in
their initial setup....
If I get rid of the -c, yes your are right configure runs fine but then
make crashes on the first program because it is not finding a main... I
think they mentioned they just want to link the programs.... but it
still sounds to me like we need a main too (oh yes I am a fortran newbie
too... ;-} )
 I think what the problem is is that:
1. configure doesn't want -c because it wants to test if it can make an
executable
2. the package needs the -c to be setup properly but once the -c is not
given in configure, we cannot use it there....

DO I understand that correctly? Is there a way to go around that?

Thanks again so much for your support! You are the men! :)
Cheers,
Eve-Marie

Christopher Hulbert said the following on 1/15/2011 8:28 AM:
> On Fri, Jan 14, 2011 at 4:43 PM, Eve-Marie Devaliere
> <Eve-Marie.Devaliere@noaa.gov> wrote:
>> Hello Ralph and all,
>>
>> I think I have updated autoconf succesfully...
>> Now it says:
>> configure: error: Fortran compiler cannot create executables
> Are you still passing "-c" in FCFLAGS as you indicated in your first 2
> posts? If so, this is why your fortran compiler is not creating an
> executable. As you can see by the line below:
>
> configure:2508: ifort -c -O2 -convert big_endian -free -assume
>                                  ^
>                           This is why no executable is created.
>
> Chris
>
>> If I check the log it says:
>> checking for Fortran compiler version
>> $FC --version >&5
>> configure:2460: ifort --version >&5
>> ifort (IFORT) 12.0.0 20101006
>> Copyright (C) 1985-2010 Intel Corporation.  All rights reserved.
>>
>> configure:2471: $? = 0
>> $FC -v >&5
>> configure:2460: ifort -v >&5
>> Version 12.0.0
>> configure:2471: $? = 0
>> $FC -V >&5
>> configure:2460: ifort -V >&5
>> Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on
>> Intel(R) 64, Version 12.0.0.084 Build 20101006
>> Copyright (C) 1985-2010 Intel Corporation.  All rights reserved.
>>
>> configure:2471: $? = 0
>> $FC -qversion >&5
>> configure:2460: ifort -qversion >&5
>> ifort: command line warning #10006: ignoring unknown option '-qversion'
>> ifort: command line error: no files specified; for help type "ifort -help"
>> configure:2471: $? = 1
>> configure:2486: checking whether the Fortran compiler works
>> configure:2508: ifort -c -O2 -convert big_endian -free -assume
>> byterecl   conftest.f  >&5
>> configure:2512: $? = 0
>> configure:2550: result: no
>> configure: failed program was:
>> |       program main
>> |
>> |       end
>> configure:2555: error: in
>> `/net/orbit272l/home/pub/evemarie/projects/CRTM/autoconf/play/CRTM':
>> configure:2557: error: Fortran compiler cannot create executables
>>
>>
>> First I am not sure why it goes through all those tests to find the
>> version and doesn't stop once one test has been successful but that is
>> probably not part of the problem....
>>
>> I still don't see a conftest...
>>
>> As previously if I use -g only as my FCFLAGS instead of -c -O2 -convert
>> big_endian -free -assume byterecl , configure runs fine but then of
>> course make doesn't....
> Why are you using -c? Don't do this.
>
> Chris
>
>> Any insights would be greatly appreciated,
>> Have a great week-end,
>> Thanks,
>> Cheers,
>> Eve-Marie


From MAILER-DAEMON Tue Jan 18 11:11:37 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PfE9h-0001E0-HK
	for mharc-autoconf@gnu.org; Tue, 18 Jan 2011 11:11:37 -0500
Received: from [140.186.70.92] (port=59375 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PfE7R-0000H1-1n
	for autoconf@gnu.org; Tue, 18 Jan 2011 11:11:35 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <cchgroupmail@gmail.com>) id 1PfE6E-0007tH-CC
	for autoconf@gnu.org; Tue, 18 Jan 2011 11:09:16 -0500
Received: from mail-ew0-f41.google.com ([209.85.215.41]:49391)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <cchgroupmail@gmail.com>) id 1PfE6E-0007t7-2L
	for autoconf@gnu.org; Tue, 18 Jan 2011 11:08:02 -0500
Received: by ewy27 with SMTP id 27so3154234ewy.0
	for <autoconf@gnu.org>; Tue, 18 Jan 2011 08:08:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:cc:content-type;
	bh=XVNdWWsd4gcLWoXL9xi6crOo0z/1oH9xYiBuXtSe0FU=;
	b=L7t1Pm1D3sYyguZDyEsnrw76oS7hVVO6GwupXWCG7nYm/s+XqZOPeJ6gw9YEeDvkR5
	aK643m8Rvuqe1JasOhw9MEaE8cWvb2WKIf1ktBwG9k3ZnFruFPAQyE670kGJhQsHru/Z
	sDabqjZwlHyM+Vuo/qWEmSQhkbL8ZIkzb2Fwg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	b=P8RPEC/n2uCIzL1Al84mqNg4boekWqXNvhOF0JJzbH3+LzG6FNuZJ0TeVxzxkltMsk
	gltKrcb0TpS0Gfkc8r3KjhRrGZYDkESfFjWZqASzYEvI146tg34yAbHmVNMEGCZRx5iW
	aiFdSpHThhR60TgG+TAE28AqTrWHMcJxN6Ia8=
MIME-Version: 1.0
Received: by 10.213.112.131 with SMTP id w3mr5737271ebp.42.1295366880346; Tue,
	18 Jan 2011 08:08:00 -0800 (PST)
Received: by 10.213.32.200 with HTTP; Tue, 18 Jan 2011 08:08:00 -0800 (PST)
In-Reply-To: <4D35A835.3090308@noaa.gov>
References: <4D307ABA.6000607@noaa.gov> <20110114191325.GH16163@gmx.de>
	<4D30C38A.7020604@noaa.gov>
	<AANLkTik-Jz-a69HiuqNnEmRxRMyxLseXUz=14LHwnLgN@mail.gmail.com>
	<4D35A835.3090308@noaa.gov>
Date: Tue, 18 Jan 2011 11:08:00 -0500
Message-ID: <AANLkTin-=J5EkOaUpu1sRg+VNTqsGzFGLOx4PtXmTSEo@mail.gmail.com>
From: Christopher Hulbert <cchgroupmail@gmail.com>
To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
Content-Type: multipart/mixed; boundary=0015174bf1eec1c1ce049a211abf
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: autoconf@gnu.org
Subject: Re: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 18 Jan 2011 16:11:35 -0000

--0015174bf1eec1c1ce049a211abf
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Tue, Jan 18, 2011 at 9:48 AM, Eve-Marie Devaliere
<Eve-Marie.Devaliere@noaa.gov> wrote:
> Good morning,
> Thanks all for your posts....
> I haven't written the package and I am just trying to use autoconf to
> make the install easier...Just to say that I am trying to make sense of
> the package too... :) They are using modules so for each f90 file I need
> a .o and .mod.... the -c -02... flags are the one they were using in
> their initial setup....
> If I get rid of the -c, yes your are right configure runs fine but then
> make crashes on the first program because it is not finding a main... I
> think they mentioned they just want to link the programs.... but it
> still sounds to me like we need a main too (oh yes I am a fortran newbie
> too... ;-} )
> =A0I think what the problem is is that:
> 1. configure doesn't want -c because it wants to test if it can make an
> executable
> 2. the package needs the -c to be setup properly but once the -c is not
> given in configure, we cannot use it there....
>

Here's a pretty minimal example that:
1. makes a libtool convenience library of the module sources
2. links a program using those modules (in the convenience library)

So, if you don't have a main and want just a library of the object
files, change noinst_LTLIBRARIES to lib_LTLIBRARIES. Also, if you do
that, you probaly want to add the module output names (i.e. mod1.mod,
etc.) to something like include_HEADERS so they get installed. I think
at least a lot of fortran compilers look for .mod files with an
include flag (i.e. -I).

[chulbert@fourier f90mod]$ libtoolize
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
[chulbert@fourier f90mod]$ aclocal -I m4
[chulbert@fourier f90mod]$ autoconf
[chulbert@fourier f90mod]$ automake
[chulbert@fourier f90mod]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for gfortran... gfortran
checking whether we are using the GNU Fortran compiler... yes
checking whether gfortran accepts -g... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+=3D"... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking if gfortran supports -c -o file.o... (cached) yes
checking whether the gfortran linker (/usr/bin/ld -m elf_x86_64)
supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
[chulbert@fourier f90mod]$ make
/bin/sh ./libtool --tag=3DFC   --mode=3Dcompile gfortran  -g -O2 -c -o
mod1.lo mod1.f90
libtool: compile:  gfortran -g -O2 -c mod1.f90  -fPIC -o .libs/mod1.o
libtool: compile:  gfortran -g -O2 -c mod1.f90 -o mod1.o >/dev/null 2>&1
/bin/sh ./libtool --tag=3DFC   --mode=3Dcompile gfortran  -g -O2 -c -o
mod2.lo mod2.f90
libtool: compile:  gfortran -g -O2 -c mod2.f90  -fPIC -o .libs/mod2.o
libtool: compile:  gfortran -g -O2 -c mod2.f90 -o mod2.o >/dev/null 2>&1
/bin/sh ./libtool --tag=3DFC   --mode=3Dlink gfortran  -g -O2   -o liba.la
 mod1.lo mod2.lo
libtool: link: ar cru .libs/liba.a .libs/mod1.o .libs/mod2.o
libtool: link: ranlib .libs/liba.a
libtool: link: ( cd ".libs" && rm -f "liba.la" && ln -s "../liba.la" "liba.=
la" )
gfortran  -g -O2 -c -o prog.o prog.f90
/bin/sh ./libtool --tag=3DFC   --mode=3Dlink gfortran  -g -O2   -o prog
prog.o liba.la
libtool: link: gfortran -g -O2 -o prog prog.o   ./.libs/liba.a
[chulbert@fourier f90mod]$ ./prog
   5.09901951359278

Chris

>
> Thanks again so much for your support! You are the men! :)
> Cheers,
> Eve-Marie
>

--0015174bf1eec1c1ce049a211abf
Content-Type: application/x-gzip; name="f90mod.tar.gz"
Content-Disposition: attachment; filename="f90mod.tar.gz"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gj2zxu4m0

H4sIAHu6NU0AA+2XXY+aQBiFveZXzI0JWqIgoOkmvaCoG1JdNohXZkOGDy0pgkXIqr++MwMo2+zG
NHU1276PQV44wwxhOMdx+VlcJ37XS+JluMrToIO9xqURCf2+QvfSQJXqe0ZvIDckSZVUmdJviJLS
V9UGEi9+J6+QbzOcItTwvueRG6TZW+3O6R8UTXeMB8PmF0v2IjwJC7FDPk8tjii6+TA27p2ZpQ8N
i19s0mTVIe1eiFNNt0yH6WuFKlPWoaPNbXOqfRuRnpM0CFcx0ehlj5Z57+j6sRyfyonx1TbNCVfr
fWxMRjN+McU/gmUYBcXI5tx+nNvcrR/dP0Ex7d3qAXfw+vJjnPW/qFb+V1RFpv5XpAH4/xrESRhv
M2diE/NZmmWMZugLikIXdyLMcbRwIuzMzLmlM4m8LBLNAFr0aMFxbhgz/1ralLagKcFx9Lt2WRUd
xfnJUBsOa+Pc+iH8x5T+r6b1XcY453+JmL36/VdE0k6SVUUE/18DMvF5FDBbcwhl+02ANiQSMnKA
kJ/kLhE3aeCF2zCJ0d0d2gloL6AD0YPYZxdwtCj6ASd/NE7+793M/3Ld/1LpfwX8fw1O/u8xy+fb
MgzIP8IMk7UBO7vMYy+jAeCH5HHFXsBjwW0xiUJTgGex0aIRgQXkHrXXMqTq5dSoPEHWBNufacbj
5q7tNnfoE8LNPan2rDqQ6lCMSiOnuinIn7+g9H+1PnuXMc6u/1Xx6P++Stf/bAf+vwJ04lO8Llbt
LwKgdlBEw1su93GGEe4yhZd8UeiRTfbFVvcku6VMTgsK2VQmM/05DbOAbwvt1m/pwnxd3h8YGwAA
AAAAAAAAAAAAAAAA4A/5BVhODdUAKAAA
--0015174bf1eec1c1ce049a211abf--


From MAILER-DAEMON Thu Jan 20 00:27:20 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pfn3I-0006ad-Lz
	for mharc-autoconf@gnu.org; Thu, 20 Jan 2011 00:27:20 -0500
Received: from [140.186.70.92] (port=53122 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pfbu9-0002RB-55
	for autoconf@gnu.org; Wed, 19 Jan 2011 12:33:09 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <spk121@yahoo.com>) id 1Pfbu8-0008Gf-2c
	for autoconf@gnu.org; Wed, 19 Jan 2011 12:33:09 -0500
Received: from web37901.mail.mud.yahoo.com ([209.191.91.163]:35659)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <spk121@yahoo.com>) id 1Pfbu7-0008GS-M9
	for autoconf@gnu.org; Wed, 19 Jan 2011 12:33:08 -0500
Received: (qmail 43563 invoked by uid 60001); 19 Jan 2011 17:26:24 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
	t=1295457984; bh=myRFpCog0Guqx7K5ckf6BEChQBvYVf8pIMS5HBcI9uM=;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type;
	b=XKvGoZMVe7l+qvJrSWgei3qsnZ48NnVVS+57DF0bFfPFos5yIC5XIGB+CwC/YzxHbXfPKs9oiJyceTuLypBhcYIPMwKTir6dzuOlp2BVxt+Su0PijOgsHN7fVeKLgVnuVkieRcGjXSCPplB5uQC6i3N8hsIPyjZsvBWznPXk+uA=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type;
	b=NKkuNiCc8r20LU7nKy4lc6MTFpgTav0k336V1a2afe20XTjACllrCnRjArYdaSHdFnS8dZ5FL7sHckeZwTEsx6eSaM61mNWPYHM0JcFATf1K6kew2L3TGgBmY9dPp9hAEqxHd1GrLuoT73SNQJT0uZgrl9brnP0w1Alo87XoY7s=;
Message-ID: <317031.35398.qm@web37901.mail.mud.yahoo.com>
X-YMail-OSG: wwVOwy8VM1lVEmiSDl91AtI1V_jhtI91zXpzDPXD14Ri_8F
	aM13UvgD0vXX8FwRX1F0DAiQOvRXe9gdhkbOQoFVytDE.4J01Zl42DzXwTF9
	EYPWrh0KKOrHfx8c2mF5Bjc6pNQUNgUvGLLIi1QK4QgoceTk5VV9bBFcCvvJ
	vM8mnsTz2o5sbsq9qwSnXQKB2oALlIkB2jO3BazW20HaH97CMJtfT45dD8p6
	Mg5YEmb0jy_f5UdylTkxrLt7DzCW4N0QTduJ7qlBlNOqPwdj99w0jr2rXRZQ
	dTIfSOQTQOaUorvRZdY59v4v_bU5GEWBecGmg52e_Z9DKl0eOE.jj5OZkNGt
	oI76AGYkFk9ZqEoGoR.eBaOOa.Lj7144JYV8dVjFp_EQ.Yq0erl8Hn3Vh3_G
	JDt0cRUt7Ntet
Received: from [71.130.219.160] by web37901.mail.mud.yahoo.com via HTTP;
	Wed, 19 Jan 2011 09:26:24 PST
X-Mailer: YahooMailWebService/0.8.107.285259
Date: Wed, 19 Jan 2011 09:26:24 -0800 (PST)
From: Mike Gran <spk121@yahoo.com>
To: "autoconf@gnu.org" <autoconf@gnu.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1)
X-Mailman-Approved-At: Thu, 20 Jan 2011 00:27:19 -0500
Subject: Help with path expansion
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Mike Gran <spk121@yahoo.com>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 19 Jan 2011 17:33:10 -0000

Hi-

I have this snippet of autoconf file that generates a warning.

    AC_INIT([blammo],[0.0])

    pkgsitedir="$datadir/$PACKAGE_NAME"

    AC_MSG_WARN([]
       [The modules will be installed in ${pkgsitedir}.])

When I run it, I get the text

    configure: WARNING:
       The modules will be installed in ${datarootdir}/blammo.

Is there a way to have this warning output the full path, e.g.
for it to say something like

       The modules will be installed in /usr/local/share/blammo

(assuming that /usr/local/share/ is datarootdir)

Thanks,

Mike Gran



From MAILER-DAEMON Thu Jan 20 01:44:01 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PfoFV-0006JH-Ec
	for mharc-autoconf@gnu.org; Thu, 20 Jan 2011 01:44:01 -0500
Received: from [140.186.70.92] (port=49016 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PfoFT-0006IK-1S
	for autoconf@gnu.org; Thu, 20 Jan 2011 01:43:59 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PfoFR-0002Mx-Gf
	for autoconf@gnu.org; Thu, 20 Jan 2011 01:43:58 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:33723)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PfoFR-0002MX-43
	for autoconf@gnu.org; Thu, 20 Jan 2011 01:43:57 -0500
Received: (qmail invoked by alias); 20 Jan 2011 06:43:55 -0000
Received: from xdsl-89-0-163-136.netcologne.de (EHLO localhost.localdomain)
	[89.0.163.136]
	by mail.gmx.net (mp021) with SMTP; 20 Jan 2011 07:43:55 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX1/Zr7MlxqHZCy6wQT5BbCGyqlaJ/LM6NOaQN95VZT
	zxfY474MOBTCYi
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1PfoFO-0004FD-Io; Thu, 20 Jan 2011 07:43:54 +0100
Date: Thu, 20 Jan 2011 07:43:54 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: Mike Gran <spk121@yahoo.com>
Message-ID: <20110120064354.GA15571@gmx.de>
Mail-Followup-To: Mike Gran <spk121@yahoo.com>,
	"autoconf@gnu.org" <autoconf@gnu.org>
References: <317031.35398.qm@web37901.mail.mud.yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <317031.35398.qm@web37901.mail.mud.yahoo.com>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
Cc: "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Help with path expansion
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Jan 2011 06:44:00 -0000

* Mike Gran wrote on Wed, Jan 19, 2011 at 06:26:24PM CET:
>     pkgsitedir="$datadir/$PACKAGE_NAME"
>     AC_MSG_WARN([]
>        [The modules will be installed in ${pkgsitedir}.])
> 
> When I run it, I get the text
> 
>     configure: WARNING:
>        The modules will be installed in ${datarootdir}/blammo.
> 
> Is there a way to have this warning output the full path, e.g.
> for it to say something like
> 
>        The modules will be installed in /usr/local/share/blammo

Try

pkgsitedir="$datadir/$PACKAGE_NAME"
eval "expanded_pkgsitedir=\"$pkgsitedir\""
eval "expanded_pkgsitedir=\"$expanded_pkgsitedir\""
AC_MSG_NOTICE([]
   [The modules will be installed in ${expanded_pkgsitedir}.])

but please don't use the expanded value elsewhere; see the FAQ
  info Autoconf "Defining Directories"

and references therein.  Hope that helps.

Cheers,
Ralf


From MAILER-DAEMON Thu Jan 20 01:54:30 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PfoPe-0001H8-7Y
	for mharc-autoconf@gnu.org; Thu, 20 Jan 2011 01:54:30 -0500
Received: from [140.186.70.92] (port=60564 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PfoPa-0001Gm-TP
	for autoconf@gnu.org; Thu, 20 Jan 2011 01:54:27 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <john.calcote@gmail.com>) id 1PfoPX-0004Zi-5z
	for autoconf@gnu.org; Thu, 20 Jan 2011 01:54:26 -0500
Received: from mail-gy0-f169.google.com ([209.85.160.169]:44806)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <john.calcote@gmail.com>) id 1PfoPX-0004ZV-2W
	for autoconf@gnu.org; Thu, 20 Jan 2011 01:54:23 -0500
Received: by gyd10 with SMTP id 10so83915gyd.0
	for <autoconf@gnu.org>; Wed, 19 Jan 2011 22:54:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:message-id:date:from:user-agent:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding;
	bh=dSDj9IvcXnvTHLoAzhYUeQo95PS5yI3GQxk6Vl2VBPg=;
	b=mLrFYCSzEyC6LSo7s27cuSENrLlDMGgK/XYONXJHm+6uJNBHHH89l3XiaUeqKQBU5+
	/+KoBTKJnSyU5gwMUSKXPuyy94Z/AHCYpNEP4ZvEiz9hkiI1JJvdmHVZTiVjWvGYzjFj
	MmAF0w4IIVQhfl3VhJ/fO7sd6iyvWlgZ90mms=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:user-agent:mime-version:to:subject:references
	:in-reply-to:content-type:content-transfer-encoding;
	b=b5r+FnXpOLWqDn1DPdvOZgNDxKKv0l03M2mexuFM2QJyGzhvRKHOyNqOh6hVCif0Oh
	vDYJ8bE4ZgTBTeXCU0syc7rGWKNhL6H5pyZRg24192N9vN8j/FHek2j0hbrbzKnXTvAN
	mexmuszDkHQ5x+aYw+NO/cl8g/+rU8Ca/gBgo=
Received: by 10.90.37.28 with SMTP id k28mr2130601agk.53.1295506461801;
	Wed, 19 Jan 2011 22:54:21 -0800 (PST)
Received: from [10.10.16.119] ([64.244.102.2])
	by mx.google.com with ESMTPS id w4sm9555942anw.36.2011.01.19.22.54.19
	(version=SSLv3 cipher=RC4-MD5); Wed, 19 Jan 2011 22:54:20 -0800 (PST)
Message-ID: <4D37DC1A.4080509@gmail.com>
Date: Wed, 19 Jan 2011 23:54:18 -0700
From: John Calcote <john.calcote@gmail.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7
MIME-Version: 1.0
To: Mike Gran <spk121@yahoo.com>, "autoconf@gnu.org" <autoconf@gnu.org>
References: <317031.35398.qm@web37901.mail.mud.yahoo.com>
	<20110120064354.GA15571@gmx.de>
In-Reply-To: <20110120064354.GA15571@gmx.de>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: 
Subject: Re: Help with path expansion
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Jan 2011 06:54:28 -0000

Mike,

On 01/19/2011 11:43 PM, Ralf Wildenhues wrote:
> * Mike Gran wrote on Wed, Jan 19, 2011 at 06:26:24PM CET:
>>     pkgsitedir="$datadir/$PACKAGE_NAME"
>>     AC_MSG_WARN([]
>>        [The modules will be installed in ${pkgsitedir}.])
>>
>> When I run it, I get the text
>>
>>     configure: WARNING:
>>        The modules will be installed in ${datarootdir}/blammo.
>>
>> Is there a way to have this warning output the full path, e.g.
>> for it to say something like
>>
>>        The modules will be installed in /usr/local/share/blammo
> Try
>
> pkgsitedir="$datadir/$PACKAGE_NAME"
> eval "expanded_pkgsitedir=\"$pkgsitedir\""
> eval "expanded_pkgsitedir=\"$expanded_pkgsitedir\""
> AC_MSG_NOTICE([]
>    [The modules will be installed in ${expanded_pkgsitedir}.])
>
> but please don't use the expanded value elsewhere; see the FAQ
>   info Autoconf "Defining Directories"
>
> and references therein.  Hope that helps.
>

I was answering when Ralf's answer came though, so I thought I'd comment
on his solution (which was pretty close to mine anyway). While this
method works, it does have it's problems.

First of all, you need to know how many levels to expand as you're
writing the code in configure.ac.

Second, you should consider that you're being more accurate when you
tell the user they're installing into ${datarootdir}/blammo. The reason
is that the user still has the option of changing the value of
${datarootdir} on the make install command line, which would override
the hard-coded path you want to display from configure:

  $ make datarootdir=/usr/share install

Perhaps a better message would be:

configure: WARNING:
  The modules will be installed by default in /usr/local/share/blammo
(${datarootdir}/blammo).

Regards,
John



From MAILER-DAEMON Thu Jan 20 13:46:15 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PfzWR-0004aI-Ao
	for mharc-autoconf@gnu.org; Thu, 20 Jan 2011 13:46:15 -0500
Received: from [140.186.70.92] (port=55603 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PfzWO-0004XX-La
	for autoconf@gnu.org; Thu, 20 Jan 2011 13:46:14 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=9940394fc=jeff.daily@pnl.gov>)
	id 1PfzWN-0004Jw-Et
	for autoconf@gnu.org; Thu, 20 Jan 2011 13:46:12 -0500
Received: from emailgw03.pnl.gov ([192.101.109.31]:9850)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=9940394fc=jeff.daily@pnl.gov>)
	id 1PfzWN-0004Ie-9x
	for autoconf@gnu.org; Thu, 20 Jan 2011 13:46:11 -0500
X-IronPort-AV: E=Sophos;i="4.60,352,1291622400"; d="scan'208";a="36985962"
Received: from emailhub01.pnl.gov ([130.20.251.61])
	by emailgw03.pnl.gov with ESMTP/TLS/AES128-SHA;
	20 Jan 2011 10:46:08 -0800
Received: from Email05.pnl.gov ([130.20.251.69]) by emailhub01.pnl.gov
	([130.20.251.61]) with mapi; Thu, 20 Jan 2011 10:46:07 -0800
From: "Daily, Jeff A" <jeff.daily@pnl.gov>
To: "autoconf@gnu.org" <autoconf@gnu.org>
Date: Thu, 20 Jan 2011 10:46:06 -0800
Thread-Topic: linking to Fortran libraries from C fails with suncc and sunf90
Thread-Index: Acu40kuWBO6Y4G4+QRuNhbhnahnYXA==
Message-ID: <F0F90F8B4D282340A6D984CE8FA7A0A701234BC276CB@EMAIL05.pnl.gov>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Subject: linking to Fortran libraries from C fails with suncc and sunf90
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Jan 2011 18:46:14 -0000

I wanted to discuss this before reporting as a bug in case I'm doing someth=
ing wrong.

I had a user request support for Oracle Solaris Studio compilers, so I inst=
alled them to try them out.  I downloaded the latest 12.2 and installed it =
to /opt/oracle/solstudio12.2 on my x86_64 RHEL5 workstation.  The compilers=
 I used are suncc, sunCC and sunf90 for the C, C++ and Fortran 90 compilers=
, respectively.

Our software is a mostly C, with some Fortran and a C++ binding.  We use AC=
_F77_LIBRARY_LDFLAGS.  configure fails with "linking to Fortran libraries f=
rom C fails" because " /usr/bin/ld: cannot find -lmtsk".  The result of the=
 AC_F77_LIBRARY_LDFLAGS test appears at the end of this email.  The library=
 is located in /opt/oracle/solstudio12.2/prod/lib/compilers/rtlibs/usr/lib/=
amd64 which is found in the -Y argument in the verbose linking output:
-Y "/opt/oracle/solstudio12.2/prod/lib/compilers/rtlibs/usr/lib/amd64:/opt/=
oracle/solstudio12.2/lib/amd64:/opt/oracle/solstudio12.2/prod/lib/amd64:/li=
b64:/usr/lib64"

The man page for /usr/bin/ld claims -Y is supported for Solaris compatibili=
ty, so why is it not parsed out into FLIBS?



config.log for AC_F77_LIBRARY_LDFLAGS:

configure:13457: checking for Fortran 77 libraries of sunf90
configure:13480: sunf90 -o conftest -v conftest.f -lm
### f90: Note: NLSPATH =3D /opt/oracle/solstudio12.2/prod/bin/../lib/locale=
/%L/LC_MESSAGES/%N.cat:/opt/oracle/solstudio12.2/prod/bin/../../lib/locale/=
%L/LC_MESSAGES/%N.cat
###     command line files and options (expanded):
### -o conftest -v conftest.f -lm
/opt/oracle/solstudio12.2/prod/bin/f90comp -m3 -ev -dq -xall -xivdep=3Dloop=
 -H "/opt/oracle/solstudio12.2/prod/bin/f90 -v -lm " -I/opt/oracle/solstudi=
o12.2/prod/include/f95/amd64 -p/opt/oracle/solstudio12.2/prod/lib/modules/a=
md64 -xarch=3Damd64 -y-xarch=3Damd64 -xmemalign=3D1i -iorounding=3Dprocesso=
r-defined -xhasc=3Dyes -xcache=3Dgeneric -y-xcache=3Dgeneric -y-xassume_con=
trol=3Doptimize -xassume_control=3Doptimize -fstore -y-xdbggen=3Dno%stabs+d=
warf2 -y-xdbggen=3Dincl -y-fbe -y/opt/oracle/solstudio12.2/prod/bin/fbe -y-=
fsr=3D34 -y-verbose -y-comdat -y-xarch=3Damd64 -y-comdat -y-xthreadvar=3Dno=
%dynamic -y-o -yconftest.o -y-s conftest.f
/opt/oracle/solstudio12.2/prod/bin/fbe -s -o conftest.o -xarch=3Damd64 -xmo=
del=3Dsmall -warn=3D%none -Qy /tmp/yabekxuSWF=20
rm /tmp/yabekxuSWF
### f90: Note: LD_LIBRARY_PATH =3D /home/d3n000/ga/openmpi-1.4.3-amd/local/=
lib:/home/d3n000/ga/local/lib:/home/d3n000/ga/ga-dev/bld_openmpi_shared/lib
### f90: Note: LD_LIBRARY_PATH_64 =3D (null)
### f90: Note: LD_RUN_PATH     =3D (null)
### f90: Note: LD_OPTIONS      =3D (null)
/usr/bin/ld --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x8=
6-64.so.2 --enable-new-dtags /opt/oracle/solstudio12.2/prod/lib/amd64/crti.=
o /opt/oracle/solstudio12.2/prod/lib/amd64/crt1x.o /opt/oracle/solstudio12.=
2/prod/lib/amd64/values-xi.o conftest.o -lm -o conftest -Y "/opt/oracle/sol=
studio12.2/prod/lib/compilers/rtlibs/usr/lib/amd64:/opt/oracle/solstudio12.=
2/lib/amd64:/opt/oracle/solstudio12.2/prod/lib/amd64:/lib64:/usr/lib64" -Qy=
 "-R/opt/oracle/solstudio12.2/prod/lib/compilers/rtlibs/usr/lib/amd64:/opt/=
oracle/solstudio12.2/lib/amd64" -lfai -lfui -lfsu -lsunquad -lmtsk -lpthrea=
d -lm -lc /opt/oracle/solstudio12.2/prod/lib/amd64/libc_supp.a /opt/oracle/=
solstudio12.2/prod/lib/amd64/crtn.o
rm conftest.o
configure:13654: result:  -lm -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread =
/opt/oracle/solstudio12.2/prod/lib/amd64/libc_supp.a


From MAILER-DAEMON Thu Jan 20 14:05:39 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PfzpD-0004CV-0d
	for mharc-autoconf@gnu.org; Thu, 20 Jan 2011 14:05:39 -0500
Received: from [140.186.70.92] (port=38502 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PfzpA-0004AF-R4
	for autoconf@gnu.org; Thu, 20 Jan 2011 14:05:38 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1Pfzp9-0001DZ-Pb
	for autoconf@gnu.org; Thu, 20 Jan 2011 14:05:36 -0500
Received: from mailout-de.gmx.net ([213.165.64.22]:51854)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1Pfzp9-0001DN-Em
	for autoconf@gnu.org; Thu, 20 Jan 2011 14:05:35 -0500
Received: (qmail invoked by alias); 20 Jan 2011 19:05:33 -0000
Received: from xdsl-89-0-99-113.netcologne.de (EHLO localhost.localdomain)
	[89.0.99.113]
	by mail.gmx.net (mp068) with SMTP; 20 Jan 2011 20:05:33 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX1+Em3IgQL+Ea8bumfuKreu+Ji7/mak24WAGVJsHBx
	gYRspAL+PSMGd9
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1Pfzp7-0005jo-4z; Thu, 20 Jan 2011 20:05:33 +0100
Date: Thu, 20 Jan 2011 20:05:33 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: "Daily, Jeff A" <jeff.daily@pnl.gov>
Message-ID: <20110120190532.GF21455@gmx.de>
Mail-Followup-To: "Daily, Jeff A" <jeff.daily@pnl.gov>,
	"autoconf@gnu.org" <autoconf@gnu.org>
References: <F0F90F8B4D282340A6D984CE8FA7A0A701234BC276CB@EMAIL05.pnl.gov>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <F0F90F8B4D282340A6D984CE8FA7A0A701234BC276CB@EMAIL05.pnl.gov>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: linking to Fortran libraries from C fails with suncc and sunf90
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Jan 2011 19:05:38 -0000

Hi Jeff,

thanks for the bug report.

* Daily, Jeff A wrote on Thu, Jan 20, 2011 at 07:46:06PM CET:
> Our software is a mostly C, with some Fortran and a C++ binding.  We
> use AC_F77_LIBRARY_LDFLAGS.  configure fails with "linking to Fortran
> libraries from C fails" because " /usr/bin/ld: cannot find -lmtsk".
> The result of the AC_F77_LIBRARY_LDFLAGS test appears at the end of
> this email.  The library is located in
> /opt/oracle/solstudio12.2/prod/lib/compilers/rtlibs/usr/lib/amd64
> which is found in the -Y argument in the verbose linking output:
> -Y "/opt/oracle/solstudio12.2/prod/lib/compilers/rtlibs/usr/lib/amd64:/opt/oracle/solstudio12.2/lib/amd64:/opt/oracle/solstudio12.2/prod/lib/amd64:/lib64:/usr/lib64"

The _AC_FC_LIBRARY_LDFLAGS macro in fortran.m4 should probably treat
-Y like it does -YP, changing it to -L in the process.

Can you submit a patch (to the -patches list)?  You're in the best
position to test it.  Can you also try to ensure that one of the
Autoconf testsuite Fortran tests exposes this if $F77, $FFLAGS and/or
$FC, $FCFLAGS are suitably set in the environment so this library is
pulled in?  In git master, the Fortran tests are
  make check TESTSUITEFLAGS='303-329'

(we should probably use AT_KEYWORDS a bit more).

If you need help, feel free to report back with what you have.

Thanks,
Ralf


From MAILER-DAEMON Thu Jan 20 15:58:17 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pg1aD-0000Md-Ak
	for mharc-autoconf@gnu.org; Thu, 20 Jan 2011 15:58:17 -0500
Received: from [140.186.70.92] (port=51197 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pg1aA-0000KX-Bo
	for autoconf@gnu.org; Thu, 20 Jan 2011 15:58:15 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=9940394fc=jeff.daily@pnl.gov>)
	id 1Pg1a8-0003ni-Fd
	for autoconf@gnu.org; Thu, 20 Jan 2011 15:58:14 -0500
Received: from emailgw03.pnl.gov ([192.101.109.31]:23241)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=9940394fc=jeff.daily@pnl.gov>)
	id 1Pg1a8-0003nM-B3
	for autoconf@gnu.org; Thu, 20 Jan 2011 15:58:12 -0500
X-IronPort-AV: E=Sophos;i="4.60,353,1291622400"; d="scan'208";a="36999938"
Received: from emailhub02.pnl.gov ([130.20.251.62])
	by emailgw03.pnl.gov with ESMTP/TLS/AES128-SHA;
	20 Jan 2011 12:58:10 -0800
Received: from Email05.pnl.gov ([130.20.251.69]) by emailhub02.pnl.gov
	([130.20.251.62]) with mapi; Thu, 20 Jan 2011 12:57:44 -0800
From: "Daily, Jeff A" <jeff.daily@pnl.gov>
To: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Thu, 20 Jan 2011 12:58:08 -0800
Thread-Topic: linking to Fortran libraries from C fails with suncc and sunf90
Thread-Index: Acu41QU2BQJ7rdiuS1KRIuhtvEc/pwADwomg
Message-ID: <F0F90F8B4D282340A6D984CE8FA7A0A701234BC2777F@EMAIL05.pnl.gov>
References: <F0F90F8B4D282340A6D984CE8FA7A0A701234BC276CB@EMAIL05.pnl.gov>
	<20110120190532.GF21455@gmx.de>
In-Reply-To: <20110120190532.GF21455@gmx.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: "autoconf@gnu.org" <autoconf@gnu.org>
Subject: RE: linking to Fortran libraries from C fails with suncc and sunf90
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Jan 2011 20:58:15 -0000

> Hi Jeff,
>=20
> thanks for the bug report.
>=20
> * Daily, Jeff A wrote on Thu, Jan 20, 2011 at 07:46:06PM CET:
> > Our software is a mostly C, with some Fortran and a C++ binding.  We
> > use AC_F77_LIBRARY_LDFLAGS.  configure fails with "linking to Fortran
> > libraries from C fails" because " /usr/bin/ld: cannot find -lmtsk".
> > The result of the AC_F77_LIBRARY_LDFLAGS test appears at the end of
> > this email.  The library is located in
> > /opt/oracle/solstudio12.2/prod/lib/compilers/rtlibs/usr/lib/amd64
> > which is found in the -Y argument in the verbose linking output:
> > -Y
> "/opt/oracle/solstudio12.2/prod/lib/compilers/rtlibs/usr/lib/amd64:/opt
> /oracle/solstudio12.2/lib/amd64:/opt/oracle/solstudio12.2/prod/lib/amd6
> 4:/lib64:/usr/lib64"
>=20
> The _AC_FC_LIBRARY_LDFLAGS macro in fortran.m4 should probably treat
> -Y like it does -YP, changing it to -L in the process.
>=20
> Can you submit a patch (to the -patches list)?  You're in the best
> position to test it.  Can you also try to ensure that one of the
> Autoconf testsuite Fortran tests exposes this if $F77, $FFLAGS and/or
> $FC, $FCFLAGS are suitably set in the environment so this library is
> pulled in?  In git master, the Fortran tests are
>   make check TESTSUITEFLAGS=3D'303-329'
>=20
> (we should probably use AT_KEYWORDS a bit more).
>=20
> If you need help, feel free to report back with what you have.

Need help.  I finally installed git with http support after installing the =
latest curl.  I'm getting the following:

[]$ git clone http://git.sv.gnu.org/r/autoconf.git
Cloning into autoconf...
fatal: protocol error: bad line length character: <!DO
fatal: The remote end hung up unexpectedly

I read the git faq on this https://git.wiki.kernel.org/index.php/GitFaq#pro=
tocol_error:_bad_line_length_character but I get back "testing commands" ju=
st fine.


From MAILER-DAEMON Fri Jan 21 19:39:24 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PgRVk-0007oT-7n
	for mharc-autoconf@gnu.org; Fri, 21 Jan 2011 19:39:24 -0500
Received: from [140.186.70.92] (port=38581 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PgRVi-0007o0-7b
	for autoconf@gnu.org; Fri, 21 Jan 2011 19:39:22 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1PgRVg-0004xc-BT
	for autoconf@gnu.org; Fri, 21 Jan 2011 19:39:22 -0500
Received: from mail-wy0-f169.google.com ([74.125.82.169]:59087)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1PgRVg-0004xG-7A
	for autoconf@gnu.org; Fri, 21 Jan 2011 19:39:20 -0500
Received: by wyj26 with SMTP id 26so2629806wyj.0
	for <autoconf@gnu.org>; Fri, 21 Jan 2011 16:39:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:from:date:message-id:subject:to
	:content-type:content-transfer-encoding;
	bh=EtrPn0Xcoo5NaqoXONTvxHHg8FOrmffs5Hd4Ka/sXb4=;
	b=BKSYoz2SjL5vxK32YglC6LnXnLuNlmfd6Mo30RXJRPMp+RzG3AdXpuamwG3PGEUkSx
	JD027XKv/iM0cO16+d6+sxLb9yioN1HfIBpIZWnkpy8WxkutrPM4KEorYPa1hlf5JsyR
	bLI5BMeFCtas2HTWQFo6gBlzZG77IMSQ10YI8=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:from:date:message-id:subject:to:content-type
	:content-transfer-encoding;
	b=mD7YBM628sd3mXFq04/5HSpf9s4RUdbMXYNlwiAVuPgGToWKKENDDsVjxuLtjfFdb7
	p8KifRAu3w5feGv4n4A5LKBkSEP4nFi1OgYd2U9ZunljkbA7fmSKmvwZVC63WbHyzTjs
	dD+R3s9V18czN79W9yaDDeiMZ2q7+s51a+Elk=
Received: by 10.216.82.68 with SMTP id n46mr1222685wee.90.1295656757043; Fri,
	21 Jan 2011 16:39:17 -0800 (PST)
MIME-Version: 1.0
Received: by 10.216.154.144 with HTTP; Fri, 21 Jan 2011 16:38:56 -0800 (PST)
From: Sergio Belkin <sebelk@gmail.com>
Date: Fri, 21 Jan 2011 21:38:56 -0300
Message-ID: <AANLkTimOrjnPEktVVsGvuovJ+WQ-kS--s0VSx5e46X_F@mail.gmail.com>
To: autoconf@gnu.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: Override default CXXFLAGS
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 22 Jan 2011 00:39:23 -0000

Hi,

Let's say we'd want to compile with CXXFLAGS=3D-O3. The problem is that
is set in some way as -O2. I've overriden CXXFLAGS on configura.ac
setting:

CXXFLAGS=3D"-O3 ${CXXFLAGS}"

But I wonder if that is the proper way of do it!

I'm using Fedora 14.

Any idea?

Thanks in advance!

--=20
--
Sergio Belkin =A0http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
LPIC-2 Certified


From MAILER-DAEMON Fri Jan 21 21:51:08 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PgTZE-0000Q1-Gr
	for mharc-autoconf@gnu.org; Fri, 21 Jan 2011 21:51:08 -0500
Received: from [140.186.70.92] (port=38034 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PgTZ5-0000Na-E3
	for autoconf@gnu.org; Fri, 21 Jan 2011 21:51:07 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1PgTYx-0003aw-QK
	for autoconf@gnu.org; Fri, 21 Jan 2011 21:50:59 -0500
Received: from mail-wy0-f169.google.com ([74.125.82.169]:60313)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1PgTYx-0003aZ-Ld
	for autoconf@gnu.org; Fri, 21 Jan 2011 21:50:51 -0500
Received: by wyj26 with SMTP id 26so2698129wyj.0
	for <autoconf@gnu.org>; Fri, 21 Jan 2011 18:50:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:content-type:content-transfer-encoding;
	bh=CUxqpurpXPu6uZbNCy3tr+J84pmh4VSC3uvVl0OOPzw=;
	b=EC2zgdzGq39cbC2QKqAWhyx3/GTIBQ4u7aAyO+xtghruU6Ysocbsdy0EPPJ8QDPMJC
	ggrCbOO6gcKe/pnc1oeZaTDc9+W+BOKSNW3qhB7cDLcEjC5HEbKgdRZVwZS/TDXCL7PB
	2Gme0yITJH6ALsxN17Q0uzxBW2mczejL56sGg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:content-type:content-transfer-encoding;
	b=oDsBlKKmVa/MW9zGvB6b9c9pxZuA/OJ0kTdpeCezdTprb4g5/4wUpgwouFBjb1wkar
	rgYllVGRG8Xf767pAhjzzbA3G8zkOmS2Elb/G7J3q2nsztuM8kMOKWruqnriXrucRfaS
	t/E3Ell1Hl99Lg6owdfFOQpG9hNh160Er2JdY=
Received: by 10.216.27.202 with SMTP id e52mr1321831wea.75.1295664650235; Fri,
	21 Jan 2011 18:50:50 -0800 (PST)
MIME-Version: 1.0
Received: by 10.216.154.144 with HTTP; Fri, 21 Jan 2011 18:50:30 -0800 (PST)
In-Reply-To: <AANLkTimOrjnPEktVVsGvuovJ+WQ-kS--s0VSx5e46X_F@mail.gmail.com>
References: <AANLkTimOrjnPEktVVsGvuovJ+WQ-kS--s0VSx5e46X_F@mail.gmail.com>
From: Sergio Belkin <sebelk@gmail.com>
Date: Fri, 21 Jan 2011 23:50:30 -0300
Message-ID: <AANLkTi=bwHcR1cFGHR7BEHEgs7QZCR2cSzudu3TOkS=X@mail.gmail.com>
To: autoconf@gnu.org
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: Re: Override default CXXFLAGS
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 22 Jan 2011 02:51:07 -0000

I answer myself: RTMF :)

"If using the GNU C compiler, set shell variable GCC to =91yes=92. If
output variable CFLAGS was not already set, set it to -g -O2 for the
GNU C compiler (-O2 on systems where GCC does not accept -g), or -g
for other compilers. If your package does not like this default, then
it is acceptable to insert the line =91: ${CFLAGS=3D""}=92 after AC_INIT an=
d
before AC_PROG_CC to select an empty default instead. "

http://www.gnu.org/software/hello/manual/autoconf/C-Compiler.html

HTH

2011/1/21 Sergio Belkin <sebelk@gmail.com>:
> Hi,
>
> Let's say we'd want to compile with CXXFLAGS=3D-O3. The problem is that
> is set in some way as -O2. I've overriden CXXFLAGS on configura.ac
> setting:
>
> CXXFLAGS=3D"-O3 ${CXXFLAGS}"
>
> But I wonder if that is the proper way of do it!
>
> I'm using Fedora 14.
>
> Any idea?
>
> Thanks in advance!
>
> --
> --
> Sergio Belkin =A0http://www.sergiobelkin.com
> Watch More TV http://sebelk.blogspot.com
> LPIC-2 Certified
>



--=20
--
Sergio Belkin =A0http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
LPIC-2 Certified


From MAILER-DAEMON Sat Jan 22 05:16:43 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PgaWR-0004U7-8V
	for mharc-autoconf@gnu.org; Sat, 22 Jan 2011 05:16:43 -0500
Received: from [140.186.70.92] (port=38698 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PgaWO-0004RS-EE
	for autoconf@gnu.org; Sat, 22 Jan 2011 05:16:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rc040203@freenet.de>) id 1PgaWN-0000Sj-Ii
	for autoconf@gnu.org; Sat, 22 Jan 2011 05:16:40 -0500
Received: from mout2.freenet.de ([195.4.92.92]:34399)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rc040203@freenet.de>) id 1PgaWN-0000ST-Dj
	for autoconf@gnu.org; Sat, 22 Jan 2011 05:16:39 -0500
Received: from [195.4.92.19] (helo=9.mx.freenet.de)
	by mout2.freenet.de with esmtpa (ID ralf.corsepius@freenet.de) (port
	25) (Exim 4.72 #3)
	id 1PgaWL-0005OO-CQ; Sat, 22 Jan 2011 11:16:37 +0100
Received: from hsi-kbw-078-043-068-041.hsi4.kabel-badenwuerttemberg.de
	([78.43.68.41]:63627 helo=[192.168.1.104])
	by 9.mx.freenet.de with esmtpsa (ID ralf.corsepius@freenet.de)
	(TLSv1:CAMELLIA256-SHA:256) (port 587) (Exim 4.72 #3)
	id 1PgaWL-0003QZ-79; Sat, 22 Jan 2011 11:16:37 +0100
Message-ID: <4D3AAE82.6060005@freenet.de>
Date: Sat, 22 Jan 2011 11:16:34 +0100
From: Ralf Corsepius <rc040203@freenet.de>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14
	Thunderbird/3.1.7
MIME-Version: 1.0
To: Sergio Belkin <sebelk@gmail.com>
References: <AANLkTimOrjnPEktVVsGvuovJ+WQ-kS--s0VSx5e46X_F@mail.gmail.com>
	<AANLkTi=bwHcR1cFGHR7BEHEgs7QZCR2cSzudu3TOkS=X@mail.gmail.com>
In-Reply-To: <AANLkTi=bwHcR1cFGHR7BEHEgs7QZCR2cSzudu3TOkS=X@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: autoconf@gnu.org
Subject: Re: Override default CXXFLAGS
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 22 Jan 2011 10:16:41 -0000

On 01/22/2011 03:50 AM, Sergio Belkin wrote:
> I answer myself: RTMF :)
>
> "If using the GNU C compiler, set shell variable GCC to ‘yes’. If
> output variable CFLAGS was not already set, set it to -g -O2 for the
> GNU C compiler (-O2 on systems where GCC does not accept -g), or -g
> for other compilers. If your package does not like this default, then
> it is acceptable to insert the line ‘: ${CFLAGS=""}’ after AC_INIT and
> before AC_PROG_CC to select an empty default instead. "

That's only half of the story ("-O2 -g is gcc-specific").

CXXFLAGS needs to stay overridable from the configure command-line 
(configure CXXFLAGS="..." and from the envirionment
(CXXFLAGS="..." configure).

Ralf


From MAILER-DAEMON Sat Jan 22 07:15:00 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PgcMu-0007Y2-Na
	for mharc-autoconf@gnu.org; Sat, 22 Jan 2011 07:15:00 -0500
Received: from [140.186.70.92] (port=45002 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PgcMs-0007Wa-8x
	for autoconf@gnu.org; Sat, 22 Jan 2011 07:14:59 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <richardashaudacity@googlemail.com>)
	id 1PgcMr-0003ka-4C
	for autoconf@gnu.org; Sat, 22 Jan 2011 07:14:58 -0500
Received: from mail-wy0-f169.google.com ([74.125.82.169]:33708)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <richardashaudacity@googlemail.com>)
	id 1PgcMq-0003k7-VE
	for autoconf@gnu.org; Sat, 22 Jan 2011 07:14:57 -0500
Received: by wyj26 with SMTP id 26so2942038wyj.0
	for <autoconf@gnu.org>; Sat, 22 Jan 2011 04:14:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:sender:subject:from:to:in-reply-to:references
	:content-type:organization:date:message-id:mime-version:x-mailer
	:content-transfer-encoding;
	bh=2T0VXhOpW9yXN2NWroyriemjTVgtZEjVYsSUUMsW7+Q=;
	b=QFeV8PWeDm+6tVS6h7HkvGPHK+lmq2CEM4vSqEVEWUx6CI4H8wAvkk1P71cnKc7TxR
	M43tYSS4Er/E8GYHSFEckfjSFMo56v/p1XQcuJyTHuftntMm3EybCBwodU/JFSlZf5B5
	rzlI9F935EFOgAgClvu7cXyqbNSyicjAZuk9U=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=sender:subject:from:to:in-reply-to:references:content-type
	:organization:date:message-id:mime-version:x-mailer
	:content-transfer-encoding;
	b=W37C6FhxV9jS4J/DOYa/mcLN9zACVZDNhnwLm7j1qBOoUCsdT0c5qNKmsqKs8GHDPr
	jBkceduDcZQ9r9t4OKPxkl5ctJjzD2a0Z14Na+q4ByhGxyvxRqAu5AGG7uFZlnmXgjOP
	WpTA82RStCjmvPm+scDj2b5y3q5gKZ00Ac2XU=
Received: by 10.227.72.203 with SMTP id n11mr2046017wbj.93.1295698495468;
	Sat, 22 Jan 2011 04:14:55 -0800 (PST)
Received: from [192.168.0.32] (cpc4-brmb7-2-0-cust878.1-3.cable.virginmedia.com
	[81.96.99.111])
	by mx.google.com with ESMTPS id b19sm901606wbd.13.2011.01.22.04.14.54
	(version=SSLv3 cipher=RC4-MD5); Sat, 22 Jan 2011 04:14:54 -0800 (PST)
Sender: Richard Ash <richardashaudacity@googlemail.com>
From: Richard Ash <richard@audacityteam.org>
To: autoconf@gnu.org
In-Reply-To: <4D3AAE82.6060005@freenet.de>
References: <AANLkTimOrjnPEktVVsGvuovJ+WQ-kS--s0VSx5e46X_F@mail.gmail.com>
	<AANLkTi=bwHcR1cFGHR7BEHEgs7QZCR2cSzudu3TOkS=X@mail.gmail.com>
	<4D3AAE82.6060005@freenet.de>
Content-Type: text/plain; charset="UTF-8"
Organization: Audacity
Date: Sat, 22 Jan 2011 12:14:48 +0000
Message-ID: <1295698488.5864.4.camel@greenfield>
Mime-Version: 1.0
X-Mailer: Evolution 2.30.2
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: Re: Override default CXXFLAGS
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 22 Jan 2011 12:14:59 -0000

On Sat, 2011-01-22 at 11:16 +0100, Ralf Corsepius wrote:
> On 01/22/2011 03:50 AM, Sergio Belkin wrote:
> > I answer myself: RTMF :)
> >
> > "If using the GNU C compiler, set shell variable GCC to ‘yes’. If
> > output variable CFLAGS was not already set, set it to -g -O2 for the
> > GNU C compiler (-O2 on systems where GCC does not accept -g), or -g
> > for other compilers. If your package does not like this default, then
> > it is acceptable to insert the line ‘: ${CFLAGS=""}’ after AC_INIT and
> > before AC_PROG_CC to select an empty default instead. "
> 
> That's only half of the story ("-O2 -g is gcc-specific").
> 
> CXXFLAGS needs to stay overridable from the configure command-line 
> (configure CXXFLAGS="..." and from the envirionment
> (CXXFLAGS="..." configure).

A lot of packages seem to do this

cflags_save="$CFLAGS"
AC_PROG_CC
CFLAGS="$cflags_save"

and ditto for CXXFLAGS, CPPFLAGS as appropriate. Doesn't seem to cause
problems, although pathalogically, if you had a C compiler that required
an flag to work at all, then it would break that case.

This allows CFLAGS from the environment through bug suppresses the -O2
-g from the macro (in the case I use it, there is a separate --debug
option which adds -g back in if the other libraries are built to work
with it).

Richard



From MAILER-DAEMON Sun Jan 23 04:24:54 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PgwBq-0005iA-9T
	for mharc-autoconf@gnu.org; Sun, 23 Jan 2011 04:24:54 -0500
Received: from [140.186.70.92] (port=40879 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PgDXW-0005gH-Os
	for autoconf@gnu.org; Fri, 21 Jan 2011 04:44:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <aaliya.zarrin@gmail.com>) id 1PgDXV-0002Ii-R7
	for autoconf@gnu.org; Fri, 21 Jan 2011 04:44:18 -0500
Received: from mail-yi0-f41.google.com ([209.85.218.41]:64760)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aaliya.zarrin@gmail.com>) id 1PgDXV-0002IY-Jz
	for autoconf@gnu.org; Fri, 21 Jan 2011 04:44:17 -0500
Received: by yia25 with SMTP id 25so527396yia.0
	for <autoconf@gnu.org>; Fri, 21 Jan 2011 01:44:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:date:message-id:subject:from:to
	:content-type; bh=XFh8eYJB0jcNpb+VuOD7KKBa0bKAVBD2G2i2hDQ7DX4=;
	b=HCklv09z0njgRaky1dF0MoTn+oZYoiyhZiRU6rpuRuEFvcsZVLceT/PrAKOzHejqW3
	n74UQqXHKqf/3cb6czApzTfZX6hMUTgJwG78iZxs2i2d7+hSgk+XzdwR5nX2WaAT3m2y
	5INL4KwuOSUC8IPB0TvL4zi5stl/2a++I7ho8=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	b=QS9y8Dh/8YKxrDU8U0lxBTF0zln1Q1a9k2j1LlCXeeik/mHZP3OxpzBO/h2MV8SxzR
	VO1AJQCkT8SjOd0m6pRkdnJT+01WupaiGlK0I7gXEWCM2zqm5vX90fGC7Dq15bGnj46P
	/6MkXR9GoJZ8mwKACQRCBvVvoq8rqTbQwGR9s=
MIME-Version: 1.0
Received: by 10.101.29.16 with SMTP id g16mr323057anj.106.1295603056310; Fri,
	21 Jan 2011 01:44:16 -0800 (PST)
Received: by 10.100.131.9 with HTTP; Fri, 21 Jan 2011 01:44:16 -0800 (PST)
Date: Fri, 21 Jan 2011 15:14:16 +0530
Message-ID: <AANLkTi=eTH6tM7J6qQ_q=V-OB_P0MSOf9uXQ3jy8E0o3@mail.gmail.com>
From: aaliya zarrin <aaliya.zarrin@gmail.com>
To: autoconf@gnu.org
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Mailman-Approved-At: Sun, 23 Jan 2011 04:24:52 -0500
Content-Type: text/plain; charset=ISO-8859-1
X-Content-Filtered-By: Mailman/MimeDel 2.1.5
Subject: Configure Fail
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 21 Jan 2011 09:44:20 -0000

Hi,

While compiling memcached I am getting the following error.

"cannot run test program while cross compiling"
It is unable to set few cache variable values. such as endianness.
What is the solution, can anybody help ?

-- 
Thanks & Regards,

Aaliya Zarrin
(+91)-9160665888

From MAILER-DAEMON Sun Jan 23 10:09:12 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Ph1Z2-0001Pc-F1
	for mharc-autoconf@gnu.org; Sun, 23 Jan 2011 10:09:12 -0500
Received: from [140.186.70.92] (port=56370 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Ph1Yz-0001PP-VK
	for autoconf@gnu.org; Sun, 23 Jan 2011 10:09:10 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1Ph1Yy-0008Cj-Aa
	for autoconf@gnu.org; Sun, 23 Jan 2011 10:09:09 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:49098)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1Ph1Yx-0008Ce-TQ
	for autoconf@gnu.org; Sun, 23 Jan 2011 10:09:08 -0500
Received: (qmail invoked by alias); 23 Jan 2011 15:09:05 -0000
Received: from xdsl-89-0-131-211.netcologne.de (EHLO localhost.localdomain)
	[89.0.131.211]
	by mail.gmx.net (mp035) with SMTP; 23 Jan 2011 16:09:05 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX1/IVzILZB7If/odUhbS6s+c3OlqDoTD1+BKFaTwNh
	IthPBgeCSFKUk7
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1Ph1Yt-0002bR-Q9; Sun, 23 Jan 2011 16:09:03 +0100
Date: Sun, 23 Jan 2011 16:09:03 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: aaliya zarrin <aaliya.zarrin@gmail.com>
Message-ID: <20110123150903.GA9717@gmx.de>
Mail-Followup-To: aaliya zarrin <aaliya.zarrin@gmail.com>, autoconf@gnu.org
References: <AANLkTi=eTH6tM7J6qQ_q=V-OB_P0MSOf9uXQ3jy8E0o3@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <AANLkTi=eTH6tM7J6qQ_q=V-OB_P0MSOf9uXQ3jy8E0o3@mail.gmail.com>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
Cc: autoconf@gnu.org
Subject: Re: Configure Fail
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 23 Jan 2011 15:09:10 -0000

Hello Aaliya,

* aaliya zarrin wrote on Fri, Jan 21, 2011 at 10:44:16AM CET:
> While compiling memcached I am getting the following error.
> 
> "cannot run test program while cross compiling"
> It is unable to set few cache variable values. such as endianness.
> What is the solution, can anybody help ?

Please tell the memcached developers that when they use AC_RUN_IFELSE in
their configure.ac script, they should add default results for the cross
compilation case.

It may be that you can set a configure cache variable to by-pass the
test, but we cannot tell that without seeing the configure.ac code.

Hope that helps.

Cheers,
Ralf


From MAILER-DAEMON Mon Jan 24 16:09:46 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PhTfW-0000yN-Hj
	for mharc-autoconf@gnu.org; Mon, 24 Jan 2011 16:09:46 -0500
Received: from [140.186.70.92] (port=60584 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PhTfT-0000vy-Aq
	for autoconf@gnu.org; Mon, 24 Jan 2011 16:09:44 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PhTfQ-0007Na-Fa
	for autoconf@gnu.org; Mon, 24 Jan 2011 16:09:42 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:53972)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PhTfQ-0007NA-3J
	for autoconf@gnu.org; Mon, 24 Jan 2011 16:09:40 -0500
Received: (qmail invoked by alias); 24 Jan 2011 21:09:39 -0000
Received: from xdsl-89-0-138-109.netcologne.de (EHLO localhost.localdomain)
	[89.0.138.109]
	by mail.gmx.net (mp017) with SMTP; 24 Jan 2011 22:09:39 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX1/VjXEYzvXVxTY4a9tpse/Tw5vhPiPfq7igMWEbDP
	xx6wbeBU2nZMrc
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1PhTfO-0005TO-CU; Mon, 24 Jan 2011 22:09:38 +0100
Date: Mon, 24 Jan 2011 22:09:38 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: "Daily, Jeff A" <jeff.daily@pnl.gov>
Message-ID: <20110124210938.GD13219@gmx.de>
Mail-Followup-To: "Daily, Jeff A" <jeff.daily@pnl.gov>, autoconf@gnu.org
References: <F0F90F8B4D282340A6D984CE8FA7A0A701234BC276CB@EMAIL05.pnl.gov>
	<20110120190532.GF21455@gmx.de>
	<F0F90F8B4D282340A6D984CE8FA7A0A701234BC2777F@EMAIL05.pnl.gov>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <F0F90F8B4D282340A6D984CE8FA7A0A701234BC2777F@EMAIL05.pnl.gov>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
Cc: autoconf@gnu.org
Subject: Re: linking to Fortran libraries from C fails with suncc and sunf90
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 24 Jan 2011 21:09:44 -0000

* Daily, Jeff A wrote on Thu, Jan 20, 2011 at 09:58:08PM CET:
> Need help.  I finally installed git with http support after installing
> the latest curl.  I'm getting the following:
> 
> []$ git clone http://git.sv.gnu.org/r/autoconf.git
> Cloning into autoconf...
> fatal: protocol error: bad line length character: <!DO
> fatal: The remote end hung up unexpectedly

Which system does this happen on?

> I read the git faq on this
> https://git.wiki.kernel.org/index.php/GitFaq#protocol_error:_bad_line_length_character
> but I get back "testing commands" just fine.

I'm sure for good git help you're better off asking on the git mailing
list (but do search their archives first!).

Sorry,
Ralf


From MAILER-DAEMON Wed Jan 26 10:55:31 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pi7iV-0003I7-0u
	for mharc-autoconf@gnu.org; Wed, 26 Jan 2011 10:55:31 -0500
Received: from [140.186.70.92] (port=37313 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pi7iS-0003C1-6d
	for Autoconf@gnu.org; Wed, 26 Jan 2011 10:55:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1Pi7iP-0008L2-BV
	for Autoconf@gnu.org; Wed, 26 Jan 2011 10:55:26 -0500
Received: from mmp2.nems.noaa.gov ([140.90.121.157]:60623)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1Pi7iP-0008KR-9O
	for Autoconf@gnu.org; Wed, 26 Jan 2011 10:55:25 -0500
Received: from [10.202.232.94] ([140.90.47.70])
	by mmp2.nems.noaa.gov (Sun Java System Messaging Server 6.2-6.01 (built
	Apr 3
	2006)) with ESMTPSA id <0LFN00C350883NA0@mmp2.nems.noaa.gov> for
	Autoconf@gnu.org; Wed, 26 Jan 2011 10:55:20 -0500 (EST)
Date: Wed, 26 Jan 2011 10:55:20 -0500
From: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
To: Autoconf@gnu.org
Message-id: <4D4043E8.60309@noaa.gov>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-Enigmail-Version: 1.1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
	Gecko/20101207 Thunderbird/3.1.7
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: 
Subject: make test
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Jan 2011 15:55:29 -0000

Dear autoconf community,

I am switching a program from the 'old makefile/configure way' to
autoconf...

I got configure and make and make install to work but would like to now
add the tests that were happening by running 'make test'... (run-time tests)

I have searched the web and I came across  AC_TRY_RUN but it apparently
requires to run a C program ; the tests were executed with a shell
script. Is there another way to do it or am I going to have to make a C
program that will call my shell script? (The package is in fortran and
doesn't use C for anything else...)

Thanks a lot,
Cheers,
Eve-Marie

-- 
Eve-Marie Devaliere, MS
Senior Science System/Software Engineer
Joint Center for Satellite Data Assimilation (JCSDA)
Phone: (301) 763-8172 x215
Fax: (301) 763-8149
Address: World Weather Building
         Room #808
	 5200 Auth Rd
	 Camp Springs, MD 20746

The contents of this message are mine personally and do not necessarily reflect any position of NOAA



From MAILER-DAEMON Wed Jan 26 11:01:55 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pi7og-0000Kb-SG
	for mharc-autoconf@gnu.org; Wed, 26 Jan 2011 11:01:54 -0500
Received: from [140.186.70.92] (port=52286 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pi7oQ-00008o-LV
	for autoconf@gnu.org; Wed, 26 Jan 2011 11:01:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <franklahm@googlemail.com>) id 1Pi7o8-00029M-Qg
	for autoconf@gnu.org; Wed, 26 Jan 2011 11:01:38 -0500
Received: from mail-iw0-f169.google.com ([209.85.214.169]:35249)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <franklahm@googlemail.com>) id 1Pi7o8-000291-NL
	for autoconf@gnu.org; Wed, 26 Jan 2011 11:01:20 -0500
Received: by iwn40 with SMTP id 40so1203798iwn.0
	for <autoconf@gnu.org>; Wed, 26 Jan 2011 08:01:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:cc:content-type
	:content-transfer-encoding;
	bh=UDF8SxJTRrme9+RHJB4z6zmtVL7kvSbXNI8Qk4ZI42A=;
	b=kzVuclGJVj+f9QAQebfY6jia8nqauuOCnQc3F2neHmzTwma2WvkFaQILd+NWlka6Sn
	AVxASdkL4zKvx1DgKaSMvsAt6d8iz++ghMC9xshQhDnivxSMwNTZ/UyrA46aCv//JC2i
	9d0WAgjXGQxLOCAhmf+aGei6ZxTbXjEAcQPuQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	b=tCL0m/7EZdPDx03OWRHaU4VVD5rnkKuDfQMwiVq258fMgDtDa0QpES9xEDdTyMolCS
	l7bk0EGiyGjNcEGikPu4SifqqvQvxr4CUP2W2CCw0wD7eei2SlJHUGOvTCnL1v3UrpvC
	nZH4fEcAaJwEdv4t7wV1c+6/mh6uySiYopiZE=
MIME-Version: 1.0
Received: by 10.42.178.2 with SMTP id bk2mr673525icb.247.1296057677553; Wed,
	26 Jan 2011 08:01:17 -0800 (PST)
Received: by 10.42.167.71 with HTTP; Wed, 26 Jan 2011 08:01:17 -0800 (PST)
In-Reply-To: <4D4043E8.60309@noaa.gov>
References: <4D4043E8.60309@noaa.gov>
Date: Wed, 26 Jan 2011 17:01:17 +0100
Message-ID: <AANLkTi=fseVJ-uUMOS512zXxWdqS5gvPVJT3N7ksQmnC@mail.gmail.com>
From: Frank Lahm <franklahm@googlemail.com>
To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: autoconf@gnu.org
Subject: Re: make test
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Jan 2011 16:01:53 -0000

Hi,

2011/1/26 Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>:
> Dear autoconf community,
>
> I am switching a program from the 'old makefile/configure way' to
> autoconf...
>
> I got configure and make and make install to work but would like to now
> add the tests that were happening by running 'make test'... (run-time tes=
ts)
>
> I have searched the web and I came across =C2=A0AC_TRY_RUN but it apparen=
tly
> requires to run a C program ; the tests were executed with a shell
> script. Is there another way to do it or am I going to have to make a C
> program that will call my shell script? (The package is in fortran and
> doesn't use C for anything else...)

Wrong auto* package your looking at. Look at this one:
http://www.gnu.org/software/automake/manual/html_node/Tests.html#Tests

-f


From MAILER-DAEMON Wed Jan 26 11:26:15 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pi8CE-00009R-UE
	for mharc-autoconf@gnu.org; Wed, 26 Jan 2011 11:26:14 -0500
Received: from [140.186.70.92] (port=42288 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pi8CC-00006t-CF
	for Autoconf@gnu.org; Wed, 26 Jan 2011 11:26:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1Pi8CA-0001g8-Oc
	for Autoconf@gnu.org; Wed, 26 Jan 2011 11:26:12 -0500
Received: from mx1.redhat.com ([209.132.183.28]:59167)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1Pi8CA-0001fw-Hc
	for Autoconf@gnu.org; Wed, 26 Jan 2011 11:26:10 -0500
Received: from int-mx10.intmail.prod.int.phx2.redhat.com
	(int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0QGQ9dW031451
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Wed, 26 Jan 2011 11:26:09 -0500
Received: from [10.3.113.146] (ovpn-113-146.phx2.redhat.com [10.3.113.146])
	by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id p0QGQ8oo007685; Wed, 26 Jan 2011 11:26:08 -0500
Message-ID: <4D404B20.5050908@redhat.com>
Date: Wed, 26 Jan 2011 09:26:08 -0700
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14
	Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7
MIME-Version: 1.0
To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
References: <4D4043E8.60309@noaa.gov>
In-Reply-To: <4D4043E8.60309@noaa.gov>
X-Enigmail-Version: 1.1.2
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig0814D834239E564B96D3D824"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: Autoconf@gnu.org
Subject: Re: make test
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Jan 2011 16:26:13 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig0814D834239E564B96D3D824
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 01/26/2011 08:55 AM, Eve-Marie Devaliere wrote:
> Dear autoconf community,
>=20
> I am switching a program from the 'old makefile/configure way' to
> autoconf...
>=20
> I got configure and make and make install to work but would like to now=

> add the tests that were happening by running 'make test'... (run-time t=
ests)

Autoconf includes the 'autotest' language, which parses a new file
tests.at to build up a (shell script) testsuite; as well as
documentation for a couple of hooks to add in configure.ac and your
Makefile to run such a testsuite.  Such tests need not be C programs -
they are anything that you can drive via shell snippets.  In fact,
autoconf's own testsuite is written in the autotest language.  But I'm
not sure if this is what you had in mind.
http://www.gnu.org/software/autoconf/manual/autoconf.html#Using-Autotest

Meanwhile, Automake has support for building up a testsuite based on
various input files, maybe it's easier to use?
http://www.gnu.org/software/automake/manual/automake.html#Tests

> I have searched the web and I came across  AC_TRY_RUN but it apparently=

> requires to run a C program ; the tests were executed with a shell
> script.

AC_TRY_RUN is for determining a platform characteristic at configure
time, not for running a testsuite at make time.  I think you're
confusing the issue, and don't need AC_TRY_RUN for a make-time test.
Also, AC_TRY_RUN is an obsolete wrapper around the newer AC_RUN_IFELSE
macro; this macro does not inherently require a C compiler, but runs a
configure-time compile/run/cross-compile-guess based on the current
language being probed in the configure.ac file (which is usually C, but
can be Fortran).

Furthermore, if your Makefile already knows how to run your tests, then
your Makefile.in (if you only use autoconf) or Makefile.am (if you also
use automake) can preserve those test rules as-is, and still run those
tests as you have always done as part of make.

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig0814D834239E564B96D3D824
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNQEsgAAoJEKeha0olJ0NqSsIH/iYBZOI24WS6B7E77F/v6gxb
9lcRyPWJODl4kUJdeoygtgl8TQGuvSJ/qqR4Ms4VYKIDY2PozfdLGDdApyYInnx7
ethliGuS2f+geAX2YWCCMI9/Ux2/r7yjIGPIxZ4b+rI7LIzl69kTi6koVvbSlSyh
1tC/xXlwDjpOHMW/alvxD0eT75RbfsyKlk1Ctmot05jO7cTmZywtPt7vFx6+xxmw
lNhfMP6FQ3BiBv0vvM5vFS3P2SEuwvixMN+WHEPRa1aGg7YeqVqw/hZvNUz8djOY
reTfL/1aNYbJDgNn3FR+TWzga7RIjlNqJm/SoLqy0Xx/RCPpxmZqMLRf+1ANjgM=
=k64T
-----END PGP SIGNATURE-----

--------------enig0814D834239E564B96D3D824--


From MAILER-DAEMON Wed Jan 26 11:45:11 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pi8UZ-00051R-8I
	for mharc-autoconf@gnu.org; Wed, 26 Jan 2011 11:45:11 -0500
Received: from [140.186.70.92] (port=60533 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pi8UW-00050w-DP
	for autoconf@gnu.org; Wed, 26 Jan 2011 11:45:10 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1Pi8US-0007sd-2N
	for autoconf@gnu.org; Wed, 26 Jan 2011 11:45:05 -0500
Received: from mail-ww0-f49.google.com ([74.125.82.49]:44598)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1Pi8UR-0007sQ-SZ
	for autoconf@gnu.org; Wed, 26 Jan 2011 11:45:03 -0500
Received: by wwb17 with SMTP id 17so1174924wwb.30
	for <autoconf@gnu.org>; Wed, 26 Jan 2011 08:45:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:from:date:message-id:subject:to
	:content-type:content-transfer-encoding;
	bh=iv8iKuHGuHoTXdu6+VMU961ApM18SGGu34bvN+ddxgA=;
	b=TFkfy+Yhp//3AjonE7oGKsQSMcwsHVnLusFpjvii92Qq/EQIsHTbhJp3Pln3sgoIaZ
	Ml3qLJKqinMQRQxhQIKIsCT8FerGxvXDT2OtQXNs37R4Y3Exr3eTWZtFJj7Z++YDOU1d
	xtqVtGXNwD1Dgf/jG5xgJ4dRB/SV4mH5h/oUQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:from:date:message-id:subject:to:content-type
	:content-transfer-encoding;
	b=hAGtAtaMa4/8yiwQBOzfmzrx8SFZ4uUxBYrrYoPKq3JZRo5nU8WylwGiNkwr6W/Q/+
	vDhUpI9ucMgV7J07zjPYh3+oIk85CMPF1Ec0JpuSoFp3z1QBuIdPkMn0qHjd1GN6TU/T
	of4Q79JazjYWTGZ5Y78SaV6swRZ25BLoEtXw4=
Received: by 10.216.186.196 with SMTP id w46mr642199wem.105.1296060302217;
	Wed, 26 Jan 2011 08:45:02 -0800 (PST)
MIME-Version: 1.0
Received: by 10.216.154.144 with HTTP; Wed, 26 Jan 2011 08:44:42 -0800 (PST)
From: Sergio Belkin <sebelk@gmail.com>
Date: Wed, 26 Jan 2011 13:44:42 -0300
Message-ID: <AANLkTikDRLwpw-4bhMbBaTBuYcE1e2jdMY5nhMbBbK3t@mail.gmail.com>
To: autoconf@gnu.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: Check for global symbol
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Jan 2011 16:45:10 -0000

Hi,

Is there a way to check is a library function is global?

Thanks in advance!

--=20
--
Sergio Belkin =A0http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
LPIC-2 Certified


From MAILER-DAEMON Wed Jan 26 11:46:05 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pi8VR-0005HG-DZ
	for mharc-autoconf@gnu.org; Wed, 26 Jan 2011 11:46:05 -0500
Received: from [140.186.70.92] (port=60533 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pi8VD-00050w-Gx
	for Autoconf@gnu.org; Wed, 26 Jan 2011 11:46:03 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1Pi8PB-0006KA-Nw
	for Autoconf@gnu.org; Wed, 26 Jan 2011 11:39:42 -0500
Received: from mmp1.nems.noaa.gov ([140.90.121.156]:43949)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1Pi8PB-0006Jh-Ke
	for Autoconf@gnu.org; Wed, 26 Jan 2011 11:39:37 -0500
Received: from [10.202.232.94] ([140.90.47.70])
	by mmp1.nems.noaa.gov (Sun Java System Messaging Server 6.2-6.01 (built
	Apr 3
	2006)) with ESMTPSA id <0LFN00EZS2A0DW60@mmp1.nems.noaa.gov> for
	Autoconf@gnu.org; Wed, 26 Jan 2011 11:39:36 -0500 (EST)
Date: Wed, 26 Jan 2011 11:39:35 -0500
From: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
In-reply-to: <4D404B20.5050908@redhat.com>
To: Eric Blake <eblake@redhat.com>
Message-id: <4D404E47.7020105@noaa.gov>
MIME-version: 1.0
X-Enigmail-Version: 1.1.1
References: <4D4043E8.60309@noaa.gov> <4D404B20.5050908@redhat.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
	Gecko/20101207 Thunderbird/3.1.7
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7BIT
X-Content-Filtered-By: Mailman/MimeDel 2.1.5
Cc: Autoconf@gnu.org
Subject: Re: make test
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Jan 2011 16:46:03 -0000

Thanks Frank and Eric for the prompt replies!

> Autoconf includes the 'autotest' language, which parses a new file
> tests.at to build up a (shell script) testsuite; as well as
> documentation for a couple of hooks to add in configure.ac and your
> Makefile to run such a testsuite.  Such tests need not be C programs -
> they are anything that you can drive via shell snippets.  In fact,
> autoconf's own testsuite is written in the autotest language.  But I'm
> not sure if this is what you had in mind.
> http://www.gnu.org/software/autoconf/manual/autoconf.html#Using-Autotest
I had seen that but got afraid using it because of the warning 'This
section describes a feature which is still**stabilizing.'
Since the shell script already exists, I am not sure that would be my
best option either...
**
> Meanwhile, Automake has support for building up a testsuite based on
> various input files, maybe it's easier to use?
> http://www.gnu.org/software/automake/manual/automake.html#Tests
Yes, Frank pointed me to that and I was just having a look... Thanks, I
think this is what I am looking for.  I am still trying to figure out
which 'Makefile.am' needs this and trying to find more example.... (I
have 2 suites of tests to make in 2 different directories under 'test',
and each of those directories is further decomposed into 4
subdirectories - would I need one Makefile.am in each subdirectory or
can I make it work from the Makefile.am in the test directory?)
>
> AC_TRY_RUN is for determining a platform characteristic at configure
> time, not for running a testsuite at make time.  I think you're
> confusing the issue, and don't need AC_TRY_RUN for a make-time test.
> Also, AC_TRY_RUN is an obsolete wrapper around the newer AC_RUN_IFELSE
> macro; this macro does not inherently require a C compiler, but runs a
> configure-time compile/run/cross-compile-guess based on the current
> language being probed in the configure.ac file (which is usually C, but
> can be Fortran).
Thanks for the explanation. Yes I am confused... :)
> Furthermore, if your Makefile already knows how to run your tests, then
> your Makefile.in (if you only use autoconf) or Makefile.am (if you also
> use automake) can preserve those test rules as-is, and still run those
> tests as you have always done as part of make.
ohhh, would you mind pointing to a ressource for that?, that may work
even better... I use both autoconf and automake....
the makefile I get from using autoconf/automake is however different
than the one I (well my colleague) had before... although isn't the
point to get away from the 'standard way' of doing this...?

Thanks a lot,
Cheers,
Eve-Marie

From MAILER-DAEMON Wed Jan 26 14:16:45 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PiArF-00007Y-6v
	for mharc-autoconf@gnu.org; Wed, 26 Jan 2011 14:16:45 -0500
Received: from [140.186.70.92] (port=38017 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PiArD-000076-F6
	for autoconf@gnu.org; Wed, 26 Jan 2011 14:16:44 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tfogal@sci.utah.edu>) id 1PiArC-0004jc-EJ
	for autoconf@gnu.org; Wed, 26 Jan 2011 14:16:43 -0500
Received: from mail.sci.utah.edu ([155.98.58.80]:20576 helo=sci.utah.edu)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tfogal@sci.utah.edu>) id 1PiArC-0004j8-4Q
	for autoconf@gnu.org; Wed, 26 Jan 2011 14:16:42 -0500
Received: from dummy.name; Wed, 26 Jan 2011 12:16:34 -0700
From: tom fogal <tfogal@sci.utah.edu>
To: Sergio Belkin <sebelk@gmail.com>
In-Reply-To: Your message of "Wed, 26 Jan 2011 13:44:42 -0300."
	<AANLkTikDRLwpw-4bhMbBaTBuYcE1e2jdMY5nhMbBbK3t@mail.gmail.com> 
References: <AANLkTikDRLwpw-4bhMbBaTBuYcE1e2jdMY5nhMbBbK3t@mail.gmail.com> 
Date: Wed, 26 Jan 2011 12:15:31 -0700
Message-ID: <auto-000024346770@sci.utah.edu>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6
Cc: autoconf@gnu.org
Subject: Re: Check for global symbol 
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Jan 2011 19:16:44 -0000

Sergio Belkin <sebelk@gmail.com> writes:
> Hi,
>
> Is there a way to check is a library function is global?

  AC_TRY_COMPILE(...,
    [extern rettype funcname(args);],
    [funcname(...);]
  )

?


From MAILER-DAEMON Wed Jan 26 14:19:10 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PiAta-0001h2-6w
	for mharc-autoconf@gnu.org; Wed, 26 Jan 2011 14:19:10 -0500
Received: from [140.186.70.92] (port=45869 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PiAtX-0001fD-Fh
	for autoconf@gnu.org; Wed, 26 Jan 2011 14:19:08 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <peter@pogma.com>) id 1PiAtW-0005hv-DJ
	for autoconf@gnu.org; Wed, 26 Jan 2011 14:19:07 -0500
Received: from pogma.xen.prgmr.com ([68.68.97.8]:47137)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <peter@pogma.com>) id 1PiAtW-0005gz-8U
	for autoconf@gnu.org; Wed, 26 Jan 2011 14:19:06 -0500
Received: from tw.local (wnpgmb1316w-ds01-50-57.dynamic.mts.net [206.45.50.57])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pogma.xen.prgmr.com (Postfix) with ESMTP id 51855BF5CB;
	Wed, 26 Jan 2011 19:19:06 +0000 (UTC)
Message-ID: <4D4073A2.7010000@pogma.com>
Date: Wed, 26 Jan 2011 13:18:58 -0600
From: Peter O'Gorman <peter@pogma.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc13
	Thunderbird/3.1.7
MIME-Version: 1.0
To: tom fogal <tfogal@sci.utah.edu>
References: <AANLkTikDRLwpw-4bhMbBaTBuYcE1e2jdMY5nhMbBbK3t@mail.gmail.com>
	<auto-000024346770@sci.utah.edu>
In-Reply-To: <auto-000024346770@sci.utah.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
Cc: autoconf@gnu.org, Sergio Belkin <sebelk@gmail.com>
Subject: Re: Check for global symbol
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Jan 2011 19:19:08 -0000

On 01/26/2011 01:15 PM, tom fogal wrote:
> Sergio Belkin<sebelk@gmail.com>  writes:
>> Hi,
>>
>> Is there a way to check is a library function is global?
>
>    AC_TRY_COMPILE(...,
>      [extern rettype funcname(args);],
>      [funcname(...);]
>    )

This would need to be AC_TRY_LINK, but it's possible to just use 
AC_CHECK_LIB, AC_SEARCH_LIBS etc.

Peter


From MAILER-DAEMON Wed Jan 26 14:45:34 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PiBJ8-0005Aq-Ac
	for mharc-autoconf@gnu.org; Wed, 26 Jan 2011 14:45:34 -0500
Received: from [140.186.70.92] (port=34406 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PiBJ5-000594-C7
	for Autoconf@gnu.org; Wed, 26 Jan 2011 14:45:32 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PiBJ3-0008IX-VD
	for Autoconf@gnu.org; Wed, 26 Jan 2011 14:45:31 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:50566)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PiBJ3-0008Gt-IA
	for Autoconf@gnu.org; Wed, 26 Jan 2011 14:45:29 -0500
Received: (qmail invoked by alias); 26 Jan 2011 19:45:25 -0000
Received: from xdsl-78-35-52-59.netcologne.de (EHLO localhost.localdomain)
	[78.35.52.59]
	by mail.gmx.net (mp013) with SMTP; 26 Jan 2011 20:45:25 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX18TiA0VeLcTnECeoimkCvR/3feYrbJiQ+ufAHSEya
	Jp3c1fkGBqBz78
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1PiBIy-0000Sb-8h; Wed, 26 Jan 2011 20:45:24 +0100
Date: Wed, 26 Jan 2011 20:45:24 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
Message-ID: <20110126194524.GB1707@gmx.de>
Mail-Followup-To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>,
	Eric Blake <eblake@redhat.com>, Autoconf@gnu.org
References: <4D4043E8.60309@noaa.gov> <4D404B20.5050908@redhat.com>
	<4D404E47.7020105@noaa.gov>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4D404E47.7020105@noaa.gov>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: Autoconf@gnu.org, Eric Blake <eblake@redhat.com>
Subject: Re: make test
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Jan 2011 19:45:32 -0000

Hello Eve-Marie,

* Eve-Marie Devaliere wrote on Wed, Jan 26, 2011 at 05:39:35PM CET:
> > http://www.gnu.org/software/automake/manual/automake.html#Tests
> Yes, Frank pointed me to that and I was just having a look... Thanks, I
> think this is what I am looking for.  I am still trying to figure out
> which 'Makefile.am' needs this and trying to find more example.... (I
> have 2 suites of tests to make in 2 different directories under 'test',
> and each of those directories is further decomposed into 4
> subdirectories - would I need one Makefile.am in each subdirectory or
> can I make it work from the Makefile.am in the test directory?)

You can do either.

1) This works:

--- tests/Makefile.am ----
TESTS = suite1/sub1/test1 suite1/sub1/test2 ... suite1/sub2/test1 \
        ... suite1/sub4/test1 suite2/sub1/test1 ...

2) but this will also work:

--- tests/Makefile.am ----
SUBDIRS = suite1 suite2

--- tests/suite1/Makefile.am ----
TESTS = sub1/test1 sub1/test2 ... sub2/test1 \
        ... sub4/test1

--- tests/suite2/Makefile.am ----
TESTS = sub1/test1 ...

3) or a split up in even more subdirectories.

The thing you gotta remember is that all Makefile.am files need to be
listed in some AC_CONFIG_FILES([...]) argument (with the trailing .am
removed) in configure.ac, and further, all non-terminal Makefile.am
files need SUBDIRS variables connecting the lower Makefile.am files.

There are slight differences in usage of course: with (1) you get only
one testsuite summary, with (2) you get two, and if you want to see all
failures, you should use 'make -k check'.  With (2), you can run 'make
check' inside the tests/suite1 subdir to only run that particular test
suite, with (1) you cannot subset so easily (but see the Automake manual
for ways out).

If you want to be able to run tests in parallel, you should look into
the Automake option parallel-tests, see the Automake manual for more
info.

Hope that helps.

Cheers,
Ralf


From MAILER-DAEMON Wed Jan 26 14:57:20 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PiBUW-0006Iw-3k
	for mharc-autoconf@gnu.org; Wed, 26 Jan 2011 14:57:20 -0500
Received: from [140.186.70.92] (port=55145 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PiBUT-0006Il-NE
	for autoconf@gnu.org; Wed, 26 Jan 2011 14:57:18 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tfogal@sci.utah.edu>) id 1PiBUR-00031h-QW
	for autoconf@gnu.org; Wed, 26 Jan 2011 14:57:17 -0500
Received: from mail.sci.utah.edu ([155.98.58.80]:20700 helo=sci.utah.edu)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tfogal@sci.utah.edu>) id 1PiBUR-00031O-Dh
	for autoconf@gnu.org; Wed, 26 Jan 2011 14:57:15 -0500
Received: from dummy.name; Wed, 26 Jan 2011 12:57:13 -0700
From: tom fogal <tfogal@sci.utah.edu>
To: Sergio Belkin <sebelk@gmail.com>
In-Reply-To: Your message of "Wed, 26 Jan 2011 16:42:13 -0300."
	<AANLkTiksYsUeOXxvHZkw=FduohAQcN_ZLYi58Zv_MDc8@mail.gmail.com> 
References: <AANLkTikDRLwpw-4bhMbBaTBuYcE1e2jdMY5nhMbBbK3t@mail.gmail.com>
	<auto-000024346770@sci.utah.edu>
	<AANLkTiksYsUeOXxvHZkw=FduohAQcN_ZLYi58Zv_MDc8@mail.gmail.com> 
Date: Wed, 26 Jan 2011 12:56:10 -0700
Message-ID: <auto-000024347079@sci.utah.edu>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6
Cc: autoconf@gnu.org
Subject: Re: Check for global symbol 
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Jan 2011 19:57:18 -0000

Please keep mailing list topics on.. the mailing list :)

-tom

Sergio Belkin <sebelk@gmail.com> writes:
> 2011/1/26 tom fogal <tfogal@sci.utah.edu>:
> > AC_TRY_COMPILE
> 
> Thanks, I forgot to say that I'd want to check if the symbol ig global
> and is in the text code.
> 
> How can I do that?


From MAILER-DAEMON Wed Jan 26 15:00:08 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PiBXE-0007Tz-42
	for mharc-autoconf@gnu.org; Wed, 26 Jan 2011 15:00:08 -0500
Received: from [140.186.70.92] (port=55714 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PiBXC-0007Tu-Cv
	for autoconf@gnu.org; Wed, 26 Jan 2011 15:00:07 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1PiBXA-0003cm-VD
	for autoconf@gnu.org; Wed, 26 Jan 2011 15:00:06 -0500
Received: from mail-ww0-f49.google.com ([74.125.82.49]:33286)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1PiBXA-0003ca-QI
	for autoconf@gnu.org; Wed, 26 Jan 2011 15:00:04 -0500
Received: by wwb17 with SMTP id 17so1380402wwb.30
	for <autoconf@gnu.org>; Wed, 26 Jan 2011 12:00:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc:content-type:content-transfer-encoding;
	bh=Vq8oTj7fbEvm1cNKt2GhLAdMjCX0HoQeqY2W/joWHCs=;
	b=a24kK5irVGYjUm2eDSj0eRDQrW1q+YAF1rzOg3AdFtGYq9Qc5IlmS1A2V35CF+8HQ4
	yuClaNr4U0+RUoHXlJshyvFB1DUd+Y/HMjjThL43ZDl2Rx9DYy3mDFwaW2pVMV9/wwxo
	Seqy/sFpBcdcWv97FSAmSkqo/em/bZ15z7pS4=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	b=WqXJpy4getRHUSkgTZH5/UzcAy22YmcAziM31Q7izRrx/sL7zOVXMMDdJSmgzX9KrC
	RPVTYLKurhZe+98lFAMIIw7b9cbNiKjOJELUTbZE03yaRqVozd4Qgf+ySlOr/jHdmK96
	+ioPLO8S2wgujWI1vtWOjAmp6cDFlfxiohSUk=
Received: by 10.216.155.205 with SMTP id j55mr5311053wek.90.1296072001733;
	Wed, 26 Jan 2011 12:00:01 -0800 (PST)
MIME-Version: 1.0
Received: by 10.216.154.144 with HTTP; Wed, 26 Jan 2011 11:59:41 -0800 (PST)
In-Reply-To: <auto-000024347079@sci.utah.edu>
References: <AANLkTikDRLwpw-4bhMbBaTBuYcE1e2jdMY5nhMbBbK3t@mail.gmail.com>
	<auto-000024346770@sci.utah.edu>
	<AANLkTiksYsUeOXxvHZkw=FduohAQcN_ZLYi58Zv_MDc8@mail.gmail.com>
	<auto-000024347079@sci.utah.edu>
From: Sergio Belkin <sebelk@gmail.com>
Date: Wed, 26 Jan 2011 16:59:41 -0300
Message-ID: <AANLkTi=yH2_JXkhoR6_+ePwrArOZa_q04soN7y-BnVvy@mail.gmail.com>
To: tom fogal <tfogal@sci.utah.edu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: autoconf@gnu.org
Subject: Re: Check for global symbol
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Jan 2011 20:00:07 -0000

2011/1/26 tom fogal <tfogal@sci.utah.edu>:
> Please keep mailing list topics on.. the mailing list :)
>
> -tom
>
> Sergio Belkin <sebelk@gmail.com> writes:
>> 2011/1/26 tom fogal <tfogal@sci.utah.edu>:
>> > AC_TRY_COMPILE
>>
>> Thanks, I forgot to say that I'd want to check if the symbol ig global
>> and is in the text code.
>>
>> How can I do that?
>

Oh Sorry, against the question:


Thanks, I forgot to say that I'd want to check if the symbol ig global
and is in the text code.


--=20
--
Sergio Belkin =A0http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
LPIC-2 Certified


From MAILER-DAEMON Thu Jan 27 12:03:08 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PiVFT-0001gb-4l
	for mharc-autoconf@gnu.org; Thu, 27 Jan 2011 12:03:07 -0500
Received: from [140.186.70.92] (port=49221 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PiVFI-0001Uk-3j
	for autoconf@gnu.org; Thu, 27 Jan 2011 12:03:03 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PiVEz-0002Ub-Od
	for autoconf@gnu.org; Thu, 27 Jan 2011 12:02:38 -0500
Received: from mmp2.nems.noaa.gov ([140.90.121.157]:51586)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PiVEz-0002Tu-Lg
	for autoconf@gnu.org; Thu, 27 Jan 2011 12:02:37 -0500
Received: from [10.202.226.238] ([140.90.47.70])
	by mmp2.nems.noaa.gov (Sun Java System Messaging Server 6.2-6.01 (built
	Apr 3
	2006)) with ESMTPSA id <0LFO007KXY0A1C90@mmp2.nems.noaa.gov> for
	autoconf@gnu.org; Thu, 27 Jan 2011 12:02:34 -0500 (EST)
Date: Thu, 27 Jan 2011 12:02:33 -0500
From: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
In-reply-to: <20110126194524.GB1707@gmx.de>
To: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, autoconf@gnu.org
Message-id: <4D41A529.2090401@noaa.gov>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-Enigmail-Version: 1.1.1
References: <4D4043E8.60309@noaa.gov> <4D404B20.5050908@redhat.com>
	<4D404E47.7020105@noaa.gov> <20110126194524.GB1707@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
	Gecko/20101207 Thunderbird/3.1.7
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: 
Subject: Re: make test with fortran programs
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 27 Jan 2011 17:03:04 -0000

Thanks Ralph for all your continuous help! I don't know what I would do
without you!
I have one more dilemma... The tests programs are in fortran... I am
trying the 'master makefile' case and I have that so far:

TESTS = test/forward/Example1_Simple/Example1_Simple.f90 \
        test/k_matrix/Example1_Simple/Example1_Simple.f90
check_PROGRAMS = $(TESTS)
TESTS_ENVIRONMENT =

I am guessing I need to do something with TESTS_ENVIRONMENT but I am not
sure how to set it up..... I can't find an example with fortran.. Would
you mind putting me in the right direction one more time?

Thanks a lot,
Cheers,
Eve-Marie


Ralf Wildenhues said the following on 1/26/2011 2:45 PM:
> Hello Eve-Marie,
>
> * Eve-Marie Devaliere wrote on Wed, Jan 26, 2011 at 05:39:35PM CET:
>>> http://www.gnu.org/software/automake/manual/automake.html#Tests
>> Yes, Frank pointed me to that and I was just having a look... Thanks, I
>> think this is what I am looking for.  I am still trying to figure out
>> which 'Makefile.am' needs this and trying to find more example.... (I
>> have 2 suites of tests to make in 2 different directories under 'test',
>> and each of those directories is further decomposed into 4
>> subdirectories - would I need one Makefile.am in each subdirectory or
>> can I make it work from the Makefile.am in the test directory?)
> You can do either.
>
> 1) This works:
>
> --- tests/Makefile.am ----
> TESTS = suite1/sub1/test1 suite1/sub1/test2 ... suite1/sub2/test1 \
>         ... suite1/sub4/test1 suite2/sub1/test1 ...
>
> 2) but this will also work:
>
> --- tests/Makefile.am ----
> SUBDIRS = suite1 suite2
>
> --- tests/suite1/Makefile.am ----
> TESTS = sub1/test1 sub1/test2 ... sub2/test1 \
>         ... sub4/test1
>
> --- tests/suite2/Makefile.am ----
> TESTS = sub1/test1 ...
>
> 3) or a split up in even more subdirectories.
>
> The thing you gotta remember is that all Makefile.am files need to be
> listed in some AC_CONFIG_FILES([...]) argument (with the trailing .am
> removed) in configure.ac, and further, all non-terminal Makefile.am
> files need SUBDIRS variables connecting the lower Makefile.am files.
>
> There are slight differences in usage of course: with (1) you get only
> one testsuite summary, with (2) you get two, and if you want to see all
> failures, you should use 'make -k check'.  With (2), you can run 'make
> check' inside the tests/suite1 subdir to only run that particular test
> suite, with (1) you cannot subset so easily (but see the Automake manual
> for ways out).
>
> If you want to be able to run tests in parallel, you should look into
> the Automake option parallel-tests, see the Automake manual for more
> info.
>
> Hope that helps.
>
> Cheers,
> Ralf
>
> _______________________________________________
> Autoconf mailing list
> Autoconf@gnu.org
> http://lists.gnu.org/mailman/listinfo/autoconf


From MAILER-DAEMON Thu Jan 27 12:31:52 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PiVhH-0005Ea-Vv
	for mharc-autoconf@gnu.org; Thu, 27 Jan 2011 12:31:52 -0500
Received: from [140.186.70.92] (port=42064 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PiVhF-0005DS-6e
	for autoconf@gnu.org; Thu, 27 Jan 2011 12:31:50 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PiVhE-0002iM-2j
	for autoconf@gnu.org; Thu, 27 Jan 2011 12:31:49 -0500
Received: from mailout-de.gmx.net ([213.165.64.22]:60456)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PiVhD-0002iE-LW
	for autoconf@gnu.org; Thu, 27 Jan 2011 12:31:48 -0500
Received: (qmail invoked by alias); 27 Jan 2011 17:31:45 -0000
Received: from xdsl-89-0-159-122.netcologne.de (EHLO localhost.localdomain)
	[89.0.159.122]
	by mail.gmx.net (mp006) with SMTP; 27 Jan 2011 18:31:45 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX19AmU8SlIBA/dEXopP3cqBDmBIBMfLmzzwZutQLQY
	uukYMiO/DWFtEC
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1PiVh9-0001Hr-H6; Thu, 27 Jan 2011 18:31:43 +0100
Date: Thu, 27 Jan 2011 18:31:43 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
Message-ID: <20110127173143.GA4929@gmx.de>
Mail-Followup-To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>,
	autoconf@gnu.org
References: <4D4043E8.60309@noaa.gov> <4D404B20.5050908@redhat.com>
	<4D404E47.7020105@noaa.gov> <20110126194524.GB1707@gmx.de>
	<4D41A529.2090401@noaa.gov>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4D41A529.2090401@noaa.gov>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: autoconf@gnu.org
Subject: Re: make test with fortran programs
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 27 Jan 2011 17:31:50 -0000

Hello,

* Eve-Marie Devaliere wrote on Thu, Jan 27, 2011 at 06:02:33PM CET:
> TESTS = test/forward/Example1_Simple/Example1_Simple.f90 \
>         test/k_matrix/Example1_Simple/Example1_Simple.f90
> check_PROGRAMS = $(TESTS)

It goes like this with Automake 1.11 or newer:

AM_DEFAULT_SOURCE_EXT = .f90
TESTS = test/forward/Example1_Simple/Example1_Simple \
        test/k_matrix/Example1_Simple/Example1_Simple
check_PROGRAMS = $(TESTS)

If you have further questions regarding Automake, it is helpful to ask
them on the automake list (no need to subscribe); but we understand that
the distinction is often not easy to make for newcomers.

Cheers,
Ralf


From MAILER-DAEMON Thu Jan 27 13:17:56 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PiWPs-00023M-Hw
	for mharc-autoconf@gnu.org; Thu, 27 Jan 2011 13:17:56 -0500
Received: from [140.186.70.92] (port=51184 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PiWPp-00020O-Ey
	for autoconf@gnu.org; Thu, 27 Jan 2011 13:17:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PiWPo-0008Mb-Fp
	for autoconf@gnu.org; Thu, 27 Jan 2011 13:17:53 -0500
Received: from mmp3.nems.noaa.gov ([140.90.121.158]:37393)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PiW71-0000e2-Rm
	for autoconf@gnu.org; Thu, 27 Jan 2011 12:58:27 -0500
Received: from [10.202.226.238] ([140.90.47.70])
	by mmp3.nems.noaa.gov (Sun Java System Messaging Server 6.2-6.01 (built
	Apr 3
	2006)) with ESMTPSA id <0LFP00KPE0LDDM20@mmp3.nems.noaa.gov> for
	autoconf@gnu.org; Thu, 27 Jan 2011 12:58:26 -0500 (EST)
Date: Thu, 27 Jan 2011 12:58:25 -0500
From: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
In-reply-to: <20110127173143.GA4929@gmx.de>
To: autoconf@gnu.org, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Message-id: <4D41B241.6020806@noaa.gov>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-Enigmail-Version: 1.1.1
References: <4D4043E8.60309@noaa.gov> <4D404B20.5050908@redhat.com>
	<4D404E47.7020105@noaa.gov> <20110126194524.GB1707@gmx.de>
	<4D41A529.2090401@noaa.gov> <20110127173143.GA4929@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
	Gecko/20101207 Thunderbird/3.1.7
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: 
Subject: Re: make test with fortran programs
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 27 Jan 2011 18:17:54 -0000

Thanks Ralph!
oh, yes I am sorry... I understand.... I am having some more issues but
will post to the automake list
(automakes outputs
automake
test/Makefile.am: object `Example1_Simple.$(OBJEXT)' created by
`test/k_matrix/Example1_Simple/Example1_Simple.f90' and
`test/forward/Example1_Simple/Example1_Simple.f90'
but nothing is created
and configure crashes on:
config.status: error: cannot find input file: `test/Makefile.in')

Thanks again for all your help,
Cheers,
Eve-Marie

NB: in case that can help somebody else, automake mailing list
automake@gnu.org (easy guess though .. :) )


Ralf Wildenhues said the following on 1/27/2011 12:31 PM:
> Hello,
>
> * Eve-Marie Devaliere wrote on Thu, Jan 27, 2011 at 06:02:33PM CET:
>> TESTS = test/forward/Example1_Simple/Example1_Simple.f90 \
>>         test/k_matrix/Example1_Simple/Example1_Simple.f90
>> check_PROGRAMS = $(TESTS)
> It goes like this with Automake 1.11 or newer:
>
> AM_DEFAULT_SOURCE_EXT = .f90
> TESTS = test/forward/Example1_Simple/Example1_Simple \
>         test/k_matrix/Example1_Simple/Example1_Simple
> check_PROGRAMS = $(TESTS)
>
> If you have further questions regarding Automake, it is helpful to ask
> them on the automake list (no need to subscribe); but we understand that
> the distinction is often not easy to make for newcomers.
>
> Cheers,
> Ralf


From MAILER-DAEMON Fri Jan 28 02:21:36 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PiieF-0000Ey-1O
	for mharc-autoconf@gnu.org; Fri, 28 Jan 2011 02:21:35 -0500
Received: from [140.186.70.92] (port=54177 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PiieB-0000Dt-LM
	for autoconf@gnu.org; Fri, 28 Jan 2011 02:21:32 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=002fed9a4=jeff.daily@pnl.gov>)
	id 1PiieA-0006Sw-Dd
	for autoconf@gnu.org; Fri, 28 Jan 2011 02:21:31 -0500
Received: from emailgw03.pnl.gov ([192.101.109.31]:47665)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=002fed9a4=jeff.daily@pnl.gov>)
	id 1PiieA-0006SK-58
	for autoconf@gnu.org; Fri, 28 Jan 2011 02:21:30 -0500
X-IronPort-AV: E=Sophos;i="4.60,388,1291622400"; d="scan'208";a="37412780"
Received: from emailhub02.pnl.gov ([130.20.251.62])
	by emailgw03.pnl.gov with ESMTP/TLS/AES128-SHA;
	27 Jan 2011 16:20:59 -0800
Received: from Email05.pnl.gov ([130.20.251.69]) by emailhub02.pnl.gov
	([130.20.251.62]) with mapi; Thu, 27 Jan 2011 16:20:07 -0800
From: "Daily, Jeff A" <jeff.daily@pnl.gov>
To: "autoconf@gnu.org" <autoconf@gnu.org>
Date: Thu, 27 Jan 2011 16:20:57 -0800
Thread-Topic: AT_CHECK within for loop
Thread-Index: Acu+gTqLiA0I6x4yQzetl5YN+xErYQ==
Message-ID: <F0F90F8B4D282340A6D984CE8FA7A0A701234BEB42CD@EMAIL05.pnl.gov>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 192.101.109.31
Subject: AT_CHECK within for loop
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Jan 2011 07:21:33 -0000

In a nutshell, I've written a drop-in replacement of another tool and would=
 like to test that it functions identical to the original.  All you need to=
 know about these tools is that they take as input one or more binary files=
 and produce a single binary file.  Of course they do more than that, but t=
he details aren't important.  Also, in order to compare the binary output f=
iles, I've written another tool "pgcmp".

The input files are stored in a data directory.  The number of files in thi=
s directory can change.  It'd like to perform the same tests against every =
input file in the data directory, but have the ability to skep files which =
might not meet some sort of criteria.  Something like:

AT_SETUP([testing $file, no arguments])
for file in $datadir/*
do
	AS_IF([bad $file], [continue])
	AT_CHECK([replacement $file -o replacement.out])
	AT_CHECK([original $file -o original.out])
	AT_CHECK([pgcmp replacement.out original.out])
done
AT_CLEANUP

Is this allowed/okay?


From MAILER-DAEMON Fri Jan 28 09:47:23 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pipbf-0008MV-Ha
	for mharc-autoconf@gnu.org; Fri, 28 Jan 2011 09:47:23 -0500
Received: from [140.186.70.92] (port=60409 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pipbc-0008Gz-6A
	for autoconf@gnu.org; Fri, 28 Jan 2011 09:47:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1Pipba-000344-SR
	for autoconf@gnu.org; Fri, 28 Jan 2011 09:47:20 -0500
Received: from mx1.redhat.com ([209.132.183.28]:46729)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1Pipba-00033w-H2
	for autoconf@gnu.org; Fri, 28 Jan 2011 09:47:18 -0500
Received: from int-mx01.intmail.prod.int.phx2.redhat.com
	(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0SElHJ3016922
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Fri, 28 Jan 2011 09:47:17 -0500
Received: from [10.3.113.146] (ovpn-113-146.phx2.redhat.com [10.3.113.146])
	by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id p0SElHdx004308; Fri, 28 Jan 2011 09:47:17 -0500
Message-ID: <4D42D6F4.5030203@redhat.com>
Date: Fri, 28 Jan 2011 07:47:16 -0700
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14
	Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7
MIME-Version: 1.0
To: "Daily, Jeff A" <jeff.daily@pnl.gov>
References: <F0F90F8B4D282340A6D984CE8FA7A0A701234BEB42CD@EMAIL05.pnl.gov>
In-Reply-To: <F0F90F8B4D282340A6D984CE8FA7A0A701234BEB42CD@EMAIL05.pnl.gov>
X-Enigmail-Version: 1.1.2
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig2444AD4BA1B2964A520793CE"
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: AT_CHECK within for loop
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Jan 2011 14:47:21 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig2444AD4BA1B2964A520793CE
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 01/27/2011 05:20 PM, Daily, Jeff A wrote:
> In a nutshell, I've written a drop-in replacement of another tool and w=
ould like to test that it functions identical to the original.  All you n=
eed to know about these tools is that they take as input one or more bina=
ry files and produce a single binary file.  Of course they do more than t=
hat, but the details aren't important.  Also, in order to compare the bin=
ary output files, I've written another tool "pgcmp".
>=20
> The input files are stored in a data directory.  The number of files in=
 this directory can change.  It'd like to perform the same tests against =
every input file in the data directory, but have the ability to skep file=
s which might not meet some sort of criteria.  Something like:
>=20
> AT_SETUP([testing $file, no arguments])
> for file in $datadir/*
> do
> 	AS_IF([bad $file], [continue])
> 	AT_CHECK([replacement $file -o replacement.out])
> 	AT_CHECK([original $file -o original.out])
> 	AT_CHECK([pgcmp replacement.out original.out])
> done
> AT_CLEANUP
>=20
> Is this allowed/okay?

Absolutely!  AT_CHECK is just a macro that expands to shell code; it is
perfectly legal to surround it by additional shell code that adds
conditions on whether the AT_CHECK will be reached.

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig2444AD4BA1B2964A520793CE
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNQtb0AAoJEKeha0olJ0NqC+AH/3bYBo7KJDsqZXQgtN76eFfw
EfW9vyKWxNFp7vDEFOpek7b1i3GT4UL1X/ZQh18IHFG5tcn/rywbGi4pI4I72bXX
bFjEZcyOuJlgjRu17IaalIrwO5w1KRRMEVxPKnmgMmnshc98Jg4KgZYN4r1FrrAL
6fCKM2jj3IXZQvk5qF8ytxkYz3aLwbByQiORGE2X5qZc9171SmPNEHUUAHgqvL5E
3rXSXwRU8uvPBzBTfKHFyay5ahztYiN0gewFFY0vRoeesYni9zUZfx5Tgi8LMAqv
gbxbxyboCyEu7n8Vsmre9D6DJoj/wx3yp6wt1NdI3nT3XhXIRXYUyXxD2Xjymt8=
=+3UG
-----END PGP SIGNATURE-----

--------------enig2444AD4BA1B2964A520793CE--


From MAILER-DAEMON Fri Jan 28 12:50:31 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PisSs-0003yr-VB
	for mharc-autoconf@gnu.org; Fri, 28 Jan 2011 12:50:30 -0500
Received: from [140.186.70.92] (port=46779 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PisSq-0003yW-G5
	for autoconf@gnu.org; Fri, 28 Jan 2011 12:50:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1PisSp-0000P0-DX
	for autoconf@gnu.org; Fri, 28 Jan 2011 12:50:28 -0500
Received: from p3plsmtpa01-03.prod.phx3.secureserver.net ([72.167.82.83]:58656)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1PisSp-0000OL-2S
	for autoconf@gnu.org; Fri, 28 Jan 2011 12:50:27 -0500
Received: (qmail 3405 invoked from network); 28 Jan 2011 17:50:23 -0000
Received: from unknown (74.222.119.43)
	by p3plsmtpa01-03.prod.phx3.secureserver.net (72.167.82.83) with ESMTP;
	28 Jan 2011 17:50:23 -0000
Date: Fri, 28 Jan 2011 12:49:59 -0500 (EST)
From: "Joel E. Denny" <joeldenny@joeldenny.org>
X-X-Sender: jdenny@vega
To: Eric Blake <eblake@redhat.com>
In-Reply-To: <4D42D6F4.5030203@redhat.com>
Message-ID: <alpine.DEB.2.00.1101281229270.8466@vega>
References: <F0F90F8B4D282340A6D984CE8FA7A0A701234BEB42CD@EMAIL05.pnl.gov>
	<4D42D6F4.5030203@redhat.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 72.167.82.83
Cc: "Daily, Jeff A" <jeff.daily@pnl.gov>, "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: AT_CHECK within for loop
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Jan 2011 17:50:29 -0000

Hi,

On Fri, 28 Jan 2011, Eric Blake wrote:

> On 01/27/2011 05:20 PM, Daily, Jeff A wrote:
> > In a nutshell, I've written a drop-in replacement of another tool and would like to test that it functions identical to the original.  All you need to know about these tools is that they take as input one or more binary files and produce a single binary file.  Of course they do more than that, but the details aren't important.  Also, in order to compare the binary output files, I've written another tool "pgcmp".
> > 
> > The input files are stored in a data directory.  The number of files in this directory can change.  It'd like to perform the same tests against every input file in the data directory, but have the ability to skep files which might not meet some sort of criteria.  Something like:
> > 
> > AT_SETUP([testing $file, no arguments])
> > for file in $datadir/*
> > do
> > 	AS_IF([bad $file], [continue])
> > 	AT_CHECK([replacement $file -o replacement.out])
> > 	AT_CHECK([original $file -o original.out])
> > 	AT_CHECK([pgcmp replacement.out original.out])
> > done
> > AT_CLEANUP
> > 
> > Is this allowed/okay?

Jeff's AT_SETUP argument references $file.  That implies he really wants 
the AT_SETUP and AT_CLEANUP inside the loop.  That's a use case I've 
encountered recently.

> Absolutely!  AT_CHECK is just a macro that expands to shell code; it is
> perfectly legal to surround it by additional shell code that adds
> conditions on whether the AT_CHECK will be reached.

In my experience, that's true for AT_CHECK, but it isn't true for AT_SETUP 
and AT_CLEANUP.  In that case, the loop must be written using m4 
constructs not shell constructs.  Because I speak shell more easily than 
m4, I'd be happy to hear that I'm wrong.

Another alternative is to generate the Autotest script from some other 
script.  Ultimately, this is the solution I settled on in order to save 
myself and my co-workers from having to maintain complex m4 code.


From MAILER-DAEMON Fri Jan 28 12:57:56 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pisa4-0008Ro-Iu
	for mharc-autoconf@gnu.org; Fri, 28 Jan 2011 12:57:56 -0500
Received: from [140.186.70.92] (port=54394 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PisZy-0008MI-N9
	for autoconf@gnu.org; Fri, 28 Jan 2011 12:57:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1PisZw-0001rp-7J
	for autoconf@gnu.org; Fri, 28 Jan 2011 12:57:50 -0500
Received: from mx1.redhat.com ([209.132.183.28]:35528)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1PisZv-0001rF-WD
	for autoconf@gnu.org; Fri, 28 Jan 2011 12:57:48 -0500
Received: from int-mx10.intmail.prod.int.phx2.redhat.com
	(int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0SHvjkQ007368
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Fri, 28 Jan 2011 12:57:46 -0500
Received: from [10.3.113.146] (ovpn-113-146.phx2.redhat.com [10.3.113.146])
	by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id p0SHvjOs025217; Fri, 28 Jan 2011 12:57:45 -0500
Message-ID: <4D430398.8050900@redhat.com>
Date: Fri, 28 Jan 2011 10:57:44 -0700
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14
	Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7
MIME-Version: 1.0
To: "Joel E. Denny" <joeldenny@joeldenny.org>
References: <F0F90F8B4D282340A6D984CE8FA7A0A701234BEB42CD@EMAIL05.pnl.gov>
	<4D42D6F4.5030203@redhat.com>
	<alpine.DEB.2.00.1101281229270.8466@vega>
In-Reply-To: <alpine.DEB.2.00.1101281229270.8466@vega>
X-Enigmail-Version: 1.1.2
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig7DF0491FE814FEF544FA930F"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: "Daily, Jeff A" <jeff.daily@pnl.gov>, "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: AT_CHECK within for loop
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Jan 2011 17:57:54 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig7DF0491FE814FEF544FA930F
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 01/28/2011 10:49 AM, Joel E. Denny wrote:
>>> AT_SETUP([testing $file, no arguments])
>>> for file in $datadir/*
>>> do
>>> 	AS_IF([bad $file], [continue])
>>> 	AT_CHECK([replacement $file -o replacement.out])
>>> 	AT_CHECK([original $file -o original.out])
>>> 	AT_CHECK([pgcmp replacement.out original.out])
>>> done
>>> AT_CLEANUP

Single test, with multiple checks.

> In my experience, that's true for AT_CHECK, but it isn't true for AT_SE=
TUP=20
> and AT_CLEANUP.  In that case, the loop must be written using m4=20
> constructs not shell constructs.  Because I speak shell more easily tha=
n=20
> m4, I'd be happy to hear that I'm wrong.

Unfortunately correct - if you want multiple tests (that is, where you
can run a subset of the testsuite using just testsuite arguments, rather
than hacking the 'bad' script filter in that initial AS_IF of the
example above), then you must surround AT_SETUP inside an m4 loop to
repeat its expansion once per test.

It's a tradeoff of the level of test granularity you want; also, using
an m4 loop to expand AT_SETUP multiple times creates a larger testsuite,
so you don't gain from the compactness of a shell loop.

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig7DF0491FE814FEF544FA930F
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNQwOYAAoJEKeha0olJ0NqxUMH/izBOpCkJkQ5AHBuzgv7KoIY
zOxfm0Ki351kZH/yrx4Tmd9vf+x+F9baxiz7e2BOWCWKjZtTgrrSOZ3mUt/bTk4g
zDmfO1sdaNz+VNHiR0ngYD98SRGwRj3hKvxw+8mz7wYDgKvaoT8FPYuVR9/dp4Jq
SxS9R+1AHkwgU3HypXA2Fya1wdFG9ae/eiMaEv2Qp6ULstu+WHjRVSStzhZUMcbo
Ur4W4415H0bbAqRQCc9dWkDeDhsVXc7Z3VpbM7Vq4yRmAnV6qcPG4KQPG0WZuK9a
oWXAwhGbDZbnooVnmmfSik8uv6uK2IB4ykru0UFkUc6MfBHhlCiPF0GCseD4Xi4=
=9NYe
-----END PGP SIGNATURE-----

--------------enig7DF0491FE814FEF544FA930F--


From MAILER-DAEMON Fri Jan 28 14:06:54 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Piteo-0002Gn-CP
	for mharc-autoconf@gnu.org; Fri, 28 Jan 2011 14:06:54 -0500
Received: from [140.186.70.92] (port=52708 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pitem-0002Dz-FR
	for autoconf@gnu.org; Fri, 28 Jan 2011 14:06:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1Pitel-0007RN-9z
	for autoconf@gnu.org; Fri, 28 Jan 2011 14:06:52 -0500
Received: from smtpauth16.prod.mesa1.secureserver.net ([64.202.165.22]:35420)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1Pitel-0007RE-1r
	for autoconf@gnu.org; Fri, 28 Jan 2011 14:06:51 -0500
Received: (qmail 25658 invoked from network); 28 Jan 2011 18:53:33 -0000
Received: from unknown (74.222.119.43)
	by smtpauth16.prod.mesa1.secureserver.net (64.202.165.22) with ESMTP;
	28 Jan 2011 18:53:33 -0000
Date: Fri, 28 Jan 2011 14:06:38 -0500 (EST)
From: "Joel E. Denny" <joeldenny@joeldenny.org>
X-X-Sender: jdenny@vega
To: Eric Blake <eblake@redhat.com>
In-Reply-To: <4D430398.8050900@redhat.com>
Message-ID: <alpine.DEB.2.00.1101281309020.8466@vega>
References: <F0F90F8B4D282340A6D984CE8FA7A0A701234BEB42CD@EMAIL05.pnl.gov>
	<4D42D6F4.5030203@redhat.com>
	<alpine.DEB.2.00.1101281229270.8466@vega>
	<4D430398.8050900@redhat.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6
X-Received-From: 64.202.165.22
Cc: "Daily, Jeff A" <jeff.daily@pnl.gov>, "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: AT_CHECK within for loop
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Jan 2011 19:06:53 -0000

On Fri, 28 Jan 2011, Eric Blake wrote:

> Unfortunately correct - if you want multiple tests (that is, where you
> can run a subset of the testsuite using just testsuite arguments, rather
> than hacking the 'bad' script filter in that initial AS_IF of the
> example above), then you must surround AT_SETUP inside an m4 loop to
> repeat its expansion once per test.

Using the normal testsuite script interface to select from the good files 
is certainly part of the motivation in my case.  Moreover, the test code 
we've written per file is sometimes large and slow.  Thus, it's nice to 
see progress as soon as each file finishes.  Seeing progress is not a 
problem in verbose mode, but then it's nice that all the output is 
separated by file.  Regardless of whether verbose mode is enabled, we want 
a single final result per file.

> It's a tradeoff of the level of test granularity you want; also, using
> an m4 loop to expand AT_SETUP multiple times creates a larger testsuite,
> so you don't gain from the compactness of a shell loop.

So, for ease of use, large test code per file is motivation to give each 
file its own AT_SETUP.  For tarball size, large test code per file is 
motivation to have one AT_SETUP for all files.  In my case, the first 
concern wins, and the bandwidth will just have to be sacrificed.

A way to get the best of both worlds might be to permit shell functions 
containing AT_CHECK to be defined outside of AT_SETUP.  I believe that is 
not possible with autotest now, and I have no idea if it's feasible to 
implement.

For the record, we do not have an immediate need to reduce the size of our 
tarballs in this way, but our test suites continue to grow.


From MAILER-DAEMON Fri Jan 28 14:17:07 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pitoh-0006Gq-RZ
	for mharc-autoconf@gnu.org; Fri, 28 Jan 2011 14:17:07 -0500
Received: from [140.186.70.92] (port=48996 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pitof-0006Gk-Pe
	for autoconf@gnu.org; Fri, 28 Jan 2011 14:17:06 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1Pitoe-0000Za-Le
	for autoconf@gnu.org; Fri, 28 Jan 2011 14:17:05 -0500
Received: from mailout-de.gmx.net ([213.165.64.22]:60556)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1Pitoe-0000ZR-7h
	for autoconf@gnu.org; Fri, 28 Jan 2011 14:17:04 -0500
Received: (qmail invoked by alias); 28 Jan 2011 19:17:02 -0000
Received: from xdsl-89-0-182-62.netcologne.de (EHLO localhost.localdomain)
	[89.0.182.62]
	by mail.gmx.net (mp028) with SMTP; 28 Jan 2011 20:17:02 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX18yTGM+ZZ4yYGS3JFZH57z31aox/bSfdAdO0lt/hk
	IZgS87BnxLTEYW
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1Pitoa-00031N-QH; Fri, 28 Jan 2011 20:17:00 +0100
Date: Fri, 28 Jan 2011 20:17:00 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: "Joel E. Denny" <joeldenny@joeldenny.org>
Message-ID: <20110128191700.GC7234@gmx.de>
Mail-Followup-To: "Joel E. Denny" <joeldenny@joeldenny.org>,
	Eric Blake <eblake@redhat.com>,
	"Daily, Jeff A" <jeff.daily@pnl.gov>,
	"autoconf@gnu.org" <autoconf@gnu.org>
References: <F0F90F8B4D282340A6D984CE8FA7A0A701234BEB42CD@EMAIL05.pnl.gov>
	<4D42D6F4.5030203@redhat.com>
	<alpine.DEB.2.00.1101281229270.8466@vega>
	<4D430398.8050900@redhat.com>
	<alpine.DEB.2.00.1101281309020.8466@vega>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.00.1101281309020.8466@vega>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 213.165.64.22
Cc: "Daily, Jeff A" <jeff.daily@pnl.gov>, "autoconf@gnu.org" <autoconf@gnu.org>,
	Eric Blake <eblake@redhat.com>
Subject: Re: AT_CHECK within for loop
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Jan 2011 19:17:06 -0000

* Joel E. Denny wrote on Fri, Jan 28, 2011 at 08:06:38PM CET:
> A way to get the best of both worlds might be to permit shell functions 
> containing AT_CHECK to be defined outside of AT_SETUP.  I believe that is 
> not possible with autotest now, and I have no idea if it's feasible to 
> implement.

That is possible right now, either in atlocal.in or in PREPARE_TESTS
diversions:

m4_divert_push([PREPARE_TESTS])dnl
function_defined_once ()
{
  ...
}
m4_divert_pop([PREPARE_TESTS])dnl

Cheers,
Ralf


From MAILER-DAEMON Fri Jan 28 14:18:00 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PitpX-0006xQ-Vf
	for mharc-autoconf@gnu.org; Fri, 28 Jan 2011 14:18:00 -0500
Received: from [140.186.70.92] (port=49282 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PitpV-0006xL-SH
	for autoconf@gnu.org; Fri, 28 Jan 2011 14:17:58 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=002fed9a4=jeff.daily@pnl.gov>)
	id 1PitpU-0000hB-JO
	for autoconf@gnu.org; Fri, 28 Jan 2011 14:17:57 -0500
Received: from emailgw03.pnl.gov ([192.101.109.31]:50784)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=002fed9a4=jeff.daily@pnl.gov>)
	id 1PitpU-0000h6-B8
	for autoconf@gnu.org; Fri, 28 Jan 2011 14:17:56 -0500
X-IronPort-AV: E=Sophos;i="4.60,393,1291622400"; d="scan'208";a="37457113"
Received: from emailhub02.pnl.gov ([130.20.251.62])
	by emailgw03.pnl.gov with ESMTP/TLS/AES128-SHA;
	28 Jan 2011 11:17:55 -0800
Received: from Email05.pnl.gov ([130.20.251.69]) by emailhub02.pnl.gov
	([130.20.251.62]) with mapi; Fri, 28 Jan 2011 11:17:00 -0800
From: "Daily, Jeff A" <jeff.daily@pnl.gov>
To: "autoconf@gnu.org" <autoconf@gnu.org>
Date: Fri, 28 Jan 2011 11:17:53 -0800
Thread-Topic: echo arbitrary text in autotest?
Thread-Index: Acu/Hvr6SnoOAxZDTvqX1abWnK/qRA==
Message-ID: <F0F90F8B4D282340A6D984CE8FA7A0A701234BEB43FF@EMAIL05.pnl.gov>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 192.101.109.31
Subject: echo arbitrary text in autotest?
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Jan 2011 19:17:58 -0000

I want to dump some environment variables near the top of my tests suite si=
nce these variables affect my tests.  In my local.at file I have:
AT_INIT
AS_ECHO(["tests use seq $NP_START $NP_INC $NP_STOP"])

But it doesn't make it into my suite script at all.  I would like for the e=
cho to go to both stdout and the suite.log file.  How can I do this?


From MAILER-DAEMON Fri Jan 28 14:31:22 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Piu2U-0004V0-L6
	for mharc-autoconf@gnu.org; Fri, 28 Jan 2011 14:31:22 -0500
Received: from [140.186.70.92] (port=49558 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Piu2S-0004U1-Hd
	for autoconf@gnu.org; Fri, 28 Jan 2011 14:31:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1Piu2R-0002vW-1b
	for autoconf@gnu.org; Fri, 28 Jan 2011 14:31:20 -0500
Received: from smtpauth03.prod.mesa1.secureserver.net ([64.202.165.183]:57644)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1Piu2Q-0002ug-NE
	for autoconf@gnu.org; Fri, 28 Jan 2011 14:31:18 -0500
Received: (qmail 6881 invoked from network); 28 Jan 2011 19:31:17 -0000
Received: from unknown (74.222.119.43)
	by smtpauth03.prod.mesa1.secureserver.net (64.202.165.183) with ESMTP;
	28 Jan 2011 19:31:16 -0000
Date: Fri, 28 Jan 2011 14:31:05 -0500 (EST)
From: "Joel E. Denny" <joeldenny@joeldenny.org>
X-X-Sender: jdenny@vega
To: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
In-Reply-To: <20110128191700.GC7234@gmx.de>
Message-ID: <alpine.DEB.2.00.1101281425550.8466@vega>
References: <F0F90F8B4D282340A6D984CE8FA7A0A701234BEB42CD@EMAIL05.pnl.gov>
	<4D42D6F4.5030203@redhat.com>
	<alpine.DEB.2.00.1101281229270.8466@vega>
	<4D430398.8050900@redhat.com>
	<alpine.DEB.2.00.1101281309020.8466@vega>
	<20110128191700.GC7234@gmx.de>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6
X-Received-From: 64.202.165.183
Cc: "Daily, Jeff A" <jeff.daily@pnl.gov>, "autoconf@gnu.org" <autoconf@gnu.org>,
	Eric Blake <eblake@redhat.com>
Subject: Re: AT_CHECK within for loop
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Jan 2011 19:31:21 -0000

On Fri, 28 Jan 2011, Ralf Wildenhues wrote:

> * Joel E. Denny wrote on Fri, Jan 28, 2011 at 08:06:38PM CET:
> > A way to get the best of both worlds might be to permit shell functions 
> > containing AT_CHECK to be defined outside of AT_SETUP.  I believe that is 
> > not possible with autotest now, and I have no idea if it's feasible to 
> > implement.
> 
> That is possible right now, either in atlocal.in or in PREPARE_TESTS
> diversions:
> 
> m4_divert_push([PREPARE_TESTS])dnl
> function_defined_once ()
> {
>   ...
> }
> m4_divert_pop([PREPARE_TESTS])dnl

That's interesting, and I wasn't aware of it.  However, when I tried 
expanding AT_CHECK inside that function, autotest gave the usual 
complaint:

  tmp.at:4: error: AT_CHECK: missing AT_SETUP detected

I'm running Autoconf 2.65.  Does that matter?



From MAILER-DAEMON Fri Jan 28 14:37:35 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Piu8V-0007Dm-8R
	for mharc-autoconf@gnu.org; Fri, 28 Jan 2011 14:37:35 -0500
Received: from [140.186.70.92] (port=58769 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Piu8S-0007DZ-I0
	for autoconf@gnu.org; Fri, 28 Jan 2011 14:37:33 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1Piu8R-0004TZ-2D
	for autoconf@gnu.org; Fri, 28 Jan 2011 14:37:32 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:44261)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1Piu8Q-0004Su-Md
	for autoconf@gnu.org; Fri, 28 Jan 2011 14:37:31 -0500
Received: (qmail invoked by alias); 28 Jan 2011 19:37:28 -0000
Received: from xdsl-89-0-182-62.netcologne.de (EHLO localhost.localdomain)
	[89.0.182.62]
	by mail.gmx.net (mp001) with SMTP; 28 Jan 2011 20:37:28 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX19cLq45N1lcuviEWA/Fjhx34rDoHCu9tuNQJZ2Fn3
	6pHRhna9UI8oTq
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1Piu8M-00033R-TC; Fri, 28 Jan 2011 20:37:26 +0100
Date: Fri, 28 Jan 2011 20:37:26 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: "Joel E. Denny" <joeldenny@joeldenny.org>
Message-ID: <20110128193726.GF7234@gmx.de>
Mail-Followup-To: "Joel E. Denny" <joeldenny@joeldenny.org>,
	Eric Blake <eblake@redhat.com>,
	"Daily, Jeff A" <jeff.daily@pnl.gov>,
	"autoconf@gnu.org" <autoconf@gnu.org>
References: <F0F90F8B4D282340A6D984CE8FA7A0A701234BEB42CD@EMAIL05.pnl.gov>
	<4D42D6F4.5030203@redhat.com>
	<alpine.DEB.2.00.1101281229270.8466@vega>
	<4D430398.8050900@redhat.com>
	<alpine.DEB.2.00.1101281309020.8466@vega>
	<20110128191700.GC7234@gmx.de>
	<alpine.DEB.2.00.1101281425550.8466@vega>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.00.1101281425550.8466@vega>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 213.165.64.23
Cc: "Daily, Jeff A" <jeff.daily@pnl.gov>, "autoconf@gnu.org" <autoconf@gnu.org>,
	Eric Blake <eblake@redhat.com>
Subject: Re: AT_CHECK within for loop
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Jan 2011 19:37:33 -0000

* Joel E. Denny wrote on Fri, Jan 28, 2011 at 08:31:05PM CET:
> On Fri, 28 Jan 2011, Ralf Wildenhues wrote:
> > * Joel E. Denny wrote on Fri, Jan 28, 2011 at 08:06:38PM CET:
> > > A way to get the best of both worlds might be to permit shell functions 
> > > containing AT_CHECK to be defined outside of AT_SETUP.  I believe that is 
> > > not possible with autotest now, and I have no idea if it's feasible to 
> > > implement.
> > 
> > That is possible right now, either in atlocal.in or in PREPARE_TESTS
> > diversions:

> That's interesting, and I wasn't aware of it.  However, when I tried 
> expanding AT_CHECK inside that function, autotest gave the usual 
> complaint:
> 
>   tmp.at:4: error: AT_CHECK: missing AT_SETUP detected

Ah, I think it doesn't work to expand AT_CHECK inside a function.
Sorry for overlooking that requirement of yours.

It might be possible to rework _AT_CHECK so that it will work in
such a setup, should mostly be a matter of assigning some values
that are currently held in m4 macros only to shell variables in
AT_SETUP, and then referencing them in _AT_CHECK.  This would
probably enlarge testsuite code a bit, but maybe negligible.

Cheers,
Ralf


From MAILER-DAEMON Sat Jan 29 04:48:22 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pj7Pq-0006ml-HP
	for mharc-autoconf@gnu.org; Sat, 29 Jan 2011 04:48:22 -0500
Received: from [140.186.70.92] (port=46439 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pj7Pm-0006ly-Mv
	for autoconf@gnu.org; Sat, 29 Jan 2011 04:48:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1Pj7Pk-00061u-PW
	for autoconf@gnu.org; Sat, 29 Jan 2011 04:48:18 -0500
Received: from mailout-de.gmx.net ([213.165.64.22]:53461)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1Pj7Pk-00061X-8t
	for autoconf@gnu.org; Sat, 29 Jan 2011 04:48:16 -0500
Received: (qmail invoked by alias); 29 Jan 2011 09:48:14 -0000
Received: from xdsl-89-0-84-95.netcologne.de (EHLO localhost.localdomain)
	[89.0.84.95]
	by mail.gmx.net (mp030) with SMTP; 29 Jan 2011 10:48:14 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX18mckl5VTwmqleLn3RBNQd9AHJ2XEvPWFo5KLzbwN
	TcF8Ihnv35BD6j
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1Pj7Ph-00030X-Qz; Sat, 29 Jan 2011 10:48:13 +0100
Date: Sat, 29 Jan 2011 10:48:13 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: "Daily, Jeff A" <jeff.daily@pnl.gov>
Message-ID: <20110129094813.GE11288@gmx.de>
Mail-Followup-To: "Daily, Jeff A" <jeff.daily@pnl.gov>,
	"autoconf@gnu.org" <autoconf@gnu.org>
References: <F0F90F8B4D282340A6D984CE8FA7A0A701234BEB43FF@EMAIL05.pnl.gov>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <F0F90F8B4D282340A6D984CE8FA7A0A701234BEB43FF@EMAIL05.pnl.gov>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 213.165.64.22
Cc: "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: echo arbitrary text in autotest?
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 29 Jan 2011 09:48:19 -0000

* Daily, Jeff A wrote on Fri, Jan 28, 2011 at 08:17:53PM CET:
> I want to dump some environment variables near the top of my tests
> suite since these variables affect my tests.  In my local.at file I
> have:
> AT_INIT
> AS_ECHO(["tests use seq $NP_START $NP_INC $NP_STOP"])
> 
> But it doesn't make it into my suite script at all.  I would like for
> the echo to go to both stdout and the suite.log file.  How can I do
> this?

I think this should work (untested):

m4_divert_push([PREPARE_TESTS])dnl
AS_ECHO(["tests use seq $NP_START $NP_INC $NP_STOP"])
AS_ECHO(["tests use seq $NP_START $NP_INC $NP_STOP"]) >&AS_MESSAGE_LOG_FD
m4_divert_pop([PREPARE_TESTS])dnl

Cheers,
Ralf


From MAILER-DAEMON Sat Jan 29 04:52:14 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pj7Ta-0007Rc-KU
	for mharc-autoconf@gnu.org; Sat, 29 Jan 2011 04:52:14 -0500
Received: from [140.186.70.92] (port=33093 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pj7TW-0007RV-M8
	for autoconf@gnu.org; Sat, 29 Jan 2011 04:52:11 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1Pj7TV-0006c6-Jc
	for autoconf@gnu.org; Sat, 29 Jan 2011 04:52:10 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:38825)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1Pj7TV-0006bw-5o
	for autoconf@gnu.org; Sat, 29 Jan 2011 04:52:09 -0500
Received: (qmail invoked by alias); 29 Jan 2011 09:52:07 -0000
Received: from xdsl-89-0-84-95.netcologne.de (EHLO localhost.localdomain)
	[89.0.84.95]
	by mail.gmx.net (mp035) with SMTP; 29 Jan 2011 10:52:07 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX1+WbBFREv2WnOZpEgE1VzzMg39lUDkYlgYcFvIKlT
	qjEDvrJCESsoEp
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1Pj7TS-00030p-De; Sat, 29 Jan 2011 10:52:06 +0100
Date: Sat, 29 Jan 2011 10:52:06 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: "Joel E. Denny" <joeldenny@joeldenny.org>, Eric Blake <eblake@redhat.com>,
	"Daily, Jeff A" <jeff.daily@pnl.gov>, "autoconf@gnu.org" <autoconf@gnu.org>
Message-ID: <20110129095206.GF11288@gmx.de>
Mail-Followup-To: "Joel E. Denny" <joeldenny@joeldenny.org>,
	Eric Blake <eblake@redhat.com>,
	"Daily, Jeff A" <jeff.daily@pnl.gov>,
	"autoconf@gnu.org" <autoconf@gnu.org>
References: <F0F90F8B4D282340A6D984CE8FA7A0A701234BEB42CD@EMAIL05.pnl.gov>
	<4D42D6F4.5030203@redhat.com>
	<alpine.DEB.2.00.1101281229270.8466@vega>
	<4D430398.8050900@redhat.com>
	<alpine.DEB.2.00.1101281309020.8466@vega>
	<20110128191700.GC7234@gmx.de>
	<alpine.DEB.2.00.1101281425550.8466@vega>
	<20110128193726.GF7234@gmx.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20110128193726.GF7234@gmx.de>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 213.165.64.23
Cc: 
Subject: Re: AT_CHECK within for loop
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 29 Jan 2011 09:52:12 -0000

* Ralf Wildenhues wrote on Fri, Jan 28, 2011 at 08:37:26PM CET:
> * Joel E. Denny wrote on Fri, Jan 28, 2011 at 08:31:05PM CET:
> >   tmp.at:4: error: AT_CHECK: missing AT_SETUP detected
> 
> Ah, I think it doesn't work to expand AT_CHECK inside a function.

Wrong again: I think it currently doesn't work to use AT_CHECK outside
or AT_SETUP/AT_CLEANUP pairs.

Sorry for the noise.  The rest should still hold.

> Sorry for overlooking that requirement of yours.
> 
> It might be possible to rework _AT_CHECK so that it will work in
> such a setup, should mostly be a matter of assigning some values
> that are currently held in m4 macros only to shell variables in
> AT_SETUP, and then referencing them in _AT_CHECK.  This would
> probably enlarge testsuite code a bit, but maybe negligible.


From MAILER-DAEMON Mon Jan 31 11:34:54 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PjwiM-0004Sv-NB
	for mharc-autoconf@gnu.org; Mon, 31 Jan 2011 11:34:54 -0500
Received: from [140.186.70.92] (port=45512 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PjwiI-0004Qi-UB
	for autoconf@gnu.org; Mon, 31 Jan 2011 11:34:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PjwiH-0006Ak-EH
	for autoconf@gnu.org; Mon, 31 Jan 2011 11:34:50 -0500
Received: from mmp1.nems.noaa.gov ([140.90.121.156]:52796)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PjwiH-0006AO-CL
	for autoconf@gnu.org; Mon, 31 Jan 2011 11:34:49 -0500
Received: from [10.202.232.94] ([140.90.47.70])
	by mmp1.nems.noaa.gov (Sun Java System Messaging Server 6.2-6.01 (built
	Apr 3
	2006)) with ESMTPSA id <0LFW00BUKBDZ6520@mmp1.nems.noaa.gov> for
	autoconf@gnu.org; Mon, 31 Jan 2011 11:34:47 -0500 (EST)
Date: Mon, 31 Jan 2011 11:34:47 -0500
From: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
To: autoconf@gnu.org
Message-id: <4D46E4A7.1020303@noaa.gov>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-Enigmail-Version: 1.1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
	Gecko/20101207 Thunderbird/3.1.7
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 140.90.121.156
Subject: flags for different fortran compilers
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Jan 2011 16:34:52 -0000

Dear autoconf community,

I am trying to replicate the install of an existing package using autoconf.
We need the package to be able to compile with a wide variety of
compilers. In the original setup this was done by the make.macros file
that would give a list of flags for each compiler.
>From what I understand autoconf has a few built in macros that help with
the choice of flags such as AC_FC_FREEFORM, but unless I am missing
something that won't cover all the flags. What is then the recommended
way to handle this? I could have a bunch of 'case' in my configure.ac
file but I wanted to see if there wouldn't be a more elegant way... I am
new to fortran too so that may sound crazy but couldn't there be a
library of flag for known fortran compiler that autoconf could select on
the fly like for the free form one?

Thanks,
Cheers,
Eve-Marie

-- 
Eve-Marie Devaliere, MS
Senior Science System/Software Engineer
Joint Center for Satellite Data Assimilation (JCSDA)


The contents of this message are mine personally and do not necessarily reflect any position of NOAA



From MAILER-DAEMON Mon Jan 31 12:21:18 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PjxRF-0005nX-Rp
	for mharc-autoconf@gnu.org; Mon, 31 Jan 2011 12:21:17 -0500
Received: from [140.186.70.92] (port=33488 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PjxRC-0005jn-Sj
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:21:16 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PjxRA-0000tB-Iu
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:21:13 -0500
Received: from mmp2.nems.noaa.gov ([140.90.121.157]:38248)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PjxRA-0000su-E6
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:21:12 -0500
Received: from [10.202.232.94] ([140.90.47.70])
	by mmp2.nems.noaa.gov (Sun Java System Messaging Server 6.2-6.01 (built
	Apr 3
	2006)) with ESMTPSA id <0LFW00J28DJAT900@mmp2.nems.noaa.gov> for
	autoconf@gnu.org; Mon, 31 Jan 2011 12:21:11 -0500 (EST)
Date: Mon, 31 Jan 2011 12:21:10 -0500
From: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
In-reply-to: <20110114191325.GH16163@gmx.de>
To: autoconf@gnu.org
Message-id: <4D46EF86.5000201@noaa.gov>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-Enigmail-Version: 1.1.1
References: <4D307ABA.6000607@noaa.gov> <20110114191325.GH16163@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
	Gecko/20101207 Thunderbird/3.1.7
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 140.90.121.157
Subject: Re: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Jan 2011 17:21:16 -0000

Thanks Ralph! I am now trying to make my package more portable so I am
working on the part below

> Do you need the package to be very portable?  If so, I suggest you go to
> the Autoconf Macro Archive and grab two Fortran-related macros,
> AX_F90_MODULE_EXTENSION and AX_F90_MODULE_FLAG.
>
> We then use roughly the following in configure.ac besides what you
> already have:
>
> # Find out how to add to the Fortran include path.
> AX_F90_MODULE_FLAG
> # The module flag may be "-I " or so, and some make implementations
> # swallow trailing space in variable settings, so we employ a little
> # trick.
> AC_SUBST([empty], [""])
> AC_SUBST([FC_MODINC], [$ax_f90_modflag'${empty}'])
> # Find out the file name extensions of Fortran module files.
> AX_F90_MODULE_EXTENSION
> if test "x$ax_f90_modext" != xunknown; then
>   FC_MODEXT=$ax_f90_modext
> else
>   FC_MODEXT=$ax_f90_modext
> fi
> AC_SUBST([FC_MODEXT]) 
isn't the if/else above the same thing?

When I run autoconf I get:
configure.ac:81: warning: AC_CACHE_VAL(ax_f90_modflag, ...): suspicious
cache-id, must contain _cv_ to be cached
autoconf/general.m4:2047: AC_CACHE_VAL is expanded from...
autoconf/general.m4:2060: AC_CACHE_CHECK is expanded from...
m4/ax_f90_module_flag.m4:53: AX_F90_MODULE_FLAG is expanded from...
configure.ac:81: the top level
configure.ac:88: warning: AC_CACHE_VAL(ax_f90_modext, ...): suspicious
cache-id, must contain _cv_ to be cached
autoconf/general.m4:2047: AC_CACHE_VAL is expanded from...
autoconf/general.m4:2060: AC_CACHE_CHECK is expanded from...
m4/ax_f90_module_extension.m4:42: AX_F90_MODULE_EXTENSION is expanded
from...
configure.ac:88: the top level

Did I do anything wrong? I have both AX_F90_MODULE_FLAG and
AX_F90_MODULE_EXTENSION in my m4 directory and ran aclocal -I m4
I also have AC_CONFIG_MACRO_DIR([m4]) in my configure.ac file somewhere
up from that section.... (it seems to find them anyways)
I get the same warnings running automake and if I keep on going (tried
since there were warnings only) I get the following for ./configure
checking fortran 90 modules inclusion flag... not found
checking fortran 90 modules extension... unknown
./configure: line 4710: syntax error near unexpected token `('
./configure: line 4710: `  $as_echo_n "(cached) " >&6'

Thanks,
Cheers,
Eve-Marie




From MAILER-DAEMON Mon Jan 31 12:22:04 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PjxS0-0006ed-Lu
	for mharc-autoconf@gnu.org; Mon, 31 Jan 2011 12:22:04 -0500
Received: from [140.186.70.92] (port=34186 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PjxRt-0006Xf-U2
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:22:03 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jeg@krellinst.org>) id 1PjxRp-00016t-FS
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:21:57 -0500
Received: from vermont.krellinst.org ([216.81.228.133]:54904)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jeg@krellinst.org>) id 1PjxRp-00014P-0R
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:21:53 -0500
Received: from 173-30-125-90.client.mchsi.com ([173.30.125.90]
	helo=localhost.localdomain)
	by vermont.krellinst.org with esmtpsa (TLSv1:CAMELLIA256-SHA:256)
	(Exim 4.69 (FreeBSD)) (envelope-from <jeg@krellinst.org>)
	id 1PjxRd-0006yT-OH; Mon, 31 Jan 2011 11:21:42 -0600
Message-ID: <4D46EFDB.4090808@krellinst.org>
Date: Mon, 31 Jan 2011 11:22:35 -0600
From: Jim Galarowicz <jeg@krellinst.org>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14
	Thunderbird/3.1.7
MIME-Version: 1.0
To: autoconf@gnu.org
X-krellinst-org-MailScanner-Information: Please contact the Krell Institute
	for more information
X-MailScanner-ID: 1PjxRd-0006yT-OH
X-krellinst-org-MailScanner: Found to be clean
X-krellinst-org-MailScanner-SpamCheck: not spam, SpamAssassin (not cached,
	score=-95.45, required 5, FORGED_RCVD_HELO 0.05, HTML_20_30 0.50,
	J_CHICKENPOX_34 0.60, J_CHICKENPOX_63 0.60, J_CHICKENPOX_65 0.60,
	RATWARE_GECKO_BUILD 0.83, SARE_OBFU_PART_INA 0.79, TW_IB 0.08,
	USER_IN_WHITELIST -100.00, WEIRD_PORT 0.51)
X-krellinst-org-MailScanner-From: jeg@krellinst.org
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 216.81.228.133
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Content-Filtered-By: Mailman/MimeDel 2.1.5
Subject: Problems when using an alternative autotools installation
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Jan 2011 17:22:03 -0000


Hi,

I'm trying to configure for an alternative install of xerces-c on a machine where the version of
xerces-c is too old for the software we are developing and where we do not have root access to allow us to
install a newer version.

This machine also has very old autotools, so I've built autoconf, automake, m4, and libtool in order
to do the configuration.   My problem is that I'm getting this set of errors when using the new autotools
alternative installation when configuring the xerces-c package.

I also get these errors when I configure on my laptop using the alternative autotools packages.
However, I've played around on my laptop where I can install autotools packages into the default location
and have found I only fail the configuration of xerces-c on my laptop when I use the alternative autotools
packages and not when they are installed in the default locations.

So, there is apparently something wrong with my set-up for using the alternative install. I've been searching the
internet for clues and thought I found the answer when I found information about setting ACLOCAL_FLAGS:
          ACLOCAL_FLAGS=-I /opt/newest_autotools_root/share/aclocal
But that didn't make any difference.

The searches for information on the internet pointed to gettext and gettext-devel needing to be
installed.  However, these packages are installed on my laptop where I can reproduce the problem I'm
seeing on the machine where I don't have root privileges.

SOME EXPERIMENTS I RAN as stated above:

When I try to bootstrap libcbtf-xml I see the bootstrap problem (autoconf?) when using the alternative location autotools root.
The autotools root has versions:
     autoconf - 2.65
     automake - 1.11.1
     m4       - 1.13
     libtool  - 2.2.6b

I can bootstrap on my laptop successfully w/o the autotools_root and I have these versions installed:
     autoconf - 2.63
     automake - 1.11.1
     m4       - 1.12
     libtool  - 2.2.6-11

So, I redid the autotool root components to match the versions in my install and loaded the module.  Still get the errors below.


So, then I upgraded the versions of the autotools root to:
     autoconf - 2.68
     automake - 1.11.1
     m4       - 1.15
     libtool  - 2.2.10

Still fails as below but autoconf is putting out a lot more messages about what is going on but the errors are still there as well as the warnings.

     configure:15501: error: possibly undefined macro: AC_LIB_RPATH
     configure:15514: error: possibly undefined macro:
AC_LIB_WITH_FINAL_PREFIX
configure:15858: error: possibly undefined macro: AC_LIB_APPENDTOVAR


I'm just checking to see if anyone might have any ideas on this.  So far, I'm not able to find
the correct solution on the internet. Does anyone have any thoughts/ideas on how to solve the problem?
Almost seems like something is missing in the autotools module where I setup LD_LIBRARY_PATH and BIN, and now recently ACLOCAL_FLAGS,
variables.  Are there other variables that should be set?

I've inserted the contents the key files mentioned above into this email (below).

Any help would be greatly appreciated!

Thanks,
Jim G

------------------------------------------------
ERRORS:
------------------------------------------------


[jeg@localhost libcbtf-xml]$ ./bootstrap
before aclocal
configure.ac:57: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not 
m4_defun'd
m4/ax_xercesc.m4:47: AX_XERCESC is expanded from...
configure.ac:57: the top level
configure.ac:57: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd
before libtoolize
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
before autoheader
configure.ac:57: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not 
m4_defun'd
m4/ax_xercesc.m4:47: AX_XERCESC is expanded from...
configure.ac:57: the top level
configure.ac:57: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd
before automake
configure.ac:57: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not 
m4_defun'd
m4/ax_xercesc.m4:47: AX_XERCESC is expanded from...
configure.ac:57: the top level
configure.ac:57: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd
before autoconf
configure.ac:57: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not 
m4_defun'd
m4/ax_xercesc.m4:47: AX_XERCESC is expanded from...
configure.ac:57: the top level
configure.ac:57: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd
configure:14975: error: possibly undefined macro: AC_LIB_PREPARE_PREFIX
       If this token and others are legitimate, please use 
m4_pattern_allow.
       See the Autoconf documentation.
configure:14976: error: possibly undefined macro: AC_LIB_RPATH
configure:14989: error: possibly undefined macro: AC_LIB_WITH_FINAL_PREFIX
configure:15323: error: possibly undefined macro: AC_LIB_APPENDTOVAR
[jeg@localhost libcbtf-xml]$


------------------------------------------------
THE BOOTSTRAP FILE I'm using: bootstrap:
------------------------------------------------

#! /bin/sh
################################################################################
# Copyright (c) 2010 Krell Institute. All Rights Reserved.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA
################################################################################

touch config.rpath
echo "before aclocal"
aclocal --force -I ./m4
echo "before libtoolize"
libtoolize --copy --force
echo "before autoheader"
autoheader --force
echo "before automake"
automake --add-missing --copy --force-missing --foreign
echo "before autoconf"
autoconf -d





------------------------------------------------
AUTOTOOLS MODULE FILE I'm USING:
------------------------------------------------


#%Module1.0#####################################################################
##
## autotools with libtool-2.2.6b modulefile
##
proc ModulesHelp { } {
         global version openmpi

         puts stderr "\tautotools with libtool-2.2.6b environment.\n"
}

module-whatis   "Loads the autotools with libtool-2.2.6b runtime environment"

# for Tcl script use only
set     version         2.2.6b
set     autotools        /opt/newest_autotools_root

setenv ACLOCAL_DIR "$autotools/share/aclocal"
setenv ACLOCAL "$autotools/bin/aclocal -I $autotools/share/aclocal"
setenv ACLOCAL_FLAGS "-I $autotools/share/aclocal"


prepend-path    PATH			$autotools/bin
prepend-path    MANPATH			$autotools/share/man

eval set  [ array get env HOME ]
set	ownmoddir	$HOME/privatemodules

set unameexe  "/bin/uname"
if { [file exists $unameexe] } {
     set machinetype [ exec /bin/uname -m ]
     if { $machinetype == "x86"  ||
          $machinetype == "i386" ||
          $machinetype == "i486" ||
          $machinetype == "i586" ||
	 $machinetype == "i686" } {

	prepend-path LD_LIBRARY_PATH $autotools/lib
     }
     if { $machinetype == "x86_64" } {
	prepend-path LD_LIBRARY_PATH /usr/lib64
	prepend-path LD_LIBRARY_PATH $autotools/lib64
	prepend-path LD_LIBRARY_PATH $autotools/lib
     }
     if { $machinetype == "ia64" } {
	prepend-path LD_LIBRARY_PATH $autotools/lib
     }
}

------------------------------------------------
FOR COMPLETENESS:  The m4/ax_xercesc.m4 that one of our developers found for configuring xerces-c.
------------------------------------------------


# ===========================================================================
#        http://www.gnu.org/software/autoconf-archive/ax_xercesc.html
# ===========================================================================
#
# SYNOPSIS
#
#   AX_XERCESC
#
# DESCRIPTION
#
#   Define $HAVE_LIBXERCES_C, $LIBXERCES_C, and $LTLIBXERCES_C to signify
#   whether Xerces is available.
#
# LICENSE
#
#   Copyright (c) 2008 Ronald Landheer-Cieslak<blytkerchan@users.sourceforge.net>
#
#   This program is free software; you can redistribute it and/or modify it
#   under the terms of the GNU General Public License as published by the
#   Free Software Foundation; either version 2 of the License, or (at your
#   option) any later version.
#
#   This program is distributed in the hope that it will be useful, but
#   WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
#   Public License for more details.
#
#   You should have received a copy of the GNU General Public License along
#   with this program. If not, see<http://www.gnu.org/licenses/>.
#
#   As a special exception, the respective Autoconf Macro's copyright owner
#   gives unlimited permission to copy, distribute and modify the configure
#   scripts that are the output of Autoconf when processing the Macro. You
#   need not follow the terms of the GNU General Public License when using
#   or distributing such scripts, even though portions of the text of the
#   Macro appear in them. The GNU General Public License (GPL) does govern
#   all other use of the material that constitutes the Autoconf Macro.
#
#   This special exception to the GPL applies to versions of the Autoconf
#   Macro released by the Autoconf Archive. When you make and distribute a
#   modified version of the Autoconf Macro, you may extend this special
#   exception to the GPL to apply to your modified version as well.

#serial 5

AU_ALIAS([RLC_XERCESC], [AX_XERCESC])
AC_DEFUN([AX_XERCESC],
[
   dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
   AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
   AC_REQUIRE([AC_LIB_RPATH])

   AC_LANG_PUSH(C++)
   AX_XERCESC_BODY()

   ac_save_CPPFLAGS="$CPPFLAGS"
   AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCXERCES_C])

   AC_CACHE_CHECK([for libxerces-c], [ac_cv_libxerces_c], [
     ac_save_LIBS="$LIBS"
     LIBS="$LIBS $LIBXERCES_C $LIBICONV"
     AC_TRY_LINK([
#include<xercesc/util/PlatformUtils.hpp>
#ifdef XERCES_CPP_NAMESPACE_USE
XERCES_CPP_NAMESPACE_USE
#endif
          ], [
try
{
    XMLPlatformUtils::Initialize();
}
catch (...)
{
    // ...
}
XMLPlatformUtils::Terminate();
          ], [ac_cv_libxerces_c=yes], [ac_cv_libxerces_c=no])
     LIBS="$ac_save_LIBS"
   ])
   if test "$ac_cv_libxerces_c" = yes; then
     HAVE_LIBXERCES_C=yes
     AC_DEFINE(HAVE_LIBXERCES_C, 1, [Define if you have the xerces-c library.])
     AC_MSG_CHECKING([how to link with libxerces-c])
     AC_MSG_RESULT([$LIBXERCES_C])
   else
     HAVE_LIBXERCES_C=no
     CPPFLAGS="$ac_save_CPPFLAGS"
     LIBXERCES_C=
     LTLIBXERCES_C=
   fi

   AC_LANG_POP(C++)

   AC_SUBST(HAVE_LIBXERCES_C)
   AC_SUBST(LIBXERCES_C)
   AC_SUBST(LTLIBXERCES_C)
])

AC_DEFUN([AX_XERCESC_BODY],
[
   dnl By default, look in $includedir and $libdir.
   use_additional=yes
   AC_LIB_WITH_FINAL_PREFIX([
     eval additional_includedir=\"$includedir\"
     eval additional_libdir=\"$libdir\"
   ])
   AC_ARG_WITH([libxerces-c-prefix],
[  --with-libxerces-c-prefix[=DIR]  search for libxerces-c in DIR/include and DIR/lib
   --without-libxerces-c-prefix     don't search for libxerces-c in includedir and libdir],
[
     if test "X$withval" = "Xno"; then
       use_additional=no
     else
       if test "X$withval" = "X"; then
         AC_LIB_WITH_FINAL_PREFIX([
           eval additional_includedir=\"$includedir\"
           eval additional_libdir=\"$libdir\"
         ])
       else
         additional_includedir="$withval/include"
         additional_libdir="$withval/lib"
       fi
     fi
])
   dnl Search the library and its dependencies in $additional_libdir and
   dnl $LDFLAGS. Using breadth-first-seach.
   LIBXERCES_C=
   LTLIBXERCES_C=
   INCXERCES_C=
   rpathdirs=
   ltrpathdirs=
   names_already_handled=
   names_next_round='xerces-c'
   while test -n "$names_next_round"; do
     names_this_round="$names_next_round"
     names_next_round=
     for name in $names_this_round; do
       already_handled=
       for n in $names_already_handled; do
         if test "$n" = "$name"; then
           already_handled=yes
           break
         fi
       done
       if test -z "$already_handled"; then
         names_already_handled="$names_already_handled $name"
         dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
         dnl or AC_LIB_HAVE_LINKFLAGS call.
         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
         eval value=\"\$HAVE_LIB$uppername\"
         if test -n "$value"; then
           if test "$value" = yes; then
             eval value=\"\$LIB$uppername\"
             test -z "$value" || LIBXERCES_C="${LIBXERCES_C}${LIBXERCES_C:+ }$value"
             eval value=\"\$LTLIB$uppername\"
             test -z "$value" || LTLIBXERCES_C="${LTLIBXERCES_C}${LTLIBXERCES_C:+ }$value"
           else
             dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
             dnl that this library doesn't exist. So just drop it.
             :
           fi
         else
           dnl Search the library lib$name in $additional_libdir and $LDFLAGS
           found_dir=
           found_la=
           found_so=
           found_a=
           if test $use_additional = yes; then
             found_so="$additional_libdir/lib$name.$shlibext*"
             for i in $found_so; do
               if test -f $i&&  test -x $i; then
                 found_so="$i"
                 break
               fi
             done
             if test -n "$shlibext"&&  test -f $found_so; then
               found_dir="$additional_libdir"
               if test -f "$additional_libdir/lib$name.la"; then
                 found_la="$additional_libdir/lib$name.la"
               fi
             else
               if test -f "$additional_libdir/lib$name.$libext"; then
                 found_dir="$additional_libdir"
                 found_a="$additional_libdir/lib$name.$libext"
                 if test -f "$additional_libdir/lib$name.la"; then
                   found_la="$additional_libdir/lib$name.la"
                 fi
               fi
             fi
           fi
           if test "X$found_dir" = "X"; then
             for x in $LDFLAGS $LTLIBXERCES_C; do
               AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
               case "$x" in
                 -L*)
                   dir=`echo "X$x" | sed -e 's/^X-L//'`
                   if test -n "$shlibext"; then
                     found_dir="$dir"
                     found_so="$dir/lib$name.$shlibext*"
                          for i in $found_so; do
                                                     if test -f $i&&  test -x $i; then
                                                       found_so="$i"
                                                       break
                                                     fi
                                                   done

                     if test -f "$dir/lib$name.la"; then
                       found_la="$dir/lib$name.la"
                     fi
                   else
                     if test -f "$dir/lib$name.$libext"; then
                       found_dir="$dir"
                       found_a="$dir/lib$name.$libext"
                       if test -f "$dir/lib$name.la"; then
                         found_la="$dir/lib$name.la"
                       fi
                     fi
                   fi
                   ;;
               esac
               if test "X$found_dir" != "X"; then
                 break
               fi
             done
           fi
           if test "X$found_dir" != "X"; then
             dnl Found the library.
             LTLIBXERCES_C="${LTLIBXERCES_C}${LTLIBXERCES_C:+ }-L$found_dir -l$name"
             if test "X$found_so" != "X"; then
               dnl Linking with a shared library. We attempt to hardcode its
               dnl directory into the executable's runpath, unless it's the
               dnl standard /usr/lib.
               if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
                 dnl No hardcoding is needed.
                 LIBXERCES_C="${LIBXERCES_C}${LIBXERCES_C:+ }$found_so"
               else
                 dnl Use an explicit option to hardcode DIR into the resulting
                 dnl binary.
                 dnl Potentially add DIR to ltrpathdirs.
                 haveit=
                 for x in $ltrpathdirs; do
                   if test "X$x" = "X$found_dir"; then
                     haveit=yes
                     break
                   fi
                 done
                 if test -z "$haveit"; then
                   ltrpathdirs="$ltrpathdirs $found_dir"
                 fi
                 if test "$hardcode_direct" = yes; then
                   dnl resulting binary.
                   LIBXERCES_C="${LIBXERCES_C}${LIBXERCES_C:+ }$found_so"
                 else
                   if test -n "$hardcode_libdir_flag_spec"&&  test "$hardcode_minus_L" = no; then
                     dnl Use an explicit option to hardcode DIR into the resulting
                     dnl binary.
                     LIBXERCES_C="${LIBXERCES_C}${LIBXERCES_C:+ }$found_so"
                     dnl Potentially add DIR to rpathdirs.
                     haveit=
                     for x in $rpathdirs; do
                       if test "X$x" = "X$found_dir"; then
                         haveit=yes
                         break
                       fi
                     done
                     if test -z "$haveit"; then
                       rpathdirs="$rpathdirs $found_dir"
                     fi
                   else
                     dnl Rely on "-L$found_dir".
                     dnl But don't add it if it's already contained in the LDFLAGS
                     haveit=
                     for x in $LDFLAGS $LIBXERCES_C; do
                       AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
                       if test "X$x" = "X-L$found_dir"; then
                         haveit=yes
                         break
                       fi
                     done
                     if test -z "$haveit"; then
                       LIBXERCES_C="${LIBXERCES_C}${LIBXERCES_C:+ }-L$found_dir"
                     fi
                     if test "$hardcode_minus_L" != no; then
                       dnl FIXME: Not sure whether we should use
                       dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
                       dnl here.
                       LIBXERCES_C="${LIBXERCES_C}${LIBXERCES_C:+ }$found_so"
                     else
                       dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
                       dnl here, because this doesn't fit in flags passed to the
                       dnl compiler. So give up. No hardcoding. This affects only
                       dnl very old systems.
                       dnl FIXME: Not sure whether we should use
                       dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
                       dnl here.
                       LIBXERCES_C="${LIBXERCES_C}${LIBXERCES_C:+ }-l$name"
                     fi
                   fi
                 fi
               fi
             else
               if test "X$found_a" != "X"; then
                 dnl Linking with a static library.
                 LIBXERCES_C="${LIBXERCES_C}${LIBXERCES_C:+ }$found_a"
               else
                 dnl We shouldn't come here, but anyway it's good to have a
                 dnl fallback.
                 LIBXERCES_C="${LIBXERCES_C}${LIBXERCES_C:+ }-L$found_dir -l$name"
               fi
             fi
             dnl Assume the include files are nearby.
             additional_includedir=
             case "$found_dir" in
               */lib | */lib/)
                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
                 additional_includedir="$basedir/include"
                 ;;
             esac
             if test "X$additional_includedir" != "X"; then
               dnl But don't add it
               dnl   1. if it's the standard /usr/include,
               dnl   2. if it's /usr/local/include and we are using GCC on Linux,
               dnl   3. if it's already present in $CPPFLAGS or the already
               dnl   4. if it doesn't exist as a directory.
               if test "X$additional_includedir" != "X/usr/include"; then
                 haveit=
                 if test "X$additional_includedir" = "X/usr/local/include"; then
                   if test -n "$GCC"; then
                     case $host_os in
                       linux*) haveit=yes;;
                     esac
                   fi
                 fi
                 if test -z "$haveit"; then
                   for x in $CPPFLAGS $INCXERCES_C; do
                     AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
                     if test "X$x" = "X-I$additional_includedir"; then
                       haveit=yes
                       break
                     fi
                   done
                   if test -z "$haveit"; then
                     if test -d "$additional_includedir"; then
                       INCXERCES_C="${INCXERCES_C}${INCXERCES_C:+ }-I$additional_includedir"
                     fi
                   fi
                 fi
               fi
             fi
             dnl Look for dependencies.
             if test -n "$found_la"; then
               dnl Read the .la file. It defines the variables
               dnl dlname, library_names, old_library, dependency_libs, current,
               dnl age, revision, installed, dlopen, dlpreopen, libdir.
               save_libdir="$libdir"
               case "$found_la" in
                 */* | *\\*) . "$found_la" ;;
                 *) . "./$found_la" ;;
               esac
               libdir="$save_libdir"
               dnl We use only dependency_libs.
               for dep in $dependency_libs; do
                 case "$dep" in
                   -L*)
                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
                     dnl But don't add it
                     dnl   1. if it's the standard /usr/lib,
                     dnl   2. if it's /usr/local/lib and we are using GCC on Linux,
                     dnl   3. if it's already present in $LDFLAGS or the already
                     dnl   4. if it doesn't exist as a directory.
                     if test "X$additional_libdir" != "X/usr/lib"; then
                       haveit=
                       if test "X$additional_libdir" = "X/usr/local/lib"; then
                         if test -n "$GCC"; then
                           case $host_os in
                             linux*) haveit=yes;;
                           esac
                         fi
                       fi
                       if test -z "$haveit"; then
                         haveit=
                         for x in $LDFLAGS $LIBXERCES_C; do
                           AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
                           if test "X$x" = "X-L$additional_libdir"; then
                             haveit=yes
                             break
                           fi
                         done
                         if test -z "$haveit"; then
                           if test -d "$additional_libdir"; then
                             LIBXERCES_C="${LIBXERCES_C}${LIBXERCES_C:+ }-L$additional_libdir"
                           fi
                         fi
                         haveit=
                         for x in $LDFLAGS $LTLIBXERCES_C; do
                           AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
                           if test "X$x" = "X-L$additional_libdir"; then
                             haveit=yes
                             break
                           fi
                         done
                         if test -z "$haveit"; then
                           if test -d "$additional_libdir"; then
                             LTLIBXERCES_C="${LTLIBXERCES_C}${LTLIBXERCES_C:+ }-L$additional_libdir"
                           fi
                         fi
                       fi
                     fi
                     ;;
                   -R*)
                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
                     if test "$enable_rpath" != no; then
                     dnl Potentially add DIR to rpathdirs.
                     haveit=
                     for x in $rpathdirs; do
                       if test "X$x" = "X$dir"; then
                         haveit=yes
                         break
                       fi
                     done
                     if test -z "$haveit"; then
                       rpathdirs="$rpathdirs $dir"
                     fi
                     dnl Potentially add DIR to ltrpathdirs.
                     haveit=
                     for x in $ltrpathdirs; do
                       if test "X$x" = "X$dir"; then
                         haveit=yes
                         break
                       fi
                     done
                     if test -z "$haveit"; then
                       ltrpathdirs="$ltrpathdirs $dir"
                     fi
                     fi
                     ;;
                   -l*)
                     dnl Handle this in the next round.
                     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
                     ;;
                   *.la)
                     dnl Handle this in the next round. Throw away the .la's
                     dnl directory; it is already contained in a preceding -L
                     dnl option.
                     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
                     ;;
                   *)
                     dnl Most likely an immediate library name.
                     LIBXERCES_C="${LIBXERCES_C}${LIBXERCES_C:+ }$dep"
                     LTLIBXERCES_C="${LTLIBXERCES_C}${LTLIBXERCES_C:+ }$dep"
                     ;;
                 esac
               done
             fi
           else
             dnl Didn't find the library; assume it is in the system directories
             dnl known to the linker and runtime loader. (All the system
             dnl directories known to the linker should also be known to the
             dnl runtime loader, otherwise the system is severely misconfigured.)
             LIBXERCES_C="${LIBXERCES_C}${LIBXERCES_C:+ }-l$name"
             LTLIBXERCES_C="${LTLIBXERCES_C}${LTLIBXERCES_C:+ }-l$name"
           fi
         fi
       fi
     done
   done
   if test "X$rpathdirs" != "X"; then
     if test -n "$hardcode_libdir_separator"; then
       dnl Weird platform: only the last -rpath option counts, the user must
       dnl pass all path elements in one option. We can arrange that for a
       alldirs=
       for found_dir in $rpathdirs; do
         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
       done
       dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
       acl_save_libdir="$libdir"
       libdir="$alldirs"
       eval flag=\"$hardcode_libdir_flag_spec\"
       libdir="$acl_save_libdir"
       LIBXERCES_C="${LIBXERCES_C}${LIBXERCES_C:+ }$flag"
     else
       dnl The -rpath options are cumulative.
       for found_dir in $rpathdirs; do
         acl_save_libdir="$libdir"
         libdir="$found_dir"
         eval flag=\"$hardcode_libdir_flag_spec\"
         libdir="$acl_save_libdir"
         LIBXERCES_C="${LIBXERCES_C}${LIBXERCES_C:+ }$flag"
       done
     fi
   fi
   if test "X$ltrpathdirs" != "X"; then
     dnl When using libtool, the option that works for both libraries and
     dnl executables is -R. The -R options are cumulative.
     for found_dir in $ltrpathdirs; do
       LTLIBXERCES_C="${LTLIBXERCES_C}${LTLIBXERCES_C:+ }-R$found_dir"
     done
   fi
])




From MAILER-DAEMON Mon Jan 31 12:35:23 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pjxet-0003GC-6f
	for mharc-autoconf@gnu.org; Mon, 31 Jan 2011 12:35:23 -0500
Received: from [140.186.70.92] (port=44555 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pjxer-0003G2-Jz
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:35:22 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <peb@mppmu.mpg.de>) id 1Pjxeq-0004ex-9t
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:35:21 -0500
Received: from smtp.mppmu.mpg.de ([134.107.24.58]:42256)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <peb@mppmu.mpg.de>) id 1Pjxeq-0004ef-4h
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:35:20 -0500
Received: by smtp.mppmu.mpg.de (Postfix, from userid 998)
	id B75DF28283F7; Mon, 31 Jan 2011 18:35:17 +0100 (CET)
Received: from mail.mppmu.mpg.de (mail-6.mppmu.mpg.de [134.107.6.12])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.mppmu.mpg.de (Postfix) with ESMTP id 5E73D2828405;
	Mon, 31 Jan 2011 18:35:09 +0100 (CET)
Received: from pcl321.mppmu.mpg.de (pcl321.mppmu.mpg.de [134.107.3.54])
	by mail.mppmu.mpg.de (Postfix) with ESMTP id 320BF1E98211;
	Mon, 31 Jan 2011 18:35:09 +0100 (CET)
Received: from pcl321.mppmu.mpg.de (localhost [127.0.0.1])
	by pcl321.mppmu.mpg.de (8.14.2/8.14.1) with ESMTP id p0VHZ9iB020053;
	Mon, 31 Jan 2011 18:35:09 +0100
Received: from localhost (peb@localhost)
	by pcl321.mppmu.mpg.de (8.14.2/8.14.2/Submit) with ESMTP id
	p0VHZ8Tq020048; Mon, 31 Jan 2011 18:35:09 +0100
X-Authentication-Warning: pcl321.mppmu.mpg.de: peb owned process doing -bs
Date: Mon, 31 Jan 2011 18:35:08 +0100 (CET)
From: Peter Breitenlohner <peb@mppmu.mpg.de>
To: Jim Galarowicz <jeg@krellinst.org>
In-Reply-To: <4D46EFDB.4090808@krellinst.org>
Message-ID: <alpine.LNX.2.00.1101311832090.5193@pcl321.mppmu.mpg.de>
References: <4D46EFDB.4090808@krellinst.org>
User-Agent: Alpine 2.00 (LNX 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 134.107.24.58
Cc: autoconf@gnu.org
Subject: Re: Problems when using an alternative autotools installation
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Jan 2011 17:35:22 -0000

On Mon, 31 Jan 2011, Jim Galarowicz wrote:

> So, there is apparently something wrong with my set-up for using the 
> alternative install. I've been searching the
> internet for clues and thought I found the answer when I found information 
> about setting ACLOCAL_FLAGS:
>         ACLOCAL_FLAGS=-I /opt/newest_autotools_root/share/aclocal
> But that didn't make any difference.

Hi Jim,

I have successfully used alternative autotools with (the analogue of)
   export PATH=/opt/newest_autotools_root/bin:$PATH

Regards
Peter Breitenlohner <peb@mppmu.mpg.de>


From MAILER-DAEMON Mon Jan 31 12:40:57 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PjxkH-0004WE-QR
	for mharc-autoconf@gnu.org; Mon, 31 Jan 2011 12:40:57 -0500
Received: from [140.186.70.92] (port=41463 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PjxkE-0004Uq-IB
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:40:55 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <cchgroupmail@gmail.com>) id 1PjxkA-0005wZ-M9
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:40:54 -0500
Received: from mail-ew0-f41.google.com ([209.85.215.41]:42625)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <cchgroupmail@gmail.com>) id 1PjxkA-0005w1-HT
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:40:50 -0500
Received: by ewy27 with SMTP id 27so2483063ewy.0
	for <autoconf@gnu.org>; Mon, 31 Jan 2011 09:40:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:cc:content-type
	:content-transfer-encoding;
	bh=MY2nYVsz9cOX1fWNEVnFtWSVC1L6FW/wEF3EAt9pNZQ=;
	b=rC/ptON0iLVaWF/Y8vBKNujRmcqt4X9FhO0LS7Miq5Qio7pMSBUDhi7e3u85qLmigw
	udq00eHqReh4f1b/oCu96sQSCr+oJEae++mDnYagYvFhOmBGDcnN46VbffbBojEIYM1A
	y1KOCZdybzEkvc6lb5n+nj15G5aT3MIGR7nwI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	b=YGlAhHSnVkm2tVOW9pHZEoZtZhYVWrrd5TVB0/wF2LkS7WjW1e0X01jHHt9h198mwC
	PamY5kHQrXbgySzZKqtk0JP7Wr+ESFexS2++SuMogrpQVboGMBAMMrKKN7e7Ka+JjD5m
	dhPnUUBmrERBEtAINJrqLZA1BX8Ipvq7u+CzA=
MIME-Version: 1.0
Received: by 10.213.27.209 with SMTP id j17mr8750279ebc.56.1296495646922; Mon,
	31 Jan 2011 09:40:46 -0800 (PST)
Received: by 10.213.31.141 with HTTP; Mon, 31 Jan 2011 09:40:46 -0800 (PST)
In-Reply-To: <4D46EF86.5000201@noaa.gov>
References: <4D307ABA.6000607@noaa.gov> <20110114191325.GH16163@gmx.de>
	<4D46EF86.5000201@noaa.gov>
Date: Mon, 31 Jan 2011 12:40:46 -0500
Message-ID: <AANLkTinba302LMMUdTzZcp8y0h40WRGZkJUa6JU6Gkxv@mail.gmail.com>
From: Christopher Hulbert <cchgroupmail@gmail.com>
To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 209.85.215.41
Cc: autoconf@gnu.org
Subject: Re: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Jan 2011 17:40:56 -0000

On Mon, Jan 31, 2011 at 12:21 PM, Eve-Marie Devaliere
<Eve-Marie.Devaliere@noaa.gov> wrote:
> Thanks Ralph! I am now trying to make my package more portable so I am
> working on the part below
>
>> Do you need the package to be very portable? =A0If so, I suggest you go =
to
>> the Autoconf Macro Archive and grab two Fortran-related macros,
>> AX_F90_MODULE_EXTENSION and AX_F90_MODULE_FLAG.
>>
>> We then use roughly the following in configure.ac besides what you
>> already have:
>>
>> # Find out how to add to the Fortran include path.
>> AX_F90_MODULE_FLAG
>> # The module flag may be "-I " or so, and some make implementations
>> # swallow trailing space in variable settings, so we employ a little
>> # trick.
>> AC_SUBST([empty], [""])
>> AC_SUBST([FC_MODINC], [$ax_f90_modflag'${empty}'])
>> # Find out the file name extensions of Fortran module files.
>> AX_F90_MODULE_EXTENSION
>> if test "x$ax_f90_modext" !=3D xunknown; then
>> =A0 FC_MODEXT=3D$ax_f90_modext
>> else
>> =A0 FC_MODEXT=3D$ax_f90_modext
>> fi
>> AC_SUBST([FC_MODEXT])
> isn't the if/else above the same thing?
>
> When I run autoconf I get:
> configure.ac:81: warning: AC_CACHE_VAL(ax_f90_modflag, ...): suspicious
> cache-id, must contain _cv_ to be cached
> autoconf/general.m4:2047: AC_CACHE_VAL is expanded from...
> autoconf/general.m4:2060: AC_CACHE_CHECK is expanded from...
> m4/ax_f90_module_flag.m4:53: AX_F90_MODULE_FLAG is expanded from...
> configure.ac:81: the top level
> configure.ac:88: warning: AC_CACHE_VAL(ax_f90_modext, ...): suspicious
> cache-id, must contain _cv_ to be cached
> autoconf/general.m4:2047: AC_CACHE_VAL is expanded from...
> autoconf/general.m4:2060: AC_CACHE_CHECK is expanded from...
> m4/ax_f90_module_extension.m4:42: AX_F90_MODULE_EXTENSION is expanded
> from...
> configure.ac:88: the top level

>From where/when did you get the m4 files? Cache variables need the
_cv_ in the name for (at least newer) autoconf to like it. Looks like
this was done back in April of 2009? Make sure you update the
configure.ac code above for the variable names.

commit 2673212c84ed131e9014832005277da6513aabeb
Author: Luc Maisonobe <luc@spaceroots.org>
Date:   Sun Apr 19 13:05:55 2009 +0200

    AX_F90_*: fix cached variable warnings

    Autoconf 2.63 generates warnings when cached variable names have no _cv=
_
    in them.

 m4/ax_f90_internal_headmod.m4 |    4 ++--
 m4/ax_f90_library.m4          |    6 +++---
 m4/ax_f90_library_setup.m4    |    6 +++---
 m4/ax_f90_module.m4           |    4 ++--
 m4/ax_f90_module_extension.m4 |   16 ++++++++--------
 m4/ax_f90_module_flag.m4      |   12 ++++++------
 6 files changed, 24 insertions(+), 24 deletions(-)


If it still fails, what compiler are you using, and can you post the
config.log file?

Chris

>
> Did I do anything wrong? I have both AX_F90_MODULE_FLAG and
> AX_F90_MODULE_EXTENSION in my m4 directory and ran aclocal -I m4
> I also have AC_CONFIG_MACRO_DIR([m4]) in my configure.ac file somewhere
> up from that section.... (it seems to find them anyways)
> I get the same warnings running automake and if I keep on going (tried
> since there were warnings only) I get the following for ./configure
> checking fortran 90 modules inclusion flag... not found
> checking fortran 90 modules extension... unknown
> ./configure: line 4710: syntax error near unexpected token `('
> ./configure: line 4710: ` =A0$as_echo_n "(cached) " >&6'
>
> Thanks,
> Cheers,
> Eve-Marie
>
>
>
> _______________________________________________
> Autoconf mailing list
> Autoconf@gnu.org
> http://lists.gnu.org/mailman/listinfo/autoconf
>


From MAILER-DAEMON Mon Jan 31 12:50:20 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PjxtM-0007e2-2s
	for mharc-autoconf@gnu.org; Mon, 31 Jan 2011 12:50:20 -0500
Received: from [140.186.70.92] (port=44782 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PjxtK-0007dA-5P
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:50:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jeg@krellinst.org>) id 1PjxtI-0000Yi-KC
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:50:17 -0500
Received: from vermont.krellinst.org ([216.81.228.133]:52789)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jeg@krellinst.org>) id 1PjxtI-0000YC-Gg
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:50:16 -0500
Received: from 173-30-125-90.client.mchsi.com ([173.30.125.90]
	helo=localhost.localdomain)
	by vermont.krellinst.org with esmtpsa (TLSv1:CAMELLIA256-SHA:256)
	(Exim 4.69 (FreeBSD)) (envelope-from <jeg@krellinst.org>)
	id 1PjxtF-0007Cy-Le; Mon, 31 Jan 2011 11:50:13 -0600
Message-ID: <4D46F676.2020305@krellinst.org>
Date: Mon, 31 Jan 2011 11:50:46 -0600
From: Jim Galarowicz <jeg@krellinst.org>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc11 Thunderbird/3.0.4
MIME-Version: 1.0
To: Peter Breitenlohner <peb@mppmu.mpg.de>
References: <4D46EFDB.4090808@krellinst.org>
	<alpine.LNX.2.00.1101311832090.5193@pcl321.mppmu.mpg.de>
In-Reply-To: <alpine.LNX.2.00.1101311832090.5193@pcl321.mppmu.mpg.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-krellinst-org-MailScanner-Information: Please contact the Krell Institute
	for more information
X-MailScanner-ID: 1PjxtF-0007Cy-Le
X-krellinst-org-MailScanner: Found to be clean
X-krellinst-org-MailScanner-SpamCheck: not spam, SpamAssassin (not cached,
	score=-99.124, required 5, FORGED_RCVD_HELO 0.05,
	RATWARE_GECKO_BUILD 0.83, USER_IN_WHITELIST -100.00)
X-krellinst-org-MailScanner-From: jeg@krellinst.org
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 216.81.228.133
Cc: autoconf@gnu.org
Subject: Re: Problems when using an alternative autotools installation
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Jan 2011 17:50:19 -0000

Hi Peter,

Thanks for the information/verification.  I'm able to use the 
alternative autotools for configuring our OpenSpeedShop performance tool 
components and part of this, new, CBTF project, but not the xerces-c 
component.  So, apparently there is something special about this 
particular component's configuration that causes the issue I'm seeing?

Thanks,
Jim G

On 01/31/2011 11:35 AM, Peter Breitenlohner wrote:
> On Mon, 31 Jan 2011, Jim Galarowicz wrote:
>
>> So, there is apparently something wrong with my set-up for using the
>> alternative install. I've been searching the
>> internet for clues and thought I found the answer when I found
>> information about setting ACLOCAL_FLAGS:
>> ACLOCAL_FLAGS=-I /opt/newest_autotools_root/share/aclocal
>> But that didn't make any difference.
>
> Hi Jim,
>
> I have successfully used alternative autotools with (the analogue of)
> export PATH=/opt/newest_autotools_root/bin:$PATH
>
> Regards
> Peter Breitenlohner <peb@mppmu.mpg.de>


From MAILER-DAEMON Mon Jan 31 12:58:08 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pjy0u-000184-EN
	for mharc-autoconf@gnu.org; Mon, 31 Jan 2011 12:58:08 -0500
Received: from [140.186.70.92] (port=44755 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pjy0s-00017w-8b
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:58:07 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1Pjy0r-0002Ls-6c
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:58:06 -0500
Received: from mx1.redhat.com ([209.132.183.28]:2906)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1Pjy0q-0002Lk-Us
	for autoconf@gnu.org; Mon, 31 Jan 2011 12:58:05 -0500
Received: from int-mx01.intmail.prod.int.phx2.redhat.com
	(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0VHw3QL001215
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Mon, 31 Jan 2011 12:58:03 -0500
Received: from [10.3.113.114] (ovpn-113-114.phx2.redhat.com [10.3.113.114])
	by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id p0VHw3aA010092; Mon, 31 Jan 2011 12:58:03 -0500
Message-ID: <4D46F82A.5080103@redhat.com>
Date: Mon, 31 Jan 2011 10:58:02 -0700
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14
	Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7
MIME-Version: 1.0
To: Jim Galarowicz <jeg@krellinst.org>
References: <4D46EFDB.4090808@krellinst.org>
In-Reply-To: <4D46EFDB.4090808@krellinst.org>
X-Enigmail-Version: 1.1.2
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enigD2CE45442354A6E045C0DFE3"
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: autoconf@gnu.org
Subject: Re: Problems when using an alternative autotools installation
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Jan 2011 17:58:07 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigD2CE45442354A6E045C0DFE3
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 01/31/2011 10:22 AM, Jim Galarowicz wrote:
> Still fails as below but autoconf is putting out a lot more messages
> about what is going on but the errors are still there as well as the
> warnings.
>=20
>     configure:15501: error: possibly undefined macro: AC_LIB_RPATH

AC_LIB_RPATH is not provided by autoconf itself (I _really_ wish third
party macro providers would quit stealing autoconf's namespace).  What
this means is that you probably installed some other package that
installed its own copy of a file that provides AC_LIB_RPATH in the
/old/path/share/aclocal directory, and that you need to either copy this
=2Em4 file into your new /opt/newest_autotools_root/share/aclocal, or els=
e
add a redirect file /opt/newest_autotools_root/share/aclocal/dirlist
that tells aclocal all other directories to look in (aclocal is an
automake tool, not an autoconf one, so I'm pointing you to the automake
manual):
http://www.gnu.org/software/automake/manual/automake.html#Macro-Search-Pa=
th


>     configure:15514: error: possibly undefined macro:
> AC_LIB_WITH_FINAL_PREFIX
> configure:15858: error: possibly undefined macro: AC_LIB_APPENDTOVAR

Likewise, two more macros not provided by autoconf itself.

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enigD2CE45442354A6E045C0DFE3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNRvgqAAoJEKeha0olJ0NqCGsIAJkK20GBXoQg5hLjL0sNb/AW
+bRvh7Ky9mXsa4DFa6fDQIQ9K4wUJTMvV+4jPQhB1m0I/F7o6dnIhscvR+J2sgRT
9NGAbKzKB3eFYUHdD5WiPupLeAlgRFAw39MRfZ/xykql0JR9pWu1FdCTPYNz7eQL
DkAvaLvxKrnWqMijWizlgCWvIVT4k2xPBSoOKeXAKGjqAiWLWpco8cHAjBtfI6zG
rdVcuznHTTlAkqv3SyB75MvEeIGlKQa1HAf66WYQ5lG5fqIui36qCLLtxea+u1dO
7vj6TsSxECSAVRAwKT6rKJgEPKyazvnoCvwBJ0nmQiosXemXTJt280dSgF9OoP0=
=Y0ic
-----END PGP SIGNATURE-----

--------------enigD2CE45442354A6E045C0DFE3--


From MAILER-DAEMON Mon Jan 31 13:30:49 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PjyWW-0001AH-VP
	for mharc-autoconf@gnu.org; Mon, 31 Jan 2011 13:30:49 -0500
Received: from [140.186.70.92] (port=56862 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PjyWS-000150-LV
	for autoconf@gnu.org; Mon, 31 Jan 2011 13:30:46 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jeg@krellinst.org>) id 1PjyWO-0000oX-Ff
	for autoconf@gnu.org; Mon, 31 Jan 2011 13:30:42 -0500
Received: from vermont.krellinst.org ([216.81.228.133]:57738)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jeg@krellinst.org>) id 1PjyWO-0000oN-91
	for autoconf@gnu.org; Mon, 31 Jan 2011 13:30:40 -0500
Received: from 173-30-125-90.client.mchsi.com ([173.30.125.90]
	helo=localhost.localdomain)
	by vermont.krellinst.org with esmtpsa (TLSv1:CAMELLIA256-SHA:256)
	(Exim 4.69 (FreeBSD)) (envelope-from <jeg@krellinst.org>)
	id 1PjyWK-000BtF-B5; Mon, 31 Jan 2011 12:30:36 -0600
Message-ID: <4D46FFED.10804@krellinst.org>
Date: Mon, 31 Jan 2011 12:31:09 -0600
From: Jim Galarowicz <jeg@krellinst.org>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc11 Thunderbird/3.0.4
MIME-Version: 1.0
To: Eric Blake <eblake@redhat.com>
References: <4D46EFDB.4090808@krellinst.org> <4D46F82A.5080103@redhat.com>
In-Reply-To: <4D46F82A.5080103@redhat.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-krellinst-org-MailScanner-Information: Please contact the Krell Institute
	for more information
X-MailScanner-ID: 1PjyWK-000BtF-B5
X-krellinst-org-MailScanner: Found to be clean
X-krellinst-org-MailScanner-SpamCheck: not spam, SpamAssassin (not cached,
	score=-98.97, required 5, FORGED_RCVD_HELO 0.05,
	RATWARE_GECKO_BUILD 0.83, TW_BG 0.08, TW_GT 0.08,
	USER_IN_WHITELIST -100.00)
X-krellinst-org-MailScanner-From: jeg@krellinst.org
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 216.81.228.133
Cc: autoconf@gnu.org
Subject: Re: Problems when using an alternative autotools installation
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Jan 2011 18:30:47 -0000

Hi Eric,

Thanks!  I had just found this URL:
http://lists.gnupg.org/pipermail/gnupg-devel/2008-November/024658.html
that points to similar information, but the reasons were not explained 
as well as you have explained them.

I copied:
  68 -rw-rw-r--. 1 jeg jeg  68973 2011-01-31 11:53 lib-prefix.m4
  96 -rw-rw-r--. 1 jeg jeg  95779 2011-01-31 11:53 gettext.m4
164 -rw-rw-r--. 1 jeg jeg 164640 2011-01-31 11:54 lib-link.m4
  52 -rw-rw-r--. 1 jeg jeg  49320 2011-01-31 11:54 lib-ld.m4
into the libcbtf-xml/m4 directory and the errors are gone.

But, I believe you are saying they should really be added to the 
alternative autotools install directory aclocal subdirectory: 
/opt/newest_autotools_root/share/aclocal.  I will try that.

Thanks very much for this information!

Jim G

[jeg@localhost libcbtf-xml]$ ls /opt/newest_autotools_root/share/aclocal*
/opt/newest_autotools_root/share/aclocal:
argz.m4  libtool.m4  ltdl.m4  lt~obsolete.m4  ltoptions.m4  ltsugar.m4 
ltversion.m4

/opt/newest_autotools_root/share/aclocal-1.11:
amversion.m4  cond.m4     header.m4      lispdir.m4     mkdirp.m4 
options.m4  sanity.m4    upc.m4
as.m4         depend.m4   init.m4        maintainer.m4  multi.m4 
protos.m4   silent.m4    vala.m4
auxdir.m4     depout.m4   install-sh.m4  make.m4        obsolete.m4 
python.m4   strip.m4
ccstdc.m4     dmalloc.m4  lead-dot.m4    minuso.m4      obsol-gt.m4 
regex.m4    substnot.m4
cond-if.m4    gcj.m4      lex.m4         missing.m4     obsol-lt.m4 
runlog.m4   tar.m4
[jeg@localhost libcbtf-xml]$ ls /usr/share/aclocal*
/usr/share/aclocal:
alsa.m4        glib-gettext.m4          intlmacosx.m4       lib-ld.m4 
     ltsugar.m4       uintmax_t.m4
argz.m4        gnome-common.m4          intltool.m4         lib-link.m4 
     ltversion.m4     visibility.m4
bison-i18n.m4  gnome-compiler-flags.m4  intmax.m4 
lib-prefix.m4   nls.m4           wchar_t.m4
codeset.m4     gnome-doc-utils.m4       inttypes_h.m4       libtool.m4 
     ORBit2.m4        wint_t.m4
fontutil.m4    gpg-error.m4             inttypes-pri.m4     libxml.m4 
     pkg.m4           xorg-macros.m4
freetype2.m4   gtk-doc.m4               lcmessage.m4        lock.m4 
     po.m4            xsize.m4
gettext.m4     iconv.m4                 libcurl.m4          longlong.m4 
     printf-posix.m4  xtrans.m4
glib-2.0.m4    intdiv0.m4               libgcrypt.m4        ltdl.m4 
     progtest.m4
glibc21.m4     intldir.m4               libgnutls-extra.m4 
lt~obsolete.m4  size_max.m4
glibc2.m4      intl.m4                  libgnutls.m4        ltoptions.m4 
    stdint_h.m4

/usr/share/aclocal-1.11:
amversion.m4  cond.m4     header.m4      lispdir.m4     mkdirp.m4 
options.m4  sanity.m4    upc.m4
as.m4         depend.m4   init.m4        maintainer.m4  multi.m4 
protos.m4   silent.m4    vala.m4
auxdir.m4     depout.m4   install-sh.m4  make.m4        obsolete.m4 
python.m4   strip.m4
ccstdc.m4     dmalloc.m4  lead-dot.m4    minuso.m4      obsol-gt.m4 
regex.m4    substnot.m4
cond-if.m4    gcj.m4      lex.m4         missing.m4     obsol-lt.m4 
runlog.m4   tar.m4

/usr/share/aclocal-1.4:
amversion.m4  dmalloc.m4  init.m4     maintainer.m4  multi.m4 
ptrdiff.m4  strtod.m4
ccstdc.m4     error.m4    lex.m4      missing.m4     obstack.m4 
regex.m4    termios.m4
cond.m4       header.m4   lispdir.m4  mktime.m4      protos.m4 
sanity.m4   winsz.m4

/usr/share/aclocal-1.5:
as.m4      depend.m4   gcj.m4         lex.m4         minuso.m4 
protos.m4   sanity.m4   winsz.m4
auxdir.m4  depout.m4   header.m4      lispdir.m4     missing.m4 
ptrdiff.m4  strip.m4
ccstdc.m4  dmalloc.m4  init.m4        maintainer.m4  multi.m4 
python.m4   strtod.m4
cond.m4    error.m4    install-sh.m4  make.m4        obstack.m4 
regex.m4    termios.m4

/usr/share/aclocal-1.6:
amversion.m4  cond.m4     gcj.m4         lex.m4         minuso.m4 
protos.m4  sanity.m4
as.m4         depend.m4   header.m4      lispdir.m4     missing.m4 
python.m4  strip.m4
auxdir.m4     depout.m4   init.m4        maintainer.m4  multi.m4 
regex.m4   termios.m4
ccstdc.m4     dmalloc.m4  install-sh.m4  make.m4        options.m4 
runlog.m4  winsz.m4

/usr/share/aclocal-1.7:
amversion.m4  cond.m4     gcj.m4         lead-dot.m4    make.m4 
obsolete.m4  protos.m4  sanity.m4
as.m4         depend.m4   header.m4      lex.m4         minuso.m4 
obsol-gt.m4  python.m4  strip.m4
auxdir.m4     depout.m4   init.m4        lispdir.m4     missing.m4 
obsol-lt.m4  regex.m4
ccstdc.m4     dmalloc.m4  install-sh.m4  maintainer.m4  multi.m4 
options.m4   runlog.m4

On 01/31/2011 11:58 AM, Eric Blake wrote:
> On 01/31/2011 10:22 AM, Jim Galarowicz wrote:
>> Still fails as below but autoconf is putting out a lot more messages
>> about what is going on but the errors are still there as well as the
>> warnings.
>>
>>      configure:15501: error: possibly undefined macro: AC_LIB_RPATH
>
> AC_LIB_RPATH is not provided by autoconf itself (I _really_ wish third
> party macro providers would quit stealing autoconf's namespace).  What
> this means is that you probably installed some other package that
> installed its own copy of a file that provides AC_LIB_RPATH in the
> /old/path/share/aclocal directory, and that you need to either copy this
> .m4 file into your new /opt/newest_autotools_root/share/aclocal, or else
> add a redirect file /opt/newest_autotools_root/share/aclocal/dirlist
> that tells aclocal all other directories to look in (aclocal is an
> automake tool, not an autoconf one, so I'm pointing you to the automake
> manual):
> http://www.gnu.org/software/automake/manual/automake.html#Macro-Search-Path
>
>
>>      configure:15514: error: possibly undefined macro:
>> AC_LIB_WITH_FINAL_PREFIX
>> configure:15858: error: possibly undefined macro: AC_LIB_APPENDTOVAR
>
> Likewise, two more macros not provided by autoconf itself.
>
>
>
>
> _______________________________________________
> Autoconf mailing list
> Autoconf@gnu.org
> http://lists.gnu.org/mailman/listinfo/autoconf


From MAILER-DAEMON Mon Jan 31 13:50:33 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pjypc-0001C4-Td
	for mharc-autoconf@gnu.org; Mon, 31 Jan 2011 13:50:32 -0500
Received: from [140.186.70.92] (port=47730 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pjypa-0001Bh-CH
	for autoconf@gnu.org; Mon, 31 Jan 2011 13:50:31 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PjypY-0004Ra-E3
	for autoconf@gnu.org; Mon, 31 Jan 2011 13:50:30 -0500
Received: from mmp1.nems.noaa.gov ([140.90.121.156]:35706)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Eve-Marie.Devaliere@noaa.gov>) id 1PjypY-0004RM-9j
	for autoconf@gnu.org; Mon, 31 Jan 2011 13:50:28 -0500
Received: from [10.202.232.94] ([140.90.47.70])
	by mmp1.nems.noaa.gov (Sun Java System Messaging Server 6.2-6.01 (built
	Apr 3
	2006)) with ESMTPSA id <0LFW00BZ4HNU9A30@mmp1.nems.noaa.gov> for
	autoconf@gnu.org; Mon, 31 Jan 2011 13:50:26 -0500 (EST)
Date: Mon, 31 Jan 2011 13:50:18 -0500
From: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
In-reply-to: <AANLkTinba302LMMUdTzZcp8y0h40WRGZkJUa6JU6Gkxv@mail.gmail.com>
To: autoconf@gnu.org
Message-id: <4D47046A.7020503@noaa.gov>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-Enigmail-Version: 1.1.1
References: <4D307ABA.6000607@noaa.gov> <20110114191325.GH16163@gmx.de>
	<4D46EF86.5000201@noaa.gov>
	<AANLkTinba302LMMUdTzZcp8y0h40WRGZkJUa6JU6Gkxv@mail.gmail.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
	Gecko/20101207 Thunderbird/3.1.7
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 140.90.121.156
Subject: Re: produce *mod with fortran
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Jan 2011 18:50:31 -0000

Thanks Chris, you were right on it. I had downloaded it from sourceforge
but yes it was apparently an older file....

Thanks,
Cheers,
Eve-Marie


Christopher Hulbert said the following on 1/31/2011 12:40 PM:
> On Mon, Jan 31, 2011 at 12:21 PM, Eve-Marie Devaliere
> <Eve-Marie.Devaliere@noaa.gov> wrote:
>> Thanks Ralph! I am now trying to make my package more portable so I am
>> working on the part below
>>
>>> Do you need the package to be very portable?  If so, I suggest you go to
>>> the Autoconf Macro Archive and grab two Fortran-related macros,
>>> AX_F90_MODULE_EXTENSION and AX_F90_MODULE_FLAG.
>>>
>>> We then use roughly the following in configure.ac besides what you
>>> already have:
>>>
>>> # Find out how to add to the Fortran include path.
>>> AX_F90_MODULE_FLAG
>>> # The module flag may be "-I " or so, and some make implementations
>>> # swallow trailing space in variable settings, so we employ a little
>>> # trick.
>>> AC_SUBST([empty], [""])
>>> AC_SUBST([FC_MODINC], [$ax_f90_modflag'${empty}'])
>>> # Find out the file name extensions of Fortran module files.
>>> AX_F90_MODULE_EXTENSION
>>> if test "x$ax_f90_modext" != xunknown; then
>>>   FC_MODEXT=$ax_f90_modext
>>> else
>>>   FC_MODEXT=$ax_f90_modext
>>> fi
>>> AC_SUBST([FC_MODEXT])
>> isn't the if/else above the same thing?
>>
>> When I run autoconf I get:
>> configure.ac:81: warning: AC_CACHE_VAL(ax_f90_modflag, ...): suspicious
>> cache-id, must contain _cv_ to be cached
>> autoconf/general.m4:2047: AC_CACHE_VAL is expanded from...
>> autoconf/general.m4:2060: AC_CACHE_CHECK is expanded from...
>> m4/ax_f90_module_flag.m4:53: AX_F90_MODULE_FLAG is expanded from...
>> configure.ac:81: the top level
>> configure.ac:88: warning: AC_CACHE_VAL(ax_f90_modext, ...): suspicious
>> cache-id, must contain _cv_ to be cached
>> autoconf/general.m4:2047: AC_CACHE_VAL is expanded from...
>> autoconf/general.m4:2060: AC_CACHE_CHECK is expanded from...
>> m4/ax_f90_module_extension.m4:42: AX_F90_MODULE_EXTENSION is expanded
>> from...
>> configure.ac:88: the top level
> From where/when did you get the m4 files? Cache variables need the
> _cv_ in the name for (at least newer) autoconf to like it. Looks like
> this was done back in April of 2009? Make sure you update the
> configure.ac code above for the variable names.
>
> commit 2673212c84ed131e9014832005277da6513aabeb
> Author: Luc Maisonobe <luc@spaceroots.org>
> Date:   Sun Apr 19 13:05:55 2009 +0200
>
>     AX_F90_*: fix cached variable warnings
>
>     Autoconf 2.63 generates warnings when cached variable names have no _cv_
>     in them.
>
>  m4/ax_f90_internal_headmod.m4 |    4 ++--
>  m4/ax_f90_library.m4          |    6 +++---
>  m4/ax_f90_library_setup.m4    |    6 +++---
>  m4/ax_f90_module.m4           |    4 ++--
>  m4/ax_f90_module_extension.m4 |   16 ++++++++--------
>  m4/ax_f90_module_flag.m4      |   12 ++++++------
>  6 files changed, 24 insertions(+), 24 deletions(-)
>
>
> If it still fails, what compiler are you using, and can you post the
> config.log file?
>
> Chris
>
>> Did I do anything wrong? I have both AX_F90_MODULE_FLAG and
>> AX_F90_MODULE_EXTENSION in my m4 directory and ran aclocal -I m4
>> I also have AC_CONFIG_MACRO_DIR([m4]) in my configure.ac file somewhere
>> up from that section.... (it seems to find them anyways)
>> I get the same warnings running automake and if I keep on going (tried
>> since there were warnings only) I get the following for ./configure
>> checking fortran 90 modules inclusion flag... not found
>> checking fortran 90 modules extension... unknown
>> ./configure: line 4710: syntax error near unexpected token `('
>> ./configure: line 4710: `  $as_echo_n "(cached) " >&6'
>>
>> Thanks,
>> Cheers,
>> Eve-Marie
>>
>>
>>
>> _______________________________________________
>> Autoconf mailing list
>> Autoconf@gnu.org
>> http://lists.gnu.org/mailman/listinfo/autoconf
>>
> _______________________________________________
> Autoconf mailing list
> Autoconf@gnu.org
> http://lists.gnu.org/mailman/listinfo/autoconf


From MAILER-DAEMON Mon Jan 31 13:58:36 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PjyxQ-0003Pc-54
	for mharc-autoconf@gnu.org; Mon, 31 Jan 2011 13:58:36 -0500
Received: from [140.186.70.92] (port=60144 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PjyxN-0003PS-Mt
	for autoconf@gnu.org; Mon, 31 Jan 2011 13:58:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PjyxM-0006Ze-Ia
	for autoconf@gnu.org; Mon, 31 Jan 2011 13:58:33 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:40297)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1PjyxM-0006Yf-6v
	for autoconf@gnu.org; Mon, 31 Jan 2011 13:58:32 -0500
Received: (qmail invoked by alias); 31 Jan 2011 18:58:29 -0000
Received: from xdsl-89-0-154-111.netcologne.de (EHLO localhost.localdomain)
	[89.0.154.111]
	by mail.gmx.net (mp059) with SMTP; 31 Jan 2011 19:58:29 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX19jWp5e+A1jCvXB/PZEiyg1hzy2tQfy0Dxsg3ITY2
	Z+aIvwMHiWwB6+
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@gmx.de>)
	id 1PjyxI-0006dA-CM; Mon, 31 Jan 2011 19:58:28 +0100
Date: Mon, 31 Jan 2011 19:58:28 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>
Message-ID: <20110131185828.GA25458@gmx.de>
Mail-Followup-To: Eve-Marie Devaliere <Eve-Marie.Devaliere@noaa.gov>,
	autoconf@gnu.org
References: <4D46E4A7.1020303@noaa.gov>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4D46E4A7.1020303@noaa.gov>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 213.165.64.23
Cc: autoconf@gnu.org
Subject: Re: flags for different fortran compilers
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Jan 2011 18:58:34 -0000

Hello,

* Eve-Marie Devaliere wrote on Mon, Jan 31, 2011 at 05:34:47PM CET:
> I am trying to replicate the install of an existing package using autoconf.
> We need the package to be able to compile with a wide variety of
> compilers. In the original setup this was done by the make.macros file
> that would give a list of flags for each compiler.
> From what I understand autoconf has a few built in macros that help with
> the choice of flags such as AC_FC_FREEFORM, but unless I am missing
> something that won't cover all the flags. What is then the recommended
> way to handle this? I could have a bunch of 'case' in my configure.ac
> file but I wanted to see if there wouldn't be a more elegant way... I am
> new to fortran too so that may sound crazy but couldn't there be a
> library of flag for known fortran compiler that autoconf could select on
> the fly like for the free form one?

Which kinds of flags do you need support for?

The "Autoconf Way" of implementing things, when there isn't a predefined
macro for some feature, is to try out a set of known compiler switches
and select the first one that has the desired features.  For example,
the AC_FC_FREEFORM macro tries to compile a small free-form source file,
and passes one of a few known compiler flags that enable free form.  It
picks the first one that works.

If you can formulate your needs in such a way, then the next hurdle is
to overcome the M4 language and a few Autoconf building block macros
like AC_COMPILE_IFELSE and AC_LINK_IFELSE.  We can help with the latter
if the former is clear.

Cheers,
Ralf


From MAILER-DAEMON Mon Jan 31 18:47:12 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pk3Si-0001VT-DP
	for mharc-autoconf@gnu.org; Mon, 31 Jan 2011 18:47:12 -0500
Received: from [140.186.70.92] (port=39334 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pk3Sg-0001VE-Fg
	for autoconf@gnu.org; Mon, 31 Jan 2011 18:47:11 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1Pk3Sd-0002Lt-WF
	for autoconf@gnu.org; Mon, 31 Jan 2011 18:47:10 -0500
Received: from smtp.cs.ucla.edu ([131.179.128.62]:48395)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>)
	id 1Pk3Sd-0002LI-QY; Mon, 31 Jan 2011 18:47:07 -0500
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id AF9D539E80F5;
	Mon, 31 Jan 2011 15:47:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id LVCfHihwOfgU; Mon, 31 Jan 2011 15:47:05 -0800 (PST)
Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 11B4039E8083;
	Mon, 31 Jan 2011 15:47:04 -0800 (PST)
Message-ID: <4D4749F8.9030804@cs.ucla.edu>
Date: Mon, 31 Jan 2011 15:47:04 -0800
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
MIME-Version: 1.0
To: Bug-gnulib <bug-gnulib@gnu.org>, 
 "autoconf@gnu.org" <autoconf@gnu.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
Cc: 
Subject: HAVE_STDBOOL_H, AC_HEADER_STDBOOL, and AM_STDBOOL_H
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Jan 2011 23:47:11 -0000

The gnulib stdbool module currently arranges to #define HAVE_STDBOOL_H if necessary,
but this symbol is never used.  This is confusing people who port Emacs
to systems that don't run 'configure', and I'd like to remove HAVE_STDBOOL_H
from Emacs's src/config.in file.

HAVE_STDBOOL_H is defined by Autoconf's AC_HEADER_STDBOOL (and thus by gnulib's,
for compatibility with Autoconf).  The only gnulib macro that uses AC_HEADER_STDBOOL
is gnulib's AM_STDBOOL_H; the latter name is curious, as it implies that the macro
belongs to Automake, but it's a gnulib macro.

It's a bit untidy.  How about the following idea to clean things up a bit?

In Gnulib:

* Rename gnulib's AC_HEADER_STDBOOL to gl_HEADER_STDBOOL.
* Remove the AC_DEFINE([HAVE_STDBOOL_H], ...) from gl_HEADER_STDBOOL.
* Rename gnulib's AM_STDBOOL_H to gl_STDBOOL_H.

In Autoconf:

* Mark AC_HEADER_STDBOOL as obsolescent, and suggest to
  Autoconf users that in the future they use gnulib if they want to
  be portable to pre-C99 hosts with respect to <stdbool.h>.



From MAILER-DAEMON Mon Jan 31 18:53:45 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pk3Z3-0003IQ-Kg
	for mharc-autoconf@gnu.org; Mon, 31 Jan 2011 18:53:45 -0500
Received: from [140.186.70.92] (port=59602 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pk3Z2-0003Hq-8x
	for autoconf@gnu.org; Mon, 31 Jan 2011 18:53:45 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1Pk3Z1-00044d-8z
	for autoconf@gnu.org; Mon, 31 Jan 2011 18:53:44 -0500
Received: from mx1.redhat.com ([209.132.183.28]:63813)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>)
	id 1Pk3Yy-00043A-5Z; Mon, 31 Jan 2011 18:53:40 -0500
Received: from int-mx02.intmail.prod.int.phx2.redhat.com
	(int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0VNrbTA021547
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Mon, 31 Jan 2011 18:53:38 -0500
Received: from [10.3.113.114] (ovpn-113-114.phx2.redhat.com [10.3.113.114])
	by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id p0VNracp031058; Mon, 31 Jan 2011 18:53:36 -0500
Message-ID: <4D474B7F.3000803@redhat.com>
Date: Mon, 31 Jan 2011 16:53:35 -0700
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14
	Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7
MIME-Version: 1.0
To: Paul Eggert <eggert@cs.ucla.edu>
References: <4D4749F8.9030804@cs.ucla.edu>
In-Reply-To: <4D4749F8.9030804@cs.ucla.edu>
X-Enigmail-Version: 1.1.2
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig32F5A22CD0D4A0A044428D85"
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: "autoconf@gnu.org" <autoconf@gnu.org>, Bug-gnulib <bug-gnulib@gnu.org>
Subject: Re: HAVE_STDBOOL_H, AC_HEADER_STDBOOL, and AM_STDBOOL_H
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Jan 2011 23:53:45 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig32F5A22CD0D4A0A044428D85
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 01/31/2011 04:47 PM, Paul Eggert wrote:
> The gnulib stdbool module currently arranges to #define HAVE_STDBOOL_H =
if necessary,
> but this symbol is never used.  This is confusing people who port Emacs=

> to systems that don't run 'configure', and I'd like to remove HAVE_STDB=
OOL_H
> from Emacs's src/config.in file.
>=20
> HAVE_STDBOOL_H is defined by Autoconf's AC_HEADER_STDBOOL (and thus by =
gnulib's,
> for compatibility with Autoconf).  The only gnulib macro that uses AC_H=
EADER_STDBOOL
> is gnulib's AM_STDBOOL_H; the latter name is curious, as it implies tha=
t the macro
> belongs to Automake, but it's a gnulib macro.
>=20
> It's a bit untidy.  How about the following idea to clean things up a b=
it?
>=20
> In Gnulib:
>=20
> * Rename gnulib's AC_HEADER_STDBOOL to gl_HEADER_STDBOOL.
> * Remove the AC_DEFINE([HAVE_STDBOOL_H], ...) from gl_HEADER_STDBOOL.
> * Rename gnulib's AM_STDBOOL_H to gl_STDBOOL_H.
>=20
> In Autoconf:
>=20
> * Mark AC_HEADER_STDBOOL as obsolescent, and suggest to
>   Autoconf users that in the future they use gnulib if they want to
>   be portable to pre-C99 hosts with respect to <stdbool.h>.

Works for me; keeping macros like this in sync between the two
repositories has been problematic in the past, and it matches precedence
of other macros where we have declared the autoconf version obsolete (it
will continue to exist, but is no longer guaranteed to be the most
up-to-date version, in part because detecting the problems doesn't do
much good unless you also work around them, and the workarounds fit
better in gnulib's module paradigm).

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig32F5A22CD0D4A0A044428D85
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNR0t/AAoJEKeha0olJ0NqsyAH/jjOonGBT+E/r8OCQGp4VpGf
TkiBdyhqbdGmv/l+zhMHn7RaCdfBXG10xVSL1QB7MddQ98MUPhIT2QKoqKyPw/HD
V3WjN5saekLDNBoyW+aE2KiSAXMRYDtRR2gwGzux/qGeyKdEWXEw/5aFd7Ctfwtm
9HdU48s5Q19hd6lRdPhgXZqDIz7qEyC9+8Lgwt3zSJNeKImh4SmnVLEjj5kLGYUD
fF6Fz4i52WaHXg5/cDhoeya7I3p4naLHoHmBuItH2erwJFc1NFrxQpj6DHq/SrW1
6FQtkU7+C5oL0D8WnK2GxH8sTaTUznUE0PVNctzEtCGD8/P7b9V7sWQi9Kvx0go=
=+UUM
-----END PGP SIGNATURE-----

--------------enig32F5A22CD0D4A0A044428D85--


From MAILER-DAEMON Mon Jan 31 22:15:55 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pk6ih-0006aC-7p
	for mharc-autoconf@gnu.org; Mon, 31 Jan 2011 22:15:55 -0500
Received: from [140.186.70.92] (port=42096 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pk6if-0006Zv-0F
	for autoconf@gnu.org; Mon, 31 Jan 2011 22:15:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1Pk6id-0004WR-OY
	for autoconf@gnu.org; Mon, 31 Jan 2011 22:15:52 -0500
Received: from smtp4.stanford.edu ([171.67.219.84]:56079
	helo=smtp.stanford.edu) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>)
	id 1Pk6id-0004Vn-JX; Mon, 31 Jan 2011 22:15:51 -0500
Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1])
	by localhost (Postfix) with SMTP id 4CF39D3C0;
	Mon, 31 Jan 2011 19:15:48 -0800 (PST)
Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.67.225.134])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.stanford.edu (Postfix) with ESMTPS id 05203D3BF;
	Mon, 31 Jan 2011 19:15:48 -0800 (PST)
Received: by windlord.stanford.edu (Postfix, from userid 1000)
	id E46612F40F; Mon, 31 Jan 2011 19:15:47 -0800 (PST)
From: Russ Allbery <rra@stanford.edu>
To: Paul Eggert <eggert@cs.ucla.edu>
In-Reply-To: <4D4749F8.9030804@cs.ucla.edu> (Paul Eggert's message of "Mon, 31
	Jan 2011 15:47:04 -0800")
Organization: The Eyrie
References: <4D4749F8.9030804@cs.ucla.edu>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)
Date: Mon, 31 Jan 2011 19:15:47 -0800
Message-ID: <87aaigxx5o.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 171.67.219.84
Cc: "autoconf@gnu.org" <autoconf@gnu.org>, Bug-gnulib <bug-gnulib@gnu.org>
Subject: Re: HAVE_STDBOOL_H, AC_HEADER_STDBOOL, and AM_STDBOOL_H
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 01 Feb 2011 03:15:54 -0000

Paul Eggert <eggert@cs.ucla.edu> writes:

> In Gnulib:

> * Rename gnulib's AC_HEADER_STDBOOL to gl_HEADER_STDBOOL.
> * Remove the AC_DEFINE([HAVE_STDBOOL_H], ...) from gl_HEADER_STDBOOL.
> * Rename gnulib's AM_STDBOOL_H to gl_STDBOOL_H.

> In Autoconf:

> * Mark AC_HEADER_STDBOOL as obsolescent, and suggest to
>   Autoconf users that in the future they use gnulib if they want to
>   be portable to pre-C99 hosts with respect to <stdbool.h>.

Please don't make this last change in Autoconf.  AC_HEADER_STDBOOL in
Autoconf works well right now for people who do not use gnulib, and I
don't think that it's a good idea to mark obsolescent a working Autoconf
macro to try to "push" people towards using gnulib instead.  The Autoconf
manual already spells out exactly how to use AC_HEADER_STDBOOL correctly,
and those instructions work fine, without requiring importing any code
from yet another project.

In general, please continue to support straight Autoconf users with the
macros that are in Autoconf.  It feels like there's a somewhat disturbing
long-term trend here towards pushing everyone who uses Autoconf into also
using gnulib, even if Autoconf-using projects are not particularly
interested in or set up to use gnulib.

I'm of course agnostic about the gnulib changes, since I don't use gnulib
and will happily leave discussion of that to those who do.  But given that
you're proposing renaming macros in gnulib, I don't see any need to make
the Autoconf change as well, since the gnulib macros will have different
names and will therefore not need to retain compatibility with the
same-named macros in Autoconf.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


From MAILER-DAEMON Mon Jan 31 22:27:48 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pk6uC-0008W8-NB
	for mharc-autoconf@gnu.org; Mon, 31 Jan 2011 22:27:48 -0500
Received: from [140.186.70.92] (port=51389 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pk6uA-0008UT-84
	for autoconf@gnu.org; Mon, 31 Jan 2011 22:27:47 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralf.corsepius@rtems.org>) id 1Pk6tu-0005yL-S3
	for autoconf@gnu.org; Mon, 31 Jan 2011 22:27:31 -0500
Received: from mout3.freenet.de ([195.4.92.93]:37224)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralf.corsepius@rtems.org>)
	id 1Pk6tu-0005yB-NB; Mon, 31 Jan 2011 22:27:30 -0500
Received: from [195.4.92.21] (helo=11.mx.freenet.de)
	by mout3.freenet.de with esmtpa (ID ralf.corsepius@freenet.de) (port
	25) (Exim 4.72 #3)
	id 1Pk6tm-0004Oe-Em; Tue, 01 Feb 2011 04:27:22 +0100
Received: from hsi-kbw-078-043-068-041.hsi4.kabel-badenwuerttemberg.de
	([78.43.68.41]:61765 helo=[192.168.1.104])
	by 11.mx.freenet.de with esmtpsa (ID ralf.corsepius@freenet.de)
	(TLSv1:CAMELLIA256-SHA:256) (port 587) (Exim 4.72 #3)
	id 1Pk6tm-00032Y-A4; Tue, 01 Feb 2011 04:27:22 +0100
Message-ID: <4D477D96.4020209@rtems.org>
Date: Tue, 01 Feb 2011 04:27:18 +0100
From: Ralf Corsepius <ralf.corsepius@rtems.org>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14
	Thunderbird/3.1.7
MIME-Version: 1.0
To: Russ Allbery <rra@stanford.edu>
References: <4D4749F8.9030804@cs.ucla.edu>
	<87aaigxx5o.fsf@windlord.stanford.edu>
In-Reply-To: <87aaigxx5o.fsf@windlord.stanford.edu>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 195.4.92.93
Cc: Paul Eggert <eggert@cs.ucla.edu>, Bug-gnulib <bug-gnulib@gnu.org>,
	"autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: HAVE_STDBOOL_H, AC_HEADER_STDBOOL, and AM_STDBOOL_H
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 01 Feb 2011 03:27:47 -0000

On 02/01/2011 04:15 AM, Russ Allbery wrote:
> Paul Eggert<eggert@cs.ucla.edu>  writes:
>
>> In Gnulib:
>
>> * Rename gnulib's AC_HEADER_STDBOOL to gl_HEADER_STDBOOL.
>> * Remove the AC_DEFINE([HAVE_STDBOOL_H], ...) from gl_HEADER_STDBOOL.
>> * Rename gnulib's AM_STDBOOL_H to gl_STDBOOL_H.
>
>> In Autoconf:
>
>> * Mark AC_HEADER_STDBOOL as obsolescent, and suggest to
>>    Autoconf users that in the future they use gnulib if they want to
>>    be portable to pre-C99 hosts with respect to<stdbool.h>.
>
> Please don't make this last change in Autoconf.  AC_HEADER_STDBOOL in
> Autoconf works well right now for people who do not use gnulib,
Agreed. I am one of these users.

> and I
> don't think that it's a good idea to mark obsolescent a working Autoconf
> macro to try to "push" people towards using gnulib instead.
Agreed, again.

For real-world projects, gnulib often is not a viable alternative.

Ralf



