Changeset 1406 for TI05-delivery/trunk
- Timestamp:
- 16/08/06 12:08:32 (14 years ago)
- Location:
- TI05-delivery/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/trunk/src/bbftp-client-3.2.0/bbftpc/configure
r1389 r1406 863 863 --with-afs=DIR Enable AFS interface: search AFS libs in DIR/lib 864 864 --without-afs Disable AFS (DEFAULT) 865 866 --with-rfio Enable RFIO interface: automatic search (DEFAULT) in /usr/local 867 --with-rfio=DIR Enable RFIO interface: search libshift in DIR/lib and .h in DIR/include 868 --without-rfio Disable RFIO interface 869 870 --with-hpss Enable HPSS interface: automatic search (DEFAULT) in /usr/local 871 --with-hpss=DIR Enable HPSS interface: search libhpss in DIR/lib 872 --without-hpss Disable HPSS interface 865 873 866 874 --with-ssl Enable encoding: automatic search (DEFAULT) … … 11357 11365 11358 11366 11359 # 11360 # This section requires a macro which isn't provided in the bbftp distribution 11361 # For the moment I've disabled it since NDG doesn't expect to support RFIO. 11362 # 11363 #AC_ARG_WITH([rfio],[ 11364 # --with-rfio Enable RFIO interface: automatic search (DEFAULT) in /usr/local 11365 # --with-rfio=DIR Enable RFIO interface: search libshift in DIR/lib and .h in DIR/include 11366 # --without-rfio Disable RFIO interface], 11367 #[result=yes],[result=no]) 11368 #if test $result = no ; then 11369 # with_rfio="yes" 11370 #fi 11371 #if test "$with_rfio" != "no" ; then 11372 # if test "$with_rfio" = "yes" ; then 11373 # CCIN2P3_CHECK_RFIO([RFIOOBJS="bbftp_retr_rfio.o bbftp_store_rfio.o"],[AC_MSG_WARN(RFIO not installed)]) 11374 # else 11375 # CCIN2P3_CHECK_RFIO([RFIOOBJS="bbftp_retr_rfio.o bbftp_store_rfio.o"],[AC_MSG_WARN(RFIO not installed)],[$with_rfio]) 11376 # fi 11377 #fi 11367 11368 11369 # Check whether --with-rfio or --without-rfio was given. 11370 if test "${with_rfio+set}" = set; then 11371 withval="$with_rfio" 11372 result=yes 11373 else 11374 result=no 11375 fi; 11376 if test $result = no ; then 11377 with_rfio="yes" 11378 fi 11379 if test "$with_rfio" != "no" ; then 11380 if test "$with_rfio" = "yes" ; then 11381 11382 OLDLDFLAGS="$LDFLAGS" 11383 OLDCPPFLAGS="$CPPFLAGS" 11384 OLDLIBS=$LIBS 11385 if test 2 -gt 2 ; then 11386 rfio_root_dir= 11387 else 11388 rfio_root_dir="/usr/local" 11389 fi 11390 # LDFLAGS="$LDFLAGS -L$rfio_root_dir/lib" 11391 LIBS="$LIBS $rfio_root_dir/lib/libshift.a" 11392 CPPFLAGS="$CPPFLAGS -I$rfio_root_dir/include -I$rfio_root_dir/include/shift" 11393 echo "$as_me:$LINENO: checking for library containing getservbyname_r" >&5 11394 echo $ECHO_N "checking for library containing getservbyname_r... $ECHO_C" >&6 11395 if test "${ac_cv_search_getservbyname_r+set}" = set; then 11396 echo $ECHO_N "(cached) $ECHO_C" >&6 11397 else 11398 ac_func_search_save_LIBS=$LIBS 11399 ac_cv_search_getservbyname_r=no 11400 cat >conftest.$ac_ext <<_ACEOF 11401 /* confdefs.h. */ 11402 _ACEOF 11403 cat confdefs.h >>conftest.$ac_ext 11404 cat >>conftest.$ac_ext <<_ACEOF 11405 /* end confdefs.h. */ 11406 11407 /* Override any gcc2 internal prototype to avoid an error. */ 11408 #ifdef __cplusplus 11409 extern "C" 11410 #endif 11411 /* We use char because int might match the return type of a gcc2 11412 builtin and then its argument prototype would still apply. */ 11413 char getservbyname_r (); 11414 int 11415 main () 11416 { 11417 getservbyname_r (); 11418 ; 11419 return 0; 11420 } 11421 _ACEOF 11422 rm -f conftest.$ac_objext conftest$ac_exeext 11423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11424 (eval $ac_link) 2>conftest.er1 11425 ac_status=$? 11426 grep -v '^ *+' conftest.er1 >conftest.err 11427 rm -f conftest.er1 11428 cat conftest.err >&5 11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11430 (exit $ac_status); } && 11431 { ac_try='test -z "$ac_c_werror_flag" 11432 || test ! -s conftest.err' 11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11434 (eval $ac_try) 2>&5 11435 ac_status=$? 11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11437 (exit $ac_status); }; } && 11438 { ac_try='test -s conftest$ac_exeext' 11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11440 (eval $ac_try) 2>&5 11441 ac_status=$? 11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11443 (exit $ac_status); }; }; then 11444 ac_cv_search_getservbyname_r="none required" 11445 else 11446 echo "$as_me: failed program was:" >&5 11447 sed 's/^/| /' conftest.$ac_ext >&5 11448 11449 fi 11450 rm -f conftest.err conftest.$ac_objext \ 11451 conftest$ac_exeext conftest.$ac_ext 11452 if test "$ac_cv_search_getservbyname_r" = no; then 11453 for ac_lib in socket xnet; do 11454 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11455 cat >conftest.$ac_ext <<_ACEOF 11456 /* confdefs.h. */ 11457 _ACEOF 11458 cat confdefs.h >>conftest.$ac_ext 11459 cat >>conftest.$ac_ext <<_ACEOF 11460 /* end confdefs.h. */ 11461 11462 /* Override any gcc2 internal prototype to avoid an error. */ 11463 #ifdef __cplusplus 11464 extern "C" 11465 #endif 11466 /* We use char because int might match the return type of a gcc2 11467 builtin and then its argument prototype would still apply. */ 11468 char getservbyname_r (); 11469 int 11470 main () 11471 { 11472 getservbyname_r (); 11473 ; 11474 return 0; 11475 } 11476 _ACEOF 11477 rm -f conftest.$ac_objext conftest$ac_exeext 11478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11479 (eval $ac_link) 2>conftest.er1 11480 ac_status=$? 11481 grep -v '^ *+' conftest.er1 >conftest.err 11482 rm -f conftest.er1 11483 cat conftest.err >&5 11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11485 (exit $ac_status); } && 11486 { ac_try='test -z "$ac_c_werror_flag" 11487 || test ! -s conftest.err' 11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11489 (eval $ac_try) 2>&5 11490 ac_status=$? 11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11492 (exit $ac_status); }; } && 11493 { ac_try='test -s conftest$ac_exeext' 11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11495 (eval $ac_try) 2>&5 11496 ac_status=$? 11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11498 (exit $ac_status); }; }; then 11499 ac_cv_search_getservbyname_r="-l$ac_lib" 11500 break 11501 else 11502 echo "$as_me: failed program was:" >&5 11503 sed 's/^/| /' conftest.$ac_ext >&5 11504 11505 fi 11506 rm -f conftest.err conftest.$ac_objext \ 11507 conftest$ac_exeext conftest.$ac_ext 11508 done 11509 fi 11510 LIBS=$ac_func_search_save_LIBS 11511 fi 11512 echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname_r" >&5 11513 echo "${ECHO_T}$ac_cv_search_getservbyname_r" >&6 11514 if test "$ac_cv_search_getservbyname_r" != no; then 11515 test "$ac_cv_search_getservbyname_r" = "none required" || LIBS="$ac_cv_search_getservbyname_r $LIBS" 11516 11517 fi 11518 echo "$as_me:$LINENO: checking for library containing gethostbyaddr_r" >&5 11519 echo $ECHO_N "checking for library containing gethostbyaddr_r... $ECHO_C" >&6 11520 if test "${ac_cv_search_gethostbyaddr_r+set}" = set; then 11521 echo $ECHO_N "(cached) $ECHO_C" >&6 11522 else 11523 ac_func_search_save_LIBS=$LIBS 11524 ac_cv_search_gethostbyaddr_r=no 11525 cat >conftest.$ac_ext <<_ACEOF 11526 /* confdefs.h. */ 11527 _ACEOF 11528 cat confdefs.h >>conftest.$ac_ext 11529 cat >>conftest.$ac_ext <<_ACEOF 11530 /* end confdefs.h. */ 11531 11532 /* Override any gcc2 internal prototype to avoid an error. */ 11533 #ifdef __cplusplus 11534 extern "C" 11535 #endif 11536 /* We use char because int might match the return type of a gcc2 11537 builtin and then its argument prototype would still apply. */ 11538 char gethostbyaddr_r (); 11539 int 11540 main () 11541 { 11542 gethostbyaddr_r (); 11543 ; 11544 return 0; 11545 } 11546 _ACEOF 11547 rm -f conftest.$ac_objext conftest$ac_exeext 11548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11549 (eval $ac_link) 2>conftest.er1 11550 ac_status=$? 11551 grep -v '^ *+' conftest.er1 >conftest.err 11552 rm -f conftest.er1 11553 cat conftest.err >&5 11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11555 (exit $ac_status); } && 11556 { ac_try='test -z "$ac_c_werror_flag" 11557 || test ! -s conftest.err' 11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11559 (eval $ac_try) 2>&5 11560 ac_status=$? 11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11562 (exit $ac_status); }; } && 11563 { ac_try='test -s conftest$ac_exeext' 11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11565 (eval $ac_try) 2>&5 11566 ac_status=$? 11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11568 (exit $ac_status); }; }; then 11569 ac_cv_search_gethostbyaddr_r="none required" 11570 else 11571 echo "$as_me: failed program was:" >&5 11572 sed 's/^/| /' conftest.$ac_ext >&5 11573 11574 fi 11575 rm -f conftest.err conftest.$ac_objext \ 11576 conftest$ac_exeext conftest.$ac_ext 11577 if test "$ac_cv_search_gethostbyaddr_r" = no; then 11578 for ac_lib in nsl; do 11579 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11580 cat >conftest.$ac_ext <<_ACEOF 11581 /* confdefs.h. */ 11582 _ACEOF 11583 cat confdefs.h >>conftest.$ac_ext 11584 cat >>conftest.$ac_ext <<_ACEOF 11585 /* end confdefs.h. */ 11586 11587 /* Override any gcc2 internal prototype to avoid an error. */ 11588 #ifdef __cplusplus 11589 extern "C" 11590 #endif 11591 /* We use char because int might match the return type of a gcc2 11592 builtin and then its argument prototype would still apply. */ 11593 char gethostbyaddr_r (); 11594 int 11595 main () 11596 { 11597 gethostbyaddr_r (); 11598 ; 11599 return 0; 11600 } 11601 _ACEOF 11602 rm -f conftest.$ac_objext conftest$ac_exeext 11603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11604 (eval $ac_link) 2>conftest.er1 11605 ac_status=$? 11606 grep -v '^ *+' conftest.er1 >conftest.err 11607 rm -f conftest.er1 11608 cat conftest.err >&5 11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11610 (exit $ac_status); } && 11611 { ac_try='test -z "$ac_c_werror_flag" 11612 || test ! -s conftest.err' 11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11614 (eval $ac_try) 2>&5 11615 ac_status=$? 11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11617 (exit $ac_status); }; } && 11618 { ac_try='test -s conftest$ac_exeext' 11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11620 (eval $ac_try) 2>&5 11621 ac_status=$? 11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11623 (exit $ac_status); }; }; then 11624 ac_cv_search_gethostbyaddr_r="-l$ac_lib" 11625 break 11626 else 11627 echo "$as_me: failed program was:" >&5 11628 sed 's/^/| /' conftest.$ac_ext >&5 11629 11630 fi 11631 rm -f conftest.err conftest.$ac_objext \ 11632 conftest$ac_exeext conftest.$ac_ext 11633 done 11634 fi 11635 LIBS=$ac_func_search_save_LIBS 11636 fi 11637 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyaddr_r" >&5 11638 echo "${ECHO_T}$ac_cv_search_gethostbyaddr_r" >&6 11639 if test "$ac_cv_search_gethostbyaddr_r" != no; then 11640 test "$ac_cv_search_gethostbyaddr_r" = "none required" || LIBS="$ac_cv_search_gethostbyaddr_r $LIBS" 11641 11642 fi 11643 echo "$as_me:$LINENO: checking for library containing sched_get_priority_max" >&5 11644 echo $ECHO_N "checking for library containing sched_get_priority_max... $ECHO_C" >&6 11645 if test "${ac_cv_search_sched_get_priority_max+set}" = set; then 11646 echo $ECHO_N "(cached) $ECHO_C" >&6 11647 else 11648 ac_func_search_save_LIBS=$LIBS 11649 ac_cv_search_sched_get_priority_max=no 11650 cat >conftest.$ac_ext <<_ACEOF 11651 /* confdefs.h. */ 11652 _ACEOF 11653 cat confdefs.h >>conftest.$ac_ext 11654 cat >>conftest.$ac_ext <<_ACEOF 11655 /* end confdefs.h. */ 11656 11657 /* Override any gcc2 internal prototype to avoid an error. */ 11658 #ifdef __cplusplus 11659 extern "C" 11660 #endif 11661 /* We use char because int might match the return type of a gcc2 11662 builtin and then its argument prototype would still apply. */ 11663 char sched_get_priority_max (); 11664 int 11665 main () 11666 { 11667 sched_get_priority_max (); 11668 ; 11669 return 0; 11670 } 11671 _ACEOF 11672 rm -f conftest.$ac_objext conftest$ac_exeext 11673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11674 (eval $ac_link) 2>conftest.er1 11675 ac_status=$? 11676 grep -v '^ *+' conftest.er1 >conftest.err 11677 rm -f conftest.er1 11678 cat conftest.err >&5 11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11680 (exit $ac_status); } && 11681 { ac_try='test -z "$ac_c_werror_flag" 11682 || test ! -s conftest.err' 11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11684 (eval $ac_try) 2>&5 11685 ac_status=$? 11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11687 (exit $ac_status); }; } && 11688 { ac_try='test -s conftest$ac_exeext' 11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11690 (eval $ac_try) 2>&5 11691 ac_status=$? 11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11693 (exit $ac_status); }; }; then 11694 ac_cv_search_sched_get_priority_max="none required" 11695 else 11696 echo "$as_me: failed program was:" >&5 11697 sed 's/^/| /' conftest.$ac_ext >&5 11698 11699 fi 11700 rm -f conftest.err conftest.$ac_objext \ 11701 conftest$ac_exeext conftest.$ac_ext 11702 if test "$ac_cv_search_sched_get_priority_max" = no; then 11703 for ac_lib in rt posix4; do 11704 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11705 cat >conftest.$ac_ext <<_ACEOF 11706 /* confdefs.h. */ 11707 _ACEOF 11708 cat confdefs.h >>conftest.$ac_ext 11709 cat >>conftest.$ac_ext <<_ACEOF 11710 /* end confdefs.h. */ 11711 11712 /* Override any gcc2 internal prototype to avoid an error. */ 11713 #ifdef __cplusplus 11714 extern "C" 11715 #endif 11716 /* We use char because int might match the return type of a gcc2 11717 builtin and then its argument prototype would still apply. */ 11718 char sched_get_priority_max (); 11719 int 11720 main () 11721 { 11722 sched_get_priority_max (); 11723 ; 11724 return 0; 11725 } 11726 _ACEOF 11727 rm -f conftest.$ac_objext conftest$ac_exeext 11728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11729 (eval $ac_link) 2>conftest.er1 11730 ac_status=$? 11731 grep -v '^ *+' conftest.er1 >conftest.err 11732 rm -f conftest.er1 11733 cat conftest.err >&5 11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11735 (exit $ac_status); } && 11736 { ac_try='test -z "$ac_c_werror_flag" 11737 || test ! -s conftest.err' 11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11739 (eval $ac_try) 2>&5 11740 ac_status=$? 11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11742 (exit $ac_status); }; } && 11743 { ac_try='test -s conftest$ac_exeext' 11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11745 (eval $ac_try) 2>&5 11746 ac_status=$? 11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11748 (exit $ac_status); }; }; then 11749 ac_cv_search_sched_get_priority_max="-l$ac_lib" 11750 break 11751 else 11752 echo "$as_me: failed program was:" >&5 11753 sed 's/^/| /' conftest.$ac_ext >&5 11754 11755 fi 11756 rm -f conftest.err conftest.$ac_objext \ 11757 conftest$ac_exeext conftest.$ac_ext 11758 done 11759 fi 11760 LIBS=$ac_func_search_save_LIBS 11761 fi 11762 echo "$as_me:$LINENO: result: $ac_cv_search_sched_get_priority_max" >&5 11763 echo "${ECHO_T}$ac_cv_search_sched_get_priority_max" >&6 11764 if test "$ac_cv_search_sched_get_priority_max" != no; then 11765 test "$ac_cv_search_sched_get_priority_max" = "none required" || LIBS="$ac_cv_search_sched_get_priority_max $LIBS" 11766 11767 fi 11768 as_ac_File=`echo "ac_cv_file_$rfio_root_dir/include/shift/rfio_api.h" | $as_tr_sh` 11769 echo "$as_me:$LINENO: checking for $rfio_root_dir/include/shift/rfio_api.h" >&5 11770 echo $ECHO_N "checking for $rfio_root_dir/include/shift/rfio_api.h... $ECHO_C" >&6 11771 if eval "test \"\${$as_ac_File+set}\" = set"; then 11772 echo $ECHO_N "(cached) $ECHO_C" >&6 11773 else 11774 test "$cross_compiling" = yes && 11775 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 11776 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 11777 { (exit 1); exit 1; }; } 11778 if test -r "$rfio_root_dir/include/shift/rfio_api.h"; then 11779 eval "$as_ac_File=yes" 11780 else 11781 eval "$as_ac_File=no" 11782 fi 11783 fi 11784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 11785 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 11786 if test `eval echo '${'$as_ac_File'}'` = yes; then 11787 result=yes 11788 else 11789 result=no 11790 fi 11791 11792 if test $result = yes ; then 11793 echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 11794 echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6 11795 if test "${ac_cv_search_pthread_create+set}" = set; then 11796 echo $ECHO_N "(cached) $ECHO_C" >&6 11797 else 11798 ac_func_search_save_LIBS=$LIBS 11799 ac_cv_search_pthread_create=no 11800 cat >conftest.$ac_ext <<_ACEOF 11801 /* confdefs.h. */ 11802 _ACEOF 11803 cat confdefs.h >>conftest.$ac_ext 11804 cat >>conftest.$ac_ext <<_ACEOF 11805 /* end confdefs.h. */ 11806 11807 /* Override any gcc2 internal prototype to avoid an error. */ 11808 #ifdef __cplusplus 11809 extern "C" 11810 #endif 11811 /* We use char because int might match the return type of a gcc2 11812 builtin and then its argument prototype would still apply. */ 11813 char pthread_create (); 11814 int 11815 main () 11816 { 11817 pthread_create (); 11818 ; 11819 return 0; 11820 } 11821 _ACEOF 11822 rm -f conftest.$ac_objext conftest$ac_exeext 11823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11824 (eval $ac_link) 2>conftest.er1 11825 ac_status=$? 11826 grep -v '^ *+' conftest.er1 >conftest.err 11827 rm -f conftest.er1 11828 cat conftest.err >&5 11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11830 (exit $ac_status); } && 11831 { ac_try='test -z "$ac_c_werror_flag" 11832 || test ! -s conftest.err' 11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11834 (eval $ac_try) 2>&5 11835 ac_status=$? 11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11837 (exit $ac_status); }; } && 11838 { ac_try='test -s conftest$ac_exeext' 11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11840 (eval $ac_try) 2>&5 11841 ac_status=$? 11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11843 (exit $ac_status); }; }; then 11844 ac_cv_search_pthread_create="none required" 11845 else 11846 echo "$as_me: failed program was:" >&5 11847 sed 's/^/| /' conftest.$ac_ext >&5 11848 11849 fi 11850 rm -f conftest.err conftest.$ac_objext \ 11851 conftest$ac_exeext conftest.$ac_ext 11852 if test "$ac_cv_search_pthread_create" = no; then 11853 for ac_lib in pthread pthreads dce; do 11854 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11855 cat >conftest.$ac_ext <<_ACEOF 11856 /* confdefs.h. */ 11857 _ACEOF 11858 cat confdefs.h >>conftest.$ac_ext 11859 cat >>conftest.$ac_ext <<_ACEOF 11860 /* end confdefs.h. */ 11861 11862 /* Override any gcc2 internal prototype to avoid an error. */ 11863 #ifdef __cplusplus 11864 extern "C" 11865 #endif 11866 /* We use char because int might match the return type of a gcc2 11867 builtin and then its argument prototype would still apply. */ 11868 char pthread_create (); 11869 int 11870 main () 11871 { 11872 pthread_create (); 11873 ; 11874 return 0; 11875 } 11876 _ACEOF 11877 rm -f conftest.$ac_objext conftest$ac_exeext 11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11879 (eval $ac_link) 2>conftest.er1 11880 ac_status=$? 11881 grep -v '^ *+' conftest.er1 >conftest.err 11882 rm -f conftest.er1 11883 cat conftest.err >&5 11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11885 (exit $ac_status); } && 11886 { ac_try='test -z "$ac_c_werror_flag" 11887 || test ! -s conftest.err' 11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11889 (eval $ac_try) 2>&5 11890 ac_status=$? 11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11892 (exit $ac_status); }; } && 11893 { ac_try='test -s conftest$ac_exeext' 11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11895 (eval $ac_try) 2>&5 11896 ac_status=$? 11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11898 (exit $ac_status); }; }; then 11899 ac_cv_search_pthread_create="-l$ac_lib" 11900 break 11901 else 11902 echo "$as_me: failed program was:" >&5 11903 sed 's/^/| /' conftest.$ac_ext >&5 11904 11905 fi 11906 rm -f conftest.err conftest.$ac_objext \ 11907 conftest$ac_exeext conftest.$ac_ext 11908 done 11909 fi 11910 LIBS=$ac_func_search_save_LIBS 11911 fi 11912 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 11913 echo "${ECHO_T}$ac_cv_search_pthread_create" >&6 11914 if test "$ac_cv_search_pthread_create" != no; then 11915 test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS" 11916 11917 fi 11918 echo "$as_me:$LINENO: checking for library containing pthread_kill" >&5 11919 echo $ECHO_N "checking for library containing pthread_kill... $ECHO_C" >&6 11920 if test "${ac_cv_search_pthread_kill+set}" = set; then 11921 echo $ECHO_N "(cached) $ECHO_C" >&6 11922 else 11923 ac_func_search_save_LIBS=$LIBS 11924 ac_cv_search_pthread_kill=no 11925 cat >conftest.$ac_ext <<_ACEOF 11926 /* confdefs.h. */ 11927 _ACEOF 11928 cat confdefs.h >>conftest.$ac_ext 11929 cat >>conftest.$ac_ext <<_ACEOF 11930 /* end confdefs.h. */ 11931 11932 /* Override any gcc2 internal prototype to avoid an error. */ 11933 #ifdef __cplusplus 11934 extern "C" 11935 #endif 11936 /* We use char because int might match the return type of a gcc2 11937 builtin and then its argument prototype would still apply. */ 11938 char pthread_kill (); 11939 int 11940 main () 11941 { 11942 pthread_kill (); 11943 ; 11944 return 0; 11945 } 11946 _ACEOF 11947 rm -f conftest.$ac_objext conftest$ac_exeext 11948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11949 (eval $ac_link) 2>conftest.er1 11950 ac_status=$? 11951 grep -v '^ *+' conftest.er1 >conftest.err 11952 rm -f conftest.er1 11953 cat conftest.err >&5 11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11955 (exit $ac_status); } && 11956 { ac_try='test -z "$ac_c_werror_flag" 11957 || test ! -s conftest.err' 11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11959 (eval $ac_try) 2>&5 11960 ac_status=$? 11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11962 (exit $ac_status); }; } && 11963 { ac_try='test -s conftest$ac_exeext' 11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11965 (eval $ac_try) 2>&5 11966 ac_status=$? 11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11968 (exit $ac_status); }; }; then 11969 ac_cv_search_pthread_kill="none required" 11970 else 11971 echo "$as_me: failed program was:" >&5 11972 sed 's/^/| /' conftest.$ac_ext >&5 11973 11974 fi 11975 rm -f conftest.err conftest.$ac_objext \ 11976 conftest$ac_exeext conftest.$ac_ext 11977 if test "$ac_cv_search_pthread_kill" = no; then 11978 for ac_lib in pthread pthreads; do 11979 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11980 cat >conftest.$ac_ext <<_ACEOF 11981 /* confdefs.h. */ 11982 _ACEOF 11983 cat confdefs.h >>conftest.$ac_ext 11984 cat >>conftest.$ac_ext <<_ACEOF 11985 /* end confdefs.h. */ 11986 11987 /* Override any gcc2 internal prototype to avoid an error. */ 11988 #ifdef __cplusplus 11989 extern "C" 11990 #endif 11991 /* We use char because int might match the return type of a gcc2 11992 builtin and then its argument prototype would still apply. */ 11993 char pthread_kill (); 11994 int 11995 main () 11996 { 11997 pthread_kill (); 11998 ; 11999 return 0; 12000 } 12001 _ACEOF 12002 rm -f conftest.$ac_objext conftest$ac_exeext 12003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12004 (eval $ac_link) 2>conftest.er1 12005 ac_status=$? 12006 grep -v '^ *+' conftest.er1 >conftest.err 12007 rm -f conftest.er1 12008 cat conftest.err >&5 12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12010 (exit $ac_status); } && 12011 { ac_try='test -z "$ac_c_werror_flag" 12012 || test ! -s conftest.err' 12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12014 (eval $ac_try) 2>&5 12015 ac_status=$? 12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12017 (exit $ac_status); }; } && 12018 { ac_try='test -s conftest$ac_exeext' 12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12020 (eval $ac_try) 2>&5 12021 ac_status=$? 12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12023 (exit $ac_status); }; }; then 12024 ac_cv_search_pthread_kill="-l$ac_lib" 12025 break 12026 else 12027 echo "$as_me: failed program was:" >&5 12028 sed 's/^/| /' conftest.$ac_ext >&5 12029 12030 fi 12031 rm -f conftest.err conftest.$ac_objext \ 12032 conftest$ac_exeext conftest.$ac_ext 12033 done 12034 fi 12035 LIBS=$ac_func_search_save_LIBS 12036 fi 12037 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_kill" >&5 12038 echo "${ECHO_T}$ac_cv_search_pthread_kill" >&6 12039 if test "$ac_cv_search_pthread_kill" != no; then 12040 test "$ac_cv_search_pthread_kill" = "none required" || LIBS="$ac_cv_search_pthread_kill $LIBS" 12041 12042 fi 12043 echo "$as_me:$LINENO: checking for rfio_open64" >&5 12044 echo $ECHO_N "checking for rfio_open64... $ECHO_C" >&6 12045 if test "${ac_cv_func_rfio_open64+set}" = set; then 12046 echo $ECHO_N "(cached) $ECHO_C" >&6 12047 else 12048 cat >conftest.$ac_ext <<_ACEOF 12049 /* confdefs.h. */ 12050 _ACEOF 12051 cat confdefs.h >>conftest.$ac_ext 12052 cat >>conftest.$ac_ext <<_ACEOF 12053 /* end confdefs.h. */ 12054 /* Define rfio_open64 to an innocuous variant, in case <limits.h> declares rfio_open64. 12055 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12056 #define rfio_open64 innocuous_rfio_open64 12057 12058 /* System header to define __stub macros and hopefully few prototypes, 12059 which can conflict with char rfio_open64 (); below. 12060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12061 <limits.h> exists even on freestanding compilers. */ 12062 12063 #ifdef __STDC__ 12064 # include <limits.h> 12065 #else 12066 # include <assert.h> 12067 #endif 12068 12069 #undef rfio_open64 12070 12071 /* Override any gcc2 internal prototype to avoid an error. */ 12072 #ifdef __cplusplus 12073 extern "C" 12074 { 12075 #endif 12076 /* We use char because int might match the return type of a gcc2 12077 builtin and then its argument prototype would still apply. */ 12078 char rfio_open64 (); 12079 /* The GNU C library defines this for functions which it implements 12080 to always fail with ENOSYS. Some functions are actually named 12081 something starting with __ and the normal name is an alias. */ 12082 #if defined (__stub_rfio_open64) || defined (__stub___rfio_open64) 12083 choke me 12084 #else 12085 char (*f) () = rfio_open64; 12086 #endif 12087 #ifdef __cplusplus 12088 } 12089 #endif 12090 12091 int 12092 main () 12093 { 12094 return f != rfio_open64; 12095 ; 12096 return 0; 12097 } 12098 _ACEOF 12099 rm -f conftest.$ac_objext conftest$ac_exeext 12100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12101 (eval $ac_link) 2>conftest.er1 12102 ac_status=$? 12103 grep -v '^ *+' conftest.er1 >conftest.err 12104 rm -f conftest.er1 12105 cat conftest.err >&5 12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12107 (exit $ac_status); } && 12108 { ac_try='test -z "$ac_c_werror_flag" 12109 || test ! -s conftest.err' 12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12111 (eval $ac_try) 2>&5 12112 ac_status=$? 12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12114 (exit $ac_status); }; } && 12115 { ac_try='test -s conftest$ac_exeext' 12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12117 (eval $ac_try) 2>&5 12118 ac_status=$? 12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12120 (exit $ac_status); }; }; then 12121 ac_cv_func_rfio_open64=yes 12122 else 12123 echo "$as_me: failed program was:" >&5 12124 sed 's/^/| /' conftest.$ac_ext >&5 12125 12126 ac_cv_func_rfio_open64=no 12127 fi 12128 rm -f conftest.err conftest.$ac_objext \ 12129 conftest$ac_exeext conftest.$ac_ext 12130 fi 12131 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_open64" >&5 12132 echo "${ECHO_T}$ac_cv_func_rfio_open64" >&6 12133 if test $ac_cv_func_rfio_open64 = yes; then 12134 cat >>confdefs.h <<\_ACEOF 12135 #define WITH_RFIO64 1 12136 _ACEOF 12137 12138 fi 12139 12140 else 12141 echo "$as_me:$LINENO: checking for rfio_open" >&5 12142 echo $ECHO_N "checking for rfio_open... $ECHO_C" >&6 12143 if test "${ac_cv_func_rfio_open+set}" = set; then 12144 echo $ECHO_N "(cached) $ECHO_C" >&6 12145 else 12146 cat >conftest.$ac_ext <<_ACEOF 12147 /* confdefs.h. */ 12148 _ACEOF 12149 cat confdefs.h >>conftest.$ac_ext 12150 cat >>conftest.$ac_ext <<_ACEOF 12151 /* end confdefs.h. */ 12152 /* Define rfio_open to an innocuous variant, in case <limits.h> declares rfio_open. 12153 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12154 #define rfio_open innocuous_rfio_open 12155 12156 /* System header to define __stub macros and hopefully few prototypes, 12157 which can conflict with char rfio_open (); below. 12158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12159 <limits.h> exists even on freestanding compilers. */ 12160 12161 #ifdef __STDC__ 12162 # include <limits.h> 12163 #else 12164 # include <assert.h> 12165 #endif 12166 12167 #undef rfio_open 12168 12169 /* Override any gcc2 internal prototype to avoid an error. */ 12170 #ifdef __cplusplus 12171 extern "C" 12172 { 12173 #endif 12174 /* We use char because int might match the return type of a gcc2 12175 builtin and then its argument prototype would still apply. */ 12176 char rfio_open (); 12177 /* The GNU C library defines this for functions which it implements 12178 to always fail with ENOSYS. Some functions are actually named 12179 something starting with __ and the normal name is an alias. */ 12180 #if defined (__stub_rfio_open) || defined (__stub___rfio_open) 12181 choke me 12182 #else 12183 char (*f) () = rfio_open; 12184 #endif 12185 #ifdef __cplusplus 12186 } 12187 #endif 12188 12189 int 12190 main () 12191 { 12192 return f != rfio_open; 12193 ; 12194 return 0; 12195 } 12196 _ACEOF 12197 rm -f conftest.$ac_objext conftest$ac_exeext 12198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12199 (eval $ac_link) 2>conftest.er1 12200 ac_status=$? 12201 grep -v '^ *+' conftest.er1 >conftest.err 12202 rm -f conftest.er1 12203 cat conftest.err >&5 12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12205 (exit $ac_status); } && 12206 { ac_try='test -z "$ac_c_werror_flag" 12207 || test ! -s conftest.err' 12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12209 (eval $ac_try) 2>&5 12210 ac_status=$? 12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12212 (exit $ac_status); }; } && 12213 { ac_try='test -s conftest$ac_exeext' 12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12215 (eval $ac_try) 2>&5 12216 ac_status=$? 12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12218 (exit $ac_status); }; }; then 12219 ac_cv_func_rfio_open=yes 12220 else 12221 echo "$as_me: failed program was:" >&5 12222 sed 's/^/| /' conftest.$ac_ext >&5 12223 12224 ac_cv_func_rfio_open=no 12225 fi 12226 rm -f conftest.err conftest.$ac_objext \ 12227 conftest$ac_exeext conftest.$ac_ext 12228 fi 12229 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_open" >&5 12230 echo "${ECHO_T}$ac_cv_func_rfio_open" >&6 12231 if test $ac_cv_func_rfio_open = yes; then 12232 cat >>confdefs.h <<\_ACEOF 12233 #define WITH_RFIO 1 12234 _ACEOF 12235 12236 fi 12237 12238 fi 12239 if test "$ac_cv_func_rfio_open64" = "no" || test "$ac_cv_func_rfio_open" = "no" ; then 12240 LDFLAGS="$OLDLDFLAGS" 12241 CPPFLAGS="$OLDCPPFLAGS" 12242 LIBS="$OLDLIBS" 12243 ccin2p3_cv_rfio=no 12244 else 12245 12246 for ac_header in shift.h 12247 do 12248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12249 if eval "test \"\${$as_ac_Header+set}\" = set"; then 12250 echo "$as_me:$LINENO: checking for $ac_header" >&5 12251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12252 if eval "test \"\${$as_ac_Header+set}\" = set"; then 12253 echo $ECHO_N "(cached) $ECHO_C" >&6 12254 fi 12255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12257 else 12258 # Is the header compilable? 12259 echo "$as_me:$LINENO: checking $ac_header usability" >&5 12260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 12261 cat >conftest.$ac_ext <<_ACEOF 12262 /* confdefs.h. */ 12263 _ACEOF 12264 cat confdefs.h >>conftest.$ac_ext 12265 cat >>conftest.$ac_ext <<_ACEOF 12266 /* end confdefs.h. */ 12267 $ac_includes_default 12268 #include <$ac_header> 12269 _ACEOF 12270 rm -f conftest.$ac_objext 12271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12272 (eval $ac_compile) 2>conftest.er1 12273 ac_status=$? 12274 grep -v '^ *+' conftest.er1 >conftest.err 12275 rm -f conftest.er1 12276 cat conftest.err >&5 12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12278 (exit $ac_status); } && 12279 { ac_try='test -z "$ac_c_werror_flag" 12280 || test ! -s conftest.err' 12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12282 (eval $ac_try) 2>&5 12283 ac_status=$? 12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12285 (exit $ac_status); }; } && 12286 { ac_try='test -s conftest.$ac_objext' 12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12288 (eval $ac_try) 2>&5 12289 ac_status=$? 12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12291 (exit $ac_status); }; }; then 12292 ac_header_compiler=yes 12293 else 12294 echo "$as_me: failed program was:" >&5 12295 sed 's/^/| /' conftest.$ac_ext >&5 12296 12297 ac_header_compiler=no 12298 fi 12299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12301 echo "${ECHO_T}$ac_header_compiler" >&6 12302 12303 # Is the header present? 12304 echo "$as_me:$LINENO: checking $ac_header presence" >&5 12305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 12306 cat >conftest.$ac_ext <<_ACEOF 12307 /* confdefs.h. */ 12308 _ACEOF 12309 cat confdefs.h >>conftest.$ac_ext 12310 cat >>conftest.$ac_ext <<_ACEOF 12311 /* end confdefs.h. */ 12312 #include <$ac_header> 12313 _ACEOF 12314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12316 ac_status=$? 12317 grep -v '^ *+' conftest.er1 >conftest.err 12318 rm -f conftest.er1 12319 cat conftest.err >&5 12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12321 (exit $ac_status); } >/dev/null; then 12322 if test -s conftest.err; then 12323 ac_cpp_err=$ac_c_preproc_warn_flag 12324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12325 else 12326 ac_cpp_err= 12327 fi 12328 else 12329 ac_cpp_err=yes 12330 fi 12331 if test -z "$ac_cpp_err"; then 12332 ac_header_preproc=yes 12333 else 12334 echo "$as_me: failed program was:" >&5 12335 sed 's/^/| /' conftest.$ac_ext >&5 12336 12337 ac_header_preproc=no 12338 fi 12339 rm -f conftest.err conftest.$ac_ext 12340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12341 echo "${ECHO_T}$ac_header_preproc" >&6 12342 12343 # So? What about this header? 12344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12345 yes:no: ) 12346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12350 ac_header_preproc=yes 12351 ;; 12352 no:yes:* ) 12353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12365 ( 12366 cat <<\_ASBOX 12367 ## ------------------------------------------ ## 12368 ## Report this to the AC_PACKAGE_NAME lists. ## 12369 ## ------------------------------------------ ## 12370 _ASBOX 12371 ) | 12372 sed "s/^/$as_me: WARNING: /" >&2 12373 ;; 12374 esac 12375 echo "$as_me:$LINENO: checking for $ac_header" >&5 12376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12377 if eval "test \"\${$as_ac_Header+set}\" = set"; then 12378 echo $ECHO_N "(cached) $ECHO_C" >&6 12379 else 12380 eval "$as_ac_Header=\$ac_header_preproc" 12381 fi 12382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12384 12385 fi 12386 if test `eval echo '${'$as_ac_Header'}'` = yes; then 12387 cat >>confdefs.h <<_ACEOF 12388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12389 _ACEOF 12390 12391 else 12392 { { echo "$as_me:$LINENO: error: shift.h not found in $CPPFLAGS" >&5 12393 echo "$as_me: error: shift.h not found in $CPPFLAGS" >&2;} 12394 { (exit 1); exit 1; }; } 12395 fi 12396 12397 done 12398 12399 # LIBS="$LIBS $rfio_root_dir/lib/libshift.a" 12400 LDFLAGS="$OLDLDFLAGS" 12401 if test "$ac_cv_func_rfio_open" = "yes" ; then 12402 echo "$as_me:$LINENO: checking for rfio_HsmIf_FindPhysicalPath" >&5 12403 echo $ECHO_N "checking for rfio_HsmIf_FindPhysicalPath... $ECHO_C" >&6 12404 if test "${ac_cv_func_rfio_HsmIf_FindPhysicalPath+set}" = set; then 12405 echo $ECHO_N "(cached) $ECHO_C" >&6 12406 else 12407 cat >conftest.$ac_ext <<_ACEOF 12408 /* confdefs.h. */ 12409 _ACEOF 12410 cat confdefs.h >>conftest.$ac_ext 12411 cat >>conftest.$ac_ext <<_ACEOF 12412 /* end confdefs.h. */ 12413 /* Define rfio_HsmIf_FindPhysicalPath to an innocuous variant, in case <limits.h> declares rfio_HsmIf_FindPhysicalPath. 12414 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12415 #define rfio_HsmIf_FindPhysicalPath innocuous_rfio_HsmIf_FindPhysicalPath 12416 12417 /* System header to define __stub macros and hopefully few prototypes, 12418 which can conflict with char rfio_HsmIf_FindPhysicalPath (); below. 12419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12420 <limits.h> exists even on freestanding compilers. */ 12421 12422 #ifdef __STDC__ 12423 # include <limits.h> 12424 #else 12425 # include <assert.h> 12426 #endif 12427 12428 #undef rfio_HsmIf_FindPhysicalPath 12429 12430 /* Override any gcc2 internal prototype to avoid an error. */ 12431 #ifdef __cplusplus 12432 extern "C" 12433 { 12434 #endif 12435 /* We use char because int might match the return type of a gcc2 12436 builtin and then its argument prototype would still apply. */ 12437 char rfio_HsmIf_FindPhysicalPath (); 12438 /* The GNU C library defines this for functions which it implements 12439 to always fail with ENOSYS. Some functions are actually named 12440 something starting with __ and the normal name is an alias. */ 12441 #if defined (__stub_rfio_HsmIf_FindPhysicalPath) || defined (__stub___rfio_HsmIf_FindPhysicalPath) 12442 choke me 12443 #else 12444 char (*f) () = rfio_HsmIf_FindPhysicalPath; 12445 #endif 12446 #ifdef __cplusplus 12447 } 12448 #endif 12449 12450 int 12451 main () 12452 { 12453 return f != rfio_HsmIf_FindPhysicalPath; 12454 ; 12455 return 0; 12456 } 12457 _ACEOF 12458 rm -f conftest.$ac_objext conftest$ac_exeext 12459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12460 (eval $ac_link) 2>conftest.er1 12461 ac_status=$? 12462 grep -v '^ *+' conftest.er1 >conftest.err 12463 rm -f conftest.er1 12464 cat conftest.err >&5 12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12466 (exit $ac_status); } && 12467 { ac_try='test -z "$ac_c_werror_flag" 12468 || test ! -s conftest.err' 12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12470 (eval $ac_try) 2>&5 12471 ac_status=$? 12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12473 (exit $ac_status); }; } && 12474 { ac_try='test -s conftest$ac_exeext' 12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12476 (eval $ac_try) 2>&5 12477 ac_status=$? 12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12479 (exit $ac_status); }; }; then 12480 ac_cv_func_rfio_HsmIf_FindPhysicalPath=yes 12481 else 12482 echo "$as_me: failed program was:" >&5 12483 sed 's/^/| /' conftest.$ac_ext >&5 12484 12485 ac_cv_func_rfio_HsmIf_FindPhysicalPath=no 12486 fi 12487 rm -f conftest.err conftest.$ac_objext \ 12488 conftest$ac_exeext conftest.$ac_ext 12489 fi 12490 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_HsmIf_FindPhysicalPath" >&5 12491 echo "${ECHO_T}$ac_cv_func_rfio_HsmIf_FindPhysicalPath" >&6 12492 if test $ac_cv_func_rfio_HsmIf_FindPhysicalPath = yes; then 12493 result=yes 12494 else 12495 result=no 12496 fi 12497 12498 if test $result = yes ; then 12499 if test "${ac_cv_header_stage_api_h+set}" = set; then 12500 echo "$as_me:$LINENO: checking for stage_api.h" >&5 12501 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 12502 if test "${ac_cv_header_stage_api_h+set}" = set; then 12503 echo $ECHO_N "(cached) $ECHO_C" >&6 12504 fi 12505 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 12506 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 12507 else 12508 # Is the header compilable? 12509 echo "$as_me:$LINENO: checking stage_api.h usability" >&5 12510 echo $ECHO_N "checking stage_api.h usability... $ECHO_C" >&6 12511 cat >conftest.$ac_ext <<_ACEOF 12512 /* confdefs.h. */ 12513 _ACEOF 12514 cat confdefs.h >>conftest.$ac_ext 12515 cat >>conftest.$ac_ext <<_ACEOF 12516 /* end confdefs.h. */ 12517 $ac_includes_default 12518 #include <stage_api.h> 12519 _ACEOF 12520 rm -f conftest.$ac_objext 12521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12522 (eval $ac_compile) 2>conftest.er1 12523 ac_status=$? 12524 grep -v '^ *+' conftest.er1 >conftest.err 12525 rm -f conftest.er1 12526 cat conftest.err >&5 12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12528 (exit $ac_status); } && 12529 { ac_try='test -z "$ac_c_werror_flag" 12530 || test ! -s conftest.err' 12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12532 (eval $ac_try) 2>&5 12533 ac_status=$? 12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12535 (exit $ac_status); }; } && 12536 { ac_try='test -s conftest.$ac_objext' 12537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12538 (eval $ac_try) 2>&5 12539 ac_status=$? 12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12541 (exit $ac_status); }; }; then 12542 ac_header_compiler=yes 12543 else 12544 echo "$as_me: failed program was:" >&5 12545 sed 's/^/| /' conftest.$ac_ext >&5 12546 12547 ac_header_compiler=no 12548 fi 12549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12551 echo "${ECHO_T}$ac_header_compiler" >&6 12552 12553 # Is the header present? 12554 echo "$as_me:$LINENO: checking stage_api.h presence" >&5 12555 echo $ECHO_N "checking stage_api.h presence... $ECHO_C" >&6 12556 cat >conftest.$ac_ext <<_ACEOF 12557 /* confdefs.h. */ 12558 _ACEOF 12559 cat confdefs.h >>conftest.$ac_ext 12560 cat >>conftest.$ac_ext <<_ACEOF 12561 /* end confdefs.h. */ 12562 #include <stage_api.h> 12563 _ACEOF 12564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12566 ac_status=$? 12567 grep -v '^ *+' conftest.er1 >conftest.err 12568 rm -f conftest.er1 12569 cat conftest.err >&5 12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12571 (exit $ac_status); } >/dev/null; then 12572 if test -s conftest.err; then 12573 ac_cpp_err=$ac_c_preproc_warn_flag 12574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12575 else 12576 ac_cpp_err= 12577 fi 12578 else 12579 ac_cpp_err=yes 12580 fi 12581 if test -z "$ac_cpp_err"; then 12582 ac_header_preproc=yes 12583 else 12584 echo "$as_me: failed program was:" >&5 12585 sed 's/^/| /' conftest.$ac_ext >&5 12586 12587 ac_header_preproc=no 12588 fi 12589 rm -f conftest.err conftest.$ac_ext 12590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12591 echo "${ECHO_T}$ac_header_preproc" >&6 12592 12593 # So? What about this header? 12594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12595 yes:no: ) 12596 { echo "$as_me:$LINENO: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&5 12597 echo "$as_me: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 12598 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the compiler's result" >&5 12599 echo "$as_me: WARNING: stage_api.h: proceeding with the compiler's result" >&2;} 12600 ac_header_preproc=yes 12601 ;; 12602 no:yes:* ) 12603 { echo "$as_me:$LINENO: WARNING: stage_api.h: present but cannot be compiled" >&5 12604 echo "$as_me: WARNING: stage_api.h: present but cannot be compiled" >&2;} 12605 { echo "$as_me:$LINENO: WARNING: stage_api.h: check for missing prerequisite headers?" >&5 12606 echo "$as_me: WARNING: stage_api.h: check for missing prerequisite headers?" >&2;} 12607 { echo "$as_me:$LINENO: WARNING: stage_api.h: see the Autoconf documentation" >&5 12608 echo "$as_me: WARNING: stage_api.h: see the Autoconf documentation" >&2;} 12609 { echo "$as_me:$LINENO: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&5 12610 echo "$as_me: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&2;} 12611 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the preprocessor's result" >&5 12612 echo "$as_me: WARNING: stage_api.h: proceeding with the preprocessor's result" >&2;} 12613 { echo "$as_me:$LINENO: WARNING: stage_api.h: in the future, the compiler will take precedence" >&5 12614 echo "$as_me: WARNING: stage_api.h: in the future, the compiler will take precedence" >&2;} 12615 ( 12616 cat <<\_ASBOX 12617 ## ------------------------------------------ ## 12618 ## Report this to the AC_PACKAGE_NAME lists. ## 12619 ## ------------------------------------------ ## 12620 _ASBOX 12621 ) | 12622 sed "s/^/$as_me: WARNING: /" >&2 12623 ;; 12624 esac 12625 echo "$as_me:$LINENO: checking for stage_api.h" >&5 12626 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 12627 if test "${ac_cv_header_stage_api_h+set}" = set; then 12628 echo $ECHO_N "(cached) $ECHO_C" >&6 12629 else 12630 ac_cv_header_stage_api_h=$ac_header_preproc 12631 fi 12632 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 12633 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 12634 12635 fi 12636 if test $ac_cv_header_stage_api_h = yes; then 12637 result=yes 12638 else 12639 { { echo "$as_me:$LINENO: error: shift/stage_api.h not found in $CPPFLAGS" >&5 12640 echo "$as_me: error: shift/stage_api.h not found in $CPPFLAGS" >&2;} 12641 { (exit 1); exit 1; }; } 12642 fi 12643 12644 12645 cat >>confdefs.h <<\_ACEOF 12646 #define CASTOR 1 12647 _ACEOF 12648 12649 fi 12650 else 12651 echo "$as_me:$LINENO: checking for rfio_setcos" >&5 12652 echo $ECHO_N "checking for rfio_setcos... $ECHO_C" >&6 12653 if test "${ac_cv_func_rfio_setcos+set}" = set; then 12654 echo $ECHO_N "(cached) $ECHO_C" >&6 12655 else 12656 cat >conftest.$ac_ext <<_ACEOF 12657 /* confdefs.h. */ 12658 _ACEOF 12659 cat confdefs.h >>conftest.$ac_ext 12660 cat >>conftest.$ac_ext <<_ACEOF 12661 /* end confdefs.h. */ 12662 /* Define rfio_setcos to an innocuous variant, in case <limits.h> declares rfio_setcos. 12663 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12664 #define rfio_setcos innocuous_rfio_setcos 12665 12666 /* System header to define __stub macros and hopefully few prototypes, 12667 which can conflict with char rfio_setcos (); below. 12668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12669 <limits.h> exists even on freestanding compilers. */ 12670 12671 #ifdef __STDC__ 12672 # include <limits.h> 12673 #else 12674 # include <assert.h> 12675 #endif 12676 12677 #undef rfio_setcos 12678 12679 /* Override any gcc2 internal prototype to avoid an error. */ 12680 #ifdef __cplusplus 12681 extern "C" 12682 { 12683 #endif 12684 /* We use char because int might match the return type of a gcc2 12685 builtin and then its argument prototype would still apply. */ 12686 char rfio_setcos (); 12687 /* The GNU C library defines this for functions which it implements 12688 to always fail with ENOSYS. Some functions are actually named 12689 something starting with __ and the normal name is an alias. */ 12690 #if defined (__stub_rfio_setcos) || defined (__stub___rfio_setcos) 12691 choke me 12692 #else 12693 char (*f) () = rfio_setcos; 12694 #endif 12695 #ifdef __cplusplus 12696 } 12697 #endif 12698 12699 int 12700 main () 12701 { 12702 return f != rfio_setcos; 12703 ; 12704 return 0; 12705 } 12706 _ACEOF 12707 rm -f conftest.$ac_objext conftest$ac_exeext 12708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12709 (eval $ac_link) 2>conftest.er1 12710 ac_status=$? 12711 grep -v '^ *+' conftest.er1 >conftest.err 12712 rm -f conftest.er1 12713 cat conftest.err >&5 12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12715 (exit $ac_status); } && 12716 { ac_try='test -z "$ac_c_werror_flag" 12717 || test ! -s conftest.err' 12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12719 (eval $ac_try) 2>&5 12720 ac_status=$? 12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12722 (exit $ac_status); }; } && 12723 { ac_try='test -s conftest$ac_exeext' 12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12725 (eval $ac_try) 2>&5 12726 ac_status=$? 12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12728 (exit $ac_status); }; }; then 12729 ac_cv_func_rfio_setcos=yes 12730 else 12731 echo "$as_me: failed program was:" >&5 12732 sed 's/^/| /' conftest.$ac_ext >&5 12733 12734 ac_cv_func_rfio_setcos=no 12735 fi 12736 rm -f conftest.err conftest.$ac_objext \ 12737 conftest$ac_exeext conftest.$ac_ext 12738 fi 12739 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_setcos" >&5 12740 echo "${ECHO_T}$ac_cv_func_rfio_setcos" >&6 12741 if test $ac_cv_func_rfio_setcos = yes; then 12742 result=yes 12743 else 12744 result=no 12745 fi 12746 12747 if test $result = no ; then 12748 unset ac_cv_func_rfio_setcos 12749 12750 # Check whether --with-hpss or --without-hpss was given. 12751 if test "${with_hpss+set}" = set; then 12752 withval="$with_hpss" 12753 resulthpss=yes 12754 else 12755 resulthpss=no 12756 fi; 12757 if test $resulthpss != no ; then 12758 if test $with_hpss = yes ; then 12759 hpss_root_dir="/usr/local" 12760 else 12761 hpss_root_dir=$with_hpss 12762 fi 12763 OLDLIBS="$LIBS" 12764 LIBS="$LIBS $hpss_root_dir/lib/libhpss.a" 12765 echo "$as_me:$LINENO: checking for rfio_setcos" >&5 12766 echo $ECHO_N "checking for rfio_setcos... $ECHO_C" >&6 12767 if test "${ac_cv_func_rfio_setcos+set}" = set; then 12768 echo $ECHO_N "(cached) $ECHO_C" >&6 12769 else 12770 cat >conftest.$ac_ext <<_ACEOF 12771 /* confdefs.h. */ 12772 _ACEOF 12773 cat confdefs.h >>conftest.$ac_ext 12774 cat >>conftest.$ac_ext <<_ACEOF 12775 /* end confdefs.h. */ 12776 /* Define rfio_setcos to an innocuous variant, in case <limits.h> declares rfio_setcos. 12777 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12778 #define rfio_setcos innocuous_rfio_setcos 12779 12780 /* System header to define __stub macros and hopefully few prototypes, 12781 which can conflict with char rfio_setcos (); below. 12782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12783 <limits.h> exists even on freestanding compilers. */ 12784 12785 #ifdef __STDC__ 12786 # include <limits.h> 12787 #else 12788 # include <assert.h> 12789 #endif 12790 12791 #undef rfio_setcos 12792 12793 /* Override any gcc2 internal prototype to avoid an error. */ 12794 #ifdef __cplusplus 12795 extern "C" 12796 { 12797 #endif 12798 /* We use char because int might match the return type of a gcc2 12799 builtin and then its argument prototype would still apply. */ 12800 char rfio_setcos (); 12801 /* The GNU C library defines this for functions which it implements 12802 to always fail with ENOSYS. Some functions are actually named 12803 something starting with __ and the normal name is an alias. */ 12804 #if defined (__stub_rfio_setcos) || defined (__stub___rfio_setcos) 12805 choke me 12806 #else 12807 char (*f) () = rfio_setcos; 12808 #endif 12809 #ifdef __cplusplus 12810 } 12811 #endif 12812 12813 int 12814 main () 12815 { 12816 return f != rfio_setcos; 12817 ; 12818 return 0; 12819 } 12820 _ACEOF 12821 rm -f conftest.$ac_objext conftest$ac_exeext 12822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12823 (eval $ac_link) 2>conftest.er1 12824 ac_status=$? 12825 grep -v '^ *+' conftest.er1 >conftest.err 12826 rm -f conftest.er1 12827 cat conftest.err >&5 12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12829 (exit $ac_status); } && 12830 { ac_try='test -z "$ac_c_werror_flag" 12831 || test ! -s conftest.err' 12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12833 (eval $ac_try) 2>&5 12834 ac_status=$? 12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12836 (exit $ac_status); }; } && 12837 { ac_try='test -s conftest$ac_exeext' 12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12839 (eval $ac_try) 2>&5 12840 ac_status=$? 12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12842 (exit $ac_status); }; }; then 12843 ac_cv_func_rfio_setcos=yes 12844 else 12845 echo "$as_me: failed program was:" >&5 12846 sed 's/^/| /' conftest.$ac_ext >&5 12847 12848 ac_cv_func_rfio_setcos=no 12849 fi 12850 rm -f conftest.err conftest.$ac_objext \ 12851 conftest$ac_exeext conftest.$ac_ext 12852 fi 12853 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_setcos" >&5 12854 echo "${ECHO_T}$ac_cv_func_rfio_setcos" >&6 12855 if test $ac_cv_func_rfio_setcos = yes; then 12856 result=yes 12857 else 12858 result=no 12859 fi 12860 12861 if test $result = no ; then 12862 LIBS="$OLDLIBS" 12863 fi 12864 fi 12865 fi 12866 if test $result = no ; then 12867 if test "${ac_cv_header_stage_api_h+set}" = set; then 12868 echo "$as_me:$LINENO: checking for stage_api.h" >&5 12869 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 12870 if test "${ac_cv_header_stage_api_h+set}" = set; then 12871 echo $ECHO_N "(cached) $ECHO_C" >&6 12872 fi 12873 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 12874 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 12875 else 12876 # Is the header compilable? 12877 echo "$as_me:$LINENO: checking stage_api.h usability" >&5 12878 echo $ECHO_N "checking stage_api.h usability... $ECHO_C" >&6 12879 cat >conftest.$ac_ext <<_ACEOF 12880 /* confdefs.h. */ 12881 _ACEOF 12882 cat confdefs.h >>conftest.$ac_ext 12883 cat >>conftest.$ac_ext <<_ACEOF 12884 /* end confdefs.h. */ 12885 $ac_includes_default 12886 #include <stage_api.h> 12887 _ACEOF 12888 rm -f conftest.$ac_objext 12889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12890 (eval $ac_compile) 2>conftest.er1 12891 ac_status=$? 12892 grep -v '^ *+' conftest.er1 >conftest.err 12893 rm -f conftest.er1 12894 cat conftest.err >&5 12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12896 (exit $ac_status); } && 12897 { ac_try='test -z "$ac_c_werror_flag" 12898 || test ! -s conftest.err' 12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12900 (eval $ac_try) 2>&5 12901 ac_status=$? 12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12903 (exit $ac_status); }; } && 12904 { ac_try='test -s conftest.$ac_objext' 12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12906 (eval $ac_try) 2>&5 12907 ac_status=$? 12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12909 (exit $ac_status); }; }; then 12910 ac_header_compiler=yes 12911 else 12912 echo "$as_me: failed program was:" >&5 12913 sed 's/^/| /' conftest.$ac_ext >&5 12914 12915 ac_header_compiler=no 12916 fi 12917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12919 echo "${ECHO_T}$ac_header_compiler" >&6 12920 12921 # Is the header present? 12922 echo "$as_me:$LINENO: checking stage_api.h presence" >&5 12923 echo $ECHO_N "checking stage_api.h presence... $ECHO_C" >&6 12924 cat >conftest.$ac_ext <<_ACEOF 12925 /* confdefs.h. */ 12926 _ACEOF 12927 cat confdefs.h >>conftest.$ac_ext 12928 cat >>conftest.$ac_ext <<_ACEOF 12929 /* end confdefs.h. */ 12930 #include <stage_api.h> 12931 _ACEOF 12932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12934 ac_status=$? 12935 grep -v '^ *+' conftest.er1 >conftest.err 12936 rm -f conftest.er1 12937 cat conftest.err >&5 12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12939 (exit $ac_status); } >/dev/null; then 12940 if test -s conftest.err; then 12941 ac_cpp_err=$ac_c_preproc_warn_flag 12942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12943 else 12944 ac_cpp_err= 12945 fi 12946 else 12947 ac_cpp_err=yes 12948 fi 12949 if test -z "$ac_cpp_err"; then 12950 ac_header_preproc=yes 12951 else 12952 echo "$as_me: failed program was:" >&5 12953 sed 's/^/| /' conftest.$ac_ext >&5 12954 12955 ac_header_preproc=no 12956 fi 12957 rm -f conftest.err conftest.$ac_ext 12958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12959 echo "${ECHO_T}$ac_header_preproc" >&6 12960 12961 # So? What about this header? 12962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12963 yes:no: ) 12964 { echo "$as_me:$LINENO: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&5 12965 echo "$as_me: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 12966 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the compiler's result" >&5 12967 echo "$as_me: WARNING: stage_api.h: proceeding with the compiler's result" >&2;} 12968 ac_header_preproc=yes 12969 ;; 12970 no:yes:* ) 12971 { echo "$as_me:$LINENO: WARNING: stage_api.h: present but cannot be compiled" >&5 12972 echo "$as_me: WARNING: stage_api.h: present but cannot be compiled" >&2;} 12973 { echo "$as_me:$LINENO: WARNING: stage_api.h: check for missing prerequisite headers?" >&5 12974 echo "$as_me: WARNING: stage_api.h: check for missing prerequisite headers?" >&2;} 12975 { echo "$as_me:$LINENO: WARNING: stage_api.h: see the Autoconf documentation" >&5 12976 echo "$as_me: WARNING: stage_api.h: see the Autoconf documentation" >&2;} 12977 { echo "$as_me:$LINENO: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&5 12978 echo "$as_me: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&2;} 12979 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the preprocessor's result" >&5 12980 echo "$as_me: WARNING: stage_api.h: proceeding with the preprocessor's result" >&2;} 12981 { echo "$as_me:$LINENO: WARNING: stage_api.h: in the future, the compiler will take precedence" >&5 12982 echo "$as_me: WARNING: stage_api.h: in the future, the compiler will take precedence" >&2;} 12983 ( 12984 cat <<\_ASBOX 12985 ## ------------------------------------------ ## 12986 ## Report this to the AC_PACKAGE_NAME lists. ## 12987 ## ------------------------------------------ ## 12988 _ASBOX 12989 ) | 12990 sed "s/^/$as_me: WARNING: /" >&2 12991 ;; 12992 esac 12993 echo "$as_me:$LINENO: checking for stage_api.h" >&5 12994 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 12995 if test "${ac_cv_header_stage_api_h+set}" = set; then 12996 echo $ECHO_N "(cached) $ECHO_C" >&6 12997 else 12998 ac_cv_header_stage_api_h=$ac_header_preproc 12999 fi 13000 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 13001 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 13002 13003 fi 13004 if test $ac_cv_header_stage_api_h = yes; then 13005 result=yes 13006 else 13007 { { echo "$as_me:$LINENO: error: shift/stage_api.h not found in $CPPFLAGS" >&5 13008 echo "$as_me: error: shift/stage_api.h not found in $CPPFLAGS" >&2;} 13009 { (exit 1); exit 1; }; } 13010 fi 13011 13012 13013 13014 for ac_func in stageclr_Path 13015 do 13016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13017 echo "$as_me:$LINENO: checking for $ac_func" >&5 13018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13019 if eval "test \"\${$as_ac_var+set}\" = set"; then 13020 echo $ECHO_N "(cached) $ECHO_C" >&6 13021 else 13022 cat >conftest.$ac_ext <<_ACEOF 13023 /* confdefs.h. */ 13024 _ACEOF 13025 cat confdefs.h >>conftest.$ac_ext 13026 cat >>conftest.$ac_ext <<_ACEOF 13027 /* end confdefs.h. */ 13028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13029 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13030 #define $ac_func innocuous_$ac_func 13031 13032 /* System header to define __stub macros and hopefully few prototypes, 13033 which can conflict with char $ac_func (); below. 13034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13035 <limits.h> exists even on freestanding compilers. */ 13036 13037 #ifdef __STDC__ 13038 # include <limits.h> 13039 #else 13040 # include <assert.h> 13041 #endif 13042 13043 #undef $ac_func 13044 13045 /* Override any gcc2 internal prototype to avoid an error. */ 13046 #ifdef __cplusplus 13047 extern "C" 13048 { 13049 #endif 13050 /* We use char because int might match the return type of a gcc2 13051 builtin and then its argument prototype would still apply. */ 13052 char $ac_func (); 13053 /* The GNU C library defines this for functions which it implements 13054 to always fail with ENOSYS. Some functions are actually named 13055 something starting with __ and the normal name is an alias. */ 13056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13057 choke me 13058 #else 13059 char (*f) () = $ac_func; 13060 #endif 13061 #ifdef __cplusplus 13062 } 13063 #endif 13064 13065 int 13066 main () 13067 { 13068 return f != $ac_func; 13069 ; 13070 return 0; 13071 } 13072 _ACEOF 13073 rm -f conftest.$ac_objext conftest$ac_exeext 13074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13075 (eval $ac_link) 2>conftest.er1 13076 ac_status=$? 13077 grep -v '^ *+' conftest.er1 >conftest.err 13078 rm -f conftest.er1 13079 cat conftest.err >&5 13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13081 (exit $ac_status); } && 13082 { ac_try='test -z "$ac_c_werror_flag" 13083 || test ! -s conftest.err' 13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13085 (eval $ac_try) 2>&5 13086 ac_status=$? 13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13088 (exit $ac_status); }; } && 13089 { ac_try='test -s conftest$ac_exeext' 13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13091 (eval $ac_try) 2>&5 13092 ac_status=$? 13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13094 (exit $ac_status); }; }; then 13095 eval "$as_ac_var=yes" 13096 else 13097 echo "$as_me: failed program was:" >&5 13098 sed 's/^/| /' conftest.$ac_ext >&5 13099 13100 eval "$as_ac_var=no" 13101 fi 13102 rm -f conftest.err conftest.$ac_objext \ 13103 conftest$ac_exeext conftest.$ac_ext 13104 fi 13105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13107 if test `eval echo '${'$as_ac_var'}'` = yes; then 13108 cat >>confdefs.h <<_ACEOF 13109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13110 _ACEOF 13111 13112 fi 13113 done 13114 13115 cat >>confdefs.h <<\_ACEOF 13116 #define CASTOR 1 13117 _ACEOF 13118 13119 fi 13120 fi 13121 ccin2p3_cv_rfio=yes 13122 fi 13123 if test $ccin2p3_cv_rfio = yes; then 13124 RFIOOBJS="bbftp_retr_rfio.o bbftp_store_rfio.o" 13125 else 13126 { echo "$as_me:$LINENO: WARNING: RFIO not installed" >&5 13127 echo "$as_me: WARNING: RFIO not installed" >&2;} 13128 fi 13129 13130 else 13131 13132 OLDLDFLAGS="$LDFLAGS" 13133 OLDCPPFLAGS="$CPPFLAGS" 13134 OLDLIBS=$LIBS 13135 if test 3 -gt 2 ; then 13136 rfio_root_dir=$with_rfio 13137 else 13138 rfio_root_dir="/usr/local" 13139 fi 13140 # LDFLAGS="$LDFLAGS -L$rfio_root_dir/lib" 13141 LIBS="$LIBS $rfio_root_dir/lib/libshift.a" 13142 CPPFLAGS="$CPPFLAGS -I$rfio_root_dir/include -I$rfio_root_dir/include/shift" 13143 echo "$as_me:$LINENO: checking for library containing getservbyname_r" >&5 13144 echo $ECHO_N "checking for library containing getservbyname_r... $ECHO_C" >&6 13145 if test "${ac_cv_search_getservbyname_r+set}" = set; then 13146 echo $ECHO_N "(cached) $ECHO_C" >&6 13147 else 13148 ac_func_search_save_LIBS=$LIBS 13149 ac_cv_search_getservbyname_r=no 13150 cat >conftest.$ac_ext <<_ACEOF 13151 /* confdefs.h. */ 13152 _ACEOF 13153 cat confdefs.h >>conftest.$ac_ext 13154 cat >>conftest.$ac_ext <<_ACEOF 13155 /* end confdefs.h. */ 13156 13157 /* Override any gcc2 internal prototype to avoid an error. */ 13158 #ifdef __cplusplus 13159 extern "C" 13160 #endif 13161 /* We use char because int might match the return type of a gcc2 13162 builtin and then its argument prototype would still apply. */ 13163 char getservbyname_r (); 13164 int 13165 main () 13166 { 13167 getservbyname_r (); 13168 ; 13169 return 0; 13170 } 13171 _ACEOF 13172 rm -f conftest.$ac_objext conftest$ac_exeext 13173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13174 (eval $ac_link) 2>conftest.er1 13175 ac_status=$? 13176 grep -v '^ *+' conftest.er1 >conftest.err 13177 rm -f conftest.er1 13178 cat conftest.err >&5 13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13180 (exit $ac_status); } && 13181 { ac_try='test -z "$ac_c_werror_flag" 13182 || test ! -s conftest.err' 13183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13184 (eval $ac_try) 2>&5 13185 ac_status=$? 13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13187 (exit $ac_status); }; } && 13188 { ac_try='test -s conftest$ac_exeext' 13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13190 (eval $ac_try) 2>&5 13191 ac_status=$? 13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13193 (exit $ac_status); }; }; then 13194 ac_cv_search_getservbyname_r="none required" 13195 else 13196 echo "$as_me: failed program was:" >&5 13197 sed 's/^/| /' conftest.$ac_ext >&5 13198 13199 fi 13200 rm -f conftest.err conftest.$ac_objext \ 13201 conftest$ac_exeext conftest.$ac_ext 13202 if test "$ac_cv_search_getservbyname_r" = no; then 13203 for ac_lib in socket xnet; do 13204 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13205 cat >conftest.$ac_ext <<_ACEOF 13206 /* confdefs.h. */ 13207 _ACEOF 13208 cat confdefs.h >>conftest.$ac_ext 13209 cat >>conftest.$ac_ext <<_ACEOF 13210 /* end confdefs.h. */ 13211 13212 /* Override any gcc2 internal prototype to avoid an error. */ 13213 #ifdef __cplusplus 13214 extern "C" 13215 #endif 13216 /* We use char because int might match the return type of a gcc2 13217 builtin and then its argument prototype would still apply. */ 13218 char getservbyname_r (); 13219 int 13220 main () 13221 { 13222 getservbyname_r (); 13223 ; 13224 return 0; 13225 } 13226 _ACEOF 13227 rm -f conftest.$ac_objext conftest$ac_exeext 13228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13229 (eval $ac_link) 2>conftest.er1 13230 ac_status=$? 13231 grep -v '^ *+' conftest.er1 >conftest.err 13232 rm -f conftest.er1 13233 cat conftest.err >&5 13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13235 (exit $ac_status); } && 13236 { ac_try='test -z "$ac_c_werror_flag" 13237 || test ! -s conftest.err' 13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13239 (eval $ac_try) 2>&5 13240 ac_status=$? 13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13242 (exit $ac_status); }; } && 13243 { ac_try='test -s conftest$ac_exeext' 13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13245 (eval $ac_try) 2>&5 13246 ac_status=$? 13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13248 (exit $ac_status); }; }; then 13249 ac_cv_search_getservbyname_r="-l$ac_lib" 13250 break 13251 else 13252 echo "$as_me: failed program was:" >&5 13253 sed 's/^/| /' conftest.$ac_ext >&5 13254 13255 fi 13256 rm -f conftest.err conftest.$ac_objext \ 13257 conftest$ac_exeext conftest.$ac_ext 13258 done 13259 fi 13260 LIBS=$ac_func_search_save_LIBS 13261 fi 13262 echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname_r" >&5 13263 echo "${ECHO_T}$ac_cv_search_getservbyname_r" >&6 13264 if test "$ac_cv_search_getservbyname_r" != no; then 13265 test "$ac_cv_search_getservbyname_r" = "none required" || LIBS="$ac_cv_search_getservbyname_r $LIBS" 13266 13267 fi 13268 echo "$as_me:$LINENO: checking for library containing gethostbyaddr_r" >&5 13269 echo $ECHO_N "checking for library containing gethostbyaddr_r... $ECHO_C" >&6 13270 if test "${ac_cv_search_gethostbyaddr_r+set}" = set; then 13271 echo $ECHO_N "(cached) $ECHO_C" >&6 13272 else 13273 ac_func_search_save_LIBS=$LIBS 13274 ac_cv_search_gethostbyaddr_r=no 13275 cat >conftest.$ac_ext <<_ACEOF 13276 /* confdefs.h. */ 13277 _ACEOF 13278 cat confdefs.h >>conftest.$ac_ext 13279 cat >>conftest.$ac_ext <<_ACEOF 13280 /* end confdefs.h. */ 13281 13282 /* Override any gcc2 internal prototype to avoid an error. */ 13283 #ifdef __cplusplus 13284 extern "C" 13285 #endif 13286 /* We use char because int might match the return type of a gcc2 13287 builtin and then its argument prototype would still apply. */ 13288 char gethostbyaddr_r (); 13289 int 13290 main () 13291 { 13292 gethostbyaddr_r (); 13293 ; 13294 return 0; 13295 } 13296 _ACEOF 13297 rm -f conftest.$ac_objext conftest$ac_exeext 13298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13299 (eval $ac_link) 2>conftest.er1 13300 ac_status=$? 13301 grep -v '^ *+' conftest.er1 >conftest.err 13302 rm -f conftest.er1 13303 cat conftest.err >&5 13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13305 (exit $ac_status); } && 13306 { ac_try='test -z "$ac_c_werror_flag" 13307 || test ! -s conftest.err' 13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13309 (eval $ac_try) 2>&5 13310 ac_status=$? 13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13312 (exit $ac_status); }; } && 13313 { ac_try='test -s conftest$ac_exeext' 13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13315 (eval $ac_try) 2>&5 13316 ac_status=$? 13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13318 (exit $ac_status); }; }; then 13319 ac_cv_search_gethostbyaddr_r="none required" 13320 else 13321 echo "$as_me: failed program was:" >&5 13322 sed 's/^/| /' conftest.$ac_ext >&5 13323 13324 fi 13325 rm -f conftest.err conftest.$ac_objext \ 13326 conftest$ac_exeext conftest.$ac_ext 13327 if test "$ac_cv_search_gethostbyaddr_r" = no; then 13328 for ac_lib in nsl; do 13329 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13330 cat >conftest.$ac_ext <<_ACEOF 13331 /* confdefs.h. */ 13332 _ACEOF 13333 cat confdefs.h >>conftest.$ac_ext 13334 cat >>conftest.$ac_ext <<_ACEOF 13335 /* end confdefs.h. */ 13336 13337 /* Override any gcc2 internal prototype to avoid an error. */ 13338 #ifdef __cplusplus 13339 extern "C" 13340 #endif 13341 /* We use char because int might match the return type of a gcc2 13342 builtin and then its argument prototype would still apply. */ 13343 char gethostbyaddr_r (); 13344 int 13345 main () 13346 { 13347 gethostbyaddr_r (); 13348 ; 13349 return 0; 13350 } 13351 _ACEOF 13352 rm -f conftest.$ac_objext conftest$ac_exeext 13353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13354 (eval $ac_link) 2>conftest.er1 13355 ac_status=$? 13356 grep -v '^ *+' conftest.er1 >conftest.err 13357 rm -f conftest.er1 13358 cat conftest.err >&5 13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13360 (exit $ac_status); } && 13361 { ac_try='test -z "$ac_c_werror_flag" 13362 || test ! -s conftest.err' 13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13364 (eval $ac_try) 2>&5 13365 ac_status=$? 13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13367 (exit $ac_status); }; } && 13368 { ac_try='test -s conftest$ac_exeext' 13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13370 (eval $ac_try) 2>&5 13371 ac_status=$? 13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13373 (exit $ac_status); }; }; then 13374 ac_cv_search_gethostbyaddr_r="-l$ac_lib" 13375 break 13376 else 13377 echo "$as_me: failed program was:" >&5 13378 sed 's/^/| /' conftest.$ac_ext >&5 13379 13380 fi 13381 rm -f conftest.err conftest.$ac_objext \ 13382 conftest$ac_exeext conftest.$ac_ext 13383 done 13384 fi 13385 LIBS=$ac_func_search_save_LIBS 13386 fi 13387 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyaddr_r" >&5 13388 echo "${ECHO_T}$ac_cv_search_gethostbyaddr_r" >&6 13389 if test "$ac_cv_search_gethostbyaddr_r" != no; then 13390 test "$ac_cv_search_gethostbyaddr_r" = "none required" || LIBS="$ac_cv_search_gethostbyaddr_r $LIBS" 13391 13392 fi 13393 echo "$as_me:$LINENO: checking for library containing sched_get_priority_max" >&5 13394 echo $ECHO_N "checking for library containing sched_get_priority_max... $ECHO_C" >&6 13395 if test "${ac_cv_search_sched_get_priority_max+set}" = set; then 13396 echo $ECHO_N "(cached) $ECHO_C" >&6 13397 else 13398 ac_func_search_save_LIBS=$LIBS 13399 ac_cv_search_sched_get_priority_max=no 13400 cat >conftest.$ac_ext <<_ACEOF 13401 /* confdefs.h. */ 13402 _ACEOF 13403 cat confdefs.h >>conftest.$ac_ext 13404 cat >>conftest.$ac_ext <<_ACEOF 13405 /* end confdefs.h. */ 13406 13407 /* Override any gcc2 internal prototype to avoid an error. */ 13408 #ifdef __cplusplus 13409 extern "C" 13410 #endif 13411 /* We use char because int might match the return type of a gcc2 13412 builtin and then its argument prototype would still apply. */ 13413 char sched_get_priority_max (); 13414 int 13415 main () 13416 { 13417 sched_get_priority_max (); 13418 ; 13419 return 0; 13420 } 13421 _ACEOF 13422 rm -f conftest.$ac_objext conftest$ac_exeext 13423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13424 (eval $ac_link) 2>conftest.er1 13425 ac_status=$? 13426 grep -v '^ *+' conftest.er1 >conftest.err 13427 rm -f conftest.er1 13428 cat conftest.err >&5 13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13430 (exit $ac_status); } && 13431 { ac_try='test -z "$ac_c_werror_flag" 13432 || test ! -s conftest.err' 13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13434 (eval $ac_try) 2>&5 13435 ac_status=$? 13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13437 (exit $ac_status); }; } && 13438 { ac_try='test -s conftest$ac_exeext' 13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13440 (eval $ac_try) 2>&5 13441 ac_status=$? 13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13443 (exit $ac_status); }; }; then 13444 ac_cv_search_sched_get_priority_max="none required" 13445 else 13446 echo "$as_me: failed program was:" >&5 13447 sed 's/^/| /' conftest.$ac_ext >&5 13448 13449 fi 13450 rm -f conftest.err conftest.$ac_objext \ 13451 conftest$ac_exeext conftest.$ac_ext 13452 if test "$ac_cv_search_sched_get_priority_max" = no; then 13453 for ac_lib in rt posix4; do 13454 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13455 cat >conftest.$ac_ext <<_ACEOF 13456 /* confdefs.h. */ 13457 _ACEOF 13458 cat confdefs.h >>conftest.$ac_ext 13459 cat >>conftest.$ac_ext <<_ACEOF 13460 /* end confdefs.h. */ 13461 13462 /* Override any gcc2 internal prototype to avoid an error. */ 13463 #ifdef __cplusplus 13464 extern "C" 13465 #endif 13466 /* We use char because int might match the return type of a gcc2 13467 builtin and then its argument prototype would still apply. */ 13468 char sched_get_priority_max (); 13469 int 13470 main () 13471 { 13472 sched_get_priority_max (); 13473 ; 13474 return 0; 13475 } 13476 _ACEOF 13477 rm -f conftest.$ac_objext conftest$ac_exeext 13478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13479 (eval $ac_link) 2>conftest.er1 13480 ac_status=$? 13481 grep -v '^ *+' conftest.er1 >conftest.err 13482 rm -f conftest.er1 13483 cat conftest.err >&5 13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13485 (exit $ac_status); } && 13486 { ac_try='test -z "$ac_c_werror_flag" 13487 || test ! -s conftest.err' 13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13489 (eval $ac_try) 2>&5 13490 ac_status=$? 13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13492 (exit $ac_status); }; } && 13493 { ac_try='test -s conftest$ac_exeext' 13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13495 (eval $ac_try) 2>&5 13496 ac_status=$? 13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13498 (exit $ac_status); }; }; then 13499 ac_cv_search_sched_get_priority_max="-l$ac_lib" 13500 break 13501 else 13502 echo "$as_me: failed program was:" >&5 13503 sed 's/^/| /' conftest.$ac_ext >&5 13504 13505 fi 13506 rm -f conftest.err conftest.$ac_objext \ 13507 conftest$ac_exeext conftest.$ac_ext 13508 done 13509 fi 13510 LIBS=$ac_func_search_save_LIBS 13511 fi 13512 echo "$as_me:$LINENO: result: $ac_cv_search_sched_get_priority_max" >&5 13513 echo "${ECHO_T}$ac_cv_search_sched_get_priority_max" >&6 13514 if test "$ac_cv_search_sched_get_priority_max" != no; then 13515 test "$ac_cv_search_sched_get_priority_max" = "none required" || LIBS="$ac_cv_search_sched_get_priority_max $LIBS" 13516 13517 fi 13518 as_ac_File=`echo "ac_cv_file_$rfio_root_dir/include/shift/rfio_api.h" | $as_tr_sh` 13519 echo "$as_me:$LINENO: checking for $rfio_root_dir/include/shift/rfio_api.h" >&5 13520 echo $ECHO_N "checking for $rfio_root_dir/include/shift/rfio_api.h... $ECHO_C" >&6 13521 if eval "test \"\${$as_ac_File+set}\" = set"; then 13522 echo $ECHO_N "(cached) $ECHO_C" >&6 13523 else 13524 test "$cross_compiling" = yes && 13525 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 13526 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 13527 { (exit 1); exit 1; }; } 13528 if test -r "$rfio_root_dir/include/shift/rfio_api.h"; then 13529 eval "$as_ac_File=yes" 13530 else 13531 eval "$as_ac_File=no" 13532 fi 13533 fi 13534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 13535 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 13536 if test `eval echo '${'$as_ac_File'}'` = yes; then 13537 result=yes 13538 else 13539 result=no 13540 fi 13541 13542 if test $result = yes ; then 13543 echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 13544 echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6 13545 if test "${ac_cv_search_pthread_create+set}" = set; then 13546 echo $ECHO_N "(cached) $ECHO_C" >&6 13547 else 13548 ac_func_search_save_LIBS=$LIBS 13549 ac_cv_search_pthread_create=no 13550 cat >conftest.$ac_ext <<_ACEOF 13551 /* confdefs.h. */ 13552 _ACEOF 13553 cat confdefs.h >>conftest.$ac_ext 13554 cat >>conftest.$ac_ext <<_ACEOF 13555 /* end confdefs.h. */ 13556 13557 /* Override any gcc2 internal prototype to avoid an error. */ 13558 #ifdef __cplusplus 13559 extern "C" 13560 #endif 13561 /* We use char because int might match the return type of a gcc2 13562 builtin and then its argument prototype would still apply. */ 13563 char pthread_create (); 13564 int 13565 main () 13566 { 13567 pthread_create (); 13568 ; 13569 return 0; 13570 } 13571 _ACEOF 13572 rm -f conftest.$ac_objext conftest$ac_exeext 13573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13574 (eval $ac_link) 2>conftest.er1 13575 ac_status=$? 13576 grep -v '^ *+' conftest.er1 >conftest.err 13577 rm -f conftest.er1 13578 cat conftest.err >&5 13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13580 (exit $ac_status); } && 13581 { ac_try='test -z "$ac_c_werror_flag" 13582 || test ! -s conftest.err' 13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13584 (eval $ac_try) 2>&5 13585 ac_status=$? 13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13587 (exit $ac_status); }; } && 13588 { ac_try='test -s conftest$ac_exeext' 13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13590 (eval $ac_try) 2>&5 13591 ac_status=$? 13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13593 (exit $ac_status); }; }; then 13594 ac_cv_search_pthread_create="none required" 13595 else 13596 echo "$as_me: failed program was:" >&5 13597 sed 's/^/| /' conftest.$ac_ext >&5 13598 13599 fi 13600 rm -f conftest.err conftest.$ac_objext \ 13601 conftest$ac_exeext conftest.$ac_ext 13602 if test "$ac_cv_search_pthread_create" = no; then 13603 for ac_lib in pthread pthreads dce; do 13604 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13605 cat >conftest.$ac_ext <<_ACEOF 13606 /* confdefs.h. */ 13607 _ACEOF 13608 cat confdefs.h >>conftest.$ac_ext 13609 cat >>conftest.$ac_ext <<_ACEOF 13610 /* end confdefs.h. */ 13611 13612 /* Override any gcc2 internal prototype to avoid an error. */ 13613 #ifdef __cplusplus 13614 extern "C" 13615 #endif 13616 /* We use char because int might match the return type of a gcc2 13617 builtin and then its argument prototype would still apply. */ 13618 char pthread_create (); 13619 int 13620 main () 13621 { 13622 pthread_create (); 13623 ; 13624 return 0; 13625 } 13626 _ACEOF 13627 rm -f conftest.$ac_objext conftest$ac_exeext 13628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13629 (eval $ac_link) 2>conftest.er1 13630 ac_status=$? 13631 grep -v '^ *+' conftest.er1 >conftest.err 13632 rm -f conftest.er1 13633 cat conftest.err >&5 13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13635 (exit $ac_status); } && 13636 { ac_try='test -z "$ac_c_werror_flag" 13637 || test ! -s conftest.err' 13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13639 (eval $ac_try) 2>&5 13640 ac_status=$? 13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13642 (exit $ac_status); }; } && 13643 { ac_try='test -s conftest$ac_exeext' 13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13645 (eval $ac_try) 2>&5 13646 ac_status=$? 13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13648 (exit $ac_status); }; }; then 13649 ac_cv_search_pthread_create="-l$ac_lib" 13650 break 13651 else 13652 echo "$as_me: failed program was:" >&5 13653 sed 's/^/| /' conftest.$ac_ext >&5 13654 13655 fi 13656 rm -f conftest.err conftest.$ac_objext \ 13657 conftest$ac_exeext conftest.$ac_ext 13658 done 13659 fi 13660 LIBS=$ac_func_search_save_LIBS 13661 fi 13662 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 13663 echo "${ECHO_T}$ac_cv_search_pthread_create" >&6 13664 if test "$ac_cv_search_pthread_create" != no; then 13665 test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS" 13666 13667 fi 13668 echo "$as_me:$LINENO: checking for library containing pthread_kill" >&5 13669 echo $ECHO_N "checking for library containing pthread_kill... $ECHO_C" >&6 13670 if test "${ac_cv_search_pthread_kill+set}" = set; then 13671 echo $ECHO_N "(cached) $ECHO_C" >&6 13672 else 13673 ac_func_search_save_LIBS=$LIBS 13674 ac_cv_search_pthread_kill=no 13675 cat >conftest.$ac_ext <<_ACEOF 13676 /* confdefs.h. */ 13677 _ACEOF 13678 cat confdefs.h >>conftest.$ac_ext 13679 cat >>conftest.$ac_ext <<_ACEOF 13680 /* end confdefs.h. */ 13681 13682 /* Override any gcc2 internal prototype to avoid an error. */ 13683 #ifdef __cplusplus 13684 extern "C" 13685 #endif 13686 /* We use char because int might match the return type of a gcc2 13687 builtin and then its argument prototype would still apply. */ 13688 char pthread_kill (); 13689 int 13690 main () 13691 { 13692 pthread_kill (); 13693 ; 13694 return 0; 13695 } 13696 _ACEOF 13697 rm -f conftest.$ac_objext conftest$ac_exeext 13698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13699 (eval $ac_link) 2>conftest.er1 13700 ac_status=$? 13701 grep -v '^ *+' conftest.er1 >conftest.err 13702 rm -f conftest.er1 13703 cat conftest.err >&5 13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13705 (exit $ac_status); } && 13706 { ac_try='test -z "$ac_c_werror_flag" 13707 || test ! -s conftest.err' 13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13709 (eval $ac_try) 2>&5 13710 ac_status=$? 13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13712 (exit $ac_status); }; } && 13713 { ac_try='test -s conftest$ac_exeext' 13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13715 (eval $ac_try) 2>&5 13716 ac_status=$? 13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13718 (exit $ac_status); }; }; then 13719 ac_cv_search_pthread_kill="none required" 13720 else 13721 echo "$as_me: failed program was:" >&5 13722 sed 's/^/| /' conftest.$ac_ext >&5 13723 13724 fi 13725 rm -f conftest.err conftest.$ac_objext \ 13726 conftest$ac_exeext conftest.$ac_ext 13727 if test "$ac_cv_search_pthread_kill" = no; then 13728 for ac_lib in pthread pthreads; do 13729 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13730 cat >conftest.$ac_ext <<_ACEOF 13731 /* confdefs.h. */ 13732 _ACEOF 13733 cat confdefs.h >>conftest.$ac_ext 13734 cat >>conftest.$ac_ext <<_ACEOF 13735 /* end confdefs.h. */ 13736 13737 /* Override any gcc2 internal prototype to avoid an error. */ 13738 #ifdef __cplusplus 13739 extern "C" 13740 #endif 13741 /* We use char because int might match the return type of a gcc2 13742 builtin and then its argument prototype would still apply. */ 13743 char pthread_kill (); 13744 int 13745 main () 13746 { 13747 pthread_kill (); 13748 ; 13749 return 0; 13750 } 13751 _ACEOF 13752 rm -f conftest.$ac_objext conftest$ac_exeext 13753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13754 (eval $ac_link) 2>conftest.er1 13755 ac_status=$? 13756 grep -v '^ *+' conftest.er1 >conftest.err 13757 rm -f conftest.er1 13758 cat conftest.err >&5 13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13760 (exit $ac_status); } && 13761 { ac_try='test -z "$ac_c_werror_flag" 13762 || test ! -s conftest.err' 13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13764 (eval $ac_try) 2>&5 13765 ac_status=$? 13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13767 (exit $ac_status); }; } && 13768 { ac_try='test -s conftest$ac_exeext' 13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13770 (eval $ac_try) 2>&5 13771 ac_status=$? 13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13773 (exit $ac_status); }; }; then 13774 ac_cv_search_pthread_kill="-l$ac_lib" 13775 break 13776 else 13777 echo "$as_me: failed program was:" >&5 13778 sed 's/^/| /' conftest.$ac_ext >&5 13779 13780 fi 13781 rm -f conftest.err conftest.$ac_objext \ 13782 conftest$ac_exeext conftest.$ac_ext 13783 done 13784 fi 13785 LIBS=$ac_func_search_save_LIBS 13786 fi 13787 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_kill" >&5 13788 echo "${ECHO_T}$ac_cv_search_pthread_kill" >&6 13789 if test "$ac_cv_search_pthread_kill" != no; then 13790 test "$ac_cv_search_pthread_kill" = "none required" || LIBS="$ac_cv_search_pthread_kill $LIBS" 13791 13792 fi 13793 echo "$as_me:$LINENO: checking for rfio_open64" >&5 13794 echo $ECHO_N "checking for rfio_open64... $ECHO_C" >&6 13795 if test "${ac_cv_func_rfio_open64+set}" = set; then 13796 echo $ECHO_N "(cached) $ECHO_C" >&6 13797 else 13798 cat >conftest.$ac_ext <<_ACEOF 13799 /* confdefs.h. */ 13800 _ACEOF 13801 cat confdefs.h >>conftest.$ac_ext 13802 cat >>conftest.$ac_ext <<_ACEOF 13803 /* end confdefs.h. */ 13804 /* Define rfio_open64 to an innocuous variant, in case <limits.h> declares rfio_open64. 13805 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13806 #define rfio_open64 innocuous_rfio_open64 13807 13808 /* System header to define __stub macros and hopefully few prototypes, 13809 which can conflict with char rfio_open64 (); below. 13810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13811 <limits.h> exists even on freestanding compilers. */ 13812 13813 #ifdef __STDC__ 13814 # include <limits.h> 13815 #else 13816 # include <assert.h> 13817 #endif 13818 13819 #undef rfio_open64 13820 13821 /* Override any gcc2 internal prototype to avoid an error. */ 13822 #ifdef __cplusplus 13823 extern "C" 13824 { 13825 #endif 13826 /* We use char because int might match the return type of a gcc2 13827 builtin and then its argument prototype would still apply. */ 13828 char rfio_open64 (); 13829 /* The GNU C library defines this for functions which it implements 13830 to always fail with ENOSYS. Some functions are actually named 13831 something starting with __ and the normal name is an alias. */ 13832 #if defined (__stub_rfio_open64) || defined (__stub___rfio_open64) 13833 choke me 13834 #else 13835 char (*f) () = rfio_open64; 13836 #endif 13837 #ifdef __cplusplus 13838 } 13839 #endif 13840 13841 int 13842 main () 13843 { 13844 return f != rfio_open64; 13845 ; 13846 return 0; 13847 } 13848 _ACEOF 13849 rm -f conftest.$ac_objext conftest$ac_exeext 13850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13851 (eval $ac_link) 2>conftest.er1 13852 ac_status=$? 13853 grep -v '^ *+' conftest.er1 >conftest.err 13854 rm -f conftest.er1 13855 cat conftest.err >&5 13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13857 (exit $ac_status); } && 13858 { ac_try='test -z "$ac_c_werror_flag" 13859 || test ! -s conftest.err' 13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13861 (eval $ac_try) 2>&5 13862 ac_status=$? 13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13864 (exit $ac_status); }; } && 13865 { ac_try='test -s conftest$ac_exeext' 13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13867 (eval $ac_try) 2>&5 13868 ac_status=$? 13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13870 (exit $ac_status); }; }; then 13871 ac_cv_func_rfio_open64=yes 13872 else 13873 echo "$as_me: failed program was:" >&5 13874 sed 's/^/| /' conftest.$ac_ext >&5 13875 13876 ac_cv_func_rfio_open64=no 13877 fi 13878 rm -f conftest.err conftest.$ac_objext \ 13879 conftest$ac_exeext conftest.$ac_ext 13880 fi 13881 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_open64" >&5 13882 echo "${ECHO_T}$ac_cv_func_rfio_open64" >&6 13883 if test $ac_cv_func_rfio_open64 = yes; then 13884 cat >>confdefs.h <<\_ACEOF 13885 #define WITH_RFIO64 1 13886 _ACEOF 13887 13888 fi 13889 13890 else 13891 echo "$as_me:$LINENO: checking for rfio_open" >&5 13892 echo $ECHO_N "checking for rfio_open... $ECHO_C" >&6 13893 if test "${ac_cv_func_rfio_open+set}" = set; then 13894 echo $ECHO_N "(cached) $ECHO_C" >&6 13895 else 13896 cat >conftest.$ac_ext <<_ACEOF 13897 /* confdefs.h. */ 13898 _ACEOF 13899 cat confdefs.h >>conftest.$ac_ext 13900 cat >>conftest.$ac_ext <<_ACEOF 13901 /* end confdefs.h. */ 13902 /* Define rfio_open to an innocuous variant, in case <limits.h> declares rfio_open. 13903 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13904 #define rfio_open innocuous_rfio_open 13905 13906 /* System header to define __stub macros and hopefully few prototypes, 13907 which can conflict with char rfio_open (); below. 13908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13909 <limits.h> exists even on freestanding compilers. */ 13910 13911 #ifdef __STDC__ 13912 # include <limits.h> 13913 #else 13914 # include <assert.h> 13915 #endif 13916 13917 #undef rfio_open 13918 13919 /* Override any gcc2 internal prototype to avoid an error. */ 13920 #ifdef __cplusplus 13921 extern "C" 13922 { 13923 #endif 13924 /* We use char because int might match the return type of a gcc2 13925 builtin and then its argument prototype would still apply. */ 13926 char rfio_open (); 13927 /* The GNU C library defines this for functions which it implements 13928 to always fail with ENOSYS. Some functions are actually named 13929 something starting with __ and the normal name is an alias. */ 13930 #if defined (__stub_rfio_open) || defined (__stub___rfio_open) 13931 choke me 13932 #else 13933 char (*f) () = rfio_open; 13934 #endif 13935 #ifdef __cplusplus 13936 } 13937 #endif 13938 13939 int 13940 main () 13941 { 13942 return f != rfio_open; 13943 ; 13944 return 0; 13945 } 13946 _ACEOF 13947 rm -f conftest.$ac_objext conftest$ac_exeext 13948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13949 (eval $ac_link) 2>conftest.er1 13950 ac_status=$? 13951 grep -v '^ *+' conftest.er1 >conftest.err 13952 rm -f conftest.er1 13953 cat conftest.err >&5 13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13955 (exit $ac_status); } && 13956 { ac_try='test -z "$ac_c_werror_flag" 13957 || test ! -s conftest.err' 13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13959 (eval $ac_try) 2>&5 13960 ac_status=$? 13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13962 (exit $ac_status); }; } && 13963 { ac_try='test -s conftest$ac_exeext' 13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13965 (eval $ac_try) 2>&5 13966 ac_status=$? 13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13968 (exit $ac_status); }; }; then 13969 ac_cv_func_rfio_open=yes 13970 else 13971 echo "$as_me: failed program was:" >&5 13972 sed 's/^/| /' conftest.$ac_ext >&5 13973 13974 ac_cv_func_rfio_open=no 13975 fi 13976 rm -f conftest.err conftest.$ac_objext \ 13977 conftest$ac_exeext conftest.$ac_ext 13978 fi 13979 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_open" >&5 13980 echo "${ECHO_T}$ac_cv_func_rfio_open" >&6 13981 if test $ac_cv_func_rfio_open = yes; then 13982 cat >>confdefs.h <<\_ACEOF 13983 #define WITH_RFIO 1 13984 _ACEOF 13985 13986 fi 13987 13988 fi 13989 if test "$ac_cv_func_rfio_open64" = "no" || test "$ac_cv_func_rfio_open" = "no" ; then 13990 LDFLAGS="$OLDLDFLAGS" 13991 CPPFLAGS="$OLDCPPFLAGS" 13992 LIBS="$OLDLIBS" 13993 ccin2p3_cv_rfio=no 13994 else 13995 13996 for ac_header in shift.h 13997 do 13998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13999 if eval "test \"\${$as_ac_Header+set}\" = set"; then 14000 echo "$as_me:$LINENO: checking for $ac_header" >&5 14001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14002 if eval "test \"\${$as_ac_Header+set}\" = set"; then 14003 echo $ECHO_N "(cached) $ECHO_C" >&6 14004 fi 14005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14007 else 14008 # Is the header compilable? 14009 echo "$as_me:$LINENO: checking $ac_header usability" >&5 14010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 14011 cat >conftest.$ac_ext <<_ACEOF 14012 /* confdefs.h. */ 14013 _ACEOF 14014 cat confdefs.h >>conftest.$ac_ext 14015 cat >>conftest.$ac_ext <<_ACEOF 14016 /* end confdefs.h. */ 14017 $ac_includes_default 14018 #include <$ac_header> 14019 _ACEOF 14020 rm -f conftest.$ac_objext 14021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14022 (eval $ac_compile) 2>conftest.er1 14023 ac_status=$? 14024 grep -v '^ *+' conftest.er1 >conftest.err 14025 rm -f conftest.er1 14026 cat conftest.err >&5 14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14028 (exit $ac_status); } && 14029 { ac_try='test -z "$ac_c_werror_flag" 14030 || test ! -s conftest.err' 14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14032 (eval $ac_try) 2>&5 14033 ac_status=$? 14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14035 (exit $ac_status); }; } && 14036 { ac_try='test -s conftest.$ac_objext' 14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14038 (eval $ac_try) 2>&5 14039 ac_status=$? 14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14041 (exit $ac_status); }; }; then 14042 ac_header_compiler=yes 14043 else 14044 echo "$as_me: failed program was:" >&5 14045 sed 's/^/| /' conftest.$ac_ext >&5 14046 14047 ac_header_compiler=no 14048 fi 14049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14051 echo "${ECHO_T}$ac_header_compiler" >&6 14052 14053 # Is the header present? 14054 echo "$as_me:$LINENO: checking $ac_header presence" >&5 14055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 14056 cat >conftest.$ac_ext <<_ACEOF 14057 /* confdefs.h. */ 14058 _ACEOF 14059 cat confdefs.h >>conftest.$ac_ext 14060 cat >>conftest.$ac_ext <<_ACEOF 14061 /* end confdefs.h. */ 14062 #include <$ac_header> 14063 _ACEOF 14064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 14065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14066 ac_status=$? 14067 grep -v '^ *+' conftest.er1 >conftest.err 14068 rm -f conftest.er1 14069 cat conftest.err >&5 14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14071 (exit $ac_status); } >/dev/null; then 14072 if test -s conftest.err; then 14073 ac_cpp_err=$ac_c_preproc_warn_flag 14074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14075 else 14076 ac_cpp_err= 14077 fi 14078 else 14079 ac_cpp_err=yes 14080 fi 14081 if test -z "$ac_cpp_err"; then 14082 ac_header_preproc=yes 14083 else 14084 echo "$as_me: failed program was:" >&5 14085 sed 's/^/| /' conftest.$ac_ext >&5 14086 14087 ac_header_preproc=no 14088 fi 14089 rm -f conftest.err conftest.$ac_ext 14090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14091 echo "${ECHO_T}$ac_header_preproc" >&6 14092 14093 # So? What about this header? 14094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14095 yes:no: ) 14096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14100 ac_header_preproc=yes 14101 ;; 14102 no:yes:* ) 14103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14115 ( 14116 cat <<\_ASBOX 14117 ## ------------------------------------------ ## 14118 ## Report this to the AC_PACKAGE_NAME lists. ## 14119 ## ------------------------------------------ ## 14120 _ASBOX 14121 ) | 14122 sed "s/^/$as_me: WARNING: /" >&2 14123 ;; 14124 esac 14125 echo "$as_me:$LINENO: checking for $ac_header" >&5 14126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14127 if eval "test \"\${$as_ac_Header+set}\" = set"; then 14128 echo $ECHO_N "(cached) $ECHO_C" >&6 14129 else 14130 eval "$as_ac_Header=\$ac_header_preproc" 14131 fi 14132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14134 14135 fi 14136 if test `eval echo '${'$as_ac_Header'}'` = yes; then 14137 cat >>confdefs.h <<_ACEOF 14138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14139 _ACEOF 14140 14141 else 14142 { { echo "$as_me:$LINENO: error: shift.h not found in $CPPFLAGS" >&5 14143 echo "$as_me: error: shift.h not found in $CPPFLAGS" >&2;} 14144 { (exit 1); exit 1; }; } 14145 fi 14146 14147 done 14148 14149 # LIBS="$LIBS $rfio_root_dir/lib/libshift.a" 14150 LDFLAGS="$OLDLDFLAGS" 14151 if test "$ac_cv_func_rfio_open" = "yes" ; then 14152 echo "$as_me:$LINENO: checking for rfio_HsmIf_FindPhysicalPath" >&5 14153 echo $ECHO_N "checking for rfio_HsmIf_FindPhysicalPath... $ECHO_C" >&6 14154 if test "${ac_cv_func_rfio_HsmIf_FindPhysicalPath+set}" = set; then 14155 echo $ECHO_N "(cached) $ECHO_C" >&6 14156 else 14157 cat >conftest.$ac_ext <<_ACEOF 14158 /* confdefs.h. */ 14159 _ACEOF 14160 cat confdefs.h >>conftest.$ac_ext 14161 cat >>conftest.$ac_ext <<_ACEOF 14162 /* end confdefs.h. */ 14163 /* Define rfio_HsmIf_FindPhysicalPath to an innocuous variant, in case <limits.h> declares rfio_HsmIf_FindPhysicalPath. 14164 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14165 #define rfio_HsmIf_FindPhysicalPath innocuous_rfio_HsmIf_FindPhysicalPath 14166 14167 /* System header to define __stub macros and hopefully few prototypes, 14168 which can conflict with char rfio_HsmIf_FindPhysicalPath (); below. 14169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14170 <limits.h> exists even on freestanding compilers. */ 14171 14172 #ifdef __STDC__ 14173 # include <limits.h> 14174 #else 14175 # include <assert.h> 14176 #endif 14177 14178 #undef rfio_HsmIf_FindPhysicalPath 14179 14180 /* Override any gcc2 internal prototype to avoid an error. */ 14181 #ifdef __cplusplus 14182 extern "C" 14183 { 14184 #endif 14185 /* We use char because int might match the return type of a gcc2 14186 builtin and then its argument prototype would still apply. */ 14187 char rfio_HsmIf_FindPhysicalPath (); 14188 /* The GNU C library defines this for functions which it implements 14189 to always fail with ENOSYS. Some functions are actually named 14190 something starting with __ and the normal name is an alias. */ 14191 #if defined (__stub_rfio_HsmIf_FindPhysicalPath) || defined (__stub___rfio_HsmIf_FindPhysicalPath) 14192 choke me 14193 #else 14194 char (*f) () = rfio_HsmIf_FindPhysicalPath; 14195 #endif 14196 #ifdef __cplusplus 14197 } 14198 #endif 14199 14200 int 14201 main () 14202 { 14203 return f != rfio_HsmIf_FindPhysicalPath; 14204 ; 14205 return 0; 14206 } 14207 _ACEOF 14208 rm -f conftest.$ac_objext conftest$ac_exeext 14209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14210 (eval $ac_link) 2>conftest.er1 14211 ac_status=$? 14212 grep -v '^ *+' conftest.er1 >conftest.err 14213 rm -f conftest.er1 14214 cat conftest.err >&5 14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14216 (exit $ac_status); } && 14217 { ac_try='test -z "$ac_c_werror_flag" 14218 || test ! -s conftest.err' 14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14220 (eval $ac_try) 2>&5 14221 ac_status=$? 14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14223 (exit $ac_status); }; } && 14224 { ac_try='test -s conftest$ac_exeext' 14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14226 (eval $ac_try) 2>&5 14227 ac_status=$? 14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14229 (exit $ac_status); }; }; then 14230 ac_cv_func_rfio_HsmIf_FindPhysicalPath=yes 14231 else 14232 echo "$as_me: failed program was:" >&5 14233 sed 's/^/| /' conftest.$ac_ext >&5 14234 14235 ac_cv_func_rfio_HsmIf_FindPhysicalPath=no 14236 fi 14237 rm -f conftest.err conftest.$ac_objext \ 14238 conftest$ac_exeext conftest.$ac_ext 14239 fi 14240 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_HsmIf_FindPhysicalPath" >&5 14241 echo "${ECHO_T}$ac_cv_func_rfio_HsmIf_FindPhysicalPath" >&6 14242 if test $ac_cv_func_rfio_HsmIf_FindPhysicalPath = yes; then 14243 result=yes 14244 else 14245 result=no 14246 fi 14247 14248 if test $result = yes ; then 14249 if test "${ac_cv_header_stage_api_h+set}" = set; then 14250 echo "$as_me:$LINENO: checking for stage_api.h" >&5 14251 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 14252 if test "${ac_cv_header_stage_api_h+set}" = set; then 14253 echo $ECHO_N "(cached) $ECHO_C" >&6 14254 fi 14255 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 14256 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 14257 else 14258 # Is the header compilable? 14259 echo "$as_me:$LINENO: checking stage_api.h usability" >&5 14260 echo $ECHO_N "checking stage_api.h usability... $ECHO_C" >&6 14261 cat >conftest.$ac_ext <<_ACEOF 14262 /* confdefs.h. */ 14263 _ACEOF 14264 cat confdefs.h >>conftest.$ac_ext 14265 cat >>conftest.$ac_ext <<_ACEOF 14266 /* end confdefs.h. */ 14267 $ac_includes_default 14268 #include <stage_api.h> 14269 _ACEOF 14270 rm -f conftest.$ac_objext 14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14272 (eval $ac_compile) 2>conftest.er1 14273 ac_status=$? 14274 grep -v '^ *+' conftest.er1 >conftest.err 14275 rm -f conftest.er1 14276 cat conftest.err >&5 14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14278 (exit $ac_status); } && 14279 { ac_try='test -z "$ac_c_werror_flag" 14280 || test ! -s conftest.err' 14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14282 (eval $ac_try) 2>&5 14283 ac_status=$? 14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14285 (exit $ac_status); }; } && 14286 { ac_try='test -s conftest.$ac_objext' 14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14288 (eval $ac_try) 2>&5 14289 ac_status=$? 14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14291 (exit $ac_status); }; }; then 14292 ac_header_compiler=yes 14293 else 14294 echo "$as_me: failed program was:" >&5 14295 sed 's/^/| /' conftest.$ac_ext >&5 14296 14297 ac_header_compiler=no 14298 fi 14299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14301 echo "${ECHO_T}$ac_header_compiler" >&6 14302 14303 # Is the header present? 14304 echo "$as_me:$LINENO: checking stage_api.h presence" >&5 14305 echo $ECHO_N "checking stage_api.h presence... $ECHO_C" >&6 14306 cat >conftest.$ac_ext <<_ACEOF 14307 /* confdefs.h. */ 14308 _ACEOF 14309 cat confdefs.h >>conftest.$ac_ext 14310 cat >>conftest.$ac_ext <<_ACEOF 14311 /* end confdefs.h. */ 14312 #include <stage_api.h> 14313 _ACEOF 14314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 14315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14316 ac_status=$? 14317 grep -v '^ *+' conftest.er1 >conftest.err 14318 rm -f conftest.er1 14319 cat conftest.err >&5 14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14321 (exit $ac_status); } >/dev/null; then 14322 if test -s conftest.err; then 14323 ac_cpp_err=$ac_c_preproc_warn_flag 14324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14325 else 14326 ac_cpp_err= 14327 fi 14328 else 14329 ac_cpp_err=yes 14330 fi 14331 if test -z "$ac_cpp_err"; then 14332 ac_header_preproc=yes 14333 else 14334 echo "$as_me: failed program was:" >&5 14335 sed 's/^/| /' conftest.$ac_ext >&5 14336 14337 ac_header_preproc=no 14338 fi 14339 rm -f conftest.err conftest.$ac_ext 14340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14341 echo "${ECHO_T}$ac_header_preproc" >&6 14342 14343 # So? What about this header? 14344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14345 yes:no: ) 14346 { echo "$as_me:$LINENO: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&5 14347 echo "$as_me: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14348 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the compiler's result" >&5 14349 echo "$as_me: WARNING: stage_api.h: proceeding with the compiler's result" >&2;} 14350 ac_header_preproc=yes 14351 ;; 14352 no:yes:* ) 14353 { echo "$as_me:$LINENO: WARNING: stage_api.h: present but cannot be compiled" >&5 14354 echo "$as_me: WARNING: stage_api.h: present but cannot be compiled" >&2;} 14355 { echo "$as_me:$LINENO: WARNING: stage_api.h: check for missing prerequisite headers?" >&5 14356 echo "$as_me: WARNING: stage_api.h: check for missing prerequisite headers?" >&2;} 14357 { echo "$as_me:$LINENO: WARNING: stage_api.h: see the Autoconf documentation" >&5 14358 echo "$as_me: WARNING: stage_api.h: see the Autoconf documentation" >&2;} 14359 { echo "$as_me:$LINENO: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&5 14360 echo "$as_me: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&2;} 14361 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the preprocessor's result" >&5 14362 echo "$as_me: WARNING: stage_api.h: proceeding with the preprocessor's result" >&2;} 14363 { echo "$as_me:$LINENO: WARNING: stage_api.h: in the future, the compiler will take precedence" >&5 14364 echo "$as_me: WARNING: stage_api.h: in the future, the compiler will take precedence" >&2;} 14365 ( 14366 cat <<\_ASBOX 14367 ## ------------------------------------------ ## 14368 ## Report this to the AC_PACKAGE_NAME lists. ## 14369 ## ------------------------------------------ ## 14370 _ASBOX 14371 ) | 14372 sed "s/^/$as_me: WARNING: /" >&2 14373 ;; 14374 esac 14375 echo "$as_me:$LINENO: checking for stage_api.h" >&5 14376 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 14377 if test "${ac_cv_header_stage_api_h+set}" = set; then 14378 echo $ECHO_N "(cached) $ECHO_C" >&6 14379 else 14380 ac_cv_header_stage_api_h=$ac_header_preproc 14381 fi 14382 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 14383 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 14384 14385 fi 14386 if test $ac_cv_header_stage_api_h = yes; then 14387 result=yes 14388 else 14389 { { echo "$as_me:$LINENO: error: shift/stage_api.h not found in $CPPFLAGS" >&5 14390 echo "$as_me: error: shift/stage_api.h not found in $CPPFLAGS" >&2;} 14391 { (exit 1); exit 1; }; } 14392 fi 14393 14394 14395 cat >>confdefs.h <<\_ACEOF 14396 #define CASTOR 1 14397 _ACEOF 14398 14399 fi 14400 else 14401 echo "$as_me:$LINENO: checking for rfio_setcos" >&5 14402 echo $ECHO_N "checking for rfio_setcos... $ECHO_C" >&6 14403 if test "${ac_cv_func_rfio_setcos+set}" = set; then 14404 echo $ECHO_N "(cached) $ECHO_C" >&6 14405 else 14406 cat >conftest.$ac_ext <<_ACEOF 14407 /* confdefs.h. */ 14408 _ACEOF 14409 cat confdefs.h >>conftest.$ac_ext 14410 cat >>conftest.$ac_ext <<_ACEOF 14411 /* end confdefs.h. */ 14412 /* Define rfio_setcos to an innocuous variant, in case <limits.h> declares rfio_setcos. 14413 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14414 #define rfio_setcos innocuous_rfio_setcos 14415 14416 /* System header to define __stub macros and hopefully few prototypes, 14417 which can conflict with char rfio_setcos (); below. 14418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14419 <limits.h> exists even on freestanding compilers. */ 14420 14421 #ifdef __STDC__ 14422 # include <limits.h> 14423 #else 14424 # include <assert.h> 14425 #endif 14426 14427 #undef rfio_setcos 14428 14429 /* Override any gcc2 internal prototype to avoid an error. */ 14430 #ifdef __cplusplus 14431 extern "C" 14432 { 14433 #endif 14434 /* We use char because int might match the return type of a gcc2 14435 builtin and then its argument prototype would still apply. */ 14436 char rfio_setcos (); 14437 /* The GNU C library defines this for functions which it implements 14438 to always fail with ENOSYS. Some functions are actually named 14439 something starting with __ and the normal name is an alias. */ 14440 #if defined (__stub_rfio_setcos) || defined (__stub___rfio_setcos) 14441 choke me 14442 #else 14443 char (*f) () = rfio_setcos; 14444 #endif 14445 #ifdef __cplusplus 14446 } 14447 #endif 14448 14449 int 14450 main () 14451 { 14452 return f != rfio_setcos; 14453 ; 14454 return 0; 14455 } 14456 _ACEOF 14457 rm -f conftest.$ac_objext conftest$ac_exeext 14458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14459 (eval $ac_link) 2>conftest.er1 14460 ac_status=$? 14461 grep -v '^ *+' conftest.er1 >conftest.err 14462 rm -f conftest.er1 14463 cat conftest.err >&5 14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14465 (exit $ac_status); } && 14466 { ac_try='test -z "$ac_c_werror_flag" 14467 || test ! -s conftest.err' 14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14469 (eval $ac_try) 2>&5 14470 ac_status=$? 14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14472 (exit $ac_status); }; } && 14473 { ac_try='test -s conftest$ac_exeext' 14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14475 (eval $ac_try) 2>&5 14476 ac_status=$? 14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14478 (exit $ac_status); }; }; then 14479 ac_cv_func_rfio_setcos=yes 14480 else 14481 echo "$as_me: failed program was:" >&5 14482 sed 's/^/| /' conftest.$ac_ext >&5 14483 14484 ac_cv_func_rfio_setcos=no 14485 fi 14486 rm -f conftest.err conftest.$ac_objext \ 14487 conftest$ac_exeext conftest.$ac_ext 14488 fi 14489 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_setcos" >&5 14490 echo "${ECHO_T}$ac_cv_func_rfio_setcos" >&6 14491 if test $ac_cv_func_rfio_setcos = yes; then 14492 result=yes 14493 else 14494 result=no 14495 fi 14496 14497 if test $result = no ; then 14498 unset ac_cv_func_rfio_setcos 14499 14500 # Check whether --with-hpss or --without-hpss was given. 14501 if test "${with_hpss+set}" = set; then 14502 withval="$with_hpss" 14503 resulthpss=yes 14504 else 14505 resulthpss=no 14506 fi; 14507 if test $resulthpss != no ; then 14508 if test $with_hpss = yes ; then 14509 hpss_root_dir="/usr/local" 14510 else 14511 hpss_root_dir=$with_hpss 14512 fi 14513 OLDLIBS="$LIBS" 14514 LIBS="$LIBS $hpss_root_dir/lib/libhpss.a" 14515 echo "$as_me:$LINENO: checking for rfio_setcos" >&5 14516 echo $ECHO_N "checking for rfio_setcos... $ECHO_C" >&6 14517 if test "${ac_cv_func_rfio_setcos+set}" = set; then 14518 echo $ECHO_N "(cached) $ECHO_C" >&6 14519 else 14520 cat >conftest.$ac_ext <<_ACEOF 14521 /* confdefs.h. */ 14522 _ACEOF 14523 cat confdefs.h >>conftest.$ac_ext 14524 cat >>conftest.$ac_ext <<_ACEOF 14525 /* end confdefs.h. */ 14526 /* Define rfio_setcos to an innocuous variant, in case <limits.h> declares rfio_setcos. 14527 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14528 #define rfio_setcos innocuous_rfio_setcos 14529 14530 /* System header to define __stub macros and hopefully few prototypes, 14531 which can conflict with char rfio_setcos (); below. 14532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14533 <limits.h> exists even on freestanding compilers. */ 14534 14535 #ifdef __STDC__ 14536 # include <limits.h> 14537 #else 14538 # include <assert.h> 14539 #endif 14540 14541 #undef rfio_setcos 14542 14543 /* Override any gcc2 internal prototype to avoid an error. */ 14544 #ifdef __cplusplus 14545 extern "C" 14546 { 14547 #endif 14548 /* We use char because int might match the return type of a gcc2 14549 builtin and then its argument prototype would still apply. */ 14550 char rfio_setcos (); 14551 /* The GNU C library defines this for functions which it implements 14552 to always fail with ENOSYS. Some functions are actually named 14553 something starting with __ and the normal name is an alias. */ 14554 #if defined (__stub_rfio_setcos) || defined (__stub___rfio_setcos) 14555 choke me 14556 #else 14557 char (*f) () = rfio_setcos; 14558 #endif 14559 #ifdef __cplusplus 14560 } 14561 #endif 14562 14563 int 14564 main () 14565 { 14566 return f != rfio_setcos; 14567 ; 14568 return 0; 14569 } 14570 _ACEOF 14571 rm -f conftest.$ac_objext conftest$ac_exeext 14572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14573 (eval $ac_link) 2>conftest.er1 14574 ac_status=$? 14575 grep -v '^ *+' conftest.er1 >conftest.err 14576 rm -f conftest.er1 14577 cat conftest.err >&5 14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14579 (exit $ac_status); } && 14580 { ac_try='test -z "$ac_c_werror_flag" 14581 || test ! -s conftest.err' 14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14583 (eval $ac_try) 2>&5 14584 ac_status=$? 14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14586 (exit $ac_status); }; } && 14587 { ac_try='test -s conftest$ac_exeext' 14588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14589 (eval $ac_try) 2>&5 14590 ac_status=$? 14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14592 (exit $ac_status); }; }; then 14593 ac_cv_func_rfio_setcos=yes 14594 else 14595 echo "$as_me: failed program was:" >&5 14596 sed 's/^/| /' conftest.$ac_ext >&5 14597 14598 ac_cv_func_rfio_setcos=no 14599 fi 14600 rm -f conftest.err conftest.$ac_objext \ 14601 conftest$ac_exeext conftest.$ac_ext 14602 fi 14603 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_setcos" >&5 14604 echo "${ECHO_T}$ac_cv_func_rfio_setcos" >&6 14605 if test $ac_cv_func_rfio_setcos = yes; then 14606 result=yes 14607 else 14608 result=no 14609 fi 14610 14611 if test $result = no ; then 14612 LIBS="$OLDLIBS" 14613 fi 14614 fi 14615 fi 14616 if test $result = no ; then 14617 if test "${ac_cv_header_stage_api_h+set}" = set; then 14618 echo "$as_me:$LINENO: checking for stage_api.h" >&5 14619 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 14620 if test "${ac_cv_header_stage_api_h+set}" = set; then 14621 echo $ECHO_N "(cached) $ECHO_C" >&6 14622 fi 14623 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 14624 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 14625 else 14626 # Is the header compilable? 14627 echo "$as_me:$LINENO: checking stage_api.h usability" >&5 14628 echo $ECHO_N "checking stage_api.h usability... $ECHO_C" >&6 14629 cat >conftest.$ac_ext <<_ACEOF 14630 /* confdefs.h. */ 14631 _ACEOF 14632 cat confdefs.h >>conftest.$ac_ext 14633 cat >>conftest.$ac_ext <<_ACEOF 14634 /* end confdefs.h. */ 14635 $ac_includes_default 14636 #include <stage_api.h> 14637 _ACEOF 14638 rm -f conftest.$ac_objext 14639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14640 (eval $ac_compile) 2>conftest.er1 14641 ac_status=$? 14642 grep -v '^ *+' conftest.er1 >conftest.err 14643 rm -f conftest.er1 14644 cat conftest.err >&5 14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14646 (exit $ac_status); } && 14647 { ac_try='test -z "$ac_c_werror_flag" 14648 || test ! -s conftest.err' 14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14650 (eval $ac_try) 2>&5 14651 ac_status=$? 14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14653 (exit $ac_status); }; } && 14654 { ac_try='test -s conftest.$ac_objext' 14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14656 (eval $ac_try) 2>&5 14657 ac_status=$? 14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14659 (exit $ac_status); }; }; then 14660 ac_header_compiler=yes 14661 else 14662 echo "$as_me: failed program was:" >&5 14663 sed 's/^/| /' conftest.$ac_ext >&5 14664 14665 ac_header_compiler=no 14666 fi 14667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14669 echo "${ECHO_T}$ac_header_compiler" >&6 14670 14671 # Is the header present? 14672 echo "$as_me:$LINENO: checking stage_api.h presence" >&5 14673 echo $ECHO_N "checking stage_api.h presence... $ECHO_C" >&6 14674 cat >conftest.$ac_ext <<_ACEOF 14675 /* confdefs.h. */ 14676 _ACEOF 14677 cat confdefs.h >>conftest.$ac_ext 14678 cat >>conftest.$ac_ext <<_ACEOF 14679 /* end confdefs.h. */ 14680 #include <stage_api.h> 14681 _ACEOF 14682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 14683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14684 ac_status=$? 14685 grep -v '^ *+' conftest.er1 >conftest.err 14686 rm -f conftest.er1 14687 cat conftest.err >&5 14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14689 (exit $ac_status); } >/dev/null; then 14690 if test -s conftest.err; then 14691 ac_cpp_err=$ac_c_preproc_warn_flag 14692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14693 else 14694 ac_cpp_err= 14695 fi 14696 else 14697 ac_cpp_err=yes 14698 fi 14699 if test -z "$ac_cpp_err"; then 14700 ac_header_preproc=yes 14701 else 14702 echo "$as_me: failed program was:" >&5 14703 sed 's/^/| /' conftest.$ac_ext >&5 14704 14705 ac_header_preproc=no 14706 fi 14707 rm -f conftest.err conftest.$ac_ext 14708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14709 echo "${ECHO_T}$ac_header_preproc" >&6 14710 14711 # So? What about this header? 14712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14713 yes:no: ) 14714 { echo "$as_me:$LINENO: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&5 14715 echo "$as_me: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14716 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the compiler's result" >&5 14717 echo "$as_me: WARNING: stage_api.h: proceeding with the compiler's result" >&2;} 14718 ac_header_preproc=yes 14719 ;; 14720 no:yes:* ) 14721 { echo "$as_me:$LINENO: WARNING: stage_api.h: present but cannot be compiled" >&5 14722 echo "$as_me: WARNING: stage_api.h: present but cannot be compiled" >&2;} 14723 { echo "$as_me:$LINENO: WARNING: stage_api.h: check for missing prerequisite headers?" >&5 14724 echo "$as_me: WARNING: stage_api.h: check for missing prerequisite headers?" >&2;} 14725 { echo "$as_me:$LINENO: WARNING: stage_api.h: see the Autoconf documentation" >&5 14726 echo "$as_me: WARNING: stage_api.h: see the Autoconf documentation" >&2;} 14727 { echo "$as_me:$LINENO: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&5 14728 echo "$as_me: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&2;} 14729 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the preprocessor's result" >&5 14730 echo "$as_me: WARNING: stage_api.h: proceeding with the preprocessor's result" >&2;} 14731 { echo "$as_me:$LINENO: WARNING: stage_api.h: in the future, the compiler will take precedence" >&5 14732 echo "$as_me: WARNING: stage_api.h: in the future, the compiler will take precedence" >&2;} 14733 ( 14734 cat <<\_ASBOX 14735 ## ------------------------------------------ ## 14736 ## Report this to the AC_PACKAGE_NAME lists. ## 14737 ## ------------------------------------------ ## 14738 _ASBOX 14739 ) | 14740 sed "s/^/$as_me: WARNING: /" >&2 14741 ;; 14742 esac 14743 echo "$as_me:$LINENO: checking for stage_api.h" >&5 14744 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 14745 if test "${ac_cv_header_stage_api_h+set}" = set; then 14746 echo $ECHO_N "(cached) $ECHO_C" >&6 14747 else 14748 ac_cv_header_stage_api_h=$ac_header_preproc 14749 fi 14750 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 14751 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 14752 14753 fi 14754 if test $ac_cv_header_stage_api_h = yes; then 14755 result=yes 14756 else 14757 { { echo "$as_me:$LINENO: error: shift/stage_api.h not found in $CPPFLAGS" >&5 14758 echo "$as_me: error: shift/stage_api.h not found in $CPPFLAGS" >&2;} 14759 { (exit 1); exit 1; }; } 14760 fi 14761 14762 14763 14764 for ac_func in stageclr_Path 14765 do 14766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14767 echo "$as_me:$LINENO: checking for $ac_func" >&5 14768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14769 if eval "test \"\${$as_ac_var+set}\" = set"; then 14770 echo $ECHO_N "(cached) $ECHO_C" >&6 14771 else 14772 cat >conftest.$ac_ext <<_ACEOF 14773 /* confdefs.h. */ 14774 _ACEOF 14775 cat confdefs.h >>conftest.$ac_ext 14776 cat >>conftest.$ac_ext <<_ACEOF 14777 /* end confdefs.h. */ 14778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14779 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14780 #define $ac_func innocuous_$ac_func 14781 14782 /* System header to define __stub macros and hopefully few prototypes, 14783 which can conflict with char $ac_func (); below. 14784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14785 <limits.h> exists even on freestanding compilers. */ 14786 14787 #ifdef __STDC__ 14788 # include <limits.h> 14789 #else 14790 # include <assert.h> 14791 #endif 14792 14793 #undef $ac_func 14794 14795 /* Override any gcc2 internal prototype to avoid an error. */ 14796 #ifdef __cplusplus 14797 extern "C" 14798 { 14799 #endif 14800 /* We use char because int might match the return type of a gcc2 14801 builtin and then its argument prototype would still apply. */ 14802 char $ac_func (); 14803 /* The GNU C library defines this for functions which it implements 14804 to always fail with ENOSYS. Some functions are actually named 14805 something starting with __ and the normal name is an alias. */ 14806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14807 choke me 14808 #else 14809 char (*f) () = $ac_func; 14810 #endif 14811 #ifdef __cplusplus 14812 } 14813 #endif 14814 14815 int 14816 main () 14817 { 14818 return f != $ac_func; 14819 ; 14820 return 0; 14821 } 14822 _ACEOF 14823 rm -f conftest.$ac_objext conftest$ac_exeext 14824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14825 (eval $ac_link) 2>conftest.er1 14826 ac_status=$? 14827 grep -v '^ *+' conftest.er1 >conftest.err 14828 rm -f conftest.er1 14829 cat conftest.err >&5 14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14831 (exit $ac_status); } && 14832 { ac_try='test -z "$ac_c_werror_flag" 14833 || test ! -s conftest.err' 14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14835 (eval $ac_try) 2>&5 14836 ac_status=$? 14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14838 (exit $ac_status); }; } && 14839 { ac_try='test -s conftest$ac_exeext' 14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14841 (eval $ac_try) 2>&5 14842 ac_status=$? 14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14844 (exit $ac_status); }; }; then 14845 eval "$as_ac_var=yes" 14846 else 14847 echo "$as_me: failed program was:" >&5 14848 sed 's/^/| /' conftest.$ac_ext >&5 14849 14850 eval "$as_ac_var=no" 14851 fi 14852 rm -f conftest.err conftest.$ac_objext \ 14853 conftest$ac_exeext conftest.$ac_ext 14854 fi 14855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14857 if test `eval echo '${'$as_ac_var'}'` = yes; then 14858 cat >>confdefs.h <<_ACEOF 14859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14860 _ACEOF 14861 14862 fi 14863 done 14864 14865 cat >>confdefs.h <<\_ACEOF 14866 #define CASTOR 1 14867 _ACEOF 14868 14869 fi 14870 fi 14871 ccin2p3_cv_rfio=yes 14872 fi 14873 if test $ccin2p3_cv_rfio = yes; then 14874 RFIOOBJS="bbftp_retr_rfio.o bbftp_store_rfio.o" 14875 else 14876 { echo "$as_me:$LINENO: WARNING: RFIO not installed" >&5 14877 echo "$as_me: WARNING: RFIO not installed" >&2;} 14878 fi 14879 14880 fi 14881 fi 11378 14882 11379 14883 # Check whether --enable-authentication or --disable-authentication was given. -
TI05-delivery/trunk/src/bbftp-client-3.2.0/bbftpc/configure.in
r1389 r1406 613 613 dnl Now check for RFIO 614 614 dnl =========================================================================== 615 # 616 # This section requires a macro which isn't provided in the bbftp distribution 617 # For the moment I've disabled it since NDG doesn't expect to support RFIO. 618 # 619 #AC_ARG_WITH([rfio],[ 620 # --with-rfio Enable RFIO interface: automatic search (DEFAULT) in /usr/local 621 # --with-rfio=DIR Enable RFIO interface: search libshift in DIR/lib and .h in DIR/include 622 # --without-rfio Disable RFIO interface], 623 #[result=yes],[result=no]) 624 #if test $result = no ; then 625 # with_rfio="yes" 626 #fi 627 #if test "$with_rfio" != "no" ; then 628 # if test "$with_rfio" = "yes" ; then 629 # CCIN2P3_CHECK_RFIO([RFIOOBJS="bbftp_retr_rfio.o bbftp_store_rfio.o"],[AC_MSG_WARN(RFIO not installed)]) 630 # else 631 # CCIN2P3_CHECK_RFIO([RFIOOBJS="bbftp_retr_rfio.o bbftp_store_rfio.o"],[AC_MSG_WARN(RFIO not installed)],[$with_rfio]) 632 # fi 633 #fi 615 616 AC_ARG_WITH([rfio],[ 617 --with-rfio Enable RFIO interface: automatic search (DEFAULT) in /usr/local 618 --with-rfio=DIR Enable RFIO interface: search libshift in DIR/lib and .h in DIR/include 619 --without-rfio Disable RFIO interface], 620 [result=yes],[result=no]) 621 if test $result = no ; then 622 with_rfio="yes" 623 fi 624 if test "$with_rfio" != "no" ; then 625 if test "$with_rfio" = "yes" ; then 626 CCIN2P3_CHECK_RFIO([RFIOOBJS="bbftp_retr_rfio.o bbftp_store_rfio.o"],[AC_MSG_WARN(RFIO not installed)]) 627 else 628 CCIN2P3_CHECK_RFIO([RFIOOBJS="bbftp_retr_rfio.o bbftp_store_rfio.o"],[AC_MSG_WARN(RFIO not installed)],[$with_rfio]) 629 fi 630 fi 634 631 635 632 dnl =========================================================================== -
TI05-delivery/trunk/src/bbftp-server-3.2.0/bbftpd/configure
r1369 r1406 877 877 878 878 --with-gridmap Location of the gridmap file (DEFAULT=/etc/grid-security/grid-mapfile) 879 880 --with-rfio Enable RFIO interface: automatic search (DEFAULT) in /usr/local 881 --with-rfio=DIR Enable RFIO interface: search libshift in DIR/lib and .h in DIR/include 882 --without-rfio Disable RFIO interface 883 884 --with-hpss Enable HPSS interface: automatic search (DEFAULT) in /usr/local 885 --with-hpss=DIR Enable HPSS interface: search libhpss in DIR/lib 886 --without-hpss Disable HPSS interface 879 887 880 888 --with-ssl Enable encoding: automatic search (DEFAULT) … … 12636 12644 12637 12645 12638 # 12639 # This section requires a macro which isn't provided in the bbftp distribution 12640 # For the moment I've disabled it since NDG doesn't expect to support RFIO. 12641 # 12642 #AC_ARG_WITH([rfio],[ 12643 # --with-rfio Enable RFIO interface: automatic search (DEFAULT) in /usr/local 12644 # --with-rfio=DIR Enable RFIO interface: search libshift in DIR/lib and .h in DIR/include 12645 # --without-rfio Disable RFIO interface], 12646 #[result=yes],[result=no]) 12647 #if test $result = no ; then 12648 # with_rfio="yes" 12649 #fi 12650 #if test "$with_rfio" != "no" ; then 12651 # if test "$with_rfio" = "yes" ; then 12652 # CCIN2P3_CHECK_RFIO([RFIOOBJS="bbftpd_retr_rfio.o bbftpd_store_rfio.o sendafilerfio.o"],[AC_MSG_WARN(RFIO not installed)]) 12653 # else 12654 # CCIN2P3_CHECK_RFIO([RFIOOBJS="bbftpd_retr_rfio.o bbftpd_store_rfio.o sendafilerfio.o"],[AC_MSG_WARN(RFIO not installed)],[$with_rfio]) 12655 # fi 12656 #fi 12646 12647 12648 # Check whether --with-rfio or --without-rfio was given. 12649 if test "${with_rfio+set}" = set; then 12650 withval="$with_rfio" 12651 result=yes 12652 else 12653 result=no 12654 fi; 12655 if test $result = no ; then 12656 with_rfio="yes" 12657 fi 12658 if test "$with_rfio" != "no" ; then 12659 if test "$with_rfio" = "yes" ; then 12660 12661 OLDLDFLAGS="$LDFLAGS" 12662 OLDCPPFLAGS="$CPPFLAGS" 12663 OLDLIBS=$LIBS 12664 if test 2 -gt 2 ; then 12665 rfio_root_dir= 12666 else 12667 rfio_root_dir="/usr/local" 12668 fi 12669 # LDFLAGS="$LDFLAGS -L$rfio_root_dir/lib" 12670 LIBS="$LIBS $rfio_root_dir/lib/libshift.a" 12671 CPPFLAGS="$CPPFLAGS -I$rfio_root_dir/include -I$rfio_root_dir/include/shift" 12672 echo "$as_me:$LINENO: checking for library containing getservbyname_r" >&5 12673 echo $ECHO_N "checking for library containing getservbyname_r... $ECHO_C" >&6 12674 if test "${ac_cv_search_getservbyname_r+set}" = set; then 12675 echo $ECHO_N "(cached) $ECHO_C" >&6 12676 else 12677 ac_func_search_save_LIBS=$LIBS 12678 ac_cv_search_getservbyname_r=no 12679 cat >conftest.$ac_ext <<_ACEOF 12680 /* confdefs.h. */ 12681 _ACEOF 12682 cat confdefs.h >>conftest.$ac_ext 12683 cat >>conftest.$ac_ext <<_ACEOF 12684 /* end confdefs.h. */ 12685 12686 /* Override any gcc2 internal prototype to avoid an error. */ 12687 #ifdef __cplusplus 12688 extern "C" 12689 #endif 12690 /* We use char because int might match the return type of a gcc2 12691 builtin and then its argument prototype would still apply. */ 12692 char getservbyname_r (); 12693 int 12694 main () 12695 { 12696 getservbyname_r (); 12697 ; 12698 return 0; 12699 } 12700 _ACEOF 12701 rm -f conftest.$ac_objext conftest$ac_exeext 12702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12703 (eval $ac_link) 2>conftest.er1 12704 ac_status=$? 12705 grep -v '^ *+' conftest.er1 >conftest.err 12706 rm -f conftest.er1 12707 cat conftest.err >&5 12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12709 (exit $ac_status); } && 12710 { ac_try='test -z "$ac_c_werror_flag" 12711 || test ! -s conftest.err' 12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12713 (eval $ac_try) 2>&5 12714 ac_status=$? 12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12716 (exit $ac_status); }; } && 12717 { ac_try='test -s conftest$ac_exeext' 12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12719 (eval $ac_try) 2>&5 12720 ac_status=$? 12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12722 (exit $ac_status); }; }; then 12723 ac_cv_search_getservbyname_r="none required" 12724 else 12725 echo "$as_me: failed program was:" >&5 12726 sed 's/^/| /' conftest.$ac_ext >&5 12727 12728 fi 12729 rm -f conftest.err conftest.$ac_objext \ 12730 conftest$ac_exeext conftest.$ac_ext 12731 if test "$ac_cv_search_getservbyname_r" = no; then 12732 for ac_lib in socket xnet; do 12733 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12734 cat >conftest.$ac_ext <<_ACEOF 12735 /* confdefs.h. */ 12736 _ACEOF 12737 cat confdefs.h >>conftest.$ac_ext 12738 cat >>conftest.$ac_ext <<_ACEOF 12739 /* end confdefs.h. */ 12740 12741 /* Override any gcc2 internal prototype to avoid an error. */ 12742 #ifdef __cplusplus 12743 extern "C" 12744 #endif 12745 /* We use char because int might match the return type of a gcc2 12746 builtin and then its argument prototype would still apply. */ 12747 char getservbyname_r (); 12748 int 12749 main () 12750 { 12751 getservbyname_r (); 12752 ; 12753 return 0; 12754 } 12755 _ACEOF 12756 rm -f conftest.$ac_objext conftest$ac_exeext 12757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12758 (eval $ac_link) 2>conftest.er1 12759 ac_status=$? 12760 grep -v '^ *+' conftest.er1 >conftest.err 12761 rm -f conftest.er1 12762 cat conftest.err >&5 12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12764 (exit $ac_status); } && 12765 { ac_try='test -z "$ac_c_werror_flag" 12766 || test ! -s conftest.err' 12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12768 (eval $ac_try) 2>&5 12769 ac_status=$? 12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12771 (exit $ac_status); }; } && 12772 { ac_try='test -s conftest$ac_exeext' 12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12774 (eval $ac_try) 2>&5 12775 ac_status=$? 12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12777 (exit $ac_status); }; }; then 12778 ac_cv_search_getservbyname_r="-l$ac_lib" 12779 break 12780 else 12781 echo "$as_me: failed program was:" >&5 12782 sed 's/^/| /' conftest.$ac_ext >&5 12783 12784 fi 12785 rm -f conftest.err conftest.$ac_objext \ 12786 conftest$ac_exeext conftest.$ac_ext 12787 done 12788 fi 12789 LIBS=$ac_func_search_save_LIBS 12790 fi 12791 echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname_r" >&5 12792 echo "${ECHO_T}$ac_cv_search_getservbyname_r" >&6 12793 if test "$ac_cv_search_getservbyname_r" != no; then 12794 test "$ac_cv_search_getservbyname_r" = "none required" || LIBS="$ac_cv_search_getservbyname_r $LIBS" 12795 12796 fi 12797 echo "$as_me:$LINENO: checking for library containing gethostbyaddr_r" >&5 12798 echo $ECHO_N "checking for library containing gethostbyaddr_r... $ECHO_C" >&6 12799 if test "${ac_cv_search_gethostbyaddr_r+set}" = set; then 12800 echo $ECHO_N "(cached) $ECHO_C" >&6 12801 else 12802 ac_func_search_save_LIBS=$LIBS 12803 ac_cv_search_gethostbyaddr_r=no 12804 cat >conftest.$ac_ext <<_ACEOF 12805 /* confdefs.h. */ 12806 _ACEOF 12807 cat confdefs.h >>conftest.$ac_ext 12808 cat >>conftest.$ac_ext <<_ACEOF 12809 /* end confdefs.h. */ 12810 12811 /* Override any gcc2 internal prototype to avoid an error. */ 12812 #ifdef __cplusplus 12813 extern "C" 12814 #endif 12815 /* We use char because int might match the return type of a gcc2 12816 builtin and then its argument prototype would still apply. */ 12817 char gethostbyaddr_r (); 12818 int 12819 main () 12820 { 12821 gethostbyaddr_r (); 12822 ; 12823 return 0; 12824 } 12825 _ACEOF 12826 rm -f conftest.$ac_objext conftest$ac_exeext 12827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12828 (eval $ac_link) 2>conftest.er1 12829 ac_status=$? 12830 grep -v '^ *+' conftest.er1 >conftest.err 12831 rm -f conftest.er1 12832 cat conftest.err >&5 12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12834 (exit $ac_status); } && 12835 { ac_try='test -z "$ac_c_werror_flag" 12836 || test ! -s conftest.err' 12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12838 (eval $ac_try) 2>&5 12839 ac_status=$? 12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12841 (exit $ac_status); }; } && 12842 { ac_try='test -s conftest$ac_exeext' 12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12844 (eval $ac_try) 2>&5 12845 ac_status=$? 12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12847 (exit $ac_status); }; }; then 12848 ac_cv_search_gethostbyaddr_r="none required" 12849 else 12850 echo "$as_me: failed program was:" >&5 12851 sed 's/^/| /' conftest.$ac_ext >&5 12852 12853 fi 12854 rm -f conftest.err conftest.$ac_objext \ 12855 conftest$ac_exeext conftest.$ac_ext 12856 if test "$ac_cv_search_gethostbyaddr_r" = no; then 12857 for ac_lib in nsl; do 12858 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12859 cat >conftest.$ac_ext <<_ACEOF 12860 /* confdefs.h. */ 12861 _ACEOF 12862 cat confdefs.h >>conftest.$ac_ext 12863 cat >>conftest.$ac_ext <<_ACEOF 12864 /* end confdefs.h. */ 12865 12866 /* Override any gcc2 internal prototype to avoid an error. */ 12867 #ifdef __cplusplus 12868 extern "C" 12869 #endif 12870 /* We use char because int might match the return type of a gcc2 12871 builtin and then its argument prototype would still apply. */ 12872 char gethostbyaddr_r (); 12873 int 12874 main () 12875 { 12876 gethostbyaddr_r (); 12877 ; 12878 return 0; 12879 } 12880 _ACEOF 12881 rm -f conftest.$ac_objext conftest$ac_exeext 12882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12883 (eval $ac_link) 2>conftest.er1 12884 ac_status=$? 12885 grep -v '^ *+' conftest.er1 >conftest.err 12886 rm -f conftest.er1 12887 cat conftest.err >&5 12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12889 (exit $ac_status); } && 12890 { ac_try='test -z "$ac_c_werror_flag" 12891 || test ! -s conftest.err' 12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12893 (eval $ac_try) 2>&5 12894 ac_status=$? 12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12896 (exit $ac_status); }; } && 12897 { ac_try='test -s conftest$ac_exeext' 12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12899 (eval $ac_try) 2>&5 12900 ac_status=$? 12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12902 (exit $ac_status); }; }; then 12903 ac_cv_search_gethostbyaddr_r="-l$ac_lib" 12904 break 12905 else 12906 echo "$as_me: failed program was:" >&5 12907 sed 's/^/| /' conftest.$ac_ext >&5 12908 12909 fi 12910 rm -f conftest.err conftest.$ac_objext \ 12911 conftest$ac_exeext conftest.$ac_ext 12912 done 12913 fi 12914 LIBS=$ac_func_search_save_LIBS 12915 fi 12916 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyaddr_r" >&5 12917 echo "${ECHO_T}$ac_cv_search_gethostbyaddr_r" >&6 12918 if test "$ac_cv_search_gethostbyaddr_r" != no; then 12919 test "$ac_cv_search_gethostbyaddr_r" = "none required" || LIBS="$ac_cv_search_gethostbyaddr_r $LIBS" 12920 12921 fi 12922 echo "$as_me:$LINENO: checking for library containing sched_get_priority_max" >&5 12923 echo $ECHO_N "checking for library containing sched_get_priority_max... $ECHO_C" >&6 12924 if test "${ac_cv_search_sched_get_priority_max+set}" = set; then 12925 echo $ECHO_N "(cached) $ECHO_C" >&6 12926 else 12927 ac_func_search_save_LIBS=$LIBS 12928 ac_cv_search_sched_get_priority_max=no 12929 cat >conftest.$ac_ext <<_ACEOF 12930 /* confdefs.h. */ 12931 _ACEOF 12932 cat confdefs.h >>conftest.$ac_ext 12933 cat >>conftest.$ac_ext <<_ACEOF 12934 /* end confdefs.h. */ 12935 12936 /* Override any gcc2 internal prototype to avoid an error. */ 12937 #ifdef __cplusplus 12938 extern "C" 12939 #endif 12940 /* We use char because int might match the return type of a gcc2 12941 builtin and then its argument prototype would still apply. */ 12942 char sched_get_priority_max (); 12943 int 12944 main () 12945 { 12946 sched_get_priority_max (); 12947 ; 12948 return 0; 12949 } 12950 _ACEOF 12951 rm -f conftest.$ac_objext conftest$ac_exeext 12952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12953 (eval $ac_link) 2>conftest.er1 12954 ac_status=$? 12955 grep -v '^ *+' conftest.er1 >conftest.err 12956 rm -f conftest.er1 12957 cat conftest.err >&5 12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12959 (exit $ac_status); } && 12960 { ac_try='test -z "$ac_c_werror_flag" 12961 || test ! -s conftest.err' 12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12963 (eval $ac_try) 2>&5 12964 ac_status=$? 12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12966 (exit $ac_status); }; } && 12967 { ac_try='test -s conftest$ac_exeext' 12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12969 (eval $ac_try) 2>&5 12970 ac_status=$? 12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12972 (exit $ac_status); }; }; then 12973 ac_cv_search_sched_get_priority_max="none required" 12974 else 12975 echo "$as_me: failed program was:" >&5 12976 sed 's/^/| /' conftest.$ac_ext >&5 12977 12978 fi 12979 rm -f conftest.err conftest.$ac_objext \ 12980 conftest$ac_exeext conftest.$ac_ext 12981 if test "$ac_cv_search_sched_get_priority_max" = no; then 12982 for ac_lib in rt posix4; do 12983 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12984 cat >conftest.$ac_ext <<_ACEOF 12985 /* confdefs.h. */ 12986 _ACEOF 12987 cat confdefs.h >>conftest.$ac_ext 12988 cat >>conftest.$ac_ext <<_ACEOF 12989 /* end confdefs.h. */ 12990 12991 /* Override any gcc2 internal prototype to avoid an error. */ 12992 #ifdef __cplusplus 12993 extern "C" 12994 #endif 12995 /* We use char because int might match the return type of a gcc2 12996 builtin and then its argument prototype would still apply. */ 12997 char sched_get_priority_max (); 12998 int 12999 main () 13000 { 13001 sched_get_priority_max (); 13002 ; 13003 return 0; 13004 } 13005 _ACEOF 13006 rm -f conftest.$ac_objext conftest$ac_exeext 13007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13008 (eval $ac_link) 2>conftest.er1 13009 ac_status=$? 13010 grep -v '^ *+' conftest.er1 >conftest.err 13011 rm -f conftest.er1 13012 cat conftest.err >&5 13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13014 (exit $ac_status); } && 13015 { ac_try='test -z "$ac_c_werror_flag" 13016 || test ! -s conftest.err' 13017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13018 (eval $ac_try) 2>&5 13019 ac_status=$? 13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13021 (exit $ac_status); }; } && 13022 { ac_try='test -s conftest$ac_exeext' 13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13024 (eval $ac_try) 2>&5 13025 ac_status=$? 13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13027 (exit $ac_status); }; }; then 13028 ac_cv_search_sched_get_priority_max="-l$ac_lib" 13029 break 13030 else 13031 echo "$as_me: failed program was:" >&5 13032 sed 's/^/| /' conftest.$ac_ext >&5 13033 13034 fi 13035 rm -f conftest.err conftest.$ac_objext \ 13036 conftest$ac_exeext conftest.$ac_ext 13037 done 13038 fi 13039 LIBS=$ac_func_search_save_LIBS 13040 fi 13041 echo "$as_me:$LINENO: result: $ac_cv_search_sched_get_priority_max" >&5 13042 echo "${ECHO_T}$ac_cv_search_sched_get_priority_max" >&6 13043 if test "$ac_cv_search_sched_get_priority_max" != no; then 13044 test "$ac_cv_search_sched_get_priority_max" = "none required" || LIBS="$ac_cv_search_sched_get_priority_max $LIBS" 13045 13046 fi 13047 as_ac_File=`echo "ac_cv_file_$rfio_root_dir/include/shift/rfio_api.h" | $as_tr_sh` 13048 echo "$as_me:$LINENO: checking for $rfio_root_dir/include/shift/rfio_api.h" >&5 13049 echo $ECHO_N "checking for $rfio_root_dir/include/shift/rfio_api.h... $ECHO_C" >&6 13050 if eval "test \"\${$as_ac_File+set}\" = set"; then 13051 echo $ECHO_N "(cached) $ECHO_C" >&6 13052 else 13053 test "$cross_compiling" = yes && 13054 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 13055 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 13056 { (exit 1); exit 1; }; } 13057 if test -r "$rfio_root_dir/include/shift/rfio_api.h"; then 13058 eval "$as_ac_File=yes" 13059 else 13060 eval "$as_ac_File=no" 13061 fi 13062 fi 13063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 13064 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 13065 if test `eval echo '${'$as_ac_File'}'` = yes; then 13066 result=yes 13067 else 13068 result=no 13069 fi 13070 13071 if test $result = yes ; then 13072 echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 13073 echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6 13074 if test "${ac_cv_search_pthread_create+set}" = set; then 13075 echo $ECHO_N "(cached) $ECHO_C" >&6 13076 else 13077 ac_func_search_save_LIBS=$LIBS 13078 ac_cv_search_pthread_create=no 13079 cat >conftest.$ac_ext <<_ACEOF 13080 /* confdefs.h. */ 13081 _ACEOF 13082 cat confdefs.h >>conftest.$ac_ext 13083 cat >>conftest.$ac_ext <<_ACEOF 13084 /* end confdefs.h. */ 13085 13086 /* Override any gcc2 internal prototype to avoid an error. */ 13087 #ifdef __cplusplus 13088 extern "C" 13089 #endif 13090 /* We use char because int might match the return type of a gcc2 13091 builtin and then its argument prototype would still apply. */ 13092 char pthread_create (); 13093 int 13094 main () 13095 { 13096 pthread_create (); 13097 ; 13098 return 0; 13099 } 13100 _ACEOF 13101 rm -f conftest.$ac_objext conftest$ac_exeext 13102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13103 (eval $ac_link) 2>conftest.er1 13104 ac_status=$? 13105 grep -v '^ *+' conftest.er1 >conftest.err 13106 rm -f conftest.er1 13107 cat conftest.err >&5 13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13109 (exit $ac_status); } && 13110 { ac_try='test -z "$ac_c_werror_flag" 13111 || test ! -s conftest.err' 13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13113 (eval $ac_try) 2>&5 13114 ac_status=$? 13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13116 (exit $ac_status); }; } && 13117 { ac_try='test -s conftest$ac_exeext' 13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13119 (eval $ac_try) 2>&5 13120 ac_status=$? 13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13122 (exit $ac_status); }; }; then 13123 ac_cv_search_pthread_create="none required" 13124 else 13125 echo "$as_me: failed program was:" >&5 13126 sed 's/^/| /' conftest.$ac_ext >&5 13127 13128 fi 13129 rm -f conftest.err conftest.$ac_objext \ 13130 conftest$ac_exeext conftest.$ac_ext 13131 if test "$ac_cv_search_pthread_create" = no; then 13132 for ac_lib in pthread pthreads dce; do 13133 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13134 cat >conftest.$ac_ext <<_ACEOF 13135 /* confdefs.h. */ 13136 _ACEOF 13137 cat confdefs.h >>conftest.$ac_ext 13138 cat >>conftest.$ac_ext <<_ACEOF 13139 /* end confdefs.h. */ 13140 13141 /* Override any gcc2 internal prototype to avoid an error. */ 13142 #ifdef __cplusplus 13143 extern "C" 13144 #endif 13145 /* We use char because int might match the return type of a gcc2 13146 builtin and then its argument prototype would still apply. */ 13147 char pthread_create (); 13148 int 13149 main () 13150 { 13151 pthread_create (); 13152 ; 13153 return 0; 13154 } 13155 _ACEOF 13156 rm -f conftest.$ac_objext conftest$ac_exeext 13157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13158 (eval $ac_link) 2>conftest.er1 13159 ac_status=$? 13160 grep -v '^ *+' conftest.er1 >conftest.err 13161 rm -f conftest.er1 13162 cat conftest.err >&5 13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13164 (exit $ac_status); } && 13165 { ac_try='test -z "$ac_c_werror_flag" 13166 || test ! -s conftest.err' 13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13168 (eval $ac_try) 2>&5 13169 ac_status=$? 13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13171 (exit $ac_status); }; } && 13172 { ac_try='test -s conftest$ac_exeext' 13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13174 (eval $ac_try) 2>&5 13175 ac_status=$? 13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13177 (exit $ac_status); }; }; then 13178 ac_cv_search_pthread_create="-l$ac_lib" 13179 break 13180 else 13181 echo "$as_me: failed program was:" >&5 13182 sed 's/^/| /' conftest.$ac_ext >&5 13183 13184 fi 13185 rm -f conftest.err conftest.$ac_objext \ 13186 conftest$ac_exeext conftest.$ac_ext 13187 done 13188 fi 13189 LIBS=$ac_func_search_save_LIBS 13190 fi 13191 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 13192 echo "${ECHO_T}$ac_cv_search_pthread_create" >&6 13193 if test "$ac_cv_search_pthread_create" != no; then 13194 test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS" 13195 13196 fi 13197 echo "$as_me:$LINENO: checking for library containing pthread_kill" >&5 13198 echo $ECHO_N "checking for library containing pthread_kill... $ECHO_C" >&6 13199 if test "${ac_cv_search_pthread_kill+set}" = set; then 13200 echo $ECHO_N "(cached) $ECHO_C" >&6 13201 else 13202 ac_func_search_save_LIBS=$LIBS 13203 ac_cv_search_pthread_kill=no 13204 cat >conftest.$ac_ext <<_ACEOF 13205 /* confdefs.h. */ 13206 _ACEOF 13207 cat confdefs.h >>conftest.$ac_ext 13208 cat >>conftest.$ac_ext <<_ACEOF 13209 /* end confdefs.h. */ 13210 13211 /* Override any gcc2 internal prototype to avoid an error. */ 13212 #ifdef __cplusplus 13213 extern "C" 13214 #endif 13215 /* We use char because int might match the return type of a gcc2 13216 builtin and then its argument prototype would still apply. */ 13217 char pthread_kill (); 13218 int 13219 main () 13220 { 13221 pthread_kill (); 13222 ; 13223 return 0; 13224 } 13225 _ACEOF 13226 rm -f conftest.$ac_objext conftest$ac_exeext 13227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13228 (eval $ac_link) 2>conftest.er1 13229 ac_status=$? 13230 grep -v '^ *+' conftest.er1 >conftest.err 13231 rm -f conftest.er1 13232 cat conftest.err >&5 13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13234 (exit $ac_status); } && 13235 { ac_try='test -z "$ac_c_werror_flag" 13236 || test ! -s conftest.err' 13237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13238 (eval $ac_try) 2>&5 13239 ac_status=$? 13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13241 (exit $ac_status); }; } && 13242 { ac_try='test -s conftest$ac_exeext' 13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13244 (eval $ac_try) 2>&5 13245 ac_status=$? 13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13247 (exit $ac_status); }; }; then 13248 ac_cv_search_pthread_kill="none required" 13249 else 13250 echo "$as_me: failed program was:" >&5 13251 sed 's/^/| /' conftest.$ac_ext >&5 13252 13253 fi 13254 rm -f conftest.err conftest.$ac_objext \ 13255 conftest$ac_exeext conftest.$ac_ext 13256 if test "$ac_cv_search_pthread_kill" = no; then 13257 for ac_lib in pthread pthreads; do 13258 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13259 cat >conftest.$ac_ext <<_ACEOF 13260 /* confdefs.h. */ 13261 _ACEOF 13262 cat confdefs.h >>conftest.$ac_ext 13263 cat >>conftest.$ac_ext <<_ACEOF 13264 /* end confdefs.h. */ 13265 13266 /* Override any gcc2 internal prototype to avoid an error. */ 13267 #ifdef __cplusplus 13268 extern "C" 13269 #endif 13270 /* We use char because int might match the return type of a gcc2 13271 builtin and then its argument prototype would still apply. */ 13272 char pthread_kill (); 13273 int 13274 main () 13275 { 13276 pthread_kill (); 13277 ; 13278 return 0; 13279 } 13280 _ACEOF 13281 rm -f conftest.$ac_objext conftest$ac_exeext 13282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13283 (eval $ac_link) 2>conftest.er1 13284 ac_status=$? 13285 grep -v '^ *+' conftest.er1 >conftest.err 13286 rm -f conftest.er1 13287 cat conftest.err >&5 13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13289 (exit $ac_status); } && 13290 { ac_try='test -z "$ac_c_werror_flag" 13291 || test ! -s conftest.err' 13292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13293 (eval $ac_try) 2>&5 13294 ac_status=$? 13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13296 (exit $ac_status); }; } && 13297 { ac_try='test -s conftest$ac_exeext' 13298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13299 (eval $ac_try) 2>&5 13300 ac_status=$? 13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13302 (exit $ac_status); }; }; then 13303 ac_cv_search_pthread_kill="-l$ac_lib" 13304 break 13305 else 13306 echo "$as_me: failed program was:" >&5 13307 sed 's/^/| /' conftest.$ac_ext >&5 13308 13309 fi 13310 rm -f conftest.err conftest.$ac_objext \ 13311 conftest$ac_exeext conftest.$ac_ext 13312 done 13313 fi 13314 LIBS=$ac_func_search_save_LIBS 13315 fi 13316 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_kill" >&5 13317 echo "${ECHO_T}$ac_cv_search_pthread_kill" >&6 13318 if test "$ac_cv_search_pthread_kill" != no; then 13319 test "$ac_cv_search_pthread_kill" = "none required" || LIBS="$ac_cv_search_pthread_kill $LIBS" 13320 13321 fi 13322 echo "$as_me:$LINENO: checking for rfio_open64" >&5 13323 echo $ECHO_N "checking for rfio_open64... $ECHO_C" >&6 13324 if test "${ac_cv_func_rfio_open64+set}" = set; then 13325 echo $ECHO_N "(cached) $ECHO_C" >&6 13326 else 13327 cat >conftest.$ac_ext <<_ACEOF 13328 /* confdefs.h. */ 13329 _ACEOF 13330 cat confdefs.h >>conftest.$ac_ext 13331 cat >>conftest.$ac_ext <<_ACEOF 13332 /* end confdefs.h. */ 13333 /* Define rfio_open64 to an innocuous variant, in case <limits.h> declares rfio_open64. 13334 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13335 #define rfio_open64 innocuous_rfio_open64 13336 13337 /* System header to define __stub macros and hopefully few prototypes, 13338 which can conflict with char rfio_open64 (); below. 13339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13340 <limits.h> exists even on freestanding compilers. */ 13341 13342 #ifdef __STDC__ 13343 # include <limits.h> 13344 #else 13345 # include <assert.h> 13346 #endif 13347 13348 #undef rfio_open64 13349 13350 /* Override any gcc2 internal prototype to avoid an error. */ 13351 #ifdef __cplusplus 13352 extern "C" 13353 { 13354 #endif 13355 /* We use char because int might match the return type of a gcc2 13356 builtin and then its argument prototype would still apply. */ 13357 char rfio_open64 (); 13358 /* The GNU C library defines this for functions which it implements 13359 to always fail with ENOSYS. Some functions are actually named 13360 something starting with __ and the normal name is an alias. */ 13361 #if defined (__stub_rfio_open64) || defined (__stub___rfio_open64) 13362 choke me 13363 #else 13364 char (*f) () = rfio_open64; 13365 #endif 13366 #ifdef __cplusplus 13367 } 13368 #endif 13369 13370 int 13371 main () 13372 { 13373 return f != rfio_open64; 13374 ; 13375 return 0; 13376 } 13377 _ACEOF 13378 rm -f conftest.$ac_objext conftest$ac_exeext 13379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13380 (eval $ac_link) 2>conftest.er1 13381 ac_status=$? 13382 grep -v '^ *+' conftest.er1 >conftest.err 13383 rm -f conftest.er1 13384 cat conftest.err >&5 13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13386 (exit $ac_status); } && 13387 { ac_try='test -z "$ac_c_werror_flag" 13388 || test ! -s conftest.err' 13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13390 (eval $ac_try) 2>&5 13391 ac_status=$? 13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13393 (exit $ac_status); }; } && 13394 { ac_try='test -s conftest$ac_exeext' 13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13396 (eval $ac_try) 2>&5 13397 ac_status=$? 13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13399 (exit $ac_status); }; }; then 13400 ac_cv_func_rfio_open64=yes 13401 else 13402 echo "$as_me: failed program was:" >&5 13403 sed 's/^/| /' conftest.$ac_ext >&5 13404 13405 ac_cv_func_rfio_open64=no 13406 fi 13407 rm -f conftest.err conftest.$ac_objext \ 13408 conftest$ac_exeext conftest.$ac_ext 13409 fi 13410 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_open64" >&5 13411 echo "${ECHO_T}$ac_cv_func_rfio_open64" >&6 13412 if test $ac_cv_func_rfio_open64 = yes; then 13413 cat >>confdefs.h <<\_ACEOF 13414 #define WITH_RFIO64 1 13415 _ACEOF 13416 13417 fi 13418 13419 else 13420 echo "$as_me:$LINENO: checking for rfio_open" >&5 13421 echo $ECHO_N "checking for rfio_open... $ECHO_C" >&6 13422 if test "${ac_cv_func_rfio_open+set}" = set; then 13423 echo $ECHO_N "(cached) $ECHO_C" >&6 13424 else 13425 cat >conftest.$ac_ext <<_ACEOF 13426 /* confdefs.h. */ 13427 _ACEOF 13428 cat confdefs.h >>conftest.$ac_ext 13429 cat >>conftest.$ac_ext <<_ACEOF 13430 /* end confdefs.h. */ 13431 /* Define rfio_open to an innocuous variant, in case <limits.h> declares rfio_open. 13432 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13433 #define rfio_open innocuous_rfio_open 13434 13435 /* System header to define __stub macros and hopefully few prototypes, 13436 which can conflict with char rfio_open (); below. 13437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13438 <limits.h> exists even on freestanding compilers. */ 13439 13440 #ifdef __STDC__ 13441 # include <limits.h> 13442 #else 13443 # include <assert.h> 13444 #endif 13445 13446 #undef rfio_open 13447 13448 /* Override any gcc2 internal prototype to avoid an error. */ 13449 #ifdef __cplusplus 13450 extern "C" 13451 { 13452 #endif 13453 /* We use char because int might match the return type of a gcc2 13454 builtin and then its argument prototype would still apply. */ 13455 char rfio_open (); 13456 /* The GNU C library defines this for functions which it implements 13457 to always fail with ENOSYS. Some functions are actually named 13458 something starting with __ and the normal name is an alias. */ 13459 #if defined (__stub_rfio_open) || defined (__stub___rfio_open) 13460 choke me 13461 #else 13462 char (*f) () = rfio_open; 13463 #endif 13464 #ifdef __cplusplus 13465 } 13466 #endif 13467 13468 int 13469 main () 13470 { 13471 return f != rfio_open; 13472 ; 13473 return 0; 13474 } 13475 _ACEOF 13476 rm -f conftest.$ac_objext conftest$ac_exeext 13477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13478 (eval $ac_link) 2>conftest.er1 13479 ac_status=$? 13480 grep -v '^ *+' conftest.er1 >conftest.err 13481 rm -f conftest.er1 13482 cat conftest.err >&5 13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13484 (exit $ac_status); } && 13485 { ac_try='test -z "$ac_c_werror_flag" 13486 || test ! -s conftest.err' 13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13488 (eval $ac_try) 2>&5 13489 ac_status=$? 13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13491 (exit $ac_status); }; } && 13492 { ac_try='test -s conftest$ac_exeext' 13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13494 (eval $ac_try) 2>&5 13495 ac_status=$? 13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13497 (exit $ac_status); }; }; then 13498 ac_cv_func_rfio_open=yes 13499 else 13500 echo "$as_me: failed program was:" >&5 13501 sed 's/^/| /' conftest.$ac_ext >&5 13502 13503 ac_cv_func_rfio_open=no 13504 fi 13505 rm -f conftest.err conftest.$ac_objext \ 13506 conftest$ac_exeext conftest.$ac_ext 13507 fi 13508 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_open" >&5 13509 echo "${ECHO_T}$ac_cv_func_rfio_open" >&6 13510 if test $ac_cv_func_rfio_open = yes; then 13511 cat >>confdefs.h <<\_ACEOF 13512 #define WITH_RFIO 1 13513 _ACEOF 13514 13515 fi 13516 13517 fi 13518 if test "$ac_cv_func_rfio_open64" = "no" || test "$ac_cv_func_rfio_open" = "no" ; then 13519 LDFLAGS="$OLDLDFLAGS" 13520 CPPFLAGS="$OLDCPPFLAGS" 13521 LIBS="$OLDLIBS" 13522 ccin2p3_cv_rfio=no 13523 else 13524 13525 for ac_header in shift.h 13526 do 13527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13528 if eval "test \"\${$as_ac_Header+set}\" = set"; then 13529 echo "$as_me:$LINENO: checking for $ac_header" >&5 13530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13531 if eval "test \"\${$as_ac_Header+set}\" = set"; then 13532 echo $ECHO_N "(cached) $ECHO_C" >&6 13533 fi 13534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13536 else 13537 # Is the header compilable? 13538 echo "$as_me:$LINENO: checking $ac_header usability" >&5 13539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 13540 cat >conftest.$ac_ext <<_ACEOF 13541 /* confdefs.h. */ 13542 _ACEOF 13543 cat confdefs.h >>conftest.$ac_ext 13544 cat >>conftest.$ac_ext <<_ACEOF 13545 /* end confdefs.h. */ 13546 $ac_includes_default 13547 #include <$ac_header> 13548 _ACEOF 13549 rm -f conftest.$ac_objext 13550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13551 (eval $ac_compile) 2>conftest.er1 13552 ac_status=$? 13553 grep -v '^ *+' conftest.er1 >conftest.err 13554 rm -f conftest.er1 13555 cat conftest.err >&5 13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13557 (exit $ac_status); } && 13558 { ac_try='test -z "$ac_c_werror_flag" 13559 || test ! -s conftest.err' 13560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13561 (eval $ac_try) 2>&5 13562 ac_status=$? 13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13564 (exit $ac_status); }; } && 13565 { ac_try='test -s conftest.$ac_objext' 13566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13567 (eval $ac_try) 2>&5 13568 ac_status=$? 13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13570 (exit $ac_status); }; }; then 13571 ac_header_compiler=yes 13572 else 13573 echo "$as_me: failed program was:" >&5 13574 sed 's/^/| /' conftest.$ac_ext >&5 13575 13576 ac_header_compiler=no 13577 fi 13578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13580 echo "${ECHO_T}$ac_header_compiler" >&6 13581 13582 # Is the header present? 13583 echo "$as_me:$LINENO: checking $ac_header presence" >&5 13584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 13585 cat >conftest.$ac_ext <<_ACEOF 13586 /* confdefs.h. */ 13587 _ACEOF 13588 cat confdefs.h >>conftest.$ac_ext 13589 cat >>conftest.$ac_ext <<_ACEOF 13590 /* end confdefs.h. */ 13591 #include <$ac_header> 13592 _ACEOF 13593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13595 ac_status=$? 13596 grep -v '^ *+' conftest.er1 >conftest.err 13597 rm -f conftest.er1 13598 cat conftest.err >&5 13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13600 (exit $ac_status); } >/dev/null; then 13601 if test -s conftest.err; then 13602 ac_cpp_err=$ac_c_preproc_warn_flag 13603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13604 else 13605 ac_cpp_err= 13606 fi 13607 else 13608 ac_cpp_err=yes 13609 fi 13610 if test -z "$ac_cpp_err"; then 13611 ac_header_preproc=yes 13612 else 13613 echo "$as_me: failed program was:" >&5 13614 sed 's/^/| /' conftest.$ac_ext >&5 13615 13616 ac_header_preproc=no 13617 fi 13618 rm -f conftest.err conftest.$ac_ext 13619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13620 echo "${ECHO_T}$ac_header_preproc" >&6 13621 13622 # So? What about this header? 13623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13624 yes:no: ) 13625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13629 ac_header_preproc=yes 13630 ;; 13631 no:yes:* ) 13632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13644 ( 13645 cat <<\_ASBOX 13646 ## ------------------------------------------ ## 13647 ## Report this to the AC_PACKAGE_NAME lists. ## 13648 ## ------------------------------------------ ## 13649 _ASBOX 13650 ) | 13651 sed "s/^/$as_me: WARNING: /" >&2 13652 ;; 13653 esac 13654 echo "$as_me:$LINENO: checking for $ac_header" >&5 13655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13656 if eval "test \"\${$as_ac_Header+set}\" = set"; then 13657 echo $ECHO_N "(cached) $ECHO_C" >&6 13658 else 13659 eval "$as_ac_Header=\$ac_header_preproc" 13660 fi 13661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13663 13664 fi 13665 if test `eval echo '${'$as_ac_Header'}'` = yes; then 13666 cat >>confdefs.h <<_ACEOF 13667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13668 _ACEOF 13669 13670 else 13671 { { echo "$as_me:$LINENO: error: shift.h not found in $CPPFLAGS" >&5 13672 echo "$as_me: error: shift.h not found in $CPPFLAGS" >&2;} 13673 { (exit 1); exit 1; }; } 13674 fi 13675 13676 done 13677 13678 # LIBS="$LIBS $rfio_root_dir/lib/libshift.a" 13679 LDFLAGS="$OLDLDFLAGS" 13680 if test "$ac_cv_func_rfio_open" = "yes" ; then 13681 echo "$as_me:$LINENO: checking for rfio_HsmIf_FindPhysicalPath" >&5 13682 echo $ECHO_N "checking for rfio_HsmIf_FindPhysicalPath... $ECHO_C" >&6 13683 if test "${ac_cv_func_rfio_HsmIf_FindPhysicalPath+set}" = set; then 13684 echo $ECHO_N "(cached) $ECHO_C" >&6 13685 else 13686 cat >conftest.$ac_ext <<_ACEOF 13687 /* confdefs.h. */ 13688 _ACEOF 13689 cat confdefs.h >>conftest.$ac_ext 13690 cat >>conftest.$ac_ext <<_ACEOF 13691 /* end confdefs.h. */ 13692 /* Define rfio_HsmIf_FindPhysicalPath to an innocuous variant, in case <limits.h> declares rfio_HsmIf_FindPhysicalPath. 13693 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13694 #define rfio_HsmIf_FindPhysicalPath innocuous_rfio_HsmIf_FindPhysicalPath 13695 13696 /* System header to define __stub macros and hopefully few prototypes, 13697 which can conflict with char rfio_HsmIf_FindPhysicalPath (); below. 13698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13699 <limits.h> exists even on freestanding compilers. */ 13700 13701 #ifdef __STDC__ 13702 # include <limits.h> 13703 #else 13704 # include <assert.h> 13705 #endif 13706 13707 #undef rfio_HsmIf_FindPhysicalPath 13708 13709 /* Override any gcc2 internal prototype to avoid an error. */ 13710 #ifdef __cplusplus 13711 extern "C" 13712 { 13713 #endif 13714 /* We use char because int might match the return type of a gcc2 13715 builtin and then its argument prototype would still apply. */ 13716 char rfio_HsmIf_FindPhysicalPath (); 13717 /* The GNU C library defines this for functions which it implements 13718 to always fail with ENOSYS. Some functions are actually named 13719 something starting with __ and the normal name is an alias. */ 13720 #if defined (__stub_rfio_HsmIf_FindPhysicalPath) || defined (__stub___rfio_HsmIf_FindPhysicalPath) 13721 choke me 13722 #else 13723 char (*f) () = rfio_HsmIf_FindPhysicalPath; 13724 #endif 13725 #ifdef __cplusplus 13726 } 13727 #endif 13728 13729 int 13730 main () 13731 { 13732 return f != rfio_HsmIf_FindPhysicalPath; 13733 ; 13734 return 0; 13735 } 13736 _ACEOF 13737 rm -f conftest.$ac_objext conftest$ac_exeext 13738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13739 (eval $ac_link) 2>conftest.er1 13740 ac_status=$? 13741 grep -v '^ *+' conftest.er1 >conftest.err 13742 rm -f conftest.er1 13743 cat conftest.err >&5 13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13745 (exit $ac_status); } && 13746 { ac_try='test -z "$ac_c_werror_flag" 13747 || test ! -s conftest.err' 13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13749 (eval $ac_try) 2>&5 13750 ac_status=$? 13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13752 (exit $ac_status); }; } && 13753 { ac_try='test -s conftest$ac_exeext' 13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13755 (eval $ac_try) 2>&5 13756 ac_status=$? 13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13758 (exit $ac_status); }; }; then 13759 ac_cv_func_rfio_HsmIf_FindPhysicalPath=yes 13760 else 13761 echo "$as_me: failed program was:" >&5 13762 sed 's/^/| /' conftest.$ac_ext >&5 13763 13764 ac_cv_func_rfio_HsmIf_FindPhysicalPath=no 13765 fi 13766 rm -f conftest.err conftest.$ac_objext \ 13767 conftest$ac_exeext conftest.$ac_ext 13768 fi 13769 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_HsmIf_FindPhysicalPath" >&5 13770 echo "${ECHO_T}$ac_cv_func_rfio_HsmIf_FindPhysicalPath" >&6 13771 if test $ac_cv_func_rfio_HsmIf_FindPhysicalPath = yes; then 13772 result=yes 13773 else 13774 result=no 13775 fi 13776 13777 if test $result = yes ; then 13778 if test "${ac_cv_header_stage_api_h+set}" = set; then 13779 echo "$as_me:$LINENO: checking for stage_api.h" >&5 13780 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 13781 if test "${ac_cv_header_stage_api_h+set}" = set; then 13782 echo $ECHO_N "(cached) $ECHO_C" >&6 13783 fi 13784 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 13785 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 13786 else 13787 # Is the header compilable? 13788 echo "$as_me:$LINENO: checking stage_api.h usability" >&5 13789 echo $ECHO_N "checking stage_api.h usability... $ECHO_C" >&6 13790 cat >conftest.$ac_ext <<_ACEOF 13791 /* confdefs.h. */ 13792 _ACEOF 13793 cat confdefs.h >>conftest.$ac_ext 13794 cat >>conftest.$ac_ext <<_ACEOF 13795 /* end confdefs.h. */ 13796 $ac_includes_default 13797 #include <stage_api.h> 13798 _ACEOF 13799 rm -f conftest.$ac_objext 13800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13801 (eval $ac_compile) 2>conftest.er1 13802 ac_status=$? 13803 grep -v '^ *+' conftest.er1 >conftest.err 13804 rm -f conftest.er1 13805 cat conftest.err >&5 13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13807 (exit $ac_status); } && 13808 { ac_try='test -z "$ac_c_werror_flag" 13809 || test ! -s conftest.err' 13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13811 (eval $ac_try) 2>&5 13812 ac_status=$? 13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13814 (exit $ac_status); }; } && 13815 { ac_try='test -s conftest.$ac_objext' 13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13817 (eval $ac_try) 2>&5 13818 ac_status=$? 13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13820 (exit $ac_status); }; }; then 13821 ac_header_compiler=yes 13822 else 13823 echo "$as_me: failed program was:" >&5 13824 sed 's/^/| /' conftest.$ac_ext >&5 13825 13826 ac_header_compiler=no 13827 fi 13828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13830 echo "${ECHO_T}$ac_header_compiler" >&6 13831 13832 # Is the header present? 13833 echo "$as_me:$LINENO: checking stage_api.h presence" >&5 13834 echo $ECHO_N "checking stage_api.h presence... $ECHO_C" >&6 13835 cat >conftest.$ac_ext <<_ACEOF 13836 /* confdefs.h. */ 13837 _ACEOF 13838 cat confdefs.h >>conftest.$ac_ext 13839 cat >>conftest.$ac_ext <<_ACEOF 13840 /* end confdefs.h. */ 13841 #include <stage_api.h> 13842 _ACEOF 13843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13845 ac_status=$? 13846 grep -v '^ *+' conftest.er1 >conftest.err 13847 rm -f conftest.er1 13848 cat conftest.err >&5 13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13850 (exit $ac_status); } >/dev/null; then 13851 if test -s conftest.err; then 13852 ac_cpp_err=$ac_c_preproc_warn_flag 13853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13854 else 13855 ac_cpp_err= 13856 fi 13857 else 13858 ac_cpp_err=yes 13859 fi 13860 if test -z "$ac_cpp_err"; then 13861 ac_header_preproc=yes 13862 else 13863 echo "$as_me: failed program was:" >&5 13864 sed 's/^/| /' conftest.$ac_ext >&5 13865 13866 ac_header_preproc=no 13867 fi 13868 rm -f conftest.err conftest.$ac_ext 13869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13870 echo "${ECHO_T}$ac_header_preproc" >&6 13871 13872 # So? What about this header? 13873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13874 yes:no: ) 13875 { echo "$as_me:$LINENO: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&5 13876 echo "$as_me: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13877 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the compiler's result" >&5 13878 echo "$as_me: WARNING: stage_api.h: proceeding with the compiler's result" >&2;} 13879 ac_header_preproc=yes 13880 ;; 13881 no:yes:* ) 13882 { echo "$as_me:$LINENO: WARNING: stage_api.h: present but cannot be compiled" >&5 13883 echo "$as_me: WARNING: stage_api.h: present but cannot be compiled" >&2;} 13884 { echo "$as_me:$LINENO: WARNING: stage_api.h: check for missing prerequisite headers?" >&5 13885 echo "$as_me: WARNING: stage_api.h: check for missing prerequisite headers?" >&2;} 13886 { echo "$as_me:$LINENO: WARNING: stage_api.h: see the Autoconf documentation" >&5 13887 echo "$as_me: WARNING: stage_api.h: see the Autoconf documentation" >&2;} 13888 { echo "$as_me:$LINENO: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&5 13889 echo "$as_me: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&2;} 13890 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the preprocessor's result" >&5 13891 echo "$as_me: WARNING: stage_api.h: proceeding with the preprocessor's result" >&2;} 13892 { echo "$as_me:$LINENO: WARNING: stage_api.h: in the future, the compiler will take precedence" >&5 13893 echo "$as_me: WARNING: stage_api.h: in the future, the compiler will take precedence" >&2;} 13894 ( 13895 cat <<\_ASBOX 13896 ## ------------------------------------------ ## 13897 ## Report this to the AC_PACKAGE_NAME lists. ## 13898 ## ------------------------------------------ ## 13899 _ASBOX 13900 ) | 13901 sed "s/^/$as_me: WARNING: /" >&2 13902 ;; 13903 esac 13904 echo "$as_me:$LINENO: checking for stage_api.h" >&5 13905 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 13906 if test "${ac_cv_header_stage_api_h+set}" = set; then 13907 echo $ECHO_N "(cached) $ECHO_C" >&6 13908 else 13909 ac_cv_header_stage_api_h=$ac_header_preproc 13910 fi 13911 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 13912 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 13913 13914 fi 13915 if test $ac_cv_header_stage_api_h = yes; then 13916 result=yes 13917 else 13918 { { echo "$as_me:$LINENO: error: shift/stage_api.h not found in $CPPFLAGS" >&5 13919 echo "$as_me: error: shift/stage_api.h not found in $CPPFLAGS" >&2;} 13920 { (exit 1); exit 1; }; } 13921 fi 13922 13923 13924 cat >>confdefs.h <<\_ACEOF 13925 #define CASTOR 1 13926 _ACEOF 13927 13928 fi 13929 else 13930 echo "$as_me:$LINENO: checking for rfio_setcos" >&5 13931 echo $ECHO_N "checking for rfio_setcos... $ECHO_C" >&6 13932 if test "${ac_cv_func_rfio_setcos+set}" = set; then 13933 echo $ECHO_N "(cached) $ECHO_C" >&6 13934 else 13935 cat >conftest.$ac_ext <<_ACEOF 13936 /* confdefs.h. */ 13937 _ACEOF 13938 cat confdefs.h >>conftest.$ac_ext 13939 cat >>conftest.$ac_ext <<_ACEOF 13940 /* end confdefs.h. */ 13941 /* Define rfio_setcos to an innocuous variant, in case <limits.h> declares rfio_setcos. 13942 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13943 #define rfio_setcos innocuous_rfio_setcos 13944 13945 /* System header to define __stub macros and hopefully few prototypes, 13946 which can conflict with char rfio_setcos (); below. 13947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13948 <limits.h> exists even on freestanding compilers. */ 13949 13950 #ifdef __STDC__ 13951 # include <limits.h> 13952 #else 13953 # include <assert.h> 13954 #endif 13955 13956 #undef rfio_setcos 13957 13958 /* Override any gcc2 internal prototype to avoid an error. */ 13959 #ifdef __cplusplus 13960 extern "C" 13961 { 13962 #endif 13963 /* We use char because int might match the return type of a gcc2 13964 builtin and then its argument prototype would still apply. */ 13965 char rfio_setcos (); 13966 /* The GNU C library defines this for functions which it implements 13967 to always fail with ENOSYS. Some functions are actually named 13968 something starting with __ and the normal name is an alias. */ 13969 #if defined (__stub_rfio_setcos) || defined (__stub___rfio_setcos) 13970 choke me 13971 #else 13972 char (*f) () = rfio_setcos; 13973 #endif 13974 #ifdef __cplusplus 13975 } 13976 #endif 13977 13978 int 13979 main () 13980 { 13981 return f != rfio_setcos; 13982 ; 13983 return 0; 13984 } 13985 _ACEOF 13986 rm -f conftest.$ac_objext conftest$ac_exeext 13987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13988 (eval $ac_link) 2>conftest.er1 13989 ac_status=$? 13990 grep -v '^ *+' conftest.er1 >conftest.err 13991 rm -f conftest.er1 13992 cat conftest.err >&5 13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13994 (exit $ac_status); } && 13995 { ac_try='test -z "$ac_c_werror_flag" 13996 || test ! -s conftest.err' 13997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13998 (eval $ac_try) 2>&5 13999 ac_status=$? 14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14001 (exit $ac_status); }; } && 14002 { ac_try='test -s conftest$ac_exeext' 14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14004 (eval $ac_try) 2>&5 14005 ac_status=$? 14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14007 (exit $ac_status); }; }; then 14008 ac_cv_func_rfio_setcos=yes 14009 else 14010 echo "$as_me: failed program was:" >&5 14011 sed 's/^/| /' conftest.$ac_ext >&5 14012 14013 ac_cv_func_rfio_setcos=no 14014 fi 14015 rm -f conftest.err conftest.$ac_objext \ 14016 conftest$ac_exeext conftest.$ac_ext 14017 fi 14018 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_setcos" >&5 14019 echo "${ECHO_T}$ac_cv_func_rfio_setcos" >&6 14020 if test $ac_cv_func_rfio_setcos = yes; then 14021 result=yes 14022 else 14023 result=no 14024 fi 14025 14026 if test $result = no ; then 14027 unset ac_cv_func_rfio_setcos 14028 14029 # Check whether --with-hpss or --without-hpss was given. 14030 if test "${with_hpss+set}" = set; then 14031 withval="$with_hpss" 14032 resulthpss=yes 14033 else 14034 resulthpss=no 14035 fi; 14036 if test $resulthpss != no ; then 14037 if test $with_hpss = yes ; then 14038 hpss_root_dir="/usr/local" 14039 else 14040 hpss_root_dir=$with_hpss 14041 fi 14042 OLDLIBS="$LIBS" 14043 LIBS="$LIBS $hpss_root_dir/lib/libhpss.a" 14044 echo "$as_me:$LINENO: checking for rfio_setcos" >&5 14045 echo $ECHO_N "checking for rfio_setcos... $ECHO_C" >&6 14046 if test "${ac_cv_func_rfio_setcos+set}" = set; then 14047 echo $ECHO_N "(cached) $ECHO_C" >&6 14048 else 14049 cat >conftest.$ac_ext <<_ACEOF 14050 /* confdefs.h. */ 14051 _ACEOF 14052 cat confdefs.h >>conftest.$ac_ext 14053 cat >>conftest.$ac_ext <<_ACEOF 14054 /* end confdefs.h. */ 14055 /* Define rfio_setcos to an innocuous variant, in case <limits.h> declares rfio_setcos. 14056 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14057 #define rfio_setcos innocuous_rfio_setcos 14058 14059 /* System header to define __stub macros and hopefully few prototypes, 14060 which can conflict with char rfio_setcos (); below. 14061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14062 <limits.h> exists even on freestanding compilers. */ 14063 14064 #ifdef __STDC__ 14065 # include <limits.h> 14066 #else 14067 # include <assert.h> 14068 #endif 14069 14070 #undef rfio_setcos 14071 14072 /* Override any gcc2 internal prototype to avoid an error. */ 14073 #ifdef __cplusplus 14074 extern "C" 14075 { 14076 #endif 14077 /* We use char because int might match the return type of a gcc2 14078 builtin and then its argument prototype would still apply. */ 14079 char rfio_setcos (); 14080 /* The GNU C library defines this for functions which it implements 14081 to always fail with ENOSYS. Some functions are actually named 14082 something starting with __ and the normal name is an alias. */ 14083 #if defined (__stub_rfio_setcos) || defined (__stub___rfio_setcos) 14084 choke me 14085 #else 14086 char (*f) () = rfio_setcos; 14087 #endif 14088 #ifdef __cplusplus 14089 } 14090 #endif 14091 14092 int 14093 main () 14094 { 14095 return f != rfio_setcos; 14096 ; 14097 return 0; 14098 } 14099 _ACEOF 14100 rm -f conftest.$ac_objext conftest$ac_exeext 14101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14102 (eval $ac_link) 2>conftest.er1 14103 ac_status=$? 14104 grep -v '^ *+' conftest.er1 >conftest.err 14105 rm -f conftest.er1 14106 cat conftest.err >&5 14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14108 (exit $ac_status); } && 14109 { ac_try='test -z "$ac_c_werror_flag" 14110 || test ! -s conftest.err' 14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14112 (eval $ac_try) 2>&5 14113 ac_status=$? 14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14115 (exit $ac_status); }; } && 14116 { ac_try='test -s conftest$ac_exeext' 14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14118 (eval $ac_try) 2>&5 14119 ac_status=$? 14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14121 (exit $ac_status); }; }; then 14122 ac_cv_func_rfio_setcos=yes 14123 else 14124 echo "$as_me: failed program was:" >&5 14125 sed 's/^/| /' conftest.$ac_ext >&5 14126 14127 ac_cv_func_rfio_setcos=no 14128 fi 14129 rm -f conftest.err conftest.$ac_objext \ 14130 conftest$ac_exeext conftest.$ac_ext 14131 fi 14132 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_setcos" >&5 14133 echo "${ECHO_T}$ac_cv_func_rfio_setcos" >&6 14134 if test $ac_cv_func_rfio_setcos = yes; then 14135 result=yes 14136 else 14137 result=no 14138 fi 14139 14140 if test $result = no ; then 14141 LIBS="$OLDLIBS" 14142 fi 14143 fi 14144 fi 14145 if test $result = no ; then 14146 if test "${ac_cv_header_stage_api_h+set}" = set; then 14147 echo "$as_me:$LINENO: checking for stage_api.h" >&5 14148 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 14149 if test "${ac_cv_header_stage_api_h+set}" = set; then 14150 echo $ECHO_N "(cached) $ECHO_C" >&6 14151 fi 14152 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 14153 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 14154 else 14155 # Is the header compilable? 14156 echo "$as_me:$LINENO: checking stage_api.h usability" >&5 14157 echo $ECHO_N "checking stage_api.h usability... $ECHO_C" >&6 14158 cat >conftest.$ac_ext <<_ACEOF 14159 /* confdefs.h. */ 14160 _ACEOF 14161 cat confdefs.h >>conftest.$ac_ext 14162 cat >>conftest.$ac_ext <<_ACEOF 14163 /* end confdefs.h. */ 14164 $ac_includes_default 14165 #include <stage_api.h> 14166 _ACEOF 14167 rm -f conftest.$ac_objext 14168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14169 (eval $ac_compile) 2>conftest.er1 14170 ac_status=$? 14171 grep -v '^ *+' conftest.er1 >conftest.err 14172 rm -f conftest.er1 14173 cat conftest.err >&5 14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14175 (exit $ac_status); } && 14176 { ac_try='test -z "$ac_c_werror_flag" 14177 || test ! -s conftest.err' 14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14179 (eval $ac_try) 2>&5 14180 ac_status=$? 14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14182 (exit $ac_status); }; } && 14183 { ac_try='test -s conftest.$ac_objext' 14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14185 (eval $ac_try) 2>&5 14186 ac_status=$? 14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14188 (exit $ac_status); }; }; then 14189 ac_header_compiler=yes 14190 else 14191 echo "$as_me: failed program was:" >&5 14192 sed 's/^/| /' conftest.$ac_ext >&5 14193 14194 ac_header_compiler=no 14195 fi 14196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14198 echo "${ECHO_T}$ac_header_compiler" >&6 14199 14200 # Is the header present? 14201 echo "$as_me:$LINENO: checking stage_api.h presence" >&5 14202 echo $ECHO_N "checking stage_api.h presence... $ECHO_C" >&6 14203 cat >conftest.$ac_ext <<_ACEOF 14204 /* confdefs.h. */ 14205 _ACEOF 14206 cat confdefs.h >>conftest.$ac_ext 14207 cat >>conftest.$ac_ext <<_ACEOF 14208 /* end confdefs.h. */ 14209 #include <stage_api.h> 14210 _ACEOF 14211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 14212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14213 ac_status=$? 14214 grep -v '^ *+' conftest.er1 >conftest.err 14215 rm -f conftest.er1 14216 cat conftest.err >&5 14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14218 (exit $ac_status); } >/dev/null; then 14219 if test -s conftest.err; then 14220 ac_cpp_err=$ac_c_preproc_warn_flag 14221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14222 else 14223 ac_cpp_err= 14224 fi 14225 else 14226 ac_cpp_err=yes 14227 fi 14228 if test -z "$ac_cpp_err"; then 14229 ac_header_preproc=yes 14230 else 14231 echo "$as_me: failed program was:" >&5 14232 sed 's/^/| /' conftest.$ac_ext >&5 14233 14234 ac_header_preproc=no 14235 fi 14236 rm -f conftest.err conftest.$ac_ext 14237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14238 echo "${ECHO_T}$ac_header_preproc" >&6 14239 14240 # So? What about this header? 14241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14242 yes:no: ) 14243 { echo "$as_me:$LINENO: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&5 14244 echo "$as_me: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14245 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the compiler's result" >&5 14246 echo "$as_me: WARNING: stage_api.h: proceeding with the compiler's result" >&2;} 14247 ac_header_preproc=yes 14248 ;; 14249 no:yes:* ) 14250 { echo "$as_me:$LINENO: WARNING: stage_api.h: present but cannot be compiled" >&5 14251 echo "$as_me: WARNING: stage_api.h: present but cannot be compiled" >&2;} 14252 { echo "$as_me:$LINENO: WARNING: stage_api.h: check for missing prerequisite headers?" >&5 14253 echo "$as_me: WARNING: stage_api.h: check for missing prerequisite headers?" >&2;} 14254 { echo "$as_me:$LINENO: WARNING: stage_api.h: see the Autoconf documentation" >&5 14255 echo "$as_me: WARNING: stage_api.h: see the Autoconf documentation" >&2;} 14256 { echo "$as_me:$LINENO: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&5 14257 echo "$as_me: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&2;} 14258 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the preprocessor's result" >&5 14259 echo "$as_me: WARNING: stage_api.h: proceeding with the preprocessor's result" >&2;} 14260 { echo "$as_me:$LINENO: WARNING: stage_api.h: in the future, the compiler will take precedence" >&5 14261 echo "$as_me: WARNING: stage_api.h: in the future, the compiler will take precedence" >&2;} 14262 ( 14263 cat <<\_ASBOX 14264 ## ------------------------------------------ ## 14265 ## Report this to the AC_PACKAGE_NAME lists. ## 14266 ## ------------------------------------------ ## 14267 _ASBOX 14268 ) | 14269 sed "s/^/$as_me: WARNING: /" >&2 14270 ;; 14271 esac 14272 echo "$as_me:$LINENO: checking for stage_api.h" >&5 14273 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 14274 if test "${ac_cv_header_stage_api_h+set}" = set; then 14275 echo $ECHO_N "(cached) $ECHO_C" >&6 14276 else 14277 ac_cv_header_stage_api_h=$ac_header_preproc 14278 fi 14279 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 14280 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 14281 14282 fi 14283 if test $ac_cv_header_stage_api_h = yes; then 14284 result=yes 14285 else 14286 { { echo "$as_me:$LINENO: error: shift/stage_api.h not found in $CPPFLAGS" >&5 14287 echo "$as_me: error: shift/stage_api.h not found in $CPPFLAGS" >&2;} 14288 { (exit 1); exit 1; }; } 14289 fi 14290 14291 14292 14293 for ac_func in stageclr_Path 14294 do 14295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14296 echo "$as_me:$LINENO: checking for $ac_func" >&5 14297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14298 if eval "test \"\${$as_ac_var+set}\" = set"; then 14299 echo $ECHO_N "(cached) $ECHO_C" >&6 14300 else 14301 cat >conftest.$ac_ext <<_ACEOF 14302 /* confdefs.h. */ 14303 _ACEOF 14304 cat confdefs.h >>conftest.$ac_ext 14305 cat >>conftest.$ac_ext <<_ACEOF 14306 /* end confdefs.h. */ 14307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14308 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14309 #define $ac_func innocuous_$ac_func 14310 14311 /* System header to define __stub macros and hopefully few prototypes, 14312 which can conflict with char $ac_func (); below. 14313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14314 <limits.h> exists even on freestanding compilers. */ 14315 14316 #ifdef __STDC__ 14317 # include <limits.h> 14318 #else 14319 # include <assert.h> 14320 #endif 14321 14322 #undef $ac_func 14323 14324 /* Override any gcc2 internal prototype to avoid an error. */ 14325 #ifdef __cplusplus 14326 extern "C" 14327 { 14328 #endif 14329 /* We use char because int might match the return type of a gcc2 14330 builtin and then its argument prototype would still apply. */ 14331 char $ac_func (); 14332 /* The GNU C library defines this for functions which it implements 14333 to always fail with ENOSYS. Some functions are actually named 14334 something starting with __ and the normal name is an alias. */ 14335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14336 choke me 14337 #else 14338 char (*f) () = $ac_func; 14339 #endif 14340 #ifdef __cplusplus 14341 } 14342 #endif 14343 14344 int 14345 main () 14346 { 14347 return f != $ac_func; 14348 ; 14349 return 0; 14350 } 14351 _ACEOF 14352 rm -f conftest.$ac_objext conftest$ac_exeext 14353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14354 (eval $ac_link) 2>conftest.er1 14355 ac_status=$? 14356 grep -v '^ *+' conftest.er1 >conftest.err 14357 rm -f conftest.er1 14358 cat conftest.err >&5 14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14360 (exit $ac_status); } && 14361 { ac_try='test -z "$ac_c_werror_flag" 14362 || test ! -s conftest.err' 14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14364 (eval $ac_try) 2>&5 14365 ac_status=$? 14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14367 (exit $ac_status); }; } && 14368 { ac_try='test -s conftest$ac_exeext' 14369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14370 (eval $ac_try) 2>&5 14371 ac_status=$? 14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14373 (exit $ac_status); }; }; then 14374 eval "$as_ac_var=yes" 14375 else 14376 echo "$as_me: failed program was:" >&5 14377 sed 's/^/| /' conftest.$ac_ext >&5 14378 14379 eval "$as_ac_var=no" 14380 fi 14381 rm -f conftest.err conftest.$ac_objext \ 14382 conftest$ac_exeext conftest.$ac_ext 14383 fi 14384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14386 if test `eval echo '${'$as_ac_var'}'` = yes; then 14387 cat >>confdefs.h <<_ACEOF 14388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14389 _ACEOF 14390 14391 fi 14392 done 14393 14394 cat >>confdefs.h <<\_ACEOF 14395 #define CASTOR 1 14396 _ACEOF 14397 14398 fi 14399 fi 14400 ccin2p3_cv_rfio=yes 14401 fi 14402 if test $ccin2p3_cv_rfio = yes; then 14403 RFIOOBJS="bbftpd_retr_rfio.o bbftpd_store_rfio.o sendafilerfio.o" 14404 else 14405 { echo "$as_me:$LINENO: WARNING: RFIO not installed" >&5 14406 echo "$as_me: WARNING: RFIO not installed" >&2;} 14407 fi 14408 14409 else 14410 14411 OLDLDFLAGS="$LDFLAGS" 14412 OLDCPPFLAGS="$CPPFLAGS" 14413 OLDLIBS=$LIBS 14414 if test 3 -gt 2 ; then 14415 rfio_root_dir=$with_rfio 14416 else 14417 rfio_root_dir="/usr/local" 14418 fi 14419 # LDFLAGS="$LDFLAGS -L$rfio_root_dir/lib" 14420 LIBS="$LIBS $rfio_root_dir/lib/libshift.a" 14421 CPPFLAGS="$CPPFLAGS -I$rfio_root_dir/include -I$rfio_root_dir/include/shift" 14422 echo "$as_me:$LINENO: checking for library containing getservbyname_r" >&5 14423 echo $ECHO_N "checking for library containing getservbyname_r... $ECHO_C" >&6 14424 if test "${ac_cv_search_getservbyname_r+set}" = set; then 14425 echo $ECHO_N "(cached) $ECHO_C" >&6 14426 else 14427 ac_func_search_save_LIBS=$LIBS 14428 ac_cv_search_getservbyname_r=no 14429 cat >conftest.$ac_ext <<_ACEOF 14430 /* confdefs.h. */ 14431 _ACEOF 14432 cat confdefs.h >>conftest.$ac_ext 14433 cat >>conftest.$ac_ext <<_ACEOF 14434 /* end confdefs.h. */ 14435 14436 /* Override any gcc2 internal prototype to avoid an error. */ 14437 #ifdef __cplusplus 14438 extern "C" 14439 #endif 14440 /* We use char because int might match the return type of a gcc2 14441 builtin and then its argument prototype would still apply. */ 14442 char getservbyname_r (); 14443 int 14444 main () 14445 { 14446 getservbyname_r (); 14447 ; 14448 return 0; 14449 } 14450 _ACEOF 14451 rm -f conftest.$ac_objext conftest$ac_exeext 14452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14453 (eval $ac_link) 2>conftest.er1 14454 ac_status=$? 14455 grep -v '^ *+' conftest.er1 >conftest.err 14456 rm -f conftest.er1 14457 cat conftest.err >&5 14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14459 (exit $ac_status); } && 14460 { ac_try='test -z "$ac_c_werror_flag" 14461 || test ! -s conftest.err' 14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14463 (eval $ac_try) 2>&5 14464 ac_status=$? 14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14466 (exit $ac_status); }; } && 14467 { ac_try='test -s conftest$ac_exeext' 14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14469 (eval $ac_try) 2>&5 14470 ac_status=$? 14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14472 (exit $ac_status); }; }; then 14473 ac_cv_search_getservbyname_r="none required" 14474 else 14475 echo "$as_me: failed program was:" >&5 14476 sed 's/^/| /' conftest.$ac_ext >&5 14477 14478 fi 14479 rm -f conftest.err conftest.$ac_objext \ 14480 conftest$ac_exeext conftest.$ac_ext 14481 if test "$ac_cv_search_getservbyname_r" = no; then 14482 for ac_lib in socket xnet; do 14483 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14484 cat >conftest.$ac_ext <<_ACEOF 14485 /* confdefs.h. */ 14486 _ACEOF 14487 cat confdefs.h >>conftest.$ac_ext 14488 cat >>conftest.$ac_ext <<_ACEOF 14489 /* end confdefs.h. */ 14490 14491 /* Override any gcc2 internal prototype to avoid an error. */ 14492 #ifdef __cplusplus 14493 extern "C" 14494 #endif 14495 /* We use char because int might match the return type of a gcc2 14496 builtin and then its argument prototype would still apply. */ 14497 char getservbyname_r (); 14498 int 14499 main () 14500 { 14501 getservbyname_r (); 14502 ; 14503 return 0; 14504 } 14505 _ACEOF 14506 rm -f conftest.$ac_objext conftest$ac_exeext 14507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14508 (eval $ac_link) 2>conftest.er1 14509 ac_status=$? 14510 grep -v '^ *+' conftest.er1 >conftest.err 14511 rm -f conftest.er1 14512 cat conftest.err >&5 14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14514 (exit $ac_status); } && 14515 { ac_try='test -z "$ac_c_werror_flag" 14516 || test ! -s conftest.err' 14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14518 (eval $ac_try) 2>&5 14519 ac_status=$? 14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14521 (exit $ac_status); }; } && 14522 { ac_try='test -s conftest$ac_exeext' 14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14524 (eval $ac_try) 2>&5 14525 ac_status=$? 14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14527 (exit $ac_status); }; }; then 14528 ac_cv_search_getservbyname_r="-l$ac_lib" 14529 break 14530 else 14531 echo "$as_me: failed program was:" >&5 14532 sed 's/^/| /' conftest.$ac_ext >&5 14533 14534 fi 14535 rm -f conftest.err conftest.$ac_objext \ 14536 conftest$ac_exeext conftest.$ac_ext 14537 done 14538 fi 14539 LIBS=$ac_func_search_save_LIBS 14540 fi 14541 echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname_r" >&5 14542 echo "${ECHO_T}$ac_cv_search_getservbyname_r" >&6 14543 if test "$ac_cv_search_getservbyname_r" != no; then 14544 test "$ac_cv_search_getservbyname_r" = "none required" || LIBS="$ac_cv_search_getservbyname_r $LIBS" 14545 14546 fi 14547 echo "$as_me:$LINENO: checking for library containing gethostbyaddr_r" >&5 14548 echo $ECHO_N "checking for library containing gethostbyaddr_r... $ECHO_C" >&6 14549 if test "${ac_cv_search_gethostbyaddr_r+set}" = set; then 14550 echo $ECHO_N "(cached) $ECHO_C" >&6 14551 else 14552 ac_func_search_save_LIBS=$LIBS 14553 ac_cv_search_gethostbyaddr_r=no 14554 cat >conftest.$ac_ext <<_ACEOF 14555 /* confdefs.h. */ 14556 _ACEOF 14557 cat confdefs.h >>conftest.$ac_ext 14558 cat >>conftest.$ac_ext <<_ACEOF 14559 /* end confdefs.h. */ 14560 14561 /* Override any gcc2 internal prototype to avoid an error. */ 14562 #ifdef __cplusplus 14563 extern "C" 14564 #endif 14565 /* We use char because int might match the return type of a gcc2 14566 builtin and then its argument prototype would still apply. */ 14567 char gethostbyaddr_r (); 14568 int 14569 main () 14570 { 14571 gethostbyaddr_r (); 14572 ; 14573 return 0; 14574 } 14575 _ACEOF 14576 rm -f conftest.$ac_objext conftest$ac_exeext 14577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14578 (eval $ac_link) 2>conftest.er1 14579 ac_status=$? 14580 grep -v '^ *+' conftest.er1 >conftest.err 14581 rm -f conftest.er1 14582 cat conftest.err >&5 14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14584 (exit $ac_status); } && 14585 { ac_try='test -z "$ac_c_werror_flag" 14586 || test ! -s conftest.err' 14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14588 (eval $ac_try) 2>&5 14589 ac_status=$? 14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14591 (exit $ac_status); }; } && 14592 { ac_try='test -s conftest$ac_exeext' 14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14594 (eval $ac_try) 2>&5 14595 ac_status=$? 14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14597 (exit $ac_status); }; }; then 14598 ac_cv_search_gethostbyaddr_r="none required" 14599 else 14600 echo "$as_me: failed program was:" >&5 14601 sed 's/^/| /' conftest.$ac_ext >&5 14602 14603 fi 14604 rm -f conftest.err conftest.$ac_objext \ 14605 conftest$ac_exeext conftest.$ac_ext 14606 if test "$ac_cv_search_gethostbyaddr_r" = no; then 14607 for ac_lib in nsl; do 14608 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14609 cat >conftest.$ac_ext <<_ACEOF 14610 /* confdefs.h. */ 14611 _ACEOF 14612 cat confdefs.h >>conftest.$ac_ext 14613 cat >>conftest.$ac_ext <<_ACEOF 14614 /* end confdefs.h. */ 14615 14616 /* Override any gcc2 internal prototype to avoid an error. */ 14617 #ifdef __cplusplus 14618 extern "C" 14619 #endif 14620 /* We use char because int might match the return type of a gcc2 14621 builtin and then its argument prototype would still apply. */ 14622 char gethostbyaddr_r (); 14623 int 14624 main () 14625 { 14626 gethostbyaddr_r (); 14627 ; 14628 return 0; 14629 } 14630 _ACEOF 14631 rm -f conftest.$ac_objext conftest$ac_exeext 14632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14633 (eval $ac_link) 2>conftest.er1 14634 ac_status=$? 14635 grep -v '^ *+' conftest.er1 >conftest.err 14636 rm -f conftest.er1 14637 cat conftest.err >&5 14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14639 (exit $ac_status); } && 14640 { ac_try='test -z "$ac_c_werror_flag" 14641 || test ! -s conftest.err' 14642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14643 (eval $ac_try) 2>&5 14644 ac_status=$? 14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14646 (exit $ac_status); }; } && 14647 { ac_try='test -s conftest$ac_exeext' 14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14649 (eval $ac_try) 2>&5 14650 ac_status=$? 14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14652 (exit $ac_status); }; }; then 14653 ac_cv_search_gethostbyaddr_r="-l$ac_lib" 14654 break 14655 else 14656 echo "$as_me: failed program was:" >&5 14657 sed 's/^/| /' conftest.$ac_ext >&5 14658 14659 fi 14660 rm -f conftest.err conftest.$ac_objext \ 14661 conftest$ac_exeext conftest.$ac_ext 14662 done 14663 fi 14664 LIBS=$ac_func_search_save_LIBS 14665 fi 14666 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyaddr_r" >&5 14667 echo "${ECHO_T}$ac_cv_search_gethostbyaddr_r" >&6 14668 if test "$ac_cv_search_gethostbyaddr_r" != no; then 14669 test "$ac_cv_search_gethostbyaddr_r" = "none required" || LIBS="$ac_cv_search_gethostbyaddr_r $LIBS" 14670 14671 fi 14672 echo "$as_me:$LINENO: checking for library containing sched_get_priority_max" >&5 14673 echo $ECHO_N "checking for library containing sched_get_priority_max... $ECHO_C" >&6 14674 if test "${ac_cv_search_sched_get_priority_max+set}" = set; then 14675 echo $ECHO_N "(cached) $ECHO_C" >&6 14676 else 14677 ac_func_search_save_LIBS=$LIBS 14678 ac_cv_search_sched_get_priority_max=no 14679 cat >conftest.$ac_ext <<_ACEOF 14680 /* confdefs.h. */ 14681 _ACEOF 14682 cat confdefs.h >>conftest.$ac_ext 14683 cat >>conftest.$ac_ext <<_ACEOF 14684 /* end confdefs.h. */ 14685 14686 /* Override any gcc2 internal prototype to avoid an error. */ 14687 #ifdef __cplusplus 14688 extern "C" 14689 #endif 14690 /* We use char because int might match the return type of a gcc2 14691 builtin and then its argument prototype would still apply. */ 14692 char sched_get_priority_max (); 14693 int 14694 main () 14695 { 14696 sched_get_priority_max (); 14697 ; 14698 return 0; 14699 } 14700 _ACEOF 14701 rm -f conftest.$ac_objext conftest$ac_exeext 14702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14703 (eval $ac_link) 2>conftest.er1 14704 ac_status=$? 14705 grep -v '^ *+' conftest.er1 >conftest.err 14706 rm -f conftest.er1 14707 cat conftest.err >&5 14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14709 (exit $ac_status); } && 14710 { ac_try='test -z "$ac_c_werror_flag" 14711 || test ! -s conftest.err' 14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14713 (eval $ac_try) 2>&5 14714 ac_status=$? 14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14716 (exit $ac_status); }; } && 14717 { ac_try='test -s conftest$ac_exeext' 14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14719 (eval $ac_try) 2>&5 14720 ac_status=$? 14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14722 (exit $ac_status); }; }; then 14723 ac_cv_search_sched_get_priority_max="none required" 14724 else 14725 echo "$as_me: failed program was:" >&5 14726 sed 's/^/| /' conftest.$ac_ext >&5 14727 14728 fi 14729 rm -f conftest.err conftest.$ac_objext \ 14730 conftest$ac_exeext conftest.$ac_ext 14731 if test "$ac_cv_search_sched_get_priority_max" = no; then 14732 for ac_lib in rt posix4; do 14733 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14734 cat >conftest.$ac_ext <<_ACEOF 14735 /* confdefs.h. */ 14736 _ACEOF 14737 cat confdefs.h >>conftest.$ac_ext 14738 cat >>conftest.$ac_ext <<_ACEOF 14739 /* end confdefs.h. */ 14740 14741 /* Override any gcc2 internal prototype to avoid an error. */ 14742 #ifdef __cplusplus 14743 extern "C" 14744 #endif 14745 /* We use char because int might match the return type of a gcc2 14746 builtin and then its argument prototype would still apply. */ 14747 char sched_get_priority_max (); 14748 int 14749 main () 14750 { 14751 sched_get_priority_max (); 14752 ; 14753 return 0; 14754 } 14755 _ACEOF 14756 rm -f conftest.$ac_objext conftest$ac_exeext 14757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14758 (eval $ac_link) 2>conftest.er1 14759 ac_status=$? 14760 grep -v '^ *+' conftest.er1 >conftest.err 14761 rm -f conftest.er1 14762 cat conftest.err >&5 14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14764 (exit $ac_status); } && 14765 { ac_try='test -z "$ac_c_werror_flag" 14766 || test ! -s conftest.err' 14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14768 (eval $ac_try) 2>&5 14769 ac_status=$? 14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14771 (exit $ac_status); }; } && 14772 { ac_try='test -s conftest$ac_exeext' 14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14774 (eval $ac_try) 2>&5 14775 ac_status=$? 14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14777 (exit $ac_status); }; }; then 14778 ac_cv_search_sched_get_priority_max="-l$ac_lib" 14779 break 14780 else 14781 echo "$as_me: failed program was:" >&5 14782 sed 's/^/| /' conftest.$ac_ext >&5 14783 14784 fi 14785 rm -f conftest.err conftest.$ac_objext \ 14786 conftest$ac_exeext conftest.$ac_ext 14787 done 14788 fi 14789 LIBS=$ac_func_search_save_LIBS 14790 fi 14791 echo "$as_me:$LINENO: result: $ac_cv_search_sched_get_priority_max" >&5 14792 echo "${ECHO_T}$ac_cv_search_sched_get_priority_max" >&6 14793 if test "$ac_cv_search_sched_get_priority_max" != no; then 14794 test "$ac_cv_search_sched_get_priority_max" = "none required" || LIBS="$ac_cv_search_sched_get_priority_max $LIBS" 14795 14796 fi 14797 as_ac_File=`echo "ac_cv_file_$rfio_root_dir/include/shift/rfio_api.h" | $as_tr_sh` 14798 echo "$as_me:$LINENO: checking for $rfio_root_dir/include/shift/rfio_api.h" >&5 14799 echo $ECHO_N "checking for $rfio_root_dir/include/shift/rfio_api.h... $ECHO_C" >&6 14800 if eval "test \"\${$as_ac_File+set}\" = set"; then 14801 echo $ECHO_N "(cached) $ECHO_C" >&6 14802 else 14803 test "$cross_compiling" = yes && 14804 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 14805 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 14806 { (exit 1); exit 1; }; } 14807 if test -r "$rfio_root_dir/include/shift/rfio_api.h"; then 14808 eval "$as_ac_File=yes" 14809 else 14810 eval "$as_ac_File=no" 14811 fi 14812 fi 14813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 14814 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 14815 if test `eval echo '${'$as_ac_File'}'` = yes; then 14816 result=yes 14817 else 14818 result=no 14819 fi 14820 14821 if test $result = yes ; then 14822 echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 14823 echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6 14824 if test "${ac_cv_search_pthread_create+set}" = set; then 14825 echo $ECHO_N "(cached) $ECHO_C" >&6 14826 else 14827 ac_func_search_save_LIBS=$LIBS 14828 ac_cv_search_pthread_create=no 14829 cat >conftest.$ac_ext <<_ACEOF 14830 /* confdefs.h. */ 14831 _ACEOF 14832 cat confdefs.h >>conftest.$ac_ext 14833 cat >>conftest.$ac_ext <<_ACEOF 14834 /* end confdefs.h. */ 14835 14836 /* Override any gcc2 internal prototype to avoid an error. */ 14837 #ifdef __cplusplus 14838 extern "C" 14839 #endif 14840 /* We use char because int might match the return type of a gcc2 14841 builtin and then its argument prototype would still apply. */ 14842 char pthread_create (); 14843 int 14844 main () 14845 { 14846 pthread_create (); 14847 ; 14848 return 0; 14849 } 14850 _ACEOF 14851 rm -f conftest.$ac_objext conftest$ac_exeext 14852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14853 (eval $ac_link) 2>conftest.er1 14854 ac_status=$? 14855 grep -v '^ *+' conftest.er1 >conftest.err 14856 rm -f conftest.er1 14857 cat conftest.err >&5 14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14859 (exit $ac_status); } && 14860 { ac_try='test -z "$ac_c_werror_flag" 14861 || test ! -s conftest.err' 14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14863 (eval $ac_try) 2>&5 14864 ac_status=$? 14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14866 (exit $ac_status); }; } && 14867 { ac_try='test -s conftest$ac_exeext' 14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14869 (eval $ac_try) 2>&5 14870 ac_status=$? 14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14872 (exit $ac_status); }; }; then 14873 ac_cv_search_pthread_create="none required" 14874 else 14875 echo "$as_me: failed program was:" >&5 14876 sed 's/^/| /' conftest.$ac_ext >&5 14877 14878 fi 14879 rm -f conftest.err conftest.$ac_objext \ 14880 conftest$ac_exeext conftest.$ac_ext 14881 if test "$ac_cv_search_pthread_create" = no; then 14882 for ac_lib in pthread pthreads dce; do 14883 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14884 cat >conftest.$ac_ext <<_ACEOF 14885 /* confdefs.h. */ 14886 _ACEOF 14887 cat confdefs.h >>conftest.$ac_ext 14888 cat >>conftest.$ac_ext <<_ACEOF 14889 /* end confdefs.h. */ 14890 14891 /* Override any gcc2 internal prototype to avoid an error. */ 14892 #ifdef __cplusplus 14893 extern "C" 14894 #endif 14895 /* We use char because int might match the return type of a gcc2 14896 builtin and then its argument prototype would still apply. */ 14897 char pthread_create (); 14898 int 14899 main () 14900 { 14901 pthread_create (); 14902 ; 14903 return 0; 14904 } 14905 _ACEOF 14906 rm -f conftest.$ac_objext conftest$ac_exeext 14907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14908 (eval $ac_link) 2>conftest.er1 14909 ac_status=$? 14910 grep -v '^ *+' conftest.er1 >conftest.err 14911 rm -f conftest.er1 14912 cat conftest.err >&5 14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14914 (exit $ac_status); } && 14915 { ac_try='test -z "$ac_c_werror_flag" 14916 || test ! -s conftest.err' 14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14918 (eval $ac_try) 2>&5 14919 ac_status=$? 14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14921 (exit $ac_status); }; } && 14922 { ac_try='test -s conftest$ac_exeext' 14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14924 (eval $ac_try) 2>&5 14925 ac_status=$? 14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14927 (exit $ac_status); }; }; then 14928 ac_cv_search_pthread_create="-l$ac_lib" 14929 break 14930 else 14931 echo "$as_me: failed program was:" >&5 14932 sed 's/^/| /' conftest.$ac_ext >&5 14933 14934 fi 14935 rm -f conftest.err conftest.$ac_objext \ 14936 conftest$ac_exeext conftest.$ac_ext 14937 done 14938 fi 14939 LIBS=$ac_func_search_save_LIBS 14940 fi 14941 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 14942 echo "${ECHO_T}$ac_cv_search_pthread_create" >&6 14943 if test "$ac_cv_search_pthread_create" != no; then 14944 test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS" 14945 14946 fi 14947 echo "$as_me:$LINENO: checking for library containing pthread_kill" >&5 14948 echo $ECHO_N "checking for library containing pthread_kill... $ECHO_C" >&6 14949 if test "${ac_cv_search_pthread_kill+set}" = set; then 14950 echo $ECHO_N "(cached) $ECHO_C" >&6 14951 else 14952 ac_func_search_save_LIBS=$LIBS 14953 ac_cv_search_pthread_kill=no 14954 cat >conftest.$ac_ext <<_ACEOF 14955 /* confdefs.h. */ 14956 _ACEOF 14957 cat confdefs.h >>conftest.$ac_ext 14958 cat >>conftest.$ac_ext <<_ACEOF 14959 /* end confdefs.h. */ 14960 14961 /* Override any gcc2 internal prototype to avoid an error. */ 14962 #ifdef __cplusplus 14963 extern "C" 14964 #endif 14965 /* We use char because int might match the return type of a gcc2 14966 builtin and then its argument prototype would still apply. */ 14967 char pthread_kill (); 14968 int 14969 main () 14970 { 14971 pthread_kill (); 14972 ; 14973 return 0; 14974 } 14975 _ACEOF 14976 rm -f conftest.$ac_objext conftest$ac_exeext 14977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14978 (eval $ac_link) 2>conftest.er1 14979 ac_status=$? 14980 grep -v '^ *+' conftest.er1 >conftest.err 14981 rm -f conftest.er1 14982 cat conftest.err >&5 14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14984 (exit $ac_status); } && 14985 { ac_try='test -z "$ac_c_werror_flag" 14986 || test ! -s conftest.err' 14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14988 (eval $ac_try) 2>&5 14989 ac_status=$? 14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14991 (exit $ac_status); }; } && 14992 { ac_try='test -s conftest$ac_exeext' 14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14994 (eval $ac_try) 2>&5 14995 ac_status=$? 14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14997 (exit $ac_status); }; }; then 14998 ac_cv_search_pthread_kill="none required" 14999 else 15000 echo "$as_me: failed program was:" >&5 15001 sed 's/^/| /' conftest.$ac_ext >&5 15002 15003 fi 15004 rm -f conftest.err conftest.$ac_objext \ 15005 conftest$ac_exeext conftest.$ac_ext 15006 if test "$ac_cv_search_pthread_kill" = no; then 15007 for ac_lib in pthread pthreads; do 15008 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15009 cat >conftest.$ac_ext <<_ACEOF 15010 /* confdefs.h. */ 15011 _ACEOF 15012 cat confdefs.h >>conftest.$ac_ext 15013 cat >>conftest.$ac_ext <<_ACEOF 15014 /* end confdefs.h. */ 15015 15016 /* Override any gcc2 internal prototype to avoid an error. */ 15017 #ifdef __cplusplus 15018 extern "C" 15019 #endif 15020 /* We use char because int might match the return type of a gcc2 15021 builtin and then its argument prototype would still apply. */ 15022 char pthread_kill (); 15023 int 15024 main () 15025 { 15026 pthread_kill (); 15027 ; 15028 return 0; 15029 } 15030 _ACEOF 15031 rm -f conftest.$ac_objext conftest$ac_exeext 15032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15033 (eval $ac_link) 2>conftest.er1 15034 ac_status=$? 15035 grep -v '^ *+' conftest.er1 >conftest.err 15036 rm -f conftest.er1 15037 cat conftest.err >&5 15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15039 (exit $ac_status); } && 15040 { ac_try='test -z "$ac_c_werror_flag" 15041 || test ! -s conftest.err' 15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15043 (eval $ac_try) 2>&5 15044 ac_status=$? 15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15046 (exit $ac_status); }; } && 15047 { ac_try='test -s conftest$ac_exeext' 15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15049 (eval $ac_try) 2>&5 15050 ac_status=$? 15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15052 (exit $ac_status); }; }; then 15053 ac_cv_search_pthread_kill="-l$ac_lib" 15054 break 15055 else 15056 echo "$as_me: failed program was:" >&5 15057 sed 's/^/| /' conftest.$ac_ext >&5 15058 15059 fi 15060 rm -f conftest.err conftest.$ac_objext \ 15061 conftest$ac_exeext conftest.$ac_ext 15062 done 15063 fi 15064 LIBS=$ac_func_search_save_LIBS 15065 fi 15066 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_kill" >&5 15067 echo "${ECHO_T}$ac_cv_search_pthread_kill" >&6 15068 if test "$ac_cv_search_pthread_kill" != no; then 15069 test "$ac_cv_search_pthread_kill" = "none required" || LIBS="$ac_cv_search_pthread_kill $LIBS" 15070 15071 fi 15072 echo "$as_me:$LINENO: checking for rfio_open64" >&5 15073 echo $ECHO_N "checking for rfio_open64... $ECHO_C" >&6 15074 if test "${ac_cv_func_rfio_open64+set}" = set; then 15075 echo $ECHO_N "(cached) $ECHO_C" >&6 15076 else 15077 cat >conftest.$ac_ext <<_ACEOF 15078 /* confdefs.h. */ 15079 _ACEOF 15080 cat confdefs.h >>conftest.$ac_ext 15081 cat >>conftest.$ac_ext <<_ACEOF 15082 /* end confdefs.h. */ 15083 /* Define rfio_open64 to an innocuous variant, in case <limits.h> declares rfio_open64. 15084 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15085 #define rfio_open64 innocuous_rfio_open64 15086 15087 /* System header to define __stub macros and hopefully few prototypes, 15088 which can conflict with char rfio_open64 (); below. 15089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15090 <limits.h> exists even on freestanding compilers. */ 15091 15092 #ifdef __STDC__ 15093 # include <limits.h> 15094 #else 15095 # include <assert.h> 15096 #endif 15097 15098 #undef rfio_open64 15099 15100 /* Override any gcc2 internal prototype to avoid an error. */ 15101 #ifdef __cplusplus 15102 extern "C" 15103 { 15104 #endif 15105 /* We use char because int might match the return type of a gcc2 15106 builtin and then its argument prototype would still apply. */ 15107 char rfio_open64 (); 15108 /* The GNU C library defines this for functions which it implements 15109 to always fail with ENOSYS. Some functions are actually named 15110 something starting with __ and the normal name is an alias. */ 15111 #if defined (__stub_rfio_open64) || defined (__stub___rfio_open64) 15112 choke me 15113 #else 15114 char (*f) () = rfio_open64; 15115 #endif 15116 #ifdef __cplusplus 15117 } 15118 #endif 15119 15120 int 15121 main () 15122 { 15123 return f != rfio_open64; 15124 ; 15125 return 0; 15126 } 15127 _ACEOF 15128 rm -f conftest.$ac_objext conftest$ac_exeext 15129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15130 (eval $ac_link) 2>conftest.er1 15131 ac_status=$? 15132 grep -v '^ *+' conftest.er1 >conftest.err 15133 rm -f conftest.er1 15134 cat conftest.err >&5 15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15136 (exit $ac_status); } && 15137 { ac_try='test -z "$ac_c_werror_flag" 15138 || test ! -s conftest.err' 15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15140 (eval $ac_try) 2>&5 15141 ac_status=$? 15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15143 (exit $ac_status); }; } && 15144 { ac_try='test -s conftest$ac_exeext' 15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15146 (eval $ac_try) 2>&5 15147 ac_status=$? 15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15149 (exit $ac_status); }; }; then 15150 ac_cv_func_rfio_open64=yes 15151 else 15152 echo "$as_me: failed program was:" >&5 15153 sed 's/^/| /' conftest.$ac_ext >&5 15154 15155 ac_cv_func_rfio_open64=no 15156 fi 15157 rm -f conftest.err conftest.$ac_objext \ 15158 conftest$ac_exeext conftest.$ac_ext 15159 fi 15160 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_open64" >&5 15161 echo "${ECHO_T}$ac_cv_func_rfio_open64" >&6 15162 if test $ac_cv_func_rfio_open64 = yes; then 15163 cat >>confdefs.h <<\_ACEOF 15164 #define WITH_RFIO64 1 15165 _ACEOF 15166 15167 fi 15168 15169 else 15170 echo "$as_me:$LINENO: checking for rfio_open" >&5 15171 echo $ECHO_N "checking for rfio_open... $ECHO_C" >&6 15172 if test "${ac_cv_func_rfio_open+set}" = set; then 15173 echo $ECHO_N "(cached) $ECHO_C" >&6 15174 else 15175 cat >conftest.$ac_ext <<_ACEOF 15176 /* confdefs.h. */ 15177 _ACEOF 15178 cat confdefs.h >>conftest.$ac_ext 15179 cat >>conftest.$ac_ext <<_ACEOF 15180 /* end confdefs.h. */ 15181 /* Define rfio_open to an innocuous variant, in case <limits.h> declares rfio_open. 15182 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15183 #define rfio_open innocuous_rfio_open 15184 15185 /* System header to define __stub macros and hopefully few prototypes, 15186 which can conflict with char rfio_open (); below. 15187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15188 <limits.h> exists even on freestanding compilers. */ 15189 15190 #ifdef __STDC__ 15191 # include <limits.h> 15192 #else 15193 # include <assert.h> 15194 #endif 15195 15196 #undef rfio_open 15197 15198 /* Override any gcc2 internal prototype to avoid an error. */ 15199 #ifdef __cplusplus 15200 extern "C" 15201 { 15202 #endif 15203 /* We use char because int might match the return type of a gcc2 15204 builtin and then its argument prototype would still apply. */ 15205 char rfio_open (); 15206 /* The GNU C library defines this for functions which it implements 15207 to always fail with ENOSYS. Some functions are actually named 15208 something starting with __ and the normal name is an alias. */ 15209 #if defined (__stub_rfio_open) || defined (__stub___rfio_open) 15210 choke me 15211 #else 15212 char (*f) () = rfio_open; 15213 #endif 15214 #ifdef __cplusplus 15215 } 15216 #endif 15217 15218 int 15219 main () 15220 { 15221 return f != rfio_open; 15222 ; 15223 return 0; 15224 } 15225 _ACEOF 15226 rm -f conftest.$ac_objext conftest$ac_exeext 15227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15228 (eval $ac_link) 2>conftest.er1 15229 ac_status=$? 15230 grep -v '^ *+' conftest.er1 >conftest.err 15231 rm -f conftest.er1 15232 cat conftest.err >&5 15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15234 (exit $ac_status); } && 15235 { ac_try='test -z "$ac_c_werror_flag" 15236 || test ! -s conftest.err' 15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15238 (eval $ac_try) 2>&5 15239 ac_status=$? 15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15241 (exit $ac_status); }; } && 15242 { ac_try='test -s conftest$ac_exeext' 15243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15244 (eval $ac_try) 2>&5 15245 ac_status=$? 15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15247 (exit $ac_status); }; }; then 15248 ac_cv_func_rfio_open=yes 15249 else 15250 echo "$as_me: failed program was:" >&5 15251 sed 's/^/| /' conftest.$ac_ext >&5 15252 15253 ac_cv_func_rfio_open=no 15254 fi 15255 rm -f conftest.err conftest.$ac_objext \ 15256 conftest$ac_exeext conftest.$ac_ext 15257 fi 15258 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_open" >&5 15259 echo "${ECHO_T}$ac_cv_func_rfio_open" >&6 15260 if test $ac_cv_func_rfio_open = yes; then 15261 cat >>confdefs.h <<\_ACEOF 15262 #define WITH_RFIO 1 15263 _ACEOF 15264 15265 fi 15266 15267 fi 15268 if test "$ac_cv_func_rfio_open64" = "no" || test "$ac_cv_func_rfio_open" = "no" ; then 15269 LDFLAGS="$OLDLDFLAGS" 15270 CPPFLAGS="$OLDCPPFLAGS" 15271 LIBS="$OLDLIBS" 15272 ccin2p3_cv_rfio=no 15273 else 15274 15275 for ac_header in shift.h 15276 do 15277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15278 if eval "test \"\${$as_ac_Header+set}\" = set"; then 15279 echo "$as_me:$LINENO: checking for $ac_header" >&5 15280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15281 if eval "test \"\${$as_ac_Header+set}\" = set"; then 15282 echo $ECHO_N "(cached) $ECHO_C" >&6 15283 fi 15284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 15285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15286 else 15287 # Is the header compilable? 15288 echo "$as_me:$LINENO: checking $ac_header usability" >&5 15289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 15290 cat >conftest.$ac_ext <<_ACEOF 15291 /* confdefs.h. */ 15292 _ACEOF 15293 cat confdefs.h >>conftest.$ac_ext 15294 cat >>conftest.$ac_ext <<_ACEOF 15295 /* end confdefs.h. */ 15296 $ac_includes_default 15297 #include <$ac_header> 15298 _ACEOF 15299 rm -f conftest.$ac_objext 15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15301 (eval $ac_compile) 2>conftest.er1 15302 ac_status=$? 15303 grep -v '^ *+' conftest.er1 >conftest.err 15304 rm -f conftest.er1 15305 cat conftest.err >&5 15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15307 (exit $ac_status); } && 15308 { ac_try='test -z "$ac_c_werror_flag" 15309 || test ! -s conftest.err' 15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15311 (eval $ac_try) 2>&5 15312 ac_status=$? 15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15314 (exit $ac_status); }; } && 15315 { ac_try='test -s conftest.$ac_objext' 15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15317 (eval $ac_try) 2>&5 15318 ac_status=$? 15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15320 (exit $ac_status); }; }; then 15321 ac_header_compiler=yes 15322 else 15323 echo "$as_me: failed program was:" >&5 15324 sed 's/^/| /' conftest.$ac_ext >&5 15325 15326 ac_header_compiler=no 15327 fi 15328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15330 echo "${ECHO_T}$ac_header_compiler" >&6 15331 15332 # Is the header present? 15333 echo "$as_me:$LINENO: checking $ac_header presence" >&5 15334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 15335 cat >conftest.$ac_ext <<_ACEOF 15336 /* confdefs.h. */ 15337 _ACEOF 15338 cat confdefs.h >>conftest.$ac_ext 15339 cat >>conftest.$ac_ext <<_ACEOF 15340 /* end confdefs.h. */ 15341 #include <$ac_header> 15342 _ACEOF 15343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15345 ac_status=$? 15346 grep -v '^ *+' conftest.er1 >conftest.err 15347 rm -f conftest.er1 15348 cat conftest.err >&5 15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15350 (exit $ac_status); } >/dev/null; then 15351 if test -s conftest.err; then 15352 ac_cpp_err=$ac_c_preproc_warn_flag 15353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15354 else 15355 ac_cpp_err= 15356 fi 15357 else 15358 ac_cpp_err=yes 15359 fi 15360 if test -z "$ac_cpp_err"; then 15361 ac_header_preproc=yes 15362 else 15363 echo "$as_me: failed program was:" >&5 15364 sed 's/^/| /' conftest.$ac_ext >&5 15365 15366 ac_header_preproc=no 15367 fi 15368 rm -f conftest.err conftest.$ac_ext 15369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15370 echo "${ECHO_T}$ac_header_preproc" >&6 15371 15372 # So? What about this header? 15373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15374 yes:no: ) 15375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15379 ac_header_preproc=yes 15380 ;; 15381 no:yes:* ) 15382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15394 ( 15395 cat <<\_ASBOX 15396 ## ------------------------------------------ ## 15397 ## Report this to the AC_PACKAGE_NAME lists. ## 15398 ## ------------------------------------------ ## 15399 _ASBOX 15400 ) | 15401 sed "s/^/$as_me: WARNING: /" >&2 15402 ;; 15403 esac 15404 echo "$as_me:$LINENO: checking for $ac_header" >&5 15405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15406 if eval "test \"\${$as_ac_Header+set}\" = set"; then 15407 echo $ECHO_N "(cached) $ECHO_C" >&6 15408 else 15409 eval "$as_ac_Header=\$ac_header_preproc" 15410 fi 15411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 15412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15413 15414 fi 15415 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15416 cat >>confdefs.h <<_ACEOF 15417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15418 _ACEOF 15419 15420 else 15421 { { echo "$as_me:$LINENO: error: shift.h not found in $CPPFLAGS" >&5 15422 echo "$as_me: error: shift.h not found in $CPPFLAGS" >&2;} 15423 { (exit 1); exit 1; }; } 15424 fi 15425 15426 done 15427 15428 # LIBS="$LIBS $rfio_root_dir/lib/libshift.a" 15429 LDFLAGS="$OLDLDFLAGS" 15430 if test "$ac_cv_func_rfio_open" = "yes" ; then 15431 echo "$as_me:$LINENO: checking for rfio_HsmIf_FindPhysicalPath" >&5 15432 echo $ECHO_N "checking for rfio_HsmIf_FindPhysicalPath... $ECHO_C" >&6 15433 if test "${ac_cv_func_rfio_HsmIf_FindPhysicalPath+set}" = set; then 15434 echo $ECHO_N "(cached) $ECHO_C" >&6 15435 else 15436 cat >conftest.$ac_ext <<_ACEOF 15437 /* confdefs.h. */ 15438 _ACEOF 15439 cat confdefs.h >>conftest.$ac_ext 15440 cat >>conftest.$ac_ext <<_ACEOF 15441 /* end confdefs.h. */ 15442 /* Define rfio_HsmIf_FindPhysicalPath to an innocuous variant, in case <limits.h> declares rfio_HsmIf_FindPhysicalPath. 15443 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15444 #define rfio_HsmIf_FindPhysicalPath innocuous_rfio_HsmIf_FindPhysicalPath 15445 15446 /* System header to define __stub macros and hopefully few prototypes, 15447 which can conflict with char rfio_HsmIf_FindPhysicalPath (); below. 15448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15449 <limits.h> exists even on freestanding compilers. */ 15450 15451 #ifdef __STDC__ 15452 # include <limits.h> 15453 #else 15454 # include <assert.h> 15455 #endif 15456 15457 #undef rfio_HsmIf_FindPhysicalPath 15458 15459 /* Override any gcc2 internal prototype to avoid an error. */ 15460 #ifdef __cplusplus 15461 extern "C" 15462 { 15463 #endif 15464 /* We use char because int might match the return type of a gcc2 15465 builtin and then its argument prototype would still apply. */ 15466 char rfio_HsmIf_FindPhysicalPath (); 15467 /* The GNU C library defines this for functions which it implements 15468 to always fail with ENOSYS. Some functions are actually named 15469 something starting with __ and the normal name is an alias. */ 15470 #if defined (__stub_rfio_HsmIf_FindPhysicalPath) || defined (__stub___rfio_HsmIf_FindPhysicalPath) 15471 choke me 15472 #else 15473 char (*f) () = rfio_HsmIf_FindPhysicalPath; 15474 #endif 15475 #ifdef __cplusplus 15476 } 15477 #endif 15478 15479 int 15480 main () 15481 { 15482 return f != rfio_HsmIf_FindPhysicalPath; 15483 ; 15484 return 0; 15485 } 15486 _ACEOF 15487 rm -f conftest.$ac_objext conftest$ac_exeext 15488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15489 (eval $ac_link) 2>conftest.er1 15490 ac_status=$? 15491 grep -v '^ *+' conftest.er1 >conftest.err 15492 rm -f conftest.er1 15493 cat conftest.err >&5 15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15495 (exit $ac_status); } && 15496 { ac_try='test -z "$ac_c_werror_flag" 15497 || test ! -s conftest.err' 15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15499 (eval $ac_try) 2>&5 15500 ac_status=$? 15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15502 (exit $ac_status); }; } && 15503 { ac_try='test -s conftest$ac_exeext' 15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15505 (eval $ac_try) 2>&5 15506 ac_status=$? 15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15508 (exit $ac_status); }; }; then 15509 ac_cv_func_rfio_HsmIf_FindPhysicalPath=yes 15510 else 15511 echo "$as_me: failed program was:" >&5 15512 sed 's/^/| /' conftest.$ac_ext >&5 15513 15514 ac_cv_func_rfio_HsmIf_FindPhysicalPath=no 15515 fi 15516 rm -f conftest.err conftest.$ac_objext \ 15517 conftest$ac_exeext conftest.$ac_ext 15518 fi 15519 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_HsmIf_FindPhysicalPath" >&5 15520 echo "${ECHO_T}$ac_cv_func_rfio_HsmIf_FindPhysicalPath" >&6 15521 if test $ac_cv_func_rfio_HsmIf_FindPhysicalPath = yes; then 15522 result=yes 15523 else 15524 result=no 15525 fi 15526 15527 if test $result = yes ; then 15528 if test "${ac_cv_header_stage_api_h+set}" = set; then 15529 echo "$as_me:$LINENO: checking for stage_api.h" >&5 15530 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 15531 if test "${ac_cv_header_stage_api_h+set}" = set; then 15532 echo $ECHO_N "(cached) $ECHO_C" >&6 15533 fi 15534 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 15535 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 15536 else 15537 # Is the header compilable? 15538 echo "$as_me:$LINENO: checking stage_api.h usability" >&5 15539 echo $ECHO_N "checking stage_api.h usability... $ECHO_C" >&6 15540 cat >conftest.$ac_ext <<_ACEOF 15541 /* confdefs.h. */ 15542 _ACEOF 15543 cat confdefs.h >>conftest.$ac_ext 15544 cat >>conftest.$ac_ext <<_ACEOF 15545 /* end confdefs.h. */ 15546 $ac_includes_default 15547 #include <stage_api.h> 15548 _ACEOF 15549 rm -f conftest.$ac_objext 15550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15551 (eval $ac_compile) 2>conftest.er1 15552 ac_status=$? 15553 grep -v '^ *+' conftest.er1 >conftest.err 15554 rm -f conftest.er1 15555 cat conftest.err >&5 15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15557 (exit $ac_status); } && 15558 { ac_try='test -z "$ac_c_werror_flag" 15559 || test ! -s conftest.err' 15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15561 (eval $ac_try) 2>&5 15562 ac_status=$? 15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15564 (exit $ac_status); }; } && 15565 { ac_try='test -s conftest.$ac_objext' 15566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15567 (eval $ac_try) 2>&5 15568 ac_status=$? 15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15570 (exit $ac_status); }; }; then 15571 ac_header_compiler=yes 15572 else 15573 echo "$as_me: failed program was:" >&5 15574 sed 's/^/| /' conftest.$ac_ext >&5 15575 15576 ac_header_compiler=no 15577 fi 15578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15580 echo "${ECHO_T}$ac_header_compiler" >&6 15581 15582 # Is the header present? 15583 echo "$as_me:$LINENO: checking stage_api.h presence" >&5 15584 echo $ECHO_N "checking stage_api.h presence... $ECHO_C" >&6 15585 cat >conftest.$ac_ext <<_ACEOF 15586 /* confdefs.h. */ 15587 _ACEOF 15588 cat confdefs.h >>conftest.$ac_ext 15589 cat >>conftest.$ac_ext <<_ACEOF 15590 /* end confdefs.h. */ 15591 #include <stage_api.h> 15592 _ACEOF 15593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15595 ac_status=$? 15596 grep -v '^ *+' conftest.er1 >conftest.err 15597 rm -f conftest.er1 15598 cat conftest.err >&5 15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15600 (exit $ac_status); } >/dev/null; then 15601 if test -s conftest.err; then 15602 ac_cpp_err=$ac_c_preproc_warn_flag 15603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15604 else 15605 ac_cpp_err= 15606 fi 15607 else 15608 ac_cpp_err=yes 15609 fi 15610 if test -z "$ac_cpp_err"; then 15611 ac_header_preproc=yes 15612 else 15613 echo "$as_me: failed program was:" >&5 15614 sed 's/^/| /' conftest.$ac_ext >&5 15615 15616 ac_header_preproc=no 15617 fi 15618 rm -f conftest.err conftest.$ac_ext 15619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15620 echo "${ECHO_T}$ac_header_preproc" >&6 15621 15622 # So? What about this header? 15623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15624 yes:no: ) 15625 { echo "$as_me:$LINENO: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&5 15626 echo "$as_me: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15627 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the compiler's result" >&5 15628 echo "$as_me: WARNING: stage_api.h: proceeding with the compiler's result" >&2;} 15629 ac_header_preproc=yes 15630 ;; 15631 no:yes:* ) 15632 { echo "$as_me:$LINENO: WARNING: stage_api.h: present but cannot be compiled" >&5 15633 echo "$as_me: WARNING: stage_api.h: present but cannot be compiled" >&2;} 15634 { echo "$as_me:$LINENO: WARNING: stage_api.h: check for missing prerequisite headers?" >&5 15635 echo "$as_me: WARNING: stage_api.h: check for missing prerequisite headers?" >&2;} 15636 { echo "$as_me:$LINENO: WARNING: stage_api.h: see the Autoconf documentation" >&5 15637 echo "$as_me: WARNING: stage_api.h: see the Autoconf documentation" >&2;} 15638 { echo "$as_me:$LINENO: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&5 15639 echo "$as_me: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&2;} 15640 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the preprocessor's result" >&5 15641 echo "$as_me: WARNING: stage_api.h: proceeding with the preprocessor's result" >&2;} 15642 { echo "$as_me:$LINENO: WARNING: stage_api.h: in the future, the compiler will take precedence" >&5 15643 echo "$as_me: WARNING: stage_api.h: in the future, the compiler will take precedence" >&2;} 15644 ( 15645 cat <<\_ASBOX 15646 ## ------------------------------------------ ## 15647 ## Report this to the AC_PACKAGE_NAME lists. ## 15648 ## ------------------------------------------ ## 15649 _ASBOX 15650 ) | 15651 sed "s/^/$as_me: WARNING: /" >&2 15652 ;; 15653 esac 15654 echo "$as_me:$LINENO: checking for stage_api.h" >&5 15655 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 15656 if test "${ac_cv_header_stage_api_h+set}" = set; then 15657 echo $ECHO_N "(cached) $ECHO_C" >&6 15658 else 15659 ac_cv_header_stage_api_h=$ac_header_preproc 15660 fi 15661 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 15662 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 15663 15664 fi 15665 if test $ac_cv_header_stage_api_h = yes; then 15666 result=yes 15667 else 15668 { { echo "$as_me:$LINENO: error: shift/stage_api.h not found in $CPPFLAGS" >&5 15669 echo "$as_me: error: shift/stage_api.h not found in $CPPFLAGS" >&2;} 15670 { (exit 1); exit 1; }; } 15671 fi 15672 15673 15674 cat >>confdefs.h <<\_ACEOF 15675 #define CASTOR 1 15676 _ACEOF 15677 15678 fi 15679 else 15680 echo "$as_me:$LINENO: checking for rfio_setcos" >&5 15681 echo $ECHO_N "checking for rfio_setcos... $ECHO_C" >&6 15682 if test "${ac_cv_func_rfio_setcos+set}" = set; then 15683 echo $ECHO_N "(cached) $ECHO_C" >&6 15684 else 15685 cat >conftest.$ac_ext <<_ACEOF 15686 /* confdefs.h. */ 15687 _ACEOF 15688 cat confdefs.h >>conftest.$ac_ext 15689 cat >>conftest.$ac_ext <<_ACEOF 15690 /* end confdefs.h. */ 15691 /* Define rfio_setcos to an innocuous variant, in case <limits.h> declares rfio_setcos. 15692 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15693 #define rfio_setcos innocuous_rfio_setcos 15694 15695 /* System header to define __stub macros and hopefully few prototypes, 15696 which can conflict with char rfio_setcos (); below. 15697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15698 <limits.h> exists even on freestanding compilers. */ 15699 15700 #ifdef __STDC__ 15701 # include <limits.h> 15702 #else 15703 # include <assert.h> 15704 #endif 15705 15706 #undef rfio_setcos 15707 15708 /* Override any gcc2 internal prototype to avoid an error. */ 15709 #ifdef __cplusplus 15710 extern "C" 15711 { 15712 #endif 15713 /* We use char because int might match the return type of a gcc2 15714 builtin and then its argument prototype would still apply. */ 15715 char rfio_setcos (); 15716 /* The GNU C library defines this for functions which it implements 15717 to always fail with ENOSYS. Some functions are actually named 15718 something starting with __ and the normal name is an alias. */ 15719 #if defined (__stub_rfio_setcos) || defined (__stub___rfio_setcos) 15720 choke me 15721 #else 15722 char (*f) () = rfio_setcos; 15723 #endif 15724 #ifdef __cplusplus 15725 } 15726 #endif 15727 15728 int 15729 main () 15730 { 15731 return f != rfio_setcos; 15732 ; 15733 return 0; 15734 } 15735 _ACEOF 15736 rm -f conftest.$ac_objext conftest$ac_exeext 15737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15738 (eval $ac_link) 2>conftest.er1 15739 ac_status=$? 15740 grep -v '^ *+' conftest.er1 >conftest.err 15741 rm -f conftest.er1 15742 cat conftest.err >&5 15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15744 (exit $ac_status); } && 15745 { ac_try='test -z "$ac_c_werror_flag" 15746 || test ! -s conftest.err' 15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15748 (eval $ac_try) 2>&5 15749 ac_status=$? 15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15751 (exit $ac_status); }; } && 15752 { ac_try='test -s conftest$ac_exeext' 15753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15754 (eval $ac_try) 2>&5 15755 ac_status=$? 15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15757 (exit $ac_status); }; }; then 15758 ac_cv_func_rfio_setcos=yes 15759 else 15760 echo "$as_me: failed program was:" >&5 15761 sed 's/^/| /' conftest.$ac_ext >&5 15762 15763 ac_cv_func_rfio_setcos=no 15764 fi 15765 rm -f conftest.err conftest.$ac_objext \ 15766 conftest$ac_exeext conftest.$ac_ext 15767 fi 15768 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_setcos" >&5 15769 echo "${ECHO_T}$ac_cv_func_rfio_setcos" >&6 15770 if test $ac_cv_func_rfio_setcos = yes; then 15771 result=yes