gnu-configure.sh (931B)
1# 2# This helper is for templates using GNU configure scripts. 3# 4do_configure() { 5 : ${configure_script:=./configure} 6 7 export lt_cv_sys_lib_dlsearch_path_spec="/usr/lib64 /usr/lib32 /usr/lib /lib /usr/local/lib" 8 ${configure_script} ${configure_args} 9} 10 11do_build() { 12 : ${make_cmd:=make} 13 14 export lt_cv_sys_lib_dlsearch_path_spec="/usr/lib64 /usr/lib32 /usr/lib /lib /usr/local/lib" 15 ${make_cmd} ${makejobs} ${make_build_args} ${make_build_target} 16} 17 18do_check() { 19 if [ -z "$make_cmd" ] && [ -z "$make_check_target" ]; then 20 if make -q check 2>/dev/null; then 21 : 22 else 23 if [ $? -eq 2 ]; then 24 msg_warn 'No target to "make check".\n' 25 return 0 26 fi 27 fi 28 fi 29 30 : ${make_cmd:=make} 31 : ${make_check_target:=check} 32 33 ${make_cmd} ${make_check_args} ${make_check_target} 34} 35 36do_install() { 37 : ${make_cmd:=make} 38 : ${make_install_target:=install} 39 40 ${make_cmd} DESTDIR=${DESTDIR} ${make_install_args} ${make_install_target} 41}