configure
上传用户:blenddy
上传日期:2007-01-07
资源大小:6495k
文件大小:219k
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in unistd.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:4089: checking for $ac_hdr" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4094 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:4099: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in values.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:4129: checking for $ac_hdr" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4134 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:4139: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in sys/param.h pwd.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:4169: checking for $ac_hdr" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4174 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:4179: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- echo $ac_n "checking for working const""... $ac_c" 1>&6
- echo "configure:4207: checking for working const" >&5
- if eval "test "`echo '$''{'ac_cv_c_const'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4212 "configure"
- #include "confdefs.h"
- int main() {
- /* Ultrix mips cc rejects this. */
- typedef int charset[2]; const charset x;
- /* SunOS 4.1.1 cc rejects this. */
- char const *const *ccp;
- char **p;
- /* NEC SVR4.0.2 mips cc rejects this. */
- struct point {int x, y;};
- static struct point const zero = {0,0};
- /* AIX XL C 1.02.0.0 rejects this.
- It does not let you subtract one const X* pointer from another in an arm
- of an if-expression whose if-part is not a constant expression */
- const char *g = "string";
- ccp = &g + (g ? g-g : 0);
- /* HPUX 7.0 cc rejects these. */
- ++ccp;
- p = (char**) ccp;
- ccp = (char const *const *) p;
- { /* SCO 3.2v4 cc rejects this. */
- char *t;
- char const *s = 0 ? (char *) 0 : (char const *) 0;
- *t++ = 0;
- }
- { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
- int x[] = {25, 17};
- const int *foo = &x[0];
- ++foo;
- }
- { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
- typedef const int *iptr;
- iptr p = 0;
- ++p;
- }
- { /* AIX XL C 1.02.0.0 rejects this saying
- "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
- struct s { int j; const int *ap[3]; };
- struct s *b; b->j = 5;
- }
- { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
- const int foo = 10;
- }
- ; return 0; }
- EOF
- if { (eval echo configure:4261: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_c_const=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_c_const=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_c_const" 1>&6
- if test $ac_cv_c_const = no; then
- cat >> confdefs.h <<EOF
- #define const
- EOF
- fi
- echo $ac_n "checking for inline""... $ac_c" 1>&6
- echo "configure:4282: checking for inline" >&5
- if eval "test "`echo '$''{'ac_cv_c_inline'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_cv_c_inline=no
- for ac_kw in inline __inline__ __inline; do
- cat > conftest.$ac_ext <<EOF
- #line 4289 "configure"
- #include "confdefs.h"
- int main() {
- } $ac_kw foo() {
- ; return 0; }
- EOF
- if { (eval echo configure:4296: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_c_inline=$ac_kw; break
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- done
- fi
- echo "$ac_t""$ac_cv_c_inline" 1>&6
- case "$ac_cv_c_inline" in
- inline | yes) ;;
- no) cat >> confdefs.h <<EOF
- #define inline
- EOF
- ;;
- *) cat >> confdefs.h <<EOF
- #define inline $ac_cv_c_inline
- EOF
- ;;
- esac
- echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
- echo "configure:4324: checking for preprocessor stringizing operator" >&5
- if eval "test "`echo '$''{'ac_cv_c_stringize'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4329 "configure"
- #include "confdefs.h"
- #define x(y) #y
- char *s = x(teststring);
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "#teststring" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_c_stringize=no
- else
- rm -rf conftest*
- ac_cv_c_stringize=yes
- fi
- rm -f conftest*
- fi
- if test "${ac_cv_c_stringize}" = yes
- then
- cat >> confdefs.h <<EOF
- #define HAVE_STRINGIZE 1
- EOF
- fi
- echo "$ac_t""${ac_cv_c_stringize}" 1>&6
- echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
- echo "configure:4359: checking for uid_t in sys/types.h" >&5
- if eval "test "`echo '$''{'ac_cv_type_uid_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4364 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "uid_t" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_uid_t=yes
- else
- rm -rf conftest*
- ac_cv_type_uid_t=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_uid_t" 1>&6
- if test $ac_cv_type_uid_t = no; then
- cat >> confdefs.h <<EOF
- #define uid_t int
- EOF
- cat >> confdefs.h <<EOF
- #define gid_t int
- EOF
- fi
- echo $ac_n "checking for mode_t""... $ac_c" 1>&6
- echo "configure:4393: checking for mode_t" >&5
- if eval "test "`echo '$''{'ac_cv_type_mode_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4398 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_mode_t=yes
- else
- rm -rf conftest*
- ac_cv_type_mode_t=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_mode_t" 1>&6
- if test $ac_cv_type_mode_t = no; then
- cat >> confdefs.h <<EOF
- #define mode_t int
- EOF
- fi
- echo $ac_n "checking for off_t""... $ac_c" 1>&6
- echo "configure:4426: checking for off_t" >&5
- if eval "test "`echo '$''{'ac_cv_type_off_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4431 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_off_t=yes
- else
- rm -rf conftest*
- ac_cv_type_off_t=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_off_t" 1>&6
- if test $ac_cv_type_off_t = no; then
- cat >> confdefs.h <<EOF
- #define off_t long
- EOF
- fi
- echo $ac_n "checking for size_t""... $ac_c" 1>&6
- echo "configure:4459: checking for size_t" >&5
- if eval "test "`echo '$''{'ac_cv_type_size_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4464 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_size_t=yes
- else
- rm -rf conftest*
- ac_cv_type_size_t=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_size_t" 1>&6
- if test $ac_cv_type_size_t = no; then
- cat >> confdefs.h <<EOF
- #define size_t unsigned
- EOF
- fi
- echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
- echo "configure:4492: checking whether time.h and sys/time.h may both be included" >&5
- if eval "test "`echo '$''{'ac_cv_header_time'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4497 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/time.h>
- #include <time.h>
- int main() {
- struct tm *tp;
- ; return 0; }
- EOF
- if { (eval echo configure:4506: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_header_time=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_time=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_header_time" 1>&6
- if test $ac_cv_header_time = yes; then
- cat >> confdefs.h <<EOF
- #define TIME_WITH_SYS_TIME 1
- EOF
- fi
- echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
- echo "configure:4527: checking whether struct tm is in sys/time.h or time.h" >&5
- if eval "test "`echo '$''{'ac_cv_struct_tm'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4532 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <time.h>
- int main() {
- struct tm *tp; tp->tm_sec;
- ; return 0; }
- EOF
- if { (eval echo configure:4540: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_struct_tm=time.h
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_struct_tm=sys/time.h
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_struct_tm" 1>&6
- if test $ac_cv_struct_tm = sys/time.h; then
- cat >> confdefs.h <<EOF
- #define TM_IN_SYS_TIME 1
- EOF
- fi
- echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
- echo "configure:4561: checking for tm_zone in struct tm" >&5
- if eval "test "`echo '$''{'ac_cv_struct_tm_zone'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4566 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <$ac_cv_struct_tm>
- int main() {
- struct tm tm; tm.tm_zone;
- ; return 0; }
- EOF
- if { (eval echo configure:4574: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_struct_tm_zone=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_struct_tm_zone=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
- if test "$ac_cv_struct_tm_zone" = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_TM_ZONE 1
- EOF
- else
- echo $ac_n "checking for tzname""... $ac_c" 1>&6
- echo "configure:4594: checking for tzname" >&5
- if eval "test "`echo '$''{'ac_cv_var_tzname'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4599 "configure"
- #include "confdefs.h"
- #include <time.h>
- #ifndef tzname /* For SGI. */
- extern char *tzname[]; /* RS6000 and others reject char **tzname. */
- #endif
- int main() {
- atoi(*tzname);
- ; return 0; }
- EOF
- if { (eval echo configure:4609: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_var_tzname=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_var_tzname=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_var_tzname" 1>&6
- if test $ac_cv_var_tzname = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_TZNAME 1
- EOF
- fi
- fi
- echo $ac_n "checking for signed types""... $ac_c" 1>&6
- echo "configure:4632: checking for signed types" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4634 "configure"
- #include "confdefs.h"
- int main() {
- signed char c; signed short s; signed int i;
- ; return 0; }
- EOF
- if { (eval echo configure:4641: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define signed
- EOF
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking for volatile""... $ac_c" 1>&6
- echo "configure:4656: checking for volatile" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4658 "configure"
- #include "confdefs.h"
- int main() {
- extern volatile int i;
- ; return 0; }
- EOF
- if { (eval echo configure:4665: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define volatile
- EOF
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking for type of last arg to accept""... $ac_c" 1>&6
- echo "configure:4680: checking for type of last arg to accept" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4682 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <sys/types.h>
- #include <sys/socket.h>
- int main() {
- int a = accept(1, (struct sockaddr *) 0, (size_t *) 0);
- ; return 0; }
- EOF
- if { (eval echo configure:4692: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define SOCKET_SIZE_TYPE size_t
- EOF
- echo "$ac_t""size_t" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define SOCKET_SIZE_TYPE int
- EOF
- echo "$ac_t""int" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking for int timezone""... $ac_c" 1>&6
- echo "configure:4710: checking for int timezone" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4712 "configure"
- #include "confdefs.h"
- #include <time.h>
- int main() {
- int res = timezone / 60;
- ; return 0; }
- EOF
- if { (eval echo configure:4719: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_INT_TIMEZONE 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking for gettimeofday args""... $ac_c" 1>&6
- echo "configure:4734: checking for gettimeofday args" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4736 "configure"
- #include "confdefs.h"
- #include <sys/time.h>
- int main() {
- struct timeval *tp; struct timezone *tzp; gettimeofday(tp,tzp);
- ; return 0; }
- EOF
- if { (eval echo configure:4743: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_GETTIMEOFDAY_2_ARGS 1
- EOF
- echo "$ac_t""2 args" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking for union semun""... $ac_c" 1>&6
- echo "configure:4758: checking for union semun" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4760 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/ipc.h>
- #include <sys/sem.h>
- int main() {
- union semun semun;
- ; return 0; }
- EOF
- if { (eval echo configure:4769: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_UNION_SEMUN 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking for fcntl(F_SETLK)""... $ac_c" 1>&6
- echo "configure:4784: checking for fcntl(F_SETLK)" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4786 "configure"
- #include "confdefs.h"
- #include <fcntl.h>
- int main() {
- struct flock lck;
- lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0;
- lck.l_type = F_WRLCK;
- fcntl(0, F_SETLK, &lck);
- ; return 0; }
- EOF
- if { (eval echo configure:4796: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_FCNTL_SETLK 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
- echo "configure:4811: checking for 8-bit clean memcmp" >&5
- if eval "test "`echo '$''{'ac_cv_func_memcmp_clean'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_func_memcmp_clean=no
- else
- cat > conftest.$ac_ext <<EOF
- #line 4819 "configure"
- #include "confdefs.h"
- main()
- {
- char c0 = 0x40, c1 = 0x80, c2 = 0x81;
- exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
- }
- EOF
- if { (eval echo configure:4829: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_func_memcmp_clean=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_func_memcmp_clean=no
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
- test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
- echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
- echo "configure:4847: checking return type of signal handlers" >&5
- if eval "test "`echo '$''{'ac_cv_type_signal'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4852 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <signal.h>
- #ifdef signal
- #undef signal
- #endif
- #ifdef __cplusplus
- extern "C" void (*signal (int, void (*)(int)))(int);
- #else
- void (*signal ()) ();
- #endif
- int main() {
- int i;
- ; return 0; }
- EOF
- if { (eval echo configure:4869: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_type_signal=void
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_type_signal=int
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_signal" 1>&6
- cat >> confdefs.h <<EOF
- #define RETSIGTYPE $ac_cv_type_signal
- EOF
- echo $ac_n "checking for vprintf""... $ac_c" 1>&6
- echo "configure:4888: checking for vprintf" >&5
- if eval "test "`echo '$''{'ac_cv_func_vprintf'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4893 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char vprintf(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char vprintf();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_vprintf) || defined (__stub___vprintf)
- choke me
- #else
- vprintf();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4916: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_vprintf=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_vprintf=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'vprintf`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_VPRINTF 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$ac_cv_func_vprintf" != yes; then
- echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
- echo "configure:4940: checking for _doprnt" >&5
- if eval "test "`echo '$''{'ac_cv_func__doprnt'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4945 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char _doprnt(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char _doprnt();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub__doprnt) || defined (__stub____doprnt)
- choke me
- #else
- _doprnt();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4968: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func__doprnt=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func__doprnt=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'_doprnt`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_DOPRNT 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- for ac_func in memmove sigsetjmp sysconf
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4995: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5000 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5023: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in sigprocmask waitpid setsid fcvt
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:5050: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5055 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5078: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in fpclass fp_class fp_class_d class
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:5105: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5110 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5133: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- SNPRINTF=''
- echo $ac_n "checking for snprintf""... $ac_c" 1>&6
- echo "configure:5159: checking for snprintf" >&5
- if eval "test "`echo '$''{'ac_cv_func_snprintf'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5164 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char snprintf(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char snprintf();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_snprintf) || defined (__stub___snprintf)
- choke me
- #else
- snprintf();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5187: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_snprintf=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_snprintf=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'snprintf`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_SNPRINTF 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- SNPRINTF='snprintf.o'
- fi
- echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
- echo "configure:5211: checking for vsnprintf" >&5
- if eval "test "`echo '$''{'ac_cv_func_vsnprintf'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5216 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char vsnprintf(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char vsnprintf();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
- choke me
- #else
- vsnprintf();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5239: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_vsnprintf=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_vsnprintf=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'vsnprintf`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_VSNPRINTF 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- SNPRINTF='snprintf.o'
- fi
- echo $ac_n "checking for isinf""... $ac_c" 1>&6
- echo "configure:5264: checking for isinf" >&5
- if eval "test "`echo '$''{'ac_cv_func_or_macro_isinf'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5269 "configure"
- #include "confdefs.h"
- #include <math.h>
- int main() {
- double x = 0.0; int res = isinf(x);
- ; return 0; }
- EOF
- if { (eval echo configure:5276: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_func_or_macro_isinf=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_func_or_macro_isinf=no
- fi
- rm -f conftest*
- fi
- if [ $ac_cv_func_or_macro_isinf = yes ]; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_ISINF 1
- EOF
- ISINF=''
- else
- echo "$ac_t""no" 1>&6
- ISINF='isinf.o'
- fi
- echo $ac_n "checking for getrusage""... $ac_c" 1>&6
- echo "configure:5301: checking for getrusage" >&5
- if eval "test "`echo '$''{'ac_cv_func_getrusage'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5306 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char getrusage(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char getrusage();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_getrusage) || defined (__stub___getrusage)
- choke me
- #else
- getrusage();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5329: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_getrusage=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_getrusage=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'getrusage`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_GETRUSAGE 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- GETRUSAGE='getrusage.o'
- fi
- echo $ac_n "checking for srandom""... $ac_c" 1>&6
- echo "configure:5354: checking for srandom" >&5
- if eval "test "`echo '$''{'ac_cv_func_srandom'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5359 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char srandom(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char srandom();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_srandom) || defined (__stub___srandom)
- choke me
- #else
- srandom();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5382: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_srandom=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_srandom=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'srandom`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_SRANDOM 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- SRANDOM='srandom.o'
- fi
- echo $ac_n "checking for gethostname""... $ac_c" 1>&6
- echo "configure:5407: checking for gethostname" >&5
- if eval "test "`echo '$''{'ac_cv_func_gethostname'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5412 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gethostname(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostname();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gethostname) || defined (__stub___gethostname)
- choke me
- #else
- gethostname();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5435: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gethostname=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gethostname=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'gethostname`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_GETHOSTNAME 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- GETHOSTNAME='gethostname.o'
- fi
- echo $ac_n "checking for random""... $ac_c" 1>&6
- echo "configure:5460: checking for random" >&5
- if eval "test "`echo '$''{'ac_cv_func_random'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5465 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char random(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char random();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_random) || defined (__stub___random)
- choke me
- #else
- random();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5488: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_random=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_random=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'random`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_RANDOM 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- MISSING_RANDOM='random.o'
- fi
- echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
- echo "configure:5513: checking for inet_aton" >&5
- if eval "test "`echo '$''{'ac_cv_func_inet_aton'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5518 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char inet_aton(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char inet_aton();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
- choke me
- #else
- inet_aton();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5541: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_inet_aton=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_inet_aton=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'inet_aton`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_INET_ATON 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- INET_ATON='inet_aton.o'
- fi
- echo $ac_n "checking for strerror""... $ac_c" 1>&6
- echo "configure:5566: checking for strerror" >&5
- if eval "test "`echo '$''{'ac_cv_func_strerror'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5571 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char strerror(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char strerror();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_strerror) || defined (__stub___strerror)
- choke me
- #else
- strerror();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5594: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_strerror=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_strerror=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'strerror`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_STRERROR 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
- fi
- echo $ac_n "checking for strdup""... $ac_c" 1>&6
- echo "configure:5620: checking for strdup" >&5
- if eval "test "`echo '$''{'ac_cv_func_strdup'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5625 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char strdup(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char strdup();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_strdup) || defined (__stub___strdup)
- choke me
- #else
- strdup();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5648: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_strdup=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_strdup=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'strdup`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_STRDUP 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- STRDUP='../../utils/strdup.o'
- fi
- echo $ac_n "checking for strtol""... $ac_c" 1>&6
- echo "configure:5673: checking for strtol" >&5
- if eval "test "`echo '$''{'ac_cv_func_strtol'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5678 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char strtol(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char strtol();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_strtol) || defined (__stub___strtol)
- choke me
- #else
- strtol();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5701: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_strtol=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_strtol=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'strtol`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_STRTOL 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- STRTOL='strtol.o'
- fi
- echo $ac_n "checking for strtoul""... $ac_c" 1>&6
- echo "configure:5726: checking for strtoul" >&5
- if eval "test "`echo '$''{'ac_cv_func_strtoul'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5731 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char strtoul(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char strtoul();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_strtoul) || defined (__stub___strtoul)
- choke me
- #else
- strtoul();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5754: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_strtoul=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_strtoul=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'strtoul`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_STRTOUL 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- STRTOL='strtoul.o'
- fi
- echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
- echo "configure:5779: checking for strcasecmp" >&5
- if eval "test "`echo '$''{'ac_cv_func_strcasecmp'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5784 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char strcasecmp(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char strcasecmp();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
- choke me
- #else
- strcasecmp();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5807: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_strcasecmp=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_strcasecmp=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'strcasecmp`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_STRCASECMP 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- STRCASECMP='strcasecmp.o'
- fi
- echo $ac_n "checking for cbrt""... $ac_c" 1>&6
- echo "configure:5832: checking for cbrt" >&5
- if eval "test "`echo '$''{'ac_cv_func_cbrt'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5837 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char cbrt(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cbrt();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_cbrt) || defined (__stub___cbrt)
- choke me
- #else
- cbrt();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5860: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_cbrt=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_cbrt=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'cbrt`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_CBRT 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
- echo "configure:5881: checking for cbrt in -lm" >&5
- ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lm $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5889 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cbrt();
- int main() {
- cbrt()
- ; return 0; }
- EOF
- if { (eval echo configure:5900: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_CBRT 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
- # this hackery with HPUXMATHLIB allows us to cope.
- HPUXMATHLIB=""
- case "$host_cpu" in
- hppa1.1)
- if [ -r /lib/pa1.1/libm.a ] ; then
- HPUXMATHLIB="-L /lib/pa1.1 -lm"
- fi ;;
- esac
- echo $ac_n "checking for rint""... $ac_c" 1>&6
- echo "configure:5938: checking for rint" >&5
- if eval "test "`echo '$''{'ac_cv_func_rint'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5943 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char rint(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char rint();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_rint) || defined (__stub___rint)
- choke me
- #else
- rint();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5966: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_rint=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_rint=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'rint`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_RINT 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
- echo "configure:5987: checking for rint in -lm" >&5
- ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lm $HPUXMATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5995 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char rint();
- int main() {
- rint()
- ; return 0; }
- EOF
- if { (eval echo configure:6006: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_RINT 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- HAVE_LONG_INT_64=0
- echo $ac_n "checking whether 'long int' is 64 bits""... $ac_c" 1>&6
- echo "configure:6035: checking whether 'long int' is 64 bits" >&5
- if test "$cross_compiling" = yes; then
- echo "$ac_t""assuming not on target machine" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6040 "configure"
- #include "confdefs.h"
- typedef long int int64;
- /* These are globals to discourage the compiler from folding all the
- * arithmetic tests down to compile-time constants.
- */
- int64 a = 20000001;
- int64 b = 40000005;
- int does_int64_work()
- {
- int64 c,d;
- if (sizeof(int64) != 8)
- return 0; /* doesn't look like the right size */
- /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
- c = a * b;
- d = (c + b) / b;
- if (d != a+1)
- return 0;
- return 1;
- }
- main() {
- exit(! does_int64_work());
- }
- EOF
- if { (eval echo configure:6068: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- HAVE_LONG_INT_64=1
- cat >> confdefs.h <<EOF
- #define HAVE_LONG_INT_64 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -fr conftest*
- fi
- HAVE_LONG_LONG_INT_64=0
- if [ $HAVE_LONG_INT_64 -eq 0 ] ; then
- echo $ac_n "checking whether 'long long int' is 64 bits""... $ac_c" 1>&6
- echo "configure:6089: checking whether 'long long int' is 64 bits" >&5
- if test "$cross_compiling" = yes; then
- echo "$ac_t""assuming not on target machine" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6094 "configure"
- #include "confdefs.h"
- typedef long long int int64;
- /* These are globals to discourage the compiler from folding all the
- * arithmetic tests down to compile-time constants.
- */
- int64 a = 20000001;
- int64 b = 40000005;
- int does_int64_work()
- {
- int64 c,d;
- if (sizeof(int64) != 8)
- return 0; /* doesn't look like the right size */
- /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
- c = a * b;
- d = (c + b) / b;
- if (d != a+1)
- return 0;
- return 1;
- }
- main() {
- exit(! does_int64_work());
- }
- EOF
- if { (eval echo configure:6122: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- HAVE_LONG_LONG_INT_64=1
- cat >> confdefs.h <<EOF
- #define HAVE_LONG_LONG_INT_64 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -fr conftest*
- fi
- fi
- if [ $HAVE_LONG_LONG_INT_64 -eq 1 ] ; then
- if [ x$SNPRINTF = x ] ; then
- echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
- echo "configure:6145: checking whether snprintf handles 'long long int' as %lld" >&5
- if test "$cross_compiling" = yes; then
- echo "$ac_t""assuming not on target machine" 1>&6
- # Force usage of our own snprintf, since we cannot test foreign snprintf
- SNPRINTF='snprintf.o'
- INT64_FORMAT='"%lld"'
-
- else
- cat > conftest.$ac_ext <<EOF
- #line 6154 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- typedef long long int int64;
- #define INT64_FORMAT "%lld"
- int64 a = 20000001;
- int64 b = 40000005;
- int does_int64_snprintf_work()
- {
- int64 c;
- char buf[100];
- if (sizeof(int64) != 8)
- return 0; /* doesn't look like the right size */
- c = a * b;
- snprintf(buf, 100, INT64_FORMAT, c);
- if (strcmp(buf, "800000140000005") != 0)
- return 0; /* either multiply or snprintf is busted */
- return 1;
- }
- main() {
- exit(! does_int64_snprintf_work());
- }
- EOF
- if { (eval echo configure:6181: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""yes" 1>&6
- INT64_FORMAT='"%lld"'
-
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
- echo "configure:6192: checking whether snprintf handles 'long long int' as %qd" >&5
- if test "$cross_compiling" = yes; then
- echo "$ac_t""assuming not on target machine" 1>&6
- # Force usage of our own snprintf, since we cannot test foreign snprintf
- SNPRINTF='snprintf.o'
- INT64_FORMAT='"%lld"'
-
- else
- cat > conftest.$ac_ext <<EOF
- #line 6201 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- typedef long long int int64;
- #define INT64_FORMAT "%qd"
-
- int64 a = 20000001;
- int64 b = 40000005;
-
- int does_int64_snprintf_work()
- {
- int64 c;
- char buf[100];
- if (sizeof(int64) != 8)
- return 0; /* doesn't look like the right size */
- c = a * b;
- snprintf(buf, 100, INT64_FORMAT, c);
- if (strcmp(buf, "800000140000005") != 0)
- return 0; /* either multiply or snprintf is busted */
- return 1;
- }
- main() {
- exit(! does_int64_snprintf_work());
- }
- EOF
- if { (eval echo configure:6228: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""yes" 1>&6
- INT64_FORMAT='"%qd"'
-
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- echo "$ac_t""no" 1>&6
- # Force usage of our own snprintf, since system snprintf is broken
- SNPRINTF='snprintf.o'
- INT64_FORMAT='"%lld"'
-
- fi
- rm -fr conftest*
- fi
-
- fi
- rm -fr conftest*
- fi
- else
- # here if we previously decided we needed to use our own snprintf
- INT64_FORMAT='"%lld"'
- fi
- else
- # Here if we are not using 'long long int' at all
- INT64_FORMAT='"%ld"'
- fi
- cat >> confdefs.h <<EOF
- #define INT64_FORMAT $INT64_FORMAT
- EOF
- echo $ac_n "checking alignment of short""... $ac_c" 1>&6
- echo "configure:6270: checking alignment of short" >&5
- if eval "test "`echo '$''{'ac_cv_alignof_short'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_alignof_short='sizeof(short)'
- else
- cat > conftest.$ac_ext <<EOF
- #line 6278 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- struct { char filler; short field; } mystruct;
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", ((char*) & mystruct.field) - ((char*) & mystruct));
- exit(0);
- }
- EOF
- if { (eval echo configure:6290: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_alignof_short=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_alignof_short='sizeof(short)'
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_alignof_short" 1>&6
- cat >> confdefs.h <<EOF
- #define ALIGNOF_SHORT $ac_cv_alignof_short
- EOF
- echo $ac_n "checking alignment of int""... $ac_c" 1>&6
- echo "configure:6310: checking alignment of int" >&5
- if eval "test "`echo '$''{'ac_cv_alignof_int'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_alignof_int='sizeof(int)'
- else
- cat > conftest.$ac_ext <<EOF
- #line 6318 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- struct { char filler; int field; } mystruct;
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", ((char*) & mystruct.field) - ((char*) & mystruct));
- exit(0);
- }
- EOF
- if { (eval echo configure:6330: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_alignof_int=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_alignof_int='sizeof(int)'
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_alignof_int" 1>&6
- cat >> confdefs.h <<EOF
- #define ALIGNOF_INT $ac_cv_alignof_int
- EOF
- echo $ac_n "checking alignment of long""... $ac_c" 1>&6
- echo "configure:6350: checking alignment of long" >&5
- if eval "test "`echo '$''{'ac_cv_alignof_long'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_alignof_long='sizeof(long)'
- else
- cat > conftest.$ac_ext <<EOF
- #line 6358 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- struct { char filler; long field; } mystruct;
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", ((char*) & mystruct.field) - ((char*) & mystruct));
- exit(0);
- }
- EOF
- if { (eval echo configure:6370: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_alignof_long=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_alignof_long='sizeof(long)'
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_alignof_long" 1>&6
- cat >> confdefs.h <<EOF
- #define ALIGNOF_LONG $ac_cv_alignof_long
- EOF
- if [ $HAVE_LONG_LONG_INT_64 -eq 1 ] ; then
- echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
- echo "configure:6391: checking alignment of long long int" >&5
- if eval "test "`echo '$''{'ac_cv_alignof_long_long_int'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_alignof_long_long_int='sizeof(long long int)'
- else
- cat > conftest.$ac_ext <<EOF
- #line 6399 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- struct { char filler; long long int field; } mystruct;
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", ((char*) & mystruct.field) - ((char*) & mystruct));
- exit(0);
- }
- EOF
- if { (eval echo configure:6411: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_alignof_long_long_int=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_alignof_long_long_int='sizeof(long long int)'
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_alignof_long_long_int" 1>&6
- cat >> confdefs.h <<EOF
- #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
- EOF
- fi
- echo $ac_n "checking alignment of double""... $ac_c" 1>&6
- echo "configure:6432: checking alignment of double" >&5
- if eval "test "`echo '$''{'ac_cv_alignof_double'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_alignof_double='sizeof(double)'
- else
- cat > conftest.$ac_ext <<EOF
- #line 6440 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- struct { char filler; double field; } mystruct;
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", ((char*) & mystruct.field) - ((char*) & mystruct));
- exit(0);
- }
- EOF
- if { (eval echo configure:6452: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_alignof_double=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_alignof_double='sizeof(double)'
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_alignof_double" 1>&6
- cat >> confdefs.h <<EOF
- #define ALIGNOF_DOUBLE $ac_cv_alignof_double
- EOF
- if [ $ac_cv_alignof_double != 'sizeof(double)' ] ; then
- MAX_ALIGNOF="$ac_cv_alignof_long"
- if [ $MAX_ALIGNOF -lt $ac_cv_alignof_double ] ; then
- MAX_ALIGNOF="$ac_cv_alignof_double"
- fi
- if [ $HAVE_LONG_LONG_INT_64 -eq 1 ] ; then
- if [ $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ] ; then
- MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
- fi
- fi
- else
- MAX_ALIGNOF="$ac_cv_alignof_double"
- fi
- cat >> confdefs.h <<EOF
- #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
- EOF
- echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
- echo "configure:6494: checking for POSIX signal interface" >&5
- cat > conftest.$ac_ext <<EOF
- #line 6496 "configure"
- #include "confdefs.h"
- #include <signal.h>
- int main() {
- struct sigaction act, oact;
- sigemptyset(&act.sa_mask);
- act.sa_flags = SA_RESTART;
- sigaction(0, &act, &oact);
- ; return 0; }
- EOF
- if { (eval echo configure:6506: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define USE_POSIX_SIGNALS 1
- EOF
- HAVE_POSIX_SIGNALS="1"
- echo "$ac_t""yes" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- HAVE_POSIX_SIGNALS=""
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- if test -z "$TCL_DIRS"
- then
- # Extract the first word of "tclsh", so it can be a program name with args.
- set dummy tclsh; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:6530: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_path_TCLSH'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$TCLSH" in
- /*)
- ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_TCLSH="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- ;;
- esac
- fi
- TCLSH="$ac_cv_path_TCLSH"
- if test -n "$TCLSH"; then
- echo "$ac_t""$TCLSH" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test -z "$TCLSH"
- then
- # Extract the first word of "tcl", so it can be a program name with args.
- set dummy tcl; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:6567: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_path_TCLSH'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$TCLSH" in
- /*)
- ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_TCLSH="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- ;;
- esac
- fi
- TCLSH="$ac_cv_path_TCLSH"
- if test -n "$TCLSH"; then
- echo "$ac_t""$TCLSH" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test -z "$TCLSH"
- then
- echo "configure: warning: TCL/TK support disabled; tcl shell is not in your path" 1>&2
- USE_TCL=
- fi
- fi
- fi
-
- if test "$USE_TCL" = true
- then
- echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
- echo "configure:6610: checking for tclConfig.sh" >&5
- TCL_CONFIG_SH=
- library_dirs=
- if test -z "$TCL_DIRS"
- then
- library_dirs=`echo 'puts $auto_path' | $TCLSH`
- fi
- library_dirs="$TCL_DIRS $TK_DIRS $library_dirs"
- for dir in $library_dirs; do
- if test -d "$dir" -a -r "$dir/tclConfig.sh"; then
- TCL_CONFIG_SH=$dir/tclConfig.sh
- break
- fi
- done
- if test -z "$TCL_CONFIG_SH"; then
- echo "$ac_t""no" 1>&6
- echo "configure: warning: TCL/TK support disabled; Tcl configuration script missing" 1>&2
- USE_TCL=
- else
- echo "$ac_t""$TCL_CONFIG_SH" 1>&6
-
- fi
- fi
- USE_TK=$USE_TCL # If TCL is disabled, disable TK
- if test "$USE_TK" = true
- then
- echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
- echo "configure:6639: checking for tkConfig.sh" >&5
- TK_CONFIG_SH=
- # library_dirs are set in the check for TCL
- for dir in $library_dirs
- do
- if test -d "$dir" -a -r "$dir/tkConfig.sh"
- then
- TK_CONFIG_SH=$dir/tkConfig.sh
- break
- fi
- done
- if test -z "$TK_CONFIG_SH"
- then
- echo "$ac_t""no" 1>&6
- echo "configure: warning: TK support disabled; Tk configuration script missing" 1>&2
- USE_TK=
- else
- echo "$ac_t""$TK_CONFIG_SH" 1>&6
-
- fi
- fi
- USE_X=$USE_TK
- if test "$USE_X" = true; then
- ice_save_LIBS="$LIBS"
- ice_save_CFLAGS="$CFLAGS"
- ice_save_CPPFLAGS="$CPPFLAGS"
- ice_save_LDFLAGS="$LDFLAGS"
- # If we find X, set shell vars x_includes and x_libraries to the
- # paths, otherwise set no_x=yes.
- # Uses ac_ vars as temps to allow command line to override cache and checks.
- # --without-x overrides everything else, but does not touch the cache.
- echo $ac_n "checking for X""... $ac_c" 1>&6
- echo "configure:6676: checking for X" >&5
- # Check whether --with-x or --without-x was given.
- if test "${with_x+set}" = set; then
- withval="$with_x"
- :
- fi
- # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
- if test "x$with_x" = xno; then
- # The user explicitly disabled X.
- have_x=disabled
- else
- if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
- # Both variables are already set.
- have_x=yes
- else
- if eval "test "`echo '$''{'ac_cv_have_x'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- # One or both of the vars are not set, and there is no cached value.
- ac_x_includes=NO ac_x_libraries=NO
- rm -fr conftestdir
- if mkdir conftestdir; then
- cd conftestdir
- # Make sure to not put "make" in the Imakefile rules, since we grep it out.
- cat > Imakefile <<'EOF'
- acfindx:
- @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
- EOF
- if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
- # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
- eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
- # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
- for ac_extension in a so sl; do
- if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
- test -f $ac_im_libdir/libX11.$ac_extension; then
- ac_im_usrlibdir=$ac_im_libdir; break
- fi
- done
- # Screen out bogus values from the imake configuration. They are
- # bogus both because they are the default anyway, and because
- # using them would break gcc on systems where it needs fixed includes.
- case "$ac_im_incroot" in
- /usr/include) ;;
- *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
- esac
- case "$ac_im_usrlibdir" in
- /usr/lib | /lib) ;;
- *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
- esac
- fi
- cd ..
- rm -fr conftestdir
- fi
- if test "$ac_x_includes" = NO; then
- # Guess where to find include files, by looking for this one X11 .h file.
- test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
- # First, try using that file with no special directory specified.
- cat > conftest.$ac_ext <<EOF
- #line 6738 "configure"
- #include "confdefs.h"
- #include <$x_direct_test_include>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:6743: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- # We can compile using X headers with no special include directory.
- ac_x_includes=
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- # Look for the header file in a standard set of common directories.
- # Check X11 before X11Rn because it is often a symlink to the current release.
- for ac_dir in
- /usr/X11/include
- /usr/X11R6/include
- /usr/X11R5/include
- /usr/X11R4/include
-
- /usr/include/X11
- /usr/include/X11R6
- /usr/include/X11R5
- /usr/include/X11R4
-
- /usr/local/X11/include
- /usr/local/X11R6/include
- /usr/local/X11R5/include
- /usr/local/X11R4/include
-
- /usr/local/include/X11
- /usr/local/include/X11R6
- /usr/local/include/X11R5
- /usr/local/include/X11R4
-
- /usr/X386/include
- /usr/x386/include
- /usr/XFree86/include/X11
-
- /usr/include
- /usr/local/include
- /usr/unsupported/include
- /usr/athena/include
- /usr/local/x11r5/include
- /usr/lpp/Xamples/include
-
- /usr/openwin/include
- /usr/openwin/share/include
- ;
- do
- if test -r "$ac_dir/$x_direct_test_include"; then
- ac_x_includes=$ac_dir
- break
- fi
- done
- fi
- rm -f conftest*
- fi # $ac_x_includes = NO
- if test "$ac_x_libraries" = NO; then
- # Check for the libraries.
- test -z "$x_direct_test_library" && x_direct_test_library=Xt
- test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
- # See if we find them without any special options.
- # Don't add to $LIBS permanently.
- ac_save_LIBS="$LIBS"
- LIBS="-l$x_direct_test_library $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6812 "configure"
- #include "confdefs.h"
- int main() {
- ${x_direct_test_function}()
- ; return 0; }
- EOF
- if { (eval echo configure:6819: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
- # We can link X programs with no special library path.
- ac_x_libraries=
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
- # First see if replacing the include by lib works.
- # Check X11 before X11Rn because it is often a symlink to the current release.
- for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/`
- /usr/X11/lib
- /usr/X11R6/lib
- /usr/X11R5/lib
- /usr/X11R4/lib
-
- /usr/lib/X11
- /usr/lib/X11R6
- /usr/lib/X11R5
- /usr/lib/X11R4
-
- /usr/local/X11/lib
- /usr/local/X11R6/lib
- /usr/local/X11R5/lib
- /usr/local/X11R4/lib
-
- /usr/local/lib/X11
- /usr/local/lib/X11R6
- /usr/local/lib/X11R5
- /usr/local/lib/X11R4
-
- /usr/X386/lib
- /usr/x386/lib
- /usr/XFree86/lib/X11
-
- /usr/lib
- /usr/local/lib
- /usr/unsupported/lib
- /usr/athena/lib
- /usr/local/x11r5/lib
- /usr/lpp/Xamples/lib
- /lib/usr/lib/X11
-
- /usr/openwin/lib
- /usr/openwin/share/lib
- ;
- do
- for ac_extension in a so sl; do
- if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
- ac_x_libraries=$ac_dir
- break 2
- fi
- done
- done
- fi
- rm -f conftest*
- fi # $ac_x_libraries = NO
- if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
- # Didn't find X anywhere. Cache the known absence of X.
- ac_cv_have_x="have_x=no"
- else
- # Record where we found X for the cache.
- ac_cv_have_x="have_x=yes
- ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
- fi
- fi
- fi
- eval "$ac_cv_have_x"
- fi # $with_x != no
- if test "$have_x" != yes; then
- echo "$ac_t""$have_x" 1>&6
- no_x=yes
- else
- # If each of the values was on the command line, it overrides each guess.
- test "x$x_includes" = xNONE && x_includes=$ac_x_includes
- test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
- # Update the cache value to reflect the command line values.
- ac_cv_have_x="have_x=yes
- ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
- echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
- fi
- if test "$no_x" = yes; then
- # Not all programs may use this symbol, but it does not hurt to define it.
- cat >> confdefs.h <<EOF
- #define X_DISPLAY_MISSING 1
- EOF
- X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
- else
- if test -n "$x_includes"; then
- X_CFLAGS="$X_CFLAGS -I$x_includes"
- fi
- # It would also be nice to do this for all -L options, not just this one.
- if test -n "$x_libraries"; then
- X_LIBS="$X_LIBS -L$x_libraries"
- # For Solaris; some versions of Sun CC require a space after -R and
- # others require no space. Words are not sufficient . . . .
- case "`(uname -sr) 2>/dev/null`" in
- "SunOS 5"*)
- echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
- echo "configure:6925: checking whether -R must be followed by a space" >&5
- ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
- cat > conftest.$ac_ext <<EOF
- #line 6928 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:6935: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_R_nospace=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_nospace=no
- fi
- rm -f conftest*
- if test $ac_R_nospace = yes; then
- echo "$ac_t""no" 1>&6
- X_LIBS="$X_LIBS -R$x_libraries"
- else
- LIBS="$ac_xsave_LIBS -R $x_libraries"
- cat > conftest.$ac_ext <<EOF
- #line 6951 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:6958: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_R_space=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_space=no
- fi
- rm -f conftest*
- if test $ac_R_space = yes; then
- echo "$ac_t""yes" 1>&6
- X_LIBS="$X_LIBS -R $x_libraries"
- else
- echo "$ac_t""neither works" 1>&6
- fi
- fi
- LIBS="$ac_xsave_LIBS"
- esac
- fi
- # Check for system-dependent libraries X programs must link with.
- # Do this before checking for the system-independent R6 libraries
- # (-lICE), since we may need -lsocket or whatever for X linking.
- if test "$ISC" = yes; then
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
- else
- # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
- # libraries were built with DECnet support. And karl@cs.umb.edu says
- # the Alpha needs dnet_stub (dnet does not exist).
- echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
- echo "configure:6990: checking for dnet_ntoa in -ldnet" >&5
- ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-ldnet $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6998 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnet_ntoa();
- int main() {
- dnet_ntoa()
- ; return 0; }
- EOF
- if { (eval echo configure:7009: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_lib_dnet_dnet_ntoa = no; then
- echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
- echo "configure:7031: checking for dnet_ntoa in -ldnet_stub" >&5
- ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-ldnet_stub $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7039 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnet_ntoa();
- int main() {
- dnet_ntoa()
- ; return 0; }
- EOF
- if { (eval echo configure:7050: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
- # to get the SysV transport functions.
- # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
- # needs -lnsl.
- # The nsl library prevents programs from opening the X display
- # on Irix 5.2, according to dickey@clark.net.
- echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
- echo "configure:7079: checking for gethostbyname" >&5
- if eval "test "`echo '$''{'ac_cv_func_gethostbyname'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7084 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gethostbyname(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
- choke me
- #else
- gethostbyname();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:7107: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'gethostbyname`" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_gethostbyname = no; then
- echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
- echo "configure:7128: checking for gethostbyname in -lnsl" >&5
- ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lnsl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7136 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname();
- int main() {
- gethostbyname()
- ; return 0; }
- EOF
- if { (eval echo configure:7147: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # lieder@skyler.mavd.honeywell.com says without -lsocket,
- # socket/setsockopt and other routines are undefined under SCO ODT
- # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
- # on later versions), says simon@lia.di.epfl.ch: it contains
- # gethostby* variants that don't use the nameserver (or something).
- # -lsocket must be given before -lnsl if both are needed.
- # We assume that if connect needs -lnsl, so does gethostbyname.
- echo $ac_n "checking for connect""... $ac_c" 1>&6
- echo "configure:7177: checking for connect" >&5
- if eval "test "`echo '$''{'ac_cv_func_connect'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7182 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char connect(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char connect();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_connect) || defined (__stub___connect)
- choke me
- #else
- connect();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:7205: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_connect=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_connect=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'connect`" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_connect = no; then
- echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
- echo "configure:7226: checking for connect in -lsocket" >&5
- ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7234 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char connect();
- int main() {
- connect()
- ; return 0; }
- EOF
- if { (eval echo configure:7245: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
- echo $ac_n "checking for remove""... $ac_c" 1>&6
- echo "configure:7269: checking for remove" >&5
- if eval "test "`echo '$''{'ac_cv_func_remove'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7274 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char remove(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char remove();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_remove) || defined (__stub___remove)
- choke me
- #else
- remove();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:7297: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_remove=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_remove=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'remove`" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_remove = no; then
- echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
- echo "configure:7318: checking for remove in -lposix" >&5
- ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lposix $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7326 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char remove();
- int main() {
- remove()
- ; return 0; }
- EOF
- if { (eval echo configure:7337: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
- echo $ac_n "checking for shmat""... $ac_c" 1>&6
- echo "configure:7361: checking for shmat" >&5
- if eval "test "`echo '$''{'ac_cv_func_shmat'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7366 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char shmat(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char shmat();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_shmat) || defined (__stub___shmat)
- choke me
- #else
- shmat();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:7389: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_shmat=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_shmat=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'shmat`" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_shmat = no; then
- echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
- echo "configure:7410: checking for shmat in -lipc" >&5
- ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lipc $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7418 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char shmat();
- int main() {
- shmat()
- ; return 0; }
- EOF
- if { (eval echo configure:7429: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- fi
- # Check for libraries that X11R6 Xt/Xaw programs need.
- ac_save_LDFLAGS="$LDFLAGS"
- test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
- # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
- # check for ICE first), but we must link in the order -lSM -lICE or
- # we get undefined symbols. So assume we have SM if we have ICE.
- # These have to be linked with before -lX11, unlike the other
- # libraries we check for below, so use a different variable.
- # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
- echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
- echo "configure:7462: checking for IceConnectionNumber in -lICE" >&5
- ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lICE $X_EXTRA_LIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7470 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char IceConnectionNumber();
- int main() {
- IceConnectionNumber()
- ; return 0; }
- EOF
- if { (eval echo configure:7481: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
- else
- echo "$ac_t""no" 1>&6
- fi
- LDFLAGS="$ac_save_LDFLAGS"
- fi
- LIBS="$LIBS $X_EXTRA_LIBS"
- CFLAGS="$CFLAGS $X_CFLAGS"
- CPPFLAGS="$CPPFLAGS $X_CFLAGS"
- LDFLAGS="$LDFLAGS $X_LIBS"
-
- X11_LIBS=""
- echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
- echo "configure:7514: checking for XOpenDisplay in -lX11" >&5
- ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lX11 ${X_PRE_LIBS} $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7522 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char XOpenDisplay();
- int main() {
- XOpenDisplay()
- ; return 0; }
- EOF
- if { (eval echo configure:7533: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- X11_LIBS="-lX11"
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$X11_LIBS" = ""; then
- echo "configure: warning: The X11 library '-lX11' could not be found,
- so TK support will be disabled. To enable TK support,
- please use the configure options '--x-includes=DIR'
- and '--x-libraries=DIR' to specify the X location.
- See the file 'config.log' for further diagnostics." 1>&2
- USE_TK=
- fi
-
-
-
- LIBS="$ice_save_LIBS"
- CFLAGS="$ice_save_CFLAGS"
- CPPFLAGS="$ice_save_CPPFLAGS"
- LDFLAGS="$ice_save_LDFLAGS"
- fi
- #if test "X$USE_ODBC" = "Xtrue"
- #then
- # AC_CONFIG_SUBDIRS(interfaces/odbc)
- #fi
- if test "$USE_ODBC" = "true"
- then
- PWD_INCDIR=no
- ac_safe=`echo "pwd.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for pwd.h""... $ac_c" 1>&6
- echo "configure:7580: checking for pwd.h" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7585 "configure"
- #include "confdefs.h"
- #include <pwd.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7590: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- PWD_INCDIR=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$PWD_INCDIR" = "no"; then
- echo "configure: warning: odbc support disabled; pwd.h missing" 1>&2
- USE_ODBC=
- fi
-
- fi
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- eval expanded_libdir="$libdir"
- eval expanded_libdir="$expanded_libdir"
- trap '' 1 2 15
- cat > confcache <<EOF
- # This file is a shell script that caches the results of configure
- # tests run on this system so they can be shared between configure
- # scripts and configure runs. It is not useful on other systems.
- # If it contains results you don't want to keep, you may remove or edit it.
- #
- # By default, configure uses ./config.cache as the cache file,
- # creating it if it does not exist already. You can give configure
- # the --cache-file=FILE option to use a different cache file; that is
- # what configure does when it calls configure scripts in
- # subdirectories, so they share the cache.
- # Giving --cache-file=/dev/null disables caching, for debugging configure.
- # config.status only pays attention to the cache file if you give it the
- # --recheck option to rerun configure.
- #
- EOF
- # The following way of writing the cache mishandles newlines in values,
- # but we know of no workaround that is simple, portable, and efficient.
- # So, don't put newlines in cache variables' values.
- # Ultrix sh set writes to stderr and can't be redirected directly,
- # and sets the high bit in the cache file unless we assign to the vars.
- (set) 2>&1 |
- case `(ac_space=' '; set | grep ac_space) 2>&1` in
- *ac_space= *)
- # `set' does not quote correctly, so add quotes (double-quote substitution
- # turns \\ into \, and sed turns \ into ).
- sed -n
- -e "s/'/'\\''/g"
- -e "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1='\2'}/p"
- ;;
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n -e 's/^([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*)=(.*)/1=${1=2}/p'
- ;;
- esac >> confcache
- if cmp -s $cache_file confcache; then
- :
- else
- if test -w $cache_file; then
- echo "updating cache $cache_file"
- cat confcache > $cache_file
- else
- echo "not updating unwritable cache $cache_file"
- fi
- fi
- rm -f confcache
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- # Let make expand exec_prefix.
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- # Any assignment to VPATH causes Sun make to only execute
- # the first set of double-colon rules, so remove it if not needed.
- # If there is a colon in the path, we need to keep it.
- if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
- fi
- trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
- DEFS=-DHAVE_CONFIG_H
- # Without the "./", some shells look in PATH for config.status.
- : ${CONFIG_STATUS=./config.status}
- echo creating $CONFIG_STATUS
- rm -f $CONFIG_STATUS
- cat > $CONFIG_STATUS <<EOF
- #! /bin/sh
- # Generated automatically by configure.
- # Run this file to recreate the current configuration.
- # This directory was configured as follows,
- # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- #
- # $0 $ac_configure_args
- #
- # Compiler output produced by configure, useful for debugging
- # configure, is in ./config.log if it exists.
- ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
- for ac_option
- do
- case "$ac_option" in
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- echo "running ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
- exec ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
- -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 2.13"
- exit 0 ;;
- -help | --help | --hel | --he | --h)
- echo "$ac_cs_usage"; exit 0 ;;
- *) echo "$ac_cs_usage"; exit 1 ;;
- esac
- done
- ac_given_srcdir=$srcdir
- ac_given_INSTALL="$INSTALL"
- trap 'rm -fr `echo "GNUmakefile
- Makefile.global
- backend/port/Makefile
- backend/catalog/genbki.sh
- backend/utils/Gen_fmgrtab.sh
- bin/pg_dump/Makefile
- bin/pg_version/Makefile
- bin/psql/Makefile
- bin/pgtclsh/mkMakefile.tcldefs.sh
- bin/pgtclsh/mkMakefile.tkdefs.sh
- include/version.h
- interfaces/libpq/Makefile
- interfaces/ecpg/lib/Makefile
- interfaces/libpq++/Makefile
- interfaces/libpgtcl/Makefile
- interfaces/odbc/GNUmakefile
- interfaces/odbc/Makefile.global
- pl/plpgsql/src/Makefile
- pl/plpgsql/src/mklang.sql
- pl/tcl/mkMakefile.tcldefs.sh
- include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
- EOF
- cat >> $CONFIG_STATUS <<EOF
- # Protect against being on the right side of a sed subst in config.status.
- sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
- s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
- $ac_vpsub
- $extrasub
- s%@SHELL@%$SHELL%g
- s%@CFLAGS@%$CFLAGS%g
- s%@CPPFLAGS@%$CPPFLAGS%g
- s%@CXXFLAGS@%$CXXFLAGS%g
- s%@FFLAGS@%$FFLAGS%g
- s%@DEFS@%$DEFS%g
- s%@LDFLAGS@%$LDFLAGS%g
- s%@LIBS@%$LIBS%g
- s%@exec_prefix@%$exec_prefix%g
- s%@prefix@%$prefix%g
- s%@program_transform_name@%$program_transform_name%g
- s%@bindir@%$bindir%g
- s%@sbindir@%$sbindir%g
- s%@libexecdir@%$libexecdir%g
- s%@datadir@%$datadir%g
- s%@sysconfdir@%$sysconfdir%g
- s%@sharedstatedir@%$sharedstatedir%g
- s%@localstatedir@%$localstatedir%g
- s%@libdir@%$libdir%g
- s%@includedir@%$includedir%g
- s%@oldincludedir@%$oldincludedir%g
- s%@infodir@%$infodir%g
- s%@mandir@%$mandir%g
- s%@host@%$host%g
- s%@host_alias@%$host_alias%g
- s%@host_cpu@%$host_cpu%g
- s%@host_vendor@%$host_vendor%g
- s%@host_os@%$host_os%g
- s%@TAS@%$TAS%g
- s%@ODBCINSTDIR@%$ODBCINSTDIR%g
- s%@CC@%$CC%g
- s%@CPP@%$CPP%g
- s%@CC_VERSION@%$CC_VERSION%g
- s%@ELF_SYS@%$ELF_SYS%g
- s%@PORTNAME@%$PORTNAME%g
- s%@CPU@%$CPU%g
- s%@SRCDIR@%$SRCDIR%g
- s%@AROPT@%$AROPT%g
- s%@SHARED_LIB@%$SHARED_LIB%g
- s%@DLSUFFIX@%$DLSUFFIX%g
- s%@DL_LIB@%$DL_LIB%g
- s%@USE_TCL@%$USE_TCL%g
- s%@USE_TK@%$USE_TK%g
- s%@USE_PERL@%$USE_PERL%g
- s%@USE_ODBC@%$USE_ODBC%g
- s%@MULTIBYTE@%$MULTIBYTE%g
- s%@CXX@%$CXX%g
- s%@HAVECXX@%$HAVECXX%g
- s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
- s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
- s%@INSTALL_DATA@%$INSTALL_DATA%g
- s%@INSTALL@%$INSTALL%g
- s%@INSTLOPTS@%$INSTLOPTS%g
- s%@INSTL_LIB_OPTS@%$INSTL_LIB_OPTS%g
- s%@INSTL_SHLIB_OPTS@%$INSTL_SHLIB_OPTS%g
- s%@INSTL_EXE_OPTS@%$INSTL_EXE_OPTS%g
- s%@DASH_N@%$DASH_N%g
- s%@BACKSLASH_C@%$BACKSLASH_C%g
- s%@LEX@%$LEX%g
- s%@LEXLIB@%$LEXLIB%g
- s%@LN_S@%$LN_S%g
- s%@SET_MAKE@%$SET_MAKE%g
- s%@RANLIB@%$RANLIB%g
- s%@find@%$find%g
- s%@tar@%$tar%g
- s%@split@%$split%g
- s%@etags@%$etags%g
- s%@xargs@%$xargs%g
- s%@ipcs@%$ipcs%g
- s%@ipcrm@%$ipcrm%g
- s%@TR@%$TR%g
- s%@GZCAT@%$GZCAT%g
- s%@TRARGS@%$TRARGS%g
- s%@bison@%$bison%g
- s%@yacc@%$yacc%g
- s%@YACC@%$YACC%g
- s%@YFLAGS@%$YFLAGS%g
- s%@LIBOBJS@%$LIBOBJS%g
- s%@SNPRINTF@%$SNPRINTF%g
- s%@ISINF@%$ISINF%g
- s%@GETRUSAGE@%$GETRUSAGE%g
- s%@SRANDOM@%$SRANDOM%g
- s%@GETHOSTNAME@%$GETHOSTNAME%g
- s%@MISSING_RANDOM@%$MISSING_RANDOM%g
- s%@INET_ATON@%$INET_ATON%g
- s%@STRERROR@%$STRERROR%g
- s%@STRERROR2@%$STRERROR2%g
- s%@STRDUP@%$STRDUP%g
- s%@STRTOL@%$STRTOL%g
- s%@STRTOUL@%$STRTOUL%g
- s%@STRCASECMP@%$STRCASECMP%g
- s%@HPUXMATHLIB@%$HPUXMATHLIB%g
- s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
- s%@TCLSH@%$TCLSH%g
- s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
- s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
- s%@X_CFLAGS@%$X_CFLAGS%g
- s%@X_PRE_LIBS@%$X_PRE_LIBS%g
- s%@X_LIBS@%$X_LIBS%g
- s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
- s%@X11_LIBS@%$X11_LIBS%g
- s%@expanded_libdir@%$expanded_libdir%g
- CEOF
- EOF
- cat >> $CONFIG_STATUS <<EOF
- # Split the substitutions into bite-sized pieces for seds with
- # small command number limits, like on Digital OSF/1 and HP-UX.
- ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
- ac_file=1 # Number of current file.
- ac_beg=1 # First line for current file.
- ac_end=$ac_max_sed_cmds # Line after last line for current file.
- ac_more_lines=:
- ac_sed_cmds=""
- while $ac_more_lines; do
- if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
- else
- sed "${ac_end}q" conftest.subs > conftest.s$ac_file
- fi
- if test ! -s conftest.s$ac_file; then
- ac_more_lines=false
- rm -f conftest.s$ac_file
- else
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f conftest.s$ac_file"
- else
- ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
- fi
- ac_file=`expr $ac_file + 1`
- ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_cmds`
- fi
- done
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds=cat
- fi
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_FILES=${CONFIG_FILES-"GNUmakefile
- Makefile.global
- backend/port/Makefile
- backend/catalog/genbki.sh
- backend/utils/Gen_fmgrtab.sh
- bin/pg_dump/Makefile
- bin/pg_version/Makefile
- bin/psql/Makefile
- bin/pgtclsh/mkMakefile.tcldefs.sh
- bin/pgtclsh/mkMakefile.tkdefs.sh
- include/version.h
- interfaces/libpq/Makefile
- interfaces/ecpg/lib/Makefile
- interfaces/libpq++/Makefile
- interfaces/libpgtcl/Makefile
- interfaces/odbc/GNUmakefile
- interfaces/odbc/Makefile.global
- pl/plpgsql/src/Makefile
- pl/plpgsql/src/mklang.sql
- pl/tcl/mkMakefile.tcldefs.sh
- "}
- EOF
- cat >> $CONFIG_STATUS <<EOF
- for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/`echo $ac_dir|sed 's%^./%%'`"
- # A "../" for each directory in $ac_dir_suffix.
- ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dir_suffix= ac_dots=
- fi
- case "$ac_given_srcdir" in
- .) srcdir=.
- if test -z "$ac_dots"; then top_srcdir=.
- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
- *) # Relative path.
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
- top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
- case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
- esac
- echo creating "$ac_file"
- rm -f "$ac_file"
- configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
- case "$ac_file" in
- *Makefile*) ac_comsub="1i\
- # $configure_input" ;;
- *) ac_comsub= ;;
- esac
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- sed -e "$ac_comsub
- s%@configure_input@%$configure_input%g
- s%@srcdir@%$srcdir%g
- s%@top_srcdir@%$top_srcdir%g
- s%@INSTALL@%$INSTALL%g
- " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
- fi; done
- rm -f conftest.s*
- # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
- # NAME is the cpp macro being defined and VALUE is the value it is being given.
- #
- # ac_d sets the value in "#define NAME VALUE" lines.
- ac_dA='s%^([ ]*)#([ ]*define[ ][ ]*)'
- ac_dB='([ ][ ]*)[^ ]*%1#2'
- ac_dC='3'
- ac_dD='%g'
- # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
- ac_uA='s%^([ ]*)#([ ]*)undef([ ][ ]*)'
- ac_uB='([ ])%1#2define3'
- ac_uC=' '
- ac_uD='4%g'
- # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
- ac_eA='s%^([ ]*)#([ ]*)undef([ ][ ]*)'
- ac_eB='$%1#2define3'
- ac_eC=' '
- ac_eD='%g'
- if test "${CONFIG_HEADERS+set}" != set; then
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_HEADERS="include/config.h"
- EOF
- cat >> $CONFIG_STATUS <<EOF
- fi
- for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- echo creating $ac_file
- rm -f conftest.frag conftest.in conftest.out
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- cat $ac_file_inputs > conftest.in
- EOF
- # Transform confdefs.h into a sed script conftest.vals that substitutes
- # the proper values into config.h.in to produce config.h. And first:
- # Protect against being on the right side of a sed subst in config.status.
- # Protect against being in an unquoted here document in config.status.
- rm -f conftest.vals
- cat > conftest.hdr <<EOF
- s/[\&%]/\&/g
- s%[\$`]%\&%g
- s%#define ([A-Za-z_][A-Za-z0-9_]*) *(.*)%${ac_dA}1${ac_dB}1${ac_dC}2${ac_dD}%gp
- s%ac_d%ac_u%gp
- s%ac_u%ac_e%gp
- EOF
- sed -n -f conftest.hdr confdefs.h > conftest.vals
- rm -f conftest.hdr
- # This sed command replaces #undef with comments. This is necessary, for
- # example, in the case of _POSIX_SOURCE, which is predefined and required
- # on some systems where configure will not decide to define it.
- cat >> conftest.vals <<EOF
- s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
- EOF
- # Break up conftest.vals because some shells have a limit on
- # the size of here documents, and old seds have small limits too.
- rm -f conftest.tail
- while :
- do
- ac_lines=`grep -c . conftest.vals`
- # grep -c gives empty output for an empty file on some AIX systems.
- if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
- # Write a limited-size here document to conftest.frag.
- echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
- echo 'CEOF
- sed -f conftest.frag conftest.in > conftest.out
- rm -f conftest.in
- mv conftest.out conftest.in
- ' >> $CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
- rm -f conftest.vals
- mv conftest.tail conftest.vals
- done
- rm -f conftest.vals
- cat >> $CONFIG_STATUS <<EOF
- rm -f conftest.frag conftest.h
- echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
- cat conftest.in >> conftest.h
- rm -f conftest.in
- if cmp -s $ac_file conftest.h 2>/dev/null; then
- echo "$ac_file is unchanged"
- rm -f conftest.h
- else
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- fi
- rm -f $ac_file
- mv conftest.h $ac_file
- fi
- fi; done
- EOF
- cat >> $CONFIG_STATUS <<EOF
- ac_sources="backend/port/dynloader/${os}.c backend/port/dynloader/${os}.h include/port/${os}.h makefiles/Makefile.${os} backend/port/tas/${tas_file} include/port makefiles template include/config.h"
- ac_dests="backend/port/dynloader.c include/dynloader.h include/os.h Makefile.port backend/port/tas.s interfaces/odbc/port interfaces/odbc/makefiles interfaces/odbc/template interfaces/odbc/config.h"
- EOF
- cat >> $CONFIG_STATUS <<EOF
- srcdir=$ac_given_srcdir
- while test -n "$ac_sources"; do
- set $ac_dests; ac_dest=$1; shift; ac_dests=$*
- set $ac_sources; ac_source=$1; shift; ac_sources=$*
- echo "linking $srcdir/$ac_source to $ac_dest"
- if test ! -r $srcdir/$ac_source; then
- { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
- fi
- rm -f $ac_dest
- # Make relative symlinks.
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
- # The dest file is in a subdirectory.
- test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
- ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^./%%'`"
- # A "../" for each directory in $ac_dest_dir_suffix.
- ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dest_dir_suffix= ac_dots=
- fi
- case "$srcdir" in
- [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
- *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
- esac
- # Make a symlink if possible; otherwise try a hard link.
- if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
- ln $srcdir/$ac_source $ac_dest; then :
- else
- { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
- fi
- done
- EOF
- cat >> $CONFIG_STATUS <<EOF
- EOF
- cat >> $CONFIG_STATUS <<EOF
- exit 0
- EOF
- chmod +x $CONFIG_STATUS
- rm -fr confdefs* $ac_clean_files
- test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1