Changeset 5658

Show
Ignore:
Timestamp:
08/07/08 10:06:03 (2 months ago)
Author:
morris
Message:

Regenerate

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wired/branches/p7/configure

    r5628 r5658  
    31033103        if test -z "$CFLAGS"; then 
    31043104                CFLAGS="-W" 
    3105         elif test `expr "$CFLAGS" : ".*-W"` = 0; then 
    3106                 CFLAGS="$CFLAGS -W" 
     3105        else 
     3106                MATCH=`expr -- "$CFLAGS" : ".*-W"` 
     3107 
     3108                if test "$MATCH" = "0"; then 
     3109                        CFLAGS="$CFLAGS -W" 
     3110                fi 
    31073111        fi 
    31083112 
     
    31103114        cat >conftest.$ac_ext <<_ACEOF 
    31113115 
    3112                 int main(void) { 
     3116                int main() { 
    31133117                        return 0; 
    31143118                } 
     
    31363140        if test -z "$WARNFLAGS"; then 
    31373141                WARNFLAGS="-W" 
    3138         elif test `expr "$WARNFLAGS" : ".*-W"` = 0; then 
    3139                 WARNFLAGS="$WARNFLAGS -W" 
     3142        else 
     3143                MATCH=`expr -- "$WARNFLAGS" : ".*-W"` 
     3144 
     3145                if test "$MATCH" = "0"; then 
     3146                        WARNFLAGS="$WARNFLAGS -W" 
     3147                fi 
    31403148        fi 
    31413149 
     
    31573165        if test -z "$CFLAGS"; then 
    31583166                CFLAGS="-Wall" 
    3159         elif test `expr "$CFLAGS" : ".*-Wall"` = 0; then 
    3160                 CFLAGS="$CFLAGS -Wall" 
     3167        else 
     3168                MATCH=`expr -- "$CFLAGS" : ".*-Wall"` 
     3169 
     3170                if test "$MATCH" = "0"; then 
     3171                        CFLAGS="$CFLAGS -Wall" 
     3172                fi 
    31613173        fi 
    31623174 
     
    31643176        cat >conftest.$ac_ext <<_ACEOF 
    31653177 
    3166                 int main(void) { 
     3178                int main() { 
    31673179                        return 0; 
    31683180                } 
     
    31903202        if test -z "$WARNFLAGS"; then 
    31913203                WARNFLAGS="-Wall" 
    3192         elif test `expr "$WARNFLAGS" : ".*-Wall"` = 0; then 
    3193                 WARNFLAGS="$WARNFLAGS -Wall" 
     3204        else 
     3205                MATCH=`expr -- "$WARNFLAGS" : ".*-Wall"` 
     3206 
     3207                if test "$MATCH" = "0"; then 
     3208                        WARNFLAGS="$WARNFLAGS -Wall" 
     3209                fi 
    31943210        fi 
    31953211 
     
    32113227        if test -z "$CFLAGS"; then 
    32123228                CFLAGS="-Wno-unknown-pragmas" 
    3213         elif test `expr "$CFLAGS" : ".*-Wno-unknown-pragmas"` = 0; then 
    3214                 CFLAGS="$CFLAGS -Wno-unknown-pragmas" 
     3229        else 
     3230                MATCH=`expr -- "$CFLAGS" : ".*-Wno-unknown-pragmas"` 
     3231 
     3232                if test "$MATCH" = "0"; then 
     3233                        CFLAGS="$CFLAGS -Wno-unknown-pragmas" 
     3234                fi 
    32153235        fi 
    32163236 
     
    32183238        cat >conftest.$ac_ext <<_ACEOF 
    32193239 
    3220                 int main(void) { 
     3240                int main() { 
    32213241                        return 0; 
    32223242                } 
     
    32443264        if test -z "$WARNFLAGS"; then 
    32453265                WARNFLAGS="-Wno-unknown-pragmas" 
    3246         elif test `expr "$WARNFLAGS" : ".*-Wno-unknown-pragmas"` = 0; then 
    3247                 WARNFLAGS="$WARNFLAGS -Wno-unknown-pragmas" 
     3266        else 
     3267                MATCH=`expr -- "$WARNFLAGS" : ".*-Wno-unknown-pragmas"` 
     3268 
     3269                if test "$MATCH" = "0"; then 
     3270                        WARNFLAGS="$WARNFLAGS -Wno-unknown-pragmas" 
     3271                fi 
    32483272        fi 
    32493273 
     
    32653289        if test -z "$CFLAGS"; then 
    32663290                CFLAGS="-Wno-unused-parameter" 
    3267         elif test `expr "$CFLAGS" : ".*-Wno-unused-parameter"` = 0; then 
    3268                 CFLAGS="$CFLAGS -Wno-unused-parameter" 
     3291        else 
     3292                MATCH=`expr -- "$CFLAGS" : ".*-Wno-unused-parameter"` 
     3293 
     3294                if test "$MATCH" = "0"; then 
     3295                        CFLAGS="$CFLAGS -Wno-unused-parameter" 
     3296                fi 
    32693297        fi 
    32703298 
     
    32723300        cat >conftest.$ac_ext <<_ACEOF 
    32733301 
    3274                 int main(void) { 
     3302                int main() { 
    32753303                        return 0; 
    32763304                } 
     
    32983326        if test -z "$WARNFLAGS"; then 
    32993327                WARNFLAGS="-Wno-unused-parameter" 
    3300         elif test `expr "$WARNFLAGS" : ".*-Wno-unused-parameter"` = 0; then 
    3301                 WARNFLAGS="$WARNFLAGS -Wno-unused-parameter" 
     3328        else 
     3329                MATCH=`expr -- "$WARNFLAGS" : ".*-Wno-unused-parameter"` 
     3330 
     3331                if test "$MATCH" = "0"; then 
     3332                        WARNFLAGS="$WARNFLAGS -Wno-unused-parameter" 
     3333                fi 
    33023334        fi 
    33033335 
     
    33193351        if test -z "$CFLAGS"; then 
    33203352                CFLAGS="-Wsign-compare" 
    3321         elif test `expr "$CFLAGS" : ".*-Wsign-compare"` = 0; then 
    3322                 CFLAGS="$CFLAGS -Wsign-compare" 
     3353        else 
     3354                MATCH=`expr -- "$CFLAGS" : ".*-Wsign-compare"` 
     3355 
     3356                if test "$MATCH" = "0"; then 
     3357                        CFLAGS="$CFLAGS -Wsign-compare" 
     3358                fi 
    33233359        fi 
    33243360 
     
    33263362        cat >conftest.$ac_ext <<_ACEOF 
    33273363 
    3328                 int main(void) { 
     3364                int main() { 
    33293365                        return 0; 
    33303366                } 
     
    33523388        if test -z "$WARNFLAGS"; then 
    33533389                WARNFLAGS="-Wsign-compare" 
    3354         elif test `expr "$WARNFLAGS" : ".*-Wsign-compare"` = 0; then 
    3355                 WARNFLAGS="$WARNFLAGS -Wsign-compare" 
     3390        else 
     3391                MATCH=`expr -- "$WARNFLAGS" : ".*-Wsign-compare"` 
     3392 
     3393                if test "$MATCH" = "0"; then 
     3394                        WARNFLAGS="$WARNFLAGS -Wsign-compare" 
     3395                fi 
    33563396        fi 
    33573397 
     
    33733413        if test -z "$CFLAGS"; then 
    33743414                CFLAGS="-Wstrict-prototypes" 
    3375         elif test `expr "$CFLAGS" : ".*-Wstrict-prototypes"` = 0; then 
    3376                 CFLAGS="$CFLAGS -Wstrict-prototypes" 
     3415        else 
     3416                MATCH=`expr -- "$CFLAGS" : ".*-Wstrict-prototypes"` 
     3417 
     3418                if test "$MATCH" = "0"; then 
     3419                        CFLAGS="$CFLAGS -Wstrict-prototypes" 
     3420                fi 
    33773421        fi 
    33783422 
     
    33803424        cat >conftest.$ac_ext <<_ACEOF 
    33813425 
    3382                 int main(void) { 
     3426                int main() { 
    33833427                        return 0; 
    33843428                } 
     
    34063450        if test -z "$WARNFLAGS"; then 
    34073451                WARNFLAGS="-Wstrict-prototypes" 
    3408         elif test `expr "$WARNFLAGS" : ".*-Wstrict-prototypes"` = 0; then 
    3409                 WARNFLAGS="$WARNFLAGS -Wstrict-prototypes" 
     3452        else 
     3453                MATCH=`expr -- "$WARNFLAGS" : ".*-Wstrict-prototypes"` 
     3454 
     3455                if test "$MATCH" = "0"; then 
     3456                        WARNFLAGS="$WARNFLAGS -Wstrict-prototypes" 
     3457                fi 
    34103458        fi 
    34113459 
     
    34273475        if test -z "$CFLAGS"; then 
    34283476                CFLAGS="-Wmissing-prototypes" 
    3429         elif test `expr "$CFLAGS" : ".*-Wmissing-prototypes"` = 0; then 
    3430                 CFLAGS="$CFLAGS -Wmissing-prototypes" 
     3477        else 
     3478                MATCH=`expr -- "$CFLAGS" : ".*-Wmissing-prototypes"` 
     3479 
     3480                if test "$MATCH" = "0"; then 
     3481                        CFLAGS="$CFLAGS -Wmissing-prototypes" 
     3482                fi 
    34313483        fi 
    34323484 
     
    34343486        cat >conftest.$ac_ext <<_ACEOF 
    34353487 
    3436                 int main(void) { 
     3488                int main() { 
    34373489                        return 0; 
    34383490                } 
     
    34603512        if test -z "$WARNFLAGS"; then 
    34613513                WARNFLAGS="-Wmissing-prototypes" 
    3462         elif test `expr "$WARNFLAGS" : ".*-Wmissing-prototypes"` = 0; then 
    3463                 WARNFLAGS="$WARNFLAGS -Wmissing-prototypes" 
     3514        else 
     3515                MATCH=`expr -- "$WARNFLAGS" : ".*-Wmissing-prototypes"` 
     3516 
     3517                if test "$MATCH" = "0"; then 
     3518                        WARNFLAGS="$WARNFLAGS -Wmissing-prototypes" 
     3519                fi 
    34643520        fi 
    34653521 
     
    34813537        if test -z "$CFLAGS"; then 
    34823538                CFLAGS="-Wmissing-declarations" 
    3483         elif test `expr "$CFLAGS" : ".*-Wmissing-declarations"` = 0; then 
    3484                 CFLAGS="$CFLAGS -Wmissing-declarations" 
     3539        else 
     3540                MATCH=`expr -- "$CFLAGS" : ".*-Wmissing-declarations"` 
     3541 
     3542                if test "$MATCH" = "0"; then 
     3543                        CFLAGS="$CFLAGS -Wmissing-declarations" 
     3544                fi 
    34853545        fi 
    34863546 
     
    34883548        cat >conftest.$ac_ext <<_ACEOF 
    34893549 
    3490                 int main(void) { 
     3550                int main() { 
    34913551                        return 0; 
    34923552                } 
     
    35143574        if test -z "$WARNFLAGS"; then 
    35153575                WARNFLAGS="-Wmissing-declarations" 
    3516         elif test `expr "$WARNFLAGS" : ".*-Wmissing-declarations"` = 0; then 
    3517                 WARNFLAGS="$WARNFLAGS -Wmissing-declarations" 
     3576        else 
     3577                MATCH=`expr -- "$WARNFLAGS" : ".*-Wmissing-declarations"` 
     3578 
     3579                if test "$MATCH" = "0"; then 
     3580                        WARNFLAGS="$WARNFLAGS -Wmissing-declarations" 
     3581                fi 
    35183582        fi 
    35193583 
     
    35353599        if test -z "$CFLAGS"; then 
    35363600                CFLAGS="-Wredundant-decls" 
    3537         elif test `expr "$CFLAGS" : ".*-Wredundant-decls"` = 0; then 
    3538                 CFLAGS="$CFLAGS -Wredundant-decls" 
     3601        else 
     3602                MATCH=`expr -- "$CFLAGS" : ".*-Wredundant-decls"` 
     3603 
     3604                if test "$MATCH" = "0"; then 
     3605                        CFLAGS="$CFLAGS -Wredundant-decls" 
     3606                fi 
    35393607        fi 
    35403608 
     
    35423610        cat >conftest.$ac_ext <<_ACEOF 
    35433611 
    3544                 int main(void) { 
     3612                int main() { 
    35453613                        return 0; 
    35463614                } 
     
    35683636        if test -z "$WARNFLAGS"; then 
    35693637                WARNFLAGS="-Wredundant-decls" 
    3570         elif test `expr "$WARNFLAGS" : ".*-Wredundant-decls"` = 0; then 
    3571                 WARNFLAGS="$WARNFLAGS -Wredundant-decls" 
     3638        else 
     3639                MATCH=`expr -- "$WARNFLAGS" : ".*-Wredundant-decls"` 
     3640 
     3641                if test "$MATCH" = "0"; then 
     3642                        WARNFLAGS="$WARNFLAGS -Wredundant-decls" 
     3643                fi 
    35723644        fi 
    35733645 
     
    36923764        if test -z "$CPPFLAGS"; then 
    36933765                CPPFLAGS="-I/usr/local/include" 
    3694         elif test `expr "$CPPFLAGS" : ".*-I/usr/local/include"` = 0; then 
    3695                 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 
     3766        else 
     3767                MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/local/include"` 
     3768 
     3769                if test "$MATCH" = "0"; then 
     3770                        CPPFLAGS="$CPPFLAGS -I/usr/local/include" 
     3771                fi 
    36963772        fi 
    36973773 
     
    37063782 
    37073783        if test -z "$LDFLAGS"; then 
    3708                 LDFLAGS="-I/usr/local/lib" 
    3709         elif test `expr "$LDFLAGS" : ".*-I/usr/local/lib"` = 0; then 
    3710                 LDFLAGS="$LDFLAGS -I/usr/local/lib" 
     3784                LDFLAGS="-L/usr/local/lib" 
     3785        else 
     3786                MATCH=`expr -- "$LDFLAGS" : ".*-L/usr/local/lib"` 
     3787 
     3788                if test "$MATCH" = "0"; then 
     3789                        LDFLAGS="$LDFLAGS -L/usr/local/lib" 
     3790                fi 
    37113791        fi 
    37123792 
     
    45224602        if test -z "$LIBS"; then 
    45234603                LIBS="-lm" 
    4524         elif test `expr "$LIBS" : ".*-lm"` = 0; then 
    4525                 LIBS="$LIBS -lm" 
     4604        else 
     4605                MATCH=`expr -- "$LIBS" : ".*-lm"` 
     4606 
     4607                if test "$MATCH" = "0"; then 
     4608                        LIBS="$LIBS -lm" 
     4609                fi 
    45264610        fi 
    45274611 
     
    46894773        if test -z "$LIBS"; then 
    46904774                LIBS="-lsocket" 
    4691         elif test `expr "$LIBS" : ".*-lsocket"` = 0; then 
    4692                 LIBS="$LIBS -lsocket" 
     4775        else 
     4776                MATCH=`expr -- "$LIBS" : ".*-lsocket"` 
     4777 
     4778                if test "$MATCH" = "0"; then 
     4779                        LIBS="$LIBS -lsocket" 
     4780                fi 
    46934781        fi 
    46944782 
     
    48564944        if test -z "$LIBS"; then 
    48574945                LIBS="-lnsl" 
    4858         elif test `expr "$LIBS" : ".*-lnsl"` = 0; then 
    4859                 LIBS="$LIBS -lnsl" 
     4946        else 
     4947                MATCH=`expr -- "$LIBS" : ".*-lnsl"` 
     4948 
     4949                if test "$MATCH" = "0"; then 
     4950                        LIBS="$LIBS -lnsl" 
     4951                fi 
    48604952        fi 
    48614953 
     
    50235115        if test -z "$LIBS"; then 
    50245116                LIBS="-lresolv" 
    5025         elif test `expr "$LIBS" : ".*-lresolv"` = 0; then 
    5026                 LIBS="$LIBS -lresolv" 
     5117        else 
     5118                MATCH=`expr -- "$LIBS" : ".*-lresolv"` 
     5119 
     5120                if test "$MATCH" = "0"; then 
     5121                        LIBS="$LIBS -lresolv" 
     5122                fi 
    50275123        fi 
    50285124 
     
    51835279        if test -z "$LIBS"; then 
    51845280                LIBS="-framework CoreServices" 
    5185         elif test `expr "$LIBS" : ".*-framework CoreServices"` = 0; then 
    5186                 LIBS="$LIBS -framework CoreServices" 
     5281        else 
     5282                MATCH=`expr -- "$LIBS" : ".*-framework CoreServices"` 
     5283 
     5284                if test "$MATCH" = "0"; then 
     5285                        LIBS="$LIBS -framework CoreServices" 
     5286                fi 
    51875287        fi 
    51885288 
     
    51905290        if test -z "$LIBS"; then 
    51915291                LIBS="-framework Carbon" 
    5192         elif test `expr "$LIBS" : ".*-framework Carbon"` = 0; then 
    5193                 LIBS="$LIBS -framework Carbon" 
     5292        else 
     5293                MATCH=`expr -- "$LIBS" : ".*-framework Carbon"` 
     5294 
     5295                if test "$MATCH" = "0"; then 
     5296                        LIBS="$LIBS -framework Carbon" 
     5297                fi 
    51945298        fi 
    51955299 
     
    52135317        if test -z "$CPPFLAGS"; then 
    52145318                CPPFLAGS="-I/usr/local/ssl/include" 
    5215         elif test `expr "$CPPFLAGS" : ".*-I/usr/local/ssl/include"` = 0; then 
    5216                 CPPFLAGS="$CPPFLAGS -I/usr/local/ssl/include" 
     5319        else 
     5320                MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/local/ssl/include"` 
     5321 
     5322                if test "$MATCH" = "0"; then 
     5323                        CPPFLAGS="$CPPFLAGS -I/usr/local/ssl/include" 
     5324                fi 
    52175325        fi 
    52185326 
     
    52235331        if test -z "$CPPFLAGS"; then 
    52245332                CPPFLAGS="-I/usr/kerberos/include" 
    5225         elif test `expr "$CPPFLAGS" : ".*-I/usr/kerberos/include"` = 0; then 
    5226                 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" 
     5333        else 
     5334                MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/kerberos/include"` 
     5335 
     5336                if test "$MATCH" = "0"; then 
     5337                        CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" 
     5338                fi 
    52275339        fi 
    52285340 
     
    52335345        if test -z "$LDFLAGS"; then 
    52345346                LDFLAGS="-L/usr/local/ssl/lib" 
    5235         elif test `expr "$LDFLAGS" : ".*-L/usr/local/ssl/lib"` = 0; then 
    5236                 LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib" 
     5347        else 
     5348                MATCH=`expr -- "$LDFLAGS" : ".*-L/usr/local/ssl/lib"` 
     5349 
     5350                if test "$MATCH" = "0"; then 
     5351                        LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib" 
     5352                fi 
    52375353        fi 
    52385354 
     
    54505566        if test -z "$LIBS"; then 
    54515567                LIBS="-lcrypto" 
    5452         elif test `expr "$LIBS" : ".*-lcrypto"` = 0; then 
    5453                 LIBS="$LIBS -lcrypto" 
     5568        else 
     5569                MATCH=`expr -- "$LIBS" : ".*-lcrypto"` 
     5570 
     5571                if test "$MATCH" = "0"; then 
     5572                        LIBS="$LIBS -lcrypto" 
     5573                fi 
    54545574        fi 
    54555575 
     
    55065626        if test -z "$CPPFLAGS"; then 
    55075627                CPPFLAGS="-I/usr/local/ssl/include" 
    5508         elif test `expr "$CPPFLAGS" : ".*-I/usr/local/ssl/include"` = 0; then 
    5509                 CPPFLAGS="$CPPFLAGS -I/usr/local/ssl/include" 
     5628        else 
     5629                MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/local/ssl/include"` 
     5630 
     5631                if test "$MATCH" = "0"; then 
     5632                        CPPFLAGS="$CPPFLAGS -I/usr/local/ssl/include" 
     5633                fi 
    55105634        fi 
    55115635 
     
    55165640        if test -z "$CPPFLAGS"; then 
    55175641                CPPFLAGS="-I/usr/kerberos/include" 
    5518         elif test `expr "$CPPFLAGS" : ".*-I/usr/kerberos/include"` = 0; then 
    5519                 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" 
     5642        else 
     5643                MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/kerberos/include"` 
     5644 
     5645                if test "$MATCH" = "0"; then 
     5646                        CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" 
     5647                fi 
    55205648        fi 
    55215649 
     
    55265654        if test -z "$LDFLAGS"; then 
    55275655                LDFLAGS="-L/usr/local/ssl/lib" 
    5528         elif test `expr "$LDFLAGS" : ".*-L/usr/local/ssl/lib"` = 0; then 
    5529                 LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib" 
     5656        else 
     5657                MATCH=`expr -- "$LDFLAGS" : ".*-L/usr/local/ssl/lib"` 
     5658 
     5659                if test "$MATCH" = "0"; then 
     5660                        LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib" 
     5661                fi 
    55305662        fi 
    55315663 
     
    57435875        if test -z "$LIBS"; then 
    57445876                LIBS="-lssl" 
    5745         elif test `expr "$LIBS" : ".*-lssl"` = 0; then 
    5746                 LIBS="$LIBS -lssl" 
     5877        else 
     5878                MATCH=`expr -- "$LIBS" : ".*-lssl"` 
     5879 
     5880                if test "$MATCH" = "0"; then 
     5881                        LIBS="$LIBS -lssl" 
     5882                fi 
    57475883        fi 
    57485884 
     
    57975933        if test -z "$CPPFLAGS"; then 
    57985934                CPPFLAGS="-I/usr/include/libxml2" 
    5799         elif test `expr "$CPPFLAGS" : ".*-I/usr/include/libxml2"` = 0; then 
    5800                 CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2" 
     5935        else 
     5936                MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/include/libxml2"` 
     5937 
     5938                if test "$MATCH" = "0"; then 
     5939                        CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2" 
     5940                fi 
    58015941        fi 
    58025942 
     
    58075947        if test -z "$CPPFLAGS"; then 
    58085948                CPPFLAGS="-I/usr/local/include/libxml2" 
    5809         elif test `expr "$CPPFLAGS" : ".*-I/usr/local/include/libxml2"` = 0; then 
    5810                 CPPFLAGS="$CPPFLAGS -I/usr/local/include/libxml2" 
     5949        else 
     5950                MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/local/include/libxml2"` 
     5951 
     5952                if test "$MATCH" = "0"; then 
     5953                        CPPFLAGS="$CPPFLAGS -I/usr/local/include/libxml2" 
     5954                fi 
    58115955        fi 
    58125956 
     
    60206164        if test -z "$LIBS"; then 
    60216165                LIBS="-lxml2" 
    6022         elif test `expr "$LIBS" : ".*-lxml2"` = 0; then 
    6023                 LIBS="$LIBS -lxml2" 
     6166        else 
     6167                MATCH=`expr -- "$LIBS" : ".*-lxml2"` 
     6168 
     6169                if test "$MATCH" = "0"; then 
     6170                        LIBS="$LIBS -lxml2" 
     6171                fi 
    60246172        fi 
    60256173 
     
    62776425        if test -z "$LIBS"; then 
    62786426                LIBS="-lz" 
    6279         elif test `expr "$LIBS" : ".*-lz"` = 0; then 
    6280                 LIBS="$LIBS -lz" 
     6427        else 
     6428                MATCH=`expr -- "$LIBS" : ".*-lz"` 
     6429 
     6430                if test "$MATCH" = "0"; then 
     6431                        LIBS="$LIBS -lz" 
     6432                fi 
    62816433        fi 
    62826434 
     
    64886640        if test -z "$LIBS"; then 
    64896641                LIBS="" 
    6490         elif test `expr "$LIBS" : ".*"` = 0; then 
    6491                 LIBS="$LIBS " 
     6642        else 
     6643                MATCH=`expr -- "$LIBS" : ".*"` 
     6644 
     6645                if test "$MATCH" = "0"; then 
     6646                        LIBS="$LIBS " 
     6647                fi 
    64926648        fi 
    64936649 
     
    66386794        if test -z "$LIBS"; then 
    66396795                LIBS="-pthread" 
    6640         elif test `expr "$LIBS" : ".*-pthread"` = 0; then 
    6641                 LIBS="$LIBS -pthread" 
     6796        else 
     6797                MATCH=`expr -- "$LIBS" : ".*-pthread"` 
     6798 
     6799                if test "$MATCH" = "0"; then 
     6800                        LIBS="$LIBS -pthread" 
     6801                fi 
    66426802        fi 
    66436803 
     
    67886948        if test -z "$LIBS"; then 
    67896949                LIBS="-lpthread" 
    6790         elif test `expr "$LIBS" : ".*-lpthread"` = 0; then 
    6791                 LIBS="$LIBS -lpthread" 
     6950        else 
     6951                MATCH=`expr -- "$LIBS" : ".*-lpthread"` 
     6952 
     6953                if test "$MATCH" = "0"; then 
     6954                        LIBS="$LIBS -lpthread" 
     6955                fi 
    67926956        fi 
    67936957 
     
    69397103        if test -z "$LIBS"; then 
    69407104                LIBS="$wi_pthreads_libs" 
    6941         elif test `expr "$LIBS" : ".*$wi_pthreads_libs"` = 0; then 
    6942                 LIBS="$LIBS $wi_pthreads_libs" 
     7105        else 
     7106                MATCH=`expr -- "$LIBS" : ".*$wi_pthreads_libs"` 
     7107 
     7108                if test "$MATCH" = "0"; then 
     7109                        LIBS="$LIBS $wi_pthreads_libs" 
     7110                fi 
    69437111        fi 
    69447112