llvm.org GIT mirror llvm / 1bc6864
Changes to support cross-compiling LLVM. The GenLibDeps.pl script needs to have a compile-host version of "nm", not build-host. In order to effect this we must use autoconf to determine the correct "nm" to use and propagate that through the makefiles, through llvm-config and finally to GenLibDeps.pl as an optional argument. Patch contributed by Anton Korobeynikov. Thanks! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29368 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
7 changed file(s) with 105 addition(s) and 90 deletion(s). Raw diff Collapse all Expand all
128128 # Path to the library archiver program.
129129 AR_PATH = @AR@
130130
131 # Path to the nm program
132 NM_PATH = @NM@
133
131134 # The pathnames of the programs we require to build
132135 BISON := @BISON@
133136 CMP := @CMP@
356356 AC_PROG_FLEX
357357 AC_PROG_BISON
358358
359 AC_PROG_NM
360 AC_SUBST(NM)
361
359362 dnl Check for the tools that the makefiles require
360363 AC_CHECK_GNU_MAKE
361364 AC_PROG_LN_S
0 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.59 for llvm 1.8cvs.
2 # Generated by GNU Autoconf 2.59 for llvm 1.9cvs.
33 #
44 # Report bugs to .
55 #
424424 # Identity of this package.
425425 PACKAGE_NAME='llvm'
426426 PACKAGE_TARNAME='-llvm-'
427 PACKAGE_VERSION='1.8cvs'
428 PACKAGE_STRING='llvm 1.8cvs'
427 PACKAGE_VERSION='1.9cvs'
428 PACKAGE_STRING='llvm 1.9cvs'
429429 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
430430
431431 ac_unique_file="lib/VMCore/Module.cpp"
476476 # include
477477 #endif"
478478
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LLVM_CROSS_COMPILING BUILD_CC BUILD_EXEEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD EXTRA_OPTIONS CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LLVM_CROSS_COMPILING BUILD_CC BUILD_EXEEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD EXTRA_OPTIONS CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON NM ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480480 ac_subst_files=''
481481
482482 # Initialize some variables set by options.
965965 # Omit some internal or obsolete options to make the list less imposing.
966966 # This message is too long to be a string in the A/UX 3.1 sh.
967967 cat <<_ACEOF
968 \`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
968 \`configure' configures llvm 1.9cvs to adapt to many kinds of systems.
969969
970970 Usage: $0 [OPTION]... [VAR=VALUE]...
971971
10271027
10281028 if test -n "$ac_init_help"; then
10291029 case $ac_init_help in
1030 short | recursive ) echo "Configuration of llvm 1.8cvs:";;
1030 short | recursive ) echo "Configuration of llvm 1.9cvs:";;
10311031 esac
10321032 cat <<\_ACEOF
10331033
11771177 test -n "$ac_init_help" && exit 0
11781178 if $ac_init_version; then
11791179 cat <<\_ACEOF
1180 llvm configure 1.8cvs
1180 llvm configure 1.9cvs
11811181 generated by GNU Autoconf 2.59
11821182
11831183 Copyright (C) 2003 Free Software Foundation, Inc.
11931193 This file contains any messages produced by compilers while
11941194 running configure, to aid debugging if configure makes a mistake.
11951195
1196 It was created by llvm $as_me 1.8cvs, which was
1196 It was created by llvm $as_me 1.9cvs, which was
11971197 generated by GNU Autoconf 2.59. Invocation command line was
11981198
11991199 $ $0 $@
48074807
48084808 fi
48094809
4810 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4811 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4812 if test "${lt_cv_path_NM+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 if test -n "$NM"; then
4816 # Let the user override the test.
4817 lt_cv_path_NM="$NM"
4818 else
4819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4820 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4821 IFS="$lt_save_ifs"
4822 test -z "$ac_dir" && ac_dir=.
4823 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4824 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4825 # Check to see if the nm accepts a BSD-compat flag.
4826 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4827 # nm: unknown option "B" ignored
4828 # Tru64's nm complains that /dev/null is an invalid object file
4829 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4830 */dev/null* | *'Invalid file or object type'*)
4831 lt_cv_path_NM="$tmp_nm -B"
4832 break
4833 ;;
4834 *)
4835 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4836 */dev/null*)
4837 lt_cv_path_NM="$tmp_nm -p"
4838 break
4839 ;;
4840 *)
4841 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4842 continue # so that we can try to find one that supports BSD flags
4843 ;;
4844 esac
4845 esac
4846 fi
4847 done
4848 IFS="$lt_save_ifs"
4849 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4850 fi
4851 fi
4852 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4853 echo "${ECHO_T}$lt_cv_path_NM" >&6
4854 NM="$lt_cv_path_NM"
4855
4856
4857
48104858 echo "$as_me:$LINENO: checking for GNU make" >&5
48114859 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
48124860 if test "${llvm_cv_gnu_make_command+set}" = set; then
77317779 _ACEOF
77327780
77337781
7734 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7735 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7736 if test "${lt_cv_path_NM+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739 if test -n "$NM"; then
7740 # Let the user override the test.
7741 lt_cv_path_NM="$NM"
7742 else
7743 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7744 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7745 IFS="$lt_save_ifs"
7746 test -z "$ac_dir" && ac_dir=.
7747 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7748 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7749 # Check to see if the nm accepts a BSD-compat flag.
7750 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7751 # nm: unknown option "B" ignored
7752 # Tru64's nm complains that /dev/null is an invalid object file
7753 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7754 */dev/null* | *'Invalid file or object type'*)
7755 lt_cv_path_NM="$tmp_nm -B"
7756 break
7757 ;;
7758 *)
7759 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7760 */dev/null*)
7761 lt_cv_path_NM="$tmp_nm -p"
7762 break
7763 ;;
7764 *)
7765 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7766 continue # so that we can try to find one that supports BSD flags
7767 ;;
7768 esac
7769 esac
7770 fi
7771 done
7772 IFS="$lt_save_ifs"
7773 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7774 fi
7775 fi
7776 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7777 echo "${ECHO_T}$lt_cv_path_NM" >&6
7778 NM="$lt_cv_path_NM"
7779
77807782
77817783
77827784
87488750 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
87498751 lt_status=$lt_dlunknown
87508752 cat > conftest.$ac_ext <
8751 #line 8752 "configure"
8753 #line 8754 "configure"
87528754 #include "confdefs.h"
87538755
87548756 #if HAVE_DLFCN_H
1073910741 ;;
1074010742 *-*-irix6*)
1074110743 # Find out which ABI we are using.
10742 echo '#line 10743 "configure"' > conftest.$ac_ext
10744 echo '#line 10745 "configure"' > conftest.$ac_ext
1074310745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1074410746 (eval $ac_compile) 2>&5
1074510747 ac_status=$?
1122411226
1122511227
1122611228 # Provide some information about the compiler.
11227 echo "$as_me:11228:" \
11229 echo "$as_me:11230:" \
1122811230 "checking for Fortran 77 compiler version" >&5
1122911231 ac_compiler=`set X $ac_compile; echo $2`
1123011232 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1228112283 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1228212284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1228312285 -e 's:$: $lt_compiler_flag:'`
12284 (eval echo "\"\$as_me:12285: $lt_compile\"" >&5)
12286 (eval echo "\"\$as_me:12287: $lt_compile\"" >&5)
1228512287 (eval "$lt_compile" 2>conftest.err)
1228612288 ac_status=$?
1228712289 cat conftest.err >&5
12288 echo "$as_me:12289: \$? = $ac_status" >&5
12290 echo "$as_me:12291: \$? = $ac_status" >&5
1228912291 if (exit $ac_status) && test -s "$ac_outfile"; then
1229012292 # The compiler can only warn and ignore the option if not recognized
1229112293 # So say no if there are warnings
1252412526 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1252512527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1252612528 -e 's:$: $lt_compiler_flag:'`
12527 (eval echo "\"\$as_me:12528: $lt_compile\"" >&5)
12529 (eval echo "\"\$as_me:12530: $lt_compile\"" >&5)
1252812530 (eval "$lt_compile" 2>conftest.err)
1252912531 ac_status=$?
1253012532 cat conftest.err >&5
12531 echo "$as_me:12532: \$? = $ac_status" >&5
12533 echo "$as_me:12534: \$? = $ac_status" >&5
1253212534 if (exit $ac_status) && test -s "$ac_outfile"; then
1253312535 # The compiler can only warn and ignore the option if not recognized
1253412536 # So say no if there are warnings
1258412586 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1258512587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1258612588 -e 's:$: $lt_compiler_flag:'`
12587 (eval echo "\"\$as_me:12588: $lt_compile\"" >&5)
12589 (eval echo "\"\$as_me:12590: $lt_compile\"" >&5)
1258812590 (eval "$lt_compile" 2>out/conftest.err)
1258912591 ac_status=$?
1259012592 cat out/conftest.err >&5
12591 echo "$as_me:12592: \$? = $ac_status" >&5
12593 echo "$as_me:12594: \$? = $ac_status" >&5
1259212594 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1259312595 then
1259412596 # The compiler can only warn and ignore the option if not recognized
1476914771 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1477014772 lt_status=$lt_dlunknown
1477114773 cat > conftest.$ac_ext <
14772 #line 14773 "configure"
14774 #line 14775 "configure"
1477314775 #include "confdefs.h"
1477414776
1477514777 #if HAVE_DLFCN_H
1486714869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1486814870 lt_status=$lt_dlunknown
1486914871 cat > conftest.$ac_ext <
14870 #line 14871 "configure"
14872 #line 14873 "configure"
1487114873 #include "confdefs.h"
1487214874
1487314875 #if HAVE_DLFCN_H
1706017062 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1706117063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1706217064 -e 's:$: $lt_compiler_flag:'`
17063 (eval echo "\"\$as_me:17064: $lt_compile\"" >&5)
17065 (eval echo "\"\$as_me:17066: $lt_compile\"" >&5)
1706417066 (eval "$lt_compile" 2>conftest.err)
1706517067 ac_status=$?
1706617068 cat conftest.err >&5
17067 echo "$as_me:17068: \$? = $ac_status" >&5
17069 echo "$as_me:17070: \$? = $ac_status" >&5
1706817070 if (exit $ac_status) && test -s "$ac_outfile"; then
1706917071 # The compiler can only warn and ignore the option if not recognized
1707017072 # So say no if there are warnings
1712017122 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1712117123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1712217124 -e 's:$: $lt_compiler_flag:'`
17123 (eval echo "\"\$as_me:17124: $lt_compile\"" >&5)
17125 (eval echo "\"\$as_me:17126: $lt_compile\"" >&5)
1712417126 (eval "$lt_compile" 2>out/conftest.err)
1712517127 ac_status=$?
1712617128 cat out/conftest.err >&5
17127 echo "$as_me:17128: \$? = $ac_status" >&5
17129 echo "$as_me:17130: \$? = $ac_status" >&5
1712817130 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1712917131 then
1713017132 # The compiler can only warn and ignore the option if not recognized
1848118483 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1848218484 lt_status=$lt_dlunknown
1848318485 cat > conftest.$ac_ext <
18484 #line 18485 "configure"
18486 #line 18487 "configure"
1848518487 #include "confdefs.h"
1848618488
1848718489 #if HAVE_DLFCN_H
1857918581 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1858018582 lt_status=$lt_dlunknown
1858118583 cat > conftest.$ac_ext <
18582 #line 18583 "configure"
18584 #line 18585 "configure"
1858318585 #include "confdefs.h"
1858418586
1858518587 #if HAVE_DLFCN_H
1941619418 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1941719419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1941819420 -e 's:$: $lt_compiler_flag:'`
19419 (eval echo "\"\$as_me:19420: $lt_compile\"" >&5)
19421 (eval echo "\"\$as_me:19422: $lt_compile\"" >&5)
1942019422 (eval "$lt_compile" 2>conftest.err)
1942119423 ac_status=$?
1942219424 cat conftest.err >&5
19423 echo "$as_me:19424: \$? = $ac_status" >&5
19425 echo "$as_me:19426: \$? = $ac_status" >&5
1942419426 if (exit $ac_status) && test -s "$ac_outfile"; then
1942519427 # The compiler can only warn and ignore the option if not recognized
1942619428 # So say no if there are warnings
1947619478 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1947719479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1947819480 -e 's:$: $lt_compiler_flag:'`
19479 (eval echo "\"\$as_me:19480: $lt_compile\"" >&5)
19481 (eval echo "\"\$as_me:19482: $lt_compile\"" >&5)
1948019482 (eval "$lt_compile" 2>out/conftest.err)
1948119483 ac_status=$?
1948219484 cat out/conftest.err >&5
19483 echo "$as_me:19484: \$? = $ac_status" >&5
19485 echo "$as_me:19486: \$? = $ac_status" >&5
1948419486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1948519487 then
1948619488 # The compiler can only warn and ignore the option if not recognized
2151521517 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2151621518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2151721519 -e 's:$: $lt_compiler_flag:'`
21518 (eval echo "\"\$as_me:21519: $lt_compile\"" >&5)
21520 (eval echo "\"\$as_me:21521: $lt_compile\"" >&5)
2151921521 (eval "$lt_compile" 2>conftest.err)
2152021522 ac_status=$?
2152121523 cat conftest.err >&5
21522 echo "$as_me:21523: \$? = $ac_status" >&5
21524 echo "$as_me:21525: \$? = $ac_status" >&5
2152321525 if (exit $ac_status) && test -s "$ac_outfile"; then
2152421526 # The compiler can only warn and ignore the option if not recognized
2152521527 # So say no if there are warnings
2175821760 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2175921761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2176021762 -e 's:$: $lt_compiler_flag:'`
21761 (eval echo "\"\$as_me:21762: $lt_compile\"" >&5)
21763 (eval echo "\"\$as_me:21764: $lt_compile\"" >&5)
2176221764 (eval "$lt_compile" 2>conftest.err)
2176321765 ac_status=$?
2176421766 cat conftest.err >&5
21765 echo "$as_me:21766: \$? = $ac_status" >&5
21767 echo "$as_me:21768: \$? = $ac_status" >&5
2176621768 if (exit $ac_status) && test -s "$ac_outfile"; then
2176721769 # The compiler can only warn and ignore the option if not recognized
2176821770 # So say no if there are warnings
2181821820 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2181921821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2182021822 -e 's:$: $lt_compiler_flag:'`
21821 (eval echo "\"\$as_me:21822: $lt_compile\"" >&5)
21823 (eval echo "\"\$as_me:21824: $lt_compile\"" >&5)
2182221824 (eval "$lt_compile" 2>out/conftest.err)
2182321825 ac_status=$?
2182421826 cat out/conftest.err >&5
21825 echo "$as_me:21826: \$? = $ac_status" >&5
21827 echo "$as_me:21828: \$? = $ac_status" >&5
2182621828 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2182721829 then
2182821830 # The compiler can only warn and ignore the option if not recognized
2400324005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2400424006 lt_status=$lt_dlunknown
2400524007 cat > conftest.$ac_ext <
24006 #line 24007 "configure"
24008 #line 24009 "configure"
2400724009 #include "confdefs.h"
2400824010
2400924011 #if HAVE_DLFCN_H
2410124103 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2410224104 lt_status=$lt_dlunknown
2410324105 cat > conftest.$ac_ext <
24104 #line 24105 "configure"
24106 #line 24107 "configure"
2410524107 #include "confdefs.h"
2410624108
2410724109 #if HAVE_DLFCN_H
3177231774 } >&5
3177331775 cat >&5 <<_CSEOF
3177431776
31775 This file was extended by llvm $as_me 1.8cvs, which was
31777 This file was extended by llvm $as_me 1.9cvs, which was
3177631778 generated by GNU Autoconf 2.59. Invocation command line was
3177731779
3177831780 CONFIG_FILES = $CONFIG_FILES
3183531837
3183631838 cat >>$CONFIG_STATUS <<_ACEOF
3183731839 ac_cs_version="\\
31838 llvm config.status 1.8cvs
31840 llvm config.status 1.9cvs
3183931841 configured by $0, generated by GNU Autoconf 2.59,
3184031842 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3184131843
3209832100 s,@FLEX@,$FLEX,;t t
3209932101 s,@YACC@,$YACC,;t t
3210032102 s,@BISON@,$BISON,;t t
32103 s,@NM@,$NM,;t t
3210132104 s,@ifGNUmake@,$ifGNUmake,;t t
3210232105 s,@LN_S@,$LN_S,;t t
3210332106 s,@CMP@,$CMP,;t t
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 TOOLNAME = analyze
10 #TOOLLINKOPTS = $(LINKALL)
11 #TOOLLINKOPTSB = $(NOLINKALL)
1012 USEDLIBS = LLVMAsmParser.a LLVMBCReader.a LLVMAnalysis.a LLVMipa.a \
1113 LLVMDataStructure \
1214 LLVMScalarOpts.a LLVMTransforms.a LLVMTarget.a LLVMScalarOpts.a \
3232
3333 $(LibDeps): $(GenLibDeps) $(LibDir) $(wildcard $(LibDir)/*.a $(LibDir)/*.o)
3434 $(Echo) "Regenerating LibDeps.txt"
35 $(Verb) $(GenLibDeps) -flat $(LibDir) | sort > $(LibDeps)
35 $(Verb) $(GenLibDeps) -flat $(LibDir) $(NM_PATH) | sort > $(LibDeps)
3636
3737 # Find all the cyclic dependencies between various LLVM libraries, so we
3838 # don't have to process them at runtime.
4646 #---- begin Makefile values ----
4747 my $CXXFLAGS = q{@LLVM_CXXFLAGS@};
4848 my $LDFLAGS = q{@LLVM_LDFLAGS@};
49 my $SYSTEM_LIBS = q{@LIBS@};
4950 my $LLVM_BUILDMODE = q{@LLVM_BUILDMODE@};
5051 #---- end Makefile values ----
5152
108109 } elsif ($arg eq "--cxxflags") {
109110 $has_opt = 1; print "-I$INCLUDEDIR $CXXFLAGS\n";
110111 } elsif ($arg eq "--ldflags") {
111 $has_opt = 1; print "-L$LIBDIR $LDFLAGS\n";
112 $has_opt = 1; print "-L$LIBDIR $LDFLAGS $SYSTEM_LIBS\n";
112113 } elsif ($arg eq "--libs") {
113114 $has_opt = 1; $want_libs = 1;
114115 } elsif ($arg eq "--libnames") {
55 # libraries. The output of this script should periodically replace
66 # the similar content in the UsingLibraries.html document.
77 #
8 # Syntax: GenLibDeps.pl [-flat]
8 # Syntax: GenLibDeps.pl [-flat] [path_to_nm_binary]
99 #
1010
1111 # Parse arguments...
2323
2424 # Give first option a name.
2525 my $Directory = $ARGV[0];
26 my $nmPath = $ARGV[1];
2627
2728 # Find the "dot" program
2829 my $DotPath="";
3132 die "Can't find 'dot'" if (! -x "$DotPath");
3233 }
3334
34 chomp(my $nmPath=`which nm`);
35 die "Can't find 'nm'" if (! -x "$nmPath");
35 if ($nmPath eq "") {
36 chomp($nmPath=`which nm`);
37 die "Can't find 'nm'" if (! -x "$nmPath");
38 }
3639
3740 # Open the directory and read its contents, sorting by name and differentiating
3841 # by whether its a library (.a) or an object file (.o)