Copied AC_PROG_SED from autoconf-2.60

master
Yevgen Muntyan 2007-02-01 08:31:20 -06:00
parent 0165f62496
commit a49cdece87
4 changed files with 29 additions and 3 deletions

View File

@ -1,7 +1,7 @@
##############################################################################
# _MOO_SPLIT_VERSION(NAME,version)
#
AC_DEFUN([_MOO_SPLIT_VERSION],[AC_REQUIRE([AC_PROG_SED])
AC_DEFUN([_MOO_SPLIT_VERSION],[AC_REQUIRE([MOO_AC_PROG_SED])
$1[]_VERSION="$2"
$1[]_MAJOR_VERSION=`echo "$2" | $SED 's/\([[^.]][[^.]]*\).*/\1/'`
$1[]_MINOR_VERSION=`echo "$2" | $SED 's/[[^.]][[^.]]*.\([[^.]][[^.]]*\).*/\1/'`

View File

@ -8,3 +8,29 @@ AC_DEFUN([MOO_AC_PROGS],[
AC_ARG_VAR([OPAG], [opag])
AC_CHECK_PROG(OPAG, opag, opag)
])
##############################################################################
# MOO_AC_PROG_SED
#
# AC_PROG_SED from autoconf-2.60
#
# -----------
# Check for a fully functional sed program that truncates
# as few characters as possible. Prefer GNU sed if found.
AC_DEFUN([MOO_AC_PROG_SED],
[AC_CACHE_CHECK([for a sed that does not truncate output], ac_cv_path_SED,
[dnl ac_script should not contain more than 99 commands (for HP-UX sed),
dnl but more than about 7000 bytes, to catch a limit in Solaris 8 /usr/ucb/sed.
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
for ac_i in 1 2 3 4 5 6 7; do
ac_script="$ac_script$as_nl$ac_script"
done
echo "$ac_script" | sed 99q >conftest.sed
$as_unset ac_script || ac_script=
_AC_PATH_PROG_FEATURE_CHECK(SED, [sed gsed],
[_AC_FEATURE_CHECK_LENGTH([ac_path_SED], [ac_cv_path_SED],
["$ac_path_SED" -f conftest.sed])])])
SED="$ac_cv_path_SED"
AC_SUBST([SED])dnl
rm -f conftest.sed
])# MOO_AC_PROG_SED

View File

@ -1,6 +1,6 @@
dnl AM_PYTHON_DEVEL_CROSS_MINGW([action-if-found[,action-if-not-found[,version]]])
AC_DEFUN([AM_PYTHON_DEVEL_CROSS_MINGW],[
AC_REQUIRE([AC_PROG_SED])
AC_REQUIRE([MOO_AC_PROG_SED])
m4_if([$3],[],[
m4_define([_ac_m4_pyver],[])
],[

View File

@ -38,7 +38,7 @@
</configure>
</optimized>
</configurations>
<file_selector_dir>/home/muntyan/projects/moo/moo/mooedit/gtksourceview/upstream/</file_selector_dir>
<file_selector_dir>/home/muntyan/projects/moo/moo/mooedit/</file_selector_dir>
<run>
<args>--g-fatal-warnings --new-app --mode=project</args>
<exe>medit/medit</exe>