~ubuntu-branches/debian/lenny/tclcurl/lenny

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Sven Hoexter
  • Date: 2008-02-13 21:21:39 UTC
  • mfrom: (1.3.1 upstream) (4.1.1 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080213212139-rj3683kvvyovvuon
Tags: 7.17.1-1
* New upstream release to support curl 7.17.1 features.
* Following lintian advice for debian-rules-ignores-make-clean-error.
* Moved the Homepage from the Description into the new Homepage field.
* Removed man-quoting patch; got applied upstream.
* Standards-Version: 3.7.3 - no changes required.
* Build depend on tcl-dev instead of tcl8.4-dev.
* Refreshed man-section and correct-linking patch.
* Added LDFLAGS += -Wl,-z,defs -Wl,--as-needed so that I can shorten
  the correct-linking patch to kerberos related libs.
* Switched to use tcltk-depends to depend on the right Tcl version.
* Added Vcs-Svn field to debian/control.
* Reworked debian/rules to make it a bit clearer what happens.
* Adopt the new Tcl/Tk policy and move the lib into /usr/lib/tcltk.
* Added patch reformat-tclcurl3 to prevent confusion of man.
* Updated the copyright file and formated it to make lintian happy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59 for TclCurl 0.15.3.
 
3
# Generated by GNU Autoconf 2.59 for TclCurl 7.17.1.
4
4
#
5
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
6
# This configure script is free software; the Free Software Foundation
267
267
# Identity of this package.
268
268
PACKAGE_NAME='TclCurl'
269
269
PACKAGE_TARNAME='tclcurl'
270
 
PACKAGE_VERSION='0.15.3'
271
 
PACKAGE_STRING='TclCurl 0.15.3'
 
270
PACKAGE_VERSION='7.17.1'
 
271
PACKAGE_STRING='TclCurl 7.17.1'
272
272
PACKAGE_BUGREPORT=''
273
273
 
274
274
# Factoring default headers for most tests.
308
308
# include <unistd.h>
309
309
#endif"
310
310
 
311
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CYGPATH EXEEXT PKG_LIB_FILE PKG_STUB_LIB_FILE PKG_STUB_SOURCES PKG_STUB_OBJECTS PKG_TCL_SOURCES PKG_HEADERS PKG_INCLUDES PKG_LIBS PKG_CFLAGS TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_LIBS TCL_DEFS TCL_EXTRA_CFLAGS TCL_LD_FLAGS TCL_SHLIB_LD_LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE RANLIB ac_ct_RANLIB EGREP MATH_LIBS PKG_SOURCES PKG_OBJECTS curl CLEANFILES TCL_INCLUDES TCL_THREADS SHARED_BUILD AR CELIB_DIR LIBOBJS DL_LIBS CFLAGS_DEBUG CFLAGS_OPTIMIZE CFLAGS_WARNING STLIB_LD SHLIB_LD SHLIB_LD_LIBS SHLIB_CFLAGS LD_LIBRARY_PATH_VAR TCL_DBGX CFLAGS_DEFAULT LDFLAGS_DEFAULT MAKE_LIB MAKE_SHARED_LIB MAKE_STATIC_LIB MAKE_STUB_LIB RANLIB_STUB TCLSH_PROG TCLCURL_SCRIPTS LTLIBOBJS'
 
311
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CYGPATH EXEEXT PKG_LIB_FILE PKG_STUB_LIB_FILE PKG_STUB_SOURCES PKG_STUB_OBJECTS PKG_TCL_SOURCES PKG_HEADERS PKG_INCLUDES PKG_LIBS PKG_CFLAGS TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_LIBS TCL_DEFS TCL_EXTRA_CFLAGS TCL_LD_FLAGS TCL_SHLIB_LD_LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE RANLIB ac_ct_RANLIB EGREP MATH_LIBS PKG_SOURCES PKG_OBJECTS TCLCURL_SCRIPTS curl CLEANFILES TCL_INCLUDES TCL_THREADS SHARED_BUILD AR CELIB_DIR LIBOBJS DL_LIBS CFLAGS_DEBUG CFLAGS_OPTIMIZE CFLAGS_WARNING STLIB_LD SHLIB_LD SHLIB_LD_LIBS SHLIB_CFLAGS LD_LIBRARY_PATH_VAR TCL_DBGX CFLAGS_DEFAULT LDFLAGS_DEFAULT MAKE_LIB MAKE_SHARED_LIB MAKE_STATIC_LIB MAKE_STUB_LIB RANLIB_STUB TCLSH_PROG LTLIBOBJS'
312
312
ac_subst_files=''
313
313
 
314
314
# Initialize some variables set by options.
777
777
  # Omit some internal or obsolete options to make the list less imposing.
778
778
  # This message is too long to be a string in the A/UX 3.1 sh.
779
779
  cat <<_ACEOF
780
 
\`configure' configures TclCurl 0.15.3 to adapt to many kinds of systems.
 
780
\`configure' configures TclCurl 7.17.1 to adapt to many kinds of systems.
781
781
 
782
782
Usage: $0 [OPTION]... [VAR=VALUE]...
783
783
 
834
834
 
835
835
if test -n "$ac_init_help"; then
836
836
  case $ac_init_help in
837
 
     short | recursive ) echo "Configuration of TclCurl 0.15.3:";;
 
837
     short | recursive ) echo "Configuration of TclCurl 7.17.1:";;
838
838
   esac
839
839
  cat <<\_ACEOF
840
840
 
846
846
  --enable-64bit          enable 64bit support (default: off)
847
847
  --enable-64bit-vis      enable 64bit Sparc VIS support (default: off)
848
848
  --enable-wince          enable Win/CE support (where applicable)
849
 
  --disable-load          disallow dynamic loading and "load" command
850
 
                          (default: enabled)
 
849
  --enable-load           allow dynamic loading and "load" command (default:
 
850
                          on)
851
851
  --enable-symbols        build with debugging symbols (default: off)
852
852
 
853
853
Optional Packages:
961
961
    else
962
962
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963
963
    fi
964
 
    cd "$ac_popdir"
 
964
    cd $ac_popdir
965
965
  done
966
966
fi
967
967
 
968
968
test -n "$ac_init_help" && exit 0
969
969
if $ac_init_version; then
970
970
  cat <<\_ACEOF
971
 
TclCurl configure 0.15.3
 
971
TclCurl configure 7.17.1
972
972
generated by GNU Autoconf 2.59
973
973
 
974
974
Copyright (C) 2003 Free Software Foundation, Inc.
982
982
This file contains any messages produced by compilers while
983
983
running configure, to aid debugging if configure makes a mistake.
984
984
 
985
 
It was created by TclCurl $as_me 0.15.3, which was
 
985
It was created by TclCurl $as_me 7.17.1, which was
986
986
generated by GNU Autoconf 2.59.  Invocation command line was
987
987
 
988
988
  $ $0 $@
1328
1328
 
1329
1329
    # TEA extensions pass this us the version of TEA they think they
1330
1330
    # are compatible with.
1331
 
    TEA_VERSION="3.5"
 
1331
    TEA_VERSION="3.6"
1332
1332
 
1333
1333
    echo "$as_me:$LINENO: checking for correct TEA configuration" >&5
1334
1334
echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6
1339
1339
The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;}
1340
1340
   { (exit 1); exit 1; }; }
1341
1341
    fi
1342
 
    if test x"3.5" = x ; then
 
1342
    if test x"3.6" = x ; then
1343
1343
        { { echo "$as_me:$LINENO: error:
1344
1344
TEA version not specified." >&5
1345
1345
echo "$as_me: error:
1346
1346
TEA version not specified." >&2;}
1347
1347
   { (exit 1); exit 1; }; }
1348
 
    elif test "3.5" != "${TEA_VERSION}" ; then
1349
 
        echo "$as_me:$LINENO: result: warning: requested TEA version \"3.5\", have \"${TEA_VERSION}\"" >&5
1350
 
echo "${ECHO_T}warning: requested TEA version \"3.5\", have \"${TEA_VERSION}\"" >&6
 
1348
    elif test "3.6" != "${TEA_VERSION}" ; then
 
1349
        echo "$as_me:$LINENO: result: warning: requested TEA version \"3.6\", have \"${TEA_VERSION}\"" >&5
 
1350
echo "${ECHO_T}warning: requested TEA version \"3.6\", have \"${TEA_VERSION}\"" >&6
1351
1351
    else
1352
1352
        echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5
1353
1353
echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6
2288
2288
  cat conftest.err >&5
2289
2289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290
2290
  (exit $ac_status); } &&
2291
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2291
         { ac_try='test -z "$ac_c_werror_flag"
 
2292
                         || test ! -s conftest.err'
2292
2293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293
2294
  (eval $ac_try) 2>&5
2294
2295
  ac_status=$?
2346
2347
  cat conftest.err >&5
2347
2348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348
2349
  (exit $ac_status); } &&
2349
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2350
         { ac_try='test -z "$ac_c_werror_flag"
 
2351
                         || test ! -s conftest.err'
2350
2352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351
2353
  (eval $ac_try) 2>&5
2352
2354
  ac_status=$?
2462
2464
  cat conftest.err >&5
2463
2465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464
2466
  (exit $ac_status); } &&
2465
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2467
         { ac_try='test -z "$ac_c_werror_flag"
 
2468
                         || test ! -s conftest.err'
2466
2469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467
2470
  (eval $ac_try) 2>&5
2468
2471
  ac_status=$?
2516
2519
  cat conftest.err >&5
2517
2520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518
2521
  (exit $ac_status); } &&
2519
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2522
         { ac_try='test -z "$ac_c_werror_flag"
 
2523
                         || test ! -s conftest.err'
2520
2524
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521
2525
  (eval $ac_try) 2>&5
2522
2526
  ac_status=$?
2561
2565
  cat conftest.err >&5
2562
2566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563
2567
  (exit $ac_status); } &&
2564
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2568
         { ac_try='test -z "$ac_c_werror_flag"
 
2569
                         || test ! -s conftest.err'
2565
2570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566
2571
  (eval $ac_try) 2>&5
2567
2572
  ac_status=$?
2605
2610
  cat conftest.err >&5
2606
2611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607
2612
  (exit $ac_status); } &&
2608
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2613
         { ac_try='test -z "$ac_c_werror_flag"
 
2614
                         || test ! -s conftest.err'
2609
2615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610
2616
  (eval $ac_try) 2>&5
2611
2617
  ac_status=$?
3135
3141
  cat conftest.err >&5
3136
3142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137
3143
  (exit $ac_status); } &&
3138
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3144
         { ac_try='test -z "$ac_c_werror_flag"
 
3145
                         || test ! -s conftest.err'
3139
3146
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140
3147
  (eval $ac_try) 2>&5
3141
3148
  ac_status=$?
3305
3312
  cat conftest.err >&5
3306
3313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307
3314
  (exit $ac_status); } &&
3308
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3315
         { ac_try='test -z "$ac_c_werror_flag"
 
3316
                         || test ! -s conftest.err'
3309
3317
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310
3318
  (eval $ac_try) 2>&5
3311
3319
  ac_status=$?
3350
3358
    if test -z "$no_pipe" -a -n "$GCC"; then
3351
3359
        echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
3352
3360
echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
3353
 
        OLDCC="$CC"
3354
 
        CC="$CC -pipe"
3355
 
        cat >conftest.$ac_ext <<_ACEOF
 
3361
if test "${tcl_cv_cc_pipe+set}" = set; then
 
3362
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3363
else
 
3364
 
 
3365
            hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
 
3366
            cat >conftest.$ac_ext <<_ACEOF
3356
3367
/* confdefs.h.  */
3357
3368
_ACEOF
3358
3369
cat confdefs.h >>conftest.$ac_ext
3376
3387
  cat conftest.err >&5
3377
3388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378
3389
  (exit $ac_status); } &&
3379
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3390
         { ac_try='test -z "$ac_c_werror_flag"
 
3391
                         || test ! -s conftest.err'
3380
3392
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381
3393
  (eval $ac_try) 2>&5
3382
3394
  ac_status=$?
3388
3400
  ac_status=$?
3389
3401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390
3402
  (exit $ac_status); }; }; then
3391
 
  echo "$as_me:$LINENO: result: yes" >&5
3392
 
echo "${ECHO_T}yes" >&6
 
3403
  tcl_cv_cc_pipe=yes
3393
3404
else
3394
3405
  echo "$as_me: failed program was:" >&5
3395
3406
sed 's/^/| /' conftest.$ac_ext >&5
3396
3407
 
3397
 
CC="$OLDCC"
3398
 
            echo "$as_me:$LINENO: result: no" >&5
3399
 
echo "${ECHO_T}no" >&6
 
3408
tcl_cv_cc_pipe=no
3400
3409
fi
3401
3410
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3411
            CFLAGS=$hold_cflags
 
3412
fi
 
3413
echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5
 
3414
echo "${ECHO_T}$tcl_cv_cc_pipe" >&6
 
3415
        if test $tcl_cv_cc_pipe = yes; then
 
3416
            CFLAGS="$CFLAGS -pipe"
 
3417
        fi
3402
3418
    fi
3403
3419
 
3404
3420
    #--------------------------------------------------------------------
3440
3456
  cat conftest.err >&5
3441
3457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442
3458
  (exit $ac_status); } &&
3443
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3459
         { ac_try='test -z "$ac_c_werror_flag"
 
3460
                         || test ! -s conftest.err'
3444
3461
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445
3462
  (eval $ac_try) 2>&5
3446
3463
  ac_status=$?
3482
3499
  cat conftest.err >&5
3483
3500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484
3501
  (exit $ac_status); } &&
3485
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3502
         { ac_try='test -z "$ac_c_werror_flag"
 
3503
                         || test ! -s conftest.err'
3486
3504
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487
3505
  (eval $ac_try) 2>&5
3488
3506
  ac_status=$?
3539
3557
  cat conftest.err >&5
3540
3558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541
3559
  (exit $ac_status); } &&
3542
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3560
         { ac_try='test -z "$ac_c_werror_flag"
 
3561
                         || test ! -s conftest.err'
3543
3562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544
3563
  (eval $ac_try) 2>&5
3545
3564
  ac_status=$?
3706
3725
  cat conftest.err >&5
3707
3726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708
3727
  (exit $ac_status); } &&
3709
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3728
         { ac_try='test -z "$ac_c_werror_flag"
 
3729
                         || test ! -s conftest.err'
3710
3730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711
3731
  (eval $ac_try) 2>&5
3712
3732
  ac_status=$?
3768
3788
  cat conftest.err >&5
3769
3789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770
3790
  (exit $ac_status); } &&
3771
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3791
         { ac_try='test -z "$ac_c_werror_flag"
 
3792
                         || test ! -s conftest.err'
3772
3793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773
3794
  (eval $ac_try) 2>&5
3774
3795
  ac_status=$?
3835
3856
  cat conftest.err >&5
3836
3857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837
3858
  (exit $ac_status); } &&
3838
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3859
         { ac_try='test -z "$ac_c_werror_flag"
 
3860
                         || test ! -s conftest.err'
3839
3861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840
3862
  (eval $ac_try) 2>&5
3841
3863
  ac_status=$?
3894
3916
  cat conftest.err >&5
3895
3917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896
3918
  (exit $ac_status); } &&
3897
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3919
         { ac_try='test -z "$ac_c_werror_flag"
 
3920
                         || test ! -s conftest.err'
3898
3921
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899
3922
  (eval $ac_try) 2>&5
3900
3923
  ac_status=$?
4095
4118
  cat conftest.err >&5
4096
4119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097
4120
  (exit $ac_status); } &&
4098
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4121
         { ac_try='test -z "$ac_c_werror_flag"
 
4122
                         || test ! -s conftest.err'
4099
4123
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100
4124
  (eval $ac_try) 2>&5
4101
4125
  ac_status=$?
4191
4215
  cat conftest.err >&5
4192
4216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193
4217
  (exit $ac_status); } &&
4194
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4218
         { ac_try='test -z "$ac_c_werror_flag"
 
4219
                         || test ! -s conftest.err'
4195
4220
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196
4221
  (eval $ac_try) 2>&5
4197
4222
  ac_status=$?
4256
4281
  cat conftest.err >&5
4257
4282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258
4283
  (exit $ac_status); } &&
4259
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4284
         { ac_try='test -z "$ac_c_werror_flag"
 
4285
                         || test ! -s conftest.err'
4260
4286
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261
4287
  (eval $ac_try) 2>&5
4262
4288
  ac_status=$?
4358
4384
  cat conftest.err >&5
4359
4385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360
4386
  (exit $ac_status); } &&
4361
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4387
         { ac_try='test -z "$ac_c_werror_flag"
 
4388
                         || test ! -s conftest.err'
4362
4389
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363
4390
  (eval $ac_try) 2>&5
4364
4391
  ac_status=$?
4454
4481
  cat conftest.err >&5
4455
4482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456
4483
  (exit $ac_status); } &&
4457
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4484
         { ac_try='test -z "$ac_c_werror_flag"
 
4485
                         || test ! -s conftest.err'
4458
4486
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459
4487
  (eval $ac_try) 2>&5
4460
4488
  ac_status=$?
4519
4547
  cat conftest.err >&5
4520
4548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521
4549
  (exit $ac_status); } &&
4522
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4550
         { ac_try='test -z "$ac_c_werror_flag"
 
4551
                         || test ! -s conftest.err'
4523
4552
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524
4553
  (eval $ac_try) 2>&5
4525
4554
  ac_status=$?
4564
4593
if test "${tcl_cv_dirent_h+set}" = set; then
4565
4594
  echo $ECHO_N "(cached) $ECHO_C" >&6
4566
4595
else
4567
 
  cat >conftest.$ac_ext <<_ACEOF
 
4596
 
 
4597
    cat >conftest.$ac_ext <<_ACEOF
4568
4598
/* confdefs.h.  */
4569
4599
_ACEOF
4570
4600
cat confdefs.h >>conftest.$ac_ext
4607
4637
  cat conftest.err >&5
4608
4638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609
4639
  (exit $ac_status); } &&
4610
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4640
         { ac_try='test -z "$ac_c_werror_flag"
 
4641
                         || test ! -s conftest.err'
4611
4642
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612
4643
  (eval $ac_try) 2>&5
4613
4644
  ac_status=$?
4670
4701
  cat conftest.err >&5
4671
4702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672
4703
  (exit $ac_status); } &&
4673
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4704
         { ac_try='test -z "$ac_c_werror_flag"
 
4705
                         || test ! -s conftest.err'
4674
4706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675
4707
  (eval $ac_try) 2>&5
4676
4708
  ac_status=$?
4817
4849
  cat conftest.err >&5
4818
4850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819
4851
  (exit $ac_status); } &&
4820
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4852
         { ac_try='test -z "$ac_c_werror_flag"
 
4853
                         || test ! -s conftest.err'
4821
4854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822
4855
  (eval $ac_try) 2>&5
4823
4856
  ac_status=$?
4964
4997
  cat conftest.err >&5
4965
4998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966
4999
  (exit $ac_status); } &&
4967
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5000
         { ac_try='test -z "$ac_c_werror_flag"
 
5001
                         || test ! -s conftest.err'
4968
5002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969
5003
  (eval $ac_try) 2>&5
4970
5004
  ac_status=$?
5111
5145
  cat conftest.err >&5
5112
5146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113
5147
  (exit $ac_status); } &&
5114
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5148
         { ac_try='test -z "$ac_c_werror_flag"
 
5149
                         || test ! -s conftest.err'
5115
5150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116
5151
  (eval $ac_try) 2>&5
5117
5152
  ac_status=$?
5262
5297
  cat conftest.err >&5
5263
5298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264
5299
  (exit $ac_status); } &&
5265
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5300
         { ac_try='test -z "$ac_c_werror_flag"
 
5301
                         || test ! -s conftest.err'
5266
5302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267
5303
  (eval $ac_try) 2>&5
5268
5304
  ac_status=$?
5463
5499
  cat conftest.err >&5
5464
5500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465
5501
  (exit $ac_status); } &&
5466
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5502
         { ac_try='test -z "$ac_c_werror_flag"
 
5503
                         || test ! -s conftest.err'
5467
5504
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468
5505
  (eval $ac_try) 2>&5
5469
5506
  ac_status=$?
5652
5689
  cat conftest.err >&5
5653
5690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654
5691
  (exit $ac_status); } &&
5655
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5692
         { ac_try='test -z "$ac_c_werror_flag"
 
5693
                         || test ! -s conftest.err'
5656
5694
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657
5695
  (eval $ac_try) 2>&5
5658
5696
  ac_status=$?
5799
5837
  cat conftest.err >&5
5800
5838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801
5839
  (exit $ac_status); } &&
5802
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5840
         { ac_try='test -z "$ac_c_werror_flag"
 
5841
                         || test ! -s conftest.err'
5803
5842
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804
5843
  (eval $ac_try) 2>&5
5805
5844
  ac_status=$?
5952
5991
  cat conftest.err >&5
5953
5992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954
5993
  (exit $ac_status); } &&
5955
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5994
         { ac_try='test -z "$ac_c_werror_flag"
 
5995
                         || test ! -s conftest.err'
5956
5996
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957
5997
  (eval $ac_try) 2>&5
5958
5998
  ac_status=$?
6076
6116
 
6077
6117
 
6078
6118
#-----------------------------------------------------------------------
 
6119
# __CHANGE__
6079
6120
# Specify the C source files to compile in TEA_ADD_SOURCES,
6080
6121
# public headers that need to be installed in TEA_ADD_HEADERS,
6081
6122
# stub library C source files to compile in TEA_ADD_STUB_SOURCES,
6120
6161
 
6121
6162
TCLCURL_SCRIPTS=tclcurl.tcl
6122
6163
 
 
6164
 
6123
6165
#--------------------------------------------------------------------
6124
6166
# Find libcurl, if it's not present, it makes no sense to compile
6125
6167
# this.
6280
6322
  cat conftest.err >&5
6281
6323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282
6324
  (exit $ac_status); } &&
6283
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6325
         { ac_try='test -z "$ac_c_werror_flag"
 
6326
                         || test ! -s conftest.err'
6284
6327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285
6328
  (eval $ac_try) 2>&5
6286
6329
  ac_status=$?
6440
6483
 
6441
6484
echo "$as_me:$LINENO: checking if libcurl version is recent enough" >&5
6442
6485
echo $ECHO_N "checking if libcurl version is recent enough... $ECHO_C" >&6
6443
 
CURL_VERSION=`$curlpath/curl -V | tr -d \\\n | cut -f 2 -d " " | sed "s/\\.//g"`
6444
 
CURL_VERSION=`echo $CURL_VERSION | sed "s/-.*//g"`
6445
 
if test ${CURL_VERSION} -lt 7153 ; then
 
6486
CURL_VERSION=`$curlpath/curl-config --checkfor 7.17.1`
 
6487
if test "${CURL_VERSION}" != "" ; then
 
6488
    echo ${CURL_VERSION}
6446
6489
    { { echo "$as_me:$LINENO: error: libcurl version too old, please upgrade" >&5
6447
6490
echo "$as_me: error: libcurl version too old, please upgrade" >&2;}
6448
6491
   { (exit 1); exit 1; }; }
6449
6492
fi
6450
 
echo "$as_me:$LINENO: result: $CURL_VERSION" >&5
6451
 
echo "${ECHO_T}$CURL_VERSION" >&6
6452
 
 
6453
 
# We need to modify this original line to strip a few things
6454
 
# See: http://lists.debian.org/debian-devel-announce/2006/09/msg00018.html
6455
 
#TEA_ADD_LIBS([`$curlpath/curl-config --libs`])
6456
 
 
6457
 
    vars="`$curlpath/curl-config --libs|sed \
6458
 
    -e 's/\-lgnutls//g' \
6459
 
    -e 's/\-lkrb5\>//g' \
6460
 
    -e 's/\-lcom_err//g' \
6461
 
    -e 's/\-lidn//g' \
6462
 
    -e 's/\-lz//g' \
6463
 
    -e 's/\-lresolv//g' \
6464
 
    -e 's/\-ldl//g' \
6465
 
    -e 's/\-lgssapi_krb5//g' \
6466
 
    -e 's/\-lk5crypto//g' \
6467
 
    -e 's/\-lkrb5support//g' \
6468
 
 `"
 
6493
echo "$as_me:$LINENO: result: yes" >&5
 
6494
echo "${ECHO_T}yes" >&6
 
6495
 
 
6496
 
 
6497
    vars="`$curlpath/curl-config --libs`"
6469
6498
    for i in $vars; do
6470
6499
        if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6471
6500
            # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
6489
6518
# TEA_ADD_* any platform specific compiler/build info here.
6490
6519
#--------------------------------------------------------------------
6491
6520
 
 
6521
# Add pkgIndex.tcl if it is generated in the Makefile instead of ./configure
 
6522
# and change Makefile.in to move it from CONFIG_CLEAN_FILES to BINARIES var.
 
6523
#CLEANFILES="pkgIndex.tcl"
6492
6524
if test "${TEA_PLATFORM}" = "windows" ; then
6493
6525
 
6494
6526
cat >>confdefs.h <<\_ACEOF
6495
 
#define BUILD_TclCurl 1
 
6527
#define BUILD_sample 1
6496
6528
_ACEOF
6497
6529
 
6498
 
    CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch"
6499
 
    #TEA_ADD_SOURCES([win/winFile.c])
6500
 
    #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"])
 
6530
    CLEANFILES="$CLEANFILES *.lib *.dll *.exp *.ilk *.pdb vc*.pch"
6501
6531
else
6502
 
    CLEANFILES="pkgIndex.tcl"
6503
 
    #TEA_ADD_SOURCES([unix/unixFile.c])
6504
 
    #TEA_ADD_LIBS([-lsuperfly])
 
6532
    # Ensure no empty else clauses
 
6533
    :
6505
6534
fi
6506
6535
 
6507
6536
 
6508
6537
#--------------------------------------------------------------------
 
6538
# __CHANGE__
6509
6539
# Choose which headers you need.  Extension authors should try very
6510
6540
# hard to only rely on the Tcl public header files.  Internal headers
6511
6541
# contain private data structures and are subject to change without
6690
6720
  cat conftest.err >&5
6691
6721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692
6722
  (exit $ac_status); } &&
6693
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6723
         { ac_try='test -z "$ac_c_werror_flag"
 
6724
                         || test ! -s conftest.err'
6694
6725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695
6726
  (eval $ac_try) 2>&5
6696
6727
  ac_status=$?
6765
6796
  cat conftest.err >&5
6766
6797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767
6798
  (exit $ac_status); } &&
6768
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6799
         { ac_try='test -z "$ac_c_werror_flag"
 
6800
                         || test ! -s conftest.err'
6769
6801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770
6802
  (eval $ac_try) 2>&5
6771
6803
  ac_status=$?
6840
6872
  cat conftest.err >&5
6841
6873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842
6874
  (exit $ac_status); } &&
6843
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6875
         { ac_try='test -z "$ac_c_werror_flag"
 
6876
                         || test ! -s conftest.err'
6844
6877
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845
6878
  (eval $ac_try) 2>&5
6846
6879
  ac_status=$?
6913
6946
  cat conftest.err >&5
6914
6947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915
6948
  (exit $ac_status); } &&
6916
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6949
         { ac_try='test -z "$ac_c_werror_flag"
 
6950
                         || test ! -s conftest.err'
6917
6951
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918
6952
  (eval $ac_try) 2>&5
6919
6953
  ac_status=$?
6983
7017
  cat conftest.err >&5
6984
7018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985
7019
  (exit $ac_status); } &&
6986
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7020
         { ac_try='test -z "$ac_c_werror_flag"
 
7021
                         || test ! -s conftest.err'
6987
7022
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988
7023
  (eval $ac_try) 2>&5
6989
7024
  ac_status=$?
7196
7231
                # results, and the version is kept in special file).
7197
7232
 
7198
7233
                if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
7199
 
                    tcl_cv_sys_version=MP-RAS-`awk '{print }' /etc/.relid`
 
7234
                    tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
7200
7235
                fi
7201
7236
                if test "`uname -s`" = "AIX" ; then
7202
7237
                    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
7251
7286
  cat conftest.err >&5
7252
7287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253
7288
  (exit $ac_status); } &&
7254
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7289
         { ac_try='test -z "$ac_c_werror_flag"
 
7290
                         || test ! -s conftest.err'
7255
7291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256
7292
  (eval $ac_try) 2>&5
7257
7293
  ac_status=$?
7753
7789
  cat conftest.err >&5
7754
7790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755
7791
  (exit $ac_status); } &&
7756
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7792
         { ac_try='test -z "$ac_c_werror_flag"
 
7793
                         || test ! -s conftest.err'
7757
7794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758
7795
  (eval $ac_try) 2>&5
7759
7796
  ac_status=$?
7917
7954
            #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
7918
7955
            #LIBS="$LIBS -lxnet"               # Use the XOPEN network library
7919
7956
 
7920
 
            SHLIB_SUFFIX=".sl"
 
7957
            if test "`uname -m`" = "ia64" ; then
 
7958
                SHLIB_SUFFIX=".so"
 
7959
            else
 
7960
                SHLIB_SUFFIX=".sl"
 
7961
            fi
7921
7962
            echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7922
7963
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7923
7964
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8187
8228
            # get rid of the warnings.
8188
8229
            #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
8189
8230
 
8190
 
            SHLIB_LD="${CC} -shared"
 
8231
            # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS here:
 
8232
            SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}'
8191
8233
            DL_OBJS="tclLoadDl.o"
8192
8234
            DL_LIBS="-ldl"
8193
8235
            LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
8196
8238
            if test "`uname -m`" = "alpha" ; then
8197
8239
                CFLAGS="$CFLAGS -mieee"
8198
8240
            fi
 
8241
            if test $do64bit = yes; then
 
8242
                echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5
 
8243
echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6
 
8244
if test "${tcl_cv_cc_m64+set}" = set; then
 
8245
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8246
else
 
8247
 
 
8248
                    hold_cflags=$CFLAGS
 
8249
                    CFLAGS="$CFLAGS -m64"
 
8250
                    cat >conftest.$ac_ext <<_ACEOF
 
8251
/* confdefs.h.  */
 
8252
_ACEOF
 
8253
cat confdefs.h >>conftest.$ac_ext
 
8254
cat >>conftest.$ac_ext <<_ACEOF
 
8255
/* end confdefs.h.  */
 
8256
 
 
8257
int
 
8258
main ()
 
8259
{
 
8260
 
 
8261
  ;
 
8262
  return 0;
 
8263
}
 
8264
_ACEOF
 
8265
rm -f conftest.$ac_objext conftest$ac_exeext
 
8266
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8267
  (eval $ac_link) 2>conftest.er1
 
8268
  ac_status=$?
 
8269
  grep -v '^ *+' conftest.er1 >conftest.err
 
8270
  rm -f conftest.er1
 
8271
  cat conftest.err >&5
 
8272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8273
  (exit $ac_status); } &&
 
8274
         { ac_try='test -z "$ac_c_werror_flag"
 
8275
                         || test ! -s conftest.err'
 
8276
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8277
  (eval $ac_try) 2>&5
 
8278
  ac_status=$?
 
8279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8280
  (exit $ac_status); }; } &&
 
8281
         { ac_try='test -s conftest$ac_exeext'
 
8282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8283
  (eval $ac_try) 2>&5
 
8284
  ac_status=$?
 
8285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8286
  (exit $ac_status); }; }; then
 
8287
  tcl_cv_cc_m64=yes
 
8288
else
 
8289
  echo "$as_me: failed program was:" >&5
 
8290
sed 's/^/| /' conftest.$ac_ext >&5
 
8291
 
 
8292
tcl_cv_cc_m64=no
 
8293
fi
 
8294
rm -f conftest.err conftest.$ac_objext \
 
8295
      conftest$ac_exeext conftest.$ac_ext
 
8296
                    CFLAGS=$hold_cflags
 
8297
fi
 
8298
echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5
 
8299
echo "${ECHO_T}$tcl_cv_cc_m64" >&6
 
8300
                if test $tcl_cv_cc_m64 = yes; then
 
8301
                    CFLAGS="$CFLAGS -m64"
 
8302
                    do64bit_ok=yes
 
8303
                fi
 
8304
            fi
8199
8305
 
8200
8306
            # The combo of gcc + glibc has a bug related
8201
8307
            # to inlining of functions like strtod(). The
8391
8497
        Darwin-*)
8392
8498
            CFLAGS_OPTIMIZE="-Os"
8393
8499
            SHLIB_CFLAGS="-fno-common"
 
8500
            # To avoid discrepancies between what headers configure sees during
 
8501
            # preprocessing tests and compiling tests, move any -isysroot and
 
8502
            # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
 
8503
            CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
 
8504
                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
 
8505
                if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
 
8506
            CFLAGS="`echo " ${CFLAGS}" | \
 
8507
                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
 
8508
                if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
8394
8509
            if test $do64bit = yes; then
8395
 
                do64bit_ok=yes
8396
 
                CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
 
8510
                case `arch` in
 
8511
                    ppc)
 
