NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mk-configure: lightweight autoconf replacement written for/in bmake



Next release of mk-configure can be found here
http://mova.org/~cheusov/pub/mk-configure/

Now, it is packaged as wip/mk-configure.

= NEWS ===============================================================
Version 0.6.0, by Aleksey Cheusov, Sun,  8 Mar 2009 19:35:13 +0200

  MKC_FUNCLIBS_NOAUTO.ftime.compat is replaced
  with MKC_NOAUTO_FUNCLIBS list.

     Ex.:
       MKC_NOAUTO_FUNCLIBS += ftime:compat crypt:crypt
       MKC_NOAUTO_FUNCLIBS = 1 # for disabling
                               # all potential LDADD += ...

  fix: "checking for..." messages is now sent to stderr
  before result is calculated, not after.

  Support for heirloom-sh and ancient Solaris-10 /bin/sh

  added: MKC_SHELL variable defaulting to /bin/sh, mkc_check_XXX
  scripts are run with with this shell. This is variable is mainly for
  testing purposes but who knows.

= TODO ===============================================================

0)
   Closer integration with Simon Gerraty's Mk scripts or Mk scripts
   from pkgsrc. Both they are variants of NetBSD Mk scripts and now
   are portable to a variety of platforms including OpenBSD, FreeBSD,
   Linux, Solaris, IRIX, OSF1, HP-UX, Darwin and AIX.

   bmake + mk-configure + Mk scripts = FULL replacement for autobloat.

   Ideas:
     - PREFIX, BINDIR, SBINDIR, MANDIR etc. should default to /usr/local/xxx
     - When running unprivileged BINOWN, BINGRP etc. should default to
       'id -un' and 'id -gn'.
     - The target "install" should create destination directories
     - With a help of MKC_CHECK_DEFINES (Ex: MKC_CHECK_DEFINES+=__GNUC__)
       mk-configure is able to detect the compiler in run-time.
       This makes possible to make SHLIB_xxx (bsd.lib.mk) portable
       to other compilers and platforms.
     - Often compilers need special options to compile pthread code.
       Support for MKPTHREAD=yes|no.
     - ???Fallback to libtool if compiler is unknown or special variable is
       defined???
     - INFILES - list of files that should be generated from appropriate
       .in sources (equivalent of AC_CONFIG_FILES
       but with better name :-) ).

1) The same
       functionality but for bourne shell, e.g.

   Upstream creates ./configure script:
     MKC_CONFIG_MK=mkc_config.mk
     MKC_CONFIG_H=mkc_config.h

     MKC_CHECK_HEADERS='
        header1.h
        header2.h
        header3.h'
     MKC_CHECK_FUNCLIBS='
        func1:lib1
        func2
        func3:lib3'
     #<...>
     . mkc_configure
     mkc_run # generating mkc_config.h and mkc_config.mk

   User runs
     ./configure ...

2) MKC_REQD - user settable variable for specifing minimal required
   version of mk-configure

3)
   MKC_NOAUTO_abcdefg...

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index