Changeset 5997 for trunk/Ohana/configure
- Timestamp:
- Jan 15, 2006, 9:04:36 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/configure (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/configure
r5940 r5997 92 92 endif 93 93 # XXX old solaris needed termcap for readline 94 set archlib = "libsocket libnsl libtermcap"94 set archlib = "libsocket libnsl" 95 95 breaksw; 96 96 case Linux: … … 118 118 set inc = $prefix/include/$arch 119 119 set lib = $prefix/lib/$arch 120 if ($?LD_LIBRARY_PATH) then 121 set libpath = `echo $LD_LIBRARY_PATH | tr ':' ' '` 122 else 123 set libpath = "" 124 endif 120 125 121 126 # check for basic libraries 122 127 set fail = 0 123 128 foreach f ( libpng libz libjpeg libreadline $archlib ) 124 foreach g ( /usr/lib $lib )129 foreach g ( /usr/lib $lib $libpath ) 125 130 set name = "$g/$f.a" 126 131 if (-e $name) then … … 140 145 end 141 146 147 # check for termcap, curses, etc 148 set tlibflag = "" 149 foreach f ( libncurses libcurses libtermcap ) 150 foreach g ( /usr/lib $lib $libpath ) 151 set name = "$g/$f.a" 152 if (-e $name) then 153 echo "found $name" 154 set tlibflag = "-l$f" 155 goto got_curses; 156 endif 157 set name = "$g/$f.so" 158 if (-e $name) then 159 echo "found $name" 160 set tlibflag = "-l$f" 161 goto got_curses; 162 endif 163 end 164 end 165 if ("$tlibflag" == "") then 166 echo "missing a valid curses library" 167 set fail = 1 168 endif 169 170 got_curses: 171 142 172 if ($fail) then 143 173 echo "your installation is missing some important libraries" … … 149 179 set fail = 0 150 180 foreach f ( libX11.a ) 151 foreach g ( /usr/lib $lib /usr/X11R6/lib /usr/openwin/lib )181 foreach g ( /usr/lib $lib $libpath /usr/X11R6/lib /usr/openwin/lib ) 152 182 set name = "$g/$f" 153 183 if (-e $name) then … … 271 301 mv Configure.tmp Configure.in.tmp 272 302 273 cat Configure.in.tmp | sed "s|ROOTDIR|$root|" | sed "s|XINCDIR|$xinc|" | sed "s|XLIBDIR|$xlib|" | sed "s|OPTFLAGS|$optflags $pedantic|" > Configure 303 cat Configure.in.tmp | sed "s|ROOTDIR|$root|" | sed "s|XINCDIR|$xinc|" | sed "s|XLIBDIR|$xlib|" | sed "s|TLIBFLAG|$tlibflag|" | sed "s|OPTFLAGS|$optflags $pedantic|" > Configure 304 rm -f Configure.in.tmp Configure.tmp 274 305 275 306 echo ""
Note:
See TracChangeset
for help on using the changeset viewer.
