~ubuntu-branches/ubuntu/oneiric/curl/oneiric-updates

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2011-01-26 02:50:18 UTC
  • mfrom: (3.4.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110126025018-dzgm2m2t5d1vc9y4
Tags: 7.21.3-1ubuntu1
* Merge from debian unstable.  Remaining changes: (LP: #707756)
  - debian/control:
    + Build-Depends: Replace libssh2-1-dev with openssh-server.
      Drop stunnel since it's in universe, as well.
    + Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
    Above changes are necessary to be independent from the universe.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18639
18639
 
18640
18640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
18641
18641
$as_echo_n "checking if argv can be written to... " >&6; }
18642
 
if test "${curl_cv_writable_argv+set}" = set; then :
18643
 
  $as_echo_n "(cached) " >&6
18644
 
else
18645
 
 
18646
18642
if test "$cross_compiling" = yes; then :
 
18643
 
18647
18644
  curl_cv_writable_argv=cross
 
18645
 
18648
18646
else
18649
18647
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18650
18648
/* end confdefs.h.  */
18651
18649
 
 
18650
 
18652
18651
int main(int argc, char ** argv) {
18653
 
        argv[0][0] = ' ';
18654
 
        return (argv[0][0] == ' ')?0:1;
 
18652
    argv[0][0] = ' ';
 
18653
    return (argv[0][0] == ' ')?0:1;
18655
18654
}
18656
18655
 
 
18656
 
18657
18657
_ACEOF
18658
18658
if ac_fn_c_try_run "$LINENO"; then :
 
18659
 
18659
18660
  curl_cv_writable_argv=yes
 
18661
 
18660
18662
else
 
18663
 
18661
18664
  curl_cv_writable_argv=no
 
18665
 
18662
18666
fi
18663
18667
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18664
18668
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18665
18669
fi
18666
18670
 
18667
 
 
18668
 
fi
18669
 
 
18670
18671
case $curl_cv_writable_argv in
18671
18672
yes)
18672
18673
 
21093
21094
  if test "$LIBSSH2_ENABLED" = "1"; then
21094
21095
    if test -n "$DIR_SSH2"; then
21095
21096
 
21096
 
                            for ac_func in libssh2_version libssh2_init libssh2_exit \
21097
 
                       libssh2_scp_send64
 
21097
                                   for ac_func in libssh2_version libssh2_init libssh2_exit \
 
21098
                       libssh2_scp_send64 libssh2_session_handshake
21098
21099
do :
21099
21100
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21100
21101
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21256
21257
      CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
21257
21258
      version=`$PKGCONFIG --modversion librtmp`
21258
21259
      DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
 
21260
    else
 
21261
                  as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
21259
21262
    fi
21260
21263
 
21261
21264
    ;;
22468
22471
$as_echo_n "checking if numberLL works... " >&6; }
22469
22472
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22470
22473
/* end confdefs.h.  */
22471
 
long long val = 1000LL;
 
22474
 
 
22475
 
 
22476
 
 
22477
int main (void)
 
22478
{
 
22479
 
 
22480
      long long val = 1000LL;
 
22481
 
 
22482
 ;
 
22483
 return 0;
 
22484
}
 
22485
 
22472
22486
_ACEOF
22473
22487
if ac_fn_c_try_compile "$LINENO"; then :
22474
22488
 
 
22489
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
22490
$as_echo "yes" >&6; }
 
22491
 
22475
22492
$as_echo "#define HAVE_LL 1" >>confdefs.h
22476
22493
 
22477
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22478
 
$as_echo "yes" >&6; }
 
22494
 
22479
22495
else
22480
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
22496
 
 
22497
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22481
22498
$as_echo "no" >&6; }
22482
22499
 
22483
22500
fi
25801
25818
  fi
25802
25819
 
25803
25820
 
 
25821
curl_includes_sys_xattr="\
 
25822
/* includes start */
 
25823
#ifdef HAVE_SYS_TYPES_H
 
25824
#  include <sys/types.h>
 
25825
#endif
 
25826
#ifdef HAVE_SYS_XATTR_H
 
25827
#  include <sys/xattr.h>
 
25828
#endif
 
25829
/* includes end */"
 
25830
  for ac_header in sys/types.h sys/xattr.h
 
25831
do :
 
25832
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
25833
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
 
25834
"
 
25835
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
25836
  cat >>confdefs.h <<_ACEOF
 
