/[cvs]/eggdrop1.9/aclocal.m4
ViewVC logotype

Diff of /eggdrop1.9/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.8 by fabian, Tue Feb 1 23:35:23 2000 UTC revision 1.9 by fabian, Fri Feb 25 21:51:29 2000 UTC
# Line 22  then Line 22  then
22  else  else
23    AC_MSG_RESULT(Type 'make' to create the bot.)    AC_MSG_RESULT(Type 'make' to create the bot.)
24  fi  fi
25    AC_MSG_RESULT(Type 'make reconfig' if you want to alter the list of enabled modules.)
26  AC_MSG_RESULT()  AC_MSG_RESULT()
27  ])dnl  ])dnl
28  dnl  dnl
# Line 290  fi Line 291  fi
291  ])dnl  ])dnl
292  dnl  dnl
293  dnl  dnl
 AC_DEFUN(EGG_CHECK_RES_LIBS, [dnl  
 AC_CHECK_FUNC(res_init, ,  
   AC_CHECK_LIB(resolv, res_init, RESLIB="-lresolv",  
    AC_CHECK_LIB(bind, res_init, RESLIB="-lbind",  
     AC_MSG_ERROR(No resolver library found))))  
   
 AC_CHECK_FUNC(res_mkquery, ,  
   AC_CHECK_LIB(resolv, res_mkquery, RESLIB="-lresolv",  
    AC_CHECK_LIB(bind, res_mkquery, RESLIB="-lbind",  
     AC_MSG_ERROR(No resolver library found))))  
   
 AC_SUBST(RESLIB)  
 ])dnl  
 dnl  
 dnl  
294  AC_DEFUN(EGG_CHECK_FUNC_VSPRINTF, [dnl  AC_DEFUN(EGG_CHECK_FUNC_VSPRINTF, [dnl
295  AC_CHECK_FUNCS(vsprintf)  AC_CHECK_FUNCS(vsprintf)
296  if test "x${ac_cv_func_vsprintf}" = "xno"  if test "x${ac_cv_func_vsprintf}" = "xno"
# Line 981  then Line 967  then
967  fi  fi
968  AC_SUBST(DEST)dnl  AC_SUBST(DEST)dnl
969  ])dnl  ])dnl
970    dnl
971    dnl
972    dnl EGG_DETECT_MODULES -- Detect, enable and/or disable eggdrop modules.
973    AC_DEFUN(EGG_DETECT_MODULES, [dnl
974    AC_ARG_ENABLE(mod-MODULE,
975    [  --disable-mod-MODULE    disable compilation of eggdrop module MODULE
976      --enable-mod-MODULE     enable compilation of eggdrop module MODULE],
977    [# This is a pseudo option. We check this stuff on our own below...])dnl
978    
979    echo ""
980    echo -n "Detecting modules ..."
981    
982    # Depending on wether the user has already selected/deselected modules
983    # before, we change our behaviour below.
984    if src/mod/modtool --root-dir=. -q isconfigured; then
985      egg_mods_configured=yes
986    else
987      egg_mods_configured=no
988    fi
989    
990    egg_mods=`echo src/mod/*.mod | sed -e 's/src\/mod\///g' -e 's/\.mod//g'`
991    echo -n "."
992    egg_mods_enabled=
993    egg_mods_disabled=
994    for egg_mod in ${egg_mods}; do
995      eval "egg_modval=\$enable_mod_${mod}"
996      if (test "${egg_modval}" = no) || \
997         ((test ! "${egg_modval}" = yes) && \
998          ((grep ^${egg_mod}\$ disabled_modules > /dev/null 2>&1) || \
999          ((test "${egg_mods_configured}" = yes) && \
1000           (src/mod/modtool --root-dir=. -q isdeselected ${egg_mod})))); then
1001        src/mod/modtool --root-dir=. -q del ${egg_mod}
1002        egg_mods_disabled="${egg_mods_disabled} ${egg_mod}"
1003      else
1004        src/mod/modtool --root-dir=. -q add ${egg_mod}
1005        egg_mods_enabled="${egg_mods_enabled} ${egg_mod}"
1006      fi
1007      echo -n "."
1008    done
1009    echo " done."
1010    src/mod/modtool --root-dir=. -q makefile
1011    
1012    echo ""
1013    if test ! "x${egg_mods_enabled}" = x; then
1014      echo "Enabled modules : `echo ${egg_mods_enabled} | sed -e 's/ /, /g'`"
1015    fi
1016    if test ! "x${egg_mods_disabled}" = x; then
1017      echo "Disabled modules: `echo ${egg_mods_disabled} | sed -e 's/ /, /g'`"
1018    fi
1019    echo ""
1020    ])dnl
1021    dnl
1022    dnl
1023    AC_DEFUN(EGG_CONFIGURE_MODULES, [dnl
1024    AC_ARG_ENABLE(modconf, [  --disable-modconf       disable interactive module selection], [# We check this below ... ])dnl
1025    if test ! "${enable_modconf}" = no; then
1026      echo ""
1027      echo ""
1028      if src/mod/modtool --root-dir=. -x config; then
1029        :
1030      else
1031        AC_MSG_ERROR([module configuration failed.])
1032      fi
1033      echo ""
1034    fi
1035    src/mod/modtool --root-dir=. update-depends
1036    if make config; then
1037      :
1038    else
1039      AC_MSG_ERROR([module configuration failed.])
1040    fi])dnl

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23