8512
                        echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5
 
8513
echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6
 
8514
if test "${tcl_cv_cc_arch_ppc64+set}" = set; then
 
8515
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8516
else
 
8517
 
 
8518
                            hold_cflags=$CFLAGS
 
8519
                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
 
8520
                            cat >conftest.$ac_ext <<_ACEOF
 
8521
/* confdefs.h.  */
 
8522
_ACEOF
 
8523
cat confdefs.h >>conftest.$ac_ext
 
8524
cat >>conftest.$ac_ext <<_ACEOF
 
8525
/* end confdefs.h.  */
 
8526
 
 
8527
int
 
8528
main ()
 
8529
{
 
8530
 
 
8531
  ;
 
8532
  return 0;
 
8533
}
 
8534
_ACEOF
 
8535
rm -f conftest.$ac_objext conftest$ac_exeext
 
8536
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8537
  (eval $ac_link) 2>conftest.er1
 
8538
  ac_status=$?
 
8539
  grep -v '^ *+' conftest.er1 >conftest.err
 
8540
  rm -f conftest.er1
 
8541
  cat conftest.err >&5
 
8542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8543
  (exit $ac_status); } &&
 
8544
         { ac_try='test -z "$ac_c_werror_flag"
 
8545
                         || test ! -s conftest.err'
 
8546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8547
  (eval $ac_try) 2>&5
 
8548
  ac_status=$?
 
8549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8550
  (exit $ac_status); }; } &&
 
