Changeset 5583
- Timestamp:
- 06/09/08 12:36:02 (4 months ago)
- Files:
-
- wired/trunk/configure (modified) (58 diffs)
- wired/trunk/configure.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wired/trunk/configure
r5290 r5583 1813 1813 1814 1814 1815 1816 1817 1815 1818 # Get host 1816 1819 ac_aux_dir= … … 3025 3028 { (exit 1); exit 1; }; } 3026 3029 else 3027 wd_user=`perl -e "print getlogin()"` 3030 wd_user=`perl -e "print ((getpwuid($<))[0])"` 3031 3032 if test -z "$wd_user"; then 3033 { { echo "$as_me:$LINENO: error: unable to retrieve user name, please set one with --with-user" >&5 3034 echo "$as_me: error: unable to retrieve user name, please set one with --with-user" >&2;} 3035 { (exit 1); exit 1; }; } 3036 fi 3028 3037 fi 3029 3038 fi … … 3062 3071 { (exit 1); exit 1; }; } 3063 3072 else 3064 wd_group=`perl -e "print ((getgrgid(((getpwnam(getlogin()))[3])))[0])"` 3073 wd_group=`perl -e "print ((getgrgid(((getpwuid($<))[3])))[0])"` 3074 3075 if test -z "$wd_group"; then 3076 { { echo "$as_me:$LINENO: error: unable to retrieve group name, please set one with --with-group" >&5 3077 echo "$as_me: error: unable to retrieve group name, please set one with --with-group" >&2;} 3078 { (exit 1); exit 1; }; } 3079 fi 3065 3080 fi 3066 3081 fi … … 3090 3105 3091 3106 OLD_CFLAGS="$CFLAGS" 3092 CFLAGS="$CFLAGS -W" 3107 3108 if test -z "$CFLAGS"; then 3109 CFLAGS="-W" 3110 else 3111 MATCH=`expr -- "$CFLAGS" : ".*-W"` 3112 3113 if test "$MATCH" = "0"; then 3114 CFLAGS="$CFLAGS -W" 3115 fi 3116 fi 3117 3093 3118 3094 3119 cat >conftest.$ac_ext <<_ACEOF … … 3117 3142 } && test -s conftest.$ac_objext; then 3118 3143 3119 WARNFLAGS="$WARNFLAGS -W" 3144 3145 if test -z "$WARNFLAGS"; then 3146 WARNFLAGS="-W" 3147 else 3148 MATCH=`expr -- "$WARNFLAGS" : ".*-W"` 3149 3150 if test "$MATCH" = "0"; then 3151 WARNFLAGS="$WARNFLAGS -W" 3152 fi 3153 fi 3154 3120 3155 3121 3156 else … … 3132 3167 3133 3168 OLD_CFLAGS="$CFLAGS" 3134 CFLAGS="$CFLAGS -Wall" 3169 3170 if test -z "$CFLAGS"; then 3171 CFLAGS="-Wall" 3172 else 3173 MATCH=`expr -- "$CFLAGS" : ".*-Wall"` 3174 3175 if test "$MATCH" = "0"; then 3176 CFLAGS="$CFLAGS -Wall" 3177 fi 3178 fi 3179 3135 3180 3136 3181 cat >conftest.$ac_ext <<_ACEOF … … 3159 3204 } && test -s conftest.$ac_objext; then 3160 3205 3161 WARNFLAGS="$WARNFLAGS -Wall" 3206 3207 if test -z "$WARNFLAGS"; then 3208 WARNFLAGS="-Wall" 3209 else 3210 MATCH=`expr -- "$WARNFLAGS" : ".*-Wall"` 3211 3212 if test "$MATCH" = "0"; then 3213 WARNFLAGS="$WARNFLAGS -Wall" 3214 fi 3215 fi 3216 3162 3217 3163 3218 else … … 3174 3229 3175 3230 OLD_CFLAGS="$CFLAGS" 3176 CFLAGS="$CFLAGS -Wno-unknown-pragmas" 3231 3232 if test -z "$CFLAGS"; then 3233 CFLAGS="-Wno-unknown-pragmas" 3234 else 3235 MATCH=`expr -- "$CFLAGS" : ".*-Wno-unknown-pragmas"` 3236 3237 if test "$MATCH" = "0"; then 3238 CFLAGS="$CFLAGS -Wno-unknown-pragmas" 3239 fi 3240 fi 3241 3177 3242 3178 3243 cat >conftest.$ac_ext <<_ACEOF … … 3201 3266 } && test -s conftest.$ac_objext; then 3202 3267 3203 WARNFLAGS="$WARNFLAGS -Wno-unknown-pragmas" 3268 3269 if test -z "$WARNFLAGS"; then 3270 WARNFLAGS="-Wno-unknown-pragmas" 3271 else 3272 MATCH=`expr -- "$WARNFLAGS" : ".*-Wno-unknown-pragmas"` 3273 3274 if test "$MATCH" = "0"; then 3275 WARNFLAGS="$WARNFLAGS -Wno-unknown-pragmas" 3276 fi 3277 fi 3278 3204 3279 3205 3280 else … … 3216 3291 3217 3292 OLD_CFLAGS="$CFLAGS" 3218 CFLAGS="$CFLAGS -Wno-unused-parameter" 3293 3294 if test -z "$CFLAGS"; then 3295 CFLAGS="-Wno-unused-parameter" 3296 else 3297 MATCH=`expr -- "$CFLAGS" : ".*-Wno-unused-parameter"` 3298 3299 if test "$MATCH" = "0"; then 3300 CFLAGS="$CFLAGS -Wno-unused-parameter" 3301 fi 3302 fi 3303 3219 3304 3220 3305 cat >conftest.$ac_ext <<_ACEOF … … 3243 3328 } && test -s conftest.$ac_objext; then 3244 3329 3245 WARNFLAGS="$WARNFLAGS -Wno-unused-parameter" 3330 3331 if test -z "$WARNFLAGS"; then 3332 WARNFLAGS="-Wno-unused-parameter" 3333 else 3334 MATCH=`expr -- "$WARNFLAGS" : ".*-Wno-unused-parameter"` 3335 3336 if test "$MATCH" = "0"; then 3337 WARNFLAGS="$WARNFLAGS -Wno-unused-parameter" 3338 fi 3339 fi 3340 3246 3341 3247 3342 else … … 3258 3353 3259 3354 OLD_CFLAGS="$CFLAGS" 3260 CFLAGS="$CFLAGS -Wsign-compare" 3355 3356 if test -z "$CFLAGS"; then 3357 CFLAGS="-Wsign-compare" 3358 else 3359 MATCH=`expr -- "$CFLAGS" : ".*-Wsign-compare"` 3360 3361 if test "$MATCH" = "0"; then 3362 CFLAGS="$CFLAGS -Wsign-compare" 3363 fi 3364 fi 3365 3261 3366 3262 3367 cat >conftest.$ac_ext <<_ACEOF … … 3285 3390 } && test -s conftest.$ac_objext; then 3286 3391 3287 WARNFLAGS="$WARNFLAGS -Wsign-compare" 3392 3393 if test -z "$WARNFLAGS"; then 3394 WARNFLAGS="-Wsign-compare" 3395 else 3396 MATCH=`expr -- "$WARNFLAGS" : ".*-Wsign-compare"` 3397 3398 if test "$MATCH" = "0"; then 3399 WARNFLAGS="$WARNFLAGS -Wsign-compare" 3400 fi 3401 fi 3402 3288 3403 3289 3404 else … … 3300 3415 3301 3416 OLD_CFLAGS="$CFLAGS" 3302 CFLAGS="$CFLAGS -Wstrict-prototypes" 3417 3418 if test -z "$CFLAGS"; then 3419 CFLAGS="-Wstrict-prototypes" 3420 else 3421 MATCH=`expr -- "$CFLAGS" : ".*-Wstrict-prototypes"` 3422 3423 if test "$MATCH" = "0"; then 3424 CFLAGS="$CFLAGS -Wstrict-prototypes" 3425 fi 3426 fi 3427 3303 3428 3304 3429 cat >conftest.$ac_ext <<_ACEOF … … 3327 3452 } && test -s conftest.$ac_objext; then 3328 3453 3329 WARNFLAGS="$WARNFLAGS -Wstrict-prototypes" 3454 3455 if test -z "$WARNFLAGS"; then 3456 WARNFLAGS="-Wstrict-prototypes" 3457 else 3458 MATCH=`expr -- "$WARNFLAGS" : ".*-Wstrict-prototypes"` 3459 3460 if test "$MATCH" = "0"; then 3461 WARNFLAGS="$WARNFLAGS -Wstrict-prototypes" 3462 fi 3463 fi 3464 3330 3465 3331 3466 else … … 3342 3477 3343 3478 OLD_CFLAGS="$CFLAGS" 3344 CFLAGS="$CFLAGS -Wmissing-prototypes" 3479 3480 if test -z "$CFLAGS"; then 3481 CFLAGS="-Wmissing-prototypes" 3482 else 3483 MATCH=`expr -- "$CFLAGS" : ".*-Wmissing-prototypes"` 3484 3485 if test "$MATCH" = "0"; then 3486 CFLAGS="$CFLAGS -Wmissing-prototypes" 3487 fi 3488 fi 3489 3345 3490 3346 3491 cat >conftest.$ac_ext <<_ACEOF … … 3369 3514 } && test -s conftest.$ac_objext; then 3370 3515 3371 WARNFLAGS="$WARNFLAGS -Wmissing-prototypes" 3516 3517 if test -z "$WARNFLAGS"; then 3518 WARNFLAGS="-Wmissing-prototypes" 3519 else 3520 MATCH=`expr -- "$WARNFLAGS" : ".*-Wmissing-prototypes"` 3521 3522 if test "$MATCH" = "0"; then 3523 WARNFLAGS="$WARNFLAGS -Wmissing-prototypes" 3524 fi 3525 fi 3526 3372 3527 3373 3528 else … … 3384 3539 3385 3540 OLD_CFLAGS="$CFLAGS" 3386 CFLAGS="$CFLAGS -Wmissing-declarations" 3541 3542 if test -z "$CFLAGS"; then 3543 CFLAGS="-Wmissing-declarations" 3544 else 3545 MATCH=`expr -- "$CFLAGS" : ".*-Wmissing-declarations"` 3546 3547 if test "$MATCH" = "0"; then 3548 CFLAGS="$CFLAGS -Wmissing-declarations" 3549 fi 3550 fi 3551 3387 3552 3388 3553 cat >conftest.$ac_ext <<_ACEOF … … 3411 3576 } && test -s conftest.$ac_objext; then 3412 3577 3413 WARNFLAGS="$WARNFLAGS -Wmissing-declarations" 3578 3579 if test -z "$WARNFLAGS"; then 3580 WARNFLAGS="-Wmissing-declarations" 3581 else 3582 MATCH=`expr -- "$WARNFLAGS" : ".*-Wmissing-declarations"` 3583 3584 if test "$MATCH" = "0"; then 3585 WARNFLAGS="$WARNFLAGS -Wmissing-declarations" 3586 fi 3587 fi 3588 3414 3589 3415 3590 else … … 3426 3601 3427 3602 OLD_CFLAGS="$CFLAGS" 3428 CFLAGS="$CFLAGS -Wredundant-decls" 3603 3604 if test -z "$CFLAGS"; then 3605 CFLAGS="-Wredundant-decls" 3606 else 3607 MATCH=`expr -- "$CFLAGS" : ".*-Wredundant-decls"` 3608 3609 if test "$MATCH" = "0"; then 3610 CFLAGS="$CFLAGS -Wredundant-decls" 3611 fi 3612 fi 3613 3429 3614 3430 3615 cat >conftest.$ac_ext <<_ACEOF … … 3453 3638 } && test -s conftest.$ac_objext; then 3454 3639 3455 WARNFLAGS="$WARNFLAGS -Wredundant-decls" 3640 3641 if test -z "$WARNFLAGS"; then 3642 WARNFLAGS="-Wredundant-decls" 3643 else 3644 MATCH=`expr -- "$WARNFLAGS" : ".*-Wredundant-decls"` 3645 3646 if test "$MATCH" = "0"; then 3647 WARNFLAGS="$WARNFLAGS -Wredundant-decls" 3648 fi 3649 fi 3650 3456 3651 3457 3652 else … … 3569 3764 3570 3765 3571 if test -d /usr/local/include; then 3572 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 3766 if test "$wi_include_extra_include_paths_done" != "yes"; then 3767 if test -d /usr/local/include; then 3768 3769 if test -z "$CPPFLAGS"; then 3770 CPPFLAGS="-I/usr/local/include" 3771 else 3772 MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/local/include"` 3773 3774 if test "$MATCH" = "0"; then 3775 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 3776 fi 3573 3777 fi 3574 3778 3575 3576 if test -d /usr/local/lib; then 3577 LDFLAGS="$LDFLAGS -L/usr/local/lib" 3779 fi 3780 3781 wi_include_extra_include_paths_done="yes" 3782 fi 3783 3784 3785 if test "$wi_include_extra_library_paths_done" != "yes"; then 3786 if test -d /usr/local/lib; then 3787 3788 if test -z "$LDFLAGS"; then 3789 LDFLAGS="-L/usr/local/lib" 3790 else 3791 MATCH=`expr -- "$LDFLAGS" : ".*-L/usr/local/lib"` 3792 3793 if test "$MATCH" = "0"; then 3794 LDFLAGS="$LDFLAGS -L/usr/local/lib" 3795 fi 3796 fi 3797 3798 fi 3799 3800 wi_include_extra_library_paths_done="yes" 3578 3801 fi 3579 3802 … … 3595 3818 3596 3819 3597 { echo "$as_me:$LINENO: checking for pow" >&5 3820 if test "$wi_include_math_library_done" != "yes"; then 3821 { echo "$as_me:$LINENO: checking for pow" >&5 3598 3822 echo $ECHO_N "checking for pow... $ECHO_C" >&6; } 3599 3823 if test "${ac_cv_func_pow+set}" = set; then … … 3680 3904 else 3681 3905 3682 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&53906 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 3683 3907 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; } 3684 3908 if test "${ac_cv_lib_m_sqrt+set}" = set; then … … 3743 3967 if test $ac_cv_lib_m_sqrt = yes; then 3744 3968 3969 3970 if test -z "$LIBS"; then 3971 LIBS="-lm" 3972 else 3973 MATCH=`expr -- "$LIBS" : ".*-lm"` 3974 3975 if test "$MATCH" = "0"; then 3745 3976 LIBS="$LIBS -lm" 3746 3747 fi 3748 3749 3750 fi 3751 3752 3753 3754 { echo "$as_me:$LINENO: checking for setsockopt" >&5 3977 fi 3978 fi 3979 3980 3981 fi 3982 3983 3984 fi 3985 3986 3987 wi_include_math_library_done="yes" 3988 fi 3989 3990 3991 if test "$wi_include_socket_library_done" != "yes"; then 3992 { echo "$as_me:$LINENO: checking for setsockopt" >&5 3755 3993 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 3756 3994 if test "${ac_cv_func_setsockopt+set}" = set; then … … 3837 4075 else 3838 4076 3839 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&54077 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 3840 4078 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 3841 4079 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then … … 3900 4138 if test $ac_cv_lib_socket_setsockopt = yes; then 3901 4139 4140 4141 if test -z "$LIBS"; then 4142 LIBS="-lsocket" 4143 else 4144 MATCH=`expr -- "$LIBS" : ".*-lsocket"` 4145 4146 if test "$MATCH" = "0"; then 3902 4147 LIBS="$LIBS -lsocket" 3903 3904 fi 3905 3906 3907 fi 3908 3909 3910 3911 { echo "$as_me:$LINENO: checking for gethostent" >&5 4148 fi 4149 fi 4150 4151 4152 fi 4153 4154 4155 fi 4156 4157 4158 wi_include_socket_library_done="yes" 4159 fi 4160 4161 4162 if test "$wi_include_nsl_library_done" != "yes"; then 4163 { echo "$as_me:$LINENO: checking for gethostent" >&5 3912 4164 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6; } 3913 4165 if test "${ac_cv_func_gethostent+set}" = set; then … … 3994 4246 else 3995 4247 3996 { echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&54248 { echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5 3997 4249 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6; } 3998 4250 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then … … 4057 4309 if test $ac_cv_lib_nsl_gethostent = yes; then 4058 4310 4311 4312 if test -z "$LIBS"; then 4313 LIBS="-lnsl" 4314 else 4315 MATCH=`expr -- "$LIBS" : ".*-lnsl"` 4316 4317 if test "$MATCH" = "0"; then 4059 4318 LIBS="$LIBS -lnsl" 4060 4061 fi 4062 4063 4064 fi 4065 4066 4067 4068 { echo "$as_me:$LINENO: checking for inet_aton" >&5 4319 fi 4320 fi 4321 4322 4323 fi 4324 4325 4326 fi 4327 4328 4329 wi_include_nsl_library_done="yes" 4330 fi 4331 4332 4333 if test "$wi_include_resolv_library_done" != "yes"; then 4334 { echo "$as_me:$LINENO: checking for inet_aton" >&5 4069 4335 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } 4070 4336 if test "${ac_cv_func_inet_aton+set}" = set; then … … 4151 4417 else 4152 4418 4153 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&54419 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 4154 4420 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; } 4155 4421 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then … … 4214 4480 if test $ac_cv_lib_resolv_inet_aton = yes; then 4215 4481 4482 4483 if test -z "$LIBS"; then 4484 LIBS="-lresolv" 4485 else 4486 MATCH=`expr -- "$LIBS" : ".*-lresolv"` 4487 4488 if test "$MATCH" = "0"; then 4216 4489 LIBS="$LIBS -lresolv" 4217 4218 fi 4219 4220 4221 fi 4222 4490 fi 4491 fi 4492 4493 4494 fi 4495 4496 4497 fi 4498 4499 4500 wi_include_resolv_library_done="yes" 4501 fi 4223 4502 4224 4503 ac_ext=c … … 4859 5138 4860 5139 4861 4862 if test "$_wi_ssl_paths_added" != yes ; then 5140 if test "$wi_include_crypto_library_done" != "yes"; then 5141 5142 if test "$wi_include_extra_ssl_paths_done" != "yes"; then 4863 5143 if test -d /usr/local/ssl/include; then 5144 5145 if test -z "$CPPFLAGS"; then 5146 CPPFLAGS="-I/usr/local/ssl/include" 5147 else 5148 MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/local/ssl/include"` 5149 5150 if test "$MATCH" = "0"; then 4864 5151 CPPFLAGS="$CPPFLAGS -I/usr/local/ssl/include" 4865 5152 fi 5153 fi 5154 5155 fi 4866 5156 4867 5157 if test -d /usr/kerberos/include; then 5158 5159 if test -z "$CPPFLAGS"; then 5160 CPPFLAGS="-I/usr/kerberos/include" 5161 else 5162 MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/kerberos/include"` 5163 5164 if test "$MATCH" = "0"; then 4868 5165 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" 4869 5166 fi 5167 fi 5168 5169 fi 4870 5170 4871 5171 if test -d /usr/local/ssl/lib; then 5172 5173 if test -z "$LDFLAGS"; then 5174 LDFLAGS="-L/usr/local/ssl/lib" 5175 else 5176 MATCH=`expr -- "$LDFLAGS" : ".*-L/usr/local/ssl/lib"` 5177 5178 if test "$MATCH" = "0"; then 4872 5179 LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib" 4873 5180 fi 4874 5181 fi 4875 5182 4876 _wi_ssl_paths_added=yes 5183 fi 5184 5185 wi_include_extra_ssl_paths_done="yes" 5186 fi 4877 5187 4878 5188 … … 5018 5328 _ACEOF 5019 5329 5020 { echo "$as_me:$LINENO: checking for MD5_Init in -lcrypto" >&55330 { echo "$as_me:$LINENO: checking for MD5_Init in -lcrypto" >&5 5021 5331 echo $ECHO_N "checking for MD5_Init in -lcrypto... $ECHO_C" >&6; } 5022 5332 if test "${ac_cv_lib_crypto_MD5_Init+set}" = set; then … … 5081 5391 if test $ac_cv_lib_crypto_MD5_Init = yes; then 5082 5392 5393 5394 if test -z "$LIBS"; then 5395 LIBS="-lcrypto" 5396 else 5397 MATCH=`expr -- "$LIBS" : ".*-lcrypto"` 5398 5399 if test "$MATCH" = "0"; then 5083 5400 LIBS="$LIBS -lcrypto" 5401 fi 5402 fi 5403 5084 5404 5085 5405 else … … 5123 5443 5124 5444 5125 5126 5127 if test "$_wi_ssl_paths_added" != yes ; then 5445 wi_include_crypto_library_done="yes" 5446 fi 5447 5448 5449 if test "$wi_include_ssl_library_done" != "yes"; then 5450 5451 if test "$wi_include_extra_ssl_paths_done" != "yes"; then 5128 5452 if test -d /usr/local/ssl/include; then 5453 5454 if test -z "$CPPFLAGS"; then 5455 CPPFLAGS="-I/usr/local/ssl/include" 5456 else 5457 MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/local/ssl/include"` 5458 5459 if test "$MATCH" = "0"; then 5129 5460 CPPFLAGS="$CPPFLAGS -I/usr/local/ssl/include" 5130 5461 fi 5462 fi 5463 5464 fi 5131 5465 5132 5466 if test -d /usr/kerberos/include; then 5467 5468 if test -z "$CPPFLAGS"; then 5469 CPPFLAGS="-I/usr/kerberos/include" 5470 else 5471 MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/kerberos/include"` 5472 5473 if test "$MATCH" = "0"; then 5133 5474 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" 5134 5475 fi 5476 fi 5477 5478 fi 5135 5479 5136 5480 if test -d /usr/local/ssl/lib; then 5481 5482 if test -z "$LDFLAGS"; then 5483 LDFLAGS="-L/usr/local/ssl/lib" 5484 else 5485 MATCH=`expr -- "$LDFLAGS" : ".*-L/usr/local/ssl/lib"` 5486 5487 if test "$MATCH" = "0"; then 5137 5488 LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib" 5138 5489 fi 5139 5490 fi 5140 5491 5141 _wi_ssl_paths_added=yes 5492 fi 5493 5494 wi_include_extra_ssl_paths_done="yes" 5495 fi 5142 5496 5143 5497 … … 5283 5637 _ACEOF 5284 5638 5285 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&55639 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 5286 5640 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; } 5287 5641 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then … … 5346 5700 if test $ac_cv_lib_ssl_SSL_library_init = yes; then 5347 5701 5702 5703 if test -z "$LIBS"; then 5704 LIBS="-lssl" 5705 else 5706 MATCH=`expr -- "$LIBS" : ".*-lssl"` 5707 5708 if test "$MATCH" = "0"; then 5348 5709 LIBS="$LIBS -lssl" 5710 fi 5711 fi 5712 5349 5713 5350 5714 else … … 5388 5752 5389 5753 5390 5754 wi_include_ssl_library_done="yes" 5755 fi 5756 5757 5758 if test "$wi_include_coreservices_framework_done" != "yes"; then 5391 5759 5392 5760 for ac_header in CoreServices/CoreServices.h … … 5530 5898 _ACEOF 5531 5899 5532 LIBS="$LIBS -framework CoreServices -framework Carbon" 5900 5901 if test -z "$LIBS"; then 5902 LIBS="-framework CoreServices" 5903 else 5904 MATCH=`expr -- "$LIBS" : ".*-framework CoreServices"` 5905 5906 if test "$MATCH" = "0"; then 5907 LIBS="$LIBS -framework CoreServices" 5908 fi 5909 fi 5910 5911 5912 if test -z "$LIBS"; then 5913 LIBS="-framework Carbon" 5914 else 5915 MATCH=`expr -- "$LIBS" : ".*-framework Carbon"` 5916 5917 if test "$MATCH" = "0"; then 5918 LIBS="$LIBS -framework Carbon" 5919 fi 5920 fi 5921 5533 5922 5534 5923 fi … … 5537 5926 5538 5927 5539 5540 case $host in 5541 *-solaris*) 5928 wi_include_coreservices_framework_done="yes" 5929 fi 5930 5931 5932 if test "$wi_include_pthreads_done" != "yes"; then 5933 case $host in 5934 *-solaris*) 5542 5935 5543 5936 cat >>confdefs.h <<\_ACEOF … … 5545 5938 _ACEOF 5546 5939 5547 ;;5548 esac5940 ;; 5941 esac 5549 5942 5550 5943 … … 5689 6082 _ACEOF 5690 6083 5691 { echo "$as_me:$LINENO: checking for pthreads" >&56084 { echo "$as_me:$LINENO: checking for pthreads" >&5 5692 6085 echo $ECHO_N "checking for pthreads... $ECHO_C" >&6; } 5693 6086 5694 6087 5695 if test "$ _wi_pthreads_found" != yes; then6088 if test "$wi_pthreads_found" != "yes"; then 5696 6089 OLD_LIBS="$LIBS" 5697 LIBS=" $LIBS" 6090 6091 if test -z "$LIBS"; then 6092 LIBS="" 6093 else 6094 MATCH=`expr -- "$LIBS" : ".*"` 6095 6096 if test "$MATCH" = "0"; then 6097 LIBS="$LIBS " 6098 fi 6099 fi 6100 5698 6101 5699 6102 if test "$cross_compiling" = yes; then … … 5747 6150 $as_test_x conftest$ac_exeext; then 5748 6151 5749 _wi_pthreads_test=yes6152 wi_pthreads_test=yes 5750 6153 5751 6154 else … … 5754 6157 5755 6158 5756 _wi_pthreads_test=no6159 wi_pthreads_test=no 5757 6160 5758 6161 fi … … 5811 6214 (exit $ac_status); }; }; then 5812 6215 5813 _wi_pthreads_test=yes6216 wi_pthreads_test=yes 5814 6217 5815 6218 else … … 5820 6223 ( exit $ac_status ) 5821 6224 5822 _wi_pthreads_test=no6225 wi_pthreads_test=no 5823 6226 5824 6227 fi … … 5830 6233 LIBS="$OLD_LIBS" 5831 6234 5832 if test "$ _wi_pthreads_test" = yes; then5833 _wi_pthreads_found=yes5834 _wi_pthreads_libs=""6235 if test "$wi_pthreads_test" = "yes"; then 6236 wi_pthreads_found="yes" 6237 wi_pthreads_libs="" 5835 6238 fi 5836 6239 fi 5837 6240 5838 6241 5839 if test "$ _wi_pthreads_found" != yes; then6242 if test "$wi_pthreads_found" != "yes"; then 5840 6243 OLD_LIBS="$LIBS" 5841 LIBS="-pthread $LIBS" 6244 6245 if test -z "$LIBS"; then 6246 LIBS="-pthread" 6247 else 6248 MATCH=`expr -- "$LIBS" : ".*-pthread"` 6249 6250 if test "$MATCH" = "0"; then 6251 LIBS="$LIBS -pthread" 6252 fi 6253 fi 6254 5842 6255 5843 6256 if test "$cross_compiling" = yes; then … … 5891 6304 $as_test_x conftest$ac_exeext; then 5892 6305 5893 _wi_pthreads_test=yes6306 wi_pthreads_test=yes 5894 6307 5895 6308 else … … 5898 6311 5899 6312 5900 _wi_pthreads_test=no6313 wi_pthreads_test=no 5901 6314 5902 6315 fi … … 5955 6368 (exit $ac_status); }; }; then 5956 6369 5957 _wi_pthreads_test=yes6370 wi_pthreads_test=yes 5958 6371 5959 6372 else … … 5964 6377 ( exit $ac_status ) 5965 6378 5966 _wi_pthreads_test=no6379 wi_pthreads_test=no 5967 6380 5968 6381 fi … … 5974 6387 LIBS="$OLD_LIBS" 5975 6388 5976 if test "$ _wi_pthreads_test" = yes; then5977 _wi_pthreads_found=yes5978 _wi_pthreads_libs="-pthread"6389 if test "$wi_pthreads_test" = "yes"; then 6390 wi_pthreads_found="yes" 6391 wi_pthreads_libs="-pthread" 5979 6392 fi 5980 6393 fi 5981 6394 5982 6395 5983 if test "$ _wi_pthreads_found" != yes; then6396 if test "$wi_pthreads_found" != "yes"; then 5984 6397 OLD_LIBS="$LIBS" 5985 LIBS="-lpthread $LIBS" 6398 6399 if test -z "$LIBS"; then 6400 LIBS="-lpthread" 6401 else 6402 MATCH=`expr -- "$LIBS" : ".*-lpthread"` 6403 6404 if test "$MATCH" = "0"; then 6405 LIBS="$LIBS -lpthread" 6406 fi 6407 fi 6408 5986 6409 5987 6410 if test "$cross_compiling" = yes; then … … 6035 6458 $as_test_x conftest$ac_exeext; then 6036 6459 6037 _wi_pthreads_test=yes6460 wi_pthreads_test=yes 6038 6461 6039 6462 else … … 6042 6465 6043 6466 6044 _wi_pthreads_test=no6467 wi_pthreads_test=no 6045 6468 6046 6469 fi … … 6099 6522 (exit $ac_status); }; }; then 6100 6523 6101 _wi_pthreads_test=yes6524 wi_pthreads_test=yes 6102 6525 6103 6526 else … … 6108 6531 ( exit $ac_status ) 6109 6532 6110 _wi_pthreads_test=no6533 wi_pthreads_test=no 6111 6534 6112 6535 fi … … 6118 6541 LIBS="$OLD_LIBS" 6119 6542 6120 if test "$ _wi_pthreads_test" = yes; then6121 _wi_pthreads_found=yes6122 _wi_pthreads_libs="-lpthread"6543 if test "$wi_pthreads_test" = "yes"; then 6544 wi_pthreads_found="yes" 6545 wi_pthreads_libs="-lpthread" 6123 6546 fi 6124 6547 fi 6125 6548 6126 6549 6127 if test "$_wi_pthreads_found" = yes; then6128 { echo "$as_me:$LINENO: result: yes" >&56550 if test "$wi_pthreads_found" = "yes"; then 6551 { echo "$as_me:$LINENO: result: yes" >&5 6129 6552 echo "${ECHO_T}yes" >&6; } 6130 LIBS="$_wi_pthreads_libs $LIBS" 6131 else 6132 { echo "$as_me:$LINENO: result: no" >&5 6553 6554 if test -z "$LIBS"; then 6555 LIBS="$wi_pthreads_libs" 6556 else 6557 MATCH=`expr -- "$LIBS" : ".*$wi_pthreads_libs"` 6558 6559 if test "$MATCH" = "0"; then 6560 LIBS="$LIBS $wi_pthreads_libs" 6561 fi 6562 fi 6563 6564 else 6565 { echo "$as_me:$LINENO: result: no" >&5 6133 6566 echo "${ECHO_T}no" >&6; } 6567 { { echo "$as_me:$LINENO: error: could not locate pthreads" >&5 6568 echo "$as_me: error: could not locate pthreads" >&2;} 6569 { (exit 1); exit 1; }; } 6570 fi 6571 6572 else 6573 6134 6574 { { echo "$as_me:$LINENO: error: could not locate pthreads" >&5 6135 6575 echo "$as_me: error: could not locate pthreads" >&2;} 6136 6576 { (exit 1); exit 1; }; } 6137 fi6138 6139 else6140 6141 { { echo "$as_me:$LINENO: error: could not locate pthreads" >&56142 echo "$as_me: error: could not locate pthreads" >&2;}6143 { (exit 1); exit 1; }; }6144 6577 6145 6578 fi … … 6147 6580 done 6148 6581 6582 6583 wi_include_pthreads_done="yes" 6584 fi 6149 6585 6150 6586 wired/trunk/configure.in
r5290 r5583 48 48 AC_MSG_ERROR([no such user "$with_user", please set another --with-user]) 49 49 else 50 wd_user=`perl -e "print getlogin()"` 50 wd_user=`perl -e "print ((getpwuid($<))[[0]])"` 51 52 if test -z "$wd_user"; then 53 AC_MSG_ERROR([unable to retrieve user name, please set one with --with-user]) 54 fi 51 55 fi 52 56 fi … … 71 75 &
