Ticket #20100: patch-configure.ac.diff

File patch-configure.ac.diff, 2.0 KB (added by raimue (Rainer Müller), 15 years ago)
  • configure.

    diff -ru fish-1.23.1.orig/configure.ac fish-1.23.1/configure.ac
    old new  
    9090fi
    9191
    9292
    93 #
    94 # Detect directories which may contain additional headers, libraries
    95 # and commands. This needs to be done early - before Autoconf starts
    96 # to mess with CFLAGS and all the other environemnt variables.
    97 #
    98 # This mostly helps OS X users, since fink usually installs out of
    99 # tree and doesn't update CFLAGS.
    100 #
    101 
    102 for i in /usr/pkg /sw /opt /opt/local; do
    103 
    104         AC_MSG_CHECKING([for $i/include include directory])
    105         if test -d $i/include; then
    106                 AC_MSG_RESULT(yes)
    107                 CPPFLAGS="$CPPFLAGS -I$i/include/"
    108                 CFLAGS="$CFLAGS -I$i/include/"
    109         else
    110         AC_MSG_RESULT(no)
    111         fi
    112 
    113         AC_MSG_CHECKING([for $i/lib library directory])
    114         if test -d $i/lib; then
    115                 AC_MSG_RESULT(yes)
    116                 LDFLAGS="$LDFLAGS -L$i/lib/ -R$i/lib/"
    117         else
    118                 AC_MSG_RESULT(no)
    119         fi
    120 
    121         AC_MSG_CHECKING([for $i/bin command directory])
    122         if test -d $i/bin; then
    123                 AC_MSG_RESULT(yes)
    124                 optbindirs="$optbindirs $i/bin"
    125         else
    126                 AC_MSG_RESULT(no)
    127         fi
    128 
    129 done
    13093
    13194
    13295#
     
    521484
    522485# Check for libiconv_open if we can't find iconv_open. Silly OS X does
    523486# weird macro magic for the sole purpose of amusing me.
    524 AC_SEARCH_LIBS( iconv_open, iconv, , [AC_SEARCH_LIBS( libiconv_open, iconv, , [AC_MSG_ERROR([Could not find an iconv implementation, needed to build fish])] )] )
    525487
    526488LIBS_FISH=$LIBS
    527489LIBS=$LIBS_COMMON
     
    547509if test x$local_gettext != xno; then
    548510        AC_SEARCH_LIBS( gettext, intl,,)
    549511fi
    550 AC_SEARCH_LIBS( iconv_open, iconv, , [AC_MSG_ERROR([Could not find an iconv implementation, needed to build fish])] )
    551512LIBS_FISH_PAGER=$LIBS
    552513LIBS=$LIBS_COMMON
    553514
     
    560521if test x$local_gettext != xno; then
    561522        AC_SEARCH_LIBS( gettext, intl,,)
    562523fi
    563 AC_SEARCH_LIBS( iconv_open, iconv, , [AC_MSG_ERROR([Could not find an iconv implementation, needed to build fish])] )
    564524LIBS_FISHD=$LIBS
    565525LIBS=$LIBS_COMMON
    566526