25837
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
25838
_ACEOF
 
25839
 
 
25840
fi
 
25841
 
 
25842
done
 
25843
 
 
25844
 
 
25845
 
 
25846
    #
 
25847
  tst_links_fsetxattr="unknown"
 
25848
  tst_proto_fsetxattr="unknown"
 
25849
  tst_compi_fsetxattr="unknown"
 
25850
  tst_allow_fsetxattr="unknown"
 
25851
  tst_nargs_fsetxattr="unknown"
 
25852
  #
 
25853
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
 
25854
$as_echo_n "checking if fsetxattr can be linked... " >&6; }
 
25855
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
25856
/* end confdefs.h.  */
 
25857
 
 
25858
 
 
25859
#define fsetxattr innocuous_fsetxattr
 
25860
#ifdef __STDC__
 
25861
# include <limits.h>
 
25862
#else
 
25863
# include <assert.h>
 
25864
#endif
 
25865
#undef fsetxattr
 
25866
#ifdef __cplusplus
 
25867
extern "C"
 
25868
#endif
 
25869
char fsetxattr ();
 
25870
#if defined __stub_fsetxattr || defined __stub___fsetxattr
 
25871
choke me
 
25872
#endif
 
25873
 
 
25874
int main (void)
 
25875
{
 
25876
return fsetxattr ();
 
25877
 ;
 
25878
 return 0;
 
25879
}
 
25880
 
 
25881
_ACEOF
 
25882
if ac_fn_c_try_link "$LINENO"; then :
 
25883
 
 
25884
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
25885
$as_echo "yes" >&6; }
 
25886
    tst_links_fsetxattr="yes"
 
25887
 
 
25888
else
 
25889
 
 
25890
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
25891
$as_echo "no" >&6; }
 
25892
    tst_links_fsetxattr="no"
 
25893
 
 
25894
fi
 
25895
rm -f core conftest.err conftest.$ac_objext \
 
25896
    conftest$ac_exeext conftest.$ac_ext
 
25897
  #
 
25898
  if test "$tst_links_fsetxattr" = "yes"; then
 
25899
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
 
25900
$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
 
25901
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
25902
/* end confdefs.h.  */
 
25903
 
 
25904
      $curl_includes_sys_xattr
 
25905
 
 
25906
_ACEOF
 
25907
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
25908
  $EGREP "fsetxattr" >/dev/null 2>&1; then :
 
25909
 
 
25910
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
25911
$as_echo "yes" >&6; }
 
25912
      tst_proto_fsetxattr="yes"
 
25913
 
 
25914
else
 
25915
 
 
25916
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
25917
$as_echo "no" >&6; }
 
25918
      tst_proto_fsetxattr="no"
 
25919
 
 
25920
fi
 
25921
rm -f conftest*
 
25922
 
 
25923
  fi
 
25924
  #
 
25925
  if test "$tst_proto_fsetxattr" = "yes"; then
 
25926
    if test "$tst_nargs_fsetxattr" = "unknown"; then
 
25927
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
 
25928
$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
 
25929
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
25930
/* end confdefs.h.  */
 
25931
 
 
25932
 
 
25933
          $curl_includes_sys_xattr
 
25934
 
 
25935
int main (void)
 
25936
{
 
25937
 
 
25938
          if(0 != fsetxattr(0, 0, 0, 0, 0))
 
25939
            return 1;
 
25940
 
 
25941
 ;
 
25942
 return 0;
 
25943
}
 
25944
 
 
25945
_ACEOF
 
25946
if ac_fn_c_try_compile "$LINENO"; then :
 
25947
 
 
25948
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
25949
$as_echo "yes" >&6; }
 
25950
        tst_compi_fsetxattr="yes"
 
25951
        tst_nargs_fsetxattr="5"
 
25952
 
 
25953
else
 
25954
 
 
25955
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
25956
$as_echo "no" >&6; }
 
25957
        tst_compi_fsetxattr="no"
 
25958
 
 
25959
fi
 
25960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25961
    fi
 
25962
    if test "$tst_nargs_fsetxattr" = "unknown"; then
 
25963
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
 
25964
$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
 
25965
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
25966
/* end confdefs.h.  */
 
25967
 
 
25968
 
 
25969
          $curl_includes_sys_xattr
 
25970
 
 
25971
int main (void)
 