8551
         { ac_try='test -s conftest$ac_exeext'
 
8552
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8553
  (eval $ac_try) 2>&5
 
8554
  ac_status=$?
 
8555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8556
  (exit $ac_status); }; }; then
 
8557
  tcl_cv_cc_arch_ppc64=yes
 
8558
else
 
8559
  echo "$as_me: failed program was:" >&5
 
8560
sed 's/^/| /' conftest.$ac_ext >&5
 
8561
 
 
8562
tcl_cv_cc_arch_ppc64=no
 
8563
fi
 
8564
rm -f conftest.err conftest.$ac_objext \
 
8565
      conftest$ac_exeext conftest.$ac_ext
 
8566
                            CFLAGS=$hold_cflags
 
8567
fi
 
8568
echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5
 
8569
echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6
 
8570
                        if test $tcl_cv_cc_arch_ppc64 = yes; then
 
8571
                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
 
8572
                            do64bit_ok=yes
 
8573
                        fi;;
 
8574
                    i386)
 
8575
                        echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5
 
8576
echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6
 
8577
if test "${tcl_cv_cc_arch_x86_64+set}" = set; then
 
8578
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8579
else
 
8580
 
 
8581
                            hold_cflags=$CFLAGS
 
8582
                            CFLAGS="$CFLAGS -arch x86_64"
 
