[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: More Darwin adjustments
From: |
Akim Demaille |
Subject: |
FYI: More Darwin adjustments |
Date: |
12 Apr 2002 11:56:19 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) |
Hm, I forgot to move the other wrappers to M4sh...
Index: ChangeLog
from Akim Demaille <address@hidden>
* tests/wrappl.as: New, M4sh precursor of wrappl.in.
Index: tests/Makefile.am
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/Makefile.am,v
retrieving revision 1.80
diff -u -u -r1.80 Makefile.am
--- tests/Makefile.am 10 Apr 2002 15:58:21 -0000 1.80
+++ tests/Makefile.am 12 Apr 2002 09:55:23 -0000
@@ -21,7 +21,7 @@
# We don't actually distribute the testsuite, since one only
# needs m4 to build it, m4 being required anyway to install Autoconf.
EXTRA_DIST = $(TESTSUITE_AT) atspecific.m4 mktests.sh \
- atlocal.in package.m4 wrapsh.as
+ atlocal.in package.m4 wrappl.as wrapsh.as
# Running the uninstalled scripts.
check_SCRIPTS = autoconf autoheader autoreconf autom4te autoscan autoupdate
ifnames
@@ -54,6 +54,9 @@
$(srcdir)/wrapsh.in: $(srcdir)/wrapsh.as
./autom4te --language=M4sh $(srcdir)/wrapsh.as -o $@
+
+$(srcdir)/wrappl.in: $(srcdir)/wrappl.as
+ ./autom4te --language=M4sh $(srcdir)/wrappl.as -o $@
## ------------ ##
Index: tests/Makefile.in
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/Makefile.in,v
retrieving revision 1.113
diff -u -u -r1.113 Makefile.in
--- tests/Makefile.in 10 Apr 2002 15:58:21 -0000 1.113
+++ tests/Makefile.in 12 Apr 2002 09:55:23 -0000
@@ -83,7 +83,7 @@
# We don't actually distribute the testsuite, since one only
# needs m4 to build it, m4 being required anyway to install Autoconf.
EXTRA_DIST = $(TESTSUITE_AT) atspecific.m4 mktests.sh \
- atlocal.in package.m4 wrapsh.as
+ atlocal.in package.m4 wrappl.as wrapsh.as
# Running the uninstalled scripts.
@@ -370,6 +370,9 @@
$(srcdir)/wrapsh.in: $(srcdir)/wrapsh.as
./autom4te --language=M4sh $(srcdir)/wrapsh.as -o $@
+
+$(srcdir)/wrappl.in: $(srcdir)/wrappl.as
+ ./autom4te --language=M4sh $(srcdir)/wrappl.as -o $@
$(TESTSUITE): $(srcdir)/package.m4 \
atspecific.m4 \
$(TESTSUITE_AT) \
Index: tests/wrappl.as
===================================================================
RCS file: tests/wrappl.as
diff -N tests/wrappl.as
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ tests/wrappl.as 12 Apr 2002 09:55:23 -0000
@@ -0,0 +1,23 @@
+AS_INIT[]dnl -*- shell-script -*-
+# @configure_input@
+# Running `$0' as if it were installed.
+
+# Be sure to use the non installed Perl modules.
address@hidden@/lib
+export autom4te_perllibdir
+
+case $as_me in
+ ifnames)
+ # Does not have lib files.
+ exec @abs_top_builddir@/bin/$as_me ${1+"$@"}
+ ;;
+ autom4te)
+ address@hidden@/lib/autom4te.cfg
+ export AUTOM4TE_CFG
+ ;;
+esac
+
+# We might need files from build (frozen files), in addition of src files.
+exec @abs_top_builddir@/bin/$as_me \
+ -I @abs_top_builddir@/lib \
+ -I @abs_top_srcdir@/lib ${1+"$@"}
Index: tests/wrappl.in
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/wrappl.in,v
retrieving revision 1.3
diff -u -u -r1.3 wrappl.in
--- tests/wrappl.in 14 Dec 2001 17:57:29 -0000 1.3
+++ tests/wrappl.in 12 Apr 2002 09:55:23 -0000
@@ -1,21 +1,91 @@
#! /bin/sh
+## --------------------- ##
+## M4sh Initialization. ##
+## --------------------- ##
+
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+ set -o posix
+fi
+
+# NLS nuisances.
+# Support unset when possible.
+if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
+ as_unset=unset
+else
+ as_unset=false
+fi
+
+(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
+ { $as_unset LANG || test "${LANG+set}" != set; } ||
+ { LANG=C; export LANG; }
+(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
+ { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
+ { LC_ALL=C; export LC_ALL; }
+(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
+ { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
+ { LC_TIME=C; export LC_TIME; }
+(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
+ { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
+ { LC_CTYPE=C; export LC_CTYPE; }
+(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
+ { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
+ { LANGUAGE=C; export LANGUAGE; }
+(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
+ { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
+ { LC_COLLATE=C; export LC_COLLATE; }
+(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
+ { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
+ { LC_NUMERIC=C; export LC_NUMERIC; }
+(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
+ { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
+ { LC_MESSAGES=C; export LC_MESSAGES; }
+
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+
+# Name of the executable.
+as_me=`$as_basename "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)$' \| \
+ . : '\(.\)' 2>/dev/null ||
+echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
+ /^X\/\(\/\/\)$/{ s//\1/; q; }
+ /^X\/\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+
+
# @configure_input@
# Running `$0' as if it were installed.
-me=`echo "$0" | sed -e 's,.*[\\/],,'`
-
# Be sure to use the non installed Perl modules.
-# We need no special protection for the subtools (e.g., autoheader runs
-# autoconf which runs autom4te) because by themselves, they try to use
-# subtools from the same directory (i.e., foo/autoheader will run
-# foo/autoconf etc.).
address@hidden@/lib
export autom4te_perllibdir
-case $me in
+case $as_me in
ifnames)
# Does not have lib files.
- exec @abs_top_builddir@/bin/$me ${1+"$@"}
+ exec @abs_top_builddir@/bin/$as_me ${1+"$@"}
;;
autom4te)
address@hidden@/lib/autom4te.cfg
@@ -24,6 +94,6 @@
esac
# We might need files from build (frozen files), in addition of src files.
-exec @abs_top_builddir@/bin/$me \
+exec @abs_top_builddir@/bin/$as_me \
-I @abs_top_builddir@/lib \
-I @abs_top_srcdir@/lib ${1+"$@"}
Index: tests/wrapsh.as
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/wrapsh.as,v
retrieving revision 1.1
diff -u -u -r1.1 wrapsh.as
--- tests/wrapsh.as 10 Apr 2002 15:58:21 -0000 1.1
+++ tests/wrapsh.as 12 Apr 2002 09:55:23 -0000
@@ -1,5 +1,4 @@
-AS_INIT
+AS_INIT[]dnl -*- shell-script -*-
+# @configure_input@
# Running `$0' as if it were installed.
-me=`echo "$0" | sed -e 's,.*[\\/],,'`
-
-exec @abs_top_builddir@/bin/$me --include @abs_top_builddir@/lib ${1+"$@"}
+exec @abs_top_builddir@/bin/$as_me --include @abs_top_builddir@/lib ${1+"$@"}
Index: tests/wrapsh.in
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/wrapsh.in,v
retrieving revision 1.3
diff -u -u -r1.3 wrapsh.in
--- tests/wrapsh.in 10 Apr 2002 15:58:21 -0000 1.3
+++ tests/wrapsh.in 12 Apr 2002 09:55:23 -0000
@@ -7,8 +7,8 @@
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
- # Zsh performs word splitting on ${1+"$@"}, which is contrary to
- # our usage. Disable this feature.
+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
set -o posix
@@ -75,8 +75,6 @@
s/.*/./; q'`
-
+# @configure_input@
# Running `$0' as if it were installed.
-me=`echo "$0" | sed -e 's,.*\\/,,'`
-
-exec @abs_top_builddir@/bin/$me --include @abs_top_builddir@/lib ${1+"$@"}
+exec @abs_top_builddir@/bin/$as_me --include @abs_top_builddir@/lib ${1+"$@"}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: More Darwin adjustments,
Akim Demaille <=