/[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.2 by fabian, Sat Dec 4 14:05:06 1999 UTC revision 1.3 by fabian, Mon Dec 6 15:56:43 1999 UTC
# Line 357  AC_DEFUN(EGG_TCL_ARG_WITH, [dnl Line 357  AC_DEFUN(EGG_TCL_ARG_WITH, [dnl
357  AC_ARG_WITH(tcllib, [  --with-tcllib=PATH      full path to tcl library], tcllibname=$withval)  AC_ARG_WITH(tcllib, [  --with-tcllib=PATH      full path to tcl library], tcllibname=$withval)
358  AC_ARG_WITH(tclinc, [  --with-tclinc=PATH      full path to tcl header], tclincname=$withval)  AC_ARG_WITH(tclinc, [  --with-tclinc=PATH      full path to tcl header], tclincname=$withval)
359    
360    WARN=0
361  # Make sure either both or neither $tcllibname and $tclincname are set  # Make sure either both or neither $tcllibname and $tclincname are set
362  if test ! "x${tcllibname}" = "x"  if test ! "x${tcllibname}" = "x"
363  then  then
364    if test "x${tclincname}" = "x"    if test "x${tclincname}" = "x"
365    then    then
366      cat << 'EOF' >&2      WARN=1
 configure: warning:  
   
   You must specify both --with-tcllib and --with-tclinc for them to work.  
   configure will now attempt to autodetect both the Tcl library and header...  
   
 EOF  
367      tcllibname=""      tcllibname=""
368      TCLLIB=""      TCLLIB=""
369      TCLINC=""      TCLINC=""
# Line 376  EOF Line 371  EOF
371  else  else
372    if test ! "x${tclincname}" = "x"    if test ! "x${tclincname}" = "x"
373    then    then
374        WARN=1
375        tclincname=""
376        TCLLIB=""
377        TCLINC=""
378      fi
379    fi
380    if test ${WARN} = 1
381    then
382      cat << 'EOF' >&2      cat << 'EOF' >&2
383  configure: warning:  configure: warning:
384    
# Line 383  configure: warning: Line 386  configure: warning:
386    configure will now attempt to autodetect both the Tcl library and header...    configure will now attempt to autodetect both the Tcl library and header...
387    
388  EOF  EOF
     tclincname=""  
     TCLLIB=""  
     TCLINC=""  
   fi  
389  fi  fi
390  ])dnl  ])dnl
391    
392    
393  AC_DEFUN(EGG_TCL_ENV, [dnl  AC_DEFUN(EGG_TCL_ENV, [dnl
394    WARN=0
395  # Make sure either both or neither $TCLLIB and $TCLINC are set  # Make sure either both or neither $TCLLIB and $TCLINC are set
396  if test ! "x${TCLLIB}" = "x"  if test ! "x${TCLLIB}" = "x"
397  then  then
398    if test "x${TCLINC}" = "x"    if test "x${TCLINC}" = "x"
399    then    then
400      cat << 'EOF' >&2      WARN=1
401  configure: warning:      WVAR1=TCLLIB
402        WVAR2=TCLINC
   Environment variable TCLLIB was set, but I did not detect TCLINC.  
   Please set both TCLLIB and TCLINC correctly if you wish to use them.  
   configure will now attempt to autodetect both the Tcl library and header...  
   
 EOF  
403      TCLLIB=""      TCLLIB=""
404    fi    fi
405  else  else
406    if test ! "x${TCLINC}" = "x"    if test ! "x${TCLINC}" = "x"
407    then    then
408        WARN=1
409        WVAR1=TCLINC
410        WVAR2=TCLLIB
411        TCLINC=""
412      fi
413    fi
414    if test ${WARN} = 1
415    then
416      cat << 'EOF' >&2      cat << 'EOF' >&2
417  configure: warning:  configure: warning:
418    
419    Environment variable TCLINC was set, but I did not detect TCLLIB.    Environment variable ${WVAR1} was set, but I did not detect ${WVAR2}.
420    Please set both TCLLIB and TCLINC correctly if you wish to use them.    Please set both TCLLIB and TCLINC correctly if you wish to use them.
421    configure will now attempt to autodetect both the Tcl library and header...    configure will now attempt to autodetect both the Tcl library and header...
422    
423  EOF  EOF
     TCLINC=""  
   fi  
424  fi  fi
425  ])dnl  ])dnl
426    
# Line 430  if test ! "x${tcllibname}" = "x" Line 431  if test ! "x${tcllibname}" = "x"
431  then  then
432    if test -f "$tcllibname" && test -r "$tcllibname"    if test -f "$tcllibname" && test -r "$tcllibname"
433    then    then
434      TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`      TCLLIB=`echo $tcllibname | sed 's%/[[^/]][[^/]]*$%%'`
435      TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`      TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
436      TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split([$]1, i, "."); print i[[j]]}'`"      TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split([$]1, i, "."); print i[[j]]}'`"
437      TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`      TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
# Line 459  if test ! "x${tclincname}" = "x" Line 460  if test ! "x${tclincname}" = "x"
460  then  then
461    if test -f "$tclincname" && test -r "$tclincname"    if test -f "$tclincname" && test -r "$tclincname"
462    then    then
463      TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`      TCLINC=`echo $tclincname | sed 's%/[[^/]][[^/]]*$%%'`
464      TCLINCFN=`$BASENAME $tclincname`      TCLINCFN=`$BASENAME $tclincname`
465    else    else
466      cat << EOF >&2      cat << EOF >&2
# Line 535  then Line 536  then
536          if test -r "$TCLINC/$tclheaderfn"          if test -r "$TCLINC/$tclheaderfn"
537          then          then
538            TCLINCFN=$tclheaderfn            TCLINCFN=$tclheaderfn
539              break
540          fi          fi
541        done        done
542      fi      fi

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23