8583
                            cat >conftest.$ac_ext <<_ACEOF
 
8584
/* confdefs.h.  */
 
8585
_ACEOF
 
8586
cat confdefs.h >>conftest.$ac_ext
 
8587
cat >>conftest.$ac_ext <<_ACEOF
 
8588
/* end confdefs.h.  */
 
8589
 
 
8590
int
 
8591
main ()
 
8592
{
 
8593
 
 
8594
  ;
 
8595
  return 0;
 
8596
}
 
8597
_ACEOF
 
8598
rm -f conftest.$ac_objext conftest$ac_exeext
 
8599
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8600
  (eval $ac_link) 2>conftest.er1
 
8601
  ac_status=$?
 
8602
  grep -v '^ *+' conftest.er1 >conftest.err
 
8603
  rm -f conftest.er1
 
8604
  cat conftest.err >&5
 
8605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8606
  (exit $ac_status); } &&
 
8607
         { ac_try='test -z "$ac_c_werror_flag"
 
8608
                         || test ! -s conftest.err'
 
8609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8610
  (eval $ac_try) 2>&5
 
8611
  ac_status=$?
 
8612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8613
  (exit $ac_status); }; } &&
 
8614
         { ac_try='test -s conftest$ac_exeext'
 
8615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8616
  (eval $ac_try) 2>&5
 
8617
  ac_status=$?
 
8618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8619
  (exit $ac_status); }; }; then
 
