dnl acinclude.m4: m4 macros for Autoconf
dnl $Id: acinclude.m4,v 1.3 2005/01/10 19:19:51 komatsu Exp $
dnl
dnl Copyright (C) 2003, 2004 Hiroyuki Komatsu <komatsu@taiyaki.org>
dnl     All rights reserved.
dnl     This is free software with ABSOLUTELY NO WARRANTY.
dnl
dnl You can redistribute it and/or modify it under the terms of 
dnl the GNU General Public License version 2.

AC_DEFUN([AC_INIT_DEFAULT_VALUES],
[
test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
])
AC_DEFUN([AC_VAR_EXPAND], [`eval echo $1`])
AC_DEFUN([AC_FILE_SANS_EXT], [`expr "x$1" : 'x\(.*\)\..*'`])

AC_DEFUN([MY_AC_PROG_RUBY],
[
    AC_SUBST(ruby_version,
        [`ruby -r rbconfig -e "puts Config::CONFIG[['ruby_version']]"`])
])

AC_DEFUN([AC_RUBY_SITELIBDIR],
    ['$(libdir)/site_ruby/$(ruby_version)'])
#    [`ruby -r rbconfig -e "puts Config::MAKEFILE_CONFIG[['rubylibdir']]"`])


syntax highlighted by Code2HTML, v. 0.9.1