@@ -13247,65 +13247,6 @@ cat >>confdefs.h <<\_ACEOF
13247
13247
#define GETPWUID_THREADSAFE 1
13248
13248
_ACEOF
13249
13249
13250
- else echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
13251
- echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
13252
- if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
13253
- echo $ECHO_N "(cached) $ECHO_C" >&6
13254
- else
13255
- cat >conftest.$ac_ext <<_ACEOF
13256
- #line $LINENO "configure"
13257
- #include "confdefs.h"
13258
- #include <sys/types.h>
13259
- #include <pwd.h>
13260
- #ifdef F77_DUMMY_MAIN
13261
- # ifdef __cplusplus
13262
- extern "C"
13263
- # endif
13264
- int F77_DUMMY_MAIN() { return 1; }
13265
- #endif
13266
- int
13267
- main ()
13268
- {
13269
- uid_t uid;
13270
- struct passwd *space;
13271
- char *buf;
13272
- size_t bufsize;
13273
- struct passwd **result;
13274
- getpwuid_r(uid, space, buf, bufsize, result);
13275
- ;
13276
- return 0;
13277
- }
13278
- _ACEOF
13279
- rm -f conftest.$ac_objext
13280
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13281
- (eval $ac_compile) 2>&5
13282
- ac_status=$?
13283
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284
- (exit $ac_status); } &&
13285
- { ac_try='test -s conftest.$ac_objext'
13286
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287
- (eval $ac_try) 2>&5
13288
- ac_status=$?
13289
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290
- (exit $ac_status); }; }; then
13291
- pgac_func_getpwuid_r_5arg=yes
13292
- else
13293
- echo "$as_me: failed program was:" >&5
13294
- cat conftest.$ac_ext >&5
13295
- pgac_func_getpwuid_r_5arg=no
13296
- fi
13297
- rm -f conftest.$ac_objext conftest.$ac_ext
13298
- fi
13299
- echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
13300
- echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
13301
- if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
13302
-
13303
- cat >>confdefs.h <<\_ACEOF
13304
- #define GETPWUID_R_5ARG
13305
- _ACEOF
13306
-
13307
- fi
13308
-
13309
13250
fi
13310
13251
if test "$enable_thread_safety" = yes -a "$GETHOSTBYNAME_THREADSAFE" = yes ; then
13311
13252
@@ -13401,6 +13342,66 @@ done
13401
13342
CFLAGS="$_CFLAGS"
13402
13343
LIBS="$_LIBS"
13403
13344
13345
+ echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
13346
+ echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
13347
+ if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
13348
+ echo $ECHO_N "(cached) $ECHO_C" >&6
13349
+ else
13350
+ cat >conftest.$ac_ext <<_ACEOF
13351
+ #line $LINENO "configure"
13352
+ #include "confdefs.h"
13353
+ #include <sys/types.h>
13354
+ #include <pwd.h>
13355
+ #ifdef F77_DUMMY_MAIN
13356
+ # ifdef __cplusplus
13357
+ extern "C"
13358
+ # endif
13359
+ int F77_DUMMY_MAIN() { return 1; }
13360
+ #endif
13361
+ int
13362
+ main ()
13363
+ {
13364
+ uid_t uid;
13365
+ struct passwd *space;
13366
+ char *buf;
13367
+ size_t bufsize;
13368
+ struct passwd **result;
13369
+ getpwuid_r(uid, space, buf, bufsize, result);
13370
+ ;
13371
+ return 0;
13372
+ }
13373
+ _ACEOF
13374
+ rm -f conftest.$ac_objext
13375
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13376
+ (eval $ac_compile) 2>&5
13377
+ ac_status=$?
13378
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379
+ (exit $ac_status); } &&
13380
+ { ac_try='test -s conftest.$ac_objext'
13381
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382
+ (eval $ac_try) 2>&5
13383
+ ac_status=$?
13384
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385
+ (exit $ac_status); }; }; then
13386
+ pgac_func_getpwuid_r_5arg=yes
13387
+ else
13388
+ echo "$as_me: failed program was:" >&5
13389
+ cat conftest.$ac_ext >&5
13390
+ pgac_func_getpwuid_r_5arg=no
13391
+ fi
13392
+ rm -f conftest.$ac_objext conftest.$ac_ext
13393
+ fi
13394
+ echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
13395
+ echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
13396
+ if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
13397
+
13398
+ cat >>confdefs.h <<\_ACEOF
13399
+ #define GETPWUID_R_5ARG
13400
+ _ACEOF
13401
+
13402
+ fi
13403
+
13404
+
13404
13405
else
13405
13406
# do not use values from template file
13406
13407
THREAD_CPPFLAGS=
0 commit comments