Changeset a67e781 for configure


Ignore:
Timestamp:
2015-02-23T05:03:44Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
8eb2e84
Parents:
a85a8ab
Message:

configure: Indentation fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    ra85a8ab ra67e781  
    450450        ret=1
    451451        echo "$RESOLV_NS_TESTCODE" | $CC -o $TMPFILE -x c - $LIBRESOLV >/dev/null 2>/dev/null
    452         if [ "$?" = "0" ]; then
    453                 ret=0
    454         fi
     452        if [ "$?" = "0" ]; then
     453                ret=0
     454        fi
    455455
    456456        rm -f $TMPFILE
     
    465465                if [ -f $i/libresolv.a ]; then
    466466                        echo "$RESOLV_NS_TESTCODE" | $CC -o $TMPFILE -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null
    467                         if [ "$?" = "0" ]; then
    468                                 ret=0
    469                         fi
     467                        if [ "$?" = "0" ]; then
     468                                ret=0
     469                        fi
    470470                fi
    471471        done
     
    477477detect_nameser_has_ns_types()
    478478{
    479     TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX)
    480     ret=1
    481     # since we aren't actually linking with ns_* routines
    482     # we can just compile the test code
    483     echo "$RESOLV_NS_TYPES_TESTCODE" | $CC -o $TMPFILE -x c -  >/dev/null 2>/dev/null
    484     if [ "$?" = "0" ]; then
    485         ret=0
    486     fi
    487 
    488     rm -f $TMPFILE
    489     return $ret
     479        TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX)
     480        ret=1
     481        # since we aren't actually linking with ns_* routines
     482        # we can just compile the test code
     483        echo "$RESOLV_NS_TYPES_TESTCODE" | $CC -o $TMPFILE -x c -  >/dev/null 2>/dev/null
     484        if [ "$?" = "0" ]; then
     485                ret=0
     486        fi
     487
     488        rm -f $TMPFILE
     489        return $ret
    490490}
    491491
     
    548548if detect_resolv_dynamic || detect_resolv_static; then
    549549        echo '#define HAVE_RESOLV_A' >> config.h
    550     if detect_resolv_ns_dynamic || detect_resolv_ns_static; then
    551             echo '#define HAVE_RESOLV_A_WITH_NS' >> config.h
    552     fi
    553 else
    554     echo 'Insufficient resolv routines. Jabber server must be set explicitly'
     550        if detect_resolv_ns_dynamic || detect_resolv_ns_static; then
     551                echo '#define HAVE_RESOLV_A_WITH_NS' >> config.h
     552        fi
     553else
     554        echo 'Insufficient resolv routines. Jabber server must be set explicitly'
    555555fi
    556556
Note: See TracChangeset for help on using the changeset viewer.