25972
{
 
25973
 
 
25974
          if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
 
25975
            return 1;
 
25976
 
 
25977
 ;
 
25978
 return 0;
 
25979
}
 
25980
 
 
25981
_ACEOF
 
25982
if ac_fn_c_try_compile "$LINENO"; then :
 
25983
 
 
25984
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
25985
$as_echo "yes" >&6; }
 
25986
        tst_compi_fsetxattr="yes"
 
25987
        tst_nargs_fsetxattr="6"
 
25988
 
 
25989
else
 
25990
 
 
25991
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
25992
$as_echo "no" >&6; }
 
25993
        tst_compi_fsetxattr="no"
 
25994
 
 
25995
fi
 
25996
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25997
    fi
 
25998
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
 
25999
$as_echo_n "checking if fsetxattr is compilable... " >&6; }
 
26000
    if test "$tst_compi_fsetxattr" = "yes"; then
 
26001
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
26002
$as_echo "yes" >&6; }
 
26003
    else
 
26004
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
26005
$as_echo "no" >&6; }
 
26006
    fi
 
26007
  fi
 
26008
  #
 
26009
  if test "$tst_compi_fsetxattr" = "yes"; then
 
26010
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
 
26011
$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
 
26012
    if test "x$curl_disallow_fsetxattr" != "xyes"; then
 
26013
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
26014
$as_echo "yes" >&6; }
 
26015
      tst_allow_fsetxattr="yes"
 
26016
    else
 
26017
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
26018
$as_echo "no" >&6; }
 
26019
      tst_allow_fsetxattr="no"
 
26020
    fi
 
26021
  fi
 
26022
  #
 
26023
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
 
26024
$as_echo_n "checking if fsetxattr might be used... " >&6; }
 
26025
  if test "$tst_links_fsetxattr" = "yes" &&
 
26026
     test "$tst_proto_fsetxattr" = "yes" &&
 
26027
     test "$tst_compi_fsetxattr" = "yes" &&
 
26028
     test "$tst_allow_fsetxattr" = "yes"; then
 
26029
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
26030
$as_echo "yes" >&6; }
 
26031
 
 
26032
cat >>confdefs.h <<_ACEOF
 
26033
#define HAVE_FSETXATTR 1
 
26034
_ACEOF
 
26035
 
 
26036
            #
 
26037
    if test "$tst_nargs_fsetxattr" -eq "5"; then
 
26038
 
 
26039
$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
 
26040
 
 
26041
    elif test "$tst_nargs_fsetxattr" -eq "6"; then
 
26042
 
 
26043
$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
 
26044
 
 
26045
    fi
 
26046
    #
 
26047
    ac_cv_func_fsetxattr="yes"
 
26048
  else
 
26049
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
26050
$as_echo "no" >&6; }
 
26051
    ac_cv_func_fsetxattr="no"
 
26052
  fi
 
26053
 
 
26054
 
25804
26055
    #
25805
26056
  tst_links_ftruncate="unknown"
25806
26057
  tst_proto_ftruncate="unknown"
33444
33695
  fi
33445
33696
 
33446
33697
 
33447
 
 
33448
33698
case $host in
33449
33699
  *msdosdjgpp)
33450
33700
     ac_cv_func_pipe=no
37275
37525
fi
37276
37526
 
37277
37527
 
 
37528
 
 
37529
    tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
 
37530
  if test -z "$tmp_cpp"; then
 
37531
    tmp_cpp='cpp'
 
37532
  fi
 
37533
  cat >./tests/configurehelp.pm <<_EOF
 
37534
# This is a generated file.  Do not edit.
 
37535
 
 
37536
package configurehelp;
 
37537
 
 
37538
use strict;
 
37539
use warnings;
 
37540
use Exporter;
 
37541
 
 
37542
use vars qw(
 
37543
    @ISA
 
37544
    @EXPORT_OK
 
37545
    \$Cpreprocessor
 
37546
    );
 
37547
 
 
37548
@ISA = qw(Exporter);
 
37549
 
 
37550
@EXPORT_OK = qw(
 
37551
    \$Cpreprocessor
 
37552
    );
 
37553
 
 
37554
\$Cpreprocessor = '$tmp_cpp';
 
37555
 
 
37556
1;
 
37557
_EOF
 
37558
 
 
37559
 
37278
37560
{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
37279
37561
 
37280
37562
  curl version:    ${VERSION}