Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/scripts/kconfig/lxdialog
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (14 years ago)
- Location:
- branches/2.2.9/mindi-busybox/scripts/kconfig/lxdialog
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/scripts/kconfig/lxdialog/BIG.FAT.WARNING
r1765 r2725 1 1 This is NOT the official version of dialog. This version has been 2 significantly modified from the original. It is for useby the Linux3 busybox configuration script. Please do not bother Savio Lam with 4 questions about this program.2 significantly modified from the original. It was used by the Linux 3 kernel configuration script, and subsequently adapted for busybox. 4 Please do not bother Savio Lam with questions about this program. -
branches/2.2.9/mindi-busybox/scripts/kconfig/lxdialog/Makefile
r1765 r2725 13 13 PHONY += dochecklxdialog 14 14 $(obj)/dochecklxdialog: 15 $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_ LOADLIBES)15 $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES) 16 16 17 17 hostprogs-y := lxdialog -
branches/2.2.9/mindi-busybox/scripts/kconfig/lxdialog/check-lxdialog.sh
r1765 r2725 5 5 ldflags() 6 6 { 7 $cc -print-file-name=libncursesw.so | grep -q / 8 if [ $? -eq 0 ]; then 9 echo '-lncursesw' 10 exit 11 fi 12 $cc -print-file-name=libncurses.so | grep -q / 13 if [ $? -eq 0 ]; then 14 echo '-lncurses' 15 exit 16 fi 17 $cc -print-file-name=libcurses.so | grep -q / 18 if [ $? -eq 0 ]; then 19 echo '-lcurses' 20 exit 21 fi 7 for ext in so a dylib ; do 8 for lib in ncursesw ncurses curses ; do 9 $cc -print-file-name=lib${lib}.${ext} | grep -q / 10 if [ $? -eq 0 ]; then 11 echo "-l${lib}" 12 exit 13 fi 14 done 15 done 22 16 exit 1 23 17 } … … 26 20 ccflags() 27 21 { 28 if [ -f /usr/include/ncurses/ncurses.h ]; then 22 if [ -f /usr/include/ncursesw/ncurses.h ]; then 23 echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncurses.h>"' 24 elif [ -f /usr/include/ncursesw/curses.h ]; then 25 echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncursesw/curses.h>"' 26 elif [ -f /usr/include/ncurses/ncurses.h ]; then 29 27 echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"' 30 28 elif [ -f /usr/include/ncurses/curses.h ]; then … … 43 41 # Check if we can link to ncurses 44 42 check() { 45 echo "main() {}" | $cc -xc - -o $tmp 2> /dev/null 43 $cc -xc - -o $tmp 2>/dev/null <<'EOF' 44 #include CURSES_LOC 45 main() {} 46 EOF 46 47 if [ $? != 0 ]; then 47 echo " *** Unable to find the ncurses libraries." 1>&2 48 echo " *** make menuconfig require the ncurses libraries" 1>&2 49 echo " *** " 1>&2 50 echo " *** Install ncurses (ncurses-devel) and try again" 1>&2 51 echo " *** " 1>&2 52 exit 1 48 echo " *** Unable to find the ncurses libraries or the" 1>&2 49 echo " *** required header files." 1>&2 50 echo " *** 'make menuconfig' requires the ncurses libraries." 1>&2 51 echo " *** " 1>&2 52 echo " *** Install ncurses (ncurses-devel) and try again." 1>&2 53 echo " *** " 1>&2 54 exit 1 53 55 fi 54 56 } 55 57 56 58 usage() { 57 printf "Usage: $0 [-check compiler options|- header|-library]\n"59 printf "Usage: $0 [-check compiler options|-ccflags|-ldflags compiler options]\n" 58 60 } 59 61 60 if [ $# ==0 ]; then62 if [ $# -eq 0 ]; then 61 63 usage 62 64 exit 1
Note:
See TracChangeset
for help on using the changeset viewer.