######################################################################## # # # This software is part of the ast package # # Copyright (c) 1985-2010 AT&T Intellectual Property # # and is licensed under the # # Common Public License, Version 1.0 # # by AT&T Intellectual Property # # # # A copy of the License is available at # # http://www.opensource.org/licenses/cpl1.0.txt # # (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) # # # # Information and Software Systems Research # # AT&T Research # # Florham Park NJ # # # # Glenn Fowler # # David Korn # # Phong Vo # # # ######################################################################## setvar ok = '0' for i in [\ -x /lib/ld.so /lib/ld-*.so /usr/lib/ld.so /lib/rld \ -f /usr/shlib/libc.so /shlib/libc.so /usr/lib/libc.so \ -r /usr/shlib/libc.so /shlib/libc.so] { match $i { with -* setvar op = "$i"; continue } if test $op $i { setvar ok = '1' break } set x $i.[0-9]* if test $op $2 { setvar ok = '1' break } } if test "0" != $ok { setvar libpath = "lib:LD_LIBRARY_PATH" match $(package) { with sgi.* if test -d /lib32 { setvar libpath = ""lib32:LD_LIBRARYN32_PATH:sgi.mips3|sgi.*-n32,$libpath"" } if test -d /lib64 { setvar libpath = ""lib64:LD_LIBRARY64_PATH:sgi.mips[4-9]|sgi.*-64,$libpath"" } with sol*.* if test -d /lib/32 { setvar libpath = ""lib/32:LD_LIBRARY_PATH_32,$libpath"" } if test -d /lib/64 { setvar libpath = ""lib/64:LD_LIBRARY_PATH_64:sol.*64*,$libpath"" } } } elif test -x /lib/dld.sl { setvar libpath = "lib:SHLIB_PATH" } elif test -x /usr/lib/dyld { setvar libpath = "lib:DYLD_LIBRARY_PATH" } else { match $(package) { with ibm.*|mvs.* setvar libpath = "lib:LIBPATH" with * setvar libpath = '' } } match $libpath { with '' setvar libpath = 'bin' } echo "#define CONF_LIBPATH \"$libpath\""