8620
  tcl_cv_cc_arch_x86_64=yes
 
8621
else
 
8622
  echo "$as_me: failed program was:" >&5
 
8623
sed 's/^/| /' conftest.$ac_ext >&5
 
8624
 
 
8625
tcl_cv_cc_arch_x86_64=no
 
8626
fi
 
8627
rm -f conftest.err conftest.$ac_objext \
 
8628
      conftest$ac_exeext conftest.$ac_ext
 
8629
                            CFLAGS=$hold_cflags
 
8630
fi
 
8631
echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5
 
8632
echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6
 
8633
                        if test $tcl_cv_cc_arch_x86_64 = yes; then
 
8634
                            CFLAGS="$CFLAGS -arch x86_64"
 
8635
                            do64bit_ok=yes
 
8636
                        fi;;
 
8637
                    *)
 
8638
                        { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
 
8639
echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
 
8640
                esac
 
8641
            else
 
8642
                # Check for combined 32-bit and 64-bit fat build
 
8643
                echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \
 
8644
                    echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \
 
8645
                    fat_32_64=yes
8397
8646
            fi
8398
8647
            # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS here:
8399
8648
            SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
8403
8652
  echo $ECHO_N "(cached) $ECHO_C" >&6
8404
8653
else
8405
8654
 
8406
 
                hold_ldflags=$LDFLAGS
8407
 
                LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
8408
 
                cat >conftest.$ac_ext <<_ACEOF
 
8655
                hold_ldflags=$LDFLAGS
 
8656
                LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
 
8657
                cat >conftest.$ac_ext <<_ACEOF
8409
8658
/* confdefs.h.  */
8410
8659
_ACEOF
8411
8660
cat confdefs.h >>conftest.$ac_ext
8429
8678
  cat conftest.err >&5
8430
8679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431
8680
  (exit $ac_status); } &&
