4 PATH
="/bin:/usr/bin:/usr/local/bin"
8 if [ "none$CC" = "none" ]; then
9 echo "No compiler specified, assuming g++";
21 5.
*.
*) ARCH
=solaris
;;
39 echo "Using the $CC compiler"
41 echo "$CC -S configure-dir/testbool.C -o /dev/null 2> /dev/null"
42 $CC -S configure-dir
/testbool.C
-o /dev
/null
2> /dev
/null
44 echo "Good, your $CC compiler has the type bool.";
47 echo "Seems like you don't have the type bool.";
48 echo "I'll define it as int.";
52 $CC -S configure-dir
/testexplicit.C
-o /dev
/null
2> /dev
/null
54 echo "Good, your $CC compiler has the keyword explicit.";
57 echo "Seems like you don't have the keyword explicit.";
58 echo "I'll define it as the empty string.";
62 $CC configure-dir
/testgetrusage.C
-o configure-dir
/testgetrusage
2> /dev
/null
64 echo "Good, getrusage() is working"
66 rm configure-dir
/testgetrusage
68 echo "Seems like getrusage is not working"
69 echo "I'll comment out all usage of getrusage()"
73 $CC configure-dir
/testtimes.C
-o configure-dir
/testtimes
2> /dev
/null
75 echo "Good, times() is working"
77 rm configure-dir
/testtimes
79 echo "Seems like times is not working"
80 echo "I'll comment out all usage of times()"
84 >include
/AD
/config
/config.h
85 echo "#ifndef prop_library_configuration_h" >>include
/AD
/config
/config.h
86 echo "#define prop_library_configuration_h" >>include
/AD
/config
/config.h
87 if [ $bool = yes ]; then
88 echo "#define PROP_BOOL_IS_DEFINED" >>include
/AD
/config
/config.h
;
90 if [ $explicit = yes ]; then
91 echo "#define PROP_EXPLICIT_IS_DEFINED" >>include
/AD
/config
/config.h
;
93 if [ $getrusage = yes ]; then
94 echo "#define PROP_HAS_GETRUSAGE" >>include
/AD
/config
/config.h
;
96 if [ $times = yes ]; then
97 echo "#define PROP_HAS_TIMES" >>include
/AD
/config
/config.h
;
99 echo "#endif" >>include
/AD
/config
/config.h
100 echo "include/AD/config/config.h created"
102 echo "Using the $ARCH configuration"