… | |
… | |
9943 | _ACEOF |
9943 | _ACEOF |
9944 | |
9944 | |
9945 | LIBS="-lrt $LIBS" |
9945 | LIBS="-lrt $LIBS" |
9946 | |
9946 | |
9947 | fi |
9947 | fi |
|
|
9948 | |
|
|
9949 | |
|
|
9950 | for ac_func in clock_gettime |
|
|
9951 | do |
|
|
9952 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
9953 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
9954 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
9955 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
9956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9957 | else |
|
|
9958 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9959 | /* confdefs.h. */ |
|
|
9960 | _ACEOF |
|
|
9961 | cat confdefs.h >>conftest.$ac_ext |
|
|
9962 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9963 | /* end confdefs.h. */ |
|
|
9964 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
9965 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
9966 | #define $ac_func innocuous_$ac_func |
|
|
9967 | |
|
|
9968 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
9969 | which can conflict with char $ac_func (); below. |
|
|
9970 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
9971 | <limits.h> exists even on freestanding compilers. */ |
|
|
9972 | |
|
|
9973 | #ifdef __STDC__ |
|
|
9974 | # include <limits.h> |
|
|
9975 | #else |
|
|
9976 | # include <assert.h> |
|
|
9977 | #endif |
|
|
9978 | |
|
|
9979 | #undef $ac_func |
|
|
9980 | |
|
|
9981 | /* Override any GCC internal prototype to avoid an error. |
|
|
9982 | Use char because int might match the return type of a GCC |
|
|
9983 | builtin and then its argument prototype would still apply. */ |
|
|
9984 | #ifdef __cplusplus |
|
|
9985 | extern "C" |
|
|
9986 | #endif |
|
|
9987 | char $ac_func (); |
|
|
9988 | /* The GNU C library defines this for functions which it implements |
|
|
9989 | to always fail with ENOSYS. Some functions are actually named |
|
|
9990 | something starting with __ and the normal name is an alias. */ |
|
|
9991 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
9992 | choke me |
|
|
9993 | #endif |
|
|
9994 | |
|
|
9995 | int |
|
|
9996 | main () |
|
|
9997 | { |
|
|
9998 | return $ac_func (); |
|
|
9999 | ; |
|
|
10000 | return 0; |
|
|
10001 | } |
|
|
10002 | _ACEOF |
|
|
10003 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10004 | if { (ac_try="$ac_link" |
|
|
10005 | case "(($ac_try" in |
|
|
10006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10007 | *) ac_try_echo=$ac_try;; |
|
|
10008 | esac |
|
|
10009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10010 | (eval "$ac_link") 2>conftest.er1 |
|
|
10011 | ac_status=$? |
|
|
10012 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10013 | rm -f conftest.er1 |
|
|
10014 | cat conftest.err >&5 |
|
|
10015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10016 | (exit $ac_status); } && { |
|
|
10017 | test -z "$ac_c_werror_flag" || |
|
|
10018 | test ! -s conftest.err |
|
|
10019 | } && test -s conftest$ac_exeext && |
|
|
10020 | $as_test_x conftest$ac_exeext; then |
|
|
10021 | eval "$as_ac_var=yes" |
|
|
10022 | else |
|
|
10023 | echo "$as_me: failed program was:" >&5 |
|
|
10024 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10025 | |
|
|
10026 | eval "$as_ac_var=no" |
|
|
10027 | fi |
|
|
10028 | |
|
|
10029 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10030 | conftest$ac_exeext conftest.$ac_ext |
|
|
10031 | fi |
|
|
10032 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
10033 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10034 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
10035 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10036 | cat >>confdefs.h <<_ACEOF |
|
|
10037 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10038 | _ACEOF |
|
|
10039 | |
|
|
10040 | fi |
|
|
10041 | done |
9948 | |
10042 | |
9949 | |
10043 | |
9950 | fi |
10044 | fi |
9951 | |
10045 | |
9952 | |
10046 | |