diff -ru fish-1.23.1.orig/configure.ac fish-1.23.1/configure.ac
old
|
new
|
|
90 | 90 | fi |
91 | 91 | |
92 | 92 | |
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 |
130 | 93 | |
131 | 94 | |
132 | 95 | # |
… |
… |
|
521 | 484 | |
522 | 485 | # Check for libiconv_open if we can't find iconv_open. Silly OS X does |
523 | 486 | # 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])] )] ) |
525 | 487 | |
526 | 488 | LIBS_FISH=$LIBS |
527 | 489 | LIBS=$LIBS_COMMON |
… |
… |
|
547 | 509 | if test x$local_gettext != xno; then |
548 | 510 | AC_SEARCH_LIBS( gettext, intl,,) |
549 | 511 | fi |
550 | | AC_SEARCH_LIBS( iconv_open, iconv, , [AC_MSG_ERROR([Could not find an iconv implementation, needed to build fish])] ) |
551 | 512 | LIBS_FISH_PAGER=$LIBS |
552 | 513 | LIBS=$LIBS_COMMON |
553 | 514 | |
… |
… |
|
560 | 521 | if test x$local_gettext != xno; then |
561 | 522 | AC_SEARCH_LIBS( gettext, intl,,) |
562 | 523 | fi |
563 | | AC_SEARCH_LIBS( iconv_open, iconv, , [AC_MSG_ERROR([Could not find an iconv implementation, needed to build fish])] ) |
564 | 524 | LIBS_FISHD=$LIBS |
565 | 525 | LIBS=$LIBS_COMMON |
566 | 526 | |