Changeset 3062


Ignore:
Timestamp:
2002-03-21T03:25:58+12:00 (22 years ago)
Author:
cs025
Message:

Changed configure.in to auto-configure the subdirectories of the
modules folder.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/configure.in

    r2951 r3062  
    4343dnl
    4444AC_ARG_WITH(gdbm, [  --with-gdbm=dir         Use local gdbm library and headers], gdbmdir=$withval)
    45 
    46 
    4745
    4846dnl Checks for programs.
     
    6765AC_PROG_MAKE_SET
    6866AC_PROG_RANLIB
    69 
    7067
    7168#moved CORBA MICO directory test to get version of MICO
     
    354351fi
    355352
     353# ---------------------------------------------------------------------------
     354
     355dnl
     356dnl Locate all children of the modules folder
     357dnl
     358moduleDirs=""
     359MODULEDIRS=""
     360for x in `find modules -mindepth 1 -maxdepth 2`; do
     361  if test -d "$x"; then
     362    d="$x/Makefile.in"
     363    if test -e "$d"; then
     364dnl      echo $d
     365      moduleDirs="$moduleDirs $x/Makefile"
     366      MODULEDIRS="$MODULEDIRS $x"
     367    fi
     368  fi
     369done
     370echo "Making$moduleDirs in modules directory"
     371AC_SUBST(MODULEDIRS)
    356372
    357373# ---------------------------------------------------------------------------
     
    360376AC_CONFIG_SUBDIRS(packages)
    361377
     378# the list of folders in the src folder
     379srclist="src/mgpp/lib/Makefile src/mgpp/text/Makefile src/mgpp/Makefile \
     380          src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile \
     381          src/db2txt/Makefile src/getpw/Makefile src/phind/generate/Makefile"
     382
    362383AC_OUTPUT(packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
    363           packages/mg/src/scripts/Makefile packages/mg/lib/Makefile src/mgpp/Makefile
    364       src/mgpp/lib/Makefile src/mgpp/text/Makefile
    365           src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile
    366           src/db2txt/Makefile lib/Makefile Makefile src/getpw/Makefile
    367       src/phind/generate/Makefile)
    368 
    369 
    370 
     384          packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
     385      lib/Makefile Makefile $srclist $moduleDirs)
     386
     387
Note: See TracChangeset for help on using the changeset viewer.