Changeset 37402


Ignore:
Timestamp:
May 23, 2009, 10:10:51 AM (15 years ago)
Author:
kyngchaos
Message:

support 64bit build with 32bit TclTk aqua on OSX

Location:
grass/branches/develbranch_6
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • grass/branches/develbranch_6/configure

    r37280 r37402  
    88318831# Done checking PNG
    88328832
    8833 # Enable TCLTK option
    8834 
    8835 
    8836 echo $ac_n "checking whether to use Tcl/Tk""... $ac_c" 1>&6
    8837 echo "configure:8838: checking whether to use Tcl/Tk" >&5
    8838 echo "$ac_t"""$with_tcltk"" 1>&6
    8839 case "$with_tcltk" in
    8840         "no")   USE_TCLTK=      ;;
    8841         "yes")  USE_TCLTK="1"   ;;
    8842         *)      { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; }       ;;
    8843 esac
    8844 
    8845 
    8846 
    8847 TCLINCDIR=
    8848 TCLTKLIBPATH=
    8849 TCLTKLIBS=
    8850 
    8851 if test -n "$USE_TCLTK"; then
    8852 
    8853 # With Tcl/Tk includes directory
    8854 
    8855 
    8856 echo $ac_n "checking for location of Tcl/Tk includes""... $ac_c" 1>&6
    8857 echo "configure:8858: checking for location of Tcl/Tk includes" >&5
    8858 case "$with_tcltk_includes" in
    8859 y | ye | yes | n | no)
    8860         { echo "configure: error: *** You must supply a directory to --with-tcltk-includes." 1>&2; exit 1; }
    8861         ;;
    8862 esac
    8863 echo "$ac_t""$with_tcltk_includes" 1>&6
    8864 
    8865 if test -n "$with_tcltk_includes" ; then
    8866     for dir in $with_tcltk_includes; do
    8867         if test -d "$dir"; then
    8868             TCLINCDIR="$TCLINCDIR -I$dir"
    8869         else
    8870             { echo "configure: error: *** Tcl/Tk includes directory $dir does not exist." 1>&2; exit 1; }
    8871         fi
    8872     done
    8873 fi
    8874 
    8875 
    8876 
    8877 ac_save_cppflags="$CPPFLAGS"
    8878 CPPFLAGS="$TCLINCDIR $CPPFLAGS"
    8879 for ac_hdr in tcl.h
    8880 do
    8881 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    8882 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    8883 echo "configure:8884: checking for $ac_hdr" >&5
    8884 
    8885 cat > conftest.$ac_ext <<EOF
    8886 #line 8887 "configure"
    8887 #include "confdefs.h"
    8888 #include <$ac_hdr>
    8889 EOF
    8890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    8891 { (eval echo configure:8892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    8892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    8893 if test -z "$ac_err"; then
    8894   rm -rf conftest*
    8895   eval "ac_cv_header_$ac_safe=yes"
    8896 else
    8897   echo "$ac_err" >&5
    8898   echo "configure: failed program was:" >&5
    8899   cat conftest.$ac_ext >&5
    8900   rm -rf conftest*
    8901   eval "ac_cv_header_$ac_safe=no"
    8902 fi
    8903 rm -f conftest*
    8904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    8905   echo "$ac_t""yes" 1>&6
    8906     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    8907   cat >> confdefs.h <<EOF
    8908 #define $ac_tr_hdr 1
    8909 EOF
    8910  
    8911 else
    8912   echo "$ac_t""no" 1>&6
    8913 { echo "configure: error: *** Unable to locate Tcl includes." 1>&2; exit 1; }
    8914 
    8915 fi
    8916 done
    8917 
    8918 CPPFLAGS=$ac_save_cppflags
    8919 
    8920 
    8921 
    8922 ac_save_cppflags="$CPPFLAGS"
    8923 CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
    8924 for ac_hdr in tk.h
    8925 do
    8926 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    8927 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    8928 echo "configure:8929: checking for $ac_hdr" >&5
    8929 
    8930 cat > conftest.$ac_ext <<EOF
    8931 #line 8932 "configure"
    8932 #include "confdefs.h"
    8933 #include <$ac_hdr>
    8934 EOF
    8935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    8936 { (eval echo configure:8937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    8937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    8938 if test -z "$ac_err"; then
    8939   rm -rf conftest*
    8940   eval "ac_cv_header_$ac_safe=yes"
    8941 else
    8942   echo "$ac_err" >&5
    8943   echo "configure: failed program was:" >&5
    8944   cat conftest.$ac_ext >&5
    8945   rm -rf conftest*
    8946   eval "ac_cv_header_$ac_safe=no"
    8947 fi
    8948 rm -f conftest*
    8949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    8950   echo "$ac_t""yes" 1>&6
    8951     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    8952   cat >> confdefs.h <<EOF
    8953 #define $ac_tr_hdr 1
    8954 EOF
    8955  
    8956 else
    8957   echo "$ac_t""no" 1>&6
    8958 { echo "configure: error: *** Unable to locate Tk includes." 1>&2; exit 1; }
    8959 
    8960 fi
    8961 done
    8962 
    8963 CPPFLAGS=$ac_save_cppflags
    8964 
    8965 
    8966 # Tcl/Tk version checks
    8967 
    8968 echo $ac_n "checking Tcl version""... $ac_c" 1>&6
    8969 echo "configure:8970: checking Tcl version" >&5
    8970 ac_save_cppflags="$CPPFLAGS"
    8971 CPPFLAGS="$TCLINCDIR $CPPFLAGS"
    8972 if test "$cross_compiling" = yes; then
    8973      tcl_ver=UNKNOWN
    8974     echo "$ac_t""unknown (cross-compiling)" 1>&6
    8975 else
    8976   cat > conftest.$ac_ext <<EOF
    8977 #line 8978 "configure"
    8978 #include "confdefs.h"
    8979 
    8980 #include <stdio.h>
    8981 #include <tcl.h>
    8982 int main(void) {
    8983  FILE *fp = fopen("conftestdata","w");
    8984  fputs(TCL_VERSION, fp);
    8985  return 0;
    8986 }
    8987 
    8988 EOF
    8989 if { (eval echo configure:8990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    8990 then
    8991      tcl_ver=`cat conftestdata`
    8992     echo "$ac_t""$tcl_ver" 1>&6
    8993 else
    8994   echo "configure: failed program was:" >&5
    8995   cat conftest.$ac_ext >&5
    8996   rm -fr conftest*
    8997      { echo "configure: error: *** Could not determine Tcl version." 1>&2; exit 1; }
    8998 fi
    8999 rm -fr conftest*
    9000 fi
    9001 
    9002 CPPFLAGS=$ac_save_cppflags
    9003 
    9004 
    9005 
    9006 echo $ac_n "checking Tk version""... $ac_c" 1>&6
    9007 echo "configure:9008: checking Tk version" >&5
    9008 ac_save_cppflags="$CPPFLAGS"
    9009 CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
    9010 if test "$cross_compiling" = yes; then
    9011      tk_ver=UNKNOWN
    9012     echo "$ac_t""unknown (cross-compiling)" 1>&6
    9013 else
    9014   cat > conftest.$ac_ext <<EOF
    9015 #line 9016 "configure"
    9016 #include "confdefs.h"
    9017 
    9018 #include <stdio.h>
    9019 #include <tk.h>
    9020 int main(void) {
    9021  FILE *fp = fopen("conftestdata","w");
    9022  fputs(TK_VERSION, fp);
    9023  return 0;
    9024 }
    9025 
    9026 EOF
    9027 if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    9028 then
    9029      tk_ver=`cat conftestdata`
    9030     echo "$ac_t""$tk_ver" 1>&6
    9031 else
    9032   echo "configure: failed program was:" >&5
    9033   cat conftest.$ac_ext >&5
    9034   rm -fr conftest*
    9035      { echo "configure: error: *** Could not determine Tk version." 1>&2; exit 1; }
    9036 fi
    9037 rm -fr conftest*
    9038 fi
    9039 
    9040 CPPFLAGS=$ac_save_cppflags
    9041 
    9042 
    9043 if test "$tcl_ver" = "$tk_ver" ; then
    9044     tcltk_ver=$tcl_ver
    9045 else
    9046     { echo "configure: error: *** Tcl/Tk version mismatch." 1>&2; exit 1; }
    9047 fi
    9048 
    9049 TCL_VERSION="$tcl_ver"
    9050 
    9051 # FreeBSD and CygWin don't have a "dot" between major/minor version number
    9052 tcltk_ver2=`echo $tcltk_ver | sed 's/\.//g'`
    9053 
    9054 # With Tcl/Tk library directory
    9055 
    9056 
    9057 echo $ac_n "checking for location of Tcl/Tk library""... $ac_c" 1>&6
    9058 echo "configure:9059: checking for location of Tcl/Tk library" >&5
    9059 case "$with_tcltk_libs" in
    9060 y | ye | yes | n | no)
    9061         { echo "configure: error: *** You must supply a directory to --with-tcltk-libs." 1>&2; exit 1; }
    9062         ;;
    9063 esac
    9064 echo "$ac_t""$with_tcltk_libs" 1>&6
    9065 
    9066 if test -n "$with_tcltk_libs"; then
    9067     for dir in $with_tcltk_libs; do
    9068         if test -d "$dir"; then
    9069             TCLTKLIBPATH="$TCLTKLIBPATH -L$dir"
    9070         else
    9071             { echo "configure: error: *** Tcl/Tk library directory $dir does not exist." 1>&2; exit 1; }
    9072         fi
    9073     done
    9074 fi
    9075 
    9076 
    9077 TCLLIB=
    9078 TKLIB=
    9079 
    9080 
    9081 ac_save_ldflags="$LDFLAGS"
    9082 LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
    9083 
    9084 
    9085 
    9086 
    9087 echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
    9088 echo "configure:9089: checking for Tcl_Init in -ltcl" >&5
    9089 ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
    9090 
    9091 ac_save_LIBS="$LIBS"
    9092 LIBS="-ltcl $MATHLIB $LIBS"
    9093 cat > conftest.$ac_ext <<EOF
    9094 #line 9095 "configure"
    9095 #include "confdefs.h"
    9096 /* Override any gcc2 internal prototype to avoid an error.  */
    9097 /* We use char because int might match the return type of a gcc2
    9098     builtin and then its argument prototype would still apply.  */
    9099 char Tcl_Init();
    9100 
    9101 int main() {
    9102 Tcl_Init()
    9103 ; return 0; }
    9104 EOF
    9105 if { (eval echo configure:9106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9106   rm -rf conftest*
    9107   eval "ac_cv_lib_$ac_lib_var=yes"
    9108 else
    9109   echo "configure: failed program was:" >&5
    9110   cat conftest.$ac_ext >&5
    9111   rm -rf conftest*
    9112   eval "ac_cv_lib_$ac_lib_var=no"
    9113 fi
    9114 rm -f conftest*
    9115 LIBS="$ac_save_LIBS"
    9116 
    9117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    9118   echo "$ac_t""yes" 1>&6
    9119   TCLLIB="$TCLLIB -ltcl $MATHLIB"
    9120 else
    9121   echo "$ac_t""no" 1>&6
    9122 
    9123 echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
    9124 echo "configure:9125: checking for Tcl_Init in -ltcl" >&5
    9125 ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
    9126 
    9127 ac_save_LIBS="$LIBS"
    9128 LIBS="-ltcl $MATHLIB $DLLIB $LIBS"
    9129 cat > conftest.$ac_ext <<EOF
    9130 #line 9131 "configure"
    9131 #include "confdefs.h"
    9132 /* Override any gcc2 internal prototype to avoid an error.  */
    9133 /* We use char because int might match the return type of a gcc2
    9134     builtin and then its argument prototype would still apply.  */
    9135 char Tcl_Init();
    9136 
    9137 int main() {
    9138 Tcl_Init()
    9139 ; return 0; }
    9140 EOF
    9141 if { (eval echo configure:9142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9142   rm -rf conftest*
    9143   eval "ac_cv_lib_$ac_lib_var=yes"
    9144 else
    9145   echo "configure: failed program was:" >&5
    9146   cat conftest.$ac_ext >&5
    9147   rm -rf conftest*
    9148   eval "ac_cv_lib_$ac_lib_var=no"
    9149 fi
    9150 rm -f conftest*
    9151 LIBS="$ac_save_LIBS"
    9152 
    9153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    9154   echo "$ac_t""yes" 1>&6
    9155   TCLLIB="$TCLLIB -ltcl $MATHLIB $DLLIB"
    9156 else
    9157   echo "$ac_t""no" 1>&6
    9158 
    9159 LDFLAGS=${ac_save_ldflags}
    9160 
    9161 ac_save_ldflags="$LDFLAGS"
    9162 LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
    9163 
    9164 
    9165 
    9166 
    9167 echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
    9168 echo "configure:9169: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
    9169 ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
    9170 
    9171 ac_save_LIBS="$LIBS"
    9172 LIBS="-ltcl$tcltk_ver $MATHLIB $LIBS"
    9173 cat > conftest.$ac_ext <<EOF
    9174 #line 9175 "configure"
    9175 #include "confdefs.h"
    9176 /* Override any gcc2 internal prototype to avoid an error.  */
    9177 /* We use char because int might match the return type of a gcc2
    9178     builtin and then its argument prototype would still apply.  */
    9179 char Tcl_Init();
    9180 
    9181 int main() {
    9182 Tcl_Init()
    9183 ; return 0; }
    9184 EOF
    9185 if { (eval echo configure:9186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9186   rm -rf conftest*
    9187   eval "ac_cv_lib_$ac_lib_var=yes"
    9188 else
    9189   echo "configure: failed program was:" >&5
    9190   cat conftest.$ac_ext >&5
    9191   rm -rf conftest*
    9192   eval "ac_cv_lib_$ac_lib_var=no"
    9193 fi
    9194 rm -f conftest*
    9195 LIBS="$ac_save_LIBS"
    9196 
    9197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    9198   echo "$ac_t""yes" 1>&6
    9199   TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB"
    9200 else
    9201   echo "$ac_t""no" 1>&6
    9202 
    9203 echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
    9204 echo "configure:9205: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
    9205 ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
    9206 
    9207 ac_save_LIBS="$LIBS"
    9208 LIBS="-ltcl$tcltk_ver $MATHLIB $DLLIB $LIBS"
    9209 cat > conftest.$ac_ext <<EOF
    9210 #line 9211 "configure"
    9211 #include "confdefs.h"
    9212 /* Override any gcc2 internal prototype to avoid an error.  */
    9213 /* We use char because int might match the return type of a gcc2
    9214     builtin and then its argument prototype would still apply.  */
    9215 char Tcl_Init();
    9216 
    9217 int main() {
    9218 Tcl_Init()
    9219 ; return 0; }
    9220 EOF
    9221 if { (eval echo configure:9222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9222   rm -rf conftest*
    9223   eval "ac_cv_lib_$ac_lib_var=yes"
    9224 else
    9225   echo "configure: failed program was:" >&5
    9226   cat conftest.$ac_ext >&5
    9227   rm -rf conftest*
    9228   eval "ac_cv_lib_$ac_lib_var=no"
    9229 fi
    9230 rm -f conftest*
    9231 LIBS="$ac_save_LIBS"
    9232 
    9233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    9234   echo "$ac_t""yes" 1>&6
    9235   TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB $DLLIB"
    9236 else
    9237   echo "$ac_t""no" 1>&6
    9238 
    9239 LDFLAGS=${ac_save_ldflags}
    9240 
    9241 ac_save_ldflags="$LDFLAGS"
    9242 LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
    9243 
    9244 
    9245 
    9246 
    9247 echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
    9248 echo "configure:9249: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
    9249 ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
    9250 
    9251 ac_save_LIBS="$LIBS"
    9252 LIBS="-ltcl$tcltk_ver2 $MATHLIB $LIBS"
    9253 cat > conftest.$ac_ext <<EOF
    9254 #line 9255 "configure"
    9255 #include "confdefs.h"
    9256 /* Override any gcc2 internal prototype to avoid an error.  */
    9257 /* We use char because int might match the return type of a gcc2
    9258     builtin and then its argument prototype would still apply.  */
    9259 char Tcl_Init();
    9260 
    9261 int main() {
    9262 Tcl_Init()
    9263 ; return 0; }
    9264 EOF
    9265 if { (eval echo configure:9266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9266   rm -rf conftest*
    9267   eval "ac_cv_lib_$ac_lib_var=yes"
    9268 else
    9269   echo "configure: failed program was:" >&5
    9270   cat conftest.$ac_ext >&5
    9271   rm -rf conftest*
    9272   eval "ac_cv_lib_$ac_lib_var=no"
    9273 fi
    9274 rm -f conftest*
    9275 LIBS="$ac_save_LIBS"
    9276 
    9277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    9278   echo "$ac_t""yes" 1>&6
    9279   TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB"
    9280 else
    9281   echo "$ac_t""no" 1>&6
    9282 
    9283 echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
    9284 echo "configure:9285: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
    9285 ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
    9286 
    9287 ac_save_LIBS="$LIBS"
    9288 LIBS="-ltcl$tcltk_ver2 $MATHLIB $DLLIB $LIBS"
    9289 cat > conftest.$ac_ext <<EOF
    9290 #line 9291 "configure"
    9291 #include "confdefs.h"
    9292 /* Override any gcc2 internal prototype to avoid an error.  */
    9293 /* We use char because int might match the return type of a gcc2
    9294     builtin and then its argument prototype would still apply.  */
    9295 char Tcl_Init();
    9296 
    9297 int main() {
    9298 Tcl_Init()
    9299 ; return 0; }
    9300 EOF
    9301 if { (eval echo configure:9302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9302   rm -rf conftest*
    9303   eval "ac_cv_lib_$ac_lib_var=yes"
    9304 else
    9305   echo "configure: failed program was:" >&5
    9306   cat conftest.$ac_ext >&5
    9307   rm -rf conftest*
    9308   eval "ac_cv_lib_$ac_lib_var=no"
    9309 fi
    9310 rm -f conftest*
    9311 LIBS="$ac_save_LIBS"
    9312 
    9313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    9314   echo "$ac_t""yes" 1>&6
    9315   TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB $DLLIB"
    9316 else
    9317   echo "$ac_t""no" 1>&6
    9318 
    9319 LDFLAGS=${ac_save_ldflags}
    9320 
    9321     { echo "configure: error: *** Unable to locate Tcl library." 1>&2; exit 1; }
    9322 
    9323 
    9324 fi
    9325 
    9326 
    9327 
    9328 
    9329 fi
    9330 
    9331 
    9332 
    9333 
    9334 
    9335 
    9336 LDFLAGS=${ac_save_ldflags}
    9337 
    9338 
    9339 
    9340 fi
    9341 
    9342 
    9343 
    9344 
    9345 fi
    9346 
    9347 
    9348 
    9349 
    9350 
    9351 
    9352 LDFLAGS=${ac_save_ldflags}
    9353 
    9354 
    9355 
    9356 fi
    9357 
    9358 
    9359 
    9360 
    9361 fi
    9362 
    9363 
    9364 
    9365 
    9366 
    9367 
    9368 LDFLAGS=${ac_save_ldflags}
    9369 
    9370 
    9371 
    9372 ac_save_ldflags="$LDFLAGS"
    9373 LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
    9374 
    9375 
    9376 
    9377 
    9378 echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
    9379 echo "configure:9380: checking for Tk_MainWindow in -ltk" >&5
    9380 ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
    9381 
    9382 ac_save_LIBS="$LIBS"
    9383 LIBS="-ltk $TCLLIB $MATHLIB $LIBS"
    9384 cat > conftest.$ac_ext <<EOF
    9385 #line 9386 "configure"
    9386 #include "confdefs.h"
    9387 /* Override any gcc2 internal prototype to avoid an error.  */
    9388 /* We use char because int might match the return type of a gcc2
    9389     builtin and then its argument prototype would still apply.  */
    9390 char Tk_MainWindow();
    9391 
    9392 int main() {
    9393 Tk_MainWindow()
    9394 ; return 0; }
    9395 EOF
    9396 if { (eval echo configure:9397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9397   rm -rf conftest*
    9398   eval "ac_cv_lib_$ac_lib_var=yes"
    9399 else
    9400   echo "configure: failed program was:" >&5
    9401   cat conftest.$ac_ext >&5
    9402   rm -rf conftest*
    9403   eval "ac_cv_lib_$ac_lib_var=no"
    9404 fi
    9405 rm -f conftest*
    9406 LIBS="$ac_save_LIBS"
    9407 
    9408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    9409   echo "$ac_t""yes" 1>&6
    9410   TKLIB="$TKLIB -ltk $MATHLIB"
    9411 else
    9412   echo "$ac_t""no" 1>&6
    9413 
    9414 echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
    9415 echo "configure:9416: checking for Tk_MainWindow in -ltk" >&5
    9416 ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
    9417 
    9418 ac_save_LIBS="$LIBS"
    9419 LIBS="-ltk $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
    9420 cat > conftest.$ac_ext <<EOF
    9421 #line 9422 "configure"
    9422 #include "confdefs.h"
    9423 /* Override any gcc2 internal prototype to avoid an error.  */
    9424 /* We use char because int might match the return type of a gcc2
    9425     builtin and then its argument prototype would still apply.  */
    9426 char Tk_MainWindow();
    9427 
    9428 int main() {
    9429 Tk_MainWindow()
    9430 ; return 0; }
    9431 EOF
    9432 if { (eval echo configure:9433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9433   rm -rf conftest*
    9434   eval "ac_cv_lib_$ac_lib_var=yes"
    9435 else
    9436   echo "configure: failed program was:" >&5
    9437   cat conftest.$ac_ext >&5
    9438   rm -rf conftest*
    9439   eval "ac_cv_lib_$ac_lib_var=no"
    9440 fi
    9441 rm -f conftest*
    9442 LIBS="$ac_save_LIBS"
    9443 
    9444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    9445   echo "$ac_t""yes" 1>&6
    9446   TKLIB="$TKLIB -ltk $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
    9447 else
    9448   echo "$ac_t""no" 1>&6
    9449 
    9450 LDFLAGS=${ac_save_ldflags}
    9451 
    9452 ac_save_ldflags="$LDFLAGS"
    9453 LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
    9454 
    9455 
    9456 
    9457 
    9458 echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
    9459 echo "configure:9460: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
    9460 ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
    9461 
    9462 ac_save_LIBS="$LIBS"
    9463 LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $LIBS"
    9464 cat > conftest.$ac_ext <<EOF
    9465 #line 9466 "configure"
    9466 #include "confdefs.h"
    9467 /* Override any gcc2 internal prototype to avoid an error.  */
    9468 /* We use char because int might match the return type of a gcc2
    9469     builtin and then its argument prototype would still apply.  */
    9470 char Tk_MainWindow();
    9471 
    9472 int main() {
    9473 Tk_MainWindow()
    9474 ; return 0; }
    9475 EOF
    9476 if { (eval echo configure:9477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9477   rm -rf conftest*
    9478   eval "ac_cv_lib_$ac_lib_var=yes"
    9479 else
    9480   echo "configure: failed program was:" >&5
    9481   cat conftest.$ac_ext >&5
    9482   rm -rf conftest*
    9483   eval "ac_cv_lib_$ac_lib_var=no"
    9484 fi
    9485 rm -f conftest*
    9486 LIBS="$ac_save_LIBS"
    9487 
    9488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    9489   echo "$ac_t""yes" 1>&6
    9490   TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB"
    9491 else
    9492   echo "$ac_t""no" 1>&6
    9493 
    9494 echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
    9495 echo "configure:9496: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
    9496 ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
    9497 
    9498 ac_save_LIBS="$LIBS"
    9499 LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
    9500 cat > conftest.$ac_ext <<EOF
    9501 #line 9502 "configure"
    9502 #include "confdefs.h"
    9503 /* Override any gcc2 internal prototype to avoid an error.  */
    9504 /* We use char because int might match the return type of a gcc2
    9505     builtin and then its argument prototype would still apply.  */
    9506 char Tk_MainWindow();
    9507 
    9508 int main() {
    9509 Tk_MainWindow()
    9510 ; return 0; }
    9511 EOF
    9512 if { (eval echo configure:9513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9513   rm -rf conftest*
    9514   eval "ac_cv_lib_$ac_lib_var=yes"
    9515 else
    9516   echo "configure: failed program was:" >&5
    9517   cat conftest.$ac_ext >&5
    9518   rm -rf conftest*
    9519   eval "ac_cv_lib_$ac_lib_var=no"
    9520 fi
    9521 rm -f conftest*
    9522 LIBS="$ac_save_LIBS"
    9523 
    9524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    9525   echo "$ac_t""yes" 1>&6
    9526   TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
    9527 else
    9528   echo "$ac_t""no" 1>&6
    9529 
    9530 LDFLAGS=${ac_save_ldflags}
    9531 
    9532 ac_save_ldflags="$LDFLAGS"
    9533 LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
    9534 
    9535 
    9536 
    9537 
    9538 echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
    9539 echo "configure:9540: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
    9540 ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
    9541 
    9542 ac_save_LIBS="$LIBS"
    9543 LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $LIBS"
    9544 cat > conftest.$ac_ext <<EOF
    9545 #line 9546 "configure"
    9546 #include "confdefs.h"
    9547 /* Override any gcc2 internal prototype to avoid an error.  */
    9548 /* We use char because int might match the return type of a gcc2
    9549     builtin and then its argument prototype would still apply.  */
    9550 char Tk_MainWindow();
    9551 
    9552 int main() {
    9553 Tk_MainWindow()
    9554 ; return 0; }
    9555 EOF
    9556 if { (eval echo configure:9557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9557   rm -rf conftest*
    9558   eval "ac_cv_lib_$ac_lib_var=yes"
    9559 else
    9560   echo "configure: failed program was:" >&5
    9561   cat conftest.$ac_ext >&5
    9562   rm -rf conftest*
    9563   eval "ac_cv_lib_$ac_lib_var=no"
    9564 fi
    9565 rm -f conftest*
    9566 LIBS="$ac_save_LIBS"
    9567 
    9568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    9569   echo "$ac_t""yes" 1>&6
    9570   TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB"
    9571 else
    9572   echo "$ac_t""no" 1>&6
    9573 
    9574 echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
    9575 echo "configure:9576: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
    9576 ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
    9577 
    9578 ac_save_LIBS="$LIBS"
    9579 LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
    9580 cat > conftest.$ac_ext <<EOF
    9581 #line 9582 "configure"
    9582 #include "confdefs.h"
    9583 /* Override any gcc2 internal prototype to avoid an error.  */
    9584 /* We use char because int might match the return type of a gcc2
    9585     builtin and then its argument prototype would still apply.  */
    9586 char Tk_MainWindow();
    9587 
    9588 int main() {
    9589 Tk_MainWindow()
    9590 ; return 0; }
    9591 EOF
    9592 if { (eval echo configure:9593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9593   rm -rf conftest*
    9594   eval "ac_cv_lib_$ac_lib_var=yes"
    9595 else
    9596   echo "configure: failed program was:" >&5
    9597   cat conftest.$ac_ext >&5
    9598   rm -rf conftest*
    9599   eval "ac_cv_lib_$ac_lib_var=no"
    9600 fi
    9601 rm -f conftest*
    9602 LIBS="$ac_save_LIBS"
    9603 
    9604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    9605   echo "$ac_t""yes" 1>&6
    9606   TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
    9607 else
    9608   echo "$ac_t""no" 1>&6
    9609 
    9610 LDFLAGS=${ac_save_ldflags}
    9611 
    9612     { echo "configure: error: *** Unable to locate Tk library." 1>&2; exit 1; }
    9613 
    9614 
    9615 fi
    9616 
    9617 
    9618 
    9619 
    9620 fi
    9621 
    9622 
    9623 
    9624 
    9625 
    9626 
    9627 LDFLAGS=${ac_save_ldflags}
    9628 
    9629 
    9630 
    9631 fi
    9632 
    9633 
    9634 
    9635 
    9636 fi
    9637 
    9638 
    9639 
    9640 
    9641 
    9642 
    9643 LDFLAGS=${ac_save_ldflags}
    9644 
    9645 
    9646 
    9647 fi
    9648 
    9649 
    9650 
    9651 
    9652 fi
    9653 
    9654 
    9655 
    9656 
    9657 
    9658 
    9659 LDFLAGS=${ac_save_ldflags}
    9660 
    9661 
    9662 
    9663 TCLTKLIBS="$TKLIB $TCLLIB"
    9664 cat >> confdefs.h <<\EOF
    9665 #define HAVE_TCLTK 1
    9666 EOF
    9667 
    9668 
    9669 fi # $USE_TCLTK
    9670 
    9671 TKINCDIR=$TCLINCDIR
    9672 
    9673 
    9674 
    9675 
    9676 
    9677 
    9678 # Done checking Tcl/Tk
    9679 
    96808833# Enable PostgreSQL option
    96818834
    96828835
    96838836echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
    9684 echo "configure:9685: checking whether to use PostgreSQL" >&5
     8837echo "configure:8838: checking whether to use PostgreSQL" >&5
    96858838echo "$ac_t"""$with_postgres"" 1>&6
    96868839case "$with_postgres" in
     
    97098862
    97108863echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
    9711 echo "configure:9712: checking for location of PostgreSQL includes" >&5
     8864echo "configure:8865: checking for location of PostgreSQL includes" >&5
    97128865case "$with_postgres_includes" in
    97138866y | ye | yes | n | no)
     
    97358888ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    97368889echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    9737 echo "configure:9738: checking for $ac_hdr" >&5
    9738 
    9739 cat > conftest.$ac_ext <<EOF
    9740 #line 9741 "configure"
     8890echo "configure:8891: checking for $ac_hdr" >&5
     8891
     8892cat > conftest.$ac_ext <<EOF
     8893#line 8894 "configure"
    97418894#include "confdefs.h"
    97428895#include <$ac_hdr>
    97438896EOF
    97448897ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    9745 { (eval echo configure:9746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     8898{ (eval echo configure:8899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    97468899ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    97478900if test -z "$ac_err"; then
     
    97818934
    97828935echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
    9783 echo "configure:9784: checking for location of PostgreSQL library" >&5
     8936echo "configure:8937: checking for location of PostgreSQL library" >&5
    97848937case "$with_postgres_libs" in
    97858938y | ye | yes | n | no)
     
    98108963
    98118964echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
    9812 echo "configure:9813: checking for PQsetdbLogin in -lpq" >&5
     8965echo "configure:8966: checking for PQsetdbLogin in -lpq" >&5
    98138966ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
    98148967
     
    98168969LIBS="-lpq  $LIBS"
    98178970cat > conftest.$ac_ext <<EOF
    9818 #line 9819 "configure"
     8971#line 8972 "configure"
    98198972#include "confdefs.h"
    98208973/* Override any gcc2 internal prototype to avoid an error.  */
     
    98278980; return 0; }
    98288981EOF
    9829 if { (eval echo configure:9830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     8982if { (eval echo configure:8983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    98308983  rm -rf conftest*
    98318984  eval "ac_cv_lib_$ac_lib_var=yes"
     
    98468999
    98479000echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
    9848 echo "configure:9849: checking for PQsetdbLogin in -lpq" >&5
     9001echo "configure:9002: checking for PQsetdbLogin in -lpq" >&5
    98499002ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
    98509003
     
    98529005LIBS="-lpq -lssl -lcrypto $LIBS"
    98539006cat > conftest.$ac_ext <<EOF
    9854 #line 9855 "configure"
     9007#line 9008 "configure"
    98559008#include "confdefs.h"
    98569009/* Override any gcc2 internal prototype to avoid an error.  */
     
    98639016; return 0; }
    98649017EOF
    9865 if { (eval echo configure:9866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9018if { (eval echo configure:9019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    98669019  rm -rf conftest*
    98679020  eval "ac_cv_lib_$ac_lib_var=yes"
     
    98829035
    98839036echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
    9884 echo "configure:9885: checking for PQsetdbLogin in -lpq" >&5
     9037echo "configure:9038: checking for PQsetdbLogin in -lpq" >&5
    98859038ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
    98869039
     
    98889041LIBS="-lpq -lcrypt $LIBS"
    98899042cat > conftest.$ac_ext <<EOF
    9890 #line 9891 "configure"
     9043#line 9044 "configure"
    98919044#include "confdefs.h"
    98929045/* Override any gcc2 internal prototype to avoid an error.  */
     
    98999052; return 0; }
    99009053EOF
    9901 if { (eval echo configure:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9054if { (eval echo configure:9055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    99029055  rm -rf conftest*
    99039056  eval "ac_cv_lib_$ac_lib_var=yes"
     
    99189071
    99199072echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
    9920 echo "configure:9921: checking for PQsetdbLogin in -lpq" >&5
     9073echo "configure:9074: checking for PQsetdbLogin in -lpq" >&5
    99219074ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
    99229075
     
    99249077LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
    99259078cat > conftest.$ac_ext <<EOF
    9926 #line 9927 "configure"
     9079#line 9080 "configure"
    99279080#include "confdefs.h"
    99289081/* Override any gcc2 internal prototype to avoid an error.  */
     
    99359088; return 0; }
    99369089EOF
    9937 if { (eval echo configure:9938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9090if { (eval echo configure:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    99389091  rm -rf conftest*
    99399092  eval "ac_cv_lib_$ac_lib_var=yes"
     
    99929145LDFLAGS="$LDFLAGS $PQLIBPATH"
    99939146echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
    9994 echo "configure:9995: checking for PQcmdTuples in -lpq" >&5
     9147echo "configure:9148: checking for PQcmdTuples in -lpq" >&5
    99959148ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
    99969149
     
    99989151LIBS="-lpq  $LIBS"
    99999152cat > conftest.$ac_ext <<EOF
    10000 #line 10001 "configure"
     9153#line 9154 "configure"
    100019154#include "confdefs.h"
    100029155/* Override any gcc2 internal prototype to avoid an error.  */
     
    100099162; return 0; }
    100109163EOF
    10011 if { (eval echo configure:10012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9164if { (eval echo configure:9165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    100129165  rm -rf conftest*
    100139166  eval "ac_cv_lib_$ac_lib_var=yes"
     
    100319184
    100329185echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
    10033 echo "configure:10034: checking for PQcmdTuples in -lpq" >&5
     9186echo "configure:9187: checking for PQcmdTuples in -lpq" >&5
    100349187ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
    100359188
     
    100379190LIBS="-lpq -lcrypt $LIBS"
    100389191cat > conftest.$ac_ext <<EOF
    10039 #line 10040 "configure"
     9192#line 9193 "configure"
    100409193#include "confdefs.h"
    100419194/* Override any gcc2 internal prototype to avoid an error.  */
     
    100489201; return 0; }
    100499202EOF
    10050 if { (eval echo configure:10051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9203if { (eval echo configure:9204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    100519204  rm -rf conftest*
    100529205  eval "ac_cv_lib_$ac_lib_var=yes"
     
    100919244
    100929245echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
    10093 echo "configure:10094: checking whether to use MySQL" >&5
     9246echo "configure:9247: checking whether to use MySQL" >&5
    100949247echo "$ac_t"""$with_mysql"" 1>&6
    100959248case "$with_mysql" in
     
    101119264
    101129265echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
    10113 echo "configure:10114: checking for location of MySQL includes" >&5
     9266echo "configure:9267: checking for location of MySQL includes" >&5
    101149267case "$with_mysql_includes" in
    101159268y | ye | yes | n | no)
     
    101379290ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    101389291echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    10139 echo "configure:10140: checking for $ac_hdr" >&5
    10140 
    10141 cat > conftest.$ac_ext <<EOF
    10142 #line 10143 "configure"
     9292echo "configure:9293: checking for $ac_hdr" >&5
     9293
     9294cat > conftest.$ac_ext <<EOF
     9295#line 9296 "configure"
    101439296#include "confdefs.h"
    101449297#include <$ac_hdr>
    101459298EOF
    101469299ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    10147 { (eval echo configure:10148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     9300{ (eval echo configure:9301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    101489301ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    101499302if test -z "$ac_err"; then
     
    101829335 
    101839336echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
    10184 echo "configure:10185: checking for location of MySQL library" >&5
     9337echo "configure:9338: checking for location of MySQL library" >&5
    101859338case "$with_mysql_libs" in
    101869339y | ye | yes | n | no)
     
    102139366
    102149367echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    10215 echo "configure:10216: checking for mysql_query in -lmysqlclient" >&5
     9368echo "configure:9369: checking for mysql_query in -lmysqlclient" >&5
    102169369ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    102179370
     
    102199372LIBS="-lmysqlclient  $LIBS"
    102209373cat > conftest.$ac_ext <<EOF
    10221 #line 10222 "configure"
     9374#line 9375 "configure"
    102229375#include "confdefs.h"
    102239376/* Override any gcc2 internal prototype to avoid an error.  */
     
    102309383; return 0; }
    102319384EOF
    10232 if { (eval echo configure:10233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9385if { (eval echo configure:9386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    102339386  rm -rf conftest*
    102349387  eval "ac_cv_lib_$ac_lib_var=yes"
     
    102499402
    102509403echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    10251 echo "configure:10252: checking for mysql_query in -lmysqlclient" >&5
     9404echo "configure:9405: checking for mysql_query in -lmysqlclient" >&5
    102529405ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    102539406
     
    102559408LIBS="-lmysqlclient $MATHLIB $LIBS"
    102569409cat > conftest.$ac_ext <<EOF
    10257 #line 10258 "configure"
     9410#line 9411 "configure"
    102589411#include "confdefs.h"
    102599412/* Override any gcc2 internal prototype to avoid an error.  */
     
    102669419; return 0; }
    102679420EOF
    10268 if { (eval echo configure:10269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9421if { (eval echo configure:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    102699422  rm -rf conftest*
    102709423  eval "ac_cv_lib_$ac_lib_var=yes"
     
    102859438
    102869439echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    10287 echo "configure:10288: checking for mysql_query in -lmysqlclient" >&5
     9440echo "configure:9441: checking for mysql_query in -lmysqlclient" >&5
    102889441ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    102899442
     
    102919444LIBS="-lmysqlclient $SOCKLIB $LIBS"
    102929445cat > conftest.$ac_ext <<EOF
    10293 #line 10294 "configure"
     9446#line 9447 "configure"
    102949447#include "confdefs.h"
    102959448/* Override any gcc2 internal prototype to avoid an error.  */
     
    103029455; return 0; }
    103039456EOF
    10304 if { (eval echo configure:10305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9457if { (eval echo configure:9458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    103059458  rm -rf conftest*
    103069459  eval "ac_cv_lib_$ac_lib_var=yes"
     
    103219474
    103229475echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    10323 echo "configure:10324: checking for mysql_query in -lmysqlclient" >&5
     9476echo "configure:9477: checking for mysql_query in -lmysqlclient" >&5
    103249477ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    103259478
     
    103279480LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
    103289481cat > conftest.$ac_ext <<EOF
    10329 #line 10330 "configure"
     9482#line 9483 "configure"
    103309483#include "confdefs.h"
    103319484/* Override any gcc2 internal prototype to avoid an error.  */
     
    103389491; return 0; }
    103399492EOF
    10340 if { (eval echo configure:10341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9493if { (eval echo configure:9494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    103419494  rm -rf conftest*
    103429495  eval "ac_cv_lib_$ac_lib_var=yes"
     
    103579510
    103589511echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    10359 echo "configure:10360: checking for mysql_query in -lmysqlclient" >&5
     9512echo "configure:9513: checking for mysql_query in -lmysqlclient" >&5
    103609513ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    103619514
     
    103639516LIBS="-lmysqlclient $ZLIB $LIBS"
    103649517cat > conftest.$ac_ext <<EOF
    10365 #line 10366 "configure"
     9518#line 9519 "configure"
    103669519#include "confdefs.h"
    103679520/* Override any gcc2 internal prototype to avoid an error.  */
     
    103749527; return 0; }
    103759528EOF
    10376 if { (eval echo configure:10377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9529if { (eval echo configure:9530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    103779530  rm -rf conftest*
    103789531  eval "ac_cv_lib_$ac_lib_var=yes"
     
    103939546
    103949547echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    10395 echo "configure:10396: checking for mysql_query in -lmysqlclient" >&5
     9548echo "configure:9549: checking for mysql_query in -lmysqlclient" >&5
    103969549ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    103979550
     
    103999552LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
    104009553cat > conftest.$ac_ext <<EOF
    10401 #line 10402 "configure"
     9554#line 9555 "configure"
    104029555#include "confdefs.h"
    104039556/* Override any gcc2 internal prototype to avoid an error.  */
     
    104109563; return 0; }
    104119564EOF
    10412 if { (eval echo configure:10413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9565if { (eval echo configure:9566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    104139566  rm -rf conftest*
    104149567  eval "ac_cv_lib_$ac_lib_var=yes"
     
    104299582
    104309583echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    10431 echo "configure:10432: checking for mysql_query in -lmysqlclient" >&5
     9584echo "configure:9585: checking for mysql_query in -lmysqlclient" >&5
    104329585ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    104339586
     
    104359588LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
    104369589cat > conftest.$ac_ext <<EOF
    10437 #line 10438 "configure"
     9590#line 9591 "configure"
    104389591#include "confdefs.h"
    104399592/* Override any gcc2 internal prototype to avoid an error.  */
     
    104469599; return 0; }
    104479600EOF
    10448 if { (eval echo configure:10449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9601if { (eval echo configure:9602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    104499602  rm -rf conftest*
    104509603  eval "ac_cv_lib_$ac_lib_var=yes"
     
    104659618
    104669619echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    10467 echo "configure:10468: checking for mysql_query in -lmysqlclient" >&5
     9620echo "configure:9621: checking for mysql_query in -lmysqlclient" >&5
    104689621ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    104699622
     
    104719624LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
    104729625cat > conftest.$ac_ext <<EOF
    10473 #line 10474 "configure"
     9626#line 9627 "configure"
    104749627#include "confdefs.h"
    104759628/* Override any gcc2 internal prototype to avoid an error.  */
     
    104829635; return 0; }
    104839636EOF
    10484 if { (eval echo configure:10485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9637if { (eval echo configure:9638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    104859638  rm -rf conftest*
    104869639  eval "ac_cv_lib_$ac_lib_var=yes"
     
    105729725set dummy mysql_config; ac_word=$2
    105739726echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    10574 echo "configure:10575: checking for $ac_word" >&5
     9727echo "configure:9728: checking for $ac_word" >&5
    105759728
    105769729case "$MYSQLD_CONFIG" in
     
    106139766    LIBS="$MYSQLDLIB $LIBS"
    106149767    echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
    10615 echo "configure:10616: checking for mysql_server_init" >&5
    10616 
    10617 cat > conftest.$ac_ext <<EOF
    10618 #line 10619 "configure"
     9768echo "configure:9769: checking for mysql_server_init" >&5
     9769
     9770cat > conftest.$ac_ext <<EOF
     9771#line 9772 "configure"
    106199772#include "confdefs.h"
    106209773/* System header to define __stub macros and hopefully few prototypes,
     
    106399792; return 0; }
    106409793EOF
    10641 if { (eval echo configure:10642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9794if { (eval echo configure:9795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    106429795  rm -rf conftest*
    106439796  eval "ac_cv_func_mysql_server_init=yes"
     
    106779830
    106789831echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
    10679 echo "configure:10680: checking whether to use SQLite" >&5
     9832echo "configure:9833: checking whether to use SQLite" >&5
    106809833echo "$ac_t"""$with_sqlite"" 1>&6
    106819834case "$with_sqlite" in
     
    106979850
    106989851echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
    10699 echo "configure:10700: checking for location of SQLite includes" >&5
     9852echo "configure:9853: checking for location of SQLite includes" >&5
    107009853case "$with_sqlite_includes" in
    107019854y | ye | yes | n | no)
     
    107239876ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    107249877echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    10725 echo "configure:10726: checking for $ac_hdr" >&5
    10726 
    10727 cat > conftest.$ac_ext <<EOF
    10728 #line 10729 "configure"
     9878echo "configure:9879: checking for $ac_hdr" >&5
     9879
     9880cat > conftest.$ac_ext <<EOF
     9881#line 9882 "configure"
    107299882#include "confdefs.h"
    107309883#include <$ac_hdr>
    107319884EOF
    107329885ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    10733 { (eval echo configure:10734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     9886{ (eval echo configure:9887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    107349887ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    107359888if test -z "$ac_err"; then
     
    107749927
    107759928echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
    10776 echo "configure:10777: checking for location of SQLite library" >&5
     9929echo "configure:9930: checking for location of SQLite library" >&5
    107779930case "$with_sqlite_libs" in
    107789931y | ye | yes | n | no)
     
    108019954
    108029955echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
    10803 echo "configure:10804: checking for sqlite3_open in -lsqlite3" >&5
     9956echo "configure:9957: checking for sqlite3_open in -lsqlite3" >&5
    108049957ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
    108059958
     
    108079960LIBS="-lsqlite3  $LIBS"
    108089961cat > conftest.$ac_ext <<EOF
    10809 #line 10810 "configure"
     9962#line 9963 "configure"
    108109963#include "confdefs.h"
    108119964/* Override any gcc2 internal prototype to avoid an error.  */
     
    108189971; return 0; }
    108199972EOF
    10820 if { (eval echo configure:10821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9973if { (eval echo configure:9974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    108219974  rm -rf conftest*
    108229975  eval "ac_cv_lib_$ac_lib_var=yes"
     
    108379990
    108389991echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
    10839 echo "configure:10840: checking for sqlite3_open in -lsqlite3" >&5
     9992echo "configure:9993: checking for sqlite3_open in -lsqlite3" >&5
    108409993ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
    108419994
     
    108439996LIBS="-lsqlite3 $MATHLIB $LIBS"
    108449997cat > conftest.$ac_ext <<EOF
    10845 #line 10846 "configure"
     9998#line 9999 "configure"
    108469999#include "confdefs.h"
    1084710000/* Override any gcc2 internal prototype to avoid an error.  */
     
    1085410007; return 0; }
    1085510008EOF
    10856 if { (eval echo configure:10857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10009if { (eval echo configure:10010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1085710010  rm -rf conftest*
    1085810011  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1090710060
    1090810061echo $ac_n "checking whether to use FFMPEG""... $ac_c" 1>&6
    10909 echo "configure:10910: checking whether to use FFMPEG" >&5
     10062echo "configure:10063: checking whether to use FFMPEG" >&5
    1091010063echo "$ac_t"""$with_ffmpeg"" 1>&6
    1091110064case "$with_ffmpeg" in
     
    1092710080
    1092810081echo $ac_n "checking for location of FFMPEG includes""... $ac_c" 1>&6
    10929 echo "configure:10930: checking for location of FFMPEG includes" >&5
     10082echo "configure:10083: checking for location of FFMPEG includes" >&5
    1093010083case "$with_ffmpeg_includes" in
    1093110084y | ye | yes | n | no)
     
    1095310106ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1095410107echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    10955 echo "configure:10956: checking for $ac_hdr" >&5
    10956 
    10957 cat > conftest.$ac_ext <<EOF
    10958 #line 10959 "configure"
     10108echo "configure:10109: checking for $ac_hdr" >&5
     10109
     10110cat > conftest.$ac_ext <<EOF
     10111#line 10112 "configure"
    1095910112#include "confdefs.h"
    1096010113#include <$ac_hdr>
    1096110114EOF
    1096210115ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    10963 { (eval echo configure:10964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     10116{ (eval echo configure:10117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1096410117ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1096510118if test -z "$ac_err"; then
     
    1099710150ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1099810151echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    10999 echo "configure:11000: checking for $ac_hdr" >&5
    11000 
    11001 cat > conftest.$ac_ext <<EOF
    11002 #line 11003 "configure"
     10152echo "configure:10153: checking for $ac_hdr" >&5
     10153
     10154cat > conftest.$ac_ext <<EOF
     10155#line 10156 "configure"
    1100310156#include "confdefs.h"
    1100410157#include <$ac_hdr>
    1100510158EOF
    1100610159ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    11007 { (eval echo configure:11008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     10160{ (eval echo configure:10161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1100810161ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1100910162if test -z "$ac_err"; then
     
    1104110194ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1104210195echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    11043 echo "configure:11044: checking for $ac_hdr" >&5
    11044 
    11045 cat > conftest.$ac_ext <<EOF
    11046 #line 11047 "configure"
     10196echo "configure:10197: checking for $ac_hdr" >&5
     10197
     10198cat > conftest.$ac_ext <<EOF
     10199#line 10200 "configure"
    1104710200#include "confdefs.h"
    1104810201#include <$ac_hdr>
    1104910202EOF
    1105010203ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    11051 { (eval echo configure:11052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     10204{ (eval echo configure:10205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1105210205ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1105310206if test -z "$ac_err"; then
     
    1109210245
    1109310246echo $ac_n "checking for location of FFMPEG library""... $ac_c" 1>&6
    11094 echo "configure:11095: checking for location of FFMPEG library" >&5
     10247echo "configure:10248: checking for location of FFMPEG library" >&5
    1109510248case "$with_ffmpeg_libs" in
    1109610249y | ye | yes | n | no)
     
    1111910272
    1112010273echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
    11121 echo "configure:11122: checking for av_free in -lavutil" >&5
     10274echo "configure:10275: checking for av_free in -lavutil" >&5
    1112210275ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
    1112310276
     
    1112510278LIBS="-lavutil  $LIBS"
    1112610279cat > conftest.$ac_ext <<EOF
    11127 #line 11128 "configure"
     10280#line 10281 "configure"
    1112810281#include "confdefs.h"
    1112910282/* Override any gcc2 internal prototype to avoid an error.  */
     
    1113610289; return 0; }
    1113710290EOF
    11138 if { (eval echo configure:11139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10291if { (eval echo configure:10292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1113910292  rm -rf conftest*
    1114010293  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1115510308
    1115610309echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
    11157 echo "configure:11158: checking for av_free in -lavutil" >&5
     10310echo "configure:10311: checking for av_free in -lavutil" >&5
    1115810311ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
    1115910312
     
    1116110314LIBS="-lavutil $MATHLIB $LIBS"
    1116210315cat > conftest.$ac_ext <<EOF
    11163 #line 11164 "configure"
     10316#line 10317 "configure"
    1116410317#include "confdefs.h"
    1116510318/* Override any gcc2 internal prototype to avoid an error.  */
     
    1117210325; return 0; }
    1117310326EOF
    11174 if { (eval echo configure:11175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10327if { (eval echo configure:10328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1117510328  rm -rf conftest*
    1117610329  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1121710370
    1121810371echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
    11219 echo "configure:11220: checking for avcodec_init in -lavcodec" >&5
     10372echo "configure:10373: checking for avcodec_init in -lavcodec" >&5
    1122010373ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
    1122110374
     
    1122310376LIBS="-lavcodec $FFMPEGLIB  $LIBS"
    1122410377cat > conftest.$ac_ext <<EOF
    11225 #line 11226 "configure"
     10378#line 10379 "configure"
    1122610379#include "confdefs.h"
    1122710380/* Override any gcc2 internal prototype to avoid an error.  */
     
    1123410387; return 0; }
    1123510388EOF
    11236 if { (eval echo configure:11237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10389if { (eval echo configure:10390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1123710390  rm -rf conftest*
    1123810391  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1125310406
    1125410407echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
    11255 echo "configure:11256: checking for avcodec_init in -lavcodec" >&5
     10408echo "configure:10409: checking for avcodec_init in -lavcodec" >&5
    1125610409ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
    1125710410
     
    1125910412LIBS="-lavcodec $FFMPEGLIB $MATHLIB $LIBS"
    1126010413cat > conftest.$ac_ext <<EOF
    11261 #line 11262 "configure"
     10414#line 10415 "configure"
    1126210415#include "confdefs.h"
    1126310416/* Override any gcc2 internal prototype to avoid an error.  */
     
    1127010423; return 0; }
    1127110424EOF
    11272 if { (eval echo configure:11273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10425if { (eval echo configure:10426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1127310426  rm -rf conftest*
    1127410427  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1131510468
    1131610469echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
    11317 echo "configure:11318: checking for av_set_parameters in -lavformat" >&5
     10470echo "configure:10471: checking for av_set_parameters in -lavformat" >&5
    1131810471ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
    1131910472
     
    1132110474LIBS="-lavformat $FFMPEGLIB  $LIBS"
    1132210475cat > conftest.$ac_ext <<EOF
    11323 #line 11324 "configure"
     10476#line 10477 "configure"
    1132410477#include "confdefs.h"
    1132510478/* Override any gcc2 internal prototype to avoid an error.  */
     
    1133210485; return 0; }
    1133310486EOF
    11334 if { (eval echo configure:11335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10487if { (eval echo configure:10488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1133510488  rm -rf conftest*
    1133610489  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1135110504
    1135210505echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
    11353 echo "configure:11354: checking for av_set_parameters in -lavformat" >&5
     10506echo "configure:10507: checking for av_set_parameters in -lavformat" >&5
    1135410507ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
    1135510508
     
    1135710510LIBS="-lavformat $FFMPEGLIB $MATHLIB $LIBS"
    1135810511cat > conftest.$ac_ext <<EOF
    11359 #line 11360 "configure"
     10512#line 10513 "configure"
    1136010513#include "confdefs.h"
    1136110514/* Override any gcc2 internal prototype to avoid an error.  */
     
    1136810521; return 0; }
    1136910522EOF
    11370 if { (eval echo configure:11371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10523if { (eval echo configure:10524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1137110524  rm -rf conftest*
    1137210525  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1141510568
    1141610569# Done checking FFMPEG
    11417 
    1141810570
    1141910571# Enable OpenGL option
     
    1142810580
    1142910581echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
    11430 echo "configure:11431: checking whether to use OpenGL" >&5
     10582echo "configure:10583: checking whether to use OpenGL" >&5
    1143110583echo "$ac_t"""$with_opengl"" 1>&6
    1143210584case "$with_opengl" in
     
    1146210614
    1146310615echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
    11464 echo "configure:11465: checking for location of OpenGL includes" >&5
     10616echo "configure:10617: checking for location of OpenGL includes" >&5
    1146510617case "$with_opengl_includes" in
    1146610618y | ye | yes | n | no)
     
    1148810640ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1148910641echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    11490 echo "configure:11491: checking for $ac_hdr" >&5
    11491 
    11492 cat > conftest.$ac_ext <<EOF
    11493 #line 11494 "configure"
     10642echo "configure:10643: checking for $ac_hdr" >&5
     10643
     10644cat > conftest.$ac_ext <<EOF
     10645#line 10646 "configure"
    1149410646#include "confdefs.h"
    1149510647#include <$ac_hdr>
    1149610648EOF
    1149710649ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    11498 { (eval echo configure:11499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     10650{ (eval echo configure:10651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1149910651ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1150010652if test -z "$ac_err"; then
     
    1153010682
    1153110683echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
    11532 echo "configure:11533: checking for location of OpenGL library" >&5
     10684echo "configure:10685: checking for location of OpenGL library" >&5
    1153310685case "$with_opengl_libs" in
    1153410686y | ye | yes | n | no)
     
    1155910711
    1156010712echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
    11561 echo "configure:11562: checking for glBegin in -lGL" >&5
     10713echo "configure:10714: checking for glBegin in -lGL" >&5
    1156210714ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
    1156310715
     
    1156510717LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1156610718cat > conftest.$ac_ext <<EOF
    11567 #line 11568 "configure"
     10719#line 10720 "configure"
    1156810720#include "confdefs.h"
    1156910721/* Override any gcc2 internal prototype to avoid an error.  */
     
    1157610728; return 0; }
    1157710729EOF
    11578 if { (eval echo configure:11579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10730if { (eval echo configure:10731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1157910731  rm -rf conftest*
    1158010732  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1159510747
    1159610748echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
    11597 echo "configure:11598: checking for glBegin in -lGL" >&5
     10749echo "configure:10750: checking for glBegin in -lGL" >&5
    1159810750ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
    1159910751
     
    1160110753LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
    1160210754cat > conftest.$ac_ext <<EOF
    11603 #line 11604 "configure"
     10755#line 10756 "configure"
    1160410756#include "confdefs.h"
    1160510757/* Override any gcc2 internal prototype to avoid an error.  */
     
    1161210764; return 0; }
    1161310765EOF
    11614 if { (eval echo configure:11615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10766if { (eval echo configure:10767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1161510767  rm -rf conftest*
    1161610768  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1163110783
    1163210784echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
    11633 echo "configure:11634: checking for glBegin in -lGL" >&5
     10785echo "configure:10786: checking for glBegin in -lGL" >&5
    1163410786ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
    1163510787
     
    1163710789LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
    1163810790cat > conftest.$ac_ext <<EOF
    11639 #line 11640 "configure"
     10791#line 10792 "configure"
    1164010792#include "confdefs.h"
    1164110793/* Override any gcc2 internal prototype to avoid an error.  */
     
    1164810800; return 0; }
    1164910801EOF
    11650 if { (eval echo configure:11651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10802if { (eval echo configure:10803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1165110803  rm -rf conftest*
    1165210804  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1166710819
    1166810820echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
    11669 echo "configure:11670: checking for glBegin in -lGL" >&5
     10821echo "configure:10822: checking for glBegin in -lGL" >&5
    1167010822ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
    1167110823
     
    1167310825LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
    1167410826cat > conftest.$ac_ext <<EOF
    11675 #line 11676 "configure"
     10827#line 10828 "configure"
    1167610828#include "confdefs.h"
    1167710829/* Override any gcc2 internal prototype to avoid an error.  */
     
    1168410836; return 0; }
    1168510837EOF
    11686 if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10838if { (eval echo configure:10839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1168710839  rm -rf conftest*
    1168810840  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1174610898
    1174710899echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
    11748 echo "configure:11749: checking for gluBeginCurve in -lGLU" >&5
     10900echo "configure:10901: checking for gluBeginCurve in -lGLU" >&5
    1174910901ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
    1175010902
     
    1175210904LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1175310905cat > conftest.$ac_ext <<EOF
    11754 #line 11755 "configure"
     10906#line 10907 "configure"
    1175510907#include "confdefs.h"
    1175610908/* Override any gcc2 internal prototype to avoid an error.  */
     
    1176310915; return 0; }
    1176410916EOF
    11765 if { (eval echo configure:11766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10917if { (eval echo configure:10918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1176610918  rm -rf conftest*
    1176710919  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1178210934
    1178310935echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
    11784 echo "configure:11785: checking for gluBeginCurve in -lGLU" >&5
     10936echo "configure:10937: checking for gluBeginCurve in -lGLU" >&5
    1178510937ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
    1178610938
     
    1178810940LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
    1178910941cat > conftest.$ac_ext <<EOF
    11790 #line 11791 "configure"
     10942#line 10943 "configure"
    1179110943#include "confdefs.h"
    1179210944/* Override any gcc2 internal prototype to avoid an error.  */
     
    1179910951; return 0; }
    1180010952EOF
    11801 if { (eval echo configure:11802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10953if { (eval echo configure:10954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1180210954  rm -rf conftest*
    1180310955  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1184310995LDFLAGS="$LDFLAGS $OPENGLLIB"
    1184410996echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
    11845 echo "configure:11846: checking for glXCreatePbuffer" >&5
    11846 
    11847 cat > conftest.$ac_ext <<EOF
    11848 #line 11849 "configure"
     10997echo "configure:10998: checking for glXCreatePbuffer" >&5
     10998
     10999cat > conftest.$ac_ext <<EOF
     11000#line 11001 "configure"
    1184911001#include "confdefs.h"
    1185011002/* System header to define __stub macros and hopefully few prototypes,
     
    1186911021; return 0; }
    1187011022EOF
    11871 if { (eval echo configure:11872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11023if { (eval echo configure:11024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1187211024  rm -rf conftest*
    1187311025  eval "ac_cv_func_glXCreatePbuffer=yes"
     
    1189111043
    1189211044echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
    11893 echo "configure:11894: checking for glXCreateGLXPixmap" >&5
    11894 
    11895 cat > conftest.$ac_ext <<EOF
    11896 #line 11897 "configure"
     11045echo "configure:11046: checking for glXCreateGLXPixmap" >&5
     11046
     11047cat > conftest.$ac_ext <<EOF
     11048#line 11049 "configure"
    1189711049#include "confdefs.h"
    1189811050/* System header to define __stub macros and hopefully few prototypes,
     
    1191711069; return 0; }
    1191811070EOF
    11919 if { (eval echo configure:11920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11071if { (eval echo configure:11072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1192011072  rm -rf conftest*
    1192111073  eval "ac_cv_func_glXCreateGLXPixmap=yes"
     
    1195611108
    1195711109echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
    11958 echo "configure:11959: checking for location of OpenGL includes" >&5
     11110echo "configure:11111: checking for location of OpenGL includes" >&5
    1195911111case "$with_opengl_includes" in
    1196011112y | ye | yes | n | no)
     
    1198211134ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1198311135echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    11984 echo "configure:11985: checking for $ac_hdr" >&5
    11985 
    11986 cat > conftest.$ac_ext <<EOF
    11987 #line 11988 "configure"
     11136echo "configure:11137: checking for $ac_hdr" >&5
     11137
     11138cat > conftest.$ac_ext <<EOF
     11139#line 11140 "configure"
    1198811140#include "confdefs.h"
    1198911141#include <$ac_hdr>
    1199011142EOF
    1199111143ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    11992 { (eval echo configure:11993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     11144{ (eval echo configure:11145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1199311145ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1199411146if test -z "$ac_err"; then
     
    1202511177LDFLAGS="$with_opengl_libs $LDFLAGS"
    1202611178echo $ac_n "checking for glBegin""... $ac_c" 1>&6
    12027 echo "configure:12028: checking for glBegin" >&5
    12028 
    12029 cat > conftest.$ac_ext <<EOF
    12030 #line 12031 "configure"
     11179echo "configure:11180: checking for glBegin" >&5
     11180
     11181cat > conftest.$ac_ext <<EOF
     11182#line 11183 "configure"
    1203111183#include "confdefs.h"
    1203211184/* System header to define __stub macros and hopefully few prototypes,
     
    1205111203; return 0; }
    1205211204EOF
    12053 if { (eval echo configure:12054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11205if { (eval echo configure:11206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1205411206  rm -rf conftest*
    1205511207  eval "ac_cv_func_glBegin=yes"
     
    1206611218 
    1206711219echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
    12068 echo "configure:12069: checking for gluBeginCurve" >&5
    12069 
    12070 cat > conftest.$ac_ext <<EOF
    12071 #line 12072 "configure"
     11220echo "configure:11221: checking for gluBeginCurve" >&5
     11221
     11222cat > conftest.$ac_ext <<EOF
     11223#line 11224 "configure"
    1207211224#include "confdefs.h"
    1207311225/* System header to define __stub macros and hopefully few prototypes,
     
    1209211244; return 0; }
    1209311245EOF
    12094 if { (eval echo configure:12095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11246if { (eval echo configure:11247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1209511247  rm -rf conftest*
    1209611248  eval "ac_cv_func_gluBeginCurve=yes"
     
    1213611288
    1213711289echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
    12138 echo "configure:12139: checking for location of OpenGL includes" >&5
     11290echo "configure:11291: checking for location of OpenGL includes" >&5
    1213911291case "$with_opengl_includes" in
    1214011292y | ye | yes | n | no)
     
    1216211314ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1216311315echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    12164 echo "configure:12165: checking for $ac_hdr" >&5
    12165 
    12166 cat > conftest.$ac_ext <<EOF
    12167 #line 12168 "configure"
     11316echo "configure:11317: checking for $ac_hdr" >&5
     11317
     11318cat > conftest.$ac_ext <<EOF
     11319#line 11320 "configure"
    1216811320#include "confdefs.h"
    1216911321#include <$ac_hdr>
    1217011322EOF
    1217111323ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    12172 { (eval echo configure:12173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     11324{ (eval echo configure:11325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1217311325ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1217411326if test -z "$ac_err"; then
     
    1220411356
    1220511357echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
    12206 echo "configure:12207: checking for location of OpenGL library" >&5
     11358echo "configure:11359: checking for location of OpenGL library" >&5
    1220711359case "$with_opengl_libs" in
    1220811360y | ye | yes | n | no)
     
    1222911381ac_save_libs="$LIBS"
    1223011382echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
    12231 echo "configure:12232: checking for OpenGL library" >&5
     11383echo "configure:11384: checking for OpenGL library" >&5
    1223211384LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
    1223311385LIBS="-lopengl32  "
    1223411386cat > conftest.$ac_ext <<EOF
    12235 #line 12236 "configure"
     11387#line 11388 "configure"
    1223611388#include "confdefs.h"
    1223711389#include <GL/gl.h>
     
    1224011392; return 0; }
    1224111393EOF
    12242 if { (eval echo configure:12243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11394if { (eval echo configure:11395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1224311395  rm -rf conftest*
    1224411396 
     
    1226411416ac_save_libs="$LIBS"
    1226511417echo $ac_n "checking for GLU library""... $ac_c" 1>&6
    12266 echo "configure:12267: checking for GLU library" >&5
     11418echo "configure:11419: checking for GLU library" >&5
    1226711419LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
    1226811420LIBS="-lglu32 $OPENGLLIB "
    1226911421cat > conftest.$ac_ext <<EOF
    12270 #line 12271 "configure"
     11422#line 11423 "configure"
    1227111423#include "confdefs.h"
    1227211424#include <GL/glu.h>
     
    1227511427; return 0; }
    1227611428EOF
    12277 if { (eval echo configure:12278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11429if { (eval echo configure:11430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1227811430  rm -rf conftest*
    1227911431 
     
    1232011472# Done checking OpenGL
    1232111473
     11474# Enable TCLTK option
     11475
     11476
     11477echo $ac_n "checking whether to use Tcl/Tk""... $ac_c" 1>&6
     11478echo "configure:11479: checking whether to use Tcl/Tk" >&5
     11479echo "$ac_t"""$with_tcltk"" 1>&6
     11480case "$with_tcltk" in
     11481        "no")   USE_TCLTK=      ;;
     11482        "yes")  USE_TCLTK="1"   ;;
     11483        *)      { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; }       ;;
     11484esac
     11485
     11486
     11487
     11488TCLINCDIR=
     11489TCLTKLIBPATH=
     11490TCLTKLIBS=
     11491
     11492if test -n "$USE_TCLTK"; then
     11493
     11494# With Tcl/Tk includes directory
     11495
     11496
     11497echo $ac_n "checking for location of Tcl/Tk includes""... $ac_c" 1>&6
     11498echo "configure:11499: checking for location of Tcl/Tk includes" >&5
     11499case "$with_tcltk_includes" in
     11500y | ye | yes | n | no)
     11501        { echo "configure: error: *** You must supply a directory to --with-tcltk-includes." 1>&2; exit 1; }
     11502        ;;
     11503esac
     11504echo "$ac_t""$with_tcltk_includes" 1>&6
     11505
     11506if test -n "$with_tcltk_includes" ; then
     11507    for dir in $with_tcltk_includes; do
     11508        if test -d "$dir"; then
     11509            TCLINCDIR="$TCLINCDIR -I$dir"
     11510        else
     11511            { echo "configure: error: *** Tcl/Tk includes directory $dir does not exist." 1>&2; exit 1; }
     11512        fi
     11513    done
     11514fi
     11515
     11516
     11517
     11518ac_save_cppflags="$CPPFLAGS"
     11519CPPFLAGS="$TCLINCDIR $CPPFLAGS"
     11520for ac_hdr in tcl.h
     11521do
     11522ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     11523echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     11524echo "configure:11525: checking for $ac_hdr" >&5
     11525
     11526cat > conftest.$ac_ext <<EOF
     11527#line 11528 "configure"
     11528#include "confdefs.h"
     11529#include <$ac_hdr>
     11530EOF
     11531ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     11532{ (eval echo configure:11533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     11533ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     11534if test -z "$ac_err"; then
     11535  rm -rf conftest*
     11536  eval "ac_cv_header_$ac_safe=yes"
     11537else
     11538  echo "$ac_err" >&5
     11539  echo "configure: failed program was:" >&5
     11540  cat conftest.$ac_ext >&5
     11541  rm -rf conftest*
     11542  eval "ac_cv_header_$ac_safe=no"
     11543fi
     11544rm -f conftest*
     11545if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     11546  echo "$ac_t""yes" 1>&6
     11547    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     11548  cat >> confdefs.h <<EOF
     11549#define $ac_tr_hdr 1
     11550EOF
     11551 
     11552else
     11553  echo "$ac_t""no" 1>&6
     11554{ echo "configure: error: *** Unable to locate Tcl includes." 1>&2; exit 1; }
     11555
     11556fi
     11557done
     11558
     11559CPPFLAGS=$ac_save_cppflags
     11560
     11561
     11562
     11563ac_save_cppflags="$CPPFLAGS"
     11564CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
     11565for ac_hdr in tk.h
     11566do
     11567ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     11568echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     11569echo "configure:11570: checking for $ac_hdr" >&5
     11570
     11571cat > conftest.$ac_ext <<EOF
     11572#line 11573 "configure"
     11573#include "confdefs.h"
     11574#include <$ac_hdr>
     11575EOF
     11576ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     11577{ (eval echo configure:11578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     11578ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     11579if test -z "$ac_err"; then
     11580  rm -rf conftest*
     11581  eval "ac_cv_header_$ac_safe=yes"
     11582else
     11583  echo "$ac_err" >&5
     11584  echo "configure: failed program was:" >&5
     11585  cat conftest.$ac_ext >&5
     11586  rm -rf conftest*
     11587  eval "ac_cv_header_$ac_safe=no"
     11588fi
     11589rm -f conftest*
     11590if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     11591  echo "$ac_t""yes" 1>&6
     11592    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     11593  cat >> confdefs.h <<EOF
     11594#define $ac_tr_hdr 1
     11595EOF
     11596 
     11597else
     11598  echo "$ac_t""no" 1>&6
     11599{ echo "configure: error: *** Unable to locate Tk includes." 1>&2; exit 1; }
     11600
     11601fi
     11602done
     11603
     11604CPPFLAGS=$ac_save_cppflags
     11605
     11606
     11607# Tcl/Tk version checks
     11608
     11609echo $ac_n "checking Tcl version""... $ac_c" 1>&6
     11610echo "configure:11611: checking Tcl version" >&5
     11611ac_save_cppflags="$CPPFLAGS"
     11612CPPFLAGS="$TCLINCDIR $CPPFLAGS"
     11613if test "$cross_compiling" = yes; then
     11614     tcl_ver=UNKNOWN
     11615    echo "$ac_t""unknown (cross-compiling)" 1>&6
     11616else
     11617  cat > conftest.$ac_ext <<EOF
     11618#line 11619 "configure"
     11619#include "confdefs.h"
     11620
     11621#include <stdio.h>
     11622#include <tcl.h>
     11623int main(void) {
     11624 FILE *fp = fopen("conftestdata","w");
     11625 fputs(TCL_VERSION, fp);
     11626 return 0;
     11627}
     11628
     11629EOF
     11630if { (eval echo configure:11631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     11631then
     11632     tcl_ver=`cat conftestdata`
     11633    echo "$ac_t""$tcl_ver" 1>&6
     11634else
     11635  echo "configure: failed program was:" >&5
     11636  cat conftest.$ac_ext >&5
     11637  rm -fr conftest*
     11638     { echo "configure: error: *** Could not determine Tcl version." 1>&2; exit 1; }
     11639fi
     11640rm -fr conftest*
     11641fi
     11642
     11643CPPFLAGS=$ac_save_cppflags
     11644
     11645
     11646
     11647echo $ac_n "checking Tk version""... $ac_c" 1>&6
     11648echo "configure:11649: checking Tk version" >&5
     11649ac_save_cppflags="$CPPFLAGS"
     11650CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
     11651if test "$cross_compiling" = yes; then
     11652     tk_ver=UNKNOWN
     11653    echo "$ac_t""unknown (cross-compiling)" 1>&6
     11654else
     11655  cat > conftest.$ac_ext <<EOF
     11656#line 11657 "configure"
     11657#include "confdefs.h"
     11658
     11659#include <stdio.h>
     11660#include <tk.h>
     11661int main(void) {
     11662 FILE *fp = fopen("conftestdata","w");
     11663 fputs(TK_VERSION, fp);
     11664 return 0;
     11665}
     11666
     11667EOF
     11668if { (eval echo configure:11669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     11669then
     11670     tk_ver=`cat conftestdata`
     11671    echo "$ac_t""$tk_ver" 1>&6
     11672else
     11673  echo "configure: failed program was:" >&5
     11674  cat conftest.$ac_ext >&5
     11675  rm -fr conftest*
     11676     { echo "configure: error: *** Could not determine Tk version." 1>&2; exit 1; }
     11677fi
     11678rm -fr conftest*
     11679fi
     11680
     11681CPPFLAGS=$ac_save_cppflags
     11682
     11683
     11684if test "$tcl_ver" = "$tk_ver" ; then
     11685    tcltk_ver=$tcl_ver
     11686else
     11687    { echo "configure: error: *** Tcl/Tk version mismatch." 1>&2; exit 1; }
     11688fi
     11689
     11690TCL_VERSION="$tcl_ver"
     11691
     11692# FreeBSD and CygWin don't have a "dot" between major/minor version number
     11693tcltk_ver2=`echo $tcltk_ver | sed 's/\.//g'`
     11694
     11695# With Tcl/Tk library directory
     11696
     11697
     11698echo $ac_n "checking for location of Tcl/Tk library""... $ac_c" 1>&6
     11699echo "configure:11700: checking for location of Tcl/Tk library" >&5
     11700case "$with_tcltk_libs" in
     11701y | ye | yes | n | no)
     11702        { echo "configure: error: *** You must supply a directory to --with-tcltk-libs." 1>&2; exit 1; }
     11703        ;;
     11704esac
     11705echo "$ac_t""$with_tcltk_libs" 1>&6
     11706
     11707if test -n "$with_tcltk_libs"; then
     11708    for dir in $with_tcltk_libs; do
     11709        if test -d "$dir"; then
     11710            TCLTKLIBPATH="$TCLTKLIBPATH -L$dir"
     11711        else
     11712            { echo "configure: error: *** Tcl/Tk library directory $dir does not exist." 1>&2; exit 1; }
     11713        fi
     11714    done
     11715fi
     11716
     11717
     11718TCLLIB=
     11719TKLIB=
     11720
     11721# Can't test tcl/tk libs on 64bit OSX Aqua for now
     11722# assume that if OpenGL Aqua, then user specifies TclTk Aqua,
     11723# as there is no test for Tcl/Tk Aqua and Tck/Tk X11 won't work
     11724TCLTKAQUA_IS64BIT=
     11725if test "$OPENGL_AQUA" = 1 ; then
     11726    temp_CFLAGS="$CFLAGS"
     11727    CFLAGS="`echo \"$CFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
     11728    # can't save LDFLAGS, need to remember arch flags to insert back later
     11729    temp_ARCHES=
     11730    for a in x86_64 ppc64
     11731    do
     11732        if test -n "`echo \"$LDFLAGS\" | grep -E -e '-arch +'$a`" ; then
     11733            temp_ARCHES="$temp_ARCHES -arch $a"
     11734        fi
     11735    done
     11736    LDFLAGS="`echo \"$LDFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
     11737fi
     11738
     11739
     11740ac_save_ldflags="$LDFLAGS"
     11741LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
     11742
     11743
     11744
     11745
     11746echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
     11747echo "configure:11748: checking for Tcl_Init in -ltcl" >&5
     11748ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
     11749
     11750ac_save_LIBS="$LIBS"
     11751LIBS="-ltcl $MATHLIB $LIBS"
     11752cat > conftest.$ac_ext <<EOF
     11753#line 11754 "configure"
     11754#include "confdefs.h"
     11755/* Override any gcc2 internal prototype to avoid an error.  */
     11756/* We use char because int might match the return type of a gcc2
     11757    builtin and then its argument prototype would still apply.  */
     11758char Tcl_Init();
     11759
     11760int main() {
     11761Tcl_Init()
     11762; return 0; }
     11763EOF
     11764if { (eval echo configure:11765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11765  rm -rf conftest*
     11766  eval "ac_cv_lib_$ac_lib_var=yes"
     11767else
     11768  echo "configure: failed program was:" >&5
     11769  cat conftest.$ac_ext >&5
     11770  rm -rf conftest*
     11771  eval "ac_cv_lib_$ac_lib_var=no"
     11772fi
     11773rm -f conftest*
     11774LIBS="$ac_save_LIBS"
     11775
     11776if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     11777  echo "$ac_t""yes" 1>&6
     11778  TCLLIB="$TCLLIB -ltcl $MATHLIB"
     11779else
     11780  echo "$ac_t""no" 1>&6
     11781
     11782echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
     11783echo "configure:11784: checking for Tcl_Init in -ltcl" >&5
     11784ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
     11785
     11786ac_save_LIBS="$LIBS"
     11787LIBS="-ltcl $MATHLIB $DLLIB $LIBS"
     11788cat > conftest.$ac_ext <<EOF
     11789#line 11790 "configure"
     11790#include "confdefs.h"
     11791/* Override any gcc2 internal prototype to avoid an error.  */
     11792/* We use char because int might match the return type of a gcc2
     11793    builtin and then its argument prototype would still apply.  */
     11794char Tcl_Init();
     11795
     11796int main() {
     11797Tcl_Init()
     11798; return 0; }
     11799EOF
     11800if { (eval echo configure:11801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11801  rm -rf conftest*
     11802  eval "ac_cv_lib_$ac_lib_var=yes"
     11803else
     11804  echo "configure: failed program was:" >&5
     11805  cat conftest.$ac_ext >&5
     11806  rm -rf conftest*
     11807  eval "ac_cv_lib_$ac_lib_var=no"
     11808fi
     11809rm -f conftest*
     11810LIBS="$ac_save_LIBS"
     11811
     11812if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     11813  echo "$ac_t""yes" 1>&6
     11814  TCLLIB="$TCLLIB -ltcl $MATHLIB $DLLIB"
     11815else
     11816  echo "$ac_t""no" 1>&6
     11817
     11818LDFLAGS=${ac_save_ldflags}
     11819
     11820ac_save_ldflags="$LDFLAGS"
     11821LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
     11822
     11823
     11824
     11825
     11826echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
     11827echo "configure:11828: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
     11828ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
     11829
     11830ac_save_LIBS="$LIBS"
     11831LIBS="-ltcl$tcltk_ver $MATHLIB $LIBS"
     11832cat > conftest.$ac_ext <<EOF
     11833#line 11834 "configure"
     11834#include "confdefs.h"
     11835/* Override any gcc2 internal prototype to avoid an error.  */
     11836/* We use char because int might match the return type of a gcc2
     11837    builtin and then its argument prototype would still apply.  */
     11838char Tcl_Init();
     11839
     11840int main() {
     11841Tcl_Init()
     11842; return 0; }
     11843EOF
     11844if { (eval echo configure:11845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11845  rm -rf conftest*
     11846  eval "ac_cv_lib_$ac_lib_var=yes"
     11847else
     11848  echo "configure: failed program was:" >&5
     11849  cat conftest.$ac_ext >&5
     11850  rm -rf conftest*
     11851  eval "ac_cv_lib_$ac_lib_var=no"
     11852fi
     11853rm -f conftest*
     11854LIBS="$ac_save_LIBS"
     11855
     11856if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     11857  echo "$ac_t""yes" 1>&6
     11858  TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB"
     11859else
     11860  echo "$ac_t""no" 1>&6
     11861
     11862echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
     11863echo "configure:11864: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
     11864ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
     11865
     11866ac_save_LIBS="$LIBS"
     11867LIBS="-ltcl$tcltk_ver $MATHLIB $DLLIB $LIBS"
     11868cat > conftest.$ac_ext <<EOF
     11869#line 11870 "configure"
     11870#include "confdefs.h"
     11871/* Override any gcc2 internal prototype to avoid an error.  */
     11872/* We use char because int might match the return type of a gcc2
     11873    builtin and then its argument prototype would still apply.  */
     11874char Tcl_Init();
     11875
     11876int main() {
     11877Tcl_Init()
     11878; return 0; }
     11879EOF
     11880if { (eval echo configure:11881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11881  rm -rf conftest*
     11882  eval "ac_cv_lib_$ac_lib_var=yes"
     11883else
     11884  echo "configure: failed program was:" >&5
     11885  cat conftest.$ac_ext >&5
     11886  rm -rf conftest*
     11887  eval "ac_cv_lib_$ac_lib_var=no"
     11888fi
     11889rm -f conftest*
     11890LIBS="$ac_save_LIBS"
     11891
     11892if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     11893  echo "$ac_t""yes" 1>&6
     11894  TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB $DLLIB"
     11895else
     11896  echo "$ac_t""no" 1>&6
     11897
     11898LDFLAGS=${ac_save_ldflags}
     11899
     11900ac_save_ldflags="$LDFLAGS"
     11901LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
     11902
     11903
     11904
     11905
     11906echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
     11907echo "configure:11908: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
     11908ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
     11909
     11910ac_save_LIBS="$LIBS"
     11911LIBS="-ltcl$tcltk_ver2 $MATHLIB $LIBS"
     11912cat > conftest.$ac_ext <<EOF
     11913#line 11914 "configure"
     11914#include "confdefs.h"
     11915/* Override any gcc2 internal prototype to avoid an error.  */
     11916/* We use char because int might match the return type of a gcc2
     11917    builtin and then its argument prototype would still apply.  */
     11918char Tcl_Init();
     11919
     11920int main() {
     11921Tcl_Init()
     11922; return 0; }
     11923EOF
     11924if { (eval echo configure:11925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11925  rm -rf conftest*
     11926  eval "ac_cv_lib_$ac_lib_var=yes"
     11927else
     11928  echo "configure: failed program was:" >&5
     11929  cat conftest.$ac_ext >&5
     11930  rm -rf conftest*
     11931  eval "ac_cv_lib_$ac_lib_var=no"
     11932fi
     11933rm -f conftest*
     11934LIBS="$ac_save_LIBS"
     11935
     11936if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     11937  echo "$ac_t""yes" 1>&6
     11938  TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB"
     11939else
     11940  echo "$ac_t""no" 1>&6
     11941
     11942echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
     11943echo "configure:11944: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
     11944ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
     11945
     11946ac_save_LIBS="$LIBS"
     11947LIBS="-ltcl$tcltk_ver2 $MATHLIB $DLLIB $LIBS"
     11948cat > conftest.$ac_ext <<EOF
     11949#line 11950 "configure"
     11950#include "confdefs.h"
     11951/* Override any gcc2 internal prototype to avoid an error.  */
     11952/* We use char because int might match the return type of a gcc2
     11953    builtin and then its argument prototype would still apply.  */
     11954char Tcl_Init();
     11955
     11956int main() {
     11957Tcl_Init()
     11958; return 0; }
     11959EOF
     11960if { (eval echo configure:11961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11961  rm -rf conftest*
     11962  eval "ac_cv_lib_$ac_lib_var=yes"
     11963else
     11964  echo "configure: failed program was:" >&5
     11965  cat conftest.$ac_ext >&5
     11966  rm -rf conftest*
     11967  eval "ac_cv_lib_$ac_lib_var=no"
     11968fi
     11969rm -f conftest*
     11970LIBS="$ac_save_LIBS"
     11971
     11972if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     11973  echo "$ac_t""yes" 1>&6
     11974  TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB $DLLIB"
     11975else
     11976  echo "$ac_t""no" 1>&6
     11977
     11978LDFLAGS=${ac_save_ldflags}
     11979
     11980    { echo "configure: error: *** Unable to locate Tcl library." 1>&2; exit 1; }
     11981
     11982
     11983fi
     11984
     11985
     11986
     11987
     11988fi
     11989
     11990
     11991
     11992
     11993
     11994
     11995LDFLAGS=${ac_save_ldflags}
     11996
     11997
     11998
     11999fi
     12000
     12001
     12002
     12003
     12004fi
     12005
     12006
     12007
     12008
     12009
     12010
     12011LDFLAGS=${ac_save_ldflags}
     12012
     12013
     12014
     12015fi
     12016
     12017
     12018
     12019
     12020fi
     12021
     12022
     12023
     12024
     12025
     12026
     12027LDFLAGS=${ac_save_ldflags}
     12028
     12029
     12030
     12031ac_save_ldflags="$LDFLAGS"
     12032LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
     12033
     12034
     12035
     12036
     12037echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
     12038echo "configure:12039: checking for Tk_MainWindow in -ltk" >&5
     12039ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
     12040
     12041ac_save_LIBS="$LIBS"
     12042LIBS="-ltk $TCLLIB $MATHLIB $LIBS"
     12043cat > conftest.$ac_ext <<EOF
     12044#line 12045 "configure"
     12045#include "confdefs.h"
     12046/* Override any gcc2 internal prototype to avoid an error.  */
     12047/* We use char because int might match the return type of a gcc2
     12048    builtin and then its argument prototype would still apply.  */
     12049char Tk_MainWindow();
     12050
     12051int main() {
     12052Tk_MainWindow()
     12053; return 0; }
     12054EOF
     12055if { (eval echo configure:12056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12056  rm -rf conftest*
     12057  eval "ac_cv_lib_$ac_lib_var=yes"
     12058else
     12059  echo "configure: failed program was:" >&5
     12060  cat conftest.$ac_ext >&5
     12061  rm -rf conftest*
     12062  eval "ac_cv_lib_$ac_lib_var=no"
     12063fi
     12064rm -f conftest*
     12065LIBS="$ac_save_LIBS"
     12066
     12067if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     12068  echo "$ac_t""yes" 1>&6
     12069  TKLIB="$TKLIB -ltk $MATHLIB"
     12070else
     12071  echo "$ac_t""no" 1>&6
     12072
     12073echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
     12074echo "configure:12075: checking for Tk_MainWindow in -ltk" >&5
     12075ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
     12076
     12077ac_save_LIBS="$LIBS"
     12078LIBS="-ltk $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
     12079cat > conftest.$ac_ext <<EOF
     12080#line 12081 "configure"
     12081#include "confdefs.h"
     12082/* Override any gcc2 internal prototype to avoid an error.  */
     12083/* We use char because int might match the return type of a gcc2
     12084    builtin and then its argument prototype would still apply.  */
     12085char Tk_MainWindow();
     12086
     12087int main() {
     12088Tk_MainWindow()
     12089; return 0; }
     12090EOF
     12091if { (eval echo configure:12092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12092  rm -rf conftest*
     12093  eval "ac_cv_lib_$ac_lib_var=yes"
     12094else
     12095  echo "configure: failed program was:" >&5
     12096  cat conftest.$ac_ext >&5
     12097  rm -rf conftest*
     12098  eval "ac_cv_lib_$ac_lib_var=no"
     12099fi
     12100rm -f conftest*
     12101LIBS="$ac_save_LIBS"
     12102
     12103if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     12104  echo "$ac_t""yes" 1>&6
     12105  TKLIB="$TKLIB -ltk $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
     12106else
     12107  echo "$ac_t""no" 1>&6
     12108
     12109LDFLAGS=${ac_save_ldflags}
     12110
     12111ac_save_ldflags="$LDFLAGS"
     12112LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
     12113
     12114
     12115
     12116
     12117echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
     12118echo "configure:12119: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
     12119ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
     12120
     12121ac_save_LIBS="$LIBS"
     12122LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $LIBS"
     12123cat > conftest.$ac_ext <<EOF
     12124#line 12125 "configure"
     12125#include "confdefs.h"
     12126/* Override any gcc2 internal prototype to avoid an error.  */
     12127/* We use char because int might match the return type of a gcc2
     12128    builtin and then its argument prototype would still apply.  */
     12129char Tk_MainWindow();
     12130
     12131int main() {
     12132Tk_MainWindow()
     12133; return 0; }
     12134EOF
     12135if { (eval echo configure:12136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12136  rm -rf conftest*
     12137  eval "ac_cv_lib_$ac_lib_var=yes"
     12138else
     12139  echo "configure: failed program was:" >&5
     12140  cat conftest.$ac_ext >&5
     12141  rm -rf conftest*
     12142  eval "ac_cv_lib_$ac_lib_var=no"
     12143fi
     12144rm -f conftest*
     12145LIBS="$ac_save_LIBS"
     12146
     12147if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     12148  echo "$ac_t""yes" 1>&6
     12149  TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB"
     12150else
     12151  echo "$ac_t""no" 1>&6
     12152
     12153echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
     12154echo "configure:12155: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
     12155ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
     12156
     12157ac_save_LIBS="$LIBS"
     12158LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
     12159cat > conftest.$ac_ext <<EOF
     12160#line 12161 "configure"
     12161#include "confdefs.h"
     12162/* Override any gcc2 internal prototype to avoid an error.  */
     12163/* We use char because int might match the return type of a gcc2
     12164    builtin and then its argument prototype would still apply.  */
     12165char Tk_MainWindow();
     12166
     12167int main() {
     12168Tk_MainWindow()
     12169; return 0; }
     12170EOF
     12171if { (eval echo configure:12172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12172  rm -rf conftest*
     12173  eval "ac_cv_lib_$ac_lib_var=yes"
     12174else
     12175  echo "configure: failed program was:" >&5
     12176  cat conftest.$ac_ext >&5
     12177  rm -rf conftest*
     12178  eval "ac_cv_lib_$ac_lib_var=no"
     12179fi
     12180rm -f conftest*
     12181LIBS="$ac_save_LIBS"
     12182
     12183if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     12184  echo "$ac_t""yes" 1>&6
     12185  TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
     12186else
     12187  echo "$ac_t""no" 1>&6
     12188
     12189LDFLAGS=${ac_save_ldflags}
     12190
     12191ac_save_ldflags="$LDFLAGS"
     12192LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
     12193
     12194
     12195
     12196
     12197echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
     12198echo "configure:12199: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
     12199ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
     12200
     12201ac_save_LIBS="$LIBS"
     12202LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $LIBS"
     12203cat > conftest.$ac_ext <<EOF
     12204#line 12205 "configure"
     12205#include "confdefs.h"
     12206/* Override any gcc2 internal prototype to avoid an error.  */
     12207/* We use char because int might match the return type of a gcc2
     12208    builtin and then its argument prototype would still apply.  */
     12209char Tk_MainWindow();
     12210
     12211int main() {
     12212Tk_MainWindow()
     12213; return 0; }
     12214EOF
     12215if { (eval echo configure:12216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12216  rm -rf conftest*
     12217  eval "ac_cv_lib_$ac_lib_var=yes"
     12218else
     12219  echo "configure: failed program was:" >&5
     12220  cat conftest.$ac_ext >&5
     12221  rm -rf conftest*
     12222  eval "ac_cv_lib_$ac_lib_var=no"
     12223fi
     12224rm -f conftest*
     12225LIBS="$ac_save_LIBS"
     12226
     12227if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     12228  echo "$ac_t""yes" 1>&6
     12229  TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB"
     12230else
     12231  echo "$ac_t""no" 1>&6
     12232
     12233echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
     12234echo "configure:12235: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
     12235ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
     12236
     12237ac_save_LIBS="$LIBS"
     12238LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
     12239cat > conftest.$ac_ext <<EOF
     12240#line 12241 "configure"
     12241#include "confdefs.h"
     12242/* Override any gcc2 internal prototype to avoid an error.  */
     12243/* We use char because int might match the return type of a gcc2
     12244    builtin and then its argument prototype would still apply.  */
     12245char Tk_MainWindow();
     12246
     12247int main() {
     12248Tk_MainWindow()
     12249; return 0; }
     12250EOF
     12251if { (eval echo configure:12252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12252  rm -rf conftest*
     12253  eval "ac_cv_lib_$ac_lib_var=yes"
     12254else
     12255  echo "configure: failed program was:" >&5
     12256  cat conftest.$ac_ext >&5
     12257  rm -rf conftest*
     12258  eval "ac_cv_lib_$ac_lib_var=no"
     12259fi
     12260rm -f conftest*
     12261LIBS="$ac_save_LIBS"
     12262
     12263if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     12264  echo "$ac_t""yes" 1>&6
     12265  TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
     12266else
     12267  echo "$ac_t""no" 1>&6
     12268
     12269LDFLAGS=${ac_save_ldflags}
     12270
     12271    { echo "configure: error: *** Unable to locate Tk library." 1>&2; exit 1; }
     12272
     12273
     12274fi
     12275
     12276
     12277
     12278
     12279fi
     12280
     12281
     12282
     12283
     12284
     12285
     12286LDFLAGS=${ac_save_ldflags}
     12287
     12288
     12289
     12290fi
     12291
     12292
     12293
     12294
     12295fi
     12296
     12297
     12298
     12299
     12300
     12301
     12302LDFLAGS=${ac_save_ldflags}
     12303
     12304
     12305
     12306fi
     12307
     12308
     12309
     12310
     12311fi
     12312
     12313
     12314
     12315
     12316
     12317
     12318LDFLAGS=${ac_save_ldflags}
     12319
     12320
     12321# restore CFLAGS/LDLFAGS from Aqua 64bit strip
     12322# only Tcl/Tk-based makefiles will strip 64bit out during compile
     12323if test "$OPENGL_AQUA" = 1 ; then
     12324   CFLAGS="$temp_CFLAGS"
     12325   LDFLAGS="$temp_ARCHES $LDFLAGS"
     12326fi
     12327
     12328TCLTKLIBS="$TKLIB $TCLLIB"
     12329cat >> confdefs.h <<\EOF
     12330#define HAVE_TCLTK 1
     12331EOF
     12332
     12333
     12334fi # $USE_TCLTK
     12335
     12336TKINCDIR=$TCLINCDIR
     12337
     12338
     12339
     12340
     12341
     12342
     12343
     12344# Done checking Tcl/Tk
     12345
    1232212346# Enable ODBC option
    1232312347
    1232412348
    1232512349echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
    12326 echo "configure:12327: checking whether to use ODBC" >&5
     12350echo "configure:12351: checking whether to use ODBC" >&5
    1232712351echo "$ac_t"""$with_odbc"" 1>&6
    1232812352case "$with_odbc" in
     
    1234312367
    1234412368echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
    12345 echo "configure:12346: checking for location of ODBC includes" >&5
     12369echo "configure:12370: checking for location of ODBC includes" >&5
    1234612370case "$with_odbc_includes" in
    1234712371y | ye | yes | n | no)
     
    1236912393ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1237012394echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    12371 echo "configure:12372: checking for $ac_hdr" >&5
    12372 
    12373 cat > conftest.$ac_ext <<EOF
    12374 #line 12375 "configure"
     12395echo "configure:12396: checking for $ac_hdr" >&5
     12396
     12397cat > conftest.$ac_ext <<EOF
     12398#line 12399 "configure"
    1237512399#include "confdefs.h"
    1237612400#include <$ac_hdr>
    1237712401EOF
    1237812402ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    12379 { (eval echo configure:12380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     12403{ (eval echo configure:12404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1238012404ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1238112405if test -z "$ac_err"; then
     
    1241112435
    1241212436echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
    12413 echo "configure:12414: checking for location of ODBC library" >&5
     12437echo "configure:12438: checking for location of ODBC library" >&5
    1241412438case "$with_odbc_libs" in
    1241512439y | ye | yes | n | no)
     
    1243612460
    1243712461echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
    12438 echo "configure:12439: checking for SQLConnect in -lodbc" >&5
     12462echo "configure:12463: checking for SQLConnect in -lodbc" >&5
    1243912463ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
    1244012464
     
    1244212466LIBS="-lodbc $ICONVLIB  $LIBS"
    1244312467cat > conftest.$ac_ext <<EOF
    12444 #line 12445 "configure"
     12468#line 12469 "configure"
    1244512469#include "confdefs.h"
    1244612470/* Override any gcc2 internal prototype to avoid an error.  */
     
    1245312477; return 0; }
    1245412478EOF
    12455 if { (eval echo configure:12456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12479if { (eval echo configure:12480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1245612480  rm -rf conftest*
    1245712481  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1247812502
    1247912503echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
    12480 echo "configure:12481: checking for SQLConnect in -liodbc" >&5
     12504echo "configure:12505: checking for SQLConnect in -liodbc" >&5
    1248112505ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
    1248212506
     
    1248412508LIBS="-liodbc  $LIBS"
    1248512509cat > conftest.$ac_ext <<EOF
    12486 #line 12487 "configure"
     12510#line 12511 "configure"
    1248712511#include "confdefs.h"
    1248812512/* Override any gcc2 internal prototype to avoid an error.  */
     
    1249512519; return 0; }
    1249612520EOF
    12497 if { (eval echo configure:12498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12521if { (eval echo configure:12522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1249812522  rm -rf conftest*
    1249912523  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1252012544ac_save_libs="$LIBS"
    1252112545echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
    12522 echo "configure:12523: checking for ODBC library" >&5
     12546echo "configure:12547: checking for ODBC library" >&5
    1252312547LDFLAGS="$ODBCLIB $LDFLAGS"
    1252412548LIBS="-lodbc32  "
    1252512549cat > conftest.$ac_ext <<EOF
    12526 #line 12527 "configure"
     12550#line 12551 "configure"
    1252712551#include "confdefs.h"
    1252812552#include <windows.h>
     
    1253212556; return 0; }
    1253312557EOF
    12534 if { (eval echo configure:12535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12558if { (eval echo configure:12559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1253512559  rm -rf conftest*
    1253612560 
     
    1258112605
    1258212606echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
    12583 echo "configure:12584: checking whether to use FFTW" >&5
     12607echo "configure:12608: checking whether to use FFTW" >&5
    1258412608echo "$ac_t"""$with_fftw"" 1>&6
    1258512609case "$with_fftw" in
     
    1260012624
    1260112625echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
    12602 echo "configure:12603: checking for location of FFTW includes" >&5
     12626echo "configure:12627: checking for location of FFTW includes" >&5
    1260312627case "$with_fftw_includes" in
    1260412628y | ye | yes | n | no)
     
    1262612650ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1262712651echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    12628 echo "configure:12629: checking for $ac_hdr" >&5
    12629 
    12630 cat > conftest.$ac_ext <<EOF
    12631 #line 12632 "configure"
     12652echo "configure:12653: checking for $ac_hdr" >&5
     12653
     12654cat > conftest.$ac_ext <<EOF
     12655#line 12656 "configure"
    1263212656#include "confdefs.h"
    1263312657#include <$ac_hdr>
    1263412658EOF
    1263512659ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    12636 { (eval echo configure:12637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     12660{ (eval echo configure:12661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1263712661ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1263812662if test -z "$ac_err"; then
     
    1266212686ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1266312687echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    12664 echo "configure:12665: checking for $ac_hdr" >&5
    12665 
    12666 cat > conftest.$ac_ext <<EOF
    12667 #line 12668 "configure"
     12688echo "configure:12689: checking for $ac_hdr" >&5
     12689
     12690cat > conftest.$ac_ext <<EOF
     12691#line 12692 "configure"
    1266812692#include "confdefs.h"
    1266912693#include <$ac_hdr>
    1267012694EOF
    1267112695ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    12672 { (eval echo configure:12673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     12696{ (eval echo configure:12697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1267312697ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1267412698if test -z "$ac_err"; then
     
    1269812722ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1269912723echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    12700 echo "configure:12701: checking for $ac_hdr" >&5
    12701 
    12702 cat > conftest.$ac_ext <<EOF
    12703 #line 12704 "configure"
     12724echo "configure:12725: checking for $ac_hdr" >&5
     12725
     12726cat > conftest.$ac_ext <<EOF
     12727#line 12728 "configure"
    1270412728#include "confdefs.h"
    1270512729#include <$ac_hdr>
    1270612730EOF
    1270712731ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    12708 { (eval echo configure:12709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     12732{ (eval echo configure:12733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1270912733ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1271012734if test -z "$ac_err"; then
     
    1275212776
    1275312777echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
    12754 echo "configure:12755: checking for location of FFTW library" >&5
     12778echo "configure:12779: checking for location of FFTW library" >&5
    1275512779case "$with_fftw_libs" in
    1275612780y | ye | yes | n | no)
     
    1277712801
    1277812802echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
    12779 echo "configure:12780: checking for fftw_execute in -lfftw3" >&5
     12803echo "configure:12804: checking for fftw_execute in -lfftw3" >&5
    1278012804ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
    1278112805
     
    1278312807LIBS="-lfftw3 $MATHLIB $LIBS"
    1278412808cat > conftest.$ac_ext <<EOF
    12785 #line 12786 "configure"
     12809#line 12810 "configure"
    1278612810#include "confdefs.h"
    1278712811/* Override any gcc2 internal prototype to avoid an error.  */
     
    1279412818; return 0; }
    1279512819EOF
    12796 if { (eval echo configure:12797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12820if { (eval echo configure:12821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1279712821  rm -rf conftest*
    1279812822  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1281912843
    1282012844echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
    12821 echo "configure:12822: checking for fftwnd_one in -lfftw" >&5
     12845echo "configure:12846: checking for fftwnd_one in -lfftw" >&5
    1282212846ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
    1282312847
     
    1282512849LIBS="-lfftw $MATHLIB $LIBS"
    1282612850cat > conftest.$ac_ext <<EOF
    12827 #line 12828 "configure"
     12851#line 12852 "configure"
    1282812852#include "confdefs.h"
    1282912853/* Override any gcc2 internal prototype to avoid an error.  */
     
    1283612860; return 0; }
    1283712861EOF
    12838 if { (eval echo configure:12839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12862if { (eval echo configure:12863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1283912863  rm -rf conftest*
    1284012864  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1286112885
    1286212886echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
    12863 echo "configure:12864: checking for fftwnd_one in -ldfftw" >&5
     12887echo "configure:12888: checking for fftwnd_one in -ldfftw" >&5
    1286412888ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
    1286512889
     
    1286712891LIBS="-ldfftw $MATHLIB $LIBS"
    1286812892cat > conftest.$ac_ext <<EOF
    12869 #line 12870 "configure"
     12893#line 12894 "configure"
    1287012894#include "confdefs.h"
    1287112895/* Override any gcc2 internal prototype to avoid an error.  */
     
    1287812902; return 0; }
    1287912903EOF
    12880 if { (eval echo configure:12881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12904if { (eval echo configure:12905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1288112905  rm -rf conftest*
    1288212906  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1293512959
    1293612960echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
    12937 echo "configure:12938: checking whether to use BLAS" >&5
     12961echo "configure:12962: checking whether to use BLAS" >&5
    1293812962echo "$ac_t"""$with_blas"" 1>&6
    1293912963case "$with_blas" in
     
    1295612980
    1295712981echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
    12958 echo "configure:12959: checking for location of BLAS includes" >&5
     12982echo "configure:12983: checking for location of BLAS includes" >&5
    1295912983case "$with_blas_includes" in
    1296012984y | ye | yes | n | no)
     
    1297613000
    1297713001echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
    12978 echo "configure:12979: checking for location of BLAS library" >&5
     13002echo "configure:13003: checking for location of BLAS library" >&5
    1297913003case "$with_blas_libs" in
    1298013004y | ye | yes | n | no)
     
    1300213026ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1300313027echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    13004 echo "configure:13005: checking for $ac_hdr" >&5
    13005 
    13006 cat > conftest.$ac_ext <<EOF
    13007 #line 13008 "configure"
     13028echo "configure:13029: checking for $ac_hdr" >&5
     13029
     13030cat > conftest.$ac_ext <<EOF
     13031#line 13032 "configure"
    1300813032#include "confdefs.h"
    1300913033#include <$ac_hdr>
    1301013034EOF
    1301113035ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    13012 { (eval echo configure:13013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     13036{ (eval echo configure:13037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1301313037ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1301413038if test -z "$ac_err"; then
     
    1304513069
    1304613070echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
    13047 echo "configure:13048: checking for dnrm2_ in -lblas" >&5
     13071echo "configure:13072: checking for dnrm2_ in -lblas" >&5
    1304813072ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
    1304913073
     
    1305113075LIBS="-lblas $MATHLIB  $LIBS"
    1305213076cat > conftest.$ac_ext <<EOF
    13053 #line 13054 "configure"
     13077#line 13078 "configure"
    1305413078#include "confdefs.h"
    1305513079/* Override any gcc2 internal prototype to avoid an error.  */
     
    1306213086; return 0; }
    1306313087EOF
    13064 if { (eval echo configure:13065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13088if { (eval echo configure:13089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1306513089  rm -rf conftest*
    1306613090  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1308113105
    1308213106echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
    13083 echo "configure:13084: checking for dnrm2_ in -lblas" >&5
     13107echo "configure:13108: checking for dnrm2_ in -lblas" >&5
    1308413108ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
    1308513109
     
    1308713111LIBS="-lblas $MATHLIB -lg2c $LIBS"
    1308813112cat > conftest.$ac_ext <<EOF
    13089 #line 13090 "configure"
     13113#line 13114 "configure"
    1309013114#include "confdefs.h"
    1309113115/* Override any gcc2 internal prototype to avoid an error.  */
     
    1309813122; return 0; }
    1309913123EOF
    13100 if { (eval echo configure:13101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13124if { (eval echo configure:13125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1310113125  rm -rf conftest*
    1310213126  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1314213166LDFLAGS="$BLASLIB $LDFLAGS"
    1314313167echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
    13144 echo "configure:13145: checking for ATL_xerbla in -latlas" >&5
     13168echo "configure:13169: checking for ATL_xerbla in -latlas" >&5
    1314513169ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
    1314613170
     
    1314813172LIBS="-latlas  $LIBS"
    1314913173cat > conftest.$ac_ext <<EOF
    13150 #line 13151 "configure"
     13174#line 13175 "configure"
    1315113175#include "confdefs.h"
    1315213176/* Override any gcc2 internal prototype to avoid an error.  */
     
    1315913183; return 0; }
    1316013184EOF
    13161 if { (eval echo configure:13162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13185if { (eval echo configure:13186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1316213186  rm -rf conftest*
    1316313187  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1317413198  echo "$ac_t""yes" 1>&6
    1317513199  echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
    13176 echo "configure:13177: checking for sgemm_ in -lf77blas" >&5
     13200echo "configure:13201: checking for sgemm_ in -lf77blas" >&5
    1317713201ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
    1317813202
     
    1318013204LIBS="-lf77blas -latlas $LIBS"
    1318113205cat > conftest.$ac_ext <<EOF
    13182 #line 13183 "configure"
     13206#line 13207 "configure"
    1318313207#include "confdefs.h"
    1318413208/* Override any gcc2 internal prototype to avoid an error.  */
     
    1319113215; return 0; }
    1319213216EOF
    13193 if { (eval echo configure:13194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13217if { (eval echo configure:13218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1319413218  rm -rf conftest*
    1319513219  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1320613230  echo "$ac_t""yes" 1>&6
    1320713231  echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
    13208 echo "configure:13209: checking for cblas_dgemm in -lcblas" >&5
     13232echo "configure:13233: checking for cblas_dgemm in -lcblas" >&5
    1320913233ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
    1321013234
     
    1321213236LIBS="-lcblas -lf77blas -latlas $LIBS"
    1321313237cat > conftest.$ac_ext <<EOF
    13214 #line 13215 "configure"
     13238#line 13239 "configure"
    1321513239#include "confdefs.h"
    1321613240/* Override any gcc2 internal prototype to avoid an error.  */
     
    1322313247; return 0; }
    1322413248EOF
    13225 if { (eval echo configure:13226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13249if { (eval echo configure:13250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1322613250  rm -rf conftest*
    1322713251  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1326813292        LIBS="$vlib_flags $LIBS"
    1326913293        echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
    13270 echo "configure:13271: checking for sgemm in $vlib_flags" >&5
     13294echo "configure:13295: checking for sgemm in $vlib_flags" >&5
    1327113295        cat > conftest.$ac_ext <<EOF
    13272 #line 13273 "configure"
     13296#line 13297 "configure"
    1327313297#include "confdefs.h"
    1327413298
     
    1327713301; return 0; }
    1327813302EOF
    13279 if { (eval echo configure:13280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13303if { (eval echo configure:13304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1328013304  rm -rf conftest*
    1328113305  blas_ok=yes; BLASLIB="$vlib_flags"
     
    1329513319if test $blas_ok = no; then
    1329613320        echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
    13297 echo "configure:13298: checking for sgemm_ in -lblas" >&5
     13321echo "configure:13322: checking for sgemm_ in -lblas" >&5
    1329813322ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
    1329913323
     
    1330113325LIBS="-lblas  $LIBS"
    1330213326cat > conftest.$ac_ext <<EOF
    13303 #line 13304 "configure"
     13327#line 13328 "configure"
    1330413328#include "confdefs.h"
    1330513329/* Override any gcc2 internal prototype to avoid an error.  */
     
    1331213336; return 0; }
    1331313337EOF
    13314 if { (eval echo configure:13315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13338if { (eval echo configure:13339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1331513339  rm -rf conftest*
    1331613340  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1332713351  echo "$ac_t""yes" 1>&6
    1332813352  echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
    13329 echo "configure:13330: checking for dgemm_ in -ldgemm" >&5
     13353echo "configure:13354: checking for dgemm_ in -ldgemm" >&5
    1333013354ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
    1333113355
     
    1333313357LIBS="-ldgemm -lblas $LIBS"
    1333413358cat > conftest.$ac_ext <<EOF
    13335 #line 13336 "configure"
     13359#line 13360 "configure"
    1333613360#include "confdefs.h"
    1333713361/* Override any gcc2 internal prototype to avoid an error.  */
     
    1334413368; return 0; }
    1334513369EOF
    13346 if { (eval echo configure:13347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13370if { (eval echo configure:13371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1334713371  rm -rf conftest*
    1334813372  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1335913383  echo "$ac_t""yes" 1>&6
    1336013384  echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
    13361 echo "configure:13362: checking for sgemm_ in -lsgemm" >&5
     13385echo "configure:13386: checking for sgemm_ in -lsgemm" >&5
    1336213386ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
    1336313387
     
    1336513389LIBS="-lsgemm -lblas $LIBS"
    1336613390cat > conftest.$ac_ext <<EOF
    13367 #line 13368 "configure"
     13391#line 13392 "configure"
    1336813392#include "confdefs.h"
    1336913393/* Override any gcc2 internal prototype to avoid an error.  */
     
    1337613400; return 0; }
    1337713401EOF
    13378 if { (eval echo configure:13379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13402if { (eval echo configure:13403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1337913403  rm -rf conftest*
    1338013404  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1341013434        if test "x$GCC" != xyes; then # only works with Sun CC
    1341113435                echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
    13412 echo "configure:13413: checking for acosp in -lsunmath" >&5
     13436echo "configure:13437: checking for acosp in -lsunmath" >&5
    1341313437ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
    1341413438
     
    1341613440LIBS="-lsunmath  $LIBS"
    1341713441cat > conftest.$ac_ext <<EOF
    13418 #line 13419 "configure"
     13442#line 13443 "configure"
    1341913443#include "confdefs.h"
    1342013444/* Override any gcc2 internal prototype to avoid an error.  */
     
    1342713451; return 0; }
    1342813452EOF
    13429 if { (eval echo configure:13430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13453if { (eval echo configure:13454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1343013454  rm -rf conftest*
    1343113455  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1344213466  echo "$ac_t""yes" 1>&6
    1344313467  echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
    13444 echo "configure:13445: checking for sgemm_ in -lsunperf" >&5
     13468echo "configure:13469: checking for sgemm_ in -lsunperf" >&5
    1344513469ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
    1344613470
     
    1344813472LIBS="-lsunperf -lsunmath $LIBS"
    1344913473cat > conftest.$ac_ext <<EOF
    13450 #line 13451 "configure"
     13474#line 13475 "configure"
    1345113475#include "confdefs.h"
    1345213476/* Override any gcc2 internal prototype to avoid an error.  */
     
    1345913483; return 0; }
    1346013484EOF
    13461 if { (eval echo configure:13462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13485if { (eval echo configure:13486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1346213486  rm -rf conftest*
    1346313487  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1348913513if test $blas_ok = no; then
    1349013514        echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
    13491 echo "configure:13492: checking for sgemm_ in -lblas" >&5
     13515echo "configure:13516: checking for sgemm_ in -lblas" >&5
    1349213516ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
    1349313517
     
    1349513519LIBS="-lblas  $LIBS"
    1349613520cat > conftest.$ac_ext <<EOF
    13497 #line 13498 "configure"
     13521#line 13522 "configure"
    1349813522#include "confdefs.h"
    1349913523/* Override any gcc2 internal prototype to avoid an error.  */
     
    1350613530; return 0; }
    1350713531EOF
    13508 if { (eval echo configure:13509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13532if { (eval echo configure:13533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1350913533  rm -rf conftest*
    1351013534  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1354513569
    1354613570echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
    13547 echo "configure:13548: checking whether to use LAPACK" >&5
     13571echo "configure:13572: checking whether to use LAPACK" >&5
    1354813572echo "$ac_t"""$with_lapack"" 1>&6
    1354913573case "$with_lapack" in
     
    1357013594
    1357113595echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
    13572 echo "configure:13573: checking for location of LAPACK includes" >&5
     13596echo "configure:13597: checking for location of LAPACK includes" >&5
    1357313597case "$with_lapack_includes" in
    1357413598y | ye | yes | n | no)
     
    1359013614
    1359113615echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
    13592 echo "configure:13593: checking for location of LAPACK library" >&5
     13616echo "configure:13617: checking for location of LAPACK library" >&5
    1359313617case "$with_lapack_libs" in
    1359413618y | ye | yes | n | no)
     
    1361613640ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1361713641echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    13618 echo "configure:13619: checking for $ac_hdr" >&5
    13619 
    13620 cat > conftest.$ac_ext <<EOF
    13621 #line 13622 "configure"
     13642echo "configure:13643: checking for $ac_hdr" >&5
     13643
     13644cat > conftest.$ac_ext <<EOF
     13645#line 13646 "configure"
    1362213646#include "confdefs.h"
    1362313647#include <$ac_hdr>
    1362413648EOF
    1362513649ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    13626 { (eval echo configure:13627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     13650{ (eval echo configure:13651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1362713651ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1362813652if test -z "$ac_err"; then
     
    1365613680        save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
    1365713681        echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
    13658 echo "configure:13659: checking for dsegv_" >&5
    13659 
    13660 cat > conftest.$ac_ext <<EOF
    13661 #line 13662 "configure"
     13682echo "configure:13683: checking for dsegv_" >&5
     13683
     13684cat > conftest.$ac_ext <<EOF
     13685#line 13686 "configure"
    1366213686#include "confdefs.h"
    1366313687/* System header to define __stub macros and hopefully few prototypes,
     
    1368213706; return 0; }
    1368313707EOF
    13684 if { (eval echo configure:13685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13708if { (eval echo configure:13709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1368513709  rm -rf conftest*
    1368613710  eval "ac_cv_func_dsegv_=yes"
     
    1370913733        save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
    1371013734        echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
    13711 echo "configure:13712: checking for desgv_ in -llapack" >&5
     13735echo "configure:13736: checking for desgv_ in -llapack" >&5
    1371213736ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
    1371313737
     
    1371513739LIBS="-llapack $FLIBS $LIBS"
    1371613740cat > conftest.$ac_ext <<EOF
    13717 #line 13718 "configure"
     13741#line 13742 "configure"
    1371813742#include "confdefs.h"
    1371913743/* Override any gcc2 internal prototype to avoid an error.  */
     
    1372613750; return 0; }
    1372713751EOF
    13728 if { (eval echo configure:13729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13752if { (eval echo configure:13753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1372913753  rm -rf conftest*
    1373013754  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1375813782
    1375913783echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
    13760 echo "configure:13761: checking for dgesv_ in -llapack" >&5
     13784echo "configure:13785: checking for dgesv_ in -llapack" >&5
    1376113785ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
    1376213786
     
    1376413788LIBS="-llapack $BLASLIB $MATHLIB  $LIBS"
    1376513789cat > conftest.$ac_ext <<EOF
    13766 #line 13767 "configure"
     13790#line 13791 "configure"
    1376713791#include "confdefs.h"
    1376813792/* Override any gcc2 internal prototype to avoid an error.  */
     
    1377513799; return 0; }
    1377613800EOF
    13777 if { (eval echo configure:13778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13801if { (eval echo configure:13802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1377813802  rm -rf conftest*
    1377913803  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1379413818
    1379513819echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
    13796 echo "configure:13797: checking for dgesv_ in -llapack" >&5
     13820echo "configure:13821: checking for dgesv_ in -llapack" >&5
    1379713821ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
    1379813822
     
    1380013824LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
    1380113825cat > conftest.$ac_ext <<EOF
    13802 #line 13803 "configure"
     13826#line 13827 "configure"
    1380313827#include "confdefs.h"
    1380413828/* Override any gcc2 internal prototype to avoid an error.  */
     
    1381113835; return 0; }
    1381213836EOF
    13813 if { (eval echo configure:13814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13837if { (eval echo configure:13838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1381413838  rm -rf conftest*
    1381513839  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1386713891
    1386813892echo $ac_n "checking whether to use Motif""... $ac_c" 1>&6
    13869 echo "configure:13870: checking whether to use Motif" >&5
     13893echo "configure:13894: checking whether to use Motif" >&5
    1387013894echo "$ac_t"""$with_motif"" 1>&6
    1387113895case "$with_motif" in
     
    1388613910
    1388713911echo $ac_n "checking for location of Motif includes""... $ac_c" 1>&6
    13888 echo "configure:13889: checking for location of Motif includes" >&5
     13912echo "configure:13913: checking for location of Motif includes" >&5
    1388913913case "$with_motif_includes" in
    1389013914y | ye | yes | n | no)
     
    1391213936ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1391313937echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    13914 echo "configure:13915: checking for $ac_hdr" >&5
    13915 
    13916 cat > conftest.$ac_ext <<EOF
    13917 #line 13918 "configure"
     13938echo "configure:13939: checking for $ac_hdr" >&5
     13939
     13940cat > conftest.$ac_ext <<EOF
     13941#line 13942 "configure"
    1391813942#include "confdefs.h"
    1391913943#include <$ac_hdr>
    1392013944EOF
    1392113945ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    13922 { (eval echo configure:13923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     13946{ (eval echo configure:13947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1392313947ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1392413948if test -z "$ac_err"; then
     
    1395413978
    1395513979echo $ac_n "checking for location of Motif library""... $ac_c" 1>&6
    13956 echo "configure:13957: checking for location of Motif library" >&5
     13980echo "configure:13981: checking for location of Motif library" >&5
    1395713981case "$with_motif_libs" in
    1395813982y | ye | yes | n | no)
     
    1397914003
    1398014004echo $ac_n "checking for XmStringCreate in -lXm""... $ac_c" 1>&6
    13981 echo "configure:13982: checking for XmStringCreate in -lXm" >&5
     14005echo "configure:14006: checking for XmStringCreate in -lXm" >&5
    1398214006ac_lib_var=`echo Xm'_'XmStringCreate | sed 'y%./+-%__p_%'`
    1398314007
     
    1398514009LIBS="-lXm $X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS  $LIBS"
    1398614010cat > conftest.$ac_ext <<EOF
    13987 #line 13988 "configure"
     14011#line 14012 "configure"
    1398814012#include "confdefs.h"
    1398914013/* Override any gcc2 internal prototype to avoid an error.  */
     
    1399614020; return 0; }
    1399714021EOF
    13998 if { (eval echo configure:13999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14022if { (eval echo configure:14023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1399914023  rm -rf conftest*
    1400014024  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1403714061
    1403814062echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
    14039 echo "configure:14040: checking whether to use Cairo" >&5
     14063echo "configure:14064: checking whether to use Cairo" >&5
    1404014064echo "$ac_t"""$with_cairo"" 1>&6
    1404114065case "$with_cairo" in
     
    1406314087
    1406414088echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
    14065 echo "configure:14066: checking for location of cairo includes" >&5
     14089echo "configure:14090: checking for location of cairo includes" >&5
    1406614090case "$with_cairo_includes" in
    1406714091y | ye | yes | n | no)
     
    1408914113ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1409014114echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    14091 echo "configure:14092: checking for $ac_hdr" >&5
    14092 
    14093 cat > conftest.$ac_ext <<EOF
    14094 #line 14095 "configure"
     14115echo "configure:14116: checking for $ac_hdr" >&5
     14116
     14117cat > conftest.$ac_ext <<EOF
     14118#line 14119 "configure"
    1409514119#include "confdefs.h"
    1409614120#include <$ac_hdr>
    1409714121EOF
    1409814122ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    14099 { (eval echo configure:14100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     14123{ (eval echo configure:14124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1410014124ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1410114125if test -z "$ac_err"; then
     
    1413314157
    1413414158echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
    14135 echo "configure:14136: checking for location of cairo library" >&5
     14159echo "configure:14160: checking for location of cairo library" >&5
    1413614160case "$with_cairo_libs" in
    1413714161y | ye | yes | n | no)
     
    1415314177
    1415414178echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
    14155 echo "configure:14156: checking for cairo linking flags" >&5
     14179echo "configure:14180: checking for cairo linking flags" >&5
    1415614180case "$with_cairo_ldflags" in
    1415714181y | ye | yes | n | no)
     
    1416914193LDFLAGS=" $LDFLAGS"
    1417014194echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
    14171 echo "configure:14172: checking for cairo_create" >&5
    14172 
    14173 cat > conftest.$ac_ext <<EOF
    14174 #line 14175 "configure"
     14195echo "configure:14196: checking for cairo_create" >&5
     14196
     14197cat > conftest.$ac_ext <<EOF
     14198#line 14199 "configure"
    1417514199#include "confdefs.h"
    1417614200/* System header to define __stub macros and hopefully few prototypes,
     
    1419514219; return 0; }
    1419614220EOF
    14197 if { (eval echo configure:14198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14221if { (eval echo configure:14222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1419814222  rm -rf conftest*
    1419914223  eval "ac_cv_func_cairo_create=yes"
     
    1422914253LDFLAGS=" $LDFLAGS"
    1423014254echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
    14231 echo "configure:14232: checking for cairo_xlib_surface_create_with_xrender_format" >&5
    14232 
    14233 cat > conftest.$ac_ext <<EOF
    14234 #line 14235 "configure"
     14255echo "configure:14256: checking for cairo_xlib_surface_create_with_xrender_format" >&5
     14256
     14257cat > conftest.$ac_ext <<EOF
     14258#line 14259 "configure"
    1423514259#include "confdefs.h"
    1423614260/* System header to define __stub macros and hopefully few prototypes,
     
    1425514279; return 0; }
    1425614280EOF
    14257 if { (eval echo configure:14258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14281if { (eval echo configure:14282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1425814282  rm -rf conftest*
    1425914283  eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
     
    1429714321
    1429814322echo $ac_n "checking whether to use GLw""... $ac_c" 1>&6
    14299 echo "configure:14300: checking whether to use GLw" >&5
     14323echo "configure:14324: checking whether to use GLw" >&5
    1430014324echo "$ac_t"""$with_glw"" 1>&6
    1430114325case "$with_glw" in
     
    1431614340
    1431714341echo $ac_n "checking for location of GLw includes""... $ac_c" 1>&6
    14318 echo "configure:14319: checking for location of GLw includes" >&5
     14342echo "configure:14343: checking for location of GLw includes" >&5
    1431914343case "$with_glw_includes" in
    1432014344y | ye | yes | n | no)
     
    1434214366ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1434314367echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    14344 echo "configure:14345: checking for $ac_hdr" >&5
    14345 
    14346 cat > conftest.$ac_ext <<EOF
    14347 #line 14348 "configure"
     14368echo "configure:14369: checking for $ac_hdr" >&5
     14369
     14370cat > conftest.$ac_ext <<EOF
     14371#line 14372 "configure"
    1434814372#include "confdefs.h"
    1434914373#include <$ac_hdr>
    1435014374EOF
    1435114375ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    14352 { (eval echo configure:14353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     14376{ (eval echo configure:14377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1435314377ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1435414378if test -z "$ac_err"; then
     
    1437814402ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1437914403echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    14380 echo "configure:14381: checking for $ac_hdr" >&5
    14381 
    14382 cat > conftest.$ac_ext <<EOF
    14383 #line 14384 "configure"
     14404echo "configure:14405: checking for $ac_hdr" >&5
     14405
     14406cat > conftest.$ac_ext <<EOF
     14407#line 14408 "configure"
    1438414408#include "confdefs.h"
    1438514409#include <$ac_hdr>
    1438614410EOF
    1438714411ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    14388 { (eval echo configure:14389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     14412{ (eval echo configure:14413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1438914413ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1439014414if test -z "$ac_err"; then
     
    1442614450
    1442714451echo $ac_n "checking for location of GLw library""... $ac_c" 1>&6
    14428 echo "configure:14429: checking for location of GLw library" >&5
     14452echo "configure:14453: checking for location of GLw library" >&5
    1442914453case "$with_glw_libs" in
    1443014454y | ye | yes | n | no)
     
    1445114475
    1445214476echo $ac_n "checking for GLwCreateMDrawingArea in -lGLw""... $ac_c" 1>&6
    14453 echo "configure:14454: checking for GLwCreateMDrawingArea in -lGLw" >&5
     14477echo "configure:14478: checking for GLwCreateMDrawingArea in -lGLw" >&5
    1445414478ac_lib_var=`echo GLw'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
    1445514479
     
    1445714481LIBS="-lGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1445814482cat > conftest.$ac_ext <<EOF
    14459 #line 14460 "configure"
     14483#line 14484 "configure"
    1446014484#include "confdefs.h"
    1446114485/* Override any gcc2 internal prototype to avoid an error.  */
     
    1446814492; return 0; }
    1446914493EOF
    14470 if { (eval echo configure:14471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14494if { (eval echo configure:14495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1447114495  rm -rf conftest*
    1447214496  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1449314517
    1449414518echo $ac_n "checking for GLwCreateM1DrawingArea in -lGLw""... $ac_c" 1>&6
    14495 echo "configure:14496: checking for GLwCreateM1DrawingArea in -lGLw" >&5
     14519echo "configure:14520: checking for GLwCreateM1DrawingArea in -lGLw" >&5
    1449614520ac_lib_var=`echo GLw'_'GLwCreateM1DrawingArea | sed 'y%./+-%__p_%'`
    1449714521
     
    1449914523LIBS="-lGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1450014524cat > conftest.$ac_ext <<EOF
    14501 #line 14502 "configure"
     14525#line 14526 "configure"
    1450214526#include "confdefs.h"
    1450314527/* Override any gcc2 internal prototype to avoid an error.  */
     
    1451014534; return 0; }
    1451114535EOF
    14512 if { (eval echo configure:14513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14536if { (eval echo configure:14537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1451314537  rm -rf conftest*
    1451414538  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1453514559
    1453614560echo $ac_n "checking for GLwCreateM2DrawingArea in -lGLw""... $ac_c" 1>&6
    14537 echo "configure:14538: checking for GLwCreateM2DrawingArea in -lGLw" >&5
     14561echo "configure:14562: checking for GLwCreateM2DrawingArea in -lGLw" >&5
    1453814562ac_lib_var=`echo GLw'_'GLwCreateM2DrawingArea | sed 'y%./+-%__p_%'`
    1453914563
     
    1454114565LIBS="-lGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1454214566cat > conftest.$ac_ext <<EOF
    14543 #line 14544 "configure"
     14567#line 14568 "configure"
    1454414568#include "confdefs.h"
    1454514569/* Override any gcc2 internal prototype to avoid an error.  */
     
    1455214576; return 0; }
    1455314577EOF
    14554 if { (eval echo configure:14555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14578if { (eval echo configure:14579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1455514579  rm -rf conftest*
    1455614580  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1457714601
    1457814602echo $ac_n "checking for GLwCreateMDrawingArea in -lGLwM""... $ac_c" 1>&6
    14579 echo "configure:14580: checking for GLwCreateMDrawingArea in -lGLwM" >&5
     14603echo "configure:14604: checking for GLwCreateMDrawingArea in -lGLwM" >&5
    1458014604ac_lib_var=`echo GLwM'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
    1458114605
     
    1458314607LIBS="-lGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1458414608cat > conftest.$ac_ext <<EOF
    14585 #line 14586 "configure"
     14609#line 14610 "configure"
    1458614610#include "confdefs.h"
    1458714611/* Override any gcc2 internal prototype to avoid an error.  */
     
    1459414618; return 0; }
    1459514619EOF
    14596 if { (eval echo configure:14597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14620if { (eval echo configure:14621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1459714621  rm -rf conftest*
    1459814622  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1461914643
    1462014644echo $ac_n "checking for GLwCreateM1DrawingArea in -lGLwM""... $ac_c" 1>&6
    14621 echo "configure:14622: checking for GLwCreateM1DrawingArea in -lGLwM" >&5
     14645echo "configure:14646: checking for GLwCreateM1DrawingArea in -lGLwM" >&5
    1462214646ac_lib_var=`echo GLwM'_'GLwCreateM1DrawingArea | sed 'y%./+-%__p_%'`
    1462314647
     
    1462514649LIBS="-lGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1462614650cat > conftest.$ac_ext <<EOF
    14627 #line 14628 "configure"
     14651#line 14652 "configure"
    1462814652#include "confdefs.h"
    1462914653/* Override any gcc2 internal prototype to avoid an error.  */
     
    1463614660; return 0; }
    1463714661EOF
    14638 if { (eval echo configure:14639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14662if { (eval echo configure:14663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1463914663  rm -rf conftest*
    1464014664  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1466114685
    1466214686echo $ac_n "checking for GLwCreateM2DrawingArea in -lGLwM""... $ac_c" 1>&6
    14663 echo "configure:14664: checking for GLwCreateM2DrawingArea in -lGLwM" >&5
     14687echo "configure:14688: checking for GLwCreateM2DrawingArea in -lGLwM" >&5
    1466414688ac_lib_var=`echo GLwM'_'GLwCreateM2DrawingArea | sed 'y%./+-%__p_%'`
    1466514689
     
    1466714691LIBS="-lGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1466814692cat > conftest.$ac_ext <<EOF
    14669 #line 14670 "configure"
     14693#line 14694 "configure"
    1467014694#include "confdefs.h"
    1467114695/* Override any gcc2 internal prototype to avoid an error.  */
     
    1467814702; return 0; }
    1467914703EOF
    14680 if { (eval echo configure:14681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14704if { (eval echo configure:14705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1468114705  rm -rf conftest*
    1468214706  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1470514729
    1470614730echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLw""... $ac_c" 1>&6
    14707 echo "configure:14708: checking for GLwCreateMDrawingArea in -lMesaGLw" >&5
     14731echo "configure:14732: checking for GLwCreateMDrawingArea in -lMesaGLw" >&5
    1470814732ac_lib_var=`echo MesaGLw'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
    1470914733
     
    1471114735LIBS="-lMesaGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1471214736cat > conftest.$ac_ext <<EOF
    14713 #line 14714 "configure"
     14737#line 14738 "configure"
    1471414738#include "confdefs.h"
    1471514739/* Override any gcc2 internal prototype to avoid an error.  */
     
    1472214746; return 0; }
    1472314747EOF
    14724 if { (eval echo configure:14725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14748if { (eval echo configure:14749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1472514749  rm -rf conftest*
    1472614750  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1474114765
    1474214766echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLw""... $ac_c" 1>&6
    14743 echo "configure:14744: checking for GLwCreateMDrawingArea in -lMesaGLw" >&5
     14767echo "configure:14768: checking for GLwCreateMDrawingArea in -lMesaGLw" >&5
    1474414768ac_lib_var=`echo MesaGLw'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
    1474514769
     
    1474714771LIBS="-lMesaGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $OPENGLULIB $LIBS"
    1474814772cat > conftest.$ac_ext <<EOF
    14749 #line 14750 "configure"
     14773#line 14774 "configure"
    1475014774#include "confdefs.h"
    1475114775/* Override any gcc2 internal prototype to avoid an error.  */
     
    1475814782; return 0; }
    1475914783EOF
    14760 if { (eval echo configure:14761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14784if { (eval echo configure:14785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1476114785  rm -rf conftest*
    1476214786  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1478514809
    1478614810echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLwM""... $ac_c" 1>&6
    14787 echo "configure:14788: checking for GLwCreateMDrawingArea in -lMesaGLwM" >&5
     14811echo "configure:14812: checking for GLwCreateMDrawingArea in -lMesaGLwM" >&5
    1478814812ac_lib_var=`echo MesaGLwM'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
    1478914813
     
    1479114815LIBS="-lMesaGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1479214816cat > conftest.$ac_ext <<EOF
    14793 #line 14794 "configure"
     14817#line 14818 "configure"
    1479414818#include "confdefs.h"
    1479514819/* Override any gcc2 internal prototype to avoid an error.  */
     
    1480214826; return 0; }
    1480314827EOF
    14804 if { (eval echo configure:14805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14828if { (eval echo configure:14829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1480514829  rm -rf conftest*
    1480614830  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1482114845
    1482214846echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLwM""... $ac_c" 1>&6
    14823 echo "configure:14824: checking for GLwCreateMDrawingArea in -lMesaGLwM" >&5
     14847echo "configure:14848: checking for GLwCreateMDrawingArea in -lMesaGLwM" >&5
    1482414848ac_lib_var=`echo MesaGLwM'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
    1482514849
     
    1482714851LIBS="-lMesaGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $OPENGLULIB $LIBS"
    1482814852cat > conftest.$ac_ext <<EOF
    14829 #line 14830 "configure"
     14853#line 14854 "configure"
    1483014854#include "confdefs.h"
    1483114855/* Override any gcc2 internal prototype to avoid an error.  */
     
    1483814862; return 0; }
    1483914863EOF
    14840 if { (eval echo configure:14841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14864if { (eval echo configure:14865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1484114865  rm -rf conftest*
    1484214866  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1495114975
    1495214976echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
    14953 echo "configure:14954: checking whether to use FreeType" >&5
     14977echo "configure:14978: checking whether to use FreeType" >&5
    1495414978echo "$ac_t"""$with_freetype"" 1>&6
    1495514979case "$with_freetype" in
     
    1497014994
    1497114995echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
    14972 echo "configure:14973: checking for location of FreeType includes" >&5
     14996echo "configure:14997: checking for location of FreeType includes" >&5
    1497314997case "$with_freetype_includes" in
    1497414998y | ye | yes | n | no)
     
    1499615020ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1499715021echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    14998 echo "configure:14999: checking for $ac_hdr" >&5
    14999 
    15000 cat > conftest.$ac_ext <<EOF
    15001 #line 15002 "configure"
     15022echo "configure:15023: checking for $ac_hdr" >&5
     15023
     15024cat > conftest.$ac_ext <<EOF
     15025#line 15026 "configure"
    1500215026#include "confdefs.h"
    1500315027#include <$ac_hdr>
    1500415028EOF
    1500515029ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    15006 { (eval echo configure:15007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     15030{ (eval echo configure:15031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1500715031ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1500815032if test -z "$ac_err"; then
     
    1503815062
    1503915063echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
    15040 echo "configure:15041: checking for location of FreeType library" >&5
     15064echo "configure:15065: checking for location of FreeType library" >&5
    1504115065case "$with_freetype_libs" in
    1504215066y | ye | yes | n | no)
     
    1506315087
    1506415088echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
    15065 echo "configure:15066: checking for FT_Init_FreeType in -lfreetype" >&5
     15089echo "configure:15090: checking for FT_Init_FreeType in -lfreetype" >&5
    1506615090ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
    1506715091
     
    1506915093LIBS="-lfreetype  $LIBS"
    1507015094cat > conftest.$ac_ext <<EOF
    15071 #line 15072 "configure"
     15095#line 15096 "configure"
    1507215096#include "confdefs.h"
    1507315097/* Override any gcc2 internal prototype to avoid an error.  */
     
    1508015104; return 0; }
    1508115105EOF
    15082 if { (eval echo configure:15083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     15106if { (eval echo configure:15107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1508315107  rm -rf conftest*
    1508415108  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1512115145
    1512215146echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
    15123 echo "configure:15124: checking whether to use NLS" >&5
     15147echo "configure:15148: checking whether to use NLS" >&5
    1512415148echo "$ac_t"""$with_nls"" 1>&6
    1512515149case "$with_nls" in
     
    1514115165
    1514215166echo $ac_n "checking for gettext""... $ac_c" 1>&6
    15143 echo "configure:15144: checking for gettext" >&5
    15144 
    15145 cat > conftest.$ac_ext <<EOF
    15146 #line 15147 "configure"
     15167echo "configure:15168: checking for gettext" >&5
     15168
     15169cat > conftest.$ac_ext <<EOF
     15170#line 15171 "configure"
    1514715171#include "confdefs.h"
    1514815172/* System header to define __stub macros and hopefully few prototypes,
     
    1516715191; return 0; }
    1516815192EOF
    15169 if { (eval echo configure:15170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     15193if { (eval echo configure:15194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1517015194  rm -rf conftest*
    1517115195  eval "ac_cv_func_gettext=yes"
     
    1518515209
    1518615210echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
    15187 echo "configure:15188: checking for gettext in -lintl" >&5
     15211echo "configure:15212: checking for gettext in -lintl" >&5
    1518815212ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
    1518915213
     
    1519115215LIBS="-lintl  $LIBS"
    1519215216cat > conftest.$ac_ext <<EOF
    15193 #line 15194 "configure"
     15217#line 15218 "configure"
    1519415218#include "confdefs.h"
    1519515219/* Override any gcc2 internal prototype to avoid an error.  */
     
    1520215226; return 0; }
    1520315227EOF
    15204 if { (eval echo configure:15205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     15228if { (eval echo configure:15229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1520515229  rm -rf conftest*
    1520615230  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1523715261
    1523815262echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
    15239 echo "configure:15240: checking whether to use C++" >&5
     15263echo "configure:15264: checking whether to use C++" >&5
    1524015264echo "$ac_t"""$with_cxx"" 1>&6
    1524115265case "$with_cxx" in
     
    1525315277set dummy $ac_prog; ac_word=$2
    1525415278echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    15255 echo "configure:15256: checking for $ac_word" >&5
     15279echo "configure:15280: checking for $ac_word" >&5
    1525615280
    1525715281if test -n "$CXX"; then
     
    1528215306
    1528315307echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    15284 echo "configure:15285: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     15308echo "configure:15309: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    1528515309
    1528615310ac_ext=C
     
    1529315317cat > conftest.$ac_ext << EOF
    1529415318
    15295 #line 15296 "configure"
     15319#line 15320 "configure"
    1529615320#include "confdefs.h"
    1529715321
    1529815322int main(){return(0);}
    1529915323EOF
    15300 if { (eval echo configure:15301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     15324if { (eval echo configure:15325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1530115325  ac_cv_prog_cxx_works=yes
    1530215326  # If we can't run a trivial program, we are probably using a cross compiler.
     
    1532415348fi
    1532515349echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    15326 echo "configure:15327: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     15350echo "configure:15351: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    1532715351echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    1532815352cross_compiling=$ac_cv_prog_cxx_cross
    1532915353
    1533015354echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    15331 echo "configure:15332: checking whether we are using GNU C++" >&5
     15355echo "configure:15356: checking whether we are using GNU C++" >&5
    1533215356
    1533315357cat > conftest.C <<EOF
     
    1533615360#endif
    1533715361EOF
    15338 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:15339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     15362if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:15363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    1533915363  ac_cv_prog_gxx=yes
    1534015364else
     
    1535415378CXXFLAGS=
    1535515379echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    15356 echo "configure:15357: checking whether ${CXX-g++} accepts -g" >&5
     15380echo "configure:15381: checking whether ${CXX-g++} accepts -g" >&5
    1535715381
    1535815382echo 'void f(){}' > conftest.cc
     
    1539515419
    1539615420echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
    15397 echo "configure:15398: checking whether to use openDWG" >&5
     15421echo "configure:15422: checking whether to use openDWG" >&5
    1539815422echo "$ac_t"""$with_opendwg"" 1>&6
    1539915423case "$with_opendwg" in
     
    1541515439
    1541615440echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
    15417 echo "configure:15418: checking for location of openDGW includes" >&5
     15441echo "configure:15442: checking for location of openDGW includes" >&5
    1541815442case "$with_opendwg_includes" in
    1541915443y | ye | yes | n | no)
     
    1544115465ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1544215466echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    15443 echo "configure:15444: checking for $ac_hdr" >&5
    15444 
    15445 cat > conftest.$ac_ext <<EOF
    15446 #line 15447 "configure"
     15467echo "configure:15468: checking for $ac_hdr" >&5
     15468
     15469cat > conftest.$ac_ext <<EOF
     15470#line 15471 "configure"
    1544715471#include "confdefs.h"
    1544815472#include <$ac_hdr>
    1544915473EOF
    1545015474ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    15451 { (eval echo configure:15452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     15475{ (eval echo configure:15476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1545215476ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1545315477if test -z "$ac_err"; then
     
    1548315507
    1548415508echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
    15485 echo "configure:15486: checking for location of openDWG library" >&5
     15509echo "configure:15510: checking for location of openDWG library" >&5
    1548615510case "$with_opendwg_libs" in
    1548715511y | ye | yes | n | no)
     
    1553015554
    1553115555     echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
    15532 echo "configure:15533: checking for special C compiler options needed for large files" >&5
     15556echo "configure:15557: checking for special C compiler options needed for large files" >&5
    1553315557
    1553415558ac_cv_sys_largefile_CC=no
     
    1553815562          # so use the C compiler's -n32 option if that helps.
    1553915563          cat > conftest.$ac_ext <<EOF
    15540 #line 15541 "configure"
     15564#line 15565 "configure"
    1554115565#include "confdefs.h"
    1554215566#include <sys/types.h>
     
    1555415578; return 0; }
    1555515579EOF
    15556 if { (eval echo configure:15557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15580if { (eval echo configure:15581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1555715581  :
    1555815582else
     
    1556315587             CC="$CC -n32"
    1556415588             cat > conftest.$ac_ext <<EOF
    15565 #line 15566 "configure"
     15589#line 15590 "configure"
    1556615590#include "confdefs.h"
    1556715591#include <sys/types.h>
     
    1557915603; return 0; }
    1558015604EOF
    15581 if { (eval echo configure:15582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15605if { (eval echo configure:15606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1558215606  rm -rf conftest*
    1558315607  ac_cv_sys_largefile_CC=' -n32'
     
    1559915623
    1560015624     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
    15601 echo "configure:15602: checking for _FILE_OFFSET_BITS value needed for large files" >&5
     15625echo "configure:15626: checking for _FILE_OFFSET_BITS value needed for large files" >&5
    1560215626
    1560315627ac_cv_sys_file_offset_bits=no
    1560415628      cat > conftest.$ac_ext <<EOF
    15605 #line 15606 "configure"
     15629#line 15630 "configure"
    1560615630#include "confdefs.h"
    1560715631#include <sys/types.h>
     
    1561915643; return 0; }
    1562015644EOF
    15621 if { (eval echo configure:15622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15645if { (eval echo configure:15646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1562215646  :
    1562315647else
     
    1562615650  rm -rf conftest*
    1562715651  cat > conftest.$ac_ext <<EOF
    15628 #line 15629 "configure"
     15652#line 15653 "configure"
    1562915653#include "confdefs.h"
    1563015654#define _FILE_OFFSET_BITS 64
     
    1564415668; return 0; }
    1564515669EOF
    15646 if { (eval echo configure:15647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15670if { (eval echo configure:15671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1564715671  rm -rf conftest*
    1564815672  ac_cv_sys_file_offset_bits=64
     
    1566315687   fi
    1566415688     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
    15665 echo "configure:15666: checking for _LARGE_FILES value needed for large files" >&5
     15689echo "configure:15690: checking for _LARGE_FILES value needed for large files" >&5
    1566615690
    1566715691ac_cv_sys_large_files=no
    1566815692      cat > conftest.$ac_ext <<EOF
    15669 #line 15670 "configure"
     15693#line 15694 "configure"
    1567015694#include "confdefs.h"
    1567115695#include <sys/types.h>
     
    1568315707; return 0; }
    1568415708EOF
    15685 if { (eval echo configure:15686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15709if { (eval echo configure:15710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1568615710  :
    1568715711else
     
    1569015714  rm -rf conftest*
    1569115715  cat > conftest.$ac_ext <<EOF
    15692 #line 15693 "configure"
     15716#line 15717 "configure"
    1569315717#include "confdefs.h"
    1569415718#define _LARGE_FILES 1
     
    1570815732; return 0; }
    1570915733EOF
    15710 if { (eval echo configure:15711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15734if { (eval echo configure:15735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1571115735  rm -rf conftest*
    1571215736  ac_cv_sys_large_files=1
     
    1572715751   fi
    1572815752     echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
    15729 echo "configure:15730: checking for _LARGEFILE_SOURCE value needed for large files" >&5
     15753echo "configure:15754: checking for _LARGEFILE_SOURCE value needed for large files" >&5
    1573015754
    1573115755ac_cv_sys_largefile_source=no
    1573215756      cat > conftest.$ac_ext <<EOF
    15733 #line 15734 "configure"
     15757#line 15758 "configure"
    1573415758#include "confdefs.h"
    1573515759#include <stdio.h>
     
    1573815762; return 0; }
    1573915763EOF
    15740 if { (eval echo configure:15741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15764if { (eval echo configure:15765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1574115765  :
    1574215766else
     
    1574515769  rm -rf conftest*
    1574615770  cat > conftest.$ac_ext <<EOF
    15747 #line 15748 "configure"
     15771#line 15772 "configure"
    1574815772#include "confdefs.h"
    1574915773#define _LARGEFILE_SOURCE 1
     
    1575415778; return 0; }
    1575515779EOF
    15756 if { (eval echo configure:15757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15780if { (eval echo configure:15781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1575715781  rm -rf conftest*
    1575815782  ac_cv_sys_largefile_source=1
     
    1577515799 
    1577615800echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
    15777 echo "configure:15778: checking if system supports Large Files at all" >&5
    15778 
    15779 cat > conftest.$ac_ext <<EOF
    15780 #line 15781 "configure"
     15801echo "configure:15802: checking if system supports Large Files at all" >&5
     15802
     15803cat > conftest.$ac_ext <<EOF
     15804#line 15805 "configure"
    1578115805#include "confdefs.h"
    1578215806#include <stdio.h>
     
    1581015834; return 0; }
    1581115835EOF
    15812 if { (eval echo configure:15813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15836if { (eval echo configure:15837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1581315837  rm -rf conftest*
    1581415838  ac_cv_largefiles=yes
     
    1583915863
    1584015864echo $ac_n "checking whether to use Python""... $ac_c" 1>&6
    15841 echo "configure:15842: checking whether to use Python" >&5
     15865echo "configure:15866: checking whether to use Python" >&5
    1584215866
    1584315867PYTHONINC=
     
    1585915883set dummy python-config; ac_word=$2
    1586015884echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    15861 echo "configure:15862: checking for $ac_word" >&5
     15885echo "configure:15886: checking for $ac_word" >&5
    1586215886
    1586315887case "$PY_CONFIG" in
     
    1590115925ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1590215926echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    15903 echo "configure:15904: checking for $ac_hdr" >&5
    15904 
    15905 cat > conftest.$ac_ext <<EOF
    15906 #line 15907 "configure"
     15927echo "configure:15928: checking for $ac_hdr" >&5
     15928
     15929cat > conftest.$ac_ext <<EOF
     15930#line 15931 "configure"
    1590715931#include "confdefs.h"
    1590815932#include <$ac_hdr>
    1590915933EOF
    1591015934ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    15911 { (eval echo configure:15912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     15935{ (eval echo configure:15936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1591215936ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1591315937if test -z "$ac_err"; then
     
    1595015974set dummy swig; ac_word=$2
    1595115975echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    15952 echo "configure:15953: checking for $ac_word" >&5
     15976echo "configure:15977: checking for $ac_word" >&5
    1595315977
    1595415978case "$SWIG" in
     
    1599616020
    1599716021echo $ac_n "checking whether to use wxWidgets""... $ac_c" 1>&6
    15998 echo "configure:15999: checking whether to use wxWidgets" >&5
     16022echo "configure:16023: checking whether to use wxWidgets" >&5
    1599916023
    1600016024WXVERSION=
     
    1601616040set dummy wx-config; ac_word=$2
    1601716041echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    16018 echo "configure:16019: checking for $ac_word" >&5
     16042echo "configure:16043: checking for $ac_word" >&5
    1601916043
    1602016044case "$WX_CONFIG" in
     
    1606416088
    1606516089 echo $ac_n "checking wxWidgets version""... $ac_c" 1>&6
    16066 echo "configure:16067: checking wxWidgets version" >&5
     16090echo "configure:16091: checking wxWidgets version" >&5
    1606716091 if WXVERSION=`"$WX_CONFIG" --version`; then
    1606816092   echo "$ac_t""$WXVERSION" 1>&6
     
    1608716111ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1608816112echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    16089 echo "configure:16090: checking for $ac_hdr" >&5
    16090 
    16091 cat > conftest.$ac_ext <<EOF
    16092 #line 16093 "configure"
     16113echo "configure:16114: checking for $ac_hdr" >&5
     16114
     16115cat > conftest.$ac_ext <<EOF
     16116#line 16117 "configure"
    1609316117#include "confdefs.h"
    1609416118#include <$ac_hdr>
    1609516119EOF
    1609616120ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    16097 { (eval echo configure:16098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     16121{ (eval echo configure:16122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1609816122ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1609916123if test -z "$ac_err"; then
     
    1635116375s%@PNGLIB@%$PNGLIB%g
    1635216376s%@USE_PNG@%$USE_PNG%g
    16353 s%@TCLINCDIR@%$TCLINCDIR%g
    16354 s%@TKINCDIR@%$TKINCDIR%g
    16355 s%@TCLTKLIBPATH@%$TCLTKLIBPATH%g
    16356 s%@TCLTKLIBS@%$TCLTKLIBS%g
    16357 s%@TCL_VERSION@%$TCL_VERSION%g
    1635816377s%@USE_POSTGRES@%$USE_POSTGRES%g
    1635916378s%@PQINCPATH@%$PQINCPATH%g
     
    1638116400s%@OPENGLLIB@%$OPENGLLIB%g
    1638216401s%@OPENGLULIB@%$OPENGLULIB%g
     16402s%@TCLINCDIR@%$TCLINCDIR%g
     16403s%@TKINCDIR@%$TKINCDIR%g
     16404s%@TCLTKLIBPATH@%$TCLTKLIBPATH%g
     16405s%@TCLTKLIBS@%$TCLTKLIBS%g
     16406s%@TCL_VERSION@%$TCL_VERSION%g
     16407s%@TCLTKAQUA_IS64BIT@%$TCLTKAQUA_IS64BIT%g
    1638316408s%@ODBCINC@%$ODBCINC%g
    1638416409s%@ODBCLIB@%$ODBCLIB%g
  • grass/branches/develbranch_6/configure.in

    r37280 r37402  
    876876# Done checking PNG
    877877
    878 # Enable TCLTK option
    879 
    880 LOC_CHECK_USE(tcltk,Tcl/Tk,USE_TCLTK)
    881 
    882 TCLINCDIR=
    883 TCLTKLIBPATH=
    884 TCLTKLIBS=
    885 
    886 if test -n "$USE_TCLTK"; then
    887 
    888 # With Tcl/Tk includes directory
    889 
    890 LOC_CHECK_INC_PATH(tcltk,Tcl/Tk,TCLINCDIR)
    891 
    892 LOC_CHECK_INCLUDES(tcl.h,Tcl,$TCLINCDIR)
    893 
    894 LOC_CHECK_INCLUDES(tk.h,Tk,$TCLINCDIR $X_CFLAGS)
    895 
    896 # Tcl/Tk version checks
    897 LOC_CHECK_VERSION_STRING(tcl.h,TCL_VERSION,Tcl,tcl_ver,$TCLINCDIR,UNKNOWN)
    898 
    899 LOC_CHECK_VERSION_STRING(tk.h,TK_VERSION,Tk,tk_ver,$TCLINCDIR $X_CFLAGS,UNKNOWN)
    900 
    901 if test "$tcl_ver" = "$tk_ver" ; then
    902     tcltk_ver=$tcl_ver
    903 else
    904     AC_MSG_ERROR([*** Tcl/Tk version mismatch.])
    905 fi
    906 
    907 TCL_VERSION="$tcl_ver"
    908 
    909 # FreeBSD and CygWin don't have a "dot" between major/minor version number
    910 tcltk_ver2=`echo $tcltk_ver | sed 's/\.//g'`
    911 
    912 # With Tcl/Tk library directory
    913 
    914 LOC_CHECK_LIB_PATH(tcltk,Tcl/Tk,TCLTKLIBPATH)
    915 
    916 TCLLIB=
    917 TKLIB=
    918 
    919 LOC_CHECK_LIBS(tcl,           Tcl_Init,Tcl,$TCLTKLIBPATH,TCLLIB,,$MATHLIB,[
    920 LOC_CHECK_LIBS(tcl$tcltk_ver, Tcl_Init,Tcl,$TCLTKLIBPATH,TCLLIB,,$MATHLIB,[
    921 LOC_CHECK_LIBS(tcl$tcltk_ver2,Tcl_Init,Tcl,$TCLTKLIBPATH,TCLLIB,,$MATHLIB,[
    922 ],$DLLIB)
    923 ],$DLLIB)
    924 ],$DLLIB)
    925 
    926 LOC_CHECK_LIBS(tk,           Tk_MainWindow,Tk,$TCLTKLIBPATH,TKLIB,$TCLLIB,$MATHLIB,[
    927 LOC_CHECK_LIBS(tk$tcltk_ver, Tk_MainWindow,Tk,$TCLTKLIBPATH,TKLIB,$TCLLIB,$MATHLIB,[
    928 LOC_CHECK_LIBS(tk$tcltk_ver2,Tk_MainWindow,Tk,$TCLTKLIBPATH,TKLIB,$TCLLIB,$MATHLIB,[
    929 ],$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS)
    930 ],$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS)
    931 ],$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS)
    932 
    933 
    934 TCLTKLIBS="$TKLIB $TCLLIB"
    935 AC_DEFINE(HAVE_TCLTK)
    936 
    937 fi # $USE_TCLTK
    938 
    939 TKINCDIR=$TCLINCDIR
    940 
    941 AC_SUBST(TCLINCDIR)
    942 AC_SUBST(TKINCDIR)
    943 AC_SUBST(TCLTKLIBPATH)
    944 AC_SUBST(TCLTKLIBS)
    945 AC_SUBST(TCL_VERSION)
    946 # Done checking Tcl/Tk
    947 
    948878# Enable PostgreSQL option
    949879
     
    11271057
    11281058# Done checking FFMPEG
    1129 
    11301059
    11311060# Enable OpenGL option
     
    12611190
    12621191# Done checking OpenGL
     1192
     1193# Enable TCLTK option
     1194
     1195LOC_CHECK_USE(tcltk,Tcl/Tk,USE_TCLTK)
     1196
     1197TCLINCDIR=
     1198TCLTKLIBPATH=
     1199TCLTKLIBS=
     1200
     1201if test -n "$USE_TCLTK"; then
     1202
     1203# With Tcl/Tk includes directory
     1204
     1205LOC_CHECK_INC_PATH(tcltk,Tcl/Tk,TCLINCDIR)
     1206
     1207LOC_CHECK_INCLUDES(tcl.h,Tcl,$TCLINCDIR)
     1208
     1209LOC_CHECK_INCLUDES(tk.h,Tk,$TCLINCDIR $X_CFLAGS)
     1210
     1211# Tcl/Tk version checks
     1212LOC_CHECK_VERSION_STRING(tcl.h,TCL_VERSION,Tcl,tcl_ver,$TCLINCDIR,UNKNOWN)
     1213
     1214LOC_CHECK_VERSION_STRING(tk.h,TK_VERSION,Tk,tk_ver,$TCLINCDIR $X_CFLAGS,UNKNOWN)
     1215
     1216if test "$tcl_ver" = "$tk_ver" ; then
     1217    tcltk_ver=$tcl_ver
     1218else
     1219    AC_MSG_ERROR([*** Tcl/Tk version mismatch.])
     1220fi
     1221
     1222TCL_VERSION="$tcl_ver"
     1223
     1224# FreeBSD and CygWin don't have a "dot" between major/minor version number
     1225tcltk_ver2=`echo $tcltk_ver | sed 's/\.//g'`
     1226
     1227# With Tcl/Tk library directory
     1228
     1229LOC_CHECK_LIB_PATH(tcltk,Tcl/Tk,TCLTKLIBPATH)
     1230
     1231TCLLIB=
     1232TKLIB=
     1233
     1234# Can't test tcl/tk libs on 64bit OSX Aqua for now
     1235# assume that if OpenGL Aqua, then user specifies TclTk Aqua,
     1236# as there is no test for Tcl/Tk Aqua and Tck/Tk X11 won't work
     1237TCLTKAQUA_IS64BIT=
     1238if test "$OPENGL_AQUA" = 1 ; then
     1239    temp_CFLAGS="$CFLAGS"
     1240    CFLAGS="`echo \"$CFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
     1241    # can't save LDFLAGS, need to remember arch flags to insert back later
     1242    temp_ARCHES=
     1243    for a in x86_64 ppc64
     1244    do
     1245        if test -n "`echo \"$LDFLAGS\" | grep -E -e '-arch +'$a`" ; then
     1246            temp_ARCHES="$temp_ARCHES -arch $a"
     1247        fi
     1248    done
     1249    LDFLAGS="`echo \"$LDFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
     1250fi
     1251
     1252LOC_CHECK_LIBS(tcl,           Tcl_Init,Tcl,$TCLTKLIBPATH,TCLLIB,,$MATHLIB,[
     1253LOC_CHECK_LIBS(tcl$tcltk_ver, Tcl_Init,Tcl,$TCLTKLIBPATH,TCLLIB,,$MATHLIB,[
     1254LOC_CHECK_LIBS(tcl$tcltk_ver2,Tcl_Init,Tcl,$TCLTKLIBPATH,TCLLIB,,$MATHLIB,[
     1255],$DLLIB)
     1256],$DLLIB)
     1257],$DLLIB)
     1258
     1259LOC_CHECK_LIBS(tk,           Tk_MainWindow,Tk,$TCLTKLIBPATH,TKLIB,$TCLLIB,$MATHLIB,[
     1260LOC_CHECK_LIBS(tk$tcltk_ver, Tk_MainWindow,Tk,$TCLTKLIBPATH,TKLIB,$TCLLIB,$MATHLIB,[
     1261LOC_CHECK_LIBS(tk$tcltk_ver2,Tk_MainWindow,Tk,$TCLTKLIBPATH,TKLIB,$TCLLIB,$MATHLIB,[
     1262],$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS)
     1263],$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS)
     1264],$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS)
     1265
     1266# restore CFLAGS/LDLFAGS from Aqua 64bit strip
     1267# only Tcl/Tk-based makefiles will strip 64bit out during compile
     1268if test "$OPENGL_AQUA" = 1 ; then
     1269   CFLAGS="$temp_CFLAGS"
     1270   LDFLAGS="$temp_ARCHES $LDFLAGS"
     1271fi
     1272
     1273TCLTKLIBS="$TKLIB $TCLLIB"
     1274AC_DEFINE(HAVE_TCLTK)
     1275
     1276fi # $USE_TCLTK
     1277
     1278TKINCDIR=$TCLINCDIR
     1279
     1280AC_SUBST(TCLINCDIR)
     1281AC_SUBST(TKINCDIR)
     1282AC_SUBST(TCLTKLIBPATH)
     1283AC_SUBST(TCLTKLIBS)
     1284AC_SUBST(TCL_VERSION)
     1285AC_SUBST(TCLTKAQUA_IS64BIT)
     1286# Done checking Tcl/Tk
    12631287
    12641288# Enable ODBC option
  • grass/branches/develbranch_6/display/d.what.vect/Makefile

    r23013 r37402  
    1313include $(MODULE_TOPDIR)/include/Make/Module.make
    1414
     15ifeq ($(OPENGL_AQUA),1)
     16ifneq ($(TCLTKAQUA_IS64BIT),1)
     17CFLAGS := $(subst -arch ppc64,,$(subst -arch x86_64,,$(CFLAGS)))
     18LDFLAGS := $(subst -arch ppc64,,$(subst -arch x86_64,,$(LDFLAGS)))
     19endif
     20endif
     21
    1522default: cmd
    1623
  • grass/branches/develbranch_6/include/Make/Platform.make.in

    r37280 r37402  
    172172TCLTKLIBS           = @TCLTKLIBS@
    173173TCLVERSION          = @TCL_VERSION@
     174# set from configure when 64bit TclTk Aqua becomes possible on OSX
     175TCLTKAQUA_IS64BIT    = @TCLTKAQUA_IS64BIT@
    174176
    175177#FFTW:
     
    188190USE_GDAL            = @USE_GDAL@
    189191USE_OGR             = @USE_OGR@
    190 
    191 #GEOS
    192 GEOSLIBS            = @GEOS_LIBS@
    193 GEOSCFLAGS          = @GEOS_CFLAGS@
    194 USE_GEOS            = @USE_GEOS@
    195192
    196193#FreeType:
     
    228225WXWIDGETSLIB        = @WXWIDGETSLIB@
    229226USE_WXWIDGETS       = @USE_WXWIDGETS@
     227# set from configure when 64bit wxWidgets becomes possible on OSX
     228WX_ISOSX64BIT       =
    230229
    231230#regex
  • grass/branches/develbranch_6/lib/form/Makefile

    r25132 r37402  
    2020
    2121include $(MODULE_TOPDIR)/include/Make/Lib.make
     22
     23ifeq ($(OPENGL_AQUA),1)
     24ifneq ($(TCLTKAQUA_IS64BIT),1)
     25CFLAGS := $(subst -arch ppc64,,$(subst -arch x86_64,,$(CFLAGS)))
     26LDFLAGS := $(subst -arch ppc64,,$(subst -arch x86_64,,$(LDFLAGS)))
     27endif
     28endif
    2229
    2330default: lib $(GTCLTKFORM)
  • grass/branches/develbranch_6/vector/v.digit/Makefile

    r33331 r37402  
    1111
    1212include $(MODULE_TOPDIR)/include/Make/Module.make
     13
     14ifeq ($(OPENGL_AQUA),1)
     15ifneq ($(TCLTKAQUA_IS64BIT),1)
     16CFLAGS := $(subst -arch ppc64,,$(subst -arch x86_64,,$(CFLAGS)))
     17LDFLAGS := $(subst -arch ppc64,,$(subst -arch x86_64,,$(LDFLAGS)))
     18endif
     19endif
    1320
    1421AUXDIR := $(GISBASE)/etc/v.digit
  • grass/branches/develbranch_6/vector/v.what/Makefile

    r24652 r37402  
    1313include $(MODULE_TOPDIR)/include/Make/Module.make
    1414
     15ifeq ($(OPENGL_AQUA),1)
     16ifneq ($(TCLTKAQUA_IS64BIT),1)
     17CFLAGS := $(subst -arch ppc64,,$(subst -arch x86_64,,$(CFLAGS)))
     18LDFLAGS := $(subst -arch ppc64,,$(subst -arch x86_64,,$(LDFLAGS)))
     19endif
     20endif
     21
    1522default: cmd
    1623
  • grass/branches/develbranch_6/visualization/nviz/src/Makefile

    r35718 r37402  
    1919ifeq ($(OPENGL_AQUA),1)
    2020OGL_LIBS := $(OPENGLULIB) $(OPENGLLIB) $(MATHLIB)
     21ifneq ($(TCLTKAQUA_IS64BIT),1)
     22CFLAGS := $(subst -arch ppc64,,$(subst -arch x86_64,,$(CFLAGS)))
     23LDFLAGS := $(subst -arch ppc64,,$(subst -arch x86_64,,$(LDFLAGS)))
     24endif
    2125endif
    2226
Note: See TracChangeset for help on using the changeset viewer.