Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 583662 Details for
Bug 690232
app-shells/hstr-2.0 : /.../ld: hstr_curses.o: undefined reference to symbol keypad
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use pkg-config for ncurses
pkg-config.patch (text/plain), 2.56 KB, created by
Dan Goodliffe
on 2019-07-19 18:05:51 UTC
(
hide
)
Description:
Use pkg-config for ncurses
Filename:
MIME Type:
Creator:
Dan Goodliffe
Created:
2019-07-19 18:05:51 UTC
Size:
2.56 KB
patch
obsolete
>diff --git a/configure.ac b/configure.ac >index 1676ec8..73c8be5 100644 >--- a/configure.ac >+++ b/configure.ac >@@ -47,39 +47,33 @@ then > fi > > # PKG_CHECK_MODULES macro is NOT used to avoid confusing syntax errors in case that pkg-config is NOT installed >-AC_CHECK_LIB(ncursesw, killwchar, [], >-[ >- AC_CHECK_LIB(ncurses, killwchar, [], >- [ >- AC_SUBST([NCURSESW_CFLAGS]) >- AC_SUBST([NCURSESW_LIBS]) >- if pkg-config --exists ncursesw >- then >- AC_MSG_NOTICE([Module ncursesw found]) >- NCURSESW_CFLAGS=`pkg-config --cflags ncursesw` >- NCURSESW_LIBS=`pkg-config --libs ncursesw` >- else >- if pkg-config --exists ncurses >- then >- AC_MSG_NOTICE([Module ncurses found]) >- NCURSESW_CFLAGS=`pkg-config --cflags ncursesw` >- NCURSESW_LIBS=`pkg-config --libs ncurses` >- else >- AS_CASE([$host_os], >- [darwin*], >- [ >- AC_CHECK_LIB(ncurses, killwchar, [], [AC_MSG_ERROR([Could not find ncurses library])]) >- AC_CHECK_HEADER(curses.h) >- ], >- [ >- AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])]) >- AC_CHECK_HEADER(ncursesw/curses.h) >- ] >- ) >- fi >- fi >- ]) # FAIL of ncurses >-]) # FAIL of ncursesw >+AC_SUBST([NCURSESW_CFLAGS]) >+AC_SUBST([NCURSESW_LIBS]) >+if pkg-config --exists ncursesw >+then >+ AC_MSG_NOTICE([Module ncursesw found]) >+ NCURSESW_CFLAGS=`pkg-config --cflags ncursesw` >+ NCURSESW_LIBS=`pkg-config --libs ncursesw` >+else >+ if pkg-config --exists ncurses >+ then >+ AC_MSG_NOTICE([Module ncurses found]) >+ NCURSESW_CFLAGS=`pkg-config --cflags ncursesw` >+ NCURSESW_LIBS=`pkg-config --libs ncurses` >+ else >+ AS_CASE([$host_os], >+ [darwin*], >+ [ >+ AC_CHECK_LIB(ncurses, killwchar, [], [AC_MSG_ERROR([Could not find ncurses library])]) >+ AC_CHECK_HEADER(curses.h) >+ ], >+ [ >+ AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])]) >+ AC_CHECK_HEADER(ncursesw/curses.h) >+ ] >+ ) >+ fi >+fi > > > # Checks for libraries. >diff --git a/src/Makefile.am b/src/Makefile.am >index 7640d21..17a82b7 100644 >--- a/src/Makefile.am >+++ b/src/Makefile.am >@@ -37,4 +37,4 @@ hstr_SOURCES = \ > install-exec-hook: > ln $(DESTDIR)$(bindir)/hstr$(EXEEXT) $(DESTDIR)$(bindir)/hh$(EXEEXT) > >-hstr_LDADD = $(NCURSES_LIBS) >+hstr_LDADD = $(NCURSESW_LIBS)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 690232
:
583642
|
583644
|
583646
|
583648
|
583650
|
583652
|
583654
| 583662