| 3098 | | |
|---|
| 3099 | | |
|---|
| 3100 | | # Check for glibc (Linux) |
|---|
| 3101 | | echo "$as_me:$LINENO: checking for glibc" >&5 |
|---|
| 3102 | | echo $ECHO_N "checking for glibc... $ECHO_C" >&6 |
|---|
| 3103 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3104 | | |
|---|
| 3105 | | #include <features.h> |
|---|
| 3106 | | #ifndef __GLIBC__ |
|---|
| 3107 | | chokeme |
|---|
| 3108 | | #endif |
|---|
| 3109 | | |
|---|
| 3110 | | _ACEOF |
|---|
| 3111 | | rm -f conftest.$ac_objext |
|---|
| 3112 | | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 3113 | | (eval $ac_compile) 2>conftest.er1 |
|---|
| 3114 | | ac_status=$? |
|---|
| 3115 | | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3116 | | rm -f conftest.er1 |
|---|
| 3117 | | cat conftest.err >&5 |
|---|
| 3118 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3119 | | (exit $ac_status); } && |
|---|
| 3120 | | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 3121 | | || test ! -s conftest.err' |
|---|
| 3122 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3123 | | (eval $ac_try) 2>&5 |
|---|
| 3124 | | ac_status=$? |
|---|
| 3125 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3126 | | (exit $ac_status); }; } && |
|---|
| 3127 | | { ac_try='test -s conftest.$ac_objext' |
|---|
| 3128 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3129 | | (eval $ac_try) 2>&5 |
|---|
| 3130 | | ac_status=$? |
|---|
| 3131 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3132 | | (exit $ac_status); }; }; then |
|---|
| 3133 | | |
|---|
| 3134 | | |
|---|
| 3135 | | cat >>confdefs.h <<\_ACEOF |
|---|
| 3136 | | #define HAVE_GLIBC 1 |
|---|
| 3137 | | _ACEOF |
|---|
| 3138 | | |
|---|
| 3139 | | |
|---|
| 3140 | | cat >>confdefs.h <<\_ACEOF |
|---|
| 3141 | | #define _GNU_SOURCE 1 |
|---|
| 3142 | | _ACEOF |
|---|
| 3143 | | |
|---|
| 3144 | | echo "$as_me:$LINENO: result: yes" >&5 |
|---|
| 3145 | | echo "${ECHO_T}yes" >&6 |
|---|
| 3146 | | |
|---|
| 3147 | | else |
|---|
| 3148 | | echo "$as_me: failed program was:" >&5 |
|---|
| 3149 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3150 | | |
|---|
| 3151 | | |
|---|
| 3152 | | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 3153 | | echo "${ECHO_T}no" >&6 |
|---|
| 3154 | | |
|---|
| 3155 | | fi |
|---|
| 3156 | | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|