8432
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8681
         { ac_try='test -z "$ac_c_werror_flag"
 
8682
                         || test ! -s conftest.err'
8433
8683
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434
8684
  (eval $ac_try) 2>&5
8435
8685
  ac_status=$?
8450
8700
fi
8451
8701
rm -f conftest.err conftest.$ac_objext \
8452
8702
      conftest$ac_exeext conftest.$ac_ext
8453
 
                LDFLAGS=$hold_ldflags
 
8703
                LDFLAGS=$hold_ldflags
8454
8704
fi
8455
8705
echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5
8456
8706
echo "${ECHO_T}$tcl_cv_ld_single_module" >&6
8457
8707
            if test $tcl_cv_ld_single_module = yes; then
8458
 
                SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
 
8708
                SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
8459
8709
            fi
8460
8710
            SHLIB_LD_LIBS='${LIBS}'
8461
8711
            SHLIB_SUFFIX=".dylib"
8462
8712
            DL_OBJS="tclLoadDyld.o"
8463
8713
            DL_LIBS=""
8464
8714
            # Don't use -prebind when building for Mac OS X 10.4 or later only:
8465
 
            test -z "${MACOSX_DEPLOYMENT_TARGET}" || \
8466
 
                test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F. '{print $2}'`" -lt 4 && \
 
8715
            test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
 
8716
                "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \
8467
8717
                LDFLAGS="$LDFLAGS -prebind"
8468
8718
            LDFLAGS="$LDFLAGS -headerpad_max_install_names"
8469
8719
            echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5
8472
8722
  echo $ECHO_N "(cached) $ECHO_C" >&6
8473
8723
else
8474
8724
 
8475
 
                hold_ldflags=$LDFLAGS
8476
 
                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8477
 
                cat >conftest.$ac_ext <<_ACEOF
 
8725
                hold_ldflags=$LDFLAGS
 
8726
                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
 
8727
                cat >conftest.$ac_ext <<_ACEOF
8478
8728
/* confdefs.h.  */
8479
8729
_ACEOF
8480
8730
cat confdefs.h >>conftest.$ac_ext
8498
8748
  cat conftest.err >&5
8499
8749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500
8750
  (exit $ac_status); } &&
8501
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8751
         { ac_try='test -z "$ac_c_werror_flag"
 
8752
                         || test ! -s conftest.err'
8502
8753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503
8754
  (eval $ac_try) 2>&5
8504
8755
  ac_status=$?
8519
8770
fi
8520
8771
rm -f conftest.err conftest.$ac_objext \
8521
8772
      conftest$ac_exeext conftest.$ac_ext
8522
 
                LDFLAGS=$hold_ldflags
 
8773
                LDFLAGS=$hold_ldflags
8523
8774
fi
8524
8775
echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5
8525
8776
echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6
8526
8777
            if test $tcl_cv_ld_search_paths_first = yes; then
8527
 
                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
 
8778
                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8528
8779
            fi
8529
8780
            CC_SEARCH_FLAGS=""
8530
8781
            LD_SEARCH_FLAGS=""
8531
8782
            LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
8532
8783
 
8533
 
            # TEA specific: for Tk extensions, remove -arch ppc64 from CFLAGS
8534
 
            # for fat builds, as neither TkAqua nor TkX11 can be built for 64bit
8535
 
            # at present (no 64bit GUI libraries).
8536
 
            test $do64bit_ok = no && test -n "${TK_BIN_DIR}" && \
8537
 
                CFLAGS="`echo "$CFLAGS" | sed -e 's/-arch ppc64/-arch ppc/g'`"
 
8784
            # TEA specific: for Tk extensions, remove 64-bit arch flags from
 
8785
            # CFLAGS for combined 32-bit and 64-bit fat builds as neither TkAqua
 
8786
            # nor TkX11 can be built for 64-bit at present.
 
8787
            test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}" && \
 
8788
                CFLAGS="`echo "$CFLAGS " | sed -e 's/-arch ppc64 / /g' -e 's/-arch x86_64 / /g'`"
8538
8789
            ;;
8539
8790
        NEXTSTEP-*)
8540
8791
            SHLIB_CFLAGS=""
8838
9089
  cat conftest.err >&5
8839
9090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840
9091
  (exit $ac_status); } &&
8841
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9092
         { ac_try='test -z "$ac_c_werror_flag"
 
9093
                         || test ! -s conftest.err'
8842
9094
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843
9095
  (eval $ac_try) 2>&5
8844
9096
  ac_status=$?
8876
9128
echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
8877
9129
    fi
8878
9130
 
 
9131
 
 
9132
 
8879
9133
    # Step 4: disable dynamic loading if requested via a command-line switch.
8880
9134
 
8881
9135
    # Check whether --enable-load or --disable-load was given.
8989
9243
  cat conftest.err >&5
8990
9244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991
9245
  (exit $ac_status); } &&
8992
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9246
         { ac_try='test -z "$ac_c_werror_flag"
 
9247
                         || test ! -s conftest.err'
8993
9248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994
9249
  (eval $ac_try) 2>&5
8995
9250
  ac_status=$?
9136
9391
  cat conftest.err >&5
9137
9392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138
9393
  (exit $ac_status); } &&
9139
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9394
         { ac_try='test -z "$ac_c_werror_flag"
 
9395
                         || test ! -s conftest.err'
9140
9396
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141
9397
  (eval $ac_try) 2>&5
9142
9398
  ac_status=$?
9315
9571
  cat conftest.err >&5
9316
9572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317
9573
  (exit $ac_status); } &&
9318
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9574
         { ac_try='test -z "$ac_c_werror_flag"
 
9575
                         || test ! -s conftest.err'
9319
9576
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320
9577
  (eval $ac_try) 2>&5
9321
9578
  ac_status=$?
9606
9863
  cat conftest.err >&5
9607
9864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608
9865
  (exit $ac_status); } &&
9609
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9866
         { ac_try='test -z "$ac_c_werror_flag"
 
9867
                         || test ! -s conftest.err'
9610
9868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611
9869
  (eval $ac_try) 2>&5
9612
9870
  ac_status=$?
9669
9927
  cat conftest.err >&5
9670
9928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671
9929
  (exit $ac_status); } &&
9672
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9930
         { ac_try='test -z "$ac_c_werror_flag"
 
9931
                         || test ! -s conftest.err'
9673
9932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674
9933
  (eval $ac_try) 2>&5
9675
9934
  ac_status=$?
9904
10163
# which require substituting th AC variables in.  Include these here.
9905
10164
#--------------------------------------------------------------------
9906
10165
 
9907
 
 
9908
 
 
9909
10166
                    ac_config_files="$ac_config_files Makefile pkgIndex.tcl"
9910
 
 
9911
 
 
9912
10167
cat >confcache <<\_ACEOF
9913
10168
# This file is a shell script that caches the results of configure
9914
10169
# tests run on this system so they can be shared between configure
10031
10286
LTLIBOBJS=$ac_ltlibobjs
10032
10287
 
10033
10288
 
 
10289
CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
10034
10290
 
10035
10291
: ${CONFIG_STATUS=./config.status}
10036
10292
ac_clean_files_save=$ac_clean_files
10302
10558
} >&5
10303
10559
cat >&5 <<_CSEOF
10304
10560
 
10305
 
This file was extended by TclCurl $as_me 0.15.3, which was
 
10561
This file was extended by TclCurl $as_me 7.17.1, which was
10306
10562
generated by GNU Autoconf 2.59.  Invocation command line was
10307
10563
 
10308
10564
  CONFIG_FILES    = $CONFIG_FILES
10357
10613
 
10358
10614
cat >>$CONFIG_STATUS <<_ACEOF
10359
10615
ac_cs_version="\\
10360
 
TclCurl config.status 0.15.3
 
10616
TclCurl config.status 7.17.1
10361
10617
configured by $0, generated by GNU Autoconf 2.59,
10362
10618
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10363
10619
 
10587
10843
s,@MATH_LIBS@,$MATH_LIBS,;t t
10588
10844
s,@PKG_SOURCES@,$PKG_SOURCES,;t t
10589
10845
s,@PKG_OBJECTS@,$PKG_OBJECTS,;t t
 
10846
s,@TCLCURL_SCRIPTS@,$TCLCURL_SCRIPTS,;t t
10590
10847
s,@curl@,$curl,;t t
10591
10848
s,@CLEANFILES@,$CLEANFILES,;t t
10592
10849
s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t
10613
10870
s,@MAKE_STUB_LIB@,$MAKE_STUB_LIB,;t t
10614
10871
s,@RANLIB_STUB@,$RANLIB_STUB,;t t
10615
10872
s,@TCLSH_PROG@,$TCLSH_PROG,;t t
10616
 
s,@TCLCURL_SCRIPTS@,$TCLCURL_SCRIPTS,;t t
10617
10873
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10618
10874
CEOF
10619
10875
 
10781
11037
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10782
11038
  esac
10783
11039
 
 
11040
  if test x"$ac_file" != x-; then
 
11041
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
11042
echo "$as_me: creating $ac_file" >&6;}
 
11043
    rm -f "$ac_file"
 
11044
  fi
10784
11045
  # Let's still pretend it is `configure' which instantiates (i.e., don't
10785
11046
  # use $as_me), people would be surprised to read:
10786
11047
  #    /* config.h.  Generated by config.status.  */
10819
11080
         fi;;
10820
11081
      esac
10821
11082
    done` || { (exit 1); exit 1; }
10822
 
 
10823
 
  if test x"$ac_file" != x-; then
10824
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
10825
 
echo "$as_me: creating $ac_file" >&6;}
10826
 
    rm -f "$ac_file"
10827
 
  fi
10828
11083
_ACEOF
10829
11084
cat >>$CONFIG_STATUS <<_ACEOF
10830
11085
  sed "$ac_vpsub