1564 | 1564 |
|
1565 | 1565 |
# Define the identity of the package.
|
1566 | 1566 |
PACKAGE=esniper
|
1567 | |
VERSION=2.18.0
|
|
1567 |
VERSION=2.18.1
|
1568 | 1568 |
|
1569 | 1569 |
|
1570 | 1570 |
cat >>confdefs.h <<_ACEOF
|
|
2891 | 2891 |
{ (exit 1); exit 1; }; }
|
2892 | 2892 |
fi
|
2893 | 2893 |
|
|
2894 |
CURLCFLAGS="`$CURL_CONFIG --cflags`"
|
|
2895 |
CURLLDFLAGS=`$CURL_CONFIG --libs`
|
|
2896 |
|
|
2897 |
|
|
2898 |
LDFLAGS="$CURLLDFLAGS $LDFLAGS"
|
|
2899 |
|
2894 | 2900 |
check_min=7.1.1
|
2895 | 2901 |
|
2896 | 2902 |
|
2897 | |
|
2898 | |
echo "$as_me:$LINENO: checking for curl_easy_setopt in -lcurl" >&5
|
2899 | |
echo $ECHO_N "checking for curl_easy_setopt in -lcurl... $ECHO_C" >&6
|
2900 | |
if test "${ac_cv_lib_curl_curl_easy_setopt+set}" = set; then
|
|
2903 |
echo "$as_me:$LINENO: checking for curl_easy_setopt" >&5
|
|
2904 |
echo $ECHO_N "checking for curl_easy_setopt... $ECHO_C" >&6
|
|
2905 |
if test "${ac_cv_func_curl_easy_setopt+set}" = set; then
|
2901 | 2906 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2902 | 2907 |
else
|
2903 | |
ac_check_lib_save_LIBS=$LIBS
|
2904 | |
LIBS="-lcurl $LIBS"
|
2905 | |
cat >conftest.$ac_ext <<_ACEOF
|
|
2908 |
cat >conftest.$ac_ext <<_ACEOF
|
2906 | 2909 |
/* confdefs.h. */
|
2907 | 2910 |
_ACEOF
|
2908 | 2911 |
cat confdefs.h >>conftest.$ac_ext
|
2909 | 2912 |
cat >>conftest.$ac_ext <<_ACEOF
|
2910 | 2913 |
/* end confdefs.h. */
|
|
2914 |
/* Define curl_easy_setopt to an innocuous variant, in case <limits.h> declares curl_easy_setopt.
|
|
2915 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
2916 |
#define curl_easy_setopt innocuous_curl_easy_setopt
|
|
2917 |
|
|
2918 |
/* System header to define __stub macros and hopefully few prototypes,
|
|
2919 |
which can conflict with char curl_easy_setopt (); below.
|
|
2920 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
2921 |
<limits.h> exists even on freestanding compilers. */
|
|
2922 |
|
|
2923 |
#ifdef __STDC__
|
|
2924 |
# include <limits.h>
|
|
2925 |
#else
|
|
2926 |
# include <assert.h>
|
|
2927 |
#endif
|
|
2928 |
|
|
2929 |
#undef curl_easy_setopt
|
2911 | 2930 |
|
2912 | 2931 |
/* Override any gcc2 internal prototype to avoid an error. */
|
2913 | 2932 |
#ifdef __cplusplus
|
2914 | 2933 |
extern "C"
|
|
2934 |
{
|
2915 | 2935 |
#endif
|
2916 | 2936 |
/* We use char because int might match the return type of a gcc2
|
2917 | 2937 |
builtin and then its argument prototype would still apply. */
|
2918 | 2938 |
char curl_easy_setopt ();
|
|
2939 |
/* The GNU C library defines this for functions which it implements
|
|
2940 |
to always fail with ENOSYS. Some functions are actually named
|
|
2941 |
something starting with __ and the normal name is an alias. */
|
|
2942 |
#if defined (__stub_curl_easy_setopt) || defined (__stub___curl_easy_setopt)
|
|
2943 |
choke me
|
|
2944 |
#else
|
|
2945 |
char (*f) () = curl_easy_setopt;
|
|
2946 |
#endif
|
|
2947 |
#ifdef __cplusplus
|
|
2948 |
}
|
|
2949 |
#endif
|
|
2950 |
|
2919 | 2951 |
int
|
2920 | 2952 |
main ()
|
2921 | 2953 |
{
|
2922 | |
curl_easy_setopt ();
|
|
2954 |
return f != curl_easy_setopt;
|
2923 | 2955 |
;
|
2924 | 2956 |
return 0;
|
2925 | 2957 |
}
|
|
2946 | 2978 |
ac_status=$?
|
2947 | 2979 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2948 | 2980 |
(exit $ac_status); }; }; then
|
2949 | |
ac_cv_lib_curl_curl_easy_setopt=yes
|
|
2981 |
ac_cv_func_curl_easy_setopt=yes
|
2950 | 2982 |
else
|
2951 | 2983 |
echo "$as_me: failed program was:" >&5
|
2952 | 2984 |
sed 's/^/| /' conftest.$ac_ext >&5
|
2953 | 2985 |
|
2954 | |
ac_cv_lib_curl_curl_easy_setopt=no
|
|
2986 |
ac_cv_func_curl_easy_setopt=no
|
2955 | 2987 |
fi
|
2956 | 2988 |
rm -f conftest.err conftest.$ac_objext \
|
2957 | 2989 |
conftest$ac_exeext conftest.$ac_ext
|
2958 | |
LIBS=$ac_check_lib_save_LIBS
|
2959 | |
fi
|
2960 | |
echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_easy_setopt" >&5
|
2961 | |
echo "${ECHO_T}$ac_cv_lib_curl_curl_easy_setopt" >&6
|
2962 | |
if test $ac_cv_lib_curl_curl_easy_setopt = yes; then
|
2963 | |
cat >>confdefs.h <<_ACEOF
|
2964 | |
#define HAVE_LIBCURL 1
|
2965 | |
_ACEOF
|
2966 | |
|
2967 | |
LIBS="-lcurl $LIBS"
|
2968 | |
|
|
2990 |
fi
|
|
2991 |
echo "$as_me:$LINENO: result: $ac_cv_func_curl_easy_setopt" >&5
|
|
2992 |
echo "${ECHO_T}$ac_cv_func_curl_easy_setopt" >&6
|
|
2993 |
if test $ac_cv_func_curl_easy_setopt = yes; then
|
|
2994 |
:
|
2969 | 2995 |
else
|
2970 | 2996 |
{ { echo "$as_me:$LINENO: error: cURL $check_min or newer required \
|
2971 | 2997 |
(cURL is available from http://curl.haxx.se/)" >&5
|
|
2975 | 3001 |
fi
|
2976 | 3002 |
|
2977 | 3003 |
|
2978 | |
echo "$as_me:$LINENO: checking for curl_easy_strerror in -lcurl" >&5
|
2979 | |
echo $ECHO_N "checking for curl_easy_strerror in -lcurl... $ECHO_C" >&6
|
2980 | |
if test "${ac_cv_lib_curl_curl_easy_strerror+set}" = set; then
|
|
3004 |
echo "$as_me:$LINENO: checking for curl_easy_strerror" >&5
|
|
3005 |
echo $ECHO_N "checking for curl_easy_strerror... $ECHO_C" >&6
|
|
3006 |
if test "${ac_cv_func_curl_easy_strerror+set}" = set; then
|
2981 | 3007 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2982 | 3008 |
else
|
2983 | |
ac_check_lib_save_LIBS=$LIBS
|
2984 | |
LIBS="-lcurl $LIBS"
|
2985 | |
cat >conftest.$ac_ext <<_ACEOF
|
|
3009 |
cat >conftest.$ac_ext <<_ACEOF
|
2986 | 3010 |
/* confdefs.h. */
|
2987 | 3011 |
_ACEOF
|
2988 | 3012 |
cat confdefs.h >>conftest.$ac_ext
|
2989 | 3013 |
cat >>conftest.$ac_ext <<_ACEOF
|
2990 | 3014 |
/* end confdefs.h. */
|
|
3015 |
/* Define curl_easy_strerror to an innocuous variant, in case <limits.h> declares curl_easy_strerror.
|
|
3016 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
3017 |
#define curl_easy_strerror innocuous_curl_easy_strerror
|
|
3018 |
|
|
3019 |
/* System header to define __stub macros and hopefully few prototypes,
|
|
3020 |
which can conflict with char curl_easy_strerror (); below.
|
|
3021 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
3022 |
<limits.h> exists even on freestanding compilers. */
|
|
3023 |
|
|
3024 |
#ifdef __STDC__
|
|
3025 |
# include <limits.h>
|
|
3026 |
#else
|
|
3027 |
# include <assert.h>
|
|
3028 |
#endif
|
|
3029 |
|
|
3030 |
#undef curl_easy_strerror
|
2991 | 3031 |
|
2992 | 3032 |
/* Override any gcc2 internal prototype to avoid an error. */
|
2993 | 3033 |
#ifdef __cplusplus
|
2994 | 3034 |
extern "C"
|
|
3035 |
{
|
2995 | 3036 |
#endif
|
2996 | 3037 |
/* We use char because int might match the return type of a gcc2
|
2997 | 3038 |
builtin and then its argument prototype would still apply. */
|
2998 | 3039 |
char curl_easy_strerror ();
|
|
3040 |
/* The GNU C library defines this for functions which it implements
|
|
3041 |
to always fail with ENOSYS. Some functions are actually named
|
|
3042 |
something starting with __ and the normal name is an alias. */
|
|
3043 |
#if defined (__stub_curl_easy_strerror) || defined (__stub___curl_easy_strerror)
|
|
3044 |
choke me
|
|
3045 |
#else
|
|
3046 |
char (*f) () = curl_easy_strerror;
|
|
3047 |
#endif
|
|
3048 |
#ifdef __cplusplus
|
|
3049 |
}
|
|
3050 |
#endif
|
|
3051 |
|
2999 | 3052 |
int
|
3000 | 3053 |
main ()
|
3001 | 3054 |
{
|
3002 | |
curl_easy_strerror ();
|
|
3055 |
return f != curl_easy_strerror;
|
3003 | 3056 |
;
|
3004 | 3057 |
return 0;
|
3005 | 3058 |
}
|
|
3026 | 3079 |
ac_status=$?
|
3027 | 3080 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3028 | 3081 |
(exit $ac_status); }; }; then
|
3029 | |
ac_cv_lib_curl_curl_easy_strerror=yes
|
|
3082 |
ac_cv_func_curl_easy_strerror=yes
|
3030 | 3083 |
else
|
3031 | 3084 |
echo "$as_me: failed program was:" >&5
|
3032 | 3085 |
sed 's/^/| /' conftest.$ac_ext >&5
|
3033 | 3086 |
|
3034 | |
ac_cv_lib_curl_curl_easy_strerror=no
|
|
3087 |
ac_cv_func_curl_easy_strerror=no
|
3035 | 3088 |
fi
|
3036 | 3089 |
rm -f conftest.err conftest.$ac_objext \
|
3037 | 3090 |
conftest$ac_exeext conftest.$ac_ext
|
3038 | |
LIBS=$ac_check_lib_save_LIBS
|
3039 | |
fi
|
3040 | |
echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_easy_strerror" >&5
|
3041 | |
echo "${ECHO_T}$ac_cv_lib_curl_curl_easy_strerror" >&6
|
3042 | |
if test $ac_cv_lib_curl_curl_easy_strerror = yes; then
|
3043 | |
CURL_ADDITIONAL=""
|
3044 | |
else
|
3045 | |
CURL_ADDITIONAL="-D NEED_CURL_EASY_STRERROR"
|
|
3091 |
fi
|
|
3092 |
echo "$as_me:$LINENO: result: $ac_cv_func_curl_easy_strerror" >&5
|
|
3093 |
echo "${ECHO_T}$ac_cv_func_curl_easy_strerror" >&6
|
|
3094 |
if test $ac_cv_func_curl_easy_strerror = yes; then
|
|
3095 |
:
|
|
3096 |
else
|
|
3097 |
CURLCFLAGS="$CURLCFLAGS -D NEED_CURL_EASY_STRERROR"
|
3046 | 3098 |
fi
|
3047 | 3099 |
|
3048 | 3100 |
|
|
3058 | 3110 |
echo "$as_me:$LINENO: result: yes" >&5
|
3059 | 3111 |
echo "${ECHO_T}yes" >&6
|
3060 | 3112 |
fi
|
3061 | |
|
3062 | |
CURLCFLAGS="`$CURL_CONFIG --cflags` $CURL_ADDITIONAL"
|
3063 | |
CURLLDFLAGS=`$CURL_CONFIG --libs`
|
3064 | |
|
3065 | |
|
3066 | |
|
3067 | 3113 |
|
3068 | 3114 |
ac_config_files="$ac_config_files Makefile"
|
3069 | 3115 |
cat >confcache <<\_ACEOF
|