configure.in.tk
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:6k
源码类别:

通讯编程

开发平台:

Visual C++

  1. dnl autoconf rules to find tk 
  2. dnl $Header: /cvsroot/nsnam/conf/configure.in.tk,v 1.33 2007/02/18 22:42:36 tom_henderson Exp $ (LBL)
  3. AC_ARG_WITH(tk, --with-tk=path specify a pathname for tk, d=$withval, d="")
  4. dnl library version defaults to 8.0
  5. AC_ARG_WITH(tk-ver, --with-tk-ver=path specify the version of tcl/tk, TK_VERS=$withval, TK_VERS=8.4.18)
  6. dnl Truncate anything beyond and including the second decimal point
  7. TK_HI_VERS=`echo $TK_VERS | sed 's/([[0-9]]*).([[0-9]]*).([[0-9]]*)/1.2/'`
  8. TK_MAJOR_VERS=`echo $TK_VERS | sed 's/([[0-9]]*).([[0-9]]*).([[0-9]]*)/1/'`
  9. TK_ALT_VERS=`echo $TK_VERS | sed 's/.//'`
  10. dnl work with one version in the past
  11. TK_OLD_VERS=8.3
  12. TK_OLD_ALT_VERS=`echo $TK_OLD_VERS | sed 's/.//'`
  13. TK_TCL_PLACES_D="$d 
  14.                 $d/lib/tk$TK_VERS 
  15.                 $d/lib/tk$TK_ALT_VERS 
  16. $d/lib/tk$TK_HI_VERS 
  17.                 $d/library 
  18.                 $d/lib/tk 
  19.                 $d/../lib/tk$TK_VERS 
  20.                 $d/../lib/tk$TK_ALT_VERS 
  21.                 $d/../lib/tk$TK_HI_VERS 
  22.                 $d/../lib/tk 
  23.                 $d/lib/tk$TK_OLD_VERS 
  24.                 $d/lib/tk$TK_OLD_ALT_VERS 
  25.                 $d/../lib/tk$TK_OLD_VERS 
  26.                 $d/../lib/tk$TK_OLD_ALT_VERS 
  27.                 $d/../lib/tk 
  28.                 $d/lib 
  29. /System/Library/Frameworks/Tk.framework/Versions/8.4/Resources/Scripts 
  30.                 $d/library"
  31. TK_TCL_PLACES=" 
  32. ../lib/tk$TK_HI_VERS 
  33. ../lib/tk$TK_VERS 
  34. ../lib/tk$TK_ALT_VERS 
  35. ../tk$TK_VERS/library 
  36.                 ../tk$TK_ALT_VERS/library 
  37.                 ../tk$TK_HI_VERS/library 
  38. ../tk/library 
  39.                 /usr/src/local/tk$TK_VERS/library 
  40.                 /usr/src/local/tk$TK_ALT_VERS/library 
  41.                 /usr/src/local/tk$TK_HI_VERS/library 
  42.                 /usr/contrib/include 
  43.                 /usr/local/lib/tk$TK_VERS 
  44.                 /usr/local/lib/tk$TK_ALT_VERS 
  45.                 /usr/local/lib/tk$TK_HI_VERS 
  46.                 /usr/local/include/tk$TK_VERS 
  47.                 /usr/local/include/tk$TK_ALT_VERS 
  48.                 /usr/local/include/tk$TK_HI_VERS 
  49.                 /usr/local/include  
  50.                 /usr/lib/tk$TK_VERS 
  51.                 /usr/lib/tk$TK_ALT_VERS 
  52.                 /usr/lib/tk$TK_HI_VERS 
  53.                 /usr/lib/tk 
  54.                 /usr/share/tk$TK_VERS 
  55.                 /usr/share/tk$TK_ALT_VERS 
  56.                 /usr/share/tk$TK_HI_VERS 
  57.                 /usr/share/tk 
  58. ../tk$TK_OLD_VERS/library 
  59.                 ../tk$TK_OLD_ALT_VERS/library 
  60.                 /usr/src/local/tk$TK_OLD_VERS/library 
  61.                 /usr/src/local/tk$TK_OLD_ALT_VERS/library 
  62.                 /usr/local/lib/tk$TK_OLD_VERS 
  63.                 /usr/local/lib/tk$TK_OLD_ALT_VERS 
  64.                 /usr/local/include/tk$TK_OLD_VERS 
  65.                 /usr/local/include/tk$TK_OLD_ALT_VERS 
  66.                 /usr/lib/tk$TK_OLD_VERS 
  67.                 /usr/lib/tk$TK_OLD_ALT_VERS 
  68.                 $prefix/include 
  69. $prefix/lib/tk 
  70.                 $x_includes/tk 
  71.                 $x_includes 
  72.                 /usr/include"
  73. TK_H_PLACES_D="$d 
  74.                 $d/generic 
  75.                 $d/../include/tk$TK_VERS 
  76.                 $d/../include/tk$TK_HI_VERS 
  77.                 $d/../include/tk$TK_OLD_VERS 
  78. $d/include/tk$TK_VERS 
  79. $d/include/tk$TK_HI_VERS 
  80. $d/include/tk$TK_OLD_VERS 
  81.                 $d/include"
  82. TK_H_PLACES=" 
  83. ../include 
  84. ../tk$TK_VERS/generic 
  85.                 ../tk$TK_ALT_VERS/generic 
  86.                 ../tk$TK_HI_VERS/generic 
  87. /usr/src/local/tk$TK_VERS/generic 
  88.                 /usr/src/local/tk$TK_ALT_VERS/generic 
  89.                 /usr/src/local/tk$TK_HI_VERS/generic 
  90.                 /usr/contrib/include 
  91.                 /usr/local/lib/tk$TK_VERS 
  92.                 /usr/local/lib/tk$TK_ALT_VERS 
  93.                 /usr/local/lib/tk$TK_HI_VERS 
  94.                 /usr/local/include/tk$TK_VERS 
  95.                 /usr/local/include/tk$TK_ALT_VERS 
  96.                 /usr/local/include/tk$TK_HI_VERS 
  97.                 /usr/local/include 
  98.                 /import/tk/include/tk$TK_VERS 
  99.                 /import/tk/include/tk$TK_ALT_VERS 
  100.                 /import/tk/include/tk$TK_HI_VERS 
  101. ../tk$TK_OLD_VERS/generic 
  102.                 ../tk$TK_OLD_ALT_VERS/generic 
  103. /usr/src/local/tk$TK_OLD_VERS/generic 
  104.                 /usr/src/local/tk$TK_OLD_ALT_VERS/generic 
  105.                 /usr/local/lib/tk$TK_OLD_VERS 
  106.                 /usr/local/lib/tk$TK_OLD_ALT_VERS 
  107.                 /usr/local/include/tk$TK_OLD_VERS 
  108.                 /usr/local/include/tk$TK_OLD_ALT_VERS 
  109.                 /import/tk/include/tk$TK_OLD_VERS 
  110.                 /import/tk/include/tk$TK_OLD_ALT_VERS 
  111.                 $prefix/include 
  112.                 $x_includes/tk 
  113.                 $x_includes 
  114.                 /usr/include 
  115.                 /usr/include/tcl 
  116.                 /usr/include/tcl$TK_VERS 
  117.                 /usr/include/tcl$TK_ALT_VERS 
  118.                 /usr/include/tcl$TK_HI_VERS"
  119. dnl /usr/include/tcl for debian/linux
  120. TK_LIB_PLACES_D="$d  
  121.                 $d/lib 
  122. $d/unix"
  123. TK_LIB_PLACES=" 
  124. ../lib 
  125. ../lib/tk$TK_HI_VERS 
  126. ../lib/tk$TK_VERS 
  127. ../lib/tk$TK_ALT_VERS 
  128. ../tk$TK_VERS/unix 
  129.                 ../tk$TK_ALT_VERS/unix 
  130.                 ../tk$TK_HI_VERS/unix 
  131.                 /usr/src/local/tk$TK_VERS/unix 
  132.                 /usr/src/local/tk$TK_ALT_VERS/unix 
  133.                 /usr/src/local/tk$TK_HI_VERS/unix 
  134.                 /usr/contrib/lib 
  135.                 /usr/local/lib/tk$TK_VERS 
  136.                 /usr/local/lib/tk$TK_ALT_VERS 
  137.                 /usr/local/lib/tk$TK_HI_VERS 
  138. ../tk$TK_OLD_VERS/unix 
  139.                 ../tk$TK_OLD_ALT_VERS/unix 
  140.                 /usr/src/local/tk$TK_OLD_VERS/unix 
  141.                 /usr/src/local/tk$TK_OLD_ALT_VERS/unix 
  142.                 /usr/local/lib/tk$TK_OLD_VERS 
  143.                 /usr/local/lib/tk$TK_OLD_ALT_VERS 
  144.                 /usr/local/lib 
  145.                 $prefix/lib 
  146.                 $x_libs/tk 
  147.                 $x_libs 
  148.                 /usr/lib"
  149. NS_BEGIN_PACKAGE(tk)
  150. NS_CHECK_HEADER_PATH(tk.h,$TK_H_PLACES,$d,$TK_H_PLACES_D,V_INCLUDE_TK,tk)
  151. NS_CHECK_LIB_PATH(tk$TK_HI_VERS,$TK_LIB_PLACES,$d,$TK_LIB_PLACES_D,V_LIB_TK,tk)
  152. NS_CHECK_ANY_PATH(tk.tcl,$TK_TCL_PLACES,$d,$TK_TCL_PLACES_D,V_LIBRARY_TK,tk)
  153. NS_END_PACKAGE(tk,no)
  154. if test -r $V_LIBRARY_TK/optionMenu.tcl ; then
  155. V_TKDOSNAMES='$(LIBRARY_TK)/optionMenu.tcl $(LIBRARY_TK)/scrollbar.tcl'
  156. V_NEED_DL=""
  157. else
  158. V_TKDOSNAMES='$(LIBRARY_TK)/optMenu.tcl $(LIBRARY_TK)/scrlbar.tcl'
  159. V_NEED_DL=YES
  160. fi
  161. AC_SUBST(V_TKDOSNAMES)
  162. AC_SUBST(V_LIBRARY_TK)