Changeset 89db90e for configure


Ignore:
Timestamp:
2015-03-12T09:10:16Z (10 years ago)
Author:
dequis <dx@…>
Children:
fc650a8
Parents:
0e4c3dd (diff), 3bb333c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'develop' into feat/hip-cat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r0e4c3dd r89db90e  
    3737purple=0
    3838
     39doc=1
    3940debug=0
    4041strip=1
     
    5960# Cygwin and Darwin don't support PIC/PIE
    6061case "$arch" in
    61     CYGWIN* )
    62         pie=0;;
    63     Darwin )
    64         pie=0;;
     62        CYGWIN* )
     63                pie=0;;
     64        Darwin )
     65                pie=0;;
    6566esac
    6667
     
    9495                (automatically disables other protocol modules)
    9596
     97--doc=0/1       Disable/enable help.txt generation      $doc
    9698--debug=0/1     Disable/enable debugging                $debug
    9799--strip=0/1     Disable/enable binary stripping         $strip
     
    448450        ret=1
    449451        echo "$RESOLV_NS_TESTCODE" | $CC -o $TMPFILE -x c - $LIBRESOLV >/dev/null 2>/dev/null
    450         if [ "$?" = "0" ]; then
    451                 ret=0
    452         fi
     452        if [ "$?" = "0" ]; then
     453                ret=0
     454        fi
    453455
    454456        rm -f $TMPFILE
     
    463465                if [ -f $i/libresolv.a ]; then
    464466                        echo "$RESOLV_NS_TESTCODE" | $CC -o $TMPFILE -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null
    465                         if [ "$?" = "0" ]; then
    466                                 ret=0
    467                         fi
     467                        if [ "$?" = "0" ]; then
     468                                ret=0
     469                        fi
    468470                fi
    469471        done
     
    475477detect_nameser_has_ns_types()
    476478{
    477     TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX)
    478     ret=1
    479     # since we aren't actually linking with ns_* routines
    480     # we can just compile the test code
    481     echo "$RESOLV_NS_TYPES_TESTCODE" | $CC -o $TMPFILE -x c -  >/dev/null 2>/dev/null
    482     if [ "$?" = "0" ]; then
    483         ret=0
    484     fi
    485 
    486     rm -f $TMPFILE
    487     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
    488490}
    489491
     
    546548if detect_resolv_dynamic || detect_resolv_static; then
    547549        echo '#define HAVE_RESOLV_A' >> config.h
    548     if detect_resolv_ns_dynamic || detect_resolv_ns_static; then
    549             echo '#define HAVE_RESOLV_A_WITH_NS' >> config.h
    550     fi
    551 else
    552     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'
    553555fi
    554556
     
    647649fi
    648650
    649 if [ ! -e doc/user-guide/help.txt ] && ! type xmlto > /dev/null 2> /dev/null; then
    650         echo
    651         echo 'WARNING: Building from an unreleased source tree without prebuilt helpfile.'
    652         echo 'Install xmlto if you want online help to work.'
     651if [ "$doc" = "1" ]; then
     652        if [ ! -e doc/user-guide/help.txt ] && \
     653             ! type xmlto > /dev/null 2> /dev/null || \
     654             ! type xsltproc > /dev/null 2> /dev/null
     655        then
     656                echo
     657                echo 'WARNING: Building from an unreleased source tree without prebuilt helpfile.'
     658                echo 'Install xmlto and xsltproc if you want online help to work.'
     659        else
     660                echo "DOC=1" >> Makefile.settings
     661        fi
     662
     663        if [ "$skype" = "1" -o "$skype" = "plugin" ]; then
     664                # skype also needs asciidoc
     665                if ! type a2x > /dev/null 2> /dev/null; then
     666                        echo
     667                        echo 'WARNING: The skyped man page requires asciidoc. It will not be generated.'
     668                else
     669                        echo "ASCIIDOC=1" >> Makefile.settings
     670                fi
     671        fi
    653672fi
    654673
Note: See TracChangeset for help on using the changeset viewer.