1######################################################################## 2# # 3# This software is part of the ast package # 4# Copyright (c) 1985-2013 AT&T Intellectual Property # 5# and is licensed under the # 6# Eclipse Public License, Version 1.0 # 7# by AT&T Intellectual Property # 8# # 9# A copy of the License is available at # 10# http://www.eclipse.org/org/documents/epl-v10.html # 11# (with md5 checksum b35adb5213ca9657e911e9befb180842) # 12# # 13# Information and Software Systems Research # 14# AT&T Research # 15# Florham Park NJ # 16# # 17# Glenn Fowler <glenn.s.fowler@gmail.com> # 18# David Korn <dgkorn@gmail.com> # 19# Phong Vo <phongvo@gmail.com> # 20# # 21######################################################################## 22ok=0 23for i in \ 24 -x /lib/ld.so /lib/ld-*.so /usr/lib/ld.so /lib/rld \ 25 -f /usr/shlib/libc.so /shlib/libc.so /usr/lib/libc.so \ 26 -r /usr/shlib/libc.so /shlib/libc.so \ 27 -x /lib*/*ld*.so* 28do case $i in 29 -*) op=$i; continue ;; 30 esac 31 if test $op $i 32 then ok=1 33 break 34 fi 35 set x $i.[0-9]* 36 if test $op $2 37 then ok=1 38 break 39 fi 40done 41if test "0" != "$ok" 42then libpath=lib:LD_LIBRARY_PATH 43 case `package` in 44 sgi.*) if test -d /lib32 45 then libpath="lib32:LD_LIBRARYN32_PATH:sgi.mips3|sgi.*-n32,$libpath" 46 fi 47 if test -d /lib64 48 then libpath="lib64:LD_LIBRARY64_PATH:sgi.mips[4-9]|sgi.*-64,$libpath" 49 fi 50 ;; 51 sol*.*) if test -d /lib/32 52 then libpath="lib/32:LD_LIBRARY_PATH_32,$libpath" 53 fi 54 if test -d /lib/64 55 then libpath="lib/64:LD_LIBRARY_PATH_64:sol.*64*,$libpath" 56 fi 57 ;; 58 esac 59elif test -x /lib/dld.sl 60then libpath=lib:SHLIB_PATH 61elif test -x /usr/lib/dyld 62then libpath=lib:DYLD_LIBRARY_PATH 63else case `package` in 64 ibm.*|mvs.*) 65 libpath=lib:LIBPATH 66 ;; 67 *) libpath= 68 ;; 69 esac 70fi 71case $libpath in 72'') libpath=bin ;; 73esac 74echo "#define CONF_LIBPATH \"$libpath\"" 75