llvm.org GIT mirror llvm / 8a2246f
Implement a test for the Graphviz program for Chris Lattner. The symbol GRAPHVIZ will contain the path to the program if its found (or "echo Graphviz" if not) and the #define HAVE_GRAPHVIZ will be defined if its found. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22424 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 15 years ago
3 changed file(s) with 85 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
303303 AC_PATH_PROG(RM, [rm], [rm])
304304 AC_PATH_PROG(SED, [sed], [sed])
305305 AC_PATH_PROG(TAR, [tar], [gtar])
306 AC_PATH_PROG(GRAPHVIZ, [Graphviz], [echo GraphViz])
307 if test "$GRAPHVIZ" != "echo GraphViz" ; then
308 AC_DEFINE([HAVE_GRAPHVIZ],[1],[Define if the Graphviz program is available])
309 fi
306310
307311 dnl Find the install program
308312 AC_PROG_INSTALL
474474 # include
475475 #endif"
476476
477 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 ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN TARGETS_TO_BUILD 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT 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 SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
477 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 ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN TARGETS_TO_BUILD 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT 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 SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
478478 ac_subst_files=''
479479
480480 # Initialize some variables set by options.
50535053 echo "${ECHO_T}no" >&6
50545054 fi
50555055
5056 # Extract the first word of "Graphviz", so it can be a program name with args.
5057 set dummy Graphviz; ac_word=$2
5058 echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063 case $GRAPHVIZ in
5064 [\\/]* | ?:[\\/]*)
5065 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5066 ;;
5067 *)
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5078 fi
5079 done
5080 done
5081
5082 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo GraphViz"
5083 ;;
5084 esac
5085 fi
5086 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5087
5088 if test -n "$GRAPHVIZ"; then
5089 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5090 echo "${ECHO_T}$GRAPHVIZ" >&6
5091 else
5092 echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6
5094 fi
5095
5096 if test "$GRAPHVIZ" != "echo GraphViz" ; then
5097
5098 cat >>confdefs.h <<\_ACEOF
5099 #define HAVE_GRAPHVIZ 1
5100 _ACEOF
5101
5102 fi
50565103
50575104 # Find a good install program. We prefer a C program (faster),
50585105 # so one script is as good as another. But avoid the broken or
82288275 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
82298276 lt_status=$lt_dlunknown
82308277 cat > conftest.$ac_ext <
8231 #line 8232 "configure"
8278 #line 8279 "configure"
82328279 #include "confdefs.h"
82338280
82348281 #if HAVE_DLFCN_H
1021910266 ;;
1022010267 *-*-irix6*)
1022110268 # Find out which ABI we are using.
10222 echo '#line 10223 "configure"' > conftest.$ac_ext
10269 echo '#line 10270 "configure"' > conftest.$ac_ext
1022310270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1022410271 (eval $ac_compile) 2>&5
1022510272 ac_status=$?
1070410751
1070510752
1070610753 # Provide some information about the compiler.
10707 echo "$as_me:10708:" \
10754 echo "$as_me:10755:" \
1070810755 "checking for Fortran 77 compiler version" >&5
1070910756 ac_compiler=`set X $ac_compile; echo $2`
1071010757 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1176111808 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1176211809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1176311810 -e 's:$: $lt_compiler_flag:'`
11764 (eval echo "\"\$as_me:11765: $lt_compile\"" >&5)
11811 (eval echo "\"\$as_me:11812: $lt_compile\"" >&5)
1176511812 (eval "$lt_compile" 2>conftest.err)
1176611813 ac_status=$?
1176711814 cat conftest.err >&5
11768 echo "$as_me:11769: \$? = $ac_status" >&5
11815 echo "$as_me:11816: \$? = $ac_status" >&5
1176911816 if (exit $ac_status) && test -s "$ac_outfile"; then
1177011817 # The compiler can only warn and ignore the option if not recognized
1177111818 # So say no if there are warnings
1200412051 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1200512052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1200612053 -e 's:$: $lt_compiler_flag:'`
12007 (eval echo "\"\$as_me:12008: $lt_compile\"" >&5)
12054 (eval echo "\"\$as_me:12055: $lt_compile\"" >&5)
1200812055 (eval "$lt_compile" 2>conftest.err)
1200912056 ac_status=$?
1201012057 cat conftest.err >&5
12011 echo "$as_me:12012: \$? = $ac_status" >&5
12058 echo "$as_me:12059: \$? = $ac_status" >&5
1201212059 if (exit $ac_status) && test -s "$ac_outfile"; then
1201312060 # The compiler can only warn and ignore the option if not recognized
1201412061 # So say no if there are warnings
1206412111 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1206512112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1206612113 -e 's:$: $lt_compiler_flag:'`
12067 (eval echo "\"\$as_me:12068: $lt_compile\"" >&5)
12114 (eval echo "\"\$as_me:12115: $lt_compile\"" >&5)
1206812115 (eval "$lt_compile" 2>out/conftest.err)
1206912116 ac_status=$?
1207012117 cat out/conftest.err >&5
12071 echo "$as_me:12072: \$? = $ac_status" >&5
12118 echo "$as_me:12119: \$? = $ac_status" >&5
1207212119 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1207312120 then
1207412121 # The compiler can only warn and ignore the option if not recognized
1424914296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1425014297 lt_status=$lt_dlunknown
1425114298 cat > conftest.$ac_ext <
14252 #line 14253 "configure"
14299 #line 14300 "configure"
1425314300 #include "confdefs.h"
1425414301
1425514302 #if HAVE_DLFCN_H
1434714394 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1434814395 lt_status=$lt_dlunknown
1434914396 cat > conftest.$ac_ext <
14350 #line 14351 "configure"
14397 #line 14398 "configure"
1435114398 #include "confdefs.h"
1435214399
1435314400 #if HAVE_DLFCN_H
1654016587 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1654116588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1654216589 -e 's:$: $lt_compiler_flag:'`
16543 (eval echo "\"\$as_me:16544: $lt_compile\"" >&5)
16590 (eval echo "\"\$as_me:16591: $lt_compile\"" >&5)
1654416591 (eval "$lt_compile" 2>conftest.err)
1654516592 ac_status=$?
1654616593 cat conftest.err >&5
16547 echo "$as_me:16548: \$? = $ac_status" >&5
16594 echo "$as_me:16595: \$? = $ac_status" >&5
1654816595 if (exit $ac_status) && test -s "$ac_outfile"; then
1654916596 # The compiler can only warn and ignore the option if not recognized
1655016597 # So say no if there are warnings
1660016647 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1660116648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1660216649 -e 's:$: $lt_compiler_flag:'`
16603 (eval echo "\"\$as_me:16604: $lt_compile\"" >&5)
16650 (eval echo "\"\$as_me:16651: $lt_compile\"" >&5)
1660416651 (eval "$lt_compile" 2>out/conftest.err)
1660516652 ac_status=$?
1660616653 cat out/conftest.err >&5
16607 echo "$as_me:16608: \$? = $ac_status" >&5
16654 echo "$as_me:16655: \$? = $ac_status" >&5
1660816655 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1660916656 then
1661016657 # The compiler can only warn and ignore the option if not recognized
1796118008 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1796218009 lt_status=$lt_dlunknown
1796318010 cat > conftest.$ac_ext <
17964 #line 17965 "configure"
18011 #line 18012 "configure"
1796518012 #include "confdefs.h"
1796618013
1796718014 #if HAVE_DLFCN_H
1805918106 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1806018107 lt_status=$lt_dlunknown
1806118108 cat > conftest.$ac_ext <
18062 #line 18063 "configure"
18109 #line 18110 "configure"
1806318110 #include "confdefs.h"
1806418111
1806518112 #if HAVE_DLFCN_H
1889618943 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1889718944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1889818945 -e 's:$: $lt_compiler_flag:'`
18899 (eval echo "\"\$as_me:18900: $lt_compile\"" >&5)
18946 (eval echo "\"\$as_me:18947: $lt_compile\"" >&5)
1890018947 (eval "$lt_compile" 2>conftest.err)
1890118948 ac_status=$?
1890218949 cat conftest.err >&5
18903 echo "$as_me:18904: \$? = $ac_status" >&5
18950 echo "$as_me:18951: \$? = $ac_status" >&5
1890418951 if (exit $ac_status) && test -s "$ac_outfile"; then
1890518952 # The compiler can only warn and ignore the option if not recognized
1890618953 # So say no if there are warnings
1895619003 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1895719004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1895819005 -e 's:$: $lt_compiler_flag:'`
18959 (eval echo "\"\$as_me:18960: $lt_compile\"" >&5)
19006 (eval echo "\"\$as_me:19007: $lt_compile\"" >&5)
1896019007 (eval "$lt_compile" 2>out/conftest.err)
1896119008 ac_status=$?
1896219009 cat out/conftest.err >&5
18963 echo "$as_me:18964: \$? = $ac_status" >&5
19010 echo "$as_me:19011: \$? = $ac_status" >&5
1896419011 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1896519012 then
1896619013 # The compiler can only warn and ignore the option if not recognized
2099521042 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2099621043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2099721044 -e 's:$: $lt_compiler_flag:'`
20998 (eval echo "\"\$as_me:20999: $lt_compile\"" >&5)
21045 (eval echo "\"\$as_me:21046: $lt_compile\"" >&5)
2099921046 (eval "$lt_compile" 2>conftest.err)
2100021047 ac_status=$?
2100121048 cat conftest.err >&5
21002 echo "$as_me:21003: \$? = $ac_status" >&5
21049 echo "$as_me:21050: \$? = $ac_status" >&5
2100321050 if (exit $ac_status) && test -s "$ac_outfile"; then
2100421051 # The compiler can only warn and ignore the option if not recognized
2100521052 # So say no if there are warnings
2123821285 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2123921286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2124021287 -e 's:$: $lt_compiler_flag:'`
21241 (eval echo "\"\$as_me:21242: $lt_compile\"" >&5)
21288 (eval echo "\"\$as_me:21289: $lt_compile\"" >&5)
2124221289 (eval "$lt_compile" 2>conftest.err)
2124321290 ac_status=$?
2124421291 cat conftest.err >&5
21245 echo "$as_me:21246: \$? = $ac_status" >&5
21292 echo "$as_me:21293: \$? = $ac_status" >&5
2124621293 if (exit $ac_status) && test -s "$ac_outfile"; then
2124721294 # The compiler can only warn and ignore the option if not recognized
2124821295 # So say no if there are warnings
2129821345 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2129921346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2130021347 -e 's:$: $lt_compiler_flag:'`
21301 (eval echo "\"\$as_me:21302: $lt_compile\"" >&5)
21348 (eval echo "\"\$as_me:21349: $lt_compile\"" >&5)
2130221349 (eval "$lt_compile" 2>out/conftest.err)
2130321350 ac_status=$?
2130421351 cat out/conftest.err >&5
21305 echo "$as_me:21306: \$? = $ac_status" >&5
21352 echo "$as_me:21353: \$? = $ac_status" >&5
2130621353 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2130721354 then
2130821355 # The compiler can only warn and ignore the option if not recognized
2348323530 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2348423531 lt_status=$lt_dlunknown
2348523532 cat > conftest.$ac_ext <
23486 #line 23487 "configure"
23533 #line 23534 "configure"
2348723534 #include "confdefs.h"
2348823535
2348923536 #if HAVE_DLFCN_H
2358123628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2358223629 lt_status=$lt_dlunknown
2358323630 cat > conftest.$ac_ext <
23584 #line 23585 "configure"
23631 #line 23632 "configure"
2358523632 #include "confdefs.h"
2358623633
2358723634 #if HAVE_DLFCN_H
3124231289 s,@RM@,$RM,;t t
3124331290 s,@SED@,$SED,;t t
3124431291 s,@TAR@,$TAR,;t t
31292 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
3124531293 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3124631294 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3124731295 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
119119
120120 /* Does not have hash_set in gnu namespace */
121121 #undef HAVE_GNU_EXT_HASH_SET
122
123 /* Define if the Graphviz program is available */
124 #undef HAVE_GRAPHVIZ
122125
123126 /* Define to 1 if you have the `index' function. */
124127 #undef HAVE_INDEX