Changeset 5584

Show
Ignore:
Timestamp:
06/09/08 12:36:10 (6 months ago)
Author:
morris
Message:

Sync with wired

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trackerd/trunk/configure

    r5291 r5584  
    18151815 
    18161816 
     1817 
     1818 
     1819 
    18171820# Get host 
    18181821ac_aux_dir= 
     
    30273030   { (exit 1); exit 1; }; } 
    30283031        else 
    3029                 wt_user=`perl -e "print getlogin();"` 
     3032                wt_user=`perl -e "print ((getpwuid($<))[0])"` 
     3033 
     3034                if test -z "$wt_user"; then 
     3035                        { { echo "$as_me:$LINENO: error: unable to retrieve user name, please set one with --with-user" >&5 
     3036echo "$as_me: error: unable to retrieve user name, please set one with --with-user" >&2;} 
     3037   { (exit 1); exit 1; }; } 
     3038                fi 
    30303039        fi 
    30313040fi 
     
    30643073   { (exit 1); exit 1; }; } 
    30653074        else 
    3066                 wt_group=`perl -e "print ((getgrgid(((getpwnam(getlogin()))[3])))[0]);"` 
     3075                wt_group=`perl -e "print ((getgrgid(((getpwuid($<))[3])))[0]);"` 
     3076 
     3077                if test -z "$wt_group"; then 
     3078                        { { echo "$as_me:$LINENO: error: unable to retrieve group name, please set one with --with-group" >&5 
     3079echo "$as_me: error: unable to retrieve group name, please set one with --with-group" >&2;} 
     3080   { (exit 1); exit 1; }; } 
     3081                fi 
    30673082        fi 
    30683083fi 
     
    30923107 
    30933108        OLD_CFLAGS="$CFLAGS" 
    3094         CFLAGS="$CFLAGS -W" 
     3109 
     3110        if test -z "$CFLAGS"; then 
     3111                CFLAGS="-W" 
     3112        else 
     3113                MATCH=`expr -- "$CFLAGS" : ".*-W"` 
     3114 
     3115                if test "$MATCH" = "0"; then 
     3116                        CFLAGS="$CFLAGS -W" 
     3117                fi 
     3118        fi 
     3119 
    30953120 
    30963121        cat >conftest.$ac_ext <<_ACEOF 
     
    31193144       } && test -s conftest.$ac_objext; then 
    31203145 
    3121                 WARNFLAGS="$WARNFLAGS -W" 
     3146 
     3147        if test -z "$WARNFLAGS"; then 
     3148                WARNFLAGS="-W" 
     3149        else 
     3150                MATCH=`expr -- "$WARNFLAGS" : ".*-W"` 
     3151 
     3152                if test "$MATCH" = "0"; then 
     3153                        WARNFLAGS="$WARNFLAGS -W" 
     3154                fi 
     3155        fi 
     3156 
    31223157 
    31233158else 
     
    31343169 
    31353170        OLD_CFLAGS="$CFLAGS" 
    3136         CFLAGS="$CFLAGS -Wall" 
     3171 
     3172        if test -z "$CFLAGS"; then 
     3173                CFLAGS="-Wall" 
     3174        else 
     3175                MATCH=`expr -- "$CFLAGS" : ".*-Wall"` 
     3176 
     3177                if test "$MATCH" = "0"; then 
     3178                        CFLAGS="$CFLAGS -Wall" 
     3179                fi 
     3180        fi 
     3181 
    31373182 
    31383183        cat >conftest.$ac_ext <<_ACEOF 
     
    31613206       } && test -s conftest.$ac_objext; then 
    31623207 
    3163                 WARNFLAGS="$WARNFLAGS -Wall" 
     3208 
     3209        if test -z "$WARNFLAGS"; then 
     3210                WARNFLAGS="-Wall" 
     3211        else 
     3212                MATCH=`expr -- "$WARNFLAGS" : ".*-Wall"` 
     3213 
     3214                if test "$MATCH" = "0"; then 
     3215                        WARNFLAGS="$WARNFLAGS -Wall" 
     3216                fi 
     3217        fi 
     3218 
    31643219 
    31653220else 
     
    31763231 
    31773232        OLD_CFLAGS="$CFLAGS" 
    3178         CFLAGS="$CFLAGS -Wno-unknown-pragmas" 
     3233 
     3234        if test -z "$CFLAGS"; then 
     3235                CFLAGS="-Wno-unknown-pragmas" 
     3236        else 
     3237                MATCH=`expr -- "$CFLAGS" : ".*-Wno-unknown-pragmas"` 
     3238 
     3239                if test "$MATCH" = "0"; then 
     3240                        CFLAGS="$CFLAGS -Wno-unknown-pragmas" 
     3241                fi 
     3242        fi 
     3243 
    31793244 
    31803245        cat >conftest.$ac_ext <<_ACEOF 
     
    32033268       } && test -s conftest.$ac_objext; then 
    32043269 
    3205                 WARNFLAGS="$WARNFLAGS -Wno-unknown-pragmas" 
     3270 
     3271        if test -z "$WARNFLAGS"; then 
     3272                WARNFLAGS="-Wno-unknown-pragmas" 
     3273        else 
     3274                MATCH=`expr -- "$WARNFLAGS" : ".*-Wno-unknown-pragmas"` 
     3275 
     3276                if test "$MATCH" = "0"; then 
     3277                        WARNFLAGS="$WARNFLAGS -Wno-unknown-pragmas" 
     3278                fi 
     3279        fi 
     3280 
    32063281 
    32073282else 
     
    32183293 
    32193294        OLD_CFLAGS="$CFLAGS" 
    3220         CFLAGS="$CFLAGS -Wno-unused-parameter" 
     3295 
     3296        if test -z "$CFLAGS"; then 
     3297                CFLAGS="-Wno-unused-parameter" 
     3298        else 
     3299                MATCH=`expr -- "$CFLAGS" : ".*-Wno-unused-parameter"` 
     3300 
     3301                if test "$MATCH" = "0"; then 
     3302                        CFLAGS="$CFLAGS -Wno-unused-parameter" 
     3303                fi 
     3304        fi 
     3305 
    32213306 
    32223307        cat >conftest.$ac_ext <<_ACEOF 
     
    32453330       } && test -s conftest.$ac_objext; then 
    32463331 
    3247                 WARNFLAGS="$WARNFLAGS -Wno-unused-parameter" 
     3332 
     3333        if test -z "$WARNFLAGS"; then 
     3334                WARNFLAGS="-Wno-unused-parameter" 
     3335        else 
     3336                MATCH=`expr -- "$WARNFLAGS" : ".*-Wno-unused-parameter"` 
     3337 
     3338                if test "$MATCH" = "0"; then 
     3339                        WARNFLAGS="$WARNFLAGS -Wno-unused-parameter" 
     3340                fi 
     3341        fi 
     3342 
    32483343 
    32493344else 
     
    32603355 
    32613356        OLD_CFLAGS="$CFLAGS" 
    3262         CFLAGS="$CFLAGS -Wsign-compare" 
     3357 
     3358        if test -z "$CFLAGS"; then 
     3359                CFLAGS="-Wsign-compare" 
     3360        else 
     3361                MATCH=`expr -- "$CFLAGS" : ".*-Wsign-compare"` 
     3362 
     3363                if test "$MATCH" = "0"; then 
     3364                        CFLAGS="$CFLAGS -Wsign-compare" 
     3365                fi 
     3366        fi 
     3367 
    32633368 
    32643369        cat >conftest.$ac_ext <<_ACEOF 
     
    32873392       } && test -s conftest.$ac_objext; then 
    32883393 
    3289                 WARNFLAGS="$WARNFLAGS -Wsign-compare" 
     3394 
     3395        if test -z "$WARNFLAGS"; then 
     3396                WARNFLAGS="-Wsign-compare" 
     3397        else 
     3398                MATCH=`expr -- "$WARNFLAGS" : ".*-Wsign-compare"` 
     3399 
     3400                if test "$MATCH" = "0"; then 
     3401                        WARNFLAGS="$WARNFLAGS -Wsign-compare" 
     3402                fi 
     3403        fi 
     3404 
    32903405 
    32913406else 
     
    33023417 
    33033418        OLD_CFLAGS="$CFLAGS" 
    3304         CFLAGS="$CFLAGS -Wstrict-prototypes" 
     3419 
     3420        if test -z "$CFLAGS"; then 
     3421                CFLAGS="-Wstrict-prototypes" 
     3422        else 
     3423                MATCH=`expr -- "$CFLAGS" : ".*-Wstrict-prototypes"` 
     3424 
     3425                if test "$MATCH" = "0"; then 
     3426                        CFLAGS="$CFLAGS -Wstrict-prototypes" 
     3427                fi 
     3428        fi 
     3429 
    33053430 
    33063431        cat >conftest.$ac_ext <<_ACEOF 
     
    33293454       } && test -s conftest.$ac_objext; then 
    33303455 
    3331                 WARNFLAGS="$WARNFLAGS -Wstrict-prototypes" 
     3456 
     3457        if test -z "$WARNFLAGS"; then 
     3458                WARNFLAGS="-Wstrict-prototypes" 
     3459        else 
     3460                MATCH=`expr -- "$WARNFLAGS" : ".*-Wstrict-prototypes"` 
     3461 
     3462                if test "$MATCH" = "0"; then 
     3463                        WARNFLAGS="$WARNFLAGS -Wstrict-prototypes" 
     3464                fi 
     3465        fi 
     3466 
    33323467 
    33333468else 
     
    33443479 
    33453480        OLD_CFLAGS="$CFLAGS" 
    3346         CFLAGS="$CFLAGS -Wmissing-prototypes" 
     3481 
     3482        if test -z "$CFLAGS"; then 
     3483                CFLAGS="-Wmissing-prototypes" 
     3484        else 
     3485                MATCH=`expr -- "$CFLAGS" : ".*-Wmissing-prototypes"` 
     3486 
     3487                if test "$MATCH" = "0"; then 
     3488                        CFLAGS="$CFLAGS -Wmissing-prototypes" 
     3489                fi 
     3490        fi 
     3491 
    33473492 
    33483493        cat >conftest.$ac_ext <<_ACEOF 
     
    33713516       } && test -s conftest.$ac_objext; then 
    33723517 
    3373                 WARNFLAGS="$WARNFLAGS -Wmissing-prototypes" 
     3518 
     3519        if test -z "$WARNFLAGS"; then 
     3520                WARNFLAGS="-Wmissing-prototypes" 
     3521        else 
     3522                MATCH=`expr -- "$WARNFLAGS" : ".*-Wmissing-prototypes"` 
     3523 
     3524                if test "$MATCH" = "0"; then 
     3525                        WARNFLAGS="$WARNFLAGS -Wmissing-prototypes" 
     3526                fi 
     3527        fi 
     3528 
    33743529 
    33753530else 
     
    33863541 
    33873542        OLD_CFLAGS="$CFLAGS" 
    3388         CFLAGS="$CFLAGS -Wmissing-declarations" 
     3543 
     3544        if test -z "$CFLAGS"; then 
     3545                CFLAGS="-Wmissing-declarations" 
     3546        else 
     3547                MATCH=`expr -- "$CFLAGS" : ".*-Wmissing-declarations"` 
     3548 
     3549                if test "$MATCH" = "0"; then 
     3550                        CFLAGS="$CFLAGS -Wmissing-declarations" 
     3551                fi 
     3552        fi 
     3553 
    33893554 
    33903555        cat >conftest.$ac_ext <<_ACEOF 
     
    34133578       } && test -s conftest.$ac_objext; then 
    34143579 
    3415                 WARNFLAGS="$WARNFLAGS -Wmissing-declarations" 
     3580 
     3581        if test -z "$WARNFLAGS"; then 
     3582                WARNFLAGS="-Wmissing-declarations" 
     3583        else 
     3584                MATCH=`expr -- "$WARNFLAGS" : ".*-Wmissing-declarations"` 
     3585 
     3586                if test "$MATCH" = "0"; then 
     3587                        WARNFLAGS="$WARNFLAGS -Wmissing-declarations" 
     3588                fi 
     3589        fi 
     3590 
    34163591 
    34173592else 
     
    34283603 
    34293604        OLD_CFLAGS="$CFLAGS" 
    3430         CFLAGS="$CFLAGS -Wredundant-decls" 
     3605 
     3606        if test -z "$CFLAGS"; then 
     3607                CFLAGS="-Wredundant-decls" 
     3608        else 
     3609                MATCH=`expr -- "$CFLAGS" : ".*-Wredundant-decls"` 
     3610 
     3611                if test "$MATCH" = "0"; then 
     3612                        CFLAGS="$CFLAGS -Wredundant-decls" 
     3613                fi 
     3614        fi 
     3615 
    34313616 
    34323617        cat >conftest.$ac_ext <<_ACEOF 
     
    34553640       } && test -s conftest.$ac_objext; then 
    34563641 
    3457                 WARNFLAGS="$WARNFLAGS -Wredundant-decls" 
     3642 
     3643        if test -z "$WARNFLAGS"; then 
     3644                WARNFLAGS="-Wredundant-decls" 
     3645        else 
     3646                MATCH=`expr -- "$WARNFLAGS" : ".*-Wredundant-decls"` 
     3647 
     3648                if test "$MATCH" = "0"; then 
     3649                        WARNFLAGS="$WARNFLAGS -Wredundant-decls" 
     3650                fi 
     3651        fi 
     3652 
    34583653 
    34593654else 
     
    35713766 
    35723767 
    3573         if test -d /usr/local/include; then 
    3574                 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 
     3768        if test "$wi_include_extra_include_paths_done" != "yes"; then 
     3769                if test -d /usr/local/include; then 
     3770 
     3771        if test -z "$CPPFLAGS"; then 
     3772                CPPFLAGS="-I/usr/local/include" 
     3773        else 
     3774                MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/local/include"` 
     3775 
     3776                if test "$MATCH" = "0"; then 
     3777                        CPPFLAGS="$CPPFLAGS -I/usr/local/include" 
     3778                fi 
    35753779        fi 
    35763780 
    3577  
    3578         if test -d /usr/local/lib; then 
    3579                 LDFLAGS="$LDFLAGS -L/usr/local/lib" 
     3781                fi 
     3782 
     3783                wi_include_extra_include_paths_done="yes" 
     3784        fi 
     3785 
     3786 
     3787        if test "$wi_include_extra_library_paths_done" != "yes"; then 
     3788                if test -d /usr/local/lib; then 
     3789 
     3790        if test -z "$LDFLAGS"; then 
     3791                LDFLAGS="-L/usr/local/lib" 
     3792        else 
     3793                MATCH=`expr -- "$LDFLAGS" : ".*-L/usr/local/lib"` 
     3794 
     3795                if test "$MATCH" = "0"; then 
     3796                        LDFLAGS="$LDFLAGS -L/usr/local/lib" 
     3797                fi 
     3798        fi 
     3799 
     3800                fi 
     3801 
     3802                wi_include_extra_library_paths_done="yes" 
    35803803        fi 
    35813804 
     
    35973820 
    35983821 
    3599         { echo "$as_me:$LINENO: checking for pow" >&5 
     3822        if test "$wi_include_math_library_done" != "yes"; then 
     3823                { echo "$as_me:$LINENO: checking for pow" >&5 
    36003824echo $ECHO_N "checking for pow... $ECHO_C" >&6; } 
    36013825if test "${ac_cv_func_pow+set}" = set; then 
     
    36823906else 
    36833907 
    3684                 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 
     3908                       { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 
    36853909echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; } 
    36863910if test "${ac_cv_lib_m_sqrt+set}" = set; then 
     
    37453969if test $ac_cv_lib_m_sqrt = yes; then 
    37463970 
     3971 
     3972        if test -z "$LIBS"; then 
     3973                LIBS="-lm" 
     3974        else 
     3975                MATCH=`expr -- "$LIBS" : ".*-lm"` 
     3976 
     3977                if test "$MATCH" = "0"; then 
    37473978                        LIBS="$LIBS -lm" 
    3748  
    3749 fi 
    3750  
    3751  
    3752 fi 
    3753  
    3754  
    3755  
    3756         { echo "$as_me:$LINENO: checking for setsockopt" >&5 
     3979                fi 
     3980        fi 
     3981 
     3982 
     3983fi 
     3984 
     3985 
     3986fi 
     3987 
     3988 
     3989                wi_include_math_library_done="yes" 
     3990        fi 
     3991 
     3992 
     3993        if test "$wi_include_socket_library_done" != "yes"; then 
     3994                { echo "$as_me:$LINENO: checking for setsockopt" >&5 
    37573995echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 
    37583996if test "${ac_cv_func_setsockopt+set}" = set; then 
     
    38394077else 
    38404078 
    3841                 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 
     4079                       { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 
    38424080echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 
    38434081if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 
     
    39024140if test $ac_cv_lib_socket_setsockopt = yes; then 
    39034141 
     4142 
     4143        if test -z "$LIBS"; then 
     4144                LIBS="-lsocket" 
     4145        else 
     4146                MATCH=`expr -- "$LIBS" : ".*-lsocket"` 
     4147 
     4148                if test "$MATCH" = "0"; then 
    39044149                        LIBS="$LIBS -lsocket" 
    3905  
    3906 fi 
    3907  
    3908  
    3909 fi 
    3910  
    3911  
    3912  
    3913         { echo "$as_me:$LINENO: checking for gethostent" >&5 
     4150                fi 
     4151        fi 
     4152 
     4153 
     4154fi 
     4155 
     4156 
     4157fi 
     4158 
     4159 
     4160                wi_include_socket_library_done="yes" 
     4161        fi 
     4162 
     4163 
     4164        if test "$wi_include_nsl_library_done" != "yes"; then 
     4165                { echo "$as_me:$LINENO: checking for gethostent" >&5 
    39144166echo $ECHO_N "checking for gethostent... $ECHO_C" >&6; } 
    39154167if test "${ac_cv_func_gethostent+set}" = set; then 
     
    39964248else 
    39974249 
    3998                 { echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5 
     4250                       { echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5 
    39994251echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6; } 
    40004252if test "${ac_cv_lib_nsl_gethostent+set}" = set; then 
     
    40594311if test $ac_cv_lib_nsl_gethostent = yes; then 
    40604312 
     4313 
     4314        if test -z "$LIBS"; then 
     4315                LIBS="-lnsl" 
     4316        else 
     4317                MATCH=`expr -- "$LIBS" : ".*-lnsl"` 
     4318 
     4319                if test "$MATCH" = "0"; then 
    40614320                        LIBS="$LIBS -lnsl" 
    4062  
    4063 fi 
    4064  
    4065  
    4066 fi 
    4067  
    4068  
    4069  
    4070         { echo "$as_me:$LINENO: checking for inet_aton" >&5 
     4321                fi 
     4322        fi 
     4323 
     4324 
     4325fi 
     4326 
     4327 
     4328fi 
     4329 
     4330 
     4331                wi_include_nsl_library_done="yes" 
     4332        fi 
     4333 
     4334 
     4335        if test "$wi_include_resolv_library_done" != "yes"; then 
     4336                { echo "$as_me:$LINENO: checking for inet_aton" >&5 
    40714337echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } 
    40724338if test "${ac_cv_func_inet_aton+set}" = set; then 
     
    41534419else 
    41544420 
    4155                 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 
     4421                       { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 
    41564422echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; } 
    41574423if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then 
     
    42164482if test $ac_cv_lib_resolv_inet_aton = yes; then 
    42174483 
     4484 
     4485        if test -z "$LIBS"; then 
     4486                LIBS="-lresolv" 
     4487        else 
     4488                MATCH=`expr -- "$LIBS" : ".*-lresolv"` 
     4489 
     4490                if test "$MATCH" = "0"; then 
    42184491                        LIBS="$LIBS -lresolv" 
    4219  
    4220 fi 
    4221  
    4222  
    4223 fi 
    4224  
     4492                fi 
     4493        fi 
     4494 
     4495 
     4496fi 
     4497 
     4498 
     4499fi 
     4500 
     4501 
     4502                wi_include_resolv_library_done="yes" 
     4503        fi 
    42254504 
    42264505ac_ext=c 
     
    48615140 
    48625141 
    4863  
    4864         if test "$_wi_ssl_paths_added" != yes ; then 
     5142        if test "$wi_include_crypto_library_done" != "yes"; then 
     5143 
     5144        if test "$wi_include_extra_ssl_paths_done" != "yes"; then 
    48655145                if test -d /usr/local/ssl/include; then 
     5146 
     5147        if test -z "$CPPFLAGS"; then 
     5148                CPPFLAGS="-I/usr/local/ssl/include" 
     5149        else 
     5150                MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/local/ssl/include"` 
     5151 
     5152                if test "$MATCH" = "0"; then 
    48665153                        CPPFLAGS="$CPPFLAGS -I/usr/local/ssl/include" 
    48675154                fi 
     5155        fi 
     5156 
     5157                fi 
    48685158 
    48695159                if test -d /usr/kerberos/include; then 
     5160 
     5161        if test -z "$CPPFLAGS"; then 
     5162                CPPFLAGS="-I/usr/kerberos/include" 
     5163        else 
     5164                MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/kerberos/include"` 
     5165 
     5166                if test "$MATCH" = "0"; then 
    48705167                        CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" 
    48715168                fi 
     5169        fi 
     5170 
     5171                fi 
    48725172 
    48735173                if test -d /usr/local/ssl/lib; then 
     5174 
     5175        if test -z "$LDFLAGS"; then 
     5176                LDFLAGS="-L/usr/local/ssl/lib" 
     5177        else 
     5178                MATCH=`expr -- "$LDFLAGS" : ".*-L/usr/local/ssl/lib"` 
     5179 
     5180                if test "$MATCH" = "0"; then 
    48745181                        LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib" 
    48755182                fi 
    48765183        fi 
    48775184 
    4878         _wi_ssl_paths_added=yes 
     5185                fi 
     5186 
     5187                wi_include_extra_ssl_paths_done="yes" 
     5188        fi 
    48795189 
    48805190 
     
    50205330_ACEOF 
    50215331 
    5022                 { echo "$as_me:$LINENO: checking for MD5_Init in -lcrypto" >&5 
     5332                       { echo "$as_me:$LINENO: checking for MD5_Init in -lcrypto" >&5 
    50235333echo $ECHO_N "checking for MD5_Init in -lcrypto... $ECHO_C" >&6; } 
    50245334if test "${ac_cv_lib_crypto_MD5_Init+set}" = set; then 
     
    50835393if test $ac_cv_lib_crypto_MD5_Init = yes; then 
    50845394 
     5395 
     5396        if test -z "$LIBS"; then 
     5397                LIBS="-lcrypto" 
     5398        else 
     5399                MATCH=`expr -- "$LIBS" : ".*-lcrypto"` 
     5400 
     5401                if test "$MATCH" = "0"; then 
    50855402                        LIBS="$LIBS -lcrypto" 
     5403                fi 
     5404        fi 
     5405 
    50865406 
    50875407else 
     
    51255445 
    51265446 
    5127  
    5128  
    5129         if test "$_wi_ssl_paths_added" != yes ; then 
     5447                wi_include_crypto_library_done="yes" 
     5448        fi 
     5449 
     5450 
     5451        if test "$wi_include_ssl_library_done" != "yes"; then 
     5452 
     5453        if test "$wi_include_extra_ssl_paths_done" != "yes"; then 
    51305454                if test -d /usr/local/ssl/include; then 
     5455 
     5456        if test -z "$CPPFLAGS"; then 
     5457                CPPFLAGS="-I/usr/local/ssl/include" 
     5458        else 
     5459                MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/local/ssl/include"` 
     5460 
     5461                if test "$MATCH" = "0"; then 
    51315462                        CPPFLAGS="$CPPFLAGS -I/usr/local/ssl/include" 
    51325463                fi 
     5464        fi 
     5465 
     5466                fi 
    51335467 
    51345468                if test -d /usr/kerberos/include; then 
     5469 
     5470        if test -z "$CPPFLAGS"; then 
     5471                CPPFLAGS="-I/usr/kerberos/include" 
     5472        else 
     5473                MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/kerberos/include"` 
     5474 
     5475                if test "$MATCH" = "0"; then 
    51355476                        CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" 
    51365477                fi 
     5478        fi 
     5479 
     5480                fi 
    51375481 
    51385482                if test -d /usr/local/ssl/lib; then 
     5483 
     5484        if test -z "$LDFLAGS"; then 
     5485                LDFLAGS="-L/usr/local/ssl/lib" 
     5486        else 
     5487                MATCH=`expr -- "$LDFLAGS" : ".*-L/usr/local/ssl/lib"` 
     5488 
     5489                if test "$MATCH" = "0"; then 
    51395490                        LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib" 
    51405491                fi 
    51415492        fi 
    51425493 
    5143         _wi_ssl_paths_added=yes 
     5494                fi 
     5495 
     5496                wi_include_extra_ssl_paths_done="yes" 
     5497        fi 
    51445498 
    51455499 
     
    52855639_ACEOF 
    52865640 
    5287                 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 
     5641                       { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 
    52885642echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; } 
    52895643if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then 
     
    53485702if test $ac_cv_lib_ssl_SSL_library_init = yes; then 
    53495703 
     5704 
     5705        if test -z "$LIBS"; then 
     5706                LIBS="-lssl" 
     5707        else 
     5708                MATCH=`expr -- "$LIBS" : ".*-lssl"` 
     5709 
     5710                if test "$MATCH" = "0"; then 
    53505711                        LIBS="$LIBS -lssl" 
     5712                fi 
     5713        fi 
     5714 
    53515715 
    53525716else 
     
    53905754 
    53915755 
    5392  
     5756                wi_include_ssl_library_done="yes" 
     5757        fi 
     5758 
     5759 
     5760        if test "$wi_include_coreservices_framework_done" != "yes"; then 
    53935761 
    53945762for ac_header in CoreServices/CoreServices.h 
     
    55325900_ACEOF 
    55335901 
    5534                 LIBS="$LIBS -framework CoreServices -framework Carbon" 
     5902 
     5903        if test -z "$LIBS"; then 
     5904                LIBS="-framework CoreServices" 
     5905        else 
     5906                MATCH=`expr -- "$LIBS" : ".*-framework CoreServices"` 
     5907 
     5908                if test "$MATCH" = "0"; then 
     5909                        LIBS="$LIBS -framework CoreServices" 
     5910                fi 
     5911        fi 
     5912 
     5913 
     5914        if test -z "$LIBS"; then 
     5915                LIBS="-framework Carbon" 
     5916        else 
     5917                MATCH=`expr -- "$LIBS" : ".*-framework Carbon"` 
     5918 
     5919                if test "$MATCH" = "0"; then 
     5920                        LIBS="$LIBS -framework Carbon" 
     5921                fi 
     5922        fi 
     5923 
    55355924 
    55365925fi 
     
    55395928 
    55405929 
    5541  
    5542         case $host in 
    5543                 *-solaris*) 
     5930                wi_include_coreservices_framework_done="yes" 
     5931        fi 
     5932 
     5933 
     5934        if test "$wi_include_pthreads_done" != "yes"; then 
     5935                case $host in 
     5936                        *-solaris*) 
    55445937 
    55455938cat >>confdefs.h <<\_ACEOF 
     
    55475940_ACEOF 
    55485941 
    5549                         ;; 
    5550         esac 
     5942                               ;; 
     5943               esac 
    55515944 
    55525945 
     
    56916084_ACEOF 
    56926085 
    5693                 { echo "$as_me:$LINENO: checking for pthreads" >&5 
     6086                       { echo "$as_me:$LINENO: checking for pthreads" >&5 
    56946087echo $ECHO_N "checking for pthreads... $ECHO_C" >&6; } 
    56956088 
    56966089 
    5697         if test "$_wi_pthreads_found" != yes ; then 
     6090        if test "$wi_pthreads_found" != "yes"; then 
    56986091                OLD_LIBS="$LIBS" 
    5699                 LIBS=" $LIBS" 
     6092 
     6093        if test -z "$LIBS"; then 
     6094                LIBS="" 
     6095        else 
     6096                MATCH=`expr -- "$LIBS" : ".*"` 
     6097 
     6098                if test "$MATCH" = "0"; then 
     6099                        LIBS="$LIBS " 
     6100                fi 
     6101        fi 
     6102 
    57006103 
    57016104                if test "$cross_compiling" = yes; then 
     
    57496152       $as_test_x conftest$ac_exeext; then 
    57506153 
    5751                                 _wi_pthreads_test=yes 
     6154                                wi_pthreads_test=yes 
    57526155 
    57536156else 
     
    57566159 
    57576160 
    5758                                 _wi_pthreads_test=no 
     6161                                wi_pthreads_test=no 
    57596162 
    57606163fi 
     
    58136216  (exit $ac_status); }; }; then 
    58146217 
    5815                         _wi_pthreads_test=yes 
     6218                        wi_pthreads_test=yes 
    58166219 
    58176220else 
     
    58226225( exit $ac_status ) 
    58236226 
    5824                         _wi_pthreads_test=no 
     6227                        wi_pthreads_test=no 
    58256228 
    58266229fi 
     
    58326235                LIBS="$OLD_LIBS" 
    58336236 
    5834                 if test "$_wi_pthreads_test" = yes ; then 
    5835                         _wi_pthreads_found=yes 
    5836                         _wi_pthreads_libs="" 
     6237                if test "$wi_pthreads_test" = "yes"; then 
     6238                        wi_pthreads_found="yes" 
     6239                        wi_pthreads_libs="" 
    58376240                fi 
    58386241        fi 
    58396242 
    58406243 
    5841         if test "$_wi_pthreads_found" != yes ; then 
     6244        if test "$wi_pthreads_found" != "yes"; then 
    58426245                OLD_LIBS="$LIBS" 
    5843                 LIBS="-pthread $LIBS" 
     6246 
     6247        if test -z "$LIBS"; then 
     6248                LIBS="-pthread" 
     6249        else 
     6250                MATCH=`expr -- "$LIBS" : ".*-pthread"` 
     6251 
     6252                if test "$MATCH" = "0"; then 
     6253                        LIBS="$LIBS -pthread" 
     6254                fi 
     6255        fi 
     6256 
    58446257 
    58456258                if test "$cross_compiling" = yes; then 
     
    58936306       $as_test_x conftest$ac_exeext; then 
    58946307 
    5895                                 _wi_pthreads_test=yes 
     6308                                wi_pthreads_test=yes 
    58966309 
    58976310else 
     
    59006313 
    59016314 
    5902                                 _wi_pthreads_test=no 
     6315                                wi_pthreads_test=no 
    59036316 
    59046317fi 
     
    59576370  (exit $ac_status); }; }; then 
    59586371 
    5959                         _wi_pthreads_test=yes 
     6372                        wi_pthreads_test=yes 
    59606373 
    59616374else 
     
    59666379( exit $ac_status ) 
    59676380 
    5968                         _wi_pthreads_test=no 
     6381                        wi_pthreads_test=no 
    59696382 
    59706383fi 
     
    59766389                LIBS="$OLD_LIBS" 
    59776390 
    5978                 if test "$_wi_pthreads_test" = yes ; then 
    5979                         _wi_pthreads_found=yes 
    5980                         _wi_pthreads_libs="-pthread" 
     6391                if test "$wi_pthreads_test" = "yes"; then 
     6392                        wi_pthreads_found="yes" 
     6393                        wi_pthreads_libs="-pthread" 
    59816394                fi 
    59826395        fi 
    59836396 
    59846397 
    5985         if test "$_wi_pthreads_found" != yes ; then 
     6398        if test "$wi_pthreads_found" != "yes"; then 
    59866399                OLD_LIBS="$LIBS" 
    5987                 LIBS="-lpthread $LIBS" 
     6400 
     6401        if test -z "$LIBS"; then 
     6402                LIBS="-lpthread" 
     6403        else 
     6404                MATCH=`expr -- "$LIBS" : ".*-lpthread"` 
     6405 
     6406                if test "$MATCH" = "0"; then 
     6407                        LIBS="$LIBS -lpthread" 
     6408                fi 
     6409        fi 
     6410 
    59886411 
    59896412                if test "$cross_compiling" = yes; then 
     
    60376460       $as_test_x conftest$ac_exeext; then 
    60386461 
    6039                                 _wi_pthreads_test=yes 
     6462                                wi_pthreads_test=yes 
    60406463 
    60416464else 
     
    60446467 
    60456468 
    6046                                 _wi_pthreads_test=no 
     6469                                wi_pthreads_test=no 
    60476470 
    60486471fi 
     
    61016524  (exit $ac_status); }; }; then 
    61026525 
    6103                         _wi_pthreads_test=yes 
     6526                        wi_pthreads_test=yes 
    61046527 
    61056528else 
     
    61106533( exit $ac_status ) 
    61116534 
    6112                         _wi_pthreads_test=no 
     6535                        wi_pthreads_test=no 
    61136536 
    61146537fi 
     
    61206543                LIBS="$OLD_LIBS" 
    61216544 
    6122                 if test "$_wi_pthreads_test" = yes ; then 
    6123                         _wi_pthreads_found=yes 
    6124                         _wi_pthreads_libs="-lpthread" 
     6545                if test "$wi_pthreads_test" = "yes"; then 
     6546                        wi_pthreads_found="yes" 
     6547                        wi_pthreads_libs="-lpthread" 
    61256548                fi 
    61266549        fi 
    61276550 
    61286551 
    6129                 if test "$_wi_pthreads_found" = yes ; then 
    6130                         { echo "$as_me:$LINENO: result: yes" >&5 
     6552                       if test "$wi_pthreads_found" = "yes"; then 
     6553                               { echo "$as_me:$LINENO: result: yes" >&5 
    61316554echo "${ECHO_T}yes" >&6; } 
    6132                         LIBS="$_wi_pthreads_libs $LIBS" 
    6133                 else 
    6134                         { echo "$as_me:$LINENO: result: no" >&5 
     6555 
     6556        if test -z "$LIBS"; then 
     6557                LIBS="$wi_pthreads_libs" 
     6558        else 
     6559                MATCH=`expr -- "$LIBS" : ".*$wi_pthreads_libs"` 
     6560 
     6561                if test "$MATCH" = "0"; then 
     6562                        LIBS="$LIBS $wi_pthreads_libs" 
     6563                fi 
     6564        fi 
     6565 
     6566                        else 
     6567                                { echo "$as_me:$LINENO: result: no" >&5 
    61356568echo "${ECHO_T}no" >&6; } 
     6569                                { { echo "$as_me:$LINENO: error: could not locate pthreads" >&5 
     6570echo "$as_me: error: could not locate pthreads" >&2;} 
     6571   { (exit 1); exit 1; }; } 
     6572                        fi 
     6573 
     6574else 
     6575 
    61366576                        { { echo "$as_me:$LINENO: error: could not locate pthreads" >&5 
    61376577echo "$as_me: error: could not locate pthreads" >&2;} 
    61386578   { (exit 1); exit 1; }; } 
    6139                 fi 
    6140  
    6141 else 
    6142  
    6143                 { { echo "$as_me:$LINENO: error: could not locate pthreads" >&5 
    6144 echo "$as_me: error: could not locate pthreads" >&2;} 
    6145    { (exit 1); exit 1; }; } 
    61466579 
    61476580fi 
     
    61496582done 
    61506583 
     6584 
     6585                wi_include_pthreads_done="yes" 
     6586        fi 
    61516587 
    61526588 
  • trackerd/trunk/configure.in

    r5291 r5584  
    4848                AC_MSG_ERROR([no such user "$with_user", please set another --with-user]) 
    4949        else 
    50                 wt_user=`perl -e "print getlogin();"` 
     50                wt_user=`perl -e "print ((getpwuid($<))[[0]])"` 
     51                 
     52                if test -z "$wt_user"; then 
     53                        AC_MSG_ERROR([unable to retrieve user name, please set one with --with-user]) 
     54                fi 
    5155        fi 
    5256fi 
     
    7175