Newer
Older
NetAddr-IP / Lite / Util / siteconf
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.53 and edited for this module 9-22-03
  4. #
  5. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  6. # Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. #
  10. #
  11. # Makefile.PL changes needed to use this script
  12. #
  13. # clean => 'whatever.... localStuff.h config.log'
  14. #
  15. # sub MY::top_targets {
  16. # package MY;
  17. # my $begin = q|
  18. # config :: localStuff.h
  19. # @$(NOOP)
  20. #
  21. # # siteconf CCname Cfile_ext OBJext EXEext "Cflags" "LDflags"
  22. # #
  23. # localStuff.h :
  24. # ./siteconf "$(CC)" ".c" "$(OBJ_EXT)" "$(EXE_EXT)" "$(CCFLAGS)" "$(LDflags)"
  25. # |;
  26. # my $inherited = shift->SUPER::top_targets(@_);
  27. # # whatever additional change, additions that may be needed
  28. # $begin . $inherited;
  29. # }
  30. #
  31. #
  32.  
  33. # the command line must contain
  34. #
  35. # siteconf CCname Cfile_ext OBJext EXEext "Cflags" "LDflags"
  36. if [ $# -ne 7 ]; then
  37. echo this script is run by make, do not run it from the command line
  38. exit -1
  39. fi
  40.  
  41. CC=$1
  42. ac_ext=`echo $2 | sed 's/.//; q'`
  43. ac_objext=`echo $3 | sed 's/.//; q'`
  44. ac_cv_exeext=`echo $4 | sed 's/.//; q'`
  45. CFLAGS=$5
  46. LDFLAGS=$6
  47. LIBS=$7
  48.  
  49. # want something like this...
  50. #CC=gcc
  51. #ac_ext=c
  52. #ac_objext=o
  53. #ac_cv_exeext=
  54.  
  55. exec 5>config.log
  56.  
  57. ac_exeext=$ac_cv_exeext
  58. ac_compile='$CC -c $CFLAGS conftest.$ac_ext >&5'
  59. ac_compile='$CC -c $CFLAGS conftest.$ac_ext >&5'
  60. ac_link='$CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  61.  
  62.  
  63. if expr a : '\(a\)' >/dev/null 2>&1; then
  64. as_expr=expr
  65. else
  66. as_expr=false
  67. fi
  68.  
  69. exec 6>&1
  70.  
  71. rm -f localStuff.h
  72.  
  73. cat >localStuff.h <<\_ASBOX
  74. /* **************************************************** *
  75. * ## localStuff.h ## *
  76. * ## ----------- ## *
  77. * *
  78. * This file was generated automatically by 'siteconf'. *
  79. * Don't edit this file, edit 'siteconf' instead. *
  80. * *
  81. * **************************************************** */
  82. #ifdef host_is_BIG_ENDIAN
  83. #undef host_is_BIG_ENDIAN
  84. #endif
  85. #ifdef host_is_LITTLE_ENDIAN
  86. #undef host_is_LITTLE_ENDIAN
  87. #endif
  88. _ASBOX
  89.  
  90. ## --------------------- ##
  91. ## M4sh Initialization. ##
  92. ## --------------------- ##
  93.  
  94. # Be Bourne compatible
  95. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  96. emulate sh
  97. NULLCMD=:
  98. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  99. set -o posix
  100. fi
  101.  
  102. # Name of the executable.
  103. as_me=`(basename "$0") 2>/dev/null ||
  104. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  105. X"$0" : 'X\(//\)$' \| \
  106. X"$0" : 'X\(/\)$' \| \
  107. . : '\(.\)' 2>/dev/null ||
  108. echo X/"$0" |
  109. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  110. /^X\/\(\/\/\)$/{ s//\1/; q; }
  111. /^X\/\(\/\).*/{ s//\1/; q; }
  112. s/.*/./; q'`
  113.  
  114. # PATH needs CR, and LINENO needs CR and PATH.
  115. # Avoid depending upon Character Ranges.
  116. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  117. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  118. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  119. as_cr_digits='0123456789'
  120. as_cr_alnum=$as_cr_Letters$as_cr_digits
  121.  
  122. # The user is always right.
  123. if test "${PATH_SEPARATOR+set}" != set; then
  124. echo "#! /bin/sh" >conftest.sh
  125. echo "exit 0" >>conftest.sh
  126. chmod +x conftest.sh
  127. if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
  128. PATH_SEPARATOR=';'
  129. else
  130. PATH_SEPARATOR=:
  131. fi
  132. rm -f conftest.sh
  133. fi
  134.  
  135.  
  136. as_lineno_1=$LINENO
  137. as_lineno_2=$LINENO
  138. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  139. test "x$as_lineno_1" != "x$as_lineno_2" &&
  140. test "x$as_lineno_3" = "x$as_lineno_2" || {
  141. # Find who we are. Look in the path if we contain no path at all
  142. # relative or not.
  143. case $0 in
  144. *[\\/]* ) as_myself=$0 ;;
  145. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  146. for as_dir in $PATH
  147. do
  148. IFS=$as_save_IFS
  149. test -z "$as_dir" && as_dir=.
  150. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  151. done
  152.  
  153. ;;
  154. esac
  155. # We did not find ourselves, most probably we were run as `sh COMMAND'
  156. # in which case we are not to be found in the path.
  157. if test "x$as_myself" = x; then
  158. as_myself=$0
  159. fi
  160. if test ! -f "$as_myself"; then
  161. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  162. { (exit 1); exit 1; }; }
  163. fi
  164. case $CONFIG_SHELL in
  165. '')
  166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  167. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  168. do
  169. IFS=$as_save_IFS
  170. test -z "$as_dir" && as_dir=.
  171. for as_base in sh bash ksh sh5; do
  172. case $as_dir in
  173. /*)
  174. if ("$as_dir/$as_base" -c '
  175. as_lineno_1=$LINENO
  176. as_lineno_2=$LINENO
  177. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  178. test "x$as_lineno_1" != "x$as_lineno_2" &&
  179. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  180. CONFIG_SHELL=$as_dir/$as_base
  181. export CONFIG_SHELL
  182. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  183. fi;;
  184. esac
  185. done
  186. done
  187. ;;
  188. esac
  189.  
  190. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  191. # uniformly replaced by the line number. The first 'sed' inserts a
  192. # line-number line before each line; the second 'sed' does the real
  193. # work. The second script uses 'N' to pair each line-number line
  194. # with the numbered line, and appends trailing '-' during
  195. # substitution so that $LINENO is not a special case at line end.
  196. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  197. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  198. sed '=' <$as_myself |
  199. sed '
  200. N
  201. s,$,-,
  202. : loop
  203. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  204. t loop
  205. s,-$,,
  206. s,^['$as_cr_digits']*\n,,
  207. ' >$as_me.lineno &&
  208. chmod +x $as_me.lineno ||
  209. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  210. { (exit 1); exit 1; }; }
  211.  
  212. # Don't try to exec as it changes $[0], causing all sort of problems
  213. # (the dirname of $[0] is not the place where we might find the
  214. # original and so on. Autoconf is especially sensible to this).
  215. . ./$as_me.lineno
  216. # Exit status is that of the last command.
  217. exit
  218. }
  219.  
  220.  
  221. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  222. *c*,-n*) ECHO_N= ECHO_C='
  223. ' ECHO_T=' ' ;;
  224. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  225. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  226. esac
  227.  
  228. if expr a : '\(a\)' >/dev/null 2>&1; then
  229. as_expr=expr
  230. else
  231. as_expr=false
  232. fi
  233.  
  234. cat >&5 <<_ACEOF
  235. This file contains any messages produced by compilers while
  236. running siteconf, to aid debugging if siteconf makes a mistake.
  237.  
  238. It was created by $as_me, which was
  239. generated by GNU Autoconf 2.53. Invocation command line was
  240.  
  241. $ $0 $@
  242.  
  243. _ACEOF
  244.  
  245. # Factoring default headers for most tests.
  246. ac_includes_default="\
  247. #include <stdio.h>
  248. #if HAVE_SYS_TYPES_H
  249. # include <sys/types.h>
  250. #endif
  251. #if HAVE_SYS_STAT_H
  252. # include <sys/stat.h>
  253. #endif
  254. #if STDC_HEADERS
  255. # include <stdlib.h>
  256. # include <stddef.h>
  257. #else
  258. # if HAVE_STDLIB_H
  259. # include <stdlib.h>
  260. # endif
  261. #endif
  262. #if HAVE_STRING_H
  263. # if !STDC_HEADERS && HAVE_MEMORY_H
  264. # include <memory.h>
  265. # endif
  266. # include <string.h>
  267. #endif
  268. #if HAVE_STRINGS_H
  269. # include <strings.h>
  270. #endif
  271. #if HAVE_INTTYPES_H
  272. # include <inttypes.h>
  273. #else
  274. # if HAVE_STDINT_H
  275. # include <stdint.h>
  276. # endif
  277. #endif
  278. #if HAVE_UNISTD_H
  279. # include <unistd.h>
  280. #endif"
  281.  
  282. ############### begin tests #############################
  283.  
  284. # Checks for data types
  285. echo "$as_me:$LINENO: checking for char" >&5
  286. echo $ECHO_N "checking for char... $ECHO_C" >&6
  287. if test "${ac_cv_type_char+set}" = set; then
  288. echo $ECHO_N "(cached) $ECHO_C" >&6
  289. else
  290. cat >conftest.$ac_ext <<_ACEOF
  291. #line $LINENO "siteconf"
  292. #include "localStuff.h"
  293. $ac_includes_default
  294. #ifdef F77_DUMMY_MAIN
  295. # ifdef __cplusplus
  296. extern "C"
  297. # endif
  298. int F77_DUMMY_MAIN() { return 1; }
  299. #endif
  300. int
  301. main ()
  302. {
  303. if ((char *) 0)
  304. return 0;
  305. if (sizeof (char))
  306. return 0;
  307. ;
  308. return 0;
  309. }
  310. _ACEOF
  311. rm -f conftest.$ac_objext
  312. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  313. (eval $ac_compile) 2>&5
  314. ac_status=$?
  315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  316. (exit $ac_status); } &&
  317. { ac_try='test -s conftest.$ac_objext'
  318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  319. (eval $ac_try) 2>&5
  320. ac_status=$?
  321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  322. (exit $ac_status); }; }; then
  323. ac_cv_type_char=yes
  324. else
  325. echo "$as_me: failed program was:" >&5
  326. cat conftest.$ac_ext >&5
  327. ac_cv_type_char=no
  328. fi
  329. rm -f conftest.$ac_objext conftest.$ac_ext
  330. fi
  331. echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
  332. echo "${ECHO_T}$ac_cv_type_char" >&6
  333.  
  334. echo "$as_me:$LINENO: checking size of char" >&5
  335. echo $ECHO_N "checking size of char... $ECHO_C" >&6
  336. if test "${ac_cv_sizeof_char+set}" = set; then
  337. echo $ECHO_N "(cached) $ECHO_C" >&6
  338. else
  339. if test "$ac_cv_type_char" = yes; then
  340. # The cast to unsigned long works around a bug in the HP C Compiler
  341. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  342. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  343. # This bug is HP SR number 8606223364.
  344. if test "$cross_compiling" = yes; then
  345. # Depending upon the size, compute the lo and hi bounds.
  346. cat >conftest.$ac_ext <<_ACEOF
  347. #line $LINENO "siteconf"
  348. #include "localStuff.h"
  349. $ac_includes_default
  350. #ifdef F77_DUMMY_MAIN
  351. # ifdef __cplusplus
  352. extern "C"
  353. # endif
  354. int F77_DUMMY_MAIN() { return 1; }
  355. #endif
  356. int
  357. main ()
  358. {
  359. static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
  360. test_array [0] = 0
  361.  
  362. ;
  363. return 0;
  364. }
  365. _ACEOF
  366. rm -f conftest.$ac_objext
  367. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  368. (eval $ac_compile) 2>&5
  369. ac_status=$?
  370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  371. (exit $ac_status); } &&
  372. { ac_try='test -s conftest.$ac_objext'
  373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  374. (eval $ac_try) 2>&5
  375. ac_status=$?
  376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  377. (exit $ac_status); }; }; then
  378. ac_lo=0 ac_mid=0
  379. while :; do
  380. cat >conftest.$ac_ext <<_ACEOF
  381. #line $LINENO "siteconf"
  382. #include "localStuff.h"
  383. $ac_includes_default
  384. #ifdef F77_DUMMY_MAIN
  385. # ifdef __cplusplus
  386. extern "C"
  387. # endif
  388. int F77_DUMMY_MAIN() { return 1; }
  389. #endif
  390. int
  391. main ()
  392. {
  393. static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
  394. test_array [0] = 0
  395.  
  396. ;
  397. return 0;
  398. }
  399. _ACEOF
  400. rm -f conftest.$ac_objext
  401. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  402. (eval $ac_compile) 2>&5
  403. ac_status=$?
  404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  405. (exit $ac_status); } &&
  406. { ac_try='test -s conftest.$ac_objext'
  407. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  408. (eval $ac_try) 2>&5
  409. ac_status=$?
  410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  411. (exit $ac_status); }; }; then
  412. ac_hi=$ac_mid; break
  413. else
  414. echo "$as_me: failed program was:" >&5
  415. cat conftest.$ac_ext >&5
  416. ac_lo=`expr $ac_mid + 1`
  417. if test $ac_lo -le $ac_mid; then
  418. ac_lo= ac_hi=
  419. break
  420. fi
  421. ac_mid=`expr 2 '*' $ac_mid + 1`
  422. fi
  423. rm -f conftest.$ac_objext conftest.$ac_ext
  424. done
  425. else
  426. echo "$as_me: failed program was:" >&5
  427. cat conftest.$ac_ext >&5
  428. cat >conftest.$ac_ext <<_ACEOF
  429. #line $LINENO "siteconf"
  430. #include "localStuff.h"
  431. $ac_includes_default
  432. #ifdef F77_DUMMY_MAIN
  433. # ifdef __cplusplus
  434. extern "C"
  435. # endif
  436. int F77_DUMMY_MAIN() { return 1; }
  437. #endif
  438. int
  439. main ()
  440. {
  441. static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
  442. test_array [0] = 0
  443.  
  444. ;
  445. return 0;
  446. }
  447. _ACEOF
  448. rm -f conftest.$ac_objext
  449. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  450. (eval $ac_compile) 2>&5
  451. ac_status=$?
  452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  453. (exit $ac_status); } &&
  454. { ac_try='test -s conftest.$ac_objext'
  455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  456. (eval $ac_try) 2>&5
  457. ac_status=$?
  458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  459. (exit $ac_status); }; }; then
  460. ac_hi=-1 ac_mid=-1
  461. while :; do
  462. cat >conftest.$ac_ext <<_ACEOF
  463. #line $LINENO "siteconf"
  464. #include "localStuff.h"
  465. $ac_includes_default
  466. #ifdef F77_DUMMY_MAIN
  467. # ifdef __cplusplus
  468. extern "C"
  469. # endif
  470. int F77_DUMMY_MAIN() { return 1; }
  471. #endif
  472. int
  473. main ()
  474. {
  475. static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
  476. test_array [0] = 0
  477.  
  478. ;
  479. return 0;
  480. }
  481. _ACEOF
  482. rm -f conftest.$ac_objext
  483. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  484. (eval $ac_compile) 2>&5
  485. ac_status=$?
  486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  487. (exit $ac_status); } &&
  488. { ac_try='test -s conftest.$ac_objext'
  489. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  490. (eval $ac_try) 2>&5
  491. ac_status=$?
  492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  493. (exit $ac_status); }; }; then
  494. ac_lo=$ac_mid; break
  495. else
  496. echo "$as_me: failed program was:" >&5
  497. cat conftest.$ac_ext >&5
  498. ac_hi=`expr '(' $ac_mid ')' - 1`
  499. if test $ac_mid -le $ac_hi; then
  500. ac_lo= ac_hi=
  501. break
  502. fi
  503. ac_mid=`expr 2 '*' $ac_mid`
  504. fi
  505. rm -f conftest.$ac_objext conftest.$ac_ext
  506. done
  507. else
  508. echo "$as_me: failed program was:" >&5
  509. cat conftest.$ac_ext >&5
  510. ac_lo= ac_hi=
  511. fi
  512. rm -f conftest.$ac_objext conftest.$ac_ext
  513. fi
  514. rm -f conftest.$ac_objext conftest.$ac_ext
  515. # Binary search between lo and hi bounds.
  516. while test "x$ac_lo" != "x$ac_hi"; do
  517. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  518. cat >conftest.$ac_ext <<_ACEOF
  519. #line $LINENO "siteconf"
  520. #include "localStuff.h"
  521. $ac_includes_default
  522. #ifdef F77_DUMMY_MAIN
  523. # ifdef __cplusplus
  524. extern "C"
  525. # endif
  526. int F77_DUMMY_MAIN() { return 1; }
  527. #endif
  528. int
  529. main ()
  530. {
  531. static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
  532. test_array [0] = 0
  533.  
  534. ;
  535. return 0;
  536. }
  537. _ACEOF
  538. rm -f conftest.$ac_objext
  539. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  540. (eval $ac_compile) 2>&5
  541. ac_status=$?
  542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  543. (exit $ac_status); } &&
  544. { ac_try='test -s conftest.$ac_objext'
  545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  546. (eval $ac_try) 2>&5
  547. ac_status=$?
  548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  549. (exit $ac_status); }; }; then
  550. ac_hi=$ac_mid
  551. else
  552. echo "$as_me: failed program was:" >&5
  553. cat conftest.$ac_ext >&5
  554. ac_lo=`expr '(' $ac_mid ')' + 1`
  555. fi
  556. rm -f conftest.$ac_objext conftest.$ac_ext
  557. done
  558. case $ac_lo in
  559. ?*) ac_cv_sizeof_char=$ac_lo;;
  560. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
  561. echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
  562. { (exit 1); exit 1; }; } ;;
  563. esac
  564. else
  565. if test "$cross_compiling" = yes; then
  566. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
  567. echo "$as_me: error: cannot run test program while cross compiling" >&2;}
  568. { (exit 1); exit 1; }; }
  569. else
  570. cat >conftest.$ac_ext <<_ACEOF
  571. #line $LINENO "siteconf"
  572. #include "localStuff.h"
  573. $ac_includes_default
  574. long longval () { return (long) (sizeof (char)); }
  575. unsigned long ulongval () { return (long) (sizeof (char)); }
  576. #include <stdio.h>
  577. #include <stdlib.h>
  578. #ifdef F77_DUMMY_MAIN
  579. # ifdef __cplusplus
  580. extern "C"
  581. # endif
  582. int F77_DUMMY_MAIN() { return 1; }
  583. #endif
  584. int
  585. main ()
  586. {
  587.  
  588. FILE *f = fopen ("conftest.val", "w");
  589. if (! f)
  590. exit (1);
  591. if (((long) (sizeof (char))) < 0)
  592. {
  593. long i = longval ();
  594. if (i != ((long) (sizeof (char))))
  595. exit (1);
  596. fprintf (f, "%ld\n", i);
  597. }
  598. else
  599. {
  600. unsigned long i = ulongval ();
  601. if (i != ((long) (sizeof (char))))
  602. exit (1);
  603. fprintf (f, "%lu\n", i);
  604. }
  605. exit (ferror (f) || fclose (f) != 0);
  606.  
  607. ;
  608. return 0;
  609. }
  610. _ACEOF
  611. rm -f conftest$ac_exeext
  612. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  613. (eval $ac_link) 2>&5
  614. ac_status=$?
  615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  616. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  618. (eval $ac_try) 2>&5
  619. ac_status=$?
  620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  621. (exit $ac_status); }; }; then
  622. ac_cv_sizeof_char=`cat conftest.val`
  623. else
  624. echo "$as_me: program exited with status $ac_status" >&5
  625. echo "$as_me: failed program was:" >&5
  626. cat conftest.$ac_ext >&5
  627. ( exit $ac_status )
  628. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
  629. echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
  630. { (exit 1); exit 1; }; }
  631. fi
  632. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  633. fi
  634. fi
  635. rm -f conftest.val
  636. else
  637. ac_cv_sizeof_char=0
  638. fi
  639. fi
  640. echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
  641. echo "${ECHO_T}$ac_cv_sizeof_char" >&6
  642. cat >>localStuff.h <<_ACEOF
  643. #define SIZEOF_CHAR $ac_cv_sizeof_char
  644. _ACEOF
  645.  
  646.  
  647. echo "$as_me:$LINENO: checking for short int" >&5
  648. echo $ECHO_N "checking for short int... $ECHO_C" >&6
  649. if test "${ac_cv_type_short_int+set}" = set; then
  650. echo $ECHO_N "(cached) $ECHO_C" >&6
  651. else
  652. cat >conftest.$ac_ext <<_ACEOF
  653. #line $LINENO "siteconf"
  654. #include "localStuff.h"
  655. $ac_includes_default
  656. #ifdef F77_DUMMY_MAIN
  657. # ifdef __cplusplus
  658. extern "C"
  659. # endif
  660. int F77_DUMMY_MAIN() { return 1; }
  661. #endif
  662. int
  663. main ()
  664. {
  665. if ((short int *) 0)
  666. return 0;
  667. if (sizeof (short int))
  668. return 0;
  669. ;
  670. return 0;
  671. }
  672. _ACEOF
  673. rm -f conftest.$ac_objext
  674. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  675. (eval $ac_compile) 2>&5
  676. ac_status=$?
  677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  678. (exit $ac_status); } &&
  679. { ac_try='test -s conftest.$ac_objext'
  680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  681. (eval $ac_try) 2>&5
  682. ac_status=$?
  683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  684. (exit $ac_status); }; }; then
  685. ac_cv_type_short_int=yes
  686. else
  687. echo "$as_me: failed program was:" >&5
  688. cat conftest.$ac_ext >&5
  689. ac_cv_type_short_int=no
  690. fi
  691. rm -f conftest.$ac_objext conftest.$ac_ext
  692. fi
  693. echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
  694. echo "${ECHO_T}$ac_cv_type_short_int" >&6
  695.  
  696. echo "$as_me:$LINENO: checking size of short int" >&5
  697. echo $ECHO_N "checking size of short int... $ECHO_C" >&6
  698. if test "${ac_cv_sizeof_short_int+set}" = set; then
  699. echo $ECHO_N "(cached) $ECHO_C" >&6
  700. else
  701. if test "$ac_cv_type_short_int" = yes; then
  702. # The cast to unsigned long works around a bug in the HP C Compiler
  703. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  704. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  705. # This bug is HP SR number 8606223364.
  706. if test "$cross_compiling" = yes; then
  707. # Depending upon the size, compute the lo and hi bounds.
  708. cat >conftest.$ac_ext <<_ACEOF
  709. #line $LINENO "siteconf"
  710. #include "localStuff.h"
  711. $ac_includes_default
  712. #ifdef F77_DUMMY_MAIN
  713. # ifdef __cplusplus
  714. extern "C"
  715. # endif
  716. int F77_DUMMY_MAIN() { return 1; }
  717. #endif
  718. int
  719. main ()
  720. {
  721. static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
  722. test_array [0] = 0
  723.  
  724. ;
  725. return 0;
  726. }
  727. _ACEOF
  728. rm -f conftest.$ac_objext
  729. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  730. (eval $ac_compile) 2>&5
  731. ac_status=$?
  732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  733. (exit $ac_status); } &&
  734. { ac_try='test -s conftest.$ac_objext'
  735. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  736. (eval $ac_try) 2>&5
  737. ac_status=$?
  738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  739. (exit $ac_status); }; }; then
  740. ac_lo=0 ac_mid=0
  741. while :; do
  742. cat >conftest.$ac_ext <<_ACEOF
  743. #line $LINENO "siteconf"
  744. #include "localStuff.h"
  745. $ac_includes_default
  746. #ifdef F77_DUMMY_MAIN
  747. # ifdef __cplusplus
  748. extern "C"
  749. # endif
  750. int F77_DUMMY_MAIN() { return 1; }
  751. #endif
  752. int
  753. main ()
  754. {
  755. static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
  756. test_array [0] = 0
  757.  
  758. ;
  759. return 0;
  760. }
  761. _ACEOF
  762. rm -f conftest.$ac_objext
  763. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  764. (eval $ac_compile) 2>&5
  765. ac_status=$?
  766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  767. (exit $ac_status); } &&
  768. { ac_try='test -s conftest.$ac_objext'
  769. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  770. (eval $ac_try) 2>&5
  771. ac_status=$?
  772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  773. (exit $ac_status); }; }; then
  774. ac_hi=$ac_mid; break
  775. else
  776. echo "$as_me: failed program was:" >&5
  777. cat conftest.$ac_ext >&5
  778. ac_lo=`expr $ac_mid + 1`
  779. if test $ac_lo -le $ac_mid; then
  780. ac_lo= ac_hi=
  781. break
  782. fi
  783. ac_mid=`expr 2 '*' $ac_mid + 1`
  784. fi
  785. rm -f conftest.$ac_objext conftest.$ac_ext
  786. done
  787. else
  788. echo "$as_me: failed program was:" >&5
  789. cat conftest.$ac_ext >&5
  790. cat >conftest.$ac_ext <<_ACEOF
  791. #line $LINENO "siteconf"
  792. #include "localStuff.h"
  793. $ac_includes_default
  794. #ifdef F77_DUMMY_MAIN
  795. # ifdef __cplusplus
  796. extern "C"
  797. # endif
  798. int F77_DUMMY_MAIN() { return 1; }
  799. #endif
  800. int
  801. main ()
  802. {
  803. static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
  804. test_array [0] = 0
  805.  
  806. ;
  807. return 0;
  808. }
  809. _ACEOF
  810. rm -f conftest.$ac_objext
  811. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  812. (eval $ac_compile) 2>&5
  813. ac_status=$?
  814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  815. (exit $ac_status); } &&
  816. { ac_try='test -s conftest.$ac_objext'
  817. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  818. (eval $ac_try) 2>&5
  819. ac_status=$?
  820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  821. (exit $ac_status); }; }; then
  822. ac_hi=-1 ac_mid=-1
  823. while :; do
  824. cat >conftest.$ac_ext <<_ACEOF
  825. #line $LINENO "siteconf"
  826. #include "localStuff.h"
  827. $ac_includes_default
  828. #ifdef F77_DUMMY_MAIN
  829. # ifdef __cplusplus
  830. extern "C"
  831. # endif
  832. int F77_DUMMY_MAIN() { return 1; }
  833. #endif
  834. int
  835. main ()
  836. {
  837. static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
  838. test_array [0] = 0
  839.  
  840. ;
  841. return 0;
  842. }
  843. _ACEOF
  844. rm -f conftest.$ac_objext
  845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  846. (eval $ac_compile) 2>&5
  847. ac_status=$?
  848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  849. (exit $ac_status); } &&
  850. { ac_try='test -s conftest.$ac_objext'
  851. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  852. (eval $ac_try) 2>&5
  853. ac_status=$?
  854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  855. (exit $ac_status); }; }; then
  856. ac_lo=$ac_mid; break
  857. else
  858. echo "$as_me: failed program was:" >&5
  859. cat conftest.$ac_ext >&5
  860. ac_hi=`expr '(' $ac_mid ')' - 1`
  861. if test $ac_mid -le $ac_hi; then
  862. ac_lo= ac_hi=
  863. break
  864. fi
  865. ac_mid=`expr 2 '*' $ac_mid`
  866. fi
  867. rm -f conftest.$ac_objext conftest.$ac_ext
  868. done
  869. else
  870. echo "$as_me: failed program was:" >&5
  871. cat conftest.$ac_ext >&5
  872. ac_lo= ac_hi=
  873. fi
  874. rm -f conftest.$ac_objext conftest.$ac_ext
  875. fi
  876. rm -f conftest.$ac_objext conftest.$ac_ext
  877. # Binary search between lo and hi bounds.
  878. while test "x$ac_lo" != "x$ac_hi"; do
  879. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  880. cat >conftest.$ac_ext <<_ACEOF
  881. #line $LINENO "siteconf"
  882. #include "localStuff.h"
  883. $ac_includes_default
  884. #ifdef F77_DUMMY_MAIN
  885. # ifdef __cplusplus
  886. extern "C"
  887. # endif
  888. int F77_DUMMY_MAIN() { return 1; }
  889. #endif
  890. int
  891. main ()
  892. {
  893. static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
  894. test_array [0] = 0
  895.  
  896. ;
  897. return 0;
  898. }
  899. _ACEOF
  900. rm -f conftest.$ac_objext
  901. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  902. (eval $ac_compile) 2>&5
  903. ac_status=$?
  904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  905. (exit $ac_status); } &&
  906. { ac_try='test -s conftest.$ac_objext'
  907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  908. (eval $ac_try) 2>&5
  909. ac_status=$?
  910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  911. (exit $ac_status); }; }; then
  912. ac_hi=$ac_mid
  913. else
  914. echo "$as_me: failed program was:" >&5
  915. cat conftest.$ac_ext >&5
  916. ac_lo=`expr '(' $ac_mid ')' + 1`
  917. fi
  918. rm -f conftest.$ac_objext conftest.$ac_ext
  919. done
  920. case $ac_lo in
  921. ?*) ac_cv_sizeof_short_int=$ac_lo;;
  922. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
  923. echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
  924. { (exit 1); exit 1; }; } ;;
  925. esac
  926. else
  927. if test "$cross_compiling" = yes; then
  928. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
  929. echo "$as_me: error: cannot run test program while cross compiling" >&2;}
  930. { (exit 1); exit 1; }; }
  931. else
  932. cat >conftest.$ac_ext <<_ACEOF
  933. #line $LINENO "siteconf"
  934. #include "localStuff.h"
  935. $ac_includes_default
  936. long longval () { return (long) (sizeof (short int)); }
  937. unsigned long ulongval () { return (long) (sizeof (short int)); }
  938. #include <stdio.h>
  939. #include <stdlib.h>
  940. #ifdef F77_DUMMY_MAIN
  941. # ifdef __cplusplus
  942. extern "C"
  943. # endif
  944. int F77_DUMMY_MAIN() { return 1; }
  945. #endif
  946. int
  947. main ()
  948. {
  949.  
  950. FILE *f = fopen ("conftest.val", "w");
  951. if (! f)
  952. exit (1);
  953. if (((long) (sizeof (short int))) < 0)
  954. {
  955. long i = longval ();
  956. if (i != ((long) (sizeof (short int))))
  957. exit (1);
  958. fprintf (f, "%ld\n", i);
  959. }
  960. else
  961. {
  962. unsigned long i = ulongval ();
  963. if (i != ((long) (sizeof (short int))))
  964. exit (1);
  965. fprintf (f, "%lu\n", i);
  966. }
  967. exit (ferror (f) || fclose (f) != 0);
  968.  
  969. ;
  970. return 0;
  971. }
  972. _ACEOF
  973. rm -f conftest$ac_exeext
  974. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  975. (eval $ac_link) 2>&5
  976. ac_status=$?
  977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  978. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  980. (eval $ac_try) 2>&5
  981. ac_status=$?
  982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  983. (exit $ac_status); }; }; then
  984. ac_cv_sizeof_short_int=`cat conftest.val`
  985. else
  986. echo "$as_me: program exited with status $ac_status" >&5
  987. echo "$as_me: failed program was:" >&5
  988. cat conftest.$ac_ext >&5
  989. ( exit $ac_status )
  990. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
  991. echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
  992. { (exit 1); exit 1; }; }
  993. fi
  994. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  995. fi
  996. fi
  997. rm -f conftest.val
  998. else
  999. ac_cv_sizeof_short_int=0
  1000. fi
  1001. fi
  1002. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
  1003. echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
  1004. cat >>localStuff.h <<_ACEOF
  1005. #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
  1006. _ACEOF
  1007.  
  1008.  
  1009. echo "$as_me:$LINENO: checking for int" >&5
  1010. echo $ECHO_N "checking for int... $ECHO_C" >&6
  1011. if test "${ac_cv_type_int+set}" = set; then
  1012. echo $ECHO_N "(cached) $ECHO_C" >&6
  1013. else
  1014. cat >conftest.$ac_ext <<_ACEOF
  1015. #line $LINENO "siteconf"
  1016. #include "localStuff.h"
  1017. $ac_includes_default
  1018. #ifdef F77_DUMMY_MAIN
  1019. # ifdef __cplusplus
  1020. extern "C"
  1021. # endif
  1022. int F77_DUMMY_MAIN() { return 1; }
  1023. #endif
  1024. int
  1025. main ()
  1026. {
  1027. if ((int *) 0)
  1028. return 0;
  1029. if (sizeof (int))
  1030. return 0;
  1031. ;
  1032. return 0;
  1033. }
  1034. _ACEOF
  1035. rm -f conftest.$ac_objext
  1036. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1037. (eval $ac_compile) 2>&5
  1038. ac_status=$?
  1039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1040. (exit $ac_status); } &&
  1041. { ac_try='test -s conftest.$ac_objext'
  1042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1043. (eval $ac_try) 2>&5
  1044. ac_status=$?
  1045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1046. (exit $ac_status); }; }; then
  1047. ac_cv_type_int=yes
  1048. else
  1049. echo "$as_me: failed program was:" >&5
  1050. cat conftest.$ac_ext >&5
  1051. ac_cv_type_int=no
  1052. fi
  1053. rm -f conftest.$ac_objext conftest.$ac_ext
  1054. fi
  1055. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  1056. echo "${ECHO_T}$ac_cv_type_int" >&6
  1057.  
  1058. echo "$as_me:$LINENO: checking size of int" >&5
  1059. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  1060. if test "${ac_cv_sizeof_int+set}" = set; then
  1061. echo $ECHO_N "(cached) $ECHO_C" >&6
  1062. else
  1063. if test "$ac_cv_type_int" = yes; then
  1064. # The cast to unsigned long works around a bug in the HP C Compiler
  1065. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  1066. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  1067. # This bug is HP SR number 8606223364.
  1068. if test "$cross_compiling" = yes; then
  1069. # Depending upon the size, compute the lo and hi bounds.
  1070. cat >conftest.$ac_ext <<_ACEOF
  1071. #line $LINENO "siteconf"
  1072. #include "localStuff.h"
  1073. $ac_includes_default
  1074. #ifdef F77_DUMMY_MAIN
  1075. # ifdef __cplusplus
  1076. extern "C"
  1077. # endif
  1078. int F77_DUMMY_MAIN() { return 1; }
  1079. #endif
  1080. int
  1081. main ()
  1082. {
  1083. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  1084. test_array [0] = 0
  1085.  
  1086. ;
  1087. return 0;
  1088. }
  1089. _ACEOF
  1090. rm -f conftest.$ac_objext
  1091. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1092. (eval $ac_compile) 2>&5
  1093. ac_status=$?
  1094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1095. (exit $ac_status); } &&
  1096. { ac_try='test -s conftest.$ac_objext'
  1097. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1098. (eval $ac_try) 2>&5
  1099. ac_status=$?
  1100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1101. (exit $ac_status); }; }; then
  1102. ac_lo=0 ac_mid=0
  1103. while :; do
  1104. cat >conftest.$ac_ext <<_ACEOF
  1105. #line $LINENO "siteconf"
  1106. #include "localStuff.h"
  1107. $ac_includes_default
  1108. #ifdef F77_DUMMY_MAIN
  1109. # ifdef __cplusplus
  1110. extern "C"
  1111. # endif
  1112. int F77_DUMMY_MAIN() { return 1; }
  1113. #endif
  1114. int
  1115. main ()
  1116. {
  1117. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  1118. test_array [0] = 0
  1119.  
  1120. ;
  1121. return 0;
  1122. }
  1123. _ACEOF
  1124. rm -f conftest.$ac_objext
  1125. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1126. (eval $ac_compile) 2>&5
  1127. ac_status=$?
  1128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1129. (exit $ac_status); } &&
  1130. { ac_try='test -s conftest.$ac_objext'
  1131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1132. (eval $ac_try) 2>&5
  1133. ac_status=$?
  1134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1135. (exit $ac_status); }; }; then
  1136. ac_hi=$ac_mid; break
  1137. else
  1138. echo "$as_me: failed program was:" >&5
  1139. cat conftest.$ac_ext >&5
  1140. ac_lo=`expr $ac_mid + 1`
  1141. if test $ac_lo -le $ac_mid; then
  1142. ac_lo= ac_hi=
  1143. break
  1144. fi
  1145. ac_mid=`expr 2 '*' $ac_mid + 1`
  1146. fi
  1147. rm -f conftest.$ac_objext conftest.$ac_ext
  1148. done
  1149. else
  1150. echo "$as_me: failed program was:" >&5
  1151. cat conftest.$ac_ext >&5
  1152. cat >conftest.$ac_ext <<_ACEOF
  1153. #line $LINENO "siteconf"
  1154. #include "localStuff.h"
  1155. $ac_includes_default
  1156. #ifdef F77_DUMMY_MAIN
  1157. # ifdef __cplusplus
  1158. extern "C"
  1159. # endif
  1160. int F77_DUMMY_MAIN() { return 1; }
  1161. #endif
  1162. int
  1163. main ()
  1164. {
  1165. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  1166. test_array [0] = 0
  1167.  
  1168. ;
  1169. return 0;
  1170. }
  1171. _ACEOF
  1172. rm -f conftest.$ac_objext
  1173. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1174. (eval $ac_compile) 2>&5
  1175. ac_status=$?
  1176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1177. (exit $ac_status); } &&
  1178. { ac_try='test -s conftest.$ac_objext'
  1179. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1180. (eval $ac_try) 2>&5
  1181. ac_status=$?
  1182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1183. (exit $ac_status); }; }; then
  1184. ac_hi=-1 ac_mid=-1
  1185. while :; do
  1186. cat >conftest.$ac_ext <<_ACEOF
  1187. #line $LINENO "siteconf"
  1188. #include "localStuff.h"
  1189. $ac_includes_default
  1190. #ifdef F77_DUMMY_MAIN
  1191. # ifdef __cplusplus
  1192. extern "C"
  1193. # endif
  1194. int F77_DUMMY_MAIN() { return 1; }
  1195. #endif
  1196. int
  1197. main ()
  1198. {
  1199. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  1200. test_array [0] = 0
  1201.  
  1202. ;
  1203. return 0;
  1204. }
  1205. _ACEOF
  1206. rm -f conftest.$ac_objext
  1207. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1208. (eval $ac_compile) 2>&5
  1209. ac_status=$?
  1210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1211. (exit $ac_status); } &&
  1212. { ac_try='test -s conftest.$ac_objext'
  1213. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1214. (eval $ac_try) 2>&5
  1215. ac_status=$?
  1216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1217. (exit $ac_status); }; }; then
  1218. ac_lo=$ac_mid; break
  1219. else
  1220. echo "$as_me: failed program was:" >&5
  1221. cat conftest.$ac_ext >&5
  1222. ac_hi=`expr '(' $ac_mid ')' - 1`
  1223. if test $ac_mid -le $ac_hi; then
  1224. ac_lo= ac_hi=
  1225. break
  1226. fi
  1227. ac_mid=`expr 2 '*' $ac_mid`
  1228. fi
  1229. rm -f conftest.$ac_objext conftest.$ac_ext
  1230. done
  1231. else
  1232. echo "$as_me: failed program was:" >&5
  1233. cat conftest.$ac_ext >&5
  1234. ac_lo= ac_hi=
  1235. fi
  1236. rm -f conftest.$ac_objext conftest.$ac_ext
  1237. fi
  1238. rm -f conftest.$ac_objext conftest.$ac_ext
  1239. # Binary search between lo and hi bounds.
  1240. while test "x$ac_lo" != "x$ac_hi"; do
  1241. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  1242. cat >conftest.$ac_ext <<_ACEOF
  1243. #line $LINENO "siteconf"
  1244. #include "localStuff.h"
  1245. $ac_includes_default
  1246. #ifdef F77_DUMMY_MAIN
  1247. # ifdef __cplusplus
  1248. extern "C"
  1249. # endif
  1250. int F77_DUMMY_MAIN() { return 1; }
  1251. #endif
  1252. int
  1253. main ()
  1254. {
  1255. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  1256. test_array [0] = 0
  1257.  
  1258. ;
  1259. return 0;
  1260. }
  1261. _ACEOF
  1262. rm -f conftest.$ac_objext
  1263. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1264. (eval $ac_compile) 2>&5
  1265. ac_status=$?
  1266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1267. (exit $ac_status); } &&
  1268. { ac_try='test -s conftest.$ac_objext'
  1269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1270. (eval $ac_try) 2>&5
  1271. ac_status=$?
  1272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1273. (exit $ac_status); }; }; then
  1274. ac_hi=$ac_mid
  1275. else
  1276. echo "$as_me: failed program was:" >&5
  1277. cat conftest.$ac_ext >&5
  1278. ac_lo=`expr '(' $ac_mid ')' + 1`
  1279. fi
  1280. rm -f conftest.$ac_objext conftest.$ac_ext
  1281. done
  1282. case $ac_lo in
  1283. ?*) ac_cv_sizeof_int=$ac_lo;;
  1284. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
  1285. echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
  1286. { (exit 1); exit 1; }; } ;;
  1287. esac
  1288. else
  1289. if test "$cross_compiling" = yes; then
  1290. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
  1291. echo "$as_me: error: cannot run test program while cross compiling" >&2;}
  1292. { (exit 1); exit 1; }; }
  1293. else
  1294. cat >conftest.$ac_ext <<_ACEOF
  1295. #line $LINENO "siteconf"
  1296. #include "localStuff.h"
  1297. $ac_includes_default
  1298. long longval () { return (long) (sizeof (int)); }
  1299. unsigned long ulongval () { return (long) (sizeof (int)); }
  1300. #include <stdio.h>
  1301. #include <stdlib.h>
  1302. #ifdef F77_DUMMY_MAIN
  1303. # ifdef __cplusplus
  1304. extern "C"
  1305. # endif
  1306. int F77_DUMMY_MAIN() { return 1; }
  1307. #endif
  1308. int
  1309. main ()
  1310. {
  1311.  
  1312. FILE *f = fopen ("conftest.val", "w");
  1313. if (! f)
  1314. exit (1);
  1315. if (((long) (sizeof (int))) < 0)
  1316. {
  1317. long i = longval ();
  1318. if (i != ((long) (sizeof (int))))
  1319. exit (1);
  1320. fprintf (f, "%ld\n", i);
  1321. }
  1322. else
  1323. {
  1324. unsigned long i = ulongval ();
  1325. if (i != ((long) (sizeof (int))))
  1326. exit (1);
  1327. fprintf (f, "%lu\n", i);
  1328. }
  1329. exit (ferror (f) || fclose (f) != 0);
  1330.  
  1331. ;
  1332. return 0;
  1333. }
  1334. _ACEOF
  1335. rm -f conftest$ac_exeext
  1336. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1337. (eval $ac_link) 2>&5
  1338. ac_status=$?
  1339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1340. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  1341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1342. (eval $ac_try) 2>&5
  1343. ac_status=$?
  1344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1345. (exit $ac_status); }; }; then
  1346. ac_cv_sizeof_int=`cat conftest.val`
  1347. else
  1348. echo "$as_me: program exited with status $ac_status" >&5
  1349. echo "$as_me: failed program was:" >&5
  1350. cat conftest.$ac_ext >&5
  1351. ( exit $ac_status )
  1352. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
  1353. echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
  1354. { (exit 1); exit 1; }; }
  1355. fi
  1356. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  1357. fi
  1358. fi
  1359. rm -f conftest.val
  1360. else
  1361. ac_cv_sizeof_int=0
  1362. fi
  1363. fi
  1364. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  1365. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  1366. cat >>localStuff.h <<_ACEOF
  1367. #define SIZEOF_INT $ac_cv_sizeof_int
  1368. _ACEOF
  1369.  
  1370.  
  1371.  
  1372. echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
  1373. echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
  1374. if test "${ac_cv_have_u_intxx_t+set}" = set; then
  1375. echo $ECHO_N "(cached) $ECHO_C" >&6
  1376. else
  1377.  
  1378. cat >conftest.$ac_ext <<_ACEOF
  1379. #line $LINENO "siteconf"
  1380. #include "localStuff.h"
  1381. #include <sys/types.h>
  1382. #ifdef F77_DUMMY_MAIN
  1383. # ifdef __cplusplus
  1384. extern "C"
  1385. # endif
  1386. int F77_DUMMY_MAIN() { return 1; }
  1387. #endif
  1388. int
  1389. main ()
  1390. {
  1391. u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
  1392. ;
  1393. return 0;
  1394. }
  1395. _ACEOF
  1396. rm -f conftest.$ac_objext
  1397. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1398. (eval $ac_compile) 2>&5
  1399. ac_status=$?
  1400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1401. (exit $ac_status); } &&
  1402. { ac_try='test -s conftest.$ac_objext'
  1403. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1404. (eval $ac_try) 2>&5
  1405. ac_status=$?
  1406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1407. (exit $ac_status); }; }; then
  1408. ac_cv_have_u_intxx_t="yes"
  1409. else
  1410. echo "$as_me: failed program was:" >&5
  1411. cat conftest.$ac_ext >&5
  1412. ac_cv_have_u_intxx_t="no"
  1413.  
  1414. fi
  1415. rm -f conftest.$ac_objext conftest.$ac_ext
  1416.  
  1417. fi
  1418. echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
  1419. echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
  1420. if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
  1421. cat >>localStuff.h <<\_ACEOF
  1422. #define HAVE_U_INTXX_T 1
  1423. _ACEOF
  1424.  
  1425. have_u_intxx_t=1
  1426. fi
  1427.  
  1428. if test -z "$have_u_intxx_t" ; then
  1429. echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
  1430. echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
  1431. cat >conftest.$ac_ext <<_ACEOF
  1432. #line $LINENO "siteconf"
  1433. #include "localStuff.h"
  1434. #include <sys/socket.h>
  1435. #ifdef F77_DUMMY_MAIN
  1436. # ifdef __cplusplus
  1437. extern "C"
  1438. # endif
  1439. int F77_DUMMY_MAIN() { return 1; }
  1440. #endif
  1441. int
  1442. main ()
  1443. {
  1444. u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
  1445. ;
  1446. return 0;
  1447. }
  1448. _ACEOF
  1449. rm -f conftest.$ac_objext
  1450. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1451. (eval $ac_compile) 2>&5
  1452. ac_status=$?
  1453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1454. (exit $ac_status); } &&
  1455. { ac_try='test -s conftest.$ac_objext'
  1456. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1457. (eval $ac_try) 2>&5
  1458. ac_status=$?
  1459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1460. (exit $ac_status); }; }; then
  1461.  
  1462. cat >>localStuff.h <<\_ACEOF
  1463. #define HAVE_U_INTXX_T 2
  1464. _ACEOF
  1465.  
  1466. echo "$as_me:$LINENO: result: yes" >&5
  1467. echo "${ECHO_T}yes" >&6
  1468.  
  1469. else
  1470. echo "$as_me: failed program was:" >&5
  1471. cat conftest.$ac_ext >&5
  1472. echo "$as_me:$LINENO: result: no" >&5
  1473. echo "${ECHO_T}no" >&6
  1474.  
  1475. fi
  1476. rm -f conftest.$ac_objext conftest.$ac_ext
  1477. fi
  1478.  
  1479. if test -z "$have_u_intxx_t" ; then
  1480. echo "$as_me:$LINENO: checking for uintXX_t types" >&5
  1481. echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
  1482. if test "${ac_cv_have_uintxx_t+set}" = set; then
  1483. echo $ECHO_N "(cached) $ECHO_C" >&6
  1484. else
  1485.  
  1486. cat >conftest.$ac_ext <<_ACEOF
  1487. #line $LINENO "siteconf"
  1488. #include "localStuff.h"
  1489.  
  1490. #include <sys/types.h>
  1491.  
  1492. #ifdef F77_DUMMY_MAIN
  1493. # ifdef __cplusplus
  1494. extern "C"
  1495. # endif
  1496. int F77_DUMMY_MAIN() { return 1; }
  1497. #endif
  1498. int
  1499. main ()
  1500. {
  1501. uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
  1502. ;
  1503. return 0;
  1504. }
  1505. _ACEOF
  1506. rm -f conftest.$ac_objext
  1507. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1508. (eval $ac_compile) 2>&5
  1509. ac_status=$?
  1510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1511. (exit $ac_status); } &&
  1512. { ac_try='test -s conftest.$ac_objext'
  1513. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1514. (eval $ac_try) 2>&5
  1515. ac_status=$?
  1516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1517. (exit $ac_status); }; }; then
  1518. ac_cv_have_uintxx_t="yes"
  1519. else
  1520. echo "$as_me: failed program was:" >&5
  1521. cat conftest.$ac_ext >&5
  1522. ac_cv_have_uintxx_t="no"
  1523.  
  1524. fi
  1525. rm -f conftest.$ac_objext conftest.$ac_ext
  1526.  
  1527. fi
  1528. echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
  1529. echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
  1530. if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
  1531. cat >>localStuff.h <<\_ACEOF
  1532. #define HAVE_UINTXX_T 1
  1533. _ACEOF
  1534.  
  1535. fi
  1536. fi
  1537.  
  1538. if test -z "$have_uintxx_t" ; then
  1539. echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
  1540. echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
  1541. cat >conftest.$ac_ext <<_ACEOF
  1542. #line $LINENO "siteconf"
  1543. #include "localStuff.h"
  1544. #include <stdint.h>
  1545. #ifdef F77_DUMMY_MAIN
  1546. # ifdef __cplusplus
  1547. extern "C"
  1548. # endif
  1549. int F77_DUMMY_MAIN() { return 1; }
  1550. #endif
  1551. int
  1552. main ()
  1553. {
  1554. uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
  1555. ;
  1556. return 0;
  1557. }
  1558. _ACEOF
  1559. rm -f conftest.$ac_objext
  1560. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1561. (eval $ac_compile) 2>&5
  1562. ac_status=$?
  1563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1564. (exit $ac_status); } &&
  1565. { ac_try='test -s conftest.$ac_objext'
  1566. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1567. (eval $ac_try) 2>&5
  1568. ac_status=$?
  1569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1570. (exit $ac_status); }; }; then
  1571.  
  1572. cat >>localStuff.h <<\_ACEOF
  1573. #define HAVE_UINTXX_T 2
  1574. _ACEOF
  1575.  
  1576. echo "$as_me:$LINENO: result: yes" >&5
  1577. echo "${ECHO_T}yes" >&6
  1578.  
  1579. else
  1580. echo "$as_me: failed program was:" >&5
  1581. cat conftest.$ac_ext >&5
  1582. echo "$as_me:$LINENO: result: no" >&5
  1583. echo "${ECHO_T}no" >&6
  1584.  
  1585. fi
  1586. rm -f conftest.$ac_objext conftest.$ac_ext
  1587. fi
  1588.  
  1589. # checking for inet_aton
  1590. if test -z "$have_uintxx_t" ; then
  1591. echo "$as_me:$LINENO: checking for inet_aton" >&5
  1592. echo $ECHO_N "checking for inet_aton $ECHO_C" >&6
  1593. cat >conftest.$ac_ext <<_ACEOF
  1594. #line $LINENO "siteconf"
  1595. #include <sys/types.h>
  1596. #include <sys/socket.h>
  1597. #include <netinet/in.h>
  1598. #include <arpa/inet.h>
  1599. #ifdef F77_DUMMY_MAIN
  1600. # ifdef __cplusplus
  1601. extern "C"
  1602. # endif
  1603. int F77_DUMMY_MAIN() { return 1; }
  1604. #endif
  1605. int
  1606. main ()
  1607. {
  1608. struct in_addr in;
  1609. char * c = "127.0.0.1";
  1610.  
  1611. c = (char *)"127.0.0.1";
  1612. inet_aton(c,&in);
  1613. ;
  1614. return 0;
  1615. }
  1616. _ACEOF
  1617.  
  1618. rm -f conftest.$ac_objext
  1619. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1620. (eval $ac_link) 2>&5
  1621. ac_status=$?
  1622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1623. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  1624. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1625. (eval $ac_try) 2>&5
  1626. ac_status=$?
  1627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1628. (exit $ac_status); }; }; then
  1629. cat >>localStuff.h <<\_ACEOF
  1630. #define LOCAL_HAVE_inet_aton
  1631. _ACEOF
  1632.  
  1633. echo "$as_me:$LINENO: result: yes" >&5
  1634. echo "${ECHO_T}yes" >&6
  1635.  
  1636. else
  1637. echo "$as_me: failed program was:" >&5
  1638. cat conftest.$ac_ext >&5
  1639. echo "$as_me:$LINENO: result: no" >&5
  1640. echo "${ECHO_T}no" >&6
  1641.  
  1642. fi
  1643. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  1644. fi
  1645.  
  1646. # checking for inet_pton
  1647. if test -z "$have_uintxx_t" ; then
  1648. echo "$as_me:$LINENO: checking for inet_pton" >&5
  1649. echo $ECHO_N "checking for inet_pton $ECHO_C" >&6
  1650. cat >conftest.$ac_ext <<_ACEOF
  1651. #line $LINENO "siteconf"
  1652. #include <sys/types.h>
  1653. #include <sys/socket.h>
  1654. #include <netinet/in.h>
  1655. #include <arpa/inet.h>
  1656. #ifdef F77_DUMMY_MAIN
  1657. # ifdef __cplusplus
  1658. extern "C"
  1659. # endif
  1660. int F77_DUMMY_MAIN() { return 1; }
  1661. #endif
  1662. int
  1663. main ()
  1664. {
  1665. char * c;
  1666. struct in_addr in;
  1667.  
  1668. c = (char *)"127.0.0.1";
  1669. inet_pton(AF_INET,c,&in);
  1670. ;
  1671. return 0;
  1672. }
  1673. _ACEOF
  1674.  
  1675. rm -f conftest.$ac_objext
  1676. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1677. (eval $ac_link) 2>&5
  1678. ac_status=$?
  1679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1680. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  1681. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1682. (eval $ac_try) 2>&5
  1683. ac_status=$?
  1684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1685. (exit $ac_status); }; }; then
  1686. cat >>localStuff.h <<\_ACEOF
  1687. #define LOCAL_HAVE_inet_pton
  1688. _ACEOF
  1689.  
  1690. echo "$as_me:$LINENO: result: yes" >&5
  1691. echo "${ECHO_T}yes" >&6
  1692.  
  1693. else
  1694. echo "$as_me: failed program was:" >&5
  1695. cat conftest.$ac_ext >&5
  1696. echo "$as_me:$LINENO: result: no" >&5
  1697. echo "${ECHO_T}no" >&6
  1698.  
  1699. fi
  1700. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  1701. fi
  1702.  
  1703. # checking for ENDIANness
  1704.  
  1705. if test -z "$have_uintxx_t" ; then
  1706. echo "$as_me:$LINENO: checking ENDIANness" >&5
  1707. echo $ECHO_N "checking for ENDIANness $ECHO_C" >&6
  1708. cat >conftest.$ac_ext <<_ACEOF
  1709. #line $LINENO "siteconf"
  1710. #ifdef F77_DUMMY_MAIN
  1711. # ifdef __cplusplus
  1712. extern "C"
  1713. # endif
  1714. int F77_DUMMY_MAIN() { return 1; }
  1715. #endif
  1716. #include <sys/types.h>
  1717. #include "localStuff.h"
  1718.  
  1719. typedef union
  1720. {
  1721. int16_t i;
  1722. char c[2];
  1723. } endian;
  1724.  
  1725. int
  1726. main()
  1727. {
  1728.  
  1729. endian e;
  1730.  
  1731. e.i = 1;
  1732. return - (int)e.c[0];
  1733. }
  1734. _ACEOF
  1735.  
  1736. rm -f conftest.$ac_objext
  1737. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1738. (eval $ac_link) 2>&5
  1739. ac_status=$?
  1740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1741. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  1742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1743. (eval $ac_try) 2>&5
  1744. ac_status=$?
  1745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1746. };} && [ $ac_status -ne 1 ]; then
  1747. if [ $ac_status -eq 0 ]; then
  1748. cat >>localStuff.h <<\_ACEOF
  1749. #define host_is_BIG_ENDIAN
  1750. _ACEOF
  1751. echo "$as_me:$LINENO: result: BIG_ENDIAN" >&5
  1752. echo "${ECHO_T}... BIG_ENDIAN" >&6
  1753. else
  1754. cat >>localStuff.h <<\_ACEOF
  1755. #define host_is_LITTLE_ENDIAN
  1756. _ACEOF
  1757. echo "$as_me:$LINENO: result: LITTLE_ENDIAN" >&5
  1758. echo "${ECHO_T}... LITTLE_ENDIAN" >&6
  1759. fi
  1760. else
  1761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1762. echo "$as_me: failed program was:" >&5
  1763. cat conftest.$ac_ext >&5
  1764. { echo "$as_me:$LINENO: error: can't figure out ENDIANness" >&5
  1765. echo "${ECHO_T}error: can't figure out ENDIANness" >&6
  1766. { (exit 1); exit 1; }; };
  1767. fi
  1768. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  1769. fi
  1770.