• R/O
  • SSH
  • HTTPS

qrobosdk: コミット


コミットメタ情報

リビジョン1989 (tree)
日時2012-05-18 09:32:36
作者satofumi

ログメッセージ

added recording pc_timestamp function

変更サマリ

差分

--- trunk/libs/range_sensor/c/samples/md_scan.c (revision 1988)
+++ trunk/libs/range_sensor/c/samples/md_scan.c (revision 1989)
@@ -46,7 +46,6 @@
4646 int timestamp = -1;
4747 int previous_timestamp;
4848 int remain_times;
49- //int scan_msec;
5049 urg_parameter_t parameter;
5150 int ret;
5251 int n;
@@ -76,8 +75,9 @@
7675 /* To get data continuously for more than 100 times, set capture times equal
7776 to infinity times(UrgInfinityTimes) */
7877 /* urg_setCaptureTimes(&urg, UrgInfinityTimes); */
79- assert(CaptureTimes < 100);
80- urg_setCaptureTimes(&urg, CaptureTimes);
78+ if (CaptureTimes < 100) {
79+ urg_setCaptureTimes(&urg, CaptureTimes);
80+ }
8181
8282 /* Request for data */
8383 ret = urg_requestData(&urg, URG_MD, URG_FIRST, URG_LAST);
--- trunk/libs/packages/urg_10/configure (revision 1988)
+++ trunk/libs/packages/urg_10/configure (revision 1989)
@@ -694,11 +694,11 @@
694694 AMTAR
695695 am__tar
696696 am__untar
697-CC
698-CFLAGS
697+CXX
698+CXXFLAGS
699699 LDFLAGS
700700 CPPFLAGS
701-ac_ct_CC
701+ac_ct_CXX
702702 EXEEXT
703703 OBJEXT
704704 DEPDIR
@@ -707,9 +707,18 @@
707707 AMDEP_TRUE
708708 AMDEP_FALSE
709709 AMDEPBACKSLASH
710+CXXDEPMODE
711+am__fastdepCXX_TRUE
712+am__fastdepCXX_FALSE
713+CC
714+CFLAGS
715+ac_ct_CC
710716 CCDEPMODE
711717 am__fastdepCC_TRUE
712718 am__fastdepCC_FALSE
719+CPP
720+LN_S
721+RANLIB
713722 LIBTOOL
714723 build
715724 build_cpu
@@ -727,12 +736,10 @@
727736 DUMPBIN
728737 ac_ct_DUMPBIN
729738 NM
730-LN_S
731739 OBJDUMP
732740 DLLTOOL
733741 AR
734742 ac_ct_AR
735-RANLIB
736743 MANIFEST_TOOL
737744 DSYMUTIL
738745 NMEDIT
@@ -739,7 +746,7 @@
739746 LIPO
740747 OTOOL
741748 OTOOL64
742-CPP
749+CXXCPP
743750 LIBOBJS
744751 LTLIBOBJS'
745752 ac_subst_files=''
@@ -746,12 +753,16 @@
746753 ac_precious_vars='build_alias
747754 host_alias
748755 target_alias
749-CC
750-CFLAGS
756+CXX
757+CXXFLAGS
751758 LDFLAGS
752759 LIBS
753760 CPPFLAGS
754-CPP'
761+CCC
762+CC
763+CFLAGS
764+CPP
765+CXXCPP'
755766
756767
757768 # Initialize some variables set by options.
@@ -1349,14 +1360,17 @@
13491360 (or the compiler's sysroot if not specified).
13501361
13511362 Some influential environment variables:
1352- CC C compiler command
1353- CFLAGS C compiler flags
1363+ CXX C++ compiler command
1364+ CXXFLAGS C++ compiler flags
13541365 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
13551366 nonstandard directory <lib dir>
13561367 LIBS libraries to pass to the linker, e.g. -l<library>
13571368 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
13581369 you have headers in a nonstandard directory <include dir>
1370+ CC C compiler command
1371+ CFLAGS C compiler flags
13591372 CPP C preprocessor
1373+ CXXCPP C++ preprocessor
13601374
13611375 Use these variables to override the choices made by `configure' or to help
13621376 it to find libraries and programs with nonstandard names/locations.
@@ -2277,217 +2291,27 @@
22772291
22782292
22792293 # Checks for programs.
2280-ac_ext=c
2281-ac_cpp='$CPP $CPPFLAGS'
2282-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2283-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2284-ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285-if test -n "$ac_tool_prefix"; then
2286- # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2287-set dummy ${ac_tool_prefix}gcc; ac_word=$2
2288-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2289-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2290-if test "${ac_cv_prog_CC+set}" = set; then
2291- echo $ECHO_N "(cached) $ECHO_C" >&6
2292-else
2293- if test -n "$CC"; then
2294- ac_cv_prog_CC="$CC" # Let the user override the test.
2295-else
2296-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297-for as_dir in $PATH
2298-do
2299- IFS=$as_save_IFS
2300- test -z "$as_dir" && as_dir=.
2301- for ac_exec_ext in '' $ac_executable_extensions; do
2302- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303- ac_cv_prog_CC="${ac_tool_prefix}gcc"
2304- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305- break 2
2306- fi
2307-done
2308-done
2309-IFS=$as_save_IFS
2310-
2311-fi
2312-fi
2313-CC=$ac_cv_prog_CC
2314-if test -n "$CC"; then
2315- { echo "$as_me:$LINENO: result: $CC" >&5
2316-echo "${ECHO_T}$CC" >&6; }
2317-else
2318- { echo "$as_me:$LINENO: result: no" >&5
2319-echo "${ECHO_T}no" >&6; }
2320-fi
2321-
2322-
2323-fi
2324-if test -z "$ac_cv_prog_CC"; then
2325- ac_ct_CC=$CC
2326- # Extract the first word of "gcc", so it can be a program name with args.
2327-set dummy gcc; ac_word=$2
2328-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2329-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2331- echo $ECHO_N "(cached) $ECHO_C" >&6
2332-else
2333- if test -n "$ac_ct_CC"; then
2334- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2335-else
2336-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337-for as_dir in $PATH
2338-do
2339- IFS=$as_save_IFS
2340- test -z "$as_dir" && as_dir=.
2341- for ac_exec_ext in '' $ac_executable_extensions; do
2342- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2343- ac_cv_prog_ac_ct_CC="gcc"
2344- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345- break 2
2346- fi
2347-done
2348-done
2349-IFS=$as_save_IFS
2350-
2351-fi
2352-fi
2353-ac_ct_CC=$ac_cv_prog_ac_ct_CC
2354-if test -n "$ac_ct_CC"; then
2355- { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2356-echo "${ECHO_T}$ac_ct_CC" >&6; }
2357-else
2358- { echo "$as_me:$LINENO: result: no" >&5
2359-echo "${ECHO_T}no" >&6; }
2360-fi
2361-
2362- if test "x$ac_ct_CC" = x; then
2363- CC=""
2294+ac_ext=cpp
2295+ac_cpp='$CXXCPP $CPPFLAGS'
2296+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2299+if test -z "$CXX"; then
2300+ if test -n "$CCC"; then
2301+ CXX=$CCC
23642302 else
2365- case $cross_compiling:$ac_tool_warned in
2366-yes:)
2367-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2368-whose name does not start with the host triplet. If you think this
2369-configuration is useful to you, please write to autoconf@gnu.org." >&5
2370-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2371-whose name does not start with the host triplet. If you think this
2372-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2373-ac_tool_warned=yes ;;
2374-esac
2375- CC=$ac_ct_CC
2376- fi
2377-else
2378- CC="$ac_cv_prog_CC"
2379-fi
2380-
2381-if test -z "$CC"; then
2382- if test -n "$ac_tool_prefix"; then
2383- # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2384-set dummy ${ac_tool_prefix}cc; ac_word=$2
2385-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2386-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2387-if test "${ac_cv_prog_CC+set}" = set; then
2388- echo $ECHO_N "(cached) $ECHO_C" >&6
2389-else
2390- if test -n "$CC"; then
2391- ac_cv_prog_CC="$CC" # Let the user override the test.
2392-else
2393-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394-for as_dir in $PATH
2395-do
2396- IFS=$as_save_IFS
2397- test -z "$as_dir" && as_dir=.
2398- for ac_exec_ext in '' $ac_executable_extensions; do
2399- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400- ac_cv_prog_CC="${ac_tool_prefix}cc"
2401- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402- break 2
2403- fi
2404-done
2405-done
2406-IFS=$as_save_IFS
2407-
2408-fi
2409-fi
2410-CC=$ac_cv_prog_CC
2411-if test -n "$CC"; then
2412- { echo "$as_me:$LINENO: result: $CC" >&5
2413-echo "${ECHO_T}$CC" >&6; }
2414-else
2415- { echo "$as_me:$LINENO: result: no" >&5
2416-echo "${ECHO_T}no" >&6; }
2417-fi
2418-
2419-
2420- fi
2421-fi
2422-if test -z "$CC"; then
2423- # Extract the first word of "cc", so it can be a program name with args.
2424-set dummy cc; ac_word=$2
2425-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2426-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427-if test "${ac_cv_prog_CC+set}" = set; then
2428- echo $ECHO_N "(cached) $ECHO_C" >&6
2429-else
2430- if test -n "$CC"; then
2431- ac_cv_prog_CC="$CC" # Let the user override the test.
2432-else
2433- ac_prog_rejected=no
2434-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435-for as_dir in $PATH
2436-do
2437- IFS=$as_save_IFS
2438- test -z "$as_dir" && as_dir=.
2439- for ac_exec_ext in '' $ac_executable_extensions; do
2440- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441- if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2442- ac_prog_rejected=yes
2443- continue
2444- fi
2445- ac_cv_prog_CC="cc"
2446- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447- break 2
2448- fi
2449-done
2450-done
2451-IFS=$as_save_IFS
2452-
2453-if test $ac_prog_rejected = yes; then
2454- # We found a bogon in the path, so make sure we never use it.
2455- set dummy $ac_cv_prog_CC
2456- shift
2457- if test $# != 0; then
2458- # We chose a different compiler from the bogus one.
2459- # However, it has the same basename, so the bogon will be chosen
2460- # first if we set CC to just the basename; use the full file name.
2461- shift
2462- ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2463- fi
2464-fi
2465-fi
2466-fi
2467-CC=$ac_cv_prog_CC
2468-if test -n "$CC"; then
2469- { echo "$as_me:$LINENO: result: $CC" >&5
2470-echo "${ECHO_T}$CC" >&6; }
2471-else
2472- { echo "$as_me:$LINENO: result: no" >&5
2473-echo "${ECHO_T}no" >&6; }
2474-fi
2475-
2476-
2477-fi
2478-if test -z "$CC"; then
2479- if test -n "$ac_tool_prefix"; then
2480- for ac_prog in cl.exe
2303+ if test -n "$ac_tool_prefix"; then
2304+ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24812305 do
24822306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24832307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24842308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24852309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486-if test "${ac_cv_prog_CC+set}" = set; then
2310+if test "${ac_cv_prog_CXX+set}" = set; then
24872311 echo $ECHO_N "(cached) $ECHO_C" >&6
24882312 else
2489- if test -n "$CC"; then
2490- ac_cv_prog_CC="$CC" # Let the user override the test.
2313+ if test -n "$CXX"; then
2314+ ac_cv_prog_CXX="$CXX" # Let the user override the test.
24912315 else
24922316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24932317 for as_dir in $PATH
@@ -2496,7 +2320,7 @@
24962320 test -z "$as_dir" && as_dir=.
24972321 for ac_exec_ext in '' $ac_executable_extensions; do
24982322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2323+ ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
25002324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25012325 break 2
25022326 fi
@@ -2506,10 +2330,10 @@
25062330
25072331 fi
25082332 fi
2509-CC=$ac_cv_prog_CC
2510-if test -n "$CC"; then
2511- { echo "$as_me:$LINENO: result: $CC" >&5
2512-echo "${ECHO_T}$CC" >&6; }
2333+CXX=$ac_cv_prog_CXX
2334+if test -n "$CXX"; then
2335+ { echo "$as_me:$LINENO: result: $CXX" >&5
2336+echo "${ECHO_T}$CXX" >&6; }
25132337 else
25142338 { echo "$as_me:$LINENO: result: no" >&5
25152339 echo "${ECHO_T}no" >&6; }
@@ -2516,22 +2340,22 @@
25162340 fi
25172341
25182342
2519- test -n "$CC" && break
2343+ test -n "$CXX" && break
25202344 done
25212345 fi
2522-if test -z "$CC"; then
2523- ac_ct_CC=$CC
2524- for ac_prog in cl.exe
2346+if test -z "$CXX"; then
2347+ ac_ct_CXX=$CXX
2348+ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25252349 do
25262350 # Extract the first word of "$ac_prog", so it can be a program name with args.
25272351 set dummy $ac_prog; ac_word=$2
25282352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25292353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2354+if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
25312355 echo $ECHO_N "(cached) $ECHO_C" >&6
25322356 else
2533- if test -n "$ac_ct_CC"; then
2534- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2357+ if test -n "$ac_ct_CXX"; then
2358+ ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25352359 else
25362360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25372361 for as_dir in $PATH
@@ -2540,7 +2364,7 @@
25402364 test -z "$as_dir" && as_dir=.
25412365 for ac_exec_ext in '' $ac_executable_extensions; do
25422366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543- ac_cv_prog_ac_ct_CC="$ac_prog"
2367+ ac_cv_prog_ac_ct_CXX="$ac_prog"
25442368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25452369 break 2
25462370 fi
@@ -2550,10 +2374,10 @@
25502374
25512375 fi
25522376 fi
2553-ac_ct_CC=$ac_cv_prog_ac_ct_CC
2554-if test -n "$ac_ct_CC"; then
2555- { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2556-echo "${ECHO_T}$ac_ct_CC" >&6; }
2377+ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2378+if test -n "$ac_ct_CXX"; then
2379+ { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2380+echo "${ECHO_T}$ac_ct_CXX" >&6; }
25572381 else
25582382 { echo "$as_me:$LINENO: result: no" >&5
25592383 echo "${ECHO_T}no" >&6; }
@@ -2560,11 +2384,11 @@
25602384 fi
25612385
25622386
2563- test -n "$ac_ct_CC" && break
2387+ test -n "$ac_ct_CXX" && break
25642388 done
25652389
2566- if test "x$ac_ct_CC" = x; then
2567- CC=""
2390+ if test "x$ac_ct_CXX" = x; then
2391+ CXX="g++"
25682392 else
25692393 case $cross_compiling:$ac_tool_warned in
25702394 yes:)
@@ -2576,21 +2400,14 @@
25762400 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25772401 ac_tool_warned=yes ;;
25782402 esac
2579- CC=$ac_ct_CC
2403+ CXX=$ac_ct_CXX
25802404 fi
25812405 fi
25822406
2407+ fi
25832408 fi
2584-
2585-
2586-test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2587-See \`config.log' for more details." >&5
2588-echo "$as_me: error: no acceptable C compiler found in \$PATH
2589-See \`config.log' for more details." >&2;}
2590- { (exit 1); exit 1; }; }
2591-
25922409 # Provide some information about the compiler.
2593-echo "$as_me:$LINENO: checking for C compiler version" >&5
2410+echo "$as_me:$LINENO: checking for C++ compiler version" >&5
25942411 ac_compiler=`set X $ac_compile; echo $2`
25952412 { (ac_try="$ac_compiler --version >&5"
25962413 case "(($ac_try" in
@@ -2643,8 +2460,8 @@
26432460 # Try to create an executable without -o first, disregard a.out.
26442461 # It will help us diagnose broken compilers, and finding out an intuition
26452462 # of exeext.
2646-{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2647-echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2463+{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2464+echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
26482465 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
26492466 #
26502467 # List of possible output files, starting from the most likely.
@@ -2717,9 +2534,9 @@
27172534 echo "$as_me: failed program was:" >&5
27182535 sed 's/^/| /' conftest.$ac_ext >&5
27192536
2720-{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2537+{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
27212538 See \`config.log' for more details." >&5
2722-echo "$as_me: error: C compiler cannot create executables
2539+echo "$as_me: error: C++ compiler cannot create executables
27232540 See \`config.log' for more details." >&2;}
27242541 { (exit 77); exit 77; }; }
27252542 fi
@@ -2728,8 +2545,8 @@
27282545
27292546 # Check that the compiler produces executables we can run. If not, either
27302547 # the compiler is broken, or we cross compile.
2731-{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2732-echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2548+{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2549+echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
27332550 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
27342551 # If not cross compiling, check that we can run a simple program.
27352552 if test "$cross_compiling" != yes; then
@@ -2748,10 +2565,10 @@
27482565 if test "$cross_compiling" = maybe; then
27492566 cross_compiling=yes
27502567 else
2751- { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2568+ { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
27522569 If you meant to cross compile, use \`--host'.
27532570 See \`config.log' for more details." >&5
2754-echo "$as_me: error: cannot run C compiled programs.
2571+echo "$as_me: error: cannot run C++ compiled programs.
27552572 If you meant to cross compile, use \`--host'.
27562573 See \`config.log' for more details." >&2;}
27572574 { (exit 1); exit 1; }; }
@@ -2866,6 +2683,779 @@
28662683 echo "${ECHO_T}$ac_cv_objext" >&6; }
28672684 OBJEXT=$ac_cv_objext
28682685 ac_objext=$OBJEXT
2686+{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2687+echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2688+if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2689+ echo $ECHO_N "(cached) $ECHO_C" >&6
2690+else
2691+ cat >conftest.$ac_ext <<_ACEOF
2692+/* confdefs.h. */
2693+_ACEOF
2694+cat confdefs.h >>conftest.$ac_ext
2695+cat >>conftest.$ac_ext <<_ACEOF
2696+/* end confdefs.h. */
2697+
2698+int
2699+main ()
2700+{
2701+#ifndef __GNUC__
2702+ choke me
2703+#endif
2704+
2705+ ;
2706+ return 0;
2707+}
2708+_ACEOF
2709+rm -f conftest.$ac_objext
2710+if { (ac_try="$ac_compile"
2711+case "(($ac_try" in
2712+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713+ *) ac_try_echo=$ac_try;;
2714+esac
2715+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716+ (eval "$ac_compile") 2>conftest.er1
2717+ ac_status=$?
2718+ grep -v '^ *+' conftest.er1 >conftest.err
2719+ rm -f conftest.er1
2720+ cat conftest.err >&5
2721+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722+ (exit $ac_status); } && {
2723+ test -z "$ac_cxx_werror_flag" ||
2724+ test ! -s conftest.err
2725+ } && test -s conftest.$ac_objext; then
2726+ ac_compiler_gnu=yes
2727+else
2728+ echo "$as_me: failed program was:" >&5
2729+sed 's/^/| /' conftest.$ac_ext >&5
2730+
2731+ ac_compiler_gnu=no
2732+fi
2733+
2734+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735+ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2736+
2737+fi
2738+{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2739+echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2740+GXX=`test $ac_compiler_gnu = yes && echo yes`
2741+ac_test_CXXFLAGS=${CXXFLAGS+set}
2742+ac_save_CXXFLAGS=$CXXFLAGS
2743+{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2744+echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2745+if test "${ac_cv_prog_cxx_g+set}" = set; then
2746+ echo $ECHO_N "(cached) $ECHO_C" >&6
2747+else
2748+ ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2749+ ac_cxx_werror_flag=yes
2750+ ac_cv_prog_cxx_g=no
2751+ CXXFLAGS="-g"
2752+ cat >conftest.$ac_ext <<_ACEOF
2753+/* confdefs.h. */
2754+_ACEOF
2755+cat confdefs.h >>conftest.$ac_ext
2756+cat >>conftest.$ac_ext <<_ACEOF
2757+/* end confdefs.h. */
2758+
2759+int
2760+main ()
2761+{
2762+
2763+ ;
2764+ return 0;
2765+}
2766+_ACEOF
2767+rm -f conftest.$ac_objext
2768+if { (ac_try="$ac_compile"
2769+case "(($ac_try" in
2770+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771+ *) ac_try_echo=$ac_try;;
2772+esac
2773+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774+ (eval "$ac_compile") 2>conftest.er1
2775+ ac_status=$?
2776+ grep -v '^ *+' conftest.er1 >conftest.err
2777+ rm -f conftest.er1
2778+ cat conftest.err >&5
2779+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780+ (exit $ac_status); } && {
2781+ test -z "$ac_cxx_werror_flag" ||
2782+ test ! -s conftest.err
2783+ } && test -s conftest.$ac_objext; then
2784+ ac_cv_prog_cxx_g=yes
2785+else
2786+ echo "$as_me: failed program was:" >&5
2787+sed 's/^/| /' conftest.$ac_ext >&5
2788+
2789+ CXXFLAGS=""
2790+ cat >conftest.$ac_ext <<_ACEOF
2791+/* confdefs.h. */
2792+_ACEOF
2793+cat confdefs.h >>conftest.$ac_ext
2794+cat >>conftest.$ac_ext <<_ACEOF
2795+/* end confdefs.h. */
2796+
2797+int
2798+main ()
2799+{
2800+
2801+ ;
2802+ return 0;
2803+}
2804+_ACEOF
2805+rm -f conftest.$ac_objext
2806+if { (ac_try="$ac_compile"
2807+case "(($ac_try" in
2808+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809+ *) ac_try_echo=$ac_try;;
2810+esac
2811+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812+ (eval "$ac_compile") 2>conftest.er1
2813+ ac_status=$?
2814+ grep -v '^ *+' conftest.er1 >conftest.err
2815+ rm -f conftest.er1
2816+ cat conftest.err >&5
2817+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818+ (exit $ac_status); } && {
2819+ test -z "$ac_cxx_werror_flag" ||
2820+ test ! -s conftest.err
2821+ } && test -s conftest.$ac_objext; then
2822+ :
2823+else
2824+ echo "$as_me: failed program was:" >&5
2825+sed 's/^/| /' conftest.$ac_ext >&5
2826+
2827+ ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2828+ CXXFLAGS="-g"
2829+ cat >conftest.$ac_ext <<_ACEOF
2830+/* confdefs.h. */
2831+_ACEOF
2832+cat confdefs.h >>conftest.$ac_ext
2833+cat >>conftest.$ac_ext <<_ACEOF
2834+/* end confdefs.h. */
2835+
2836+int
2837+main ()
2838+{
2839+
2840+ ;
2841+ return 0;
2842+}
2843+_ACEOF
2844+rm -f conftest.$ac_objext
2845+if { (ac_try="$ac_compile"
2846+case "(($ac_try" in
2847+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848+ *) ac_try_echo=$ac_try;;
2849+esac
2850+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851+ (eval "$ac_compile") 2>conftest.er1
2852+ ac_status=$?
2853+ grep -v '^ *+' conftest.er1 >conftest.err
2854+ rm -f conftest.er1
2855+ cat conftest.err >&5
2856+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857+ (exit $ac_status); } && {
2858+ test -z "$ac_cxx_werror_flag" ||
2859+ test ! -s conftest.err
2860+ } && test -s conftest.$ac_objext; then
2861+ ac_cv_prog_cxx_g=yes
2862+else
2863+ echo "$as_me: failed program was:" >&5
2864+sed 's/^/| /' conftest.$ac_ext >&5
2865+
2866+
2867+fi
2868+
2869+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870+fi
2871+
2872+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873+fi
2874+
2875+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2876+ ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2877+fi
2878+{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2879+echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2880+if test "$ac_test_CXXFLAGS" = set; then
2881+ CXXFLAGS=$ac_save_CXXFLAGS
2882+elif test $ac_cv_prog_cxx_g = yes; then
2883+ if test "$GXX" = yes; then
2884+ CXXFLAGS="-g -O2"
2885+ else
2886+ CXXFLAGS="-g"
2887+ fi
2888+else
2889+ if test "$GXX" = yes; then
2890+ CXXFLAGS="-O2"
2891+ else
2892+ CXXFLAGS=
2893+ fi
2894+fi
2895+ac_ext=c
2896+ac_cpp='$CPP $CPPFLAGS'
2897+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899+ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900+DEPDIR="${am__leading_dot}deps"
2901+
2902+ac_config_commands="$ac_config_commands depfiles"
2903+
2904+
2905+am_make=${MAKE-make}
2906+cat > confinc << 'END'
2907+am__doit:
2908+ @echo done
2909+.PHONY: am__doit
2910+END
2911+# If we don't find an include directive, just comment out the code.
2912+{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2913+echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2914+am__include="#"
2915+am__quote=
2916+_am_result=none
2917+# First try GNU make style include.
2918+echo "include confinc" > confmf
2919+# We grep out `Entering directory' and `Leaving directory'
2920+# messages which can occur if `w' ends up in MAKEFLAGS.
2921+# In particular we don't look at `^make:' because GNU make might
2922+# be invoked under some other name (usually "gmake"), in which
2923+# case it prints its new name instead of `make'.
2924+if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2925+ am__include=include
2926+ am__quote=
2927+ _am_result=GNU
2928+fi
2929+# Now try BSD make style include.
2930+if test "$am__include" = "#"; then
2931+ echo '.include "confinc"' > confmf
2932+ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2933+ am__include=.include
2934+ am__quote="\""
2935+ _am_result=BSD
2936+ fi
2937+fi
2938+
2939+
2940+{ echo "$as_me:$LINENO: result: $_am_result" >&5
2941+echo "${ECHO_T}$_am_result" >&6; }
2942+rm -f confinc confmf
2943+
2944+# Check whether --enable-dependency-tracking was given.
2945+if test "${enable_dependency_tracking+set}" = set; then
2946+ enableval=$enable_dependency_tracking;
2947+fi
2948+
2949+if test "x$enable_dependency_tracking" != xno; then
2950+ am_depcomp="$ac_aux_dir/depcomp"
2951+ AMDEPBACKSLASH='\'
2952+fi
2953+ if test "x$enable_dependency_tracking" != xno; then
2954+ AMDEP_TRUE=
2955+ AMDEP_FALSE='#'
2956+else
2957+ AMDEP_TRUE='#'
2958+ AMDEP_FALSE=
2959+fi
2960+
2961+
2962+
2963+depcc="$CXX" am_compiler_list=
2964+
2965+{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2966+echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2967+if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2968+ echo $ECHO_N "(cached) $ECHO_C" >&6
2969+else
2970+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2971+ # We make a subdir and do the tests there. Otherwise we can end up
2972+ # making bogus files that we don't know about and never remove. For
2973+ # instance it was reported that on HP-UX the gcc test will end up
2974+ # making a dummy file named `D' -- because `-MD' means `put the output
2975+ # in D'.
2976+ mkdir conftest.dir
2977+ # Copy depcomp to subdir because otherwise we won't find it if we're
2978+ # using a relative directory.
2979+ cp "$am_depcomp" conftest.dir
2980+ cd conftest.dir
2981+ # We will build objects and dependencies in a subdirectory because
2982+ # it helps to detect inapplicable dependency modes. For instance
2983+ # both Tru64's cc and ICC support -MD to output dependencies as a
2984+ # side effect of compilation, but ICC will put the dependencies in
2985+ # the current directory while Tru64 will put them in the object
2986+ # directory.
2987+ mkdir sub
2988+
2989+ am_cv_CXX_dependencies_compiler_type=none
2990+ if test "$am_compiler_list" = ""; then
2991+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2992+ fi
2993+ for depmode in $am_compiler_list; do
2994+ # Setup a source with many dependencies, because some compilers
2995+ # like to wrap large dependency lists on column 80 (with \), and
2996+ # we should not choose a depcomp mode which is confused by this.
2997+ #
2998+ # We need to recreate these files for each test, as the compiler may
2999+ # overwrite some of them when testing with obscure command lines.
3000+ # This happens at least with the AIX C compiler.
3001+ : > sub/conftest.c
3002+ for i in 1 2 3 4 5 6; do
3003+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
3004+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3005+ # Solaris 8's {/usr,}/bin/sh.
3006+ touch sub/conftst$i.h
3007+ done
3008+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3009+
3010+ case $depmode in
3011+ nosideeffect)
3012+ # after this tag, mechanisms are not by side-effect, so they'll
3013+ # only be used when explicitly requested
3014+ if test "x$enable_dependency_tracking" = xyes; then
3015+ continue
3016+ else
3017+ break
3018+ fi
3019+ ;;
3020+ none) break ;;
3021+ esac
3022+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
3023+ # mode. It turns out that the SunPro C++ compiler does not properly
3024+ # handle `-M -o', and we need to detect this.
3025+ if depmode=$depmode \
3026+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3027+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3028+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3029+ >/dev/null 2>conftest.err &&
3030+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3031+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3032+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3033+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3034+ # icc doesn't choke on unknown options, it will just issue warnings
3035+ # or remarks (even with -Werror). So we grep stderr for any message
3036+ # that says an option was ignored or not supported.
3037+ # When given -MP, icc 7.0 and 7.1 complain thusly:
3038+ # icc: Command line warning: ignoring option '-M'; no argument required
3039+ # The diagnosis changed in icc 8.0:
3040+ # icc: Command line remark: option '-MP' not supported
3041+ if (grep 'ignoring option' conftest.err ||
3042+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3043+ am_cv_CXX_dependencies_compiler_type=$depmode
3044+ break
3045+ fi
3046+ fi
3047+ done
3048+
3049+ cd ..
3050+ rm -rf conftest.dir
3051+else
3052+ am_cv_CXX_dependencies_compiler_type=none
3053+fi
3054+
3055+fi
3056+{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3057+echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3058+CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3059+
3060+ if
3061+ test "x$enable_dependency_tracking" != xno \
3062+ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3063+ am__fastdepCXX_TRUE=
3064+ am__fastdepCXX_FALSE='#'
3065+else
3066+ am__fastdepCXX_TRUE='#'
3067+ am__fastdepCXX_FALSE=
3068+fi
3069+
3070+
3071+for ac_prog in gawk mawk nawk awk
3072+do
3073+ # Extract the first word of "$ac_prog", so it can be a program name with args.
3074+set dummy $ac_prog; ac_word=$2
3075+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3076+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3077+if test "${ac_cv_prog_AWK+set}" = set; then
3078+ echo $ECHO_N "(cached) $ECHO_C" >&6
3079+else
3080+ if test -n "$AWK"; then
3081+ ac_cv_prog_AWK="$AWK" # Let the user override the test.
3082+else
3083+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084+for as_dir in $PATH
3085+do
3086+ IFS=$as_save_IFS
3087+ test -z "$as_dir" && as_dir=.
3088+ for ac_exec_ext in '' $ac_executable_extensions; do
3089+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090+ ac_cv_prog_AWK="$ac_prog"
3091+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092+ break 2
3093+ fi
3094+done
3095+done
3096+IFS=$as_save_IFS
3097+
3098+fi
3099+fi
3100+AWK=$ac_cv_prog_AWK
3101+if test -n "$AWK"; then
3102+ { echo "$as_me:$LINENO: result: $AWK" >&5
3103+echo "${ECHO_T}$AWK" >&6; }
3104+else
3105+ { echo "$as_me:$LINENO: result: no" >&5
3106+echo "${ECHO_T}no" >&6; }
3107+fi
3108+
3109+
3110+ test -n "$AWK" && break
3111+done
3112+
3113+ac_ext=c
3114+ac_cpp='$CPP $CPPFLAGS'
3115+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117+ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118+if test -n "$ac_tool_prefix"; then
3119+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3120+set dummy ${ac_tool_prefix}gcc; ac_word=$2
3121+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3122+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3123+if test "${ac_cv_prog_CC+set}" = set; then
3124+ echo $ECHO_N "(cached) $ECHO_C" >&6
3125+else
3126+ if test -n "$CC"; then
3127+ ac_cv_prog_CC="$CC" # Let the user override the test.
3128+else
3129+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130+for as_dir in $PATH
3131+do
3132+ IFS=$as_save_IFS
3133+ test -z "$as_dir" && as_dir=.
3134+ for ac_exec_ext in '' $ac_executable_extensions; do
3135+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3136+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
3137+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3138+ break 2
3139+ fi
3140+done
3141+done
3142+IFS=$as_save_IFS
3143+
3144+fi
3145+fi
3146+CC=$ac_cv_prog_CC
3147+if test -n "$CC"; then
3148+ { echo "$as_me:$LINENO: result: $CC" >&5
3149+echo "${ECHO_T}$CC" >&6; }
3150+else
3151+ { echo "$as_me:$LINENO: result: no" >&5
3152+echo "${ECHO_T}no" >&6; }
3153+fi
3154+
3155+
3156+fi
3157+if test -z "$ac_cv_prog_CC"; then
3158+ ac_ct_CC=$CC
3159+ # Extract the first word of "gcc", so it can be a program name with args.
3160+set dummy gcc; ac_word=$2
3161+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3162+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3163+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3164+ echo $ECHO_N "(cached) $ECHO_C" >&6
3165+else
3166+ if test -n "$ac_ct_CC"; then
3167+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168+else
3169+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170+for as_dir in $PATH
3171+do
3172+ IFS=$as_save_IFS
3173+ test -z "$as_dir" && as_dir=.
3174+ for ac_exec_ext in '' $ac_executable_extensions; do
3175+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176+ ac_cv_prog_ac_ct_CC="gcc"
3177+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178+ break 2
3179+ fi
3180+done
3181+done
3182+IFS=$as_save_IFS
3183+
3184+fi
3185+fi
3186+ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187+if test -n "$ac_ct_CC"; then
3188+ { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3189+echo "${ECHO_T}$ac_ct_CC" >&6; }
3190+else
3191+ { echo "$as_me:$LINENO: result: no" >&5
3192+echo "${ECHO_T}no" >&6; }
3193+fi
3194+
3195+ if test "x$ac_ct_CC" = x; then
3196+ CC=""
3197+ else
3198+ case $cross_compiling:$ac_tool_warned in
3199+yes:)
3200+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3201+whose name does not start with the host triplet. If you think this
3202+configuration is useful to you, please write to autoconf@gnu.org." >&5
3203+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3204+whose name does not start with the host triplet. If you think this
3205+configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3206+ac_tool_warned=yes ;;
3207+esac
3208+ CC=$ac_ct_CC
3209+ fi
3210+else
3211+ CC="$ac_cv_prog_CC"
3212+fi
3213+
3214+if test -z "$CC"; then
3215+ if test -n "$ac_tool_prefix"; then
3216+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3217+set dummy ${ac_tool_prefix}cc; ac_word=$2
3218+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3219+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3220+if test "${ac_cv_prog_CC+set}" = set; then
3221+ echo $ECHO_N "(cached) $ECHO_C" >&6
3222+else
3223+ if test -n "$CC"; then
3224+ ac_cv_prog_CC="$CC" # Let the user override the test.
3225+else
3226+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227+for as_dir in $PATH
3228+do
3229+ IFS=$as_save_IFS
3230+ test -z "$as_dir" && as_dir=.
3231+ for ac_exec_ext in '' $ac_executable_extensions; do
3232+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233+ ac_cv_prog_CC="${ac_tool_prefix}cc"
3234+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235+ break 2
3236+ fi
3237+done
3238+done
3239+IFS=$as_save_IFS
3240+
3241+fi
3242+fi
3243+CC=$ac_cv_prog_CC
3244+if test -n "$CC"; then
3245+ { echo "$as_me:$LINENO: result: $CC" >&5
3246+echo "${ECHO_T}$CC" >&6; }
3247+else
3248+ { echo "$as_me:$LINENO: result: no" >&5
3249+echo "${ECHO_T}no" >&6; }
3250+fi
3251+
3252+
3253+ fi
3254+fi
3255+if test -z "$CC"; then
3256+ # Extract the first word of "cc", so it can be a program name with args.
3257+set dummy cc; ac_word=$2
3258+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3259+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3260+if test "${ac_cv_prog_CC+set}" = set; then
3261+ echo $ECHO_N "(cached) $ECHO_C" >&6
3262+else
3263+ if test -n "$CC"; then
3264+ ac_cv_prog_CC="$CC" # Let the user override the test.
3265+else
3266+ ac_prog_rejected=no
3267+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268+for as_dir in $PATH
3269+do
3270+ IFS=$as_save_IFS
3271+ test -z "$as_dir" && as_dir=.
3272+ for ac_exec_ext in '' $ac_executable_extensions; do
3273+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3275+ ac_prog_rejected=yes
3276+ continue
3277+ fi
3278+ ac_cv_prog_CC="cc"
3279+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280+ break 2
3281+ fi
3282+done
3283+done
3284+IFS=$as_save_IFS
3285+
3286+if test $ac_prog_rejected = yes; then
3287+ # We found a bogon in the path, so make sure we never use it.
3288+ set dummy $ac_cv_prog_CC
3289+ shift
3290+ if test $# != 0; then
3291+ # We chose a different compiler from the bogus one.
3292+ # However, it has the same basename, so the bogon will be chosen
3293+ # first if we set CC to just the basename; use the full file name.
3294+ shift
3295+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3296+ fi
3297+fi
3298+fi
3299+fi
3300+CC=$ac_cv_prog_CC
3301+if test -n "$CC"; then
3302+ { echo "$as_me:$LINENO: result: $CC" >&5
3303+echo "${ECHO_T}$CC" >&6; }
3304+else
3305+ { echo "$as_me:$LINENO: result: no" >&5
3306+echo "${ECHO_T}no" >&6; }
3307+fi
3308+
3309+
3310+fi
3311+if test -z "$CC"; then
3312+ if test -n "$ac_tool_prefix"; then
3313+ for ac_prog in cl.exe
3314+ do
3315+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3316+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3317+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3318+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3319+if test "${ac_cv_prog_CC+set}" = set; then
3320+ echo $ECHO_N "(cached) $ECHO_C" >&6
3321+else
3322+ if test -n "$CC"; then
3323+ ac_cv_prog_CC="$CC" # Let the user override the test.
3324+else
3325+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326+for as_dir in $PATH
3327+do
3328+ IFS=$as_save_IFS
3329+ test -z "$as_dir" && as_dir=.
3330+ for ac_exec_ext in '' $ac_executable_extensions; do
3331+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3333+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334+ break 2
3335+ fi
3336+done
3337+done
3338+IFS=$as_save_IFS
3339+
3340+fi
3341+fi
3342+CC=$ac_cv_prog_CC
3343+if test -n "$CC"; then
3344+ { echo "$as_me:$LINENO: result: $CC" >&5
3345+echo "${ECHO_T}$CC" >&6; }
3346+else
3347+ { echo "$as_me:$LINENO: result: no" >&5
3348+echo "${ECHO_T}no" >&6; }
3349+fi
3350+
3351+
3352+ test -n "$CC" && break
3353+ done
3354+fi
3355+if test -z "$CC"; then
3356+ ac_ct_CC=$CC
3357+ for ac_prog in cl.exe
3358+do
3359+ # Extract the first word of "$ac_prog", so it can be a program name with args.
3360+set dummy $ac_prog; ac_word=$2
3361+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3362+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3363+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3364+ echo $ECHO_N "(cached) $ECHO_C" >&6
3365+else
3366+ if test -n "$ac_ct_CC"; then
3367+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3368+else
3369+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370+for as_dir in $PATH
3371+do
3372+ IFS=$as_save_IFS
3373+ test -z "$as_dir" && as_dir=.
3374+ for ac_exec_ext in '' $ac_executable_extensions; do
3375+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3376+ ac_cv_prog_ac_ct_CC="$ac_prog"
3377+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378+ break 2
3379+ fi
3380+done
3381+done
3382+IFS=$as_save_IFS
3383+
3384+fi
3385+fi
3386+ac_ct_CC=$ac_cv_prog_ac_ct_CC
3387+if test -n "$ac_ct_CC"; then
3388+ { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3389+echo "${ECHO_T}$ac_ct_CC" >&6; }
3390+else
3391+ { echo "$as_me:$LINENO: result: no" >&5
3392+echo "${ECHO_T}no" >&6; }
3393+fi
3394+
3395+
3396+ test -n "$ac_ct_CC" && break
3397+done
3398+
3399+ if test "x$ac_ct_CC" = x; then
3400+ CC=""
3401+ else
3402+ case $cross_compiling:$ac_tool_warned in
3403+yes:)
3404+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3405+whose name does not start with the host triplet. If you think this
3406+configuration is useful to you, please write to autoconf@gnu.org." >&5
3407+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3408+whose name does not start with the host triplet. If you think this
3409+configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3410+ac_tool_warned=yes ;;
3411+esac
3412+ CC=$ac_ct_CC
3413+ fi
3414+fi
3415+
3416+fi
3417+
3418+
3419+test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3420+See \`config.log' for more details." >&5
3421+echo "$as_me: error: no acceptable C compiler found in \$PATH
3422+See \`config.log' for more details." >&2;}
3423+ { (exit 1); exit 1; }; }
3424+
3425+# Provide some information about the compiler.
3426+echo "$as_me:$LINENO: checking for C compiler version" >&5
3427+ac_compiler=`set X $ac_compile; echo $2`
3428+{ (ac_try="$ac_compiler --version >&5"
3429+case "(($ac_try" in
3430+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431+ *) ac_try_echo=$ac_try;;
3432+esac
3433+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434+ (eval "$ac_compiler --version >&5") 2>&5
3435+ ac_status=$?
3436+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437+ (exit $ac_status); }
3438+{ (ac_try="$ac_compiler -v >&5"
3439+case "(($ac_try" in
3440+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441+ *) ac_try_echo=$ac_try;;
3442+esac
3443+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444+ (eval "$ac_compiler -v >&5") 2>&5
3445+ ac_status=$?
3446+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447+ (exit $ac_status); }
3448+{ (ac_try="$ac_compiler -V >&5"
3449+case "(($ac_try" in
3450+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451+ *) ac_try_echo=$ac_try;;
3452+esac
3453+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454+ (eval "$ac_compiler -V >&5") 2>&5
3455+ ac_status=$?
3456+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457+ (exit $ac_status); }
3458+
28693459 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
28703460 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
28713461 if test "${ac_cv_c_compiler_gnu+set}" = set; then
@@ -3195,69 +3785,7 @@
31953785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31963786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31973787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198-DEPDIR="${am__leading_dot}deps"
31993788
3200-ac_config_commands="$ac_config_commands depfiles"
3201-
3202-
3203-am_make=${MAKE-make}
3204-cat > confinc << 'END'
3205-am__doit:
3206- @echo done
3207-.PHONY: am__doit
3208-END
3209-# If we don't find an include directive, just comment out the code.
3210-{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3211-echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3212-am__include="#"
3213-am__quote=
3214-_am_result=none
3215-# First try GNU make style include.
3216-echo "include confinc" > confmf
3217-# We grep out `Entering directory' and `Leaving directory'
3218-# messages which can occur if `w' ends up in MAKEFLAGS.
3219-# In particular we don't look at `^make:' because GNU make might
3220-# be invoked under some other name (usually "gmake"), in which
3221-# case it prints its new name instead of `make'.
3222-if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3223- am__include=include
3224- am__quote=
3225- _am_result=GNU
3226-fi
3227-# Now try BSD make style include.
3228-if test "$am__include" = "#"; then
3229- echo '.include "confinc"' > confmf
3230- if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3231- am__include=.include
3232- am__quote="\""
3233- _am_result=BSD
3234- fi
3235-fi
3236-
3237-
3238-{ echo "$as_me:$LINENO: result: $_am_result" >&5
3239-echo "${ECHO_T}$_am_result" >&6; }
3240-rm -f confinc confmf
3241-
3242-# Check whether --enable-dependency-tracking was given.
3243-if test "${enable_dependency_tracking+set}" = set; then
3244- enableval=$enable_dependency_tracking;
3245-fi
3246-
3247-if test "x$enable_dependency_tracking" != xno; then
3248- am_depcomp="$ac_aux_dir/depcomp"
3249- AMDEPBACKSLASH='\'
3250-fi
3251- if test "x$enable_dependency_tracking" != xno; then
3252- AMDEP_TRUE=
3253- AMDEP_FALSE='#'
3254-else
3255- AMDEP_TRUE='#'
3256- AMDEP_FALSE=
3257-fi
3258-
3259-
3260-
32613789 depcc="$CC" am_compiler_list=
32623790
32633791 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
@@ -3366,6 +3894,453 @@
33663894 fi
33673895
33683896
3897+ac_ext=c
3898+ac_cpp='$CPP $CPPFLAGS'
3899+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901+ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902+{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3903+echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3904+# On Suns, sometimes $CPP names a directory.
3905+if test -n "$CPP" && test -d "$CPP"; then
3906+ CPP=
3907+fi
3908+if test -z "$CPP"; then
3909+ if test "${ac_cv_prog_CPP+set}" = set; then
3910+ echo $ECHO_N "(cached) $ECHO_C" >&6
3911+else
3912+ # Double quotes because CPP needs to be expanded
3913+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3914+ do
3915+ ac_preproc_ok=false
3916+for ac_c_preproc_warn_flag in '' yes
3917+do
3918+ # Use a header file that comes with gcc, so configuring glibc
3919+ # with a fresh cross-compiler works.
3920+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3921+ # <limits.h> exists even on freestanding compilers.
3922+ # On the NeXT, cc -E runs the code through the compiler's parser,
3923+ # not just through cpp. "Syntax error" is here to catch this case.
3924+ cat >conftest.$ac_ext <<_ACEOF
3925+/* confdefs.h. */
3926+_ACEOF
3927+cat confdefs.h >>conftest.$ac_ext
3928+cat >>conftest.$ac_ext <<_ACEOF
3929+/* end confdefs.h. */
3930+#ifdef __STDC__
3931+# include <limits.h>
3932+#else
3933+# include <assert.h>
3934+#endif
3935+ Syntax error
3936+_ACEOF
3937+if { (ac_try="$ac_cpp conftest.$ac_ext"
3938+case "(($ac_try" in
3939+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940+ *) ac_try_echo=$ac_try;;
3941+esac
3942+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3944+ ac_status=$?
3945+ grep -v '^ *+' conftest.er1 >conftest.err
3946+ rm -f conftest.er1
3947+ cat conftest.err >&5
3948+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949+ (exit $ac_status); } >/dev/null && {
3950+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3951+ test ! -s conftest.err
3952+ }; then
3953+ :
3954+else
3955+ echo "$as_me: failed program was:" >&5
3956+sed 's/^/| /' conftest.$ac_ext >&5
3957+
3958+ # Broken: fails on valid input.
3959+continue
3960+fi
3961+
3962+rm -f conftest.err conftest.$ac_ext
3963+
3964+ # OK, works on sane cases. Now check whether nonexistent headers
3965+ # can be detected and how.
3966+ cat >conftest.$ac_ext <<_ACEOF
3967+/* confdefs.h. */
3968+_ACEOF
3969+cat confdefs.h >>conftest.$ac_ext
3970+cat >>conftest.$ac_ext <<_ACEOF
3971+/* end confdefs.h. */
3972+#include <ac_nonexistent.h>
3973+_ACEOF
3974+if { (ac_try="$ac_cpp conftest.$ac_ext"
3975+case "(($ac_try" in
3976+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977+ *) ac_try_echo=$ac_try;;
3978+esac
3979+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3981+ ac_status=$?
3982+ grep -v '^ *+' conftest.er1 >conftest.err
3983+ rm -f conftest.er1
3984+ cat conftest.err >&5
3985+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986+ (exit $ac_status); } >/dev/null && {
3987+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3988+ test ! -s conftest.err
3989+ }; then
3990+ # Broken: success on invalid input.
3991+continue
3992+else
3993+ echo "$as_me: failed program was:" >&5
3994+sed 's/^/| /' conftest.$ac_ext >&5
3995+
3996+ # Passes both tests.
3997+ac_preproc_ok=:
3998+break
3999+fi
4000+
4001+rm -f conftest.err conftest.$ac_ext
4002+
4003+done
4004+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4005+rm -f conftest.err conftest.$ac_ext
4006+if $ac_preproc_ok; then
4007+ break
4008+fi
4009+
4010+ done
4011+ ac_cv_prog_CPP=$CPP
4012+
4013+fi
4014+ CPP=$ac_cv_prog_CPP
4015+else
4016+ ac_cv_prog_CPP=$CPP
4017+fi
4018+{ echo "$as_me:$LINENO: result: $CPP" >&5
4019+echo "${ECHO_T}$CPP" >&6; }
4020+ac_preproc_ok=false
4021+for ac_c_preproc_warn_flag in '' yes
4022+do
4023+ # Use a header file that comes with gcc, so configuring glibc
4024+ # with a fresh cross-compiler works.
4025+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4026+ # <limits.h> exists even on freestanding compilers.
4027+ # On the NeXT, cc -E runs the code through the compiler's parser,
4028+ # not just through cpp. "Syntax error" is here to catch this case.
4029+ cat >conftest.$ac_ext <<_ACEOF
4030+/* confdefs.h. */
4031+_ACEOF
4032+cat confdefs.h >>conftest.$ac_ext
4033+cat >>conftest.$ac_ext <<_ACEOF
4034+/* end confdefs.h. */
4035+#ifdef __STDC__
4036+# include <limits.h>
4037+#else
4038+# include <assert.h>
4039+#endif
4040+ Syntax error
4041+_ACEOF
4042+if { (ac_try="$ac_cpp conftest.$ac_ext"
4043+case "(($ac_try" in
4044+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045+ *) ac_try_echo=$ac_try;;
4046+esac
4047+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4049+ ac_status=$?
4050+ grep -v '^ *+' conftest.er1 >conftest.err
4051+ rm -f conftest.er1
4052+ cat conftest.err >&5
4053+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054+ (exit $ac_status); } >/dev/null && {
4055+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4056+ test ! -s conftest.err
4057+ }; then
4058+ :
4059+else
4060+ echo "$as_me: failed program was:" >&5
4061+sed 's/^/| /' conftest.$ac_ext >&5
4062+
4063+ # Broken: fails on valid input.
4064+continue
4065+fi
4066+
4067+rm -f conftest.err conftest.$ac_ext
4068+
4069+ # OK, works on sane cases. Now check whether nonexistent headers
4070+ # can be detected and how.
4071+ cat >conftest.$ac_ext <<_ACEOF
4072+/* confdefs.h. */
4073+_ACEOF
4074+cat confdefs.h >>conftest.$ac_ext
4075+cat >>conftest.$ac_ext <<_ACEOF
4076+/* end confdefs.h. */
4077+#include <ac_nonexistent.h>
4078+_ACEOF
4079+if { (ac_try="$ac_cpp conftest.$ac_ext"
4080+case "(($ac_try" in
4081+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082+ *) ac_try_echo=$ac_try;;
4083+esac
4084+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4086+ ac_status=$?
4087+ grep -v '^ *+' conftest.er1 >conftest.err
4088+ rm -f conftest.er1
4089+ cat conftest.err >&5
4090+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091+ (exit $ac_status); } >/dev/null && {
4092+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4093+ test ! -s conftest.err
4094+ }; then
4095+ # Broken: success on invalid input.
4096+continue
4097+else
4098+ echo "$as_me: failed program was:" >&5
4099+sed 's/^/| /' conftest.$ac_ext >&5
4100+
4101+ # Passes both tests.
4102+ac_preproc_ok=:
4103+break
4104+fi
4105+
4106+rm -f conftest.err conftest.$ac_ext
4107+
4108+done
4109+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4110+rm -f conftest.err conftest.$ac_ext
4111+if $ac_preproc_ok; then
4112+ :
4113+else
4114+ { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4115+See \`config.log' for more details." >&5
4116+echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4117+See \`config.log' for more details." >&2;}
4118+ { (exit 1); exit 1; }; }
4119+fi
4120+
4121+ac_ext=c
4122+ac_cpp='$CPP $CPPFLAGS'
4123+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125+ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126+
4127+# Find a good install program. We prefer a C program (faster),
4128+# so one script is as good as another. But avoid the broken or
4129+# incompatible versions:
4130+# SysV /etc/install, /usr/sbin/install
4131+# SunOS /usr/etc/install
4132+# IRIX /sbin/install
4133+# AIX /bin/install
4134+# AmigaOS /C/install, which installs bootblocks on floppy discs
4135+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4136+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4137+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4138+# OS/2's system install, which has a completely different semantic
4139+# ./install, which can be erroneously created by make from ./install.sh.
4140+{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4141+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4142+if test -z "$INSTALL"; then
4143+if test "${ac_cv_path_install+set}" = set; then
4144+ echo $ECHO_N "(cached) $ECHO_C" >&6
4145+else
4146+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147+for as_dir in $PATH
4148+do
4149+ IFS=$as_save_IFS
4150+ test -z "$as_dir" && as_dir=.
4151+ # Account for people who put trailing slashes in PATH elements.
4152+case $as_dir/ in
4153+ ./ | .// | /cC/* | \
4154+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4155+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4156+ /usr/ucb/* ) ;;
4157+ *)
4158+ # OSF1 and SCO ODT 3.0 have their own names for install.
4159+ # Don't use installbsd from OSF since it installs stuff as root
4160+ # by default.
4161+ for ac_prog in ginstall scoinst install; do
4162+ for ac_exec_ext in '' $ac_executable_extensions; do
4163+ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4164+ if test $ac_prog = install &&
4165+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4166+ # AIX install. It has an incompatible calling convention.
4167+ :
4168+ elif test $ac_prog = install &&
4169+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4170+ # program-specific install script used by HP pwplus--don't use.
4171+ :
4172+ else
4173+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4174+ break 3
4175+ fi
4176+ fi
4177+ done
4178+ done
4179+ ;;
4180+esac
4181+done
4182+IFS=$as_save_IFS
4183+
4184+
4185+fi
4186+ if test "${ac_cv_path_install+set}" = set; then
4187+ INSTALL=$ac_cv_path_install
4188+ else
4189+ # As a last resort, use the slow shell script. Don't cache a
4190+ # value for INSTALL within a source directory, because that will
4191+ # break other packages using the cache if that directory is
4192+ # removed, or if the value is a relative name.
4193+ INSTALL=$ac_install_sh
4194+ fi
4195+fi
4196+{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4197+echo "${ECHO_T}$INSTALL" >&6; }
4198+
4199+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4200+# It thinks the first close brace ends the variable substitution.
4201+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4202+
4203+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4204+
4205+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4206+
4207+{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4208+echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4209+LN_S=$as_ln_s
4210+if test "$LN_S" = "ln -s"; then
4211+ { echo "$as_me:$LINENO: result: yes" >&5
4212+echo "${ECHO_T}yes" >&6; }
4213+else
4214+ { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4215+echo "${ECHO_T}no, using $LN_S" >&6; }
4216+fi
4217+
4218+{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4219+echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4220+set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4221+if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4222+ echo $ECHO_N "(cached) $ECHO_C" >&6
4223+else
4224+ cat >conftest.make <<\_ACEOF
4225+SHELL = /bin/sh
4226+all:
4227+ @echo '@@@%%%=$(MAKE)=@@@%%%'
4228+_ACEOF
4229+# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4230+case `${MAKE-make} -f conftest.make 2>/dev/null` in
4231+ *@@@%%%=?*=@@@%%%*)
4232+ eval ac_cv_prog_make_${ac_make}_set=yes;;
4233+ *)
4234+ eval ac_cv_prog_make_${ac_make}_set=no;;
4235+esac
4236+rm -f conftest.make
4237+fi
4238+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4239+ { echo "$as_me:$LINENO: result: yes" >&5
4240+echo "${ECHO_T}yes" >&6; }
4241+ SET_MAKE=
4242+else
4243+ { echo "$as_me:$LINENO: result: no" >&5
4244+echo "${ECHO_T}no" >&6; }
4245+ SET_MAKE="MAKE=${MAKE-make}"
4246+fi
4247+
4248+if test -n "$ac_tool_prefix"; then
4249+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4250+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4251+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4252+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4253+if test "${ac_cv_prog_RANLIB+set}" = set; then
4254+ echo $ECHO_N "(cached) $ECHO_C" >&6
4255+else
4256+ if test -n "$RANLIB"; then
4257+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4258+else
4259+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260+for as_dir in $PATH
4261+do
4262+ IFS=$as_save_IFS
4263+ test -z "$as_dir" && as_dir=.
4264+ for ac_exec_ext in '' $ac_executable_extensions; do
4265+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4266+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4267+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4268+ break 2
4269+ fi
4270+done
4271+done
4272+IFS=$as_save_IFS
4273+
4274+fi
4275+fi
4276+RANLIB=$ac_cv_prog_RANLIB
4277+if test -n "$RANLIB"; then
4278+ { echo "$as_me:$LINENO: result: $RANLIB" >&5
4279+echo "${ECHO_T}$RANLIB" >&6; }
4280+else
4281+ { echo "$as_me:$LINENO: result: no" >&5
4282+echo "${ECHO_T}no" >&6; }
4283+fi
4284+
4285+
4286+fi
4287+if test -z "$ac_cv_prog_RANLIB"; then
4288+ ac_ct_RANLIB=$RANLIB
4289+ # Extract the first word of "ranlib", so it can be a program name with args.
4290+set dummy ranlib; ac_word=$2
4291+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4292+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4293+if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4294+ echo $ECHO_N "(cached) $ECHO_C" >&6
4295+else
4296+ if test -n "$ac_ct_RANLIB"; then
4297+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4298+else
4299+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300+for as_dir in $PATH
4301+do
4302+ IFS=$as_save_IFS
4303+ test -z "$as_dir" && as_dir=.
4304+ for ac_exec_ext in '' $ac_executable_extensions; do
4305+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306+ ac_cv_prog_ac_ct_RANLIB="ranlib"
4307+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308+ break 2
4309+ fi
4310+done
4311+done
4312+IFS=$as_save_IFS
4313+
4314+fi
4315+fi
4316+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4317+if test -n "$ac_ct_RANLIB"; then
4318+ { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4319+echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4320+else
4321+ { echo "$as_me:$LINENO: result: no" >&5
4322+echo "${ECHO_T}no" >&6; }
4323+fi
4324+
4325+ if test "x$ac_ct_RANLIB" = x; then
4326+ RANLIB=":"
4327+ else
4328+ case $cross_compiling:$ac_tool_warned in
4329+yes:)
4330+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4331+whose name does not start with the host triplet. If you think this
4332+configuration is useful to you, please write to autoconf@gnu.org." >&5
4333+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4334+whose name does not start with the host triplet. If you think this
4335+configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4336+ac_tool_warned=yes ;;
4337+esac
4338+ RANLIB=$ac_ct_RANLIB
4339+ fi
4340+else
4341+ RANLIB="$ac_cv_prog_RANLIB"
4342+fi
4343+
33694344 case `pwd` in
33704345 *\ * | *\ *)
33714346 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
@@ -4224,17 +5199,6 @@
42245199 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
42255200 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
42265201
4227-{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4228-echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4229-LN_S=$as_ln_s
4230-if test "$LN_S" = "ln -s"; then
4231- { echo "$as_me:$LINENO: result: yes" >&5
4232-echo "${ECHO_T}yes" >&6; }
4233-else
4234- { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4235-echo "${ECHO_T}no, using $LN_S" >&6; }
4236-fi
4237-
42385202 # find the maximum length of command line arguments
42395203 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
42405204 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
@@ -6834,237 +7798,7 @@
68347798 ;;
68357799 esac
68367800
6837-ac_ext=c
6838-ac_cpp='$CPP $CPPFLAGS'
6839-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6840-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6841-ac_compiler_gnu=$ac_cv_c_compiler_gnu
6842-{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6843-echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6844-# On Suns, sometimes $CPP names a directory.
6845-if test -n "$CPP" && test -d "$CPP"; then
6846- CPP=
6847-fi
6848-if test -z "$CPP"; then
6849- if test "${ac_cv_prog_CPP+set}" = set; then
6850- echo $ECHO_N "(cached) $ECHO_C" >&6
6851-else
6852- # Double quotes because CPP needs to be expanded
6853- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6854- do
6855- ac_preproc_ok=false
6856-for ac_c_preproc_warn_flag in '' yes
6857-do
6858- # Use a header file that comes with gcc, so configuring glibc
6859- # with a fresh cross-compiler works.
6860- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6861- # <limits.h> exists even on freestanding compilers.
6862- # On the NeXT, cc -E runs the code through the compiler's parser,
6863- # not just through cpp. "Syntax error" is here to catch this case.
6864- cat >conftest.$ac_ext <<_ACEOF
6865-/* confdefs.h. */
6866-_ACEOF
6867-cat confdefs.h >>conftest.$ac_ext
6868-cat >>conftest.$ac_ext <<_ACEOF
6869-/* end confdefs.h. */
6870-#ifdef __STDC__
6871-# include <limits.h>
6872-#else
6873-# include <assert.h>
6874-#endif
6875- Syntax error
6876-_ACEOF
6877-if { (ac_try="$ac_cpp conftest.$ac_ext"
6878-case "(($ac_try" in
6879- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880- *) ac_try_echo=$ac_try;;
6881-esac
6882-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6884- ac_status=$?
6885- grep -v '^ *+' conftest.er1 >conftest.err
6886- rm -f conftest.er1
6887- cat conftest.err >&5
6888- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889- (exit $ac_status); } >/dev/null && {
6890- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6891- test ! -s conftest.err
6892- }; then
6893- :
6894-else
6895- echo "$as_me: failed program was:" >&5
6896-sed 's/^/| /' conftest.$ac_ext >&5
68977801
6898- # Broken: fails on valid input.
6899-continue
6900-fi
6901-
6902-rm -f conftest.err conftest.$ac_ext
6903-
6904- # OK, works on sane cases. Now check whether nonexistent headers
6905- # can be detected and how.
6906- cat >conftest.$ac_ext <<_ACEOF
6907-/* confdefs.h. */
6908-_ACEOF
6909-cat confdefs.h >>conftest.$ac_ext
6910-cat >>conftest.$ac_ext <<_ACEOF
6911-/* end confdefs.h. */
6912-#include <ac_nonexistent.h>
6913-_ACEOF
6914-if { (ac_try="$ac_cpp conftest.$ac_ext"
6915-case "(($ac_try" in
6916- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917- *) ac_try_echo=$ac_try;;
6918-esac
6919-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6921- ac_status=$?
6922- grep -v '^ *+' conftest.er1 >conftest.err
6923- rm -f conftest.er1
6924- cat conftest.err >&5
6925- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926- (exit $ac_status); } >/dev/null && {
6927- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6928- test ! -s conftest.err
6929- }; then
6930- # Broken: success on invalid input.
6931-continue
6932-else
6933- echo "$as_me: failed program was:" >&5
6934-sed 's/^/| /' conftest.$ac_ext >&5
6935-
6936- # Passes both tests.
6937-ac_preproc_ok=:
6938-break
6939-fi
6940-
6941-rm -f conftest.err conftest.$ac_ext
6942-
6943-done
6944-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6945-rm -f conftest.err conftest.$ac_ext
6946-if $ac_preproc_ok; then
6947- break
6948-fi
6949-
6950- done
6951- ac_cv_prog_CPP=$CPP
6952-
6953-fi
6954- CPP=$ac_cv_prog_CPP
6955-else
6956- ac_cv_prog_CPP=$CPP
6957-fi
6958-{ echo "$as_me:$LINENO: result: $CPP" >&5
6959-echo "${ECHO_T}$CPP" >&6; }
6960-ac_preproc_ok=false
6961-for ac_c_preproc_warn_flag in '' yes
6962-do
6963- # Use a header file that comes with gcc, so configuring glibc
6964- # with a fresh cross-compiler works.
6965- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6966- # <limits.h> exists even on freestanding compilers.
6967- # On the NeXT, cc -E runs the code through the compiler's parser,
6968- # not just through cpp. "Syntax error" is here to catch this case.
6969- cat >conftest.$ac_ext <<_ACEOF
6970-/* confdefs.h. */
6971-_ACEOF
6972-cat confdefs.h >>conftest.$ac_ext
6973-cat >>conftest.$ac_ext <<_ACEOF
6974-/* end confdefs.h. */
6975-#ifdef __STDC__
6976-# include <limits.h>
6977-#else
6978-# include <assert.h>
6979-#endif
6980- Syntax error
6981-_ACEOF
6982-if { (ac_try="$ac_cpp conftest.$ac_ext"
6983-case "(($ac_try" in
6984- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985- *) ac_try_echo=$ac_try;;
6986-esac
6987-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6989- ac_status=$?
6990- grep -v '^ *+' conftest.er1 >conftest.err
6991- rm -f conftest.er1
6992- cat conftest.err >&5
6993- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994- (exit $ac_status); } >/dev/null && {
6995- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6996- test ! -s conftest.err
6997- }; then
6998- :
6999-else
7000- echo "$as_me: failed program was:" >&5
7001-sed 's/^/| /' conftest.$ac_ext >&5
7002-
7003- # Broken: fails on valid input.
7004-continue
7005-fi
7006-
7007-rm -f conftest.err conftest.$ac_ext
7008-
7009- # OK, works on sane cases. Now check whether nonexistent headers
7010- # can be detected and how.
7011- cat >conftest.$ac_ext <<_ACEOF
7012-/* confdefs.h. */
7013-_ACEOF
7014-cat confdefs.h >>conftest.$ac_ext
7015-cat >>conftest.$ac_ext <<_ACEOF
7016-/* end confdefs.h. */
7017-#include <ac_nonexistent.h>
7018-_ACEOF
7019-if { (ac_try="$ac_cpp conftest.$ac_ext"
7020-case "(($ac_try" in
7021- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022- *) ac_try_echo=$ac_try;;
7023-esac
7024-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7025- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7026- ac_status=$?
7027- grep -v '^ *+' conftest.er1 >conftest.err
7028- rm -f conftest.er1
7029- cat conftest.err >&5
7030- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031- (exit $ac_status); } >/dev/null && {
7032- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7033- test ! -s conftest.err
7034- }; then
7035- # Broken: success on invalid input.
7036-continue
7037-else
7038- echo "$as_me: failed program was:" >&5
7039-sed 's/^/| /' conftest.$ac_ext >&5
7040-
7041- # Passes both tests.
7042-ac_preproc_ok=:
7043-break
7044-fi
7045-
7046-rm -f conftest.err conftest.$ac_ext
7047-
7048-done
7049-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7050-rm -f conftest.err conftest.$ac_ext
7051-if $ac_preproc_ok; then
7052- :
7053-else
7054- { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7055-See \`config.log' for more details." >&5
7056-echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7057-See \`config.log' for more details." >&2;}
7058- { (exit 1); exit 1; }; }
7059-fi
7060-
7061-ac_ext=c
7062-ac_cpp='$CPP $CPPFLAGS'
7063-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065-ac_compiler_gnu=$ac_cv_c_compiler_gnu
7066-
7067-
70687802 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
70697803 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
70707804 if test "${ac_cv_header_stdc+set}" = set; then
@@ -7369,7 +8103,18 @@
73698103
73708104
73718105
8106+func_stripname_cnf ()
8107+{
8108+ case ${2} in
8109+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8110+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8111+ esac
8112+} # func_stripname_cnf
73728113
8114+
8115+
8116+
8117+
73738118 # Set options
73748119
73758120
@@ -11717,18 +12462,3385 @@
1171712462
1171812463 CC="$lt_save_CC"
1171912464
12465+ if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12466+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12467+ (test "X$CXX" != "Xg++"))) ; then
12468+ ac_ext=cpp
12469+ac_cpp='$CXXCPP $CPPFLAGS'
12470+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12471+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12472+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12473+{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12474+echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12475+if test -z "$CXXCPP"; then
12476+ if test "${ac_cv_prog_CXXCPP+set}" = set; then
12477+ echo $ECHO_N "(cached) $ECHO_C" >&6
12478+else
12479+ # Double quotes because CXXCPP needs to be expanded
12480+ for CXXCPP in "$CXX -E" "/lib/cpp"
12481+ do
12482+ ac_preproc_ok=false
12483+for ac_cxx_preproc_warn_flag in '' yes
12484+do
12485+ # Use a header file that comes with gcc, so configuring glibc
12486+ # with a fresh cross-compiler works.
12487+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12488+ # <limits.h> exists even on freestanding compilers.
12489+ # On the NeXT, cc -E runs the code through the compiler's parser,
12490+ # not just through cpp. "Syntax error" is here to catch this case.
12491+ cat >conftest.$ac_ext <<_ACEOF
12492+/* confdefs.h. */
12493+_ACEOF
12494+cat confdefs.h >>conftest.$ac_ext
12495+cat >>conftest.$ac_ext <<_ACEOF
12496+/* end confdefs.h. */
12497+#ifdef __STDC__
12498+# include <limits.h>
12499+#else
12500+# include <assert.h>
12501+#endif
12502+ Syntax error
12503+_ACEOF
12504+if { (ac_try="$ac_cpp conftest.$ac_ext"
12505+case "(($ac_try" in
12506+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507+ *) ac_try_echo=$ac_try;;
12508+esac
12509+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12511+ ac_status=$?
12512+ grep -v '^ *+' conftest.er1 >conftest.err
12513+ rm -f conftest.er1
12514+ cat conftest.err >&5
12515+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516+ (exit $ac_status); } >/dev/null && {
12517+ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12518+ test ! -s conftest.err
12519+ }; then
12520+ :
12521+else
12522+ echo "$as_me: failed program was:" >&5
12523+sed 's/^/| /' conftest.$ac_ext >&5
1172012524
12525+ # Broken: fails on valid input.
12526+continue
12527+fi
1172112528
12529+rm -f conftest.err conftest.$ac_ext
1172212530
12531+ # OK, works on sane cases. Now check whether nonexistent headers
12532+ # can be detected and how.
12533+ cat >conftest.$ac_ext <<_ACEOF
12534+/* confdefs.h. */
12535+_ACEOF
12536+cat confdefs.h >>conftest.$ac_ext
12537+cat >>conftest.$ac_ext <<_ACEOF
12538+/* end confdefs.h. */
12539+#include <ac_nonexistent.h>
12540+_ACEOF
12541+if { (ac_try="$ac_cpp conftest.$ac_ext"
12542+case "(($ac_try" in
12543+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544+ *) ac_try_echo=$ac_try;;
12545+esac
12546+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12548+ ac_status=$?
12549+ grep -v '^ *+' conftest.er1 >conftest.err
12550+ rm -f conftest.er1
12551+ cat conftest.err >&5
12552+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553+ (exit $ac_status); } >/dev/null && {
12554+ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12555+ test ! -s conftest.err
12556+ }; then
12557+ # Broken: success on invalid input.
12558+continue
12559+else
12560+ echo "$as_me: failed program was:" >&5
12561+sed 's/^/| /' conftest.$ac_ext >&5
1172312562
12563+ # Passes both tests.
12564+ac_preproc_ok=:
12565+break
12566+fi
1172412567
12568+rm -f conftest.err conftest.$ac_ext
1172512569
12570+done
12571+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12572+rm -f conftest.err conftest.$ac_ext
12573+if $ac_preproc_ok; then
12574+ break
12575+fi
1172612576
12577+ done
12578+ ac_cv_prog_CXXCPP=$CXXCPP
1172712579
12580+fi
12581+ CXXCPP=$ac_cv_prog_CXXCPP
12582+else
12583+ ac_cv_prog_CXXCPP=$CXXCPP
12584+fi
12585+{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12586+echo "${ECHO_T}$CXXCPP" >&6; }
12587+ac_preproc_ok=false
12588+for ac_cxx_preproc_warn_flag in '' yes
12589+do
12590+ # Use a header file that comes with gcc, so configuring glibc
12591+ # with a fresh cross-compiler works.
12592+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12593+ # <limits.h> exists even on freestanding compilers.
12594+ # On the NeXT, cc -E runs the code through the compiler's parser,
12595+ # not just through cpp. "Syntax error" is here to catch this case.
12596+ cat >conftest.$ac_ext <<_ACEOF
12597+/* confdefs.h. */
12598+_ACEOF
12599+cat confdefs.h >>conftest.$ac_ext
12600+cat >>conftest.$ac_ext <<_ACEOF
12601+/* end confdefs.h. */
12602+#ifdef __STDC__
12603+# include <limits.h>
12604+#else
12605+# include <assert.h>
12606+#endif
12607+ Syntax error
12608+_ACEOF
12609+if { (ac_try="$ac_cpp conftest.$ac_ext"
12610+case "(($ac_try" in
12611+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612+ *) ac_try_echo=$ac_try;;
12613+esac
12614+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12616+ ac_status=$?
12617+ grep -v '^ *+' conftest.er1 >conftest.err
12618+ rm -f conftest.er1
12619+ cat conftest.err >&5
12620+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621+ (exit $ac_status); } >/dev/null && {
12622+ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12623+ test ! -s conftest.err
12624+ }; then
12625+ :
12626+else
12627+ echo "$as_me: failed program was:" >&5
12628+sed 's/^/| /' conftest.$ac_ext >&5
1172812629
12630+ # Broken: fails on valid input.
12631+continue
12632+fi
1172912633
12634+rm -f conftest.err conftest.$ac_ext
1173012635
12636+ # OK, works on sane cases. Now check whether nonexistent headers
12637+ # can be detected and how.
12638+ cat >conftest.$ac_ext <<_ACEOF
12639+/* confdefs.h. */
12640+_ACEOF
12641+cat confdefs.h >>conftest.$ac_ext
12642+cat >>conftest.$ac_ext <<_ACEOF
12643+/* end confdefs.h. */
12644+#include <ac_nonexistent.h>
12645+_ACEOF
12646+if { (ac_try="$ac_cpp conftest.$ac_ext"
12647+case "(($ac_try" in
12648+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649+ *) ac_try_echo=$ac_try;;
12650+esac
12651+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12653+ ac_status=$?
12654+ grep -v '^ *+' conftest.er1 >conftest.err
12655+ rm -f conftest.er1
12656+ cat conftest.err >&5
12657+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658+ (exit $ac_status); } >/dev/null && {
12659+ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12660+ test ! -s conftest.err
12661+ }; then
12662+ # Broken: success on invalid input.
12663+continue
12664+else
12665+ echo "$as_me: failed program was:" >&5
12666+sed 's/^/| /' conftest.$ac_ext >&5
1173112667
12668+ # Passes both tests.
12669+ac_preproc_ok=:
12670+break
12671+fi
12672+
12673+rm -f conftest.err conftest.$ac_ext
12674+
12675+done
12676+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12677+rm -f conftest.err conftest.$ac_ext
12678+if $ac_preproc_ok; then
12679+ :
12680+else
12681+ { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12682+See \`config.log' for more details." >&5
12683+echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12684+See \`config.log' for more details." >&2;}
12685+ { (exit 1); exit 1; }; }
12686+fi
12687+
12688+ac_ext=c
12689+ac_cpp='$CPP $CPPFLAGS'
12690+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12691+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12692+ac_compiler_gnu=$ac_cv_c_compiler_gnu
12693+
12694+else
12695+ _lt_caught_CXX_error=yes
12696+fi
12697+
12698+ac_ext=cpp
12699+ac_cpp='$CXXCPP $CPPFLAGS'
12700+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12701+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12702+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12703+
12704+archive_cmds_need_lc_CXX=no
12705+allow_undefined_flag_CXX=
12706+always_export_symbols_CXX=no
12707+archive_expsym_cmds_CXX=
12708+compiler_needs_object_CXX=no
12709+export_dynamic_flag_spec_CXX=
12710+hardcode_direct_CXX=no
12711+hardcode_direct_absolute_CXX=no
12712+hardcode_libdir_flag_spec_CXX=
12713+hardcode_libdir_flag_spec_ld_CXX=
12714+hardcode_libdir_separator_CXX=
12715+hardcode_minus_L_CXX=no
12716+hardcode_shlibpath_var_CXX=unsupported
12717+hardcode_automatic_CXX=no
12718+inherit_rpath_CXX=no
12719+module_cmds_CXX=
12720+module_expsym_cmds_CXX=
12721+link_all_deplibs_CXX=unknown
12722+old_archive_cmds_CXX=$old_archive_cmds
12723+reload_flag_CXX=$reload_flag
12724+reload_cmds_CXX=$reload_cmds
12725+no_undefined_flag_CXX=
12726+whole_archive_flag_spec_CXX=
12727+enable_shared_with_static_runtimes_CXX=no
12728+
12729+# Source file extension for C++ test sources.
12730+ac_ext=cpp
12731+
12732+# Object file extension for compiled C++ test sources.
12733+objext=o
12734+objext_CXX=$objext
12735+
12736+# No sense in running all these tests if we already determined that
12737+# the CXX compiler isn't working. Some variables (like enable_shared)
12738+# are currently assumed to apply to all compilers on this platform,
12739+# and will be corrupted by setting them based on a non-working compiler.
12740+if test "$_lt_caught_CXX_error" != yes; then
12741+ # Code to be used in simple compile tests
12742+ lt_simple_compile_test_code="int some_variable = 0;"
12743+
12744+ # Code to be used in simple link tests
12745+ lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12746+
12747+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12748+
12749+
12750+
12751+
12752+
12753+
12754+# If no C compiler was specified, use CC.
12755+LTCC=${LTCC-"$CC"}
12756+
12757+# If no C compiler flags were specified, use CFLAGS.
12758+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12759+
12760+# Allow CC to be a program name with arguments.
12761+compiler=$CC
12762+
12763+
12764+ # save warnings/boilerplate of simple test code
12765+ ac_outfile=conftest.$ac_objext
12766+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12767+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12768+_lt_compiler_boilerplate=`cat conftest.err`
12769+$RM conftest*
12770+
12771+ ac_outfile=conftest.$ac_objext
12772+echo "$lt_simple_link_test_code" >conftest.$ac_ext
12773+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12774+_lt_linker_boilerplate=`cat conftest.err`
12775+$RM -r conftest*
12776+
12777+
12778+ # Allow CC to be a program name with arguments.
12779+ lt_save_CC=$CC
12780+ lt_save_CFLAGS=$CFLAGS
12781+ lt_save_LD=$LD
12782+ lt_save_GCC=$GCC
12783+ GCC=$GXX
12784+ lt_save_with_gnu_ld=$with_gnu_ld
12785+ lt_save_path_LD=$lt_cv_path_LD
12786+ if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12787+ lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12788+ else
12789+ $as_unset lt_cv_prog_gnu_ld
12790+ fi
12791+ if test -n "${lt_cv_path_LDCXX+set}"; then
12792+ lt_cv_path_LD=$lt_cv_path_LDCXX
12793+ else
12794+ $as_unset lt_cv_path_LD
12795+ fi
12796+ test -z "${LDCXX+set}" || LD=$LDCXX
12797+ CC=${CXX-"c++"}
12798+ CFLAGS=$CXXFLAGS
12799+ compiler=$CC
12800+ compiler_CXX=$CC
12801+ for cc_temp in $compiler""; do
12802+ case $cc_temp in
12803+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12804+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12805+ \-*) ;;
12806+ *) break;;
12807+ esac
12808+done
12809+cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12810+
12811+
12812+ if test -n "$compiler"; then
12813+ # We don't want -fno-exception when compiling C++ code, so set the
12814+ # no_builtin_flag separately
12815+ if test "$GXX" = yes; then
12816+ lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12817+ else
12818+ lt_prog_compiler_no_builtin_flag_CXX=
12819+ fi
12820+
12821+ if test "$GXX" = yes; then
12822+ # Set up default GNU C++ configuration
12823+
12824+
12825+
12826+# Check whether --with-gnu-ld was given.
12827+if test "${with_gnu_ld+set}" = set; then
12828+ withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12829+else
12830+ with_gnu_ld=no
12831+fi
12832+
12833+ac_prog=ld
12834+if test "$GCC" = yes; then
12835+ # Check if gcc -print-prog-name=ld gives a path.
12836+ { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12837+echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12838+ case $host in
12839+ *-*-mingw*)
12840+ # gcc leaves a trailing carriage return which upsets mingw
12841+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12842+ *)
12843+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12844+ esac
12845+ case $ac_prog in
12846+ # Accept absolute paths.
12847+ [\\/]* | ?:[\\/]*)
12848+ re_direlt='/[^/][^/]*/\.\./'
12849+ # Canonicalize the pathname of ld
12850+ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12851+ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12852+ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12853+ done
12854+ test -z "$LD" && LD="$ac_prog"
12855+ ;;
12856+ "")
12857+ # If it fails, then pretend we aren't using GCC.
12858+ ac_prog=ld
12859+ ;;
12860+ *)
12861+ # If it is relative, then search for the first ld in PATH.
12862+ with_gnu_ld=unknown
12863+ ;;
12864+ esac
12865+elif test "$with_gnu_ld" = yes; then
12866+ { echo "$as_me:$LINENO: checking for GNU ld" >&5
12867+echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12868+else
12869+ { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12870+echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12871+fi
12872+if test "${lt_cv_path_LD+set}" = set; then
12873+ echo $ECHO_N "(cached) $ECHO_C" >&6
12874+else
12875+ if test -z "$LD"; then
12876+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12877+ for ac_dir in $PATH; do
12878+ IFS="$lt_save_ifs"
12879+ test -z "$ac_dir" && ac_dir=.
12880+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12881+ lt_cv_path_LD="$ac_dir/$ac_prog"
12882+ # Check to see if the program is GNU ld. I'd rather use --version,
12883+ # but apparently some variants of GNU ld only accept -v.
12884+ # Break only if it was the GNU/non-GNU ld that we prefer.
12885+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12886+ *GNU* | *'with BFD'*)
12887+ test "$with_gnu_ld" != no && break
12888+ ;;
12889+ *)
12890+ test "$with_gnu_ld" != yes && break
12891+ ;;
12892+ esac
12893+ fi
12894+ done
12895+ IFS="$lt_save_ifs"
12896+else
12897+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
12898+fi
12899+fi
12900+
12901+LD="$lt_cv_path_LD"
12902+if test -n "$LD"; then
12903+ { echo "$as_me:$LINENO: result: $LD" >&5
12904+echo "${ECHO_T}$LD" >&6; }
12905+else
12906+ { echo "$as_me:$LINENO: result: no" >&5
12907+echo "${ECHO_T}no" >&6; }
12908+fi
12909+test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12910+echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12911+ { (exit 1); exit 1; }; }
12912+{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12913+echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12914+if test "${lt_cv_prog_gnu_ld+set}" = set; then
12915+ echo $ECHO_N "(cached) $ECHO_C" >&6
12916+else
12917+ # I'd rather use --version here, but apparently some GNU lds only accept -v.
12918+case `$LD -v 2>&1 </dev/null` in
12919+*GNU* | *'with BFD'*)
12920+ lt_cv_prog_gnu_ld=yes
12921+ ;;
12922+*)
12923+ lt_cv_prog_gnu_ld=no
12924+ ;;
12925+esac
12926+fi
12927+{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12928+echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12929+with_gnu_ld=$lt_cv_prog_gnu_ld
12930+
12931+
12932+
12933+
12934+
12935+
12936+
12937+ # Check if GNU C++ uses GNU ld as the underlying linker, since the
12938+ # archiving commands below assume that GNU ld is being used.
12939+ if test "$with_gnu_ld" = yes; then
12940+ archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12941+ archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12942+
12943+ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12944+ export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12945+
12946+ # If archive_cmds runs LD, not CC, wlarc should be empty
12947+ # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12948+ # investigate it a little bit more. (MM)
12949+ wlarc='${wl}'
12950+
12951+ # ancient GNU ld didn't support --whole-archive et. al.
12952+ if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12953+ $GREP 'no-whole-archive' > /dev/null; then
12954+ whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12955+ else
12956+ whole_archive_flag_spec_CXX=
12957+ fi
12958+ else
12959+ with_gnu_ld=no
12960+ wlarc=
12961+
12962+ # A generic and very simple default shared library creation
12963+ # command for GNU C++ for the case where it uses the native
12964+ # linker, instead of GNU ld. If possible, this setting should
12965+ # overridden to take advantage of the native linker features on
12966+ # the platform it is being used on.
12967+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12968+ fi
12969+
12970+ # Commands to make compiler produce verbose output that lists
12971+ # what "hidden" libraries, object files and flags are used when
12972+ # linking a shared library.
12973+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12974+
12975+ else
12976+ GXX=no
12977+ with_gnu_ld=no
12978+ wlarc=
12979+ fi
12980+
12981+ # PORTME: fill in a description of your system's C++ link characteristics
12982+ { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12983+echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12984+ ld_shlibs_CXX=yes
12985+ case $host_os in
12986+ aix3*)
12987+ # FIXME: insert proper C++ library support
12988+ ld_shlibs_CXX=no
12989+ ;;
12990+ aix[4-9]*)
12991+ if test "$host_cpu" = ia64; then
12992+ # On IA64, the linker does run time linking by default, so we don't
12993+ # have to do anything special.
12994+ aix_use_runtimelinking=no
12995+ exp_sym_flag='-Bexport'
12996+ no_entry_flag=""
12997+ else
12998+ aix_use_runtimelinking=no
12999+
13000+ # Test if we are trying to use run time linking or normal
13001+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13002+ # need to do runtime linking.
13003+ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13004+ for ld_flag in $LDFLAGS; do
13005+ case $ld_flag in
13006+ *-brtl*)
13007+ aix_use_runtimelinking=yes
13008+ break
13009+ ;;
13010+ esac
13011+ done
13012+ ;;
13013+ esac
13014+
13015+ exp_sym_flag='-bexport'
13016+ no_entry_flag='-bnoentry'
13017+ fi
13018+
13019+ # When large executables or shared objects are built, AIX ld can
13020+ # have problems creating the table of contents. If linking a library
13021+ # or program results in "error TOC overflow" add -mminimal-toc to
13022+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13023+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13024+
13025+ archive_cmds_CXX=''
13026+ hardcode_direct_CXX=yes
13027+ hardcode_direct_absolute_CXX=yes
13028+ hardcode_libdir_separator_CXX=':'
13029+ link_all_deplibs_CXX=yes
13030+ file_list_spec_CXX='${wl}-f,'
13031+
13032+ if test "$GXX" = yes; then
13033+ case $host_os in aix4.[012]|aix4.[012].*)
13034+ # We only want to do this on AIX 4.2 and lower, the check
13035+ # below for broken collect2 doesn't work under 4.3+
13036+ collect2name=`${CC} -print-prog-name=collect2`
13037+ if test -f "$collect2name" &&
13038+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13039+ then
13040+ # We have reworked collect2
13041+ :
13042+ else
13043+ # We have old collect2
13044+ hardcode_direct_CXX=unsupported
13045+ # It fails to find uninstalled libraries when the uninstalled
13046+ # path is not listed in the libpath. Setting hardcode_minus_L
13047+ # to unsupported forces relinking
13048+ hardcode_minus_L_CXX=yes
13049+ hardcode_libdir_flag_spec_CXX='-L$libdir'
13050+ hardcode_libdir_separator_CXX=
13051+ fi
13052+ esac
13053+ shared_flag='-shared'
13054+ if test "$aix_use_runtimelinking" = yes; then
13055+ shared_flag="$shared_flag "'${wl}-G'
13056+ fi
13057+ else
13058+ # not using gcc
13059+ if test "$host_cpu" = ia64; then
13060+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13061+ # chokes on -Wl,-G. The following line is correct:
13062+ shared_flag='-G'
13063+ else
13064+ if test "$aix_use_runtimelinking" = yes; then
13065+ shared_flag='${wl}-G'
13066+ else
13067+ shared_flag='${wl}-bM:SRE'
13068+ fi
13069+ fi
13070+ fi
13071+
13072+ export_dynamic_flag_spec_CXX='${wl}-bexpall'
13073+ # It seems that -bexpall does not export symbols beginning with
13074+ # underscore (_), so it is better to generate a list of symbols to
13075+ # export.
13076+ always_export_symbols_CXX=yes
13077+ if test "$aix_use_runtimelinking" = yes; then
13078+ # Warning - without using the other runtime loading flags (-brtl),
13079+ # -berok will link without error, but may produce a broken library.
13080+ allow_undefined_flag_CXX='-berok'
13081+ # Determine the default libpath from the value encoded in an empty
13082+ # executable.
13083+ if test "${lt_cv_aix_libpath+set}" = set; then
13084+ aix_libpath=$lt_cv_aix_libpath
13085+else
13086+ if test "${lt_cv_aix_libpath__CXX+set}" = set; then
13087+ echo $ECHO_N "(cached) $ECHO_C" >&6
13088+else
13089+ cat >conftest.$ac_ext <<_ACEOF
13090+/* confdefs.h. */
13091+_ACEOF
13092+cat confdefs.h >>conftest.$ac_ext
13093+cat >>conftest.$ac_ext <<_ACEOF
13094+/* end confdefs.h. */
13095+
13096+int
13097+main ()
13098+{
13099+
13100+ ;
13101+ return 0;
13102+}
13103+_ACEOF
13104+rm -f conftest.$ac_objext conftest$ac_exeext
13105+if { (ac_try="$ac_link"
13106+case "(($ac_try" in
13107+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108+ *) ac_try_echo=$ac_try;;
13109+esac
13110+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111+ (eval "$ac_link") 2>conftest.er1
13112+ ac_status=$?
13113+ grep -v '^ *+' conftest.er1 >conftest.err
13114+ rm -f conftest.er1
13115+ cat conftest.err >&5
13116+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117+ (exit $ac_status); } && {
13118+ test -z "$ac_cxx_werror_flag" ||
13119+ test ! -s conftest.err
13120+ } && test -s conftest$ac_exeext &&
13121+ $as_test_x conftest$ac_exeext; then
13122+
13123+ lt_aix_libpath_sed='
13124+ /Import File Strings/,/^$/ {
13125+ /^0/ {
13126+ s/^0 *\([^ ]*\) *$/\1/
13127+ p
13128+ }
13129+ }'
13130+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13131+ # Check for a 64-bit object if we didn't find anything.
13132+ if test -z "$lt_cv_aix_libpath__CXX"; then
13133+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13134+ fi
13135+else
13136+ echo "$as_me: failed program was:" >&5
13137+sed 's/^/| /' conftest.$ac_ext >&5
13138+
13139+
13140+fi
13141+
13142+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13143+ conftest$ac_exeext conftest.$ac_ext
13144+ if test -z "$lt_cv_aix_libpath__CXX"; then
13145+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13146+ fi
13147+
13148+fi
13149+
13150+ aix_libpath=$lt_cv_aix_libpath__CXX
13151+fi
13152+
13153+ hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13154+
13155+ archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13156+ else
13157+ if test "$host_cpu" = ia64; then
13158+ hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13159+ allow_undefined_flag_CXX="-z nodefs"
13160+ archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13161+ else
13162+ # Determine the default libpath from the value encoded in an
13163+ # empty executable.
13164+ if test "${lt_cv_aix_libpath+set}" = set; then
13165+ aix_libpath=$lt_cv_aix_libpath
13166+else
13167+ if test "${lt_cv_aix_libpath__CXX+set}" = set; then
13168+ echo $ECHO_N "(cached) $ECHO_C" >&6
13169+else
13170+ cat >conftest.$ac_ext <<_ACEOF
13171+/* confdefs.h. */
13172+_ACEOF
13173+cat confdefs.h >>conftest.$ac_ext
13174+cat >>conftest.$ac_ext <<_ACEOF
13175+/* end confdefs.h. */
13176+
13177+int
13178+main ()
13179+{
13180+
13181+ ;
13182+ return 0;
13183+}
13184+_ACEOF
13185+rm -f conftest.$ac_objext conftest$ac_exeext
13186+if { (ac_try="$ac_link"
13187+case "(($ac_try" in
13188+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189+ *) ac_try_echo=$ac_try;;
13190+esac
13191+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192+ (eval "$ac_link") 2>conftest.er1
13193+ ac_status=$?
13194+ grep -v '^ *+' conftest.er1 >conftest.err
13195+ rm -f conftest.er1
13196+ cat conftest.err >&5
13197+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198+ (exit $ac_status); } && {
13199+ test -z "$ac_cxx_werror_flag" ||
13200+ test ! -s conftest.err
13201+ } && test -s conftest$ac_exeext &&
13202+ $as_test_x conftest$ac_exeext; then
13203+
13204+ lt_aix_libpath_sed='
13205+ /Import File Strings/,/^$/ {
13206+ /^0/ {
13207+ s/^0 *\([^ ]*\) *$/\1/
13208+ p
13209+ }
13210+ }'
13211+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13212+ # Check for a 64-bit object if we didn't find anything.
13213+ if test -z "$lt_cv_aix_libpath__CXX"; then
13214+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13215+ fi
13216+else
13217+ echo "$as_me: failed program was:" >&5
13218+sed 's/^/| /' conftest.$ac_ext >&5
13219+
13220+
13221+fi
13222+
13223+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13224+ conftest$ac_exeext conftest.$ac_ext
13225+ if test -z "$lt_cv_aix_libpath__CXX"; then
13226+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13227+ fi
13228+
13229+fi
13230+
13231+ aix_libpath=$lt_cv_aix_libpath__CXX
13232+fi
13233+
13234+ hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13235+ # Warning - without using the other run time loading flags,
13236+ # -berok will link without error, but may produce a broken library.
13237+ no_undefined_flag_CXX=' ${wl}-bernotok'
13238+ allow_undefined_flag_CXX=' ${wl}-berok'
13239+ if test "$with_gnu_ld" = yes; then
13240+ # We only use this code for GNU lds that support --whole-archive.
13241+ whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13242+ else
13243+ # Exported symbols can be pulled into shared objects from archives
13244+ whole_archive_flag_spec_CXX='$convenience'
13245+ fi
13246+ archive_cmds_need_lc_CXX=yes
13247+ # This is similar to how AIX traditionally builds its shared
13248+ # libraries.
13249+ archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13250+ fi
13251+ fi
13252+ ;;
13253+
13254+ beos*)
13255+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13256+ allow_undefined_flag_CXX=unsupported
13257+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13258+ # support --undefined. This deserves some investigation. FIXME
13259+ archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13260+ else
13261+ ld_shlibs_CXX=no
13262+ fi
13263+ ;;
13264+
13265+ chorus*)
13266+ case $cc_basename in
13267+ *)
13268+ # FIXME: insert proper C++ library support
13269+ ld_shlibs_CXX=no
13270+ ;;
13271+ esac
13272+ ;;
13273+
13274+ cygwin* | mingw* | pw32* | cegcc*)
13275+ case $GXX,$cc_basename in
13276+ ,cl* | no,cl*)
13277+ # Native MSVC
13278+ # hardcode_libdir_flag_spec is actually meaningless, as there is
13279+ # no search path for DLLs.
13280+ hardcode_libdir_flag_spec_CXX=' '
13281+ allow_undefined_flag_CXX=unsupported
13282+ always_export_symbols_CXX=yes
13283+ file_list_spec_CXX='@'
13284+ # Tell ltmain to make .lib files, not .a files.
13285+ libext=lib
13286+ # Tell ltmain to make .dll files, not .so files.
13287+ shrext_cmds=".dll"
13288+ # FIXME: Setting linknames here is a bad hack.
13289+ archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13290+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13291+ $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13292+ else
13293+ $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13294+ fi~
13295+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13296+ linknames='
13297+ # The linker will not automatically build a static lib if we build a DLL.
13298+ # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13299+ enable_shared_with_static_runtimes_CXX=yes
13300+ # Don't use ranlib
13301+ old_postinstall_cmds_CXX='chmod 644 $oldlib'
13302+ postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13303+ lt_tool_outputfile="@TOOL_OUTPUT@"~
13304+ case $lt_outputfile in
13305+ *.exe|*.EXE) ;;
13306+ *)
13307+ lt_outputfile="$lt_outputfile.exe"
13308+ lt_tool_outputfile="$lt_tool_outputfile.exe"
13309+ ;;
13310+ esac~
13311+ func_to_tool_file "$lt_outputfile"~
13312+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13313+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13314+ $RM "$lt_outputfile.manifest";
13315+ fi'
13316+ ;;
13317+ *)
13318+ # g++
13319+ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13320+ # as there is no search path for DLLs.
13321+ hardcode_libdir_flag_spec_CXX='-L$libdir'
13322+ export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13323+ allow_undefined_flag_CXX=unsupported
13324+ always_export_symbols_CXX=no
13325+ enable_shared_with_static_runtimes_CXX=yes
13326+
13327+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13328+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13329+ # If the export-symbols file already is a .def file (1st line
13330+ # is EXPORTS), use it as is; otherwise, prepend...
13331+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13332+ cp $export_symbols $output_objdir/$soname.def;
13333+ else
13334+ echo EXPORTS > $output_objdir/$soname.def;
13335+ cat $export_symbols >> $output_objdir/$soname.def;
13336+ fi~
13337+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13338+ else
13339+ ld_shlibs_CXX=no
13340+ fi
13341+ ;;
13342+ esac
13343+ ;;
13344+ darwin* | rhapsody*)
13345+
13346+
13347+ archive_cmds_need_lc_CXX=no
13348+ hardcode_direct_CXX=no
13349+ hardcode_automatic_CXX=yes
13350+ hardcode_shlibpath_var_CXX=unsupported
13351+ if test "$lt_cv_ld_force_load" = "yes"; then
13352+ whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13353+ else
13354+ whole_archive_flag_spec_CXX=''
13355+ fi
13356+ link_all_deplibs_CXX=yes
13357+ allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13358+ case $cc_basename in
13359+ ifort*) _lt_dar_can_shared=yes ;;
13360+ *) _lt_dar_can_shared=$GCC ;;
13361+ esac
13362+ if test "$_lt_dar_can_shared" = "yes"; then
13363+ output_verbose_link_cmd=func_echo_all
13364+ archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13365+ module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13366+ archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13367+ module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13368+ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13369+ archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13370+ archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13371+ fi
13372+
13373+ else
13374+ ld_shlibs_CXX=no
13375+ fi
13376+
13377+ ;;
13378+
13379+ dgux*)
13380+ case $cc_basename in
13381+ ec++*)
13382+ # FIXME: insert proper C++ library support
13383+ ld_shlibs_CXX=no
13384+ ;;
13385+ ghcx*)
13386+ # Green Hills C++ Compiler
13387+ # FIXME: insert proper C++ library support
13388+ ld_shlibs_CXX=no
13389+ ;;
13390+ *)
13391+ # FIXME: insert proper C++ library support
13392+ ld_shlibs_CXX=no
13393+ ;;
13394+ esac
13395+ ;;
13396+
13397+ freebsd[12]*)
13398+ # C++ shared libraries reported to be fairly broken before
13399+ # switch to ELF
13400+ ld_shlibs_CXX=no
13401+ ;;
13402+
13403+ freebsd-elf*)
13404+ archive_cmds_need_lc_CXX=no
13405+ ;;
13406+
13407+ freebsd* | dragonfly*)
13408+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13409+ # conventions
13410+ ld_shlibs_CXX=yes
13411+ ;;
13412+
13413+ gnu*)
13414+ ;;
13415+
13416+ haiku*)
13417+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13418+ link_all_deplibs_CXX=yes
13419+ ;;
13420+
13421+ hpux9*)
13422+ hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13423+ hardcode_libdir_separator_CXX=:
13424+ export_dynamic_flag_spec_CXX='${wl}-E'
13425+ hardcode_direct_CXX=yes
13426+ hardcode_minus_L_CXX=yes # Not in the search PATH,
13427+ # but as the default
13428+ # location of the library.
13429+
13430+ case $cc_basename in
13431+ CC*)
13432+ # FIXME: insert proper C++ library support
13433+ ld_shlibs_CXX=no
13434+ ;;
13435+ aCC*)
13436+ archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13437+ # Commands to make compiler produce verbose output that lists
13438+ # what "hidden" libraries, object files and flags are used when
13439+ # linking a shared library.
13440+ #
13441+ # There doesn't appear to be a way to prevent this compiler from
13442+ # explicitly linking system object files so we need to strip them
13443+ # from the output so that they don't get included in the library
13444+ # dependencies.
13445+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13446+ ;;
13447+ *)
13448+ if test "$GXX" = yes; then
13449+ archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13450+ else
13451+ # FIXME: insert proper C++ library support
13452+ ld_shlibs_CXX=no
13453+ fi
13454+ ;;
13455+ esac
13456+ ;;
13457+
13458+ hpux10*|hpux11*)
13459+ if test $with_gnu_ld = no; then
13460+ hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13461+ hardcode_libdir_separator_CXX=:
13462+
13463+ case $host_cpu in
13464+ hppa*64*|ia64*)
13465+ ;;
13466+ *)
13467+ export_dynamic_flag_spec_CXX='${wl}-E'
13468+ ;;
13469+ esac
13470+ fi
13471+ case $host_cpu in
13472+ hppa*64*|ia64*)
13473+ hardcode_direct_CXX=no
13474+ hardcode_shlibpath_var_CXX=no
13475+ ;;
13476+ *)
13477+ hardcode_direct_CXX=yes
13478+ hardcode_direct_absolute_CXX=yes
13479+ hardcode_minus_L_CXX=yes # Not in the search PATH,
13480+ # but as the default
13481+ # location of the library.
13482+ ;;
13483+ esac
13484+
13485+ case $cc_basename in
13486+ CC*)
13487+ # FIXME: insert proper C++ library support
13488+ ld_shlibs_CXX=no
13489+ ;;
13490+ aCC*)
13491+ case $host_cpu in
13492+ hppa*64*)
13493+ archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13494+ ;;
13495+ ia64*)
13496+ archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13497+ ;;
13498+ *)
13499+ archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13500+ ;;
13501+ esac
13502+ # Commands to make compiler produce verbose output that lists
13503+ # what "hidden" libraries, object files and flags are used when
13504+ # linking a shared library.
13505+ #
13506+ # There doesn't appear to be a way to prevent this compiler from
13507+ # explicitly linking system object files so we need to strip them
13508+ # from the output so that they don't get included in the library
13509+ # dependencies.
13510+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13511+ ;;
13512+ *)
13513+ if test "$GXX" = yes; then
13514+ if test $with_gnu_ld = no; then
13515+ case $host_cpu in
13516+ hppa*64*)
13517+ archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13518+ ;;
13519+ ia64*)
13520+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13521+ ;;
13522+ *)
13523+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13524+ ;;
13525+ esac
13526+ fi
13527+ else
13528+ # FIXME: insert proper C++ library support
13529+ ld_shlibs_CXX=no
13530+ fi
13531+ ;;
13532+ esac
13533+ ;;
13534+
13535+ interix[3-9]*)
13536+ hardcode_direct_CXX=no
13537+ hardcode_shlibpath_var_CXX=no
13538+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13539+ export_dynamic_flag_spec_CXX='${wl}-E'
13540+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13541+ # Instead, shared libraries are loaded at an image base (0x10000000 by
13542+ # default) and relocated if they conflict, which is a slow very memory
13543+ # consuming and fragmenting process. To avoid this, we pick a random,
13544+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13545+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13546+ archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13547+ archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13548+ ;;
13549+ irix5* | irix6*)
13550+ case $cc_basename in
13551+ CC*)
13552+ # SGI C++
13553+ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13554+
13555+ # Archives containing C++ object files must be created using
13556+ # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13557+ # necessary to make sure instantiated templates are included
13558+ # in the archive.
13559+ old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13560+ ;;
13561+ *)
13562+ if test "$GXX" = yes; then
13563+ if test "$with_gnu_ld" = no; then
13564+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13565+ else
13566+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13567+ fi
13568+ fi
13569+ link_all_deplibs_CXX=yes
13570+ ;;
13571+ esac
13572+ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13573+ hardcode_libdir_separator_CXX=:
13574+ inherit_rpath_CXX=yes
13575+ ;;
13576+
13577+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
13578+ case $cc_basename in
13579+ KCC*)
13580+ # Kuck and Associates, Inc. (KAI) C++ Compiler
13581+
13582+ # KCC will only create a shared library if the output file
13583+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
13584+ # to its proper name (with version) after linking.
13585+ archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13586+ archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13587+ # Commands to make compiler produce verbose output that lists
13588+ # what "hidden" libraries, object files and flags are used when
13589+ # linking a shared library.
13590+ #
13591+ # There doesn't appear to be a way to prevent this compiler from
13592+ # explicitly linking system object files so we need to strip them
13593+ # from the output so that they don't get included in the library
13594+ # dependencies.
13595+ output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13596+
13597+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13598+ export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13599+
13600+ # Archives containing C++ object files must be created using
13601+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13602+ old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13603+ ;;
13604+ icpc* | ecpc* )
13605+ # Intel C++
13606+ with_gnu_ld=yes
13607+ # version 8.0 and above of icpc choke on multiply defined symbols
13608+ # if we add $predep_objects and $postdep_objects, however 7.1 and
13609+ # earlier do not add the objects themselves.
13610+ case `$CC -V 2>&1` in
13611+ *"Version 7."*)
13612+ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13613+ archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13614+ ;;
13615+ *) # Version 8.0 or newer
13616+ tmp_idyn=
13617+ case $host_cpu in
13618+ ia64*) tmp_idyn=' -i_dynamic';;
13619+ esac
13620+ archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13621+ archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13622+ ;;
13623+ esac
13624+ archive_cmds_need_lc_CXX=no
13625+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13626+ export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13627+ whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13628+ ;;
13629+ pgCC* | pgcpp*)
13630+ # Portland Group C++ compiler
13631+ case `$CC -V` in
13632+ *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13633+ prelink_cmds_CXX='tpldir=Template.dir~
13634+ rm -rf $tpldir~
13635+ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13636+ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13637+ old_archive_cmds_CXX='tpldir=Template.dir~
13638+ rm -rf $tpldir~
13639+ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13640+ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13641+ $RANLIB $oldlib'
13642+ archive_cmds_CXX='tpldir=Template.dir~
13643+ rm -rf $tpldir~
13644+ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13645+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13646+ archive_expsym_cmds_CXX='tpldir=Template.dir~
13647+ rm -rf $tpldir~
13648+ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13649+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13650+ ;;
13651+ *) # Version 6 and above use weak symbols
13652+ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13653+ archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13654+ ;;
13655+ esac
13656+
13657+ hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13658+ export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13659+ whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13660+ ;;
13661+ cxx*)
13662+ # Compaq C++
13663+ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13664+ archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13665+
13666+ runpath_var=LD_RUN_PATH
13667+ hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13668+ hardcode_libdir_separator_CXX=:
13669+
13670+ # Commands to make compiler produce verbose output that lists
13671+ # what "hidden" libraries, object files and flags are used when
13672+ # linking a shared library.
13673+ #
13674+ # There doesn't appear to be a way to prevent this compiler from
13675+ # explicitly linking system object files so we need to strip them
13676+ # from the output so that they don't get included in the library
13677+ # dependencies.
13678+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13679+ ;;
13680+ xl* | mpixl* | bgxl*)
13681+ # IBM XL 8.0 on PPC, with GNU ld
13682+ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13683+ export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13684+ archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13685+ if test "x$supports_anon_versioning" = xyes; then
13686+ archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13687+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13688+ echo "local: *; };" >> $output_objdir/$libname.ver~
13689+ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13690+ fi
13691+ ;;
13692+ *)
13693+ case `$CC -V 2>&1 | sed 5q` in
13694+ *Sun\ C*)
13695+ # Sun C++ 5.9
13696+ no_undefined_flag_CXX=' -zdefs'
13697+ archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13698+ archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13699+ hardcode_libdir_flag_spec_CXX='-R$libdir'
13700+ whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13701+ compiler_needs_object_CXX=yes
13702+
13703+ # Not sure whether something based on
13704+ # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13705+ # would be better.
13706+ output_verbose_link_cmd='func_echo_all'
13707+
13708+ # Archives containing C++ object files must be created using
13709+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
13710+ # necessary to make sure instantiated templates are included
13711+ # in the archive.
13712+ old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13713+ ;;
13714+ esac
13715+ ;;
13716+ esac
13717+ ;;
13718+
13719+ lynxos*)
13720+ # FIXME: insert proper C++ library support
13721+ ld_shlibs_CXX=no
13722+ ;;
13723+
13724+ m88k*)
13725+ # FIXME: insert proper C++ library support
13726+ ld_shlibs_CXX=no
13727+ ;;
13728+
13729+ mvs*)
13730+ case $cc_basename in
13731+ cxx*)
13732+ # FIXME: insert proper C++ library support
13733+ ld_shlibs_CXX=no
13734+ ;;
13735+ *)
13736+ # FIXME: insert proper C++ library support
13737+ ld_shlibs_CXX=no
13738+ ;;
13739+ esac
13740+ ;;
13741+
13742+ netbsd*)
13743+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13744+ archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13745+ wlarc=
13746+ hardcode_libdir_flag_spec_CXX='-R$libdir'
13747+ hardcode_direct_CXX=yes
13748+ hardcode_shlibpath_var_CXX=no
13749+ fi
13750+ # Workaround some broken pre-1.5 toolchains
13751+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13752+ ;;
13753+
13754+ *nto* | *qnx*)
13755+ ld_shlibs_CXX=yes
13756+ ;;
13757+
13758+ openbsd2*)
13759+ # C++ shared libraries are fairly broken
13760+ ld_shlibs_CXX=no
13761+ ;;
13762+
13763+ openbsd*)
13764+ if test -f /usr/libexec/ld.so; then
13765+ hardcode_direct_CXX=yes
13766+ hardcode_shlibpath_var_CXX=no
13767+ hardcode_direct_absolute_CXX=yes
13768+ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13769+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13770+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13771+ archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13772+ export_dynamic_flag_spec_CXX='${wl}-E'
13773+ whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13774+ fi
13775+ output_verbose_link_cmd=func_echo_all
13776+ else
13777+ ld_shlibs_CXX=no
13778+ fi
13779+ ;;
13780+
13781+ osf3* | osf4* | osf5*)
13782+ case $cc_basename in
13783+ KCC*)
13784+ # Kuck and Associates, Inc. (KAI) C++ Compiler
13785+
13786+ # KCC will only create a shared library if the output file
13787+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
13788+ # to its proper name (with version) after linking.
13789+ archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13790+
13791+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13792+ hardcode_libdir_separator_CXX=:
13793+
13794+ # Archives containing C++ object files must be created using
13795+ # the KAI C++ compiler.
13796+ case $host in
13797+ osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13798+ *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13799+ esac
13800+ ;;
13801+ RCC*)
13802+ # Rational C++ 2.4.1
13803+ # FIXME: insert proper C++ library support
13804+ ld_shlibs_CXX=no
13805+ ;;
13806+ cxx*)
13807+ case $host in
13808+ osf3*)
13809+ allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13810+ archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13811+ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13812+ ;;
13813+ *)
13814+ allow_undefined_flag_CXX=' -expect_unresolved \*'
13815+ archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13816+ archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13817+ echo "-hidden">> $lib.exp~
13818+ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13819+ $RM $lib.exp'
13820+ hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13821+ ;;
13822+ esac
13823+
13824+ hardcode_libdir_separator_CXX=:
13825+
13826+ # Commands to make compiler produce verbose output that lists
13827+ # what "hidden" libraries, object files and flags are used when
13828+ # linking a shared library.
13829+ #
13830+ # There doesn't appear to be a way to prevent this compiler from
13831+ # explicitly linking system object files so we need to strip them
13832+ # from the output so that they don't get included in the library
13833+ # dependencies.
13834+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13835+ ;;
13836+ *)
13837+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13838+ allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13839+ case $host in
13840+ osf3*)
13841+ archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13842+ ;;
13843+ *)
13844+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13845+ ;;
13846+ esac
13847+
13848+ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13849+ hardcode_libdir_separator_CXX=:
13850+
13851+ # Commands to make compiler produce verbose output that lists
13852+ # what "hidden" libraries, object files and flags are used when
13853+ # linking a shared library.
13854+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13855+
13856+ else
13857+ # FIXME: insert proper C++ library support
13858+ ld_shlibs_CXX=no
13859+ fi
13860+ ;;
13861+ esac
13862+ ;;
13863+
13864+ psos*)
13865+ # FIXME: insert proper C++ library support
13866+ ld_shlibs_CXX=no
13867+ ;;
13868+
13869+ sunos4*)
13870+ case $cc_basename in
13871+ CC*)
13872+ # Sun C++ 4.x
13873+ # FIXME: insert proper C++ library support
13874+ ld_shlibs_CXX=no
13875+ ;;
13876+ lcc*)
13877+ # Lucid
13878+ # FIXME: insert proper C++ library support
13879+ ld_shlibs_CXX=no
13880+ ;;
13881+ *)
13882+ # FIXME: insert proper C++ library support
13883+ ld_shlibs_CXX=no
13884+ ;;
13885+ esac
13886+ ;;
13887+
13888+ solaris*)
13889+ case $cc_basename in
13890+ CC* | sunCC*)
13891+ # Sun C++ 4.2, 5.x and Centerline C++
13892+ archive_cmds_need_lc_CXX=yes
13893+ no_undefined_flag_CXX=' -zdefs'
13894+ archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13895+ archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13896+ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13897+
13898+ hardcode_libdir_flag_spec_CXX='-R$libdir'
13899+ hardcode_shlibpath_var_CXX=no
13900+ case $host_os in
13901+ solaris2.[0-5] | solaris2.[0-5].*) ;;
13902+ *)
13903+ # The compiler driver will combine and reorder linker options,
13904+ # but understands `-z linker_flag'.
13905+ # Supported since Solaris 2.6 (maybe 2.5.1?)
13906+ whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13907+ ;;
13908+ esac
13909+ link_all_deplibs_CXX=yes
13910+
13911+ output_verbose_link_cmd='func_echo_all'
13912+
13913+ # Archives containing C++ object files must be created using
13914+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
13915+ # necessary to make sure instantiated templates are included
13916+ # in the archive.
13917+ old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13918+ ;;
13919+ gcx*)
13920+ # Green Hills C++ Compiler
13921+ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13922+
13923+ # The C++ compiler must be used to create the archive.
13924+ old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13925+ ;;
13926+ *)
13927+ # GNU C++ compiler with Solaris linker
13928+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13929+ no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13930+ if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13931+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13932+ archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13933+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13934+
13935+ # Commands to make compiler produce verbose output that lists
13936+ # what "hidden" libraries, object files and flags are used when
13937+ # linking a shared library.
13938+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13939+ else
13940+ # g++ 2.7 appears to require `-G' NOT `-shared' on this
13941+ # platform.
13942+ archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13943+ archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13944+ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13945+
13946+ # Commands to make compiler produce verbose output that lists
13947+ # what "hidden" libraries, object files and flags are used when
13948+ # linking a shared library.
13949+ output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13950+ fi
13951+
13952+ hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13953+ case $host_os in
13954+ solaris2.[0-5] | solaris2.[0-5].*) ;;
13955+ *)
13956+ whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13957+ ;;
13958+ esac
13959+ fi
13960+ ;;
13961+ esac
13962+ ;;
13963+
13964+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13965+ no_undefined_flag_CXX='${wl}-z,text'
13966+ archive_cmds_need_lc_CXX=no
13967+ hardcode_shlibpath_var_CXX=no
13968+ runpath_var='LD_RUN_PATH'
13969+
13970+ case $cc_basename in
13971+ CC*)
13972+ archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13973+ archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13974+ ;;
13975+ *)
13976+ archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13977+ archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13978+ ;;
13979+ esac
13980+ ;;
13981+
13982+ sysv5* | sco3.2v5* | sco5v6*)
13983+ # Note: We can NOT use -z defs as we might desire, because we do not
13984+ # link with -lc, and that would cause any symbols used from libc to
13985+ # always be unresolved, which means just about no library would
13986+ # ever link correctly. If we're not using GNU ld we use -z text
13987+ # though, which does catch some bad symbols but isn't as heavy-handed
13988+ # as -z defs.
13989+ no_undefined_flag_CXX='${wl}-z,text'
13990+ allow_undefined_flag_CXX='${wl}-z,nodefs'
13991+ archive_cmds_need_lc_CXX=no
13992+ hardcode_shlibpath_var_CXX=no
13993+ hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13994+ hardcode_libdir_separator_CXX=':'
13995+ link_all_deplibs_CXX=yes
13996+ export_dynamic_flag_spec_CXX='${wl}-Bexport'
13997+ runpath_var='LD_RUN_PATH'
13998+
13999+ case $cc_basename in
14000+ CC*)
14001+ archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14002+ archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14003+ old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14004+ '"$old_archive_cmds_CXX"
14005+ reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14006+ '"$reload_cmds_CXX"
14007+ ;;
14008+ *)
14009+ archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14010+ archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14011+ ;;
14012+ esac
14013+ ;;
14014+
14015+ tandem*)
14016+ case $cc_basename in
14017+ NCC*)
14018+ # NonStop-UX NCC 3.20
14019+ # FIXME: insert proper C++ library support
14020+ ld_shlibs_CXX=no
14021+ ;;
14022+ *)
14023+ # FIXME: insert proper C++ library support
14024+ ld_shlibs_CXX=no
14025+ ;;
14026+ esac
14027+ ;;
14028+
14029+ vxworks*)
14030+ # FIXME: insert proper C++ library support
14031+ ld_shlibs_CXX=no
14032+ ;;
14033+
14034+ *)
14035+ # FIXME: insert proper C++ library support
14036+ ld_shlibs_CXX=no
14037+ ;;
14038+ esac
14039+
14040+ { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14041+echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14042+ test "$ld_shlibs_CXX" = no && can_build_shared=no
14043+
14044+ GCC_CXX="$GXX"
14045+ LD_CXX="$LD"
14046+
14047+ ## CAVEAT EMPTOR:
14048+ ## There is no encapsulation within the following macros, do not change
14049+ ## the running order or otherwise move them around unless you know exactly
14050+ ## what you are doing...
14051+ # Dependencies to place before and after the object being linked:
14052+predep_objects_CXX=
14053+postdep_objects_CXX=
14054+predeps_CXX=
14055+postdeps_CXX=
14056+compiler_lib_search_path_CXX=
14057+
14058+cat > conftest.$ac_ext <<_LT_EOF
14059+class Foo
14060+{
14061+public:
14062+ Foo (void) { a = 0; }
14063+private:
14064+ int a;
14065+};
14066+_LT_EOF
14067+
14068+
14069+_lt_libdeps_save_CFLAGS=$CFLAGS
14070+case "$CC $CFLAGS " in #(
14071+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14072+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14073+esac
14074+
14075+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14076+ (eval $ac_compile) 2>&5
14077+ ac_status=$?
14078+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079+ (exit $ac_status); }; then
14080+ # Parse the compiler output and extract the necessary
14081+ # objects, libraries and library flags.
14082+
14083+ # Sentinel used to keep track of whether or not we are before
14084+ # the conftest object file.
14085+ pre_test_object_deps_done=no
14086+
14087+ for p in `eval "$output_verbose_link_cmd"`; do
14088+ case ${prev}${p} in
14089+
14090+ -L* | -R* | -l*)
14091+ # Some compilers place space between "-{L,R}" and the path.
14092+ # Remove the space.
14093+ if test $p = "-L" ||
14094+ test $p = "-R"; then
14095+ prev=$p
14096+ continue
14097+ fi
14098+
14099+ # Expand the sysroot to ease extracting the directories later.
14100+ if test -z "$prev"; then
14101+ case $p in
14102+ -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14103+ -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14104+ -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14105+ esac
14106+ fi
14107+ case $p in
14108+ =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14109+ esac
14110+ if test "$pre_test_object_deps_done" = no; then
14111+ case ${prev} in
14112+ -L | -R)
14113+ # Internal compiler library paths should come after those
14114+ # provided the user. The postdeps already come after the
14115+ # user supplied libs so there is no need to process them.
14116+ if test -z "$compiler_lib_search_path_CXX"; then
14117+ compiler_lib_search_path_CXX="${prev}${p}"
14118+ else
14119+ compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14120+ fi
14121+ ;;
14122+ # The "-l" case would never come before the object being
14123+ # linked, so don't bother handling this case.
14124+ esac
14125+ else
14126+ if test -z "$postdeps_CXX"; then
14127+ postdeps_CXX="${prev}${p}"
14128+ else
14129+ postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14130+ fi
14131+ fi
14132+ prev=
14133+ ;;
14134+
14135+ *.lto.$objext) ;; # Ignore GCC LTO objects
14136+ *.$objext)
14137+ # This assumes that the test object file only shows up
14138+ # once in the compiler output.
14139+ if test "$p" = "conftest.$objext"; then
14140+ pre_test_object_deps_done=yes
14141+ continue
14142+ fi
14143+
14144+ if test "$pre_test_object_deps_done" = no; then
14145+ if test -z "$predep_objects_CXX"; then
14146+ predep_objects_CXX="$p"
14147+ else
14148+ predep_objects_CXX="$predep_objects_CXX $p"
14149+ fi
14150+ else
14151+ if test -z "$postdep_objects_CXX"; then
14152+ postdep_objects_CXX="$p"
14153+ else
14154+ postdep_objects_CXX="$postdep_objects_CXX $p"
14155+ fi
14156+ fi
14157+ ;;
14158+
14159+ *) ;; # Ignore the rest.
14160+
14161+ esac
14162+ done
14163+
14164+ # Clean up.
14165+ rm -f a.out a.exe
14166+else
14167+ echo "libtool.m4: error: problem compiling CXX test program"
14168+fi
14169+
14170+$RM -f confest.$objext
14171+CFLAGS=$_lt_libdeps_save_CFLAGS
14172+
14173+# PORTME: override above test on systems where it is broken
14174+case $host_os in
14175+interix[3-9]*)
14176+ # Interix 3.5 installs completely hosed .la files for C++, so rather than
14177+ # hack all around it, let's just trust "g++" to DTRT.
14178+ predep_objects_CXX=
14179+ postdep_objects_CXX=
14180+ postdeps_CXX=
14181+ ;;
14182+
14183+linux*)
14184+ case `$CC -V 2>&1 | sed 5q` in
14185+ *Sun\ C*)
14186+ # Sun C++ 5.9
14187+
14188+ # The more standards-conforming stlport4 library is
14189+ # incompatible with the Cstd library. Avoid specifying
14190+ # it if it's in CXXFLAGS. Ignore libCrun as
14191+ # -library=stlport4 depends on it.
14192+ case " $CXX $CXXFLAGS " in
14193+ *" -library=stlport4 "*)
14194+ solaris_use_stlport4=yes
14195+ ;;
14196+ esac
14197+
14198+ if test "$solaris_use_stlport4" != yes; then
14199+ postdeps_CXX='-library=Cstd -library=Crun'
14200+ fi
14201+ ;;
14202+ esac
14203+ ;;
14204+
14205+solaris*)
14206+ case $cc_basename in
14207+ CC* | sunCC*)
14208+ # The more standards-conforming stlport4 library is
14209+ # incompatible with the Cstd library. Avoid specifying
14210+ # it if it's in CXXFLAGS. Ignore libCrun as
14211+ # -library=stlport4 depends on it.
14212+ case " $CXX $CXXFLAGS " in
14213+ *" -library=stlport4 "*)
14214+ solaris_use_stlport4=yes
14215+ ;;
14216+ esac
14217+
14218+ # Adding this requires a known-good setup of shared libraries for
14219+ # Sun compiler versions before 5.6, else PIC objects from an old
14220+ # archive will be linked into the output, leading to subtle bugs.
14221+ if test "$solaris_use_stlport4" != yes; then
14222+ postdeps_CXX='-library=Cstd -library=Crun'
14223+ fi
14224+ ;;
14225+ esac
14226+ ;;
14227+esac
14228+
14229+
14230+case " $postdeps_CXX " in
14231+*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14232+esac
14233+ compiler_lib_search_dirs_CXX=
14234+if test -n "${compiler_lib_search_path_CXX}"; then
14235+ compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14236+fi
14237+
14238+
14239+
14240+
14241+
14242+
14243+
14244+
14245+
14246+
14247+
14248+
14249+
14250+
14251+
14252+
14253+
14254+
14255+
14256+
14257+
14258+
14259+
14260+
14261+
14262+
14263+
14264+
14265+
14266+
14267+
14268+ lt_prog_compiler_wl_CXX=
14269+lt_prog_compiler_pic_CXX=
14270+lt_prog_compiler_static_CXX=
14271+
14272+
14273+ # C++ specific cases for pic, static, wl, etc.
14274+ if test "$GXX" = yes; then
14275+ lt_prog_compiler_wl_CXX='-Wl,'
14276+ lt_prog_compiler_static_CXX='-static'
14277+
14278+ case $host_os in
14279+ aix*)
14280+ # All AIX code is PIC.
14281+ if test "$host_cpu" = ia64; then
14282+ # AIX 5 now supports IA64 processor
14283+ lt_prog_compiler_static_CXX='-Bstatic'
14284+ fi
14285+ ;;
14286+
14287+ amigaos*)
14288+ case $host_cpu in
14289+ powerpc)
14290+ # see comment about AmigaOS4 .so support
14291+ lt_prog_compiler_pic_CXX='-fPIC'
14292+ ;;
14293+ m68k)
14294+ # FIXME: we need at least 68020 code to build shared libraries, but
14295+ # adding the `-m68020' flag to GCC prevents building anything better,
14296+ # like `-m68040'.
14297+ lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14298+ ;;
14299+ esac
14300+ ;;
14301+
14302+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14303+ # PIC is the default for these OSes.
14304+ ;;
14305+ mingw* | cygwin* | os2* | pw32* | cegcc*)
14306+ # This hack is so that the source file can tell whether it is being
14307+ # built for inclusion in a dll (and should export symbols for example).
14308+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
14309+ # (--disable-auto-import) libraries
14310+ lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14311+ ;;
14312+ darwin* | rhapsody*)
14313+ # PIC is the default on this platform
14314+ # Common symbols not allowed in MH_DYLIB files
14315+ lt_prog_compiler_pic_CXX='-fno-common'
14316+ ;;
14317+ *djgpp*)
14318+ # DJGPP does not support shared libraries at all
14319+ lt_prog_compiler_pic_CXX=
14320+ ;;
14321+ haiku*)
14322+ # PIC is the default for Haiku.
14323+ # The "-static" flag exists, but is broken.
14324+ lt_prog_compiler_static_CXX=
14325+ ;;
14326+ interix[3-9]*)
14327+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14328+ # Instead, we relocate shared libraries at runtime.
14329+ ;;
14330+ sysv4*MP*)
14331+ if test -d /usr/nec; then
14332+ lt_prog_compiler_pic_CXX=-Kconform_pic
14333+ fi
14334+ ;;
14335+ hpux*)
14336+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14337+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14338+ # sets the default TLS model and affects inlining.
14339+ case $host_cpu in
14340+ hppa*64*)
14341+ ;;
14342+ *)
14343+ lt_prog_compiler_pic_CXX='-fPIC'
14344+ ;;
14345+ esac
14346+ ;;
14347+ *qnx* | *nto*)
14348+ # QNX uses GNU C++, but need to define -shared option too, otherwise
14349+ # it will coredump.
14350+ lt_prog_compiler_pic_CXX='-fPIC -shared'
14351+ ;;
14352+ *)
14353+ lt_prog_compiler_pic_CXX='-fPIC'
14354+ ;;
14355+ esac
14356+ else
14357+ case $host_os in
14358+ aix[4-9]*)
14359+ # All AIX code is PIC.
14360+ if test "$host_cpu" = ia64; then
14361+ # AIX 5 now supports IA64 processor
14362+ lt_prog_compiler_static_CXX='-Bstatic'
14363+ else
14364+ lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14365+ fi
14366+ ;;
14367+ chorus*)
14368+ case $cc_basename in
14369+ cxch68*)
14370+ # Green Hills C++ Compiler
14371+ # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14372+ ;;
14373+ esac
14374+ ;;
14375+ mingw* | cygwin* | os2* | pw32* | cegcc*)
14376+ # This hack is so that the source file can tell whether it is being
14377+ # built for inclusion in a dll (and should export symbols for example).
14378+ lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14379+ ;;
14380+ dgux*)
14381+ case $cc_basename in
14382+ ec++*)
14383+ lt_prog_compiler_pic_CXX='-KPIC'
14384+ ;;
14385+ ghcx*)
14386+ # Green Hills C++ Compiler
14387+ lt_prog_compiler_pic_CXX='-pic'
14388+ ;;
14389+ *)
14390+ ;;
14391+ esac
14392+ ;;
14393+ freebsd* | dragonfly*)
14394+ # FreeBSD uses GNU C++
14395+ ;;
14396+ hpux9* | hpux10* | hpux11*)
14397+ case $cc_basename in
14398+ CC*)
14399+ lt_prog_compiler_wl_CXX='-Wl,'
14400+ lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14401+ if test "$host_cpu" != ia64; then
14402+ lt_prog_compiler_pic_CXX='+Z'
14403+ fi
14404+ ;;
14405+ aCC*)
14406+ lt_prog_compiler_wl_CXX='-Wl,'
14407+ lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14408+ case $host_cpu in
14409+ hppa*64*|ia64*)
14410+ # +Z the default
14411+ ;;
14412+ *)
14413+ lt_prog_compiler_pic_CXX='+Z'
14414+ ;;
14415+ esac
14416+ ;;
14417+ *)
14418+ ;;
14419+ esac
14420+ ;;
14421+ interix*)
14422+ # This is c89, which is MS Visual C++ (no shared libs)
14423+ # Anyone wants to do a port?
14424+ ;;
14425+ irix5* | irix6* | nonstopux*)
14426+ case $cc_basename in
14427+ CC*)
14428+ lt_prog_compiler_wl_CXX='-Wl,'
14429+ lt_prog_compiler_static_CXX='-non_shared'
14430+ # CC pic flag -KPIC is the default.
14431+ ;;
14432+ *)
14433+ ;;
14434+ esac
14435+ ;;
14436+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
14437+ case $cc_basename in
14438+ KCC*)
14439+ # KAI C++ Compiler
14440+ lt_prog_compiler_wl_CXX='--backend -Wl,'
14441+ lt_prog_compiler_pic_CXX='-fPIC'
14442+ ;;
14443+ ecpc* )
14444+ # old Intel C++ for x86_64 which still supported -KPIC.
14445+ lt_prog_compiler_wl_CXX='-Wl,'
14446+ lt_prog_compiler_pic_CXX='-KPIC'
14447+ lt_prog_compiler_static_CXX='-static'
14448+ ;;
14449+ icpc* )
14450+ # Intel C++, used to be incompatible with GCC.
14451+ # ICC 10 doesn't accept -KPIC any more.
14452+ lt_prog_compiler_wl_CXX='-Wl,'
14453+ lt_prog_compiler_pic_CXX='-fPIC'
14454+ lt_prog_compiler_static_CXX='-static'
14455+ ;;
14456+ pgCC* | pgcpp*)
14457+ # Portland Group C++ compiler
14458+ lt_prog_compiler_wl_CXX='-Wl,'
14459+ lt_prog_compiler_pic_CXX='-fpic'
14460+ lt_prog_compiler_static_CXX='-Bstatic'
14461+ ;;
14462+ cxx*)
14463+ # Compaq C++
14464+ # Make sure the PIC flag is empty. It appears that all Alpha
14465+ # Linux and Compaq Tru64 Unix objects are PIC.
14466+ lt_prog_compiler_pic_CXX=
14467+ lt_prog_compiler_static_CXX='-non_shared'
14468+ ;;
14469+ xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14470+ # IBM XL 8.0, 9.0 on PPC and BlueGene
14471+ lt_prog_compiler_wl_CXX='-Wl,'
14472+ lt_prog_compiler_pic_CXX='-qpic'
14473+ lt_prog_compiler_static_CXX='-qstaticlink'
14474+ ;;
14475+ *)
14476+ case `$CC -V 2>&1 | sed 5q` in
14477+ *Sun\ C*)
14478+ # Sun C++ 5.9
14479+ lt_prog_compiler_pic_CXX='-KPIC'
14480+ lt_prog_compiler_static_CXX='-Bstatic'
14481+ lt_prog_compiler_wl_CXX='-Qoption ld '
14482+ ;;
14483+ esac
14484+ ;;
14485+ esac
14486+ ;;
14487+ lynxos*)
14488+ ;;
14489+ m88k*)
14490+ ;;
14491+ mvs*)
14492+ case $cc_basename in
14493+ cxx*)
14494+ lt_prog_compiler_pic_CXX='-W c,exportall'
14495+ ;;
14496+ *)
14497+ ;;
14498+ esac
14499+ ;;
14500+ netbsd*)
14501+ ;;
14502+ *qnx* | *nto*)
14503+ # QNX uses GNU C++, but need to define -shared option too, otherwise
14504+ # it will coredump.
14505+ lt_prog_compiler_pic_CXX='-fPIC -shared'
14506+ ;;
14507+ osf3* | osf4* | osf5*)
14508+ case $cc_basename in
14509+ KCC*)
14510+ lt_prog_compiler_wl_CXX='--backend -Wl,'
14511+ ;;
14512+ RCC*)
14513+ # Rational C++ 2.4.1
14514+ lt_prog_compiler_pic_CXX='-pic'
14515+ ;;
14516+ cxx*)
14517+ # Digital/Compaq C++
14518+ lt_prog_compiler_wl_CXX='-Wl,'
14519+ # Make sure the PIC flag is empty. It appears that all Alpha
14520+ # Linux and Compaq Tru64 Unix objects are PIC.
14521+ lt_prog_compiler_pic_CXX=
14522+ lt_prog_compiler_static_CXX='-non_shared'
14523+ ;;
14524+ *)
14525+ ;;
14526+ esac
14527+ ;;
14528+ psos*)
14529+ ;;
14530+ solaris*)
14531+ case $cc_basename in
14532+ CC* | sunCC*)
14533+ # Sun C++ 4.2, 5.x and Centerline C++
14534+ lt_prog_compiler_pic_CXX='-KPIC'
14535+ lt_prog_compiler_static_CXX='-Bstatic'
14536+ lt_prog_compiler_wl_CXX='-Qoption ld '
14537+ ;;
14538+ gcx*)
14539+ # Green Hills C++ Compiler
14540+ lt_prog_compiler_pic_CXX='-PIC'
14541+ ;;
14542+ *)
14543+ ;;
14544+ esac
14545+ ;;
14546+ sunos4*)
14547+ case $cc_basename in
14548+ CC*)
14549+ # Sun C++ 4.x
14550+ lt_prog_compiler_pic_CXX='-pic'
14551+ lt_prog_compiler_static_CXX='-Bstatic'
14552+ ;;
14553+ lcc*)
14554+ # Lucid
14555+ lt_prog_compiler_pic_CXX='-pic'
14556+ ;;
14557+ *)
14558+ ;;
14559+ esac
14560+ ;;
14561+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14562+ case $cc_basename in
14563+ CC*)
14564+ lt_prog_compiler_wl_CXX='-Wl,'
14565+ lt_prog_compiler_pic_CXX='-KPIC'
14566+ lt_prog_compiler_static_CXX='-Bstatic'
14567+ ;;
14568+ esac
14569+ ;;
14570+ tandem*)
14571+ case $cc_basename in
14572+ NCC*)
14573+ # NonStop-UX NCC 3.20
14574+ lt_prog_compiler_pic_CXX='-KPIC'
14575+ ;;
14576+ *)
14577+ ;;
14578+ esac
14579+ ;;
14580+ vxworks*)
14581+ ;;
14582+ *)
14583+ lt_prog_compiler_can_build_shared_CXX=no
14584+ ;;
14585+ esac
14586+ fi
14587+
14588+case $host_os in
14589+ # For platforms which do not support PIC, -DPIC is meaningless:
14590+ *djgpp*)
14591+ lt_prog_compiler_pic_CXX=
14592+ ;;
14593+ *)
14594+ lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14595+ ;;
14596+esac
14597+
14598+{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14599+echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14600+if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
14601+ echo $ECHO_N "(cached) $ECHO_C" >&6
14602+else
14603+ lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14604+fi
14605+{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
14606+echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6; }
14607+lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14608+
14609+#
14610+# Check to make sure the PIC flag actually works.
14611+#
14612+if test -n "$lt_prog_compiler_pic_CXX"; then
14613+ { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14614+echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14615+if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14616+ echo $ECHO_N "(cached) $ECHO_C" >&6
14617+else
14618+ lt_cv_prog_compiler_pic_works_CXX=no
14619+ ac_outfile=conftest.$ac_objext
14620+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14621+ lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14622+ # Insert the option either (1) after the last *FLAGS variable, or
14623+ # (2) before a word containing "conftest.", or (3) at the end.
14624+ # Note that $ac_compile itself does not contain backslashes and begins
14625+ # with a dollar sign (not a hyphen), so the echo should work correctly.
14626+ # The option is referenced via a variable to avoid confusing sed.
14627+ lt_compile=`echo "$ac_compile" | $SED \
14628+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14629+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14630+ -e 's:$: $lt_compiler_flag:'`
14631+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14632+ (eval "$lt_compile" 2>conftest.err)
14633+ ac_status=$?
14634+ cat conftest.err >&5
14635+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636+ if (exit $ac_status) && test -s "$ac_outfile"; then
14637+ # The compiler can only warn and ignore the option if not recognized
14638+ # So say no if there are warnings other than the usual output.
14639+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14640+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14641+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14642+ lt_cv_prog_compiler_pic_works_CXX=yes
14643+ fi
14644+ fi
14645+ $RM conftest*
14646+
14647+fi
14648+{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14649+echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14650+
14651+if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14652+ case $lt_prog_compiler_pic_CXX in
14653+ "" | " "*) ;;
14654+ *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14655+ esac
14656+else
14657+ lt_prog_compiler_pic_CXX=
14658+ lt_prog_compiler_can_build_shared_CXX=no
14659+fi
14660+
14661+fi
14662+
14663+
14664+
14665+
14666+
14667+#
14668+# Check to make sure the static flag actually works.
14669+#
14670+wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14671+{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14672+echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14673+if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14674+ echo $ECHO_N "(cached) $ECHO_C" >&6
14675+else
14676+ lt_cv_prog_compiler_static_works_CXX=no
14677+ save_LDFLAGS="$LDFLAGS"
14678+ LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14679+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
14680+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14681+ # The linker can only warn and ignore the option if not recognized
14682+ # So say no if there are warnings
14683+ if test -s conftest.err; then
14684+ # Append any errors to the config.log.
14685+ cat conftest.err 1>&5
14686+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14687+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14688+ if diff conftest.exp conftest.er2 >/dev/null; then
14689+ lt_cv_prog_compiler_static_works_CXX=yes
14690+ fi
14691+ else
14692+ lt_cv_prog_compiler_static_works_CXX=yes
14693+ fi
14694+ fi
14695+ $RM -r conftest*
14696+ LDFLAGS="$save_LDFLAGS"
14697+
14698+fi
14699+{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14700+echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14701+
14702+if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14703+ :
14704+else
14705+ lt_prog_compiler_static_CXX=
14706+fi
14707+
14708+
14709+
14710+
14711+ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14712+echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14713+if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14714+ echo $ECHO_N "(cached) $ECHO_C" >&6
14715+else
14716+ lt_cv_prog_compiler_c_o_CXX=no
14717+ $RM -r conftest 2>/dev/null
14718+ mkdir conftest
14719+ cd conftest
14720+ mkdir out
14721+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14722+
14723+ lt_compiler_flag="-o out/conftest2.$ac_objext"
14724+ # Insert the option either (1) after the last *FLAGS variable, or
14725+ # (2) before a word containing "conftest.", or (3) at the end.
14726+ # Note that $ac_compile itself does not contain backslashes and begins
14727+ # with a dollar sign (not a hyphen), so the echo should work correctly.
14728+ lt_compile=`echo "$ac_compile" | $SED \
14729+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14730+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14731+ -e 's:$: $lt_compiler_flag:'`
14732+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14733+ (eval "$lt_compile" 2>out/conftest.err)
14734+ ac_status=$?
14735+ cat out/conftest.err >&5
14736+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
14738+ then
14739+ # The compiler can only warn and ignore the option if not recognized
14740+ # So say no if there are warnings
14741+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14742+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14743+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14744+ lt_cv_prog_compiler_c_o_CXX=yes
14745+ fi
14746+ fi
14747+ chmod u+w . 2>&5
14748+ $RM conftest*
14749+ # SGI C++ compiler will create directory out/ii_files/ for
14750+ # template instantiation
14751+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14752+ $RM out/* && rmdir out
14753+ cd ..
14754+ $RM -r conftest
14755+ $RM conftest*
14756+
14757+fi
14758+{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14759+echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14760+
14761+
14762+
14763+ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14764+echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14765+if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14766+ echo $ECHO_N "(cached) $ECHO_C" >&6
14767+else
14768+ lt_cv_prog_compiler_c_o_CXX=no
14769+ $RM -r conftest 2>/dev/null
14770+ mkdir conftest
14771+ cd conftest
14772+ mkdir out
14773+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14774+
14775+ lt_compiler_flag="-o out/conftest2.$ac_objext"
14776+ # Insert the option either (1) after the last *FLAGS variable, or
14777+ # (2) before a word containing "conftest.", or (3) at the end.
14778+ # Note that $ac_compile itself does not contain backslashes and begins
14779+ # with a dollar sign (not a hyphen), so the echo should work correctly.
14780+ lt_compile=`echo "$ac_compile" | $SED \
14781+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14782+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14783+ -e 's:$: $lt_compiler_flag:'`
14784+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14785+ (eval "$lt_compile" 2>out/conftest.err)
14786+ ac_status=$?
14787+ cat out/conftest.err >&5
14788+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
14790+ then
14791+ # The compiler can only warn and ignore the option if not recognized
14792+ # So say no if there are warnings
14793+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14794+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14795+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14796+ lt_cv_prog_compiler_c_o_CXX=yes
14797+ fi
14798+ fi
14799+ chmod u+w . 2>&5
14800+ $RM conftest*
14801+ # SGI C++ compiler will create directory out/ii_files/ for
14802+ # template instantiation
14803+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14804+ $RM out/* && rmdir out
14805+ cd ..
14806+ $RM -r conftest
14807+ $RM conftest*
14808+
14809+fi
14810+{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14811+echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14812+
14813+
14814+
14815+
14816+hard_links="nottested"
14817+if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14818+ # do not overwrite the value of need_locks provided by the user
14819+ { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14820+echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14821+ hard_links=yes
14822+ $RM conftest*
14823+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
14824+ touch conftest.a
14825+ ln conftest.a conftest.b 2>&5 || hard_links=no
14826+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
14827+ { echo "$as_me:$LINENO: result: $hard_links" >&5
14828+echo "${ECHO_T}$hard_links" >&6; }
14829+ if test "$hard_links" = no; then
14830+ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14831+echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14832+ need_locks=warn
14833+ fi
14834+else
14835+ need_locks=no
14836+fi
14837+
14838+
14839+
14840+ { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14841+echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14842+
14843+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14844+ exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14845+ case $host_os in
14846+ aix[4-9]*)
14847+ # If we're using GNU nm, then we don't want the "-C" option.
14848+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
14849+ # Also, AIX nm treats weak defined symbols like other global defined
14850+ # symbols, whereas GNU nm marks them as "W".
14851+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14852+ export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14853+ else
14854+ export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14855+ fi
14856+ ;;
14857+ pw32*)
14858+ export_symbols_cmds_CXX="$ltdll_cmds"
14859+ ;;
14860+ cygwin* | mingw* | cegcc*)
14861+ case $cc_basename in
14862+ cl*) ;;
14863+ *)
14864+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14865+ exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14866+ ;;
14867+ esac
14868+ ;;
14869+ *)
14870+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14871+ ;;
14872+ esac
14873+
14874+{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14875+echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14876+test "$ld_shlibs_CXX" = no && can_build_shared=no
14877+
14878+with_gnu_ld_CXX=$with_gnu_ld
14879+
14880+
14881+
14882+
14883+
14884+
14885+#
14886+# Do we need to explicitly link libc?
14887+#
14888+case "x$archive_cmds_need_lc_CXX" in
14889+x|xyes)
14890+ # Assume -lc should be added
14891+ archive_cmds_need_lc_CXX=yes
14892+
14893+ if test "$enable_shared" = yes && test "$GCC" = yes; then
14894+ case $archive_cmds_CXX in
14895+ *'~'*)
14896+ # FIXME: we may have to deal with multi-command sequences.
14897+ ;;
14898+ '$CC '*)
14899+ # Test whether the compiler implicitly links with -lc since on some
14900+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
14901+ # to ld, don't add -lc before -lgcc.
14902+ { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14903+echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14904+if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14905+ echo $ECHO_N "(cached) $ECHO_C" >&6
14906+else
14907+ $RM conftest*
14908+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14909+
14910+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14911+ (eval $ac_compile) 2>&5
14912+ ac_status=$?
14913+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914+ (exit $ac_status); } 2>conftest.err; then
14915+ soname=conftest
14916+ lib=conftest
14917+ libobjs=conftest.$ac_objext
14918+ deplibs=
14919+ wl=$lt_prog_compiler_wl_CXX
14920+ pic_flag=$lt_prog_compiler_pic_CXX
14921+ compiler_flags=-v
14922+ linker_flags=-v
14923+ verstring=
14924+ output_objdir=.
14925+ libname=conftest
14926+ lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14927+ allow_undefined_flag_CXX=
14928+ if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14929+ (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14930+ ac_status=$?
14931+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932+ (exit $ac_status); }
14933+ then
14934+ lt_cv_archive_cmds_need_lc_CXX=no
14935+ else
14936+ lt_cv_archive_cmds_need_lc_CXX=yes
14937+ fi
14938+ allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14939+ else
14940+ cat conftest.err 1>&5
14941+ fi
14942+ $RM conftest*
14943+
14944+fi
14945+{ echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14946+echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14947+ archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14948+ ;;
14949+ esac
14950+ fi
14951+ ;;
14952+esac
14953+
14954+
14955+
14956+
14957+
14958+
14959+
14960+
14961+
14962+
14963+
14964+
14965+
14966+
14967+
14968+
14969+
14970+
14971+
14972+
14973+
14974+
14975+
14976+
14977+
14978+
14979+
14980+
14981+
14982+
14983+
14984+
14985+
14986+
14987+
14988+
14989+
14990+
14991+
14992+
14993+
14994+
14995+
14996+
14997+
14998+
14999+
15000+
15001+
15002+
15003+
15004+
15005+
15006+
15007+
15008+
15009+
15010+
15011+
15012+
15013+
15014+
15015+
15016+
15017+ { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15018+echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15019+
15020+library_names_spec=
15021+libname_spec='lib$name'
15022+soname_spec=
15023+shrext_cmds=".so"
15024+postinstall_cmds=
15025+postuninstall_cmds=
15026+finish_cmds=
15027+finish_eval=
15028+shlibpath_var=
15029+shlibpath_overrides_runpath=unknown
15030+version_type=none
15031+dynamic_linker="$host_os ld.so"
15032+sys_lib_dlsearch_path_spec="/lib /usr/lib"
15033+need_lib_prefix=unknown
15034+hardcode_into_libs=no
15035+
15036+# when you set need_version to no, make sure it does not cause -set_version
15037+# flags to be left without arguments
15038+need_version=unknown
15039+
15040+case $host_os in
15041+aix3*)
15042+ version_type=linux
15043+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15044+ shlibpath_var=LIBPATH
15045+
15046+ # AIX 3 has no versioning support, so we append a major version to the name.
15047+ soname_spec='${libname}${release}${shared_ext}$major'
15048+ ;;
15049+
15050+aix[4-9]*)
15051+ version_type=linux
15052+ need_lib_prefix=no
15053+ need_version=no
15054+ hardcode_into_libs=yes
15055+ if test "$host_cpu" = ia64; then
15056+ # AIX 5 supports IA64
15057+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15058+ shlibpath_var=LD_LIBRARY_PATH
15059+ else
15060+ # With GCC up to 2.95.x, collect2 would create an import file
15061+ # for dependence libraries. The import file would start with
15062+ # the line `#! .'. This would cause the generated library to
15063+ # depend on `.', always an invalid library. This was fixed in
15064+ # development snapshots of GCC prior to 3.0.
15065+ case $host_os in
15066+ aix4 | aix4.[01] | aix4.[01].*)
15067+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15068+ echo ' yes '
15069+ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15070+ :
15071+ else
15072+ can_build_shared=no
15073+ fi
15074+ ;;
15075+ esac
15076+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15077+ # soname into executable. Probably we can add versioning support to
15078+ # collect2, so additional links can be useful in future.
15079+ if test "$aix_use_runtimelinking" = yes; then
15080+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15081+ # instead of lib<name>.a to let people know that these are not
15082+ # typical AIX shared libraries.
15083+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15084+ else
15085+ # We preserve .a as extension for shared libraries through AIX4.2
15086+ # and later when we are not doing run time linking.
15087+ library_names_spec='${libname}${release}.a $libname.a'
15088+ soname_spec='${libname}${release}${shared_ext}$major'
15089+ fi
15090+ shlibpath_var=LIBPATH
15091+ fi
15092+ ;;
15093+
15094+amigaos*)
15095+ case $host_cpu in
15096+ powerpc)
15097+ # Since July 2007 AmigaOS4 officially supports .so libraries.
15098+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15099+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100+ ;;
15101+ m68k)
15102+ library_names_spec='$libname.ixlibrary $libname.a'
15103+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
15104+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15105+ ;;
15106+ esac
15107+ ;;
15108+
15109+beos*)
15110+ library_names_spec='${libname}${shared_ext}'
15111+ dynamic_linker="$host_os ld.so"
15112+ shlibpath_var=LIBRARY_PATH
15113+ ;;
15114+
15115+bsdi[45]*)
15116+ version_type=linux
15117+ need_version=no
15118+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15119+ soname_spec='${libname}${release}${shared_ext}$major'
15120+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15121+ shlibpath_var=LD_LIBRARY_PATH
15122+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15123+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15124+ # the default ld.so.conf also contains /usr/contrib/lib and
15125+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15126+ # libtool to hard-code these into programs
15127+ ;;
15128+
15129+cygwin* | mingw* | pw32* | cegcc*)
15130+ version_type=windows
15131+ shrext_cmds=".dll"
15132+ need_version=no
15133+ need_lib_prefix=no
15134+
15135+ case $GCC,$cc_basename in
15136+ yes,*)
15137+ # gcc
15138+ library_names_spec='$libname.dll.a'
15139+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
15140+ postinstall_cmds='base_file=`basename \${file}`~
15141+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15142+ dldir=$destdir/`dirname \$dlpath`~
15143+ test -d \$dldir || mkdir -p \$dldir~
15144+ $install_prog $dir/$dlname \$dldir/$dlname~
15145+ chmod a+x \$dldir/$dlname~
15146+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15147+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15148+ fi'
15149+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15150+ dlpath=$dir/\$dldll~
15151+ $RM \$dlpath'
15152+ shlibpath_overrides_runpath=yes
15153+
15154+ case $host_os in
15155+ cygwin*)
15156+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15157+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15158+
15159+ ;;
15160+ mingw* | cegcc*)
15161+ # MinGW DLLs use traditional 'lib' prefix
15162+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15163+ ;;
15164+ pw32*)
15165+ # pw32 DLLs use 'pw' prefix rather than 'lib'
15166+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15167+ ;;
15168+ esac
15169+ dynamic_linker='Win32 ld.exe'
15170+ ;;
15171+
15172+ *,cl*)
15173+ # Native MSVC
15174+ libname_spec='$name'
15175+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15176+ library_names_spec='${libname}.dll.lib'
15177+
15178+ case $build_os in
15179+ mingw*)
15180+ sys_lib_search_path_spec=
15181+ lt_save_ifs=$IFS
15182+ IFS=';'
15183+ for lt_path in $LIB
15184+ do
15185+ IFS=$lt_save_ifs
15186+ # Let DOS variable expansion print the short 8.3 style file name.
15187+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15188+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15189+ done
15190+ IFS=$lt_save_ifs
15191+ # Convert to MSYS style.
15192+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15193+ ;;
15194+ cygwin*)
15195+ # Convert to unix form, then to dos form, then back to unix form
15196+ # but this time dos style (no spaces!) so that the unix form looks
15197+ # like /cygdrive/c/PROGRA~1:/cygdr...
15198+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15199+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15200+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15201+ ;;
15202+ *)
15203+ sys_lib_search_path_spec="$LIB"
15204+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15205+ # It is most probably a Windows format PATH.
15206+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15207+ else
15208+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15209+ fi
15210+ # FIXME: find the short name or the path components, as spaces are
15211+ # common. (e.g. "Program Files" -> "PROGRA~1")
15212+ ;;
15213+ esac
15214+
15215+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
15216+ postinstall_cmds='base_file=`basename \${file}`~
15217+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15218+ dldir=$destdir/`dirname \$dlpath`~
15219+ test -d \$dldir || mkdir -p \$dldir~
15220+ $install_prog $dir/$dlname \$dldir/$dlname'
15221+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15222+ dlpath=$dir/\$dldll~
15223+ $RM \$dlpath'
15224+ shlibpath_overrides_runpath=yes
15225+ dynamic_linker='Win32 link.exe'
15226+ ;;
15227+
15228+ *)
15229+ # Assume MSVC wrapper
15230+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15231+ dynamic_linker='Win32 ld.exe'
15232+ ;;
15233+ esac
15234+ # FIXME: first we should search . and the directory the executable is in
15235+ shlibpath_var=PATH
15236+ ;;
15237+
15238+darwin* | rhapsody*)
15239+ dynamic_linker="$host_os dyld"
15240+ version_type=darwin
15241+ need_lib_prefix=no
15242+ need_version=no
15243+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15244+ soname_spec='${libname}${release}${major}$shared_ext'
15245+ shlibpath_overrides_runpath=yes
15246+ shlibpath_var=DYLD_LIBRARY_PATH
15247+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15248+
15249+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15250+ ;;
15251+
15252+dgux*)
15253+ version_type=linux
15254+ need_lib_prefix=no
15255+ need_version=no
15256+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15257+ soname_spec='${libname}${release}${shared_ext}$major'
15258+ shlibpath_var=LD_LIBRARY_PATH
15259+ ;;
15260+
15261+freebsd1*)
15262+ dynamic_linker=no
15263+ ;;
15264+
15265+freebsd* | dragonfly*)
15266+ # DragonFly does not have aout. When/if they implement a new
15267+ # versioning mechanism, adjust this.
15268+ if test -x /usr/bin/objformat; then
15269+ objformat=`/usr/bin/objformat`
15270+ else
15271+ case $host_os in
15272+ freebsd[123]*) objformat=aout ;;
15273+ *) objformat=elf ;;
15274+ esac
15275+ fi
15276+ version_type=freebsd-$objformat
15277+ case $version_type in
15278+ freebsd-elf*)
15279+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15280+ need_version=no
15281+ need_lib_prefix=no
15282+ ;;
15283+ freebsd-*)
15284+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15285+ need_version=yes
15286+ ;;
15287+ esac
15288+ shlibpath_var=LD_LIBRARY_PATH
15289+ case $host_os in
15290+ freebsd2*)
15291+ shlibpath_overrides_runpath=yes
15292+ ;;
15293+ freebsd3.[01]* | freebsdelf3.[01]*)
15294+ shlibpath_overrides_runpath=yes
15295+ hardcode_into_libs=yes
15296+ ;;
15297+ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15298+ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15299+ shlibpath_overrides_runpath=no
15300+ hardcode_into_libs=yes
15301+ ;;
15302+ *) # from 4.6 on, and DragonFly
15303+ shlibpath_overrides_runpath=yes
15304+ hardcode_into_libs=yes
15305+ ;;
15306+ esac
15307+ ;;
15308+
15309+gnu*)
15310+ version_type=linux
15311+ need_lib_prefix=no
15312+ need_version=no
15313+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15314+ soname_spec='${libname}${release}${shared_ext}$major'
15315+ shlibpath_var=LD_LIBRARY_PATH
15316+ hardcode_into_libs=yes
15317+ ;;
15318+
15319+haiku*)
15320+ version_type=linux
15321+ need_lib_prefix=no
15322+ need_version=no
15323+ dynamic_linker="$host_os runtime_loader"
15324+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15325+ soname_spec='${libname}${release}${shared_ext}$major'
15326+ shlibpath_var=LIBRARY_PATH
15327+ shlibpath_overrides_runpath=yes
15328+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15329+ hardcode_into_libs=yes
15330+ ;;
15331+
15332+hpux9* | hpux10* | hpux11*)
15333+ # Give a soname corresponding to the major version so that dld.sl refuses to
15334+ # link against other versions.
15335+ version_type=sunos
15336+ need_lib_prefix=no
15337+ need_version=no
15338+ case $host_cpu in
15339+ ia64*)
15340+ shrext_cmds='.so'
15341+ hardcode_into_libs=yes
15342+ dynamic_linker="$host_os dld.so"
15343+ shlibpath_var=LD_LIBRARY_PATH
15344+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15345+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15346+ soname_spec='${libname}${release}${shared_ext}$major'
15347+ if test "X$HPUX_IA64_MODE" = X32; then
15348+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15349+ else
15350+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15351+ fi
15352+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15353+ ;;
15354+ hppa*64*)
15355+ shrext_cmds='.sl'
15356+ hardcode_into_libs=yes
15357+ dynamic_linker="$host_os dld.sl"
15358+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15359+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15360+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361+ soname_spec='${libname}${release}${shared_ext}$major'
15362+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15363+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15364+ ;;
15365+ *)
15366+ shrext_cmds='.sl'
15367+ dynamic_linker="$host_os dld.sl"
15368+ shlibpath_var=SHLIB_PATH
15369+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15370+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15371+ soname_spec='${libname}${release}${shared_ext}$major'
15372+ ;;
15373+ esac
15374+ # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15375+ postinstall_cmds='chmod 555 $lib'
15376+ # or fails outright, so override atomically:
15377+ install_override_mode=555
15378+ ;;
15379+
15380+interix[3-9]*)
15381+ version_type=linux
15382+ need_lib_prefix=no
15383+ need_version=no
15384+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15385+ soname_spec='${libname}${release}${shared_ext}$major'
15386+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15387+ shlibpath_var=LD_LIBRARY_PATH
15388+ shlibpath_overrides_runpath=no
15389+ hardcode_into_libs=yes
15390+ ;;
15391+
15392+irix5* | irix6* | nonstopux*)
15393+ case $host_os in
15394+ nonstopux*) version_type=nonstopux ;;
15395+ *)
15396+ if test "$lt_cv_prog_gnu_ld" = yes; then
15397+ version_type=linux
15398+ else
15399+ version_type=irix
15400+ fi ;;
15401+ esac
15402+ need_lib_prefix=no
15403+ need_version=no
15404+ soname_spec='${libname}${release}${shared_ext}$major'
15405+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15406+ case $host_os in
15407+ irix5* | nonstopux*)
15408+ libsuff= shlibsuff=
15409+ ;;
15410+ *)
15411+ case $LD in # libtool.m4 will add one of these switches to LD
15412+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15413+ libsuff= shlibsuff= libmagic=32-bit;;
15414+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15415+ libsuff=32 shlibsuff=N32 libmagic=N32;;
15416+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15417+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
15418+ *) libsuff= shlibsuff= libmagic=never-match;;
15419+ esac
15420+ ;;
15421+ esac
15422+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15423+ shlibpath_overrides_runpath=no
15424+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15425+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15426+ hardcode_into_libs=yes
15427+ ;;
15428+
15429+# No shared lib support for Linux oldld, aout, or coff.
15430+linux*oldld* | linux*aout* | linux*coff*)
15431+ dynamic_linker=no
15432+ ;;
15433+
15434+# This must be Linux ELF.
15435+linux* | k*bsd*-gnu | kopensolaris*-gnu)
15436+ version_type=linux
15437+ need_lib_prefix=no
15438+ need_version=no
15439+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15440+ soname_spec='${libname}${release}${shared_ext}$major'
15441+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15442+ shlibpath_var=LD_LIBRARY_PATH
15443+ shlibpath_overrides_runpath=no
15444+
15445+ # Some binutils ld are patched to set DT_RUNPATH
15446+ if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
15447+ echo $ECHO_N "(cached) $ECHO_C" >&6
15448+else
15449+ lt_cv_shlibpath_overrides_runpath=no
15450+ save_LDFLAGS=$LDFLAGS
15451+ save_libdir=$libdir
15452+ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15453+ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15454+ cat >conftest.$ac_ext <<_ACEOF
15455+/* confdefs.h. */
15456+_ACEOF
15457+cat confdefs.h >>conftest.$ac_ext
15458+cat >>conftest.$ac_ext <<_ACEOF
15459+/* end confdefs.h. */
15460+
15461+int
15462+main ()
15463+{
15464+
15465+ ;
15466+ return 0;
15467+}
15468+_ACEOF
15469+rm -f conftest.$ac_objext conftest$ac_exeext
15470+if { (ac_try="$ac_link"
15471+case "(($ac_try" in
15472+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473+ *) ac_try_echo=$ac_try;;
15474+esac
15475+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15476+ (eval "$ac_link") 2>conftest.er1
15477+ ac_status=$?
15478+ grep -v '^ *+' conftest.er1 >conftest.err
15479+ rm -f conftest.er1
15480+ cat conftest.err >&5
15481+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482+ (exit $ac_status); } && {
15483+ test -z "$ac_cxx_werror_flag" ||
15484+ test ! -s conftest.err
15485+ } && test -s conftest$ac_exeext &&
15486+ $as_test_x conftest$ac_exeext; then
15487+ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15488+ lt_cv_shlibpath_overrides_runpath=yes
15489+fi
15490+
15491+else
15492+ echo "$as_me: failed program was:" >&5
15493+sed 's/^/| /' conftest.$ac_ext >&5
15494+
15495+
15496+fi
15497+
15498+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15499+ conftest$ac_exeext conftest.$ac_ext
15500+ LDFLAGS=$save_LDFLAGS
15501+ libdir=$save_libdir
15502+
15503+fi
15504+
15505+ shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15506+
15507+ # This implies no fast_install, which is unacceptable.
15508+ # Some rework will be needed to allow for fast_install
15509+ # before this can be enabled.
15510+ hardcode_into_libs=yes
15511+
15512+ # Append ld.so.conf contents to the search path
15513+ if test -f /etc/ld.so.conf; then
15514+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15515+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15516+ fi
15517+
15518+ # We used to test for /lib/ld.so.1 and disable shared libraries on
15519+ # powerpc, because MkLinux only supported shared libraries with the
15520+ # GNU dynamic linker. Since this was broken with cross compilers,
15521+ # most powerpc-linux boxes support dynamic linking these days and
15522+ # people can always --disable-shared, the test was removed, and we
15523+ # assume the GNU/Linux dynamic linker is in use.
15524+ dynamic_linker='GNU/Linux ld.so'
15525+ ;;
15526+
15527+netbsd*)
15528+ version_type=sunos
15529+ need_lib_prefix=no
15530+ need_version=no
15531+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15532+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15533+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15534+ dynamic_linker='NetBSD (a.out) ld.so'
15535+ else
15536+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15537+ soname_spec='${libname}${release}${shared_ext}$major'
15538+ dynamic_linker='NetBSD ld.elf_so'
15539+ fi
15540+ shlibpath_var=LD_LIBRARY_PATH
15541+ shlibpath_overrides_runpath=yes
15542+ hardcode_into_libs=yes
15543+ ;;
15544+
15545+newsos6)
15546+ version_type=linux
15547+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548+ shlibpath_var=LD_LIBRARY_PATH
15549+ shlibpath_overrides_runpath=yes
15550+ ;;
15551+
15552+*nto* | *qnx*)
15553+ version_type=qnx
15554+ need_lib_prefix=no
15555+ need_version=no
15556+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557+ soname_spec='${libname}${release}${shared_ext}$major'
15558+ shlibpath_var=LD_LIBRARY_PATH
15559+ shlibpath_overrides_runpath=no
15560+ hardcode_into_libs=yes
15561+ dynamic_linker='ldqnx.so'
15562+ ;;
15563+
15564+openbsd*)
15565+ version_type=sunos
15566+ sys_lib_dlsearch_path_spec="/usr/lib"
15567+ need_lib_prefix=no
15568+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15569+ case $host_os in
15570+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15571+ *) need_version=no ;;
15572+ esac
15573+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15574+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15575+ shlibpath_var=LD_LIBRARY_PATH
15576+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15577+ case $host_os in
15578+ openbsd2.[89] | openbsd2.[89].*)
15579+ shlibpath_overrides_runpath=no
15580+ ;;
15581+ *)
15582+ shlibpath_overrides_runpath=yes
15583+ ;;
15584+ esac
15585+ else
15586+ shlibpath_overrides_runpath=yes
15587+ fi
15588+ ;;
15589+
15590+os2*)
15591+ libname_spec='$name'
15592+ shrext_cmds=".dll"
15593+ need_lib_prefix=no
15594+ library_names_spec='$libname${shared_ext} $libname.a'
15595+ dynamic_linker='OS/2 ld.exe'
15596+ shlibpath_var=LIBPATH
15597+ ;;
15598+
15599+osf3* | osf4* | osf5*)
15600+ version_type=osf
15601+ need_lib_prefix=no
15602+ need_version=no
15603+ soname_spec='${libname}${release}${shared_ext}$major'
15604+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605+ shlibpath_var=LD_LIBRARY_PATH
15606+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15607+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15608+ ;;
15609+
15610+rdos*)
15611+ dynamic_linker=no
15612+ ;;
15613+
15614+solaris*)
15615+ version_type=linux
15616+ need_lib_prefix=no
15617+ need_version=no
15618+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619+ soname_spec='${libname}${release}${shared_ext}$major'
15620+ shlibpath_var=LD_LIBRARY_PATH
15621+ shlibpath_overrides_runpath=yes
15622+ hardcode_into_libs=yes
15623+ # ldd complains unless libraries are executable
15624+ postinstall_cmds='chmod +x $lib'
15625+ ;;
15626+
15627+sunos4*)
15628+ version_type=sunos
15629+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15630+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15631+ shlibpath_var=LD_LIBRARY_PATH
15632+ shlibpath_overrides_runpath=yes
15633+ if test "$with_gnu_ld" = yes; then
15634+ need_lib_prefix=no
15635+ fi
15636+ need_version=yes
15637+ ;;
15638+
15639+sysv4 | sysv4.3*)
15640+ version_type=linux
15641+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642+ soname_spec='${libname}${release}${shared_ext}$major'
15643+ shlibpath_var=LD_LIBRARY_PATH
15644+ case $host_vendor in
15645+ sni)
15646+ shlibpath_overrides_runpath=no
15647+ need_lib_prefix=no
15648+ runpath_var=LD_RUN_PATH
15649+ ;;
15650+ siemens)
15651+ need_lib_prefix=no
15652+ ;;
15653+ motorola)
15654+ need_lib_prefix=no
15655+ need_version=no
15656+ shlibpath_overrides_runpath=no
15657+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15658+ ;;
15659+ esac
15660+ ;;
15661+
15662+sysv4*MP*)
15663+ if test -d /usr/nec ;then
15664+ version_type=linux
15665+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15666+ soname_spec='$libname${shared_ext}.$major'
15667+ shlibpath_var=LD_LIBRARY_PATH
15668+ fi
15669+ ;;
15670+
15671+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15672+ version_type=freebsd-elf
15673+ need_lib_prefix=no
15674+ need_version=no
15675+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15676+ soname_spec='${libname}${release}${shared_ext}$major'
15677+ shlibpath_var=LD_LIBRARY_PATH
15678+ shlibpath_overrides_runpath=yes
15679+ hardcode_into_libs=yes
15680+ if test "$with_gnu_ld" = yes; then
15681+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15682+ else
15683+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15684+ case $host_os in
15685+ sco3.2v5*)
15686+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15687+ ;;
15688+ esac
15689+ fi
15690+ sys_lib_dlsearch_path_spec='/usr/lib'
15691+ ;;
15692+
15693+tpf*)
15694+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15695+ version_type=linux
15696+ need_lib_prefix=no
15697+ need_version=no
15698+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15699+ shlibpath_var=LD_LIBRARY_PATH
15700+ shlibpath_overrides_runpath=no
15701+ hardcode_into_libs=yes
15702+ ;;
15703+
15704+uts4*)
15705+ version_type=linux
15706+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707+ soname_spec='${libname}${release}${shared_ext}$major'
15708+ shlibpath_var=LD_LIBRARY_PATH
15709+ ;;
15710+
15711+*)
15712+ dynamic_linker=no
15713+ ;;
15714+esac
15715+{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15716+echo "${ECHO_T}$dynamic_linker" >&6; }
15717+test "$dynamic_linker" = no && can_build_shared=no
15718+
15719+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15720+if test "$GCC" = yes; then
15721+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15722+fi
15723+
15724+if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15725+ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15726+fi
15727+if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15728+ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15729+fi
15730+
15731+
15732+
15733+
15734+
15735+
15736+
15737+
15738+
15739+
15740+
15741+
15742+
15743+
15744+
15745+
15746+
15747+
15748+
15749+
15750+
15751+
15752+
15753+
15754+
15755+
15756+
15757+
15758+
15759+
15760+
15761+
15762+
15763+
15764+
15765+
15766+
15767+
15768+ { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15769+echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15770+hardcode_action_CXX=
15771+if test -n "$hardcode_libdir_flag_spec_CXX" ||
15772+ test -n "$runpath_var_CXX" ||
15773+ test "X$hardcode_automatic_CXX" = "Xyes" ; then
15774+
15775+ # We can hardcode non-existent directories.
15776+ if test "$hardcode_direct_CXX" != no &&
15777+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
15778+ # have to relink, otherwise we might link with an installed library
15779+ # when we should be linking with a yet-to-be-installed one
15780+ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15781+ test "$hardcode_minus_L_CXX" != no; then
15782+ # Linking always hardcodes the temporary library directory.
15783+ hardcode_action_CXX=relink
15784+ else
15785+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
15786+ hardcode_action_CXX=immediate
15787+ fi
15788+else
15789+ # We cannot hardcode anything, or else we can only hardcode existing
15790+ # directories.
15791+ hardcode_action_CXX=unsupported
15792+fi
15793+{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15794+echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15795+
15796+if test "$hardcode_action_CXX" = relink ||
15797+ test "$inherit_rpath_CXX" = yes; then
15798+ # Fast installation is not supported
15799+ enable_fast_install=no
15800+elif test "$shlibpath_overrides_runpath" = yes ||
15801+ test "$enable_shared" = no; then
15802+ # Fast installation is not necessary
15803+ enable_fast_install=needless
15804+fi
15805+
15806+
15807+
15808+
15809+
15810+
15811+
15812+ fi # test -n "$compiler"
15813+
15814+ CC=$lt_save_CC
15815+ CFLAGS=$lt_save_CFLAGS
15816+ LDCXX=$LD
15817+ LD=$lt_save_LD
15818+ GCC=$lt_save_GCC
15819+ with_gnu_ld=$lt_save_with_gnu_ld
15820+ lt_cv_path_LDCXX=$lt_cv_path_LD
15821+ lt_cv_path_LD=$lt_save_path_LD
15822+ lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15823+ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15824+fi # test "$_lt_caught_CXX_error" != yes
15825+
15826+ac_ext=c
15827+ac_cpp='$CPP $CPPFLAGS'
15828+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15829+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15830+ac_compiler_gnu=$ac_cv_c_compiler_gnu
15831+
15832+
15833+
15834+
15835+
15836+
15837+
15838+
15839+
15840+
15841+
15842+
15843+
1173215844 ac_config_commands="$ac_config_commands libtool"
1173315845
1173415846
@@ -11986,7 +16098,11 @@
1198616098
1198716099
1198816100
11989-for ac_header in stdlib.h string.h
16101+
16102+
16103+
16104+
16105+for ac_header in fcntl.h stdlib.h string.h sys/time.h termios.h unistd.h
1199016106 do
1199116107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1199216108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -12301,11 +16417,609 @@
1230116417
1230216418 fi
1230316419
16420+{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16421+echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
16422+if test "${ac_cv_header_time+set}" = set; then
16423+ echo $ECHO_N "(cached) $ECHO_C" >&6
16424+else
16425+ cat >conftest.$ac_ext <<_ACEOF
16426+/* confdefs.h. */
16427+_ACEOF
16428+cat confdefs.h >>conftest.$ac_ext
16429+cat >>conftest.$ac_ext <<_ACEOF
16430+/* end confdefs.h. */
16431+#include <sys/types.h>
16432+#include <sys/time.h>
16433+#include <time.h>
1230416434
16435+int
16436+main ()
16437+{
16438+if ((struct tm *) 0)
16439+return 0;
16440+ ;
16441+ return 0;
16442+}
16443+_ACEOF
16444+rm -f conftest.$ac_objext
16445+if { (ac_try="$ac_compile"
16446+case "(($ac_try" in
16447+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448+ *) ac_try_echo=$ac_try;;
16449+esac
16450+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451+ (eval "$ac_compile") 2>conftest.er1
16452+ ac_status=$?
16453+ grep -v '^ *+' conftest.er1 >conftest.err
16454+ rm -f conftest.er1
16455+ cat conftest.err >&5
16456+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457+ (exit $ac_status); } && {
16458+ test -z "$ac_c_werror_flag" ||
16459+ test ! -s conftest.err
16460+ } && test -s conftest.$ac_objext; then
16461+ ac_cv_header_time=yes
16462+else
16463+ echo "$as_me: failed program was:" >&5
16464+sed 's/^/| /' conftest.$ac_ext >&5
16465+
16466+ ac_cv_header_time=no
16467+fi
16468+
16469+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16470+fi
16471+{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16472+echo "${ECHO_T}$ac_cv_header_time" >&6; }
16473+if test $ac_cv_header_time = yes; then
16474+
16475+cat >>confdefs.h <<\_ACEOF
16476+#define TIME_WITH_SYS_TIME 1
16477+_ACEOF
16478+
16479+fi
16480+
16481+
1230516482 # Checks for library functions.
1230616483
12307-for ac_func in floor
16484+for ac_header in stdlib.h
1230816485 do
16486+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16487+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16488+ { echo "$as_me:$LINENO: checking for $ac_header" >&5
16489+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16490+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16491+ echo $ECHO_N "(cached) $ECHO_C" >&6
16492+fi
16493+ac_res=`eval echo '${'$as_ac_Header'}'`
16494+ { echo "$as_me:$LINENO: result: $ac_res" >&5
16495+echo "${ECHO_T}$ac_res" >&6; }
16496+else
16497+ # Is the header compilable?
16498+{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16499+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16500+cat >conftest.$ac_ext <<_ACEOF
16501+/* confdefs.h. */
16502+_ACEOF
16503+cat confdefs.h >>conftest.$ac_ext
16504+cat >>conftest.$ac_ext <<_ACEOF
16505+/* end confdefs.h. */
16506+$ac_includes_default
16507+#include <$ac_header>
16508+_ACEOF
16509+rm -f conftest.$ac_objext
16510+if { (ac_try="$ac_compile"
16511+case "(($ac_try" in
16512+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513+ *) ac_try_echo=$ac_try;;
16514+esac
16515+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516+ (eval "$ac_compile") 2>conftest.er1
16517+ ac_status=$?
16518+ grep -v '^ *+' conftest.er1 >conftest.err
16519+ rm -f conftest.er1
16520+ cat conftest.err >&5
16521+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522+ (exit $ac_status); } && {
16523+ test -z "$ac_c_werror_flag" ||
16524+ test ! -s conftest.err
16525+ } && test -s conftest.$ac_objext; then
16526+ ac_header_compiler=yes
16527+else
16528+ echo "$as_me: failed program was:" >&5
16529+sed 's/^/| /' conftest.$ac_ext >&5
16530+
16531+ ac_header_compiler=no
16532+fi
16533+
16534+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16535+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16536+echo "${ECHO_T}$ac_header_compiler" >&6; }
16537+
16538+# Is the header present?
16539+{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16540+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16541+cat >conftest.$ac_ext <<_ACEOF
16542+/* confdefs.h. */
16543+_ACEOF
16544+cat confdefs.h >>conftest.$ac_ext
16545+cat >>conftest.$ac_ext <<_ACEOF
16546+/* end confdefs.h. */
16547+#include <$ac_header>
16548+_ACEOF
16549+if { (ac_try="$ac_cpp conftest.$ac_ext"
16550+case "(($ac_try" in
16551+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552+ *) ac_try_echo=$ac_try;;
16553+esac
16554+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16555+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16556+ ac_status=$?
16557+ grep -v '^ *+' conftest.er1 >conftest.err
16558+ rm -f conftest.er1
16559+ cat conftest.err >&5
16560+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561+ (exit $ac_status); } >/dev/null && {
16562+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16563+ test ! -s conftest.err
16564+ }; then
16565+ ac_header_preproc=yes
16566+else
16567+ echo "$as_me: failed program was:" >&5
16568+sed 's/^/| /' conftest.$ac_ext >&5
16569+
16570+ ac_header_preproc=no
16571+fi
16572+
16573+rm -f conftest.err conftest.$ac_ext
16574+{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16575+echo "${ECHO_T}$ac_header_preproc" >&6; }
16576+
16577+# So? What about this header?
16578+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16579+ yes:no: )
16580+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16581+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16582+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16583+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16584+ ac_header_preproc=yes
16585+ ;;
16586+ no:yes:* )
16587+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16588+echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16589+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16590+echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16591+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16592+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16593+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16594+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16595+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16596+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16597+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16598+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16599+ ( cat <<\_ASBOX
16600+## -------------------------------------------- ##
16601+## Report this to satofumi@users.sourceforge.jp ##
16602+## -------------------------------------------- ##
16603+_ASBOX
16604+ ) | sed "s/^/$as_me: WARNING: /" >&2
16605+ ;;
16606+esac
16607+{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16608+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16609+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16610+ echo $ECHO_N "(cached) $ECHO_C" >&6
16611+else
16612+ eval "$as_ac_Header=\$ac_header_preproc"
16613+fi
16614+ac_res=`eval echo '${'$as_ac_Header'}'`
16615+ { echo "$as_me:$LINENO: result: $ac_res" >&5
16616+echo "${ECHO_T}$ac_res" >&6; }
16617+
16618+fi
16619+if test `eval echo '${'$as_ac_Header'}'` = yes; then
16620+ cat >>confdefs.h <<_ACEOF
16621+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16622+_ACEOF
16623+
16624+fi
16625+
16626+done
16627+
16628+{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
16629+echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
16630+if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
16631+ echo $ECHO_N "(cached) $ECHO_C" >&6
16632+else
16633+ if test "$cross_compiling" = yes; then
16634+ ac_cv_func_malloc_0_nonnull=no
16635+else
16636+ cat >conftest.$ac_ext <<_ACEOF
16637+/* confdefs.h. */
16638+_ACEOF
16639+cat confdefs.h >>conftest.$ac_ext
16640+cat >>conftest.$ac_ext <<_ACEOF
16641+/* end confdefs.h. */
16642+#if defined STDC_HEADERS || defined HAVE_STDLIB_H
16643+# include <stdlib.h>
16644+#else
16645+char *malloc ();
16646+#endif
16647+
16648+int
16649+main ()
16650+{
16651+return ! malloc (0);
16652+ ;
16653+ return 0;
16654+}
16655+_ACEOF
16656+rm -f conftest$ac_exeext
16657+if { (ac_try="$ac_link"
16658+case "(($ac_try" in
16659+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660+ *) ac_try_echo=$ac_try;;
16661+esac
16662+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663+ (eval "$ac_link") 2>&5
16664+ ac_status=$?
16665+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16667+ { (case "(($ac_try" in
16668+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669+ *) ac_try_echo=$ac_try;;
16670+esac
16671+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672+ (eval "$ac_try") 2>&5
16673+ ac_status=$?
16674+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675+ (exit $ac_status); }; }; then
16676+ ac_cv_func_malloc_0_nonnull=yes
16677+else
16678+ echo "$as_me: program exited with status $ac_status" >&5
16679+echo "$as_me: failed program was:" >&5
16680+sed 's/^/| /' conftest.$ac_ext >&5
16681+
16682+( exit $ac_status )
16683+ac_cv_func_malloc_0_nonnull=no
16684+fi
16685+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16686+fi
16687+
16688+
16689+fi
16690+{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
16691+echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
16692+if test $ac_cv_func_malloc_0_nonnull = yes; then
16693+
16694+cat >>confdefs.h <<\_ACEOF
16695+#define HAVE_MALLOC 1
16696+_ACEOF
16697+
16698+else
16699+ cat >>confdefs.h <<\_ACEOF
16700+#define HAVE_MALLOC 0
16701+_ACEOF
16702+
16703+ case " $LIBOBJS " in
16704+ *" malloc.$ac_objext "* ) ;;
16705+ *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16706+ ;;
16707+esac
16708+
16709+
16710+cat >>confdefs.h <<\_ACEOF
16711+#define malloc rpl_malloc
16712+_ACEOF
16713+
16714+fi
16715+
16716+
16717+
16718+
16719+
16720+for ac_header in sys/select.h sys/socket.h
16721+do
16722+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16723+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16724+ { echo "$as_me:$LINENO: checking for $ac_header" >&5
16725+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16726+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16727+ echo $ECHO_N "(cached) $ECHO_C" >&6
16728+fi
16729+ac_res=`eval echo '${'$as_ac_Header'}'`
16730+ { echo "$as_me:$LINENO: result: $ac_res" >&5
16731+echo "${ECHO_T}$ac_res" >&6; }
16732+else
16733+ # Is the header compilable?
16734+{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16735+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16736+cat >conftest.$ac_ext <<_ACEOF
16737+/* confdefs.h. */
16738+_ACEOF
16739+cat confdefs.h >>conftest.$ac_ext
16740+cat >>conftest.$ac_ext <<_ACEOF
16741+/* end confdefs.h. */
16742+$ac_includes_default
16743+#include <$ac_header>
16744+_ACEOF
16745+rm -f conftest.$ac_objext
16746+if { (ac_try="$ac_compile"
16747+case "(($ac_try" in
16748+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749+ *) ac_try_echo=$ac_try;;
16750+esac
16751+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752+ (eval "$ac_compile") 2>conftest.er1
16753+ ac_status=$?
16754+ grep -v '^ *+' conftest.er1 >conftest.err
16755+ rm -f conftest.er1
16756+ cat conftest.err >&5
16757+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758+ (exit $ac_status); } && {
16759+ test -z "$ac_c_werror_flag" ||
16760+ test ! -s conftest.err
16761+ } && test -s conftest.$ac_objext; then
16762+ ac_header_compiler=yes
16763+else
16764+ echo "$as_me: failed program was:" >&5
16765+sed 's/^/| /' conftest.$ac_ext >&5
16766+
16767+ ac_header_compiler=no
16768+fi
16769+
16770+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16771+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16772+echo "${ECHO_T}$ac_header_compiler" >&6; }
16773+
16774+# Is the header present?
16775+{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16776+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16777+cat >conftest.$ac_ext <<_ACEOF
16778+/* confdefs.h. */
16779+_ACEOF
16780+cat confdefs.h >>conftest.$ac_ext
16781+cat >>conftest.$ac_ext <<_ACEOF
16782+/* end confdefs.h. */
16783+#include <$ac_header>
16784+_ACEOF
16785+if { (ac_try="$ac_cpp conftest.$ac_ext"
16786+case "(($ac_try" in
16787+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788+ *) ac_try_echo=$ac_try;;
16789+esac
16790+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16792+ ac_status=$?
16793+ grep -v '^ *+' conftest.er1 >conftest.err
16794+ rm -f conftest.er1
16795+ cat conftest.err >&5
16796+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797+ (exit $ac_status); } >/dev/null && {
16798+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16799+ test ! -s conftest.err
16800+ }; then
16801+ ac_header_preproc=yes
16802+else
16803+ echo "$as_me: failed program was:" >&5
16804+sed 's/^/| /' conftest.$ac_ext >&5
16805+
16806+ ac_header_preproc=no
16807+fi
16808+
16809+rm -f conftest.err conftest.$ac_ext
16810+{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16811+echo "${ECHO_T}$ac_header_preproc" >&6; }
16812+
16813+# So? What about this header?
16814+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16815+ yes:no: )
16816+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16817+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16818+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16819+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16820+ ac_header_preproc=yes
16821+ ;;
16822+ no:yes:* )
16823+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16824+echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16825+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16826+echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16827+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16828+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16829+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16830+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16831+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16832+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16833+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16834+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16835+ ( cat <<\_ASBOX
16836+## -------------------------------------------- ##
16837+## Report this to satofumi@users.sourceforge.jp ##
16838+## -------------------------------------------- ##
16839+_ASBOX
16840+ ) | sed "s/^/$as_me: WARNING: /" >&2
16841+ ;;
16842+esac
16843+{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16844+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16845+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16846+ echo $ECHO_N "(cached) $ECHO_C" >&6
16847+else
16848+ eval "$as_ac_Header=\$ac_header_preproc"
16849+fi
16850+ac_res=`eval echo '${'$as_ac_Header'}'`
16851+ { echo "$as_me:$LINENO: result: $ac_res" >&5
16852+echo "${ECHO_T}$ac_res" >&6; }
16853+
16854+fi
16855+if test `eval echo '${'$as_ac_Header'}'` = yes; then
16856+ cat >>confdefs.h <<_ACEOF
16857+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16858+_ACEOF
16859+
16860+fi
16861+
16862+done
16863+
16864+{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
16865+echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16866+if test "${ac_cv_func_select_args+set}" = set; then
16867+ echo $ECHO_N "(cached) $ECHO_C" >&6
16868+else
16869+ for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16870+ for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16871+ for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16872+ cat >conftest.$ac_ext <<_ACEOF
16873+/* confdefs.h. */
16874+_ACEOF
16875+cat confdefs.h >>conftest.$ac_ext
16876+cat >>conftest.$ac_ext <<_ACEOF
16877+/* end confdefs.h. */
16878+$ac_includes_default
16879+#ifdef HAVE_SYS_SELECT_H
16880+# include <sys/select.h>
16881+#endif
16882+#ifdef HAVE_SYS_SOCKET_H
16883+# include <sys/socket.h>
16884+#endif
16885+
16886+int
16887+main ()
16888+{
16889+extern int select ($ac_arg1,
16890+ $ac_arg234, $ac_arg234, $ac_arg234,
16891+ $ac_arg5);
16892+ ;
16893+ return 0;
16894+}
16895+_ACEOF
16896+rm -f conftest.$ac_objext
16897+if { (ac_try="$ac_compile"
16898+case "(($ac_try" in
16899+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900+ *) ac_try_echo=$ac_try;;
16901+esac
16902+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903+ (eval "$ac_compile") 2>conftest.er1
16904+ ac_status=$?
16905+ grep -v '^ *+' conftest.er1 >conftest.err
16906+ rm -f conftest.er1
16907+ cat conftest.err >&5
16908+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909+ (exit $ac_status); } && {
16910+ test -z "$ac_c_werror_flag" ||
16911+ test ! -s conftest.err
16912+ } && test -s conftest.$ac_objext; then
16913+ ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16914+else
16915+ echo "$as_me: failed program was:" >&5
16916+sed 's/^/| /' conftest.$ac_ext >&5
16917+
16918+
16919+fi
16920+
16921+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922+ done
16923+ done
16924+done
16925+# Provide a safe default value.
16926+: ${ac_cv_func_select_args='int,int *,struct timeval *'}
16927+
16928+fi
16929+{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16930+echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16931+ac_save_IFS=$IFS; IFS=','
16932+set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16933+IFS=$ac_save_IFS
16934+shift
16935+
16936+cat >>confdefs.h <<_ACEOF
16937+#define SELECT_TYPE_ARG1 $1
16938+_ACEOF
16939+
16940+
16941+cat >>confdefs.h <<_ACEOF
16942+#define SELECT_TYPE_ARG234 ($2)
16943+_ACEOF
16944+
16945+
16946+cat >>confdefs.h <<_ACEOF
16947+#define SELECT_TYPE_ARG5 ($3)
16948+_ACEOF
16949+
16950+rm -f conftest*
16951+
16952+{ echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
16953+echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
16954+if test "${ac_cv_have_decl_strerror_r+set}" = set; then
16955+ echo $ECHO_N "(cached) $ECHO_C" >&6
16956+else
16957+ cat >conftest.$ac_ext <<_ACEOF
16958+/* confdefs.h. */
16959+_ACEOF
16960+cat confdefs.h >>conftest.$ac_ext
16961+cat >>conftest.$ac_ext <<_ACEOF
16962+/* end confdefs.h. */
16963+$ac_includes_default
16964+int
16965+main ()
16966+{
16967+#ifndef strerror_r
16968+ (void) strerror_r;
16969+#endif
16970+
16971+ ;
16972+ return 0;
16973+}
16974+_ACEOF
16975+rm -f conftest.$ac_objext
16976+if { (ac_try="$ac_compile"
16977+case "(($ac_try" in
16978+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979+ *) ac_try_echo=$ac_try;;
16980+esac
16981+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982+ (eval "$ac_compile") 2>conftest.er1
16983+ ac_status=$?
16984+ grep -v '^ *+' conftest.er1 >conftest.err
16985+ rm -f conftest.er1
16986+ cat conftest.err >&5
16987+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988+ (exit $ac_status); } && {
16989+ test -z "$ac_c_werror_flag" ||
16990+ test ! -s conftest.err
16991+ } && test -s conftest.$ac_objext; then
16992+ ac_cv_have_decl_strerror_r=yes
16993+else
16994+ echo "$as_me: failed program was:" >&5
16995+sed 's/^/| /' conftest.$ac_ext >&5
16996+
16997+ ac_cv_have_decl_strerror_r=no
16998+fi
16999+
17000+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001+fi
17002+{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
17003+echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
17004+if test $ac_cv_have_decl_strerror_r = yes; then
17005+
17006+cat >>confdefs.h <<_ACEOF
17007+#define HAVE_DECL_STRERROR_R 1
17008+_ACEOF
17009+
17010+
17011+else
17012+ cat >>confdefs.h <<_ACEOF
17013+#define HAVE_DECL_STRERROR_R 0
17014+_ACEOF
17015+
17016+
17017+fi
17018+
17019+
17020+
17021+for ac_func in strerror_r
17022+do
1230917023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1231017024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
1231117025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
@@ -12397,7 +17111,230 @@
1239717111 fi
1239817112 done
1239917113
17114+{ echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
17115+echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
17116+if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
17117+ echo $ECHO_N "(cached) $ECHO_C" >&6
17118+else
1240017119
17120+ ac_cv_func_strerror_r_char_p=no
17121+ if test $ac_cv_have_decl_strerror_r = yes; then
17122+ cat >conftest.$ac_ext <<_ACEOF
17123+/* confdefs.h. */
17124+_ACEOF
17125+cat confdefs.h >>conftest.$ac_ext
17126+cat >>conftest.$ac_ext <<_ACEOF
17127+/* end confdefs.h. */
17128+$ac_includes_default
17129+int
17130+main ()
17131+{
17132+
17133+ char buf[100];
17134+ char x = *strerror_r (0, buf, sizeof buf);
17135+ char *p = strerror_r (0, buf, sizeof buf);
17136+ return !p || x;
17137+
17138+ ;
17139+ return 0;
17140+}
17141+_ACEOF
17142+rm -f conftest.$ac_objext
17143+if { (ac_try="$ac_compile"
17144+case "(($ac_try" in
17145+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146+ *) ac_try_echo=$ac_try;;
17147+esac
17148+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149+ (eval "$ac_compile") 2>conftest.er1
17150+ ac_status=$?
17151+ grep -v '^ *+' conftest.er1 >conftest.err
17152+ rm -f conftest.er1
17153+ cat conftest.err >&5
17154+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155+ (exit $ac_status); } && {
17156+ test -z "$ac_c_werror_flag" ||
17157+ test ! -s conftest.err
17158+ } && test -s conftest.$ac_objext; then
17159+ ac_cv_func_strerror_r_char_p=yes
17160+else
17161+ echo "$as_me: failed program was:" >&5
17162+sed 's/^/| /' conftest.$ac_ext >&5
17163+
17164+
17165+fi
17166+
17167+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17168+ else
17169+ # strerror_r is not declared. Choose between
17170+ # systems that have relatively inaccessible declarations for the
17171+ # function. BeOS and DEC UNIX 4.0 fall in this category, but the
17172+ # former has a strerror_r that returns char*, while the latter
17173+ # has a strerror_r that returns `int'.
17174+ # This test should segfault on the DEC system.
17175+ if test "$cross_compiling" = yes; then
17176+ :
17177+else
17178+ cat >conftest.$ac_ext <<_ACEOF
17179+/* confdefs.h. */
17180+_ACEOF
17181+cat confdefs.h >>conftest.$ac_ext
17182+cat >>conftest.$ac_ext <<_ACEOF
17183+/* end confdefs.h. */
17184+$ac_includes_default
17185+ extern char *strerror_r ();
17186+int
17187+main ()
17188+{
17189+char buf[100];
17190+ char x = *strerror_r (0, buf, sizeof buf);
17191+ return ! isalpha (x);
17192+ ;
17193+ return 0;
17194+}
17195+_ACEOF
17196+rm -f conftest$ac_exeext
17197+if { (ac_try="$ac_link"
17198+case "(($ac_try" in
17199+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200+ *) ac_try_echo=$ac_try;;
17201+esac
17202+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203+ (eval "$ac_link") 2>&5
17204+ ac_status=$?
17205+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17207+ { (case "(($ac_try" in
17208+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209+ *) ac_try_echo=$ac_try;;
17210+esac
17211+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212+ (eval "$ac_try") 2>&5
17213+ ac_status=$?
17214+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215+ (exit $ac_status); }; }; then
17216+ ac_cv_func_strerror_r_char_p=yes
17217+else
17218+ echo "$as_me: program exited with status $ac_status" >&5
17219+echo "$as_me: failed program was:" >&5
17220+sed 's/^/| /' conftest.$ac_ext >&5
17221+
17222+fi
17223+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17224+fi
17225+
17226+
17227+ fi
17228+
17229+fi
17230+{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
17231+echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
17232+if test $ac_cv_func_strerror_r_char_p = yes; then
17233+
17234+cat >>confdefs.h <<\_ACEOF
17235+#define STRERROR_R_CHAR_P 1
17236+_ACEOF
17237+
17238+fi
17239+
17240+
17241+
17242+
17243+
17244+for ac_func in floor gettimeofday select strtol
17245+do
17246+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17247+{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17248+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17249+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17250+ echo $ECHO_N "(cached) $ECHO_C" >&6
17251+else
17252+ cat >conftest.$ac_ext <<_ACEOF
17253+/* confdefs.h. */
17254+_ACEOF
17255+cat confdefs.h >>conftest.$ac_ext
17256+cat >>conftest.$ac_ext <<_ACEOF
17257+/* end confdefs.h. */
17258+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17259+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
17260+#define $ac_func innocuous_$ac_func
17261+
17262+/* System header to define __stub macros and hopefully few prototypes,
17263+ which can conflict with char $ac_func (); below.
17264+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17265+ <limits.h> exists even on freestanding compilers. */
17266+
17267+#ifdef __STDC__
17268+# include <limits.h>
17269+#else
17270+# include <assert.h>
17271+#endif
17272+
17273+#undef $ac_func
17274+
17275+/* Override any GCC internal prototype to avoid an error.
17276+ Use char because int might match the return type of a GCC
17277+ builtin and then its argument prototype would still apply. */
17278+#ifdef __cplusplus
17279+extern "C"
17280+#endif
17281+char $ac_func ();
17282+/* The GNU C library defines this for functions which it implements
17283+ to always fail with ENOSYS. Some functions are actually named
17284+ something starting with __ and the normal name is an alias. */
17285+#if defined __stub_$ac_func || defined __stub___$ac_func
17286+choke me
17287+#endif
17288+
17289+int
17290+main ()
17291+{
17292+return $ac_func ();
17293+ ;
17294+ return 0;
17295+}
17296+_ACEOF
17297+rm -f conftest.$ac_objext conftest$ac_exeext
17298+if { (ac_try="$ac_link"
17299+case "(($ac_try" in
17300+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301+ *) ac_try_echo=$ac_try;;
17302+esac
17303+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304+ (eval "$ac_link") 2>conftest.er1
17305+ ac_status=$?
17306+ grep -v '^ *+' conftest.er1 >conftest.err
17307+ rm -f conftest.er1
17308+ cat conftest.err >&5
17309+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310+ (exit $ac_status); } && {
17311+ test -z "$ac_c_werror_flag" ||
17312+ test ! -s conftest.err
17313+ } && test -s conftest$ac_exeext &&
17314+ $as_test_x conftest$ac_exeext; then
17315+ eval "$as_ac_var=yes"
17316+else
17317+ echo "$as_me: failed program was:" >&5
17318+sed 's/^/| /' conftest.$ac_ext >&5
17319+
17320+ eval "$as_ac_var=no"
17321+fi
17322+
17323+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17324+ conftest$ac_exeext conftest.$ac_ext
17325+fi
17326+ac_res=`eval echo '${'$as_ac_var'}'`
17327+ { echo "$as_me:$LINENO: result: $ac_res" >&5
17328+echo "${ECHO_T}$ac_res" >&6; }
17329+if test `eval echo '${'$as_ac_var'}'` = yes; then
17330+ cat >>confdefs.h <<_ACEOF
17331+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17332+_ACEOF
17333+
17334+fi
17335+done
17336+
17337+
1240117338 ac_config_files="$ac_config_files Makefile src/Makefile example/Makefile"
1240217339
1240317340 cat >confcache <<\_ACEOF
@@ -12503,6 +17440,13 @@
1250317440 Usually this means the macro was only invoked conditionally." >&2;}
1250417441 { (exit 1); exit 1; }; }
1250517442 fi
17443+if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17444+ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17445+Usually this means the macro was only invoked conditionally." >&5
17446+echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17447+Usually this means the macro was only invoked conditionally." >&2;}
17448+ { (exit 1); exit 1; }; }
17449+fi
1250617450 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1250717451 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1250817452 Usually this means the macro was only invoked conditionally." >&5
@@ -13107,6 +18051,61 @@
1310718051 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
1310818052 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
1310918053 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18054+compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18055+predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18056+postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18057+predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18058+postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18059+compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18060+LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18061+reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18062+reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18063+old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18064+compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18065+GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18066+lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18067+lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18068+lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18069+lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18070+lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18071+archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18072+enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18073+export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18074+whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18075+compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18076+old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18077+old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18078+archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18079+archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18080+module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18081+module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18082+with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18083+allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18084+no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18085+hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18086+hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18087+hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18088+hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18089+hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18090+hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18091+hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18092+hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18093+inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18094+link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18095+always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18096+export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18097+exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18098+include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18099+prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18100+postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18101+file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18102+hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18103+compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18104+predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18105+postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18106+predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18107+postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18108+compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
1311018109
1311118110 LTCC='$LTCC'
1311218111 LTCFLAGS='$LTCFLAGS'
@@ -13185,7 +18184,39 @@
1318518184 install_override_mode \
1318618185 finish_eval \
1318718186 old_striplib \
13188-striplib; do
18187+striplib \
18188+compiler_lib_search_dirs \
18189+predep_objects \
18190+postdep_objects \
18191+predeps \
18192+postdeps \
18193+compiler_lib_search_path \
18194+LD_CXX \
18195+reload_flag_CXX \
18196+compiler_CXX \
18197+lt_prog_compiler_no_builtin_flag_CXX \
18198+lt_prog_compiler_pic_CXX \
18199+lt_prog_compiler_wl_CXX \
18200+lt_prog_compiler_static_CXX \
18201+lt_cv_prog_compiler_c_o_CXX \
18202+export_dynamic_flag_spec_CXX \
18203+whole_archive_flag_spec_CXX \
18204+compiler_needs_object_CXX \
18205+with_gnu_ld_CXX \
18206+allow_undefined_flag_CXX \
18207+no_undefined_flag_CXX \
18208+hardcode_libdir_flag_spec_CXX \
18209+hardcode_libdir_flag_spec_ld_CXX \
18210+hardcode_libdir_separator_CXX \
18211+exclude_expsyms_CXX \
18212+include_expsyms_CXX \
18213+file_list_spec_CXX \
18214+compiler_lib_search_dirs_CXX \
18215+predep_objects_CXX \
18216+postdep_objects_CXX \
18217+predeps_CXX \
18218+postdeps_CXX \
18219+compiler_lib_search_path_CXX; do
1318918220 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1319018221 *[\\\\\\\`\\"\\\$]*)
1319118222 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
@@ -13215,7 +18246,18 @@
1321518246 postuninstall_cmds \
1321618247 finish_cmds \
1321718248 sys_lib_search_path_spec \
13218-sys_lib_dlsearch_path_spec; do
18249+sys_lib_dlsearch_path_spec \
18250+reload_cmds_CXX \
18251+old_archive_cmds_CXX \
18252+old_archive_from_new_cmds_CXX \
18253+old_archive_from_expsyms_cmds_CXX \
18254+archive_cmds_CXX \
18255+archive_expsym_cmds_CXX \
18256+module_cmds_CXX \
18257+module_expsym_cmds_CXX \
18258+export_symbols_cmds_CXX \
18259+prelink_cmds_CXX \
18260+postlink_cmds_CXX; do
1321918261 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1322018262 *[\\\\\\\`\\"\\\$]*)
1322118263 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
@@ -13246,6 +18288,8 @@
1324618288
1324718289
1324818290
18291+
18292+
1324918293 _ACEOF
1325018294
1325118295 cat >>$CONFIG_STATUS <<\_ACEOF
@@ -13381,11 +18425,11 @@
1338118425 AMTAR!$AMTAR$ac_delim
1338218426 am__tar!$am__tar$ac_delim
1338318427 am__untar!$am__untar$ac_delim
13384-CC!$CC$ac_delim
13385-CFLAGS!$CFLAGS$ac_delim
18428+CXX!$CXX$ac_delim
18429+CXXFLAGS!$CXXFLAGS$ac_delim
1338618430 LDFLAGS!$LDFLAGS$ac_delim
1338718431 CPPFLAGS!$CPPFLAGS$ac_delim
13388-ac_ct_CC!$ac_ct_CC$ac_delim
18432+ac_ct_CXX!$ac_ct_CXX$ac_delim
1338918433 EXEEXT!$EXEEXT$ac_delim
1339018434 OBJEXT!$OBJEXT$ac_delim
1339118435 DEPDIR!$DEPDIR$ac_delim
@@ -13394,9 +18438,18 @@
1339418438 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
1339518439 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
1339618440 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
18441+CXXDEPMODE!$CXXDEPMODE$ac_delim
18442+am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
18443+am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
18444+CC!$CC$ac_delim
18445+CFLAGS!$CFLAGS$ac_delim
18446+ac_ct_CC!$ac_ct_CC$ac_delim
1339718447 CCDEPMODE!$CCDEPMODE$ac_delim
1339818448 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
1339918449 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
18450+CPP!$CPP$ac_delim
18451+LN_S!$LN_S$ac_delim
18452+RANLIB!$RANLIB$ac_delim
1340018453 LIBTOOL!$LIBTOOL$ac_delim
1340118454 build!$build$ac_delim
1340218455 build_cpu!$build_cpu$ac_delim
@@ -13410,15 +18463,6 @@
1341018463 GREP!$GREP$ac_delim
1341118464 EGREP!$EGREP$ac_delim
1341218465 FGREP!$FGREP$ac_delim
13413-LD!$LD$ac_delim
13414-DUMPBIN!$DUMPBIN$ac_delim
13415-ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
13416-NM!$NM$ac_delim
13417-LN_S!$LN_S$ac_delim
13418-OBJDUMP!$OBJDUMP$ac_delim
13419-DLLTOOL!$DLLTOOL$ac_delim
13420-AR!$AR$ac_delim
13421-ac_ct_AR!$ac_ct_AR$ac_delim
1342218466 _ACEOF
1342318467
1342418468 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
@@ -13460,7 +18504,14 @@
1346018504 ac_delim='%!_!# '
1346118505 for ac_last_try in false false false false false :; do
1346218506 cat >conf$$subs.sed <<_ACEOF
13463-RANLIB!$RANLIB$ac_delim
18507+LD!$LD$ac_delim
18508+DUMPBIN!$DUMPBIN$ac_delim
18509+ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
18510+NM!$NM$ac_delim
18511+OBJDUMP!$OBJDUMP$ac_delim
18512+DLLTOOL!$DLLTOOL$ac_delim
18513+AR!$AR$ac_delim
18514+ac_ct_AR!$ac_ct_AR$ac_delim
1346418515 MANIFEST_TOOL!$MANIFEST_TOOL$ac_delim
1346518516 DSYMUTIL!$DSYMUTIL$ac_delim
1346618517 NMEDIT!$NMEDIT$ac_delim
@@ -13467,12 +18518,12 @@
1346718518 LIPO!$LIPO$ac_delim
1346818519 OTOOL!$OTOOL$ac_delim
1346918520 OTOOL64!$OTOOL64$ac_delim
13470-CPP!$CPP$ac_delim
18521+CXXCPP!$CXXCPP$ac_delim
1347118522 LIBOBJS!$LIBOBJS$ac_delim
1347218523 LTLIBOBJS!$LTLIBOBJS$ac_delim
1347318524 _ACEOF
1347418525
13475- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
18526+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
1347618527 break
1347718528 elif $ac_last_try; then
1347818529 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
@@ -14088,7 +19139,7 @@
1408819139
1408919140
1409019141 # The names of the tagged configurations supported by this script.
14091-available_tags=""
19142+available_tags="CXX "
1409219143
1409319144 # ### BEGIN LIBTOOL CONFIG
1409419145
@@ -14476,6 +19527,20 @@
1447619527 # How to hardcode a shared library path into an executable.
1447719528 hardcode_action=$hardcode_action
1447819529
19530+# The directories searched by this compiler when creating a shared library.
19531+compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19532+
19533+# Dependencies to place before and after the objects being linked to
19534+# create a shared library.
19535+predep_objects=$lt_predep_objects
19536+postdep_objects=$lt_postdep_objects
19537+predeps=$lt_predeps
19538+postdeps=$lt_postdeps
19539+
19540+# The library search path used internally by the compiler when linking
19541+# a shared library.
19542+compiler_lib_search_path=$lt_compiler_lib_search_path
19543+
1447919544 # ### END LIBTOOL CONFIG
1448019545
1448119546 _LT_EOF
@@ -14668,6 +19733,163 @@
1466819733 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1466919734 chmod +x "$ofile"
1467019735
19736+
19737+ cat <<_LT_EOF >> "$ofile"
19738+
19739+# ### BEGIN LIBTOOL TAG CONFIG: CXX
19740+
19741+# The linker used to build libraries.
19742+LD=$lt_LD_CXX
19743+
19744+# How to create reloadable object files.
19745+reload_flag=$lt_reload_flag_CXX
19746+reload_cmds=$lt_reload_cmds_CXX
19747+
19748+# Commands used to build an old-style archive.
19749+old_archive_cmds=$lt_old_archive_cmds_CXX
19750+
19751+# A language specific compiler.
19752+CC=$lt_compiler_CXX
19753+
19754+# Is the compiler the GNU compiler?
19755+with_gcc=$GCC_CXX
19756+
19757+# Compiler flag to turn off builtin functions.
19758+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19759+
19760+# Additional compiler flags for building library objects.
19761+pic_flag=$lt_lt_prog_compiler_pic_CXX
19762+
19763+# How to pass a linker flag through the compiler.
19764+wl=$lt_lt_prog_compiler_wl_CXX
19765+
19766+# Compiler flag to prevent dynamic linking.
19767+link_static_flag=$lt_lt_prog_compiler_static_CXX
19768+
19769+# Does compiler simultaneously support -c and -o options?
19770+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19771+
19772+# Whether or not to add -lc for building shared libraries.
19773+build_libtool_need_lc=$archive_cmds_need_lc_CXX
19774+
19775+# Whether or not to disallow shared libs when runtime libs are static.
19776+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19777+
19778+# Compiler flag to allow reflexive dlopens.
19779+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19780+
19781+# Compiler flag to generate shared objects directly from archives.
19782+whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19783+
19784+# Whether the compiler copes with passing no objects directly.
19785+compiler_needs_object=$lt_compiler_needs_object_CXX
19786+
19787+# Create an old-style archive from a shared archive.
19788+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19789+
19790+# Create a temporary old-style archive to link instead of a shared archive.
19791+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19792+
19793+# Commands used to build a shared archive.
19794+archive_cmds=$lt_archive_cmds_CXX
19795+archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19796+
19797+# Commands used to build a loadable module if different from building
19798+# a shared archive.
19799+module_cmds=$lt_module_cmds_CXX
19800+module_expsym_cmds=$lt_module_expsym_cmds_CXX
19801+
19802+# Whether we are building with GNU ld or not.
19803+with_gnu_ld=$lt_with_gnu_ld_CXX
19804+
19805+# Flag that allows shared libraries with undefined symbols to be built.
19806+allow_undefined_flag=$lt_allow_undefined_flag_CXX
19807+
19808+# Flag that enforces no undefined symbols.
19809+no_undefined_flag=$lt_no_undefined_flag_CXX
19810+
19811+# Flag to hardcode \$libdir into a binary during linking.
19812+# This must work even if \$libdir does not exist
19813+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19814+
19815+# If ld is used when linking, flag to hardcode \$libdir into a binary
19816+# during linking. This must work even if \$libdir does not exist.
19817+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19818+
19819+# Whether we need a single "-rpath" flag with a separated argument.
19820+hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19821+
19822+# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19823+# DIR into the resulting binary.
19824+hardcode_direct=$hardcode_direct_CXX
19825+
19826+# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19827+# DIR into the resulting binary and the resulting library dependency is
19828+# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19829+# library is relocated.
19830+hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19831+
19832+# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19833+# into the resulting binary.
19834+hardcode_minus_L=$hardcode_minus_L_CXX
19835+
19836+# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19837+# into the resulting binary.
19838+hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19839+
19840+# Set to "yes" if building a shared library automatically hardcodes DIR
19841+# into the library and all subsequent libraries and executables linked
19842+# against it.
19843+hardcode_automatic=$hardcode_automatic_CXX
19844+
19845+# Set to yes if linker adds runtime paths of dependent libraries
19846+# to runtime path list.
19847+inherit_rpath=$inherit_rpath_CXX
19848+
19849+# Whether libtool must link a program against all its dependency libraries.
19850+link_all_deplibs=$link_all_deplibs_CXX
19851+
19852+# Set to "yes" if exported symbols are required.
19853+always_export_symbols=$always_export_symbols_CXX
19854+
19855+# The commands to list exported symbols.
19856+export_symbols_cmds=$lt_export_symbols_cmds_CXX
19857+
19858+# Symbols that should not be listed in the preloaded symbols.
19859+exclude_expsyms=$lt_exclude_expsyms_CXX
19860+
19861+# Symbols that must always be exported.
19862+include_expsyms=$lt_include_expsyms_CXX
19863+
19864+# Commands necessary for linking programs (against libraries) with templates.
19865+prelink_cmds=$lt_prelink_cmds_CXX
19866+
19867+# Commands necessary for finishing linking programs.
19868+postlink_cmds=$lt_postlink_cmds_CXX
19869+
19870+# Specify filename containing input files.
19871+file_list_spec=$lt_file_list_spec_CXX
19872+
19873+# How to hardcode a shared library path into an executable.
19874+hardcode_action=$hardcode_action_CXX
19875+
19876+# The directories searched by this compiler when creating a shared library.
19877+compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19878+
19879+# Dependencies to place before and after the objects being linked to
19880+# create a shared library.
19881+predep_objects=$lt_predep_objects_CXX
19882+postdep_objects=$lt_postdep_objects_CXX
19883+predeps=$lt_predeps_CXX
19884+postdeps=$lt_postdeps_CXX
19885+
19886+# The library search path used internally by the compiler when linking
19887+# a shared library.
19888+compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19889+
19890+# ### END LIBTOOL TAG CONFIG: CXX
19891+_LT_EOF
19892+
1467119893 ;;
1467219894
1467319895 esac
--- trunk/libs/packages/urg_10/Makefile.in (revision 1988)
+++ trunk/libs/packages/urg_10/Makefile.in (revision 1989)
@@ -82,6 +82,10 @@
8282 CFLAGS = @CFLAGS@
8383 CPP = @CPP@
8484 CPPFLAGS = @CPPFLAGS@
85+CXX = @CXX@
86+CXXCPP = @CXXCPP@
87+CXXDEPMODE = @CXXDEPMODE@
88+CXXFLAGS = @CXXFLAGS@
8589 CYGPATH_W = @CYGPATH_W@
8690 DEFS = @DEFS@
8791 DEPDIR = @DEPDIR@
@@ -136,6 +140,7 @@
136140 abs_top_srcdir = @abs_top_srcdir@
137141 ac_ct_AR = @ac_ct_AR@
138142 ac_ct_CC = @ac_ct_CC@
143+ac_ct_CXX = @ac_ct_CXX@
139144 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
140145 am__include = @am__include@
141146 am__leading_dot = @am__leading_dot@
--- trunk/libs/packages/urg_10/configure.in (revision 1988)
+++ trunk/libs/packages/urg_10/configure.in (revision 1989)
@@ -8,7 +8,14 @@
88 AC_CONFIG_HEADER([config.h])
99
1010 # Checks for programs.
11+AC_PROG_CXX
12+AC_PROG_AWK
1113 AC_PROG_CC
14+AC_PROG_CPP
15+AC_PROG_INSTALL
16+AC_PROG_LN_S
17+AC_PROG_MAKE_SET
18+AC_PROG_RANLIB
1219 AC_PROG_LIBTOOL
1320
1421 # Checks for libraries.
@@ -16,14 +23,18 @@
1623
1724 # Checks for header files.
1825 AC_HEADER_STDC
19-AC_CHECK_HEADERS([stdlib.h string.h])
26+AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h termios.h unistd.h])
2027
2128 # Checks for typedefs, structures, and compiler characteristics.
2229 AC_C_CONST
2330 AC_TYPE_SIZE_T
31+AC_HEADER_TIME
2432
2533 # Checks for library functions.
26-AC_CHECK_FUNCS([floor])
34+AC_FUNC_MALLOC
35+AC_FUNC_SELECT_ARGTYPES
36+AC_FUNC_STRERROR_R
37+AC_CHECK_FUNCS([floor gettimeofday select strtol])
2738
2839 AC_CONFIG_FILES([Makefile
2940 src/Makefile
--- trunk/libs/packages/urg_10/src/Makefile.in (revision 1988)
+++ trunk/libs/packages/urg_10/src/Makefile.in (revision 1989)
@@ -89,6 +89,10 @@
8989 CFLAGS = @CFLAGS@
9090 CPP = @CPP@
9191 CPPFLAGS = @CPPFLAGS@
92+CXX = @CXX@
93+CXXCPP = @CXXCPP@
94+CXXDEPMODE = @CXXDEPMODE@
95+CXXFLAGS = @CXXFLAGS@
9296 CYGPATH_W = @CYGPATH_W@
9397 DEFS = @DEFS@
9498 DEPDIR = @DEPDIR@
@@ -143,6 +147,7 @@
143147 abs_top_srcdir = @abs_top_srcdir@
144148 ac_ct_AR = @ac_ct_AR@
145149 ac_ct_CC = @ac_ct_CC@
150+ac_ct_CXX = @ac_ct_CXX@
146151 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
147152 am__include = @am__include@
148153 am__leading_dot = @am__leading_dot@
@@ -190,8 +195,8 @@
190195 top_srcdir = @top_srcdir@
191196 lib_LTLIBRARIES = liburg_10.la
192197 liburg_10_includedir = $(includedir)/urg_10
193-liburg_10_include_HEADERS = urg_ctrl.h urg_t.h
194-liburg_10_la_SOURCES = urg_parameter_t.h math_utils.h \
198+liburg_10_include_HEADERS = detect_os.h urg_ctrl.h urg_t.h serial_t.h urg_parameter_t.h serial_t_lin.h serial_t_win.h urg_ticks.h urg_delay.h ring_buffer.h
199+liburg_10_la_SOURCES = math_utils.h scip_handler_10.h urg_errno.h serial_ctrl.h serial_utils.h serial_errno.h \
195200 urg_ctrl.c urg_errno.c scip_handler_10.c ring_buffer.c serial_ctrl.c serial_utils.c urg_ticks.c urg_delay.c
196201
197202 EXTRA_DIST = serial_ctrl_lin.c serial_ctrl_win.c
--- trunk/libs/packages/urg_10/src/urg_ctrl.c (revision 1988)
+++ trunk/libs/packages/urg_10/src/urg_ctrl.c (revision 1989)
@@ -38,7 +38,6 @@
3838 {
3939 serial_initialize(&urg->serial_);
4040 urg->errno_ = UrgNoError;
41- urg->last_timestamp_ = 0;
4241 }
4342
4443
@@ -74,7 +73,7 @@
7473 serial_clear(&urg->serial_);
7574
7675 /* Send QT command */
77- ret = scip_q(&urg->serial_, &reply, ScipWaitReply);
76+ ret = scip_v(&urg->serial_, NULL, 0);
7877 if (ret == UrgSerialRecvFail) {
7978 /* If there is no response, consider that there is mismatch in baudrate */
8079 continue;
@@ -92,12 +91,6 @@
9291 /* If the response is returned, consider that sensor is already in SCIP2.0
9392 mode and no need to send SCIP2.0 */
9493 if (reply != 0x00) {
95-#if 0
96- if ((ret = scip_scip20(&urg->serial_)) < 0) {
97- /* If there is no response , continue with other baudrate */
98- continue;
99- }
100-#endif
10194 if (ret == 12) {
10295 /* SCIP1.1 protocol */
10396 return UrgScip10;
@@ -132,7 +125,6 @@
132125 {
133126 urg->parameters_.area_max_ = 0;
134127 urg->parameters_.scan_rpm_ = 0;
135- urg->parameters_.sensor_type[0] = '\0';
136128 urg->remain_byte_ = 0;
137129 }
138130
@@ -161,20 +153,16 @@
161153 }
162154
163155 /* Update parameter information, nothing but an initialization */
164-#if 0
165- ret = scip_p(&urg->serial_, &urg->parameters_);
166- if (ret < 0) {
167- urg->errno_ = ret;
168- serial_disconnect(&urg->serial_);
169- return ret;
170- }
171156 urg->skip_lines_ = 1;
172- urg->skip_frames_ = 0;
173- urg->capture_times_ = 0;
174- urg->is_laser_on_ = UrgLaserUnknown;
175- urg->remain_times_ = 0;
176-#endif
177157
158+ urg->parameters_.distance_min_ = 20;
159+ urg->parameters_.distance_max_ = 4095;
160+ urg->parameters_.area_total_ = 1024;
161+ urg->parameters_.area_min_ = 44;
162+ urg->parameters_.area_max_ = 725;
163+ urg->parameters_.area_front_ = 384;
164+ urg->parameters_.scan_rpm_ = 600;
165+
178166 urg->errno_ = UrgNoError;
179167 return 0;
180168 }
@@ -183,7 +171,6 @@
183171 void urg_disconnect(urg_t *urg)
184172 {
185173 /* To stop MD/MS command */
186- urg_laserOff(urg);
187174 serial_skip(&urg->serial_, ScipTimeout, EachTimeout);
188175
189176 /* Disconnect serial connection */
@@ -213,12 +200,6 @@
213200 }
214201
215202
216-const char* urg_model(const urg_t *urg)
217-{
218- return urg->parameters_.sensor_type;
219-}
220-
221-
222203 int urg_dataMax(const urg_t *urg)
223204 {
224205 return urg->parameters_.area_max_ + 1;
@@ -264,7 +245,7 @@
264245 int first_index,
265246 int last_index)
266247 {
267- char buffer[] = "MDsssseeeellstt\n";
248+ char buffer[] = "Gsssseeeellstt\n";
268249
269250 if (first_index == URG_FIRST) {
270251 first_index = urg->parameters_.area_min_;
@@ -276,18 +257,10 @@
276257 if (request_type == URG_G) {
277258
278259 /* In case of G */
279- snprintf(buffer, 13, "G%04d%04d%02d\n",
260+ snprintf(buffer, 11, "G%03d%03d%02d\n",
280261 first_index, last_index, urg->skip_lines_);
281262
282- /* Switch on the laser if laser is in off state */
283- if (urg->is_laser_on_ != UrgLaserOn) {
284- int ret = urg_laserOn(urg);
285- if (ret < 0) {
286- return ret;
287- }
288- }
289-
290- } else {
263+ } else {
291264 urg->errno_ = UrgInvalidArgs;;
292265 return urg->errno_;
293266 }
@@ -360,6 +333,7 @@
360333 if (filled >= data_max) {
361334 return data_max;
362335 }
336+ //fprintf(stderr, "length: %d, %c%c, %ld\n", filled, buffer[0], buffer[1], length);
363337 *data_p++ = length;
364338 ++filled;
365339 }
@@ -406,13 +380,11 @@
406380 enum {
407381 EchoBack = 0,
408382 ReplyCode,
409- Timestamp,
410383
411384 False = 0,
412385 True = 1,
413386
414- MD_MS_Length = 15, /* Length of MD, MS */
415- GD_GS_Length = 12, /* Length of GD, GS */
387+ G_Length = 9, /* Length of G */
416388 };
417389
418390 int lines = 0;
@@ -423,22 +395,16 @@
423395
424396 char current_type[] = "xx";
425397 int current_first = -1;
426- //int current_last = -1;
427- //int current_skip_lines = -1;
428- //int current_skip_frames = -1;
429- //int current_capture_times = -1;
430398 int current_data_bytes = 3;
431399 int dummy_last;
432400 int timeout = ScipTimeout;
433401
434402 /* Initialization of time stamp */
435- urg->last_timestamp_ = UrgInvalidTimestamp;
436-
437403 urg->errno_ = UrgNoResponse;
438404
439405 while (1) {
440406 n = serial_getLine(&urg->serial_, buffer, ScipLineWidth, timeout);
441- //fprintf(stderr, "%d: %s\n", urg_ticks(), buffer);
407+ //fprintf(stderr, "%d: %s\n", lines, buffer);
442408 if (n <= 0) {
443409 if (is_echoback) {
444410 is_echoback = False;
@@ -448,26 +414,15 @@
448414 break;
449415 }
450416
451- if (lines > 0) {
452- /* ignore echoback */
453- if (checkSum(buffer, n - 1, buffer[n - 1]) < 0) {
454- urg->errno_ = UrgInvalidResponse;
455- lines = 0;
456- filled = 0;
457- is_echoback = False;
458- continue;
459- }
460- }
461-
462- if (lines > Timestamp) {
417+ if (lines > ReplyCode) {
463418 /* convert data */
464- filled = convertRawData(data, data_max, buffer, n - 1, filled,
419+ filled = convertRawData(data, data_max, buffer, n, filled,
465420 current_data_bytes, skip_lines,
466421 store_last, urg);
467422
468423 } else if (lines == EchoBack) {
469424
470- if ((n != GD_GS_Length) && (n != MD_MS_Length)) {
425+ if (n != G_Length) {
471426 /* Return if response is not GD/GS, MD/MS */
472427 urg->errno_ = UrgInvalidResponse;
473428 lines = 0;
@@ -475,14 +430,11 @@
475430 is_echoback = False;
476431 continue;
477432 }
478- /* Response command */
479- current_type[0] = buffer[0];
480- current_type[1] = buffer[1];
481433
482434 /* Initialisation of receiving settings */
483- current_first = atoi_substr(&buffer[2], 4);
484- //current_last = atoi_substr(&buffer[6], 4);
485- //current_skip_lines = atoi_substr(&buffer[10], 2);
435+ current_first = atoi_substr(&buffer[1], 3);
436+ //current_last = atoi_substr(&buffer[5], 3);
437+ //current_skip_lines = atoi_substr(&buffer[8], 2);
486438
487439 if ((current_first - store_first) >= data_max) {
488440 /* no data */
@@ -494,40 +446,9 @@
494446 for (filled = 0; filled < dummy_last; ++filled) {
495447 data[filled] = InvalidRange;
496448 }
449+ current_data_bytes = 3;
497450
498- if (n == GD_GS_Length) {
499- /* Ignore receive frame settings and number of frames settings for
500- GD/GS command */
501- urg->remain_times_ = 0;
502-
503- } else {
504- //current_skip_frames = atoi_substr(&buffer[12], 1);
505- //current_capture_times = atoi_substr(&buffer[13], 2);
506-
507- /* In case of MD/MS, store the remaining number of scans. */
508- urg->remain_times_ = atoi(&buffer[13]);
509- }
510- current_data_bytes = (current_type[1] == 'S') ? 2 : 3;
511-
512451 } else if (lines == ReplyCode) {
513- if (! strncmp(buffer, "10", 2)) {
514- urg->is_laser_on_ = UrgLaserOff;
515- }
516-
517- /* If response is "0B", ignore all response. Because there is a
518- possibility that the correspondence of the response shifts. */
519- if (! strncmp(buffer, "0B", 2)) {
520- serial_skip(&urg->serial_, ScipTimeout, timeout);
521- }
522-
523- /* In case of MD/MS, response = "00" means transition request and hence
524- readout one more line, and then reset the process */
525- if (current_type[0] == 'M' && (! strncmp(buffer, "00", 2))) {
526- is_echoback = True;
527- }
528-
529- } else if (lines == Timestamp) {
530- urg->last_timestamp_ = decode(buffer, 4);
531452 }
532453
533454 ++lines;
@@ -534,22 +455,7 @@
534455 timeout = EachTimeout;
535456 }
536457
537- if (filled <= 0) {
538- return urg->errno_;
539- } else {
540-#if 0
541- // fill to urg->parameters_.area_max_ or data_max
542- int last_index = data_max;
543- if (urg->parameters_.area_max_ < last_index) {
544- last_index = urg->parameters_.area_max_;
545- }
546- for (; filled <= last_index; ++filled) {
547- data[filled] = InvalidRagne;
548- }
549-#endif
550-
551- return filled;
552- }
458+ return (filled <= 0) ? urg->errno_ : filled;
553459 }
554460
555461
@@ -593,13 +499,6 @@
593499 }
594500
595501
596-long urg_recentTimestamp(const urg_t *urg)
597-{
598- /* Return latest time stamp */
599- return urg->last_timestamp_;
600-}
601-
602-
603502 double urg_index2rad(const urg_t *urg, int index)
604503 {
605504 double radian = (2.0 * M_PI) *
@@ -636,83 +535,3 @@
636535 {
637536 return urg_rad2index(urg, M_PI * degree / 180.0);
638537 }
639-
640-
641-int urg_laserOn(urg_t *urg)
642-{
643- /* send BM command */
644- int expected_ret[] = { 0, 2, -1 };
645- int send_n = scip_send(&urg->serial_, "BM\n");
646- if (send_n != 3) {
647- return SerialSendFail;
648- }
649- if (scip_recv(&urg->serial_, "BM", NULL, expected_ret, ScipTimeout) == 0) {
650- urg->is_laser_on_ = UrgLaserOn;
651- }
652-
653- return 0;
654-}
655-
656-
657-int urg_laserOff(urg_t *urg)
658-{
659- return scip_q(&urg->serial_, NULL, ScipWaitReply);
660-}
661-
662-
663-int urg_enableTimestampMode(urg_t *urg)
664-{
665- /* Send TM0 */
666- int expected_ret[] = { 0, 2, -1 };
667- int send_n = scip_send(&urg->serial_, "TM0\n");
668- if (send_n != 4) {
669- return SerialSendFail;
670- }
671- return scip_recv(&urg->serial_, "TM", NULL, expected_ret, ScipTimeout);
672-}
673-
674-
675-int urg_disableTimestampMode(urg_t *urg)
676-{
677- /* Send TM2 */
678- int expected_ret[] = { 0, 3, -1 };
679- int send_n = scip_send(&urg->serial_, "TM2\n");
680- if (send_n != 4) {
681- return SerialSendFail;
682- }
683- return scip_recv(&urg->serial_, "TM", NULL, expected_ret, ScipTimeout);
684-}
685-
686-
687-long urg_currentTimestamp(urg_t *urg)
688-{
689- char buffer[ScipLineWidth];
690- long timestamp = -1;
691- int ret = 0;
692- int n;
693-
694- /* Send TM1 */
695- int expected_ret[] = { 0, -1 };
696- int send_n = scip_send(&urg->serial_, "TM1\n");
697- if (send_n != 4) {
698- return SerialSendFail;
699- }
700- ret = scip_recv(&urg->serial_, "TM", NULL, expected_ret, ScipTimeout);
701- if (ret != 0) {
702- return ret;
703- }
704-
705- /* Decode the timestamp and return */
706- n = serial_getLine(&urg->serial_, buffer, ScipLineWidth, ScipTimeout);
707- if (n == 5) {
708- timestamp = decode(buffer, 4);
709- }
710-
711- /* Read and throw the last response */
712- n = serial_recv(&urg->serial_, buffer, 1, ScipTimeout);
713- if (! serial_isLF(buffer[0])) {
714- serial_ungetc(&urg->serial_, buffer[0]);
715- }
716-
717- return timestamp;
718-}
--- trunk/libs/packages/urg_10/src/urg_parameter_t.h (revision 1988)
+++ trunk/libs/packages/urg_10/src/urg_parameter_t.h (revision 1989)
@@ -13,7 +13,6 @@
1313
1414 enum {
1515 UrgParameterLines = 8 + 1 + 1,
16- SensorTypeLineMax = 80,
1716 };
1817
1918
@@ -21,7 +20,6 @@
2120 \brief URG parameters
2221 */
2322 typedef struct {
24- char sensor_type[SensorTypeLineMax]; /*!< Sensor type */
2523 long distance_min_; /*!< DMIN Information */
2624 long distance_max_; /*!< DMAX Information */
2725 int area_total_; /*!< ARES Information */
--- trunk/libs/packages/urg_10/src/urg_t.h (revision 1988)
+++ trunk/libs/packages/urg_10/src/urg_t.h (revision 1989)
@@ -34,14 +34,7 @@
3434 urg_parameter_t parameters_; /*!< Sensor parameter */
3535
3636 int skip_lines_; /*!< Number of lines to be skipped in one scan */
37- int skip_frames_; /*!< Number of scans to be skipped(Apply only to MD/MS) */
38- int capture_times_; /*!< Frequency of data acquisition(Apply only to MD/MS) */
3937
40- urg_laser_state_t is_laser_on_; /*!< 0 when laser is turned off */
41-
42- long last_timestamp_; /*!< Final time stamp */
43- int remain_times_; /*!< remain times of capture */
44-
4538 char remain_data_[3];
4639 int remain_byte_;
4740
--- trunk/libs/packages/urg_10/src/urg_ctrl.h (revision 1988)
+++ trunk/libs/packages/urg_10/src/urg_ctrl.h (revision 1989)
@@ -142,19 +142,6 @@
142142
143143
144144 /*!
145- \brief URG Returns the sensor type
146-
147- \param[in,out] urg Structure of URG control
148-
149- \retval URG sensor type
150-
151- \code
152-printf("URG type: %s\n", urg_model(&urg)); \endcode
153-*/
154-extern const char* urg_model(const urg_t *urg);
155-
156-
157-/*!
158145 \brief Returns the number of maximum data obtained in one scan
159146
160147 \param[in,out] urg Structure of URG control
@@ -385,84 +372,6 @@
385372 extern int urg_deg2index(const urg_t *urg, int degree);
386373
387374
388-/* ---------------------------------------------------------------------- */
389-
390-
391-/*!
392- \brief Directs laser to switch on
393-
394- \param[in,out] urg Structure of URG control
395-
396- \retval 0 Normal
397- \retval <0 Error
398-
399- \see gd_scan.c
400-*/
401-extern int urg_laserOn(urg_t *urg);
402-
403-
404-/*!
405- \brief Directs laser to switch off
406-
407- \param[in,out] urg Structure of URG control
408-
409- \retval 0 Normal
410- \retval <0 Error
411-*/
412-extern int urg_laserOff(urg_t *urg);
413-
414-
415-/* ---------------------------------------------------------------------- */
416-
417-
418-/*!
419- \brief Enters into time stamp mode
420-
421- \param[in,out] urg Structure of URG control
422-
423- \retval 0 Normal
424- \retval <0 Error
425-*/
426-extern int urg_enableTimestampMode(urg_t *urg);
427-
428-
429-/*!
430- \brief Comes out of time stamp mode
431-
432- \param[in,out] urg Structure of URG control
433-
434- \retval 0 Normal
435- \retval <0 Error
436-*/
437-extern int urg_disableTimestampMode(urg_t *urg);
438-
439-
440-/*!
441- \brief Get time stamp
442-
443- Returns TM1 response.
444-
445- \param[in,out] urg Structure of URG control
446-
447- \retval >=0 Timestamp [msec]
448- \retval <0 Error
449-
450- Example
451- \code
452-// Enters into time stamp
453-urg_enableTimestampMode(&urg);
454-
455-// Get URG time stamp continuously.
456-for (i = 0; i < 5; ++i) {
457- long timestamp = urg_currentTimestamp(&urg);
458- printf("timestamp: %ld\n", timestamp)
459-}
460-
461-// leave tiemstamp mode
462-urg_disableTimestampMode(&urg); \endcode
463-*/
464-extern long urg_currentTimestamp(urg_t *urg);
465-
466375 #ifdef __cplusplus
467376 }
468377 #endif
--- trunk/libs/packages/urg_10/src/Makefile.am (revision 1988)
+++ trunk/libs/packages/urg_10/src/Makefile.am (revision 1989)
@@ -1,9 +1,9 @@
11 lib_LTLIBRARIES = liburg_10.la
22 liburg_10_includedir = $(includedir)/urg_10
33
4-liburg_10_include_HEADERS = urg_ctrl.h urg_t.h
4+liburg_10_include_HEADERS = detect_os.h urg_ctrl.h urg_t.h serial_t.h urg_parameter_t.h serial_t_lin.h serial_t_win.h urg_ticks.h urg_delay.h ring_buffer.h
55
6-liburg_10_la_SOURCES = urg_parameter_t.h math_utils.h \
6+liburg_10_la_SOURCES = math_utils.h scip_handler_10.h urg_errno.h serial_ctrl.h serial_utils.h serial_errno.h \
77 urg_ctrl.c urg_errno.c scip_handler_10.c ring_buffer.c serial_ctrl.c serial_utils.c urg_ticks.c urg_delay.c
88
99 EXTRA_DIST = serial_ctrl_lin.c serial_ctrl_win.c
\ No newline at end of file
--- trunk/libs/packages/urg_10/src/scip_handler_10.c (revision 1988)
+++ trunk/libs/packages/urg_10/src/scip_handler_10.c (revision 1989)
@@ -74,30 +74,6 @@
7474 }
7575
7676
77-int scip_q(serial_t *serial, int *return_code, int wait_reply)
78-{
79- int expected_ret[] = { 0x0, -1 };
80- int ret;
81-
82- ret = scip_send(serial, "QT\n");
83- if (ret != 3) {
84- return ret;
85- }
86-
87- if (wait_reply == ScipNoWaitReply) {
88- return 0;
89- }
90-
91- ret = scip_recv(serial, "QT", return_code, expected_ret, ScipTimeout);
92- if (return_code && (*return_code == 0xE)) {
93- *return_code = -(*return_code);
94- return UrgScip10;
95- }
96-
97- return ret;
98-}
99-
100-
10177 int scip_v(serial_t *serial, char *lines[], int lines_max)
10278 {
10379 int send_n;
@@ -112,13 +88,13 @@
11288 }
11389
11490 /* Send VV command */
115- send_n = scip_send(serial, "VV\n");
116- if (send_n != 3) {
91+ send_n = scip_send(serial, "V\n");
92+ if (send_n != 2) {
11793 return SerialSendFail;
11894 }
11995
12096 /* Receive response */
121- ret = scip_recv(serial, "VV", NULL, expected_reply, ScipTimeout);
97+ ret = scip_recv(serial, "V", NULL, expected_reply, ScipTimeout);
12298 if (ret < 0) {
12399 return ret;
124100 }
--- trunk/libs/packages/urg_10/example/Makefile.in (revision 1988)
+++ trunk/libs/packages/urg_10/example/Makefile.in (revision 1989)
@@ -80,6 +80,10 @@
8080 CFLAGS = @CFLAGS@
8181 CPP = @CPP@
8282 CPPFLAGS = @CPPFLAGS@
83+CXX = @CXX@
84+CXXCPP = @CXXCPP@
85+CXXDEPMODE = @CXXDEPMODE@
86+CXXFLAGS = @CXXFLAGS@
8387 CYGPATH_W = @CYGPATH_W@
8488 DEFS = @DEFS@
8589 DEPDIR = @DEPDIR@
@@ -134,6 +138,7 @@
134138 abs_top_srcdir = @abs_top_srcdir@
135139 ac_ct_AR = @ac_ct_AR@
136140 ac_ct_CC = @ac_ct_CC@
141+ac_ct_CXX = @ac_ct_CXX@
137142 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
138143 am__include = @am__include@
139144 am__leading_dot = @am__leading_dot@
--- trunk/libs/packages/urg_10/example/g_scan.c (revision 1988)
+++ trunk/libs/packages/urg_10/example/g_scan.c (revision 1989)
@@ -29,6 +29,7 @@
2929
3030 int main(int argc, char *argv[])
3131 {
32+ enum { SCAN_TIMES = 2 };
3233 #ifdef WINDOWS_OS
3334 const char device[] = "COM3"; /* For Windows */
3435 #else
@@ -37,10 +38,10 @@
3738
3839 int data_max;
3940 long *data;
40- int timestamp;
4141 int ret;
4242 int n;
4343 int i;
44+ int k;
4445
4546 /* Connection */
4647 urg_t urg;
@@ -58,27 +59,29 @@
5859 exit(1);
5960 }
6061
61- /* Request for GD data */
62- ret = urg_requestData(&urg, URG_G, URG_FIRST, URG_LAST);
63- if (ret < 0) {
64- urg_exit(&urg, "urg_requestData()");
65- }
62+ for (i = 0; i < SCAN_TIMES; ++i) {
63+ /* Request for GD data */
64+ ret = urg_requestData(&urg, URG_G, URG_FIRST, URG_LAST);
65+ if (ret < 0) {
66+ urg_exit(&urg, "urg_requestData()");
67+ }
6668
67- /* Reception */
68- n = urg_receiveData(&urg, data, data_max);
69- printf("# n = %d\n", n);
70- if (n < 0) {
71- urg_exit(&urg, "urg_receiveData()");
69+ /* Reception */
70+ n = urg_receiveData(&urg, data, data_max);
71+ printf("# n = %d\n", n);
72+ if (n < 0) {
73+ urg_exit(&urg, "urg_receiveData()");
74+ }
7275 }
7376
7477 /* Display */
75- timestamp = urg_recentTimestamp(&urg);
76- printf("# timestamp: %d\n", timestamp);
77- for (i = 0; i < n; ++i) {
78- /* Neglect the distance less than urg_minDistance() */
79- printf("%d %ld, ", i, data[i]);
78+ for (i = 0; i < SCAN_TIMES; ++i) {
79+ for (k = 0; k < n; ++k) {
80+ /* Neglect the distance less than urg_minDistance() */
81+ printf("%ld, ", data[k]);
82+ }
83+ printf("\n");
8084 }
81- printf("\n");
8285
8386 urg_disconnect(&urg);
8487 free(data);
--- trunk/libs/packages/urg_10/config.h.in (revision 1988)
+++ trunk/libs/packages/urg_10/config.h.in (revision 1989)
@@ -1,17 +1,34 @@
11 /* config.h.in. Generated from configure.in by autoheader. */
22
3+/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
4+ don't. */
5+#undef HAVE_DECL_STRERROR_R
6+
37 /* Define to 1 if you have the <dlfcn.h> header file. */
48 #undef HAVE_DLFCN_H
59
10+/* Define to 1 if you have the <fcntl.h> header file. */
11+#undef HAVE_FCNTL_H
12+
613 /* Define to 1 if you have the `floor' function. */
714 #undef HAVE_FLOOR
815
16+/* Define to 1 if you have the `gettimeofday' function. */
17+#undef HAVE_GETTIMEOFDAY
18+
919 /* Define to 1 if you have the <inttypes.h> header file. */
1020 #undef HAVE_INTTYPES_H
1121
22+/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
23+ to 0 otherwise. */
24+#undef HAVE_MALLOC
25+
1226 /* Define to 1 if you have the <memory.h> header file. */
1327 #undef HAVE_MEMORY_H
1428
29+/* Define to 1 if you have the `select' function. */
30+#undef HAVE_SELECT
31+
1532 /* Define to 1 if you have the <stdint.h> header file. */
1633 #undef HAVE_STDINT_H
1734
@@ -18,6 +35,9 @@
1835 /* Define to 1 if you have the <stdlib.h> header file. */
1936 #undef HAVE_STDLIB_H
2037
38+/* Define to 1 if you have the `strerror_r' function. */
39+#undef HAVE_STRERROR_R
40+
2141 /* Define to 1 if you have the <strings.h> header file. */
2242 #undef HAVE_STRINGS_H
2343
@@ -24,12 +44,27 @@
2444 /* Define to 1 if you have the <string.h> header file. */
2545 #undef HAVE_STRING_H
2646
47+/* Define to 1 if you have the `strtol' function. */
48+#undef HAVE_STRTOL
49+
50+/* Define to 1 if you have the <sys/select.h> header file. */
51+#undef HAVE_SYS_SELECT_H
52+
53+/* Define to 1 if you have the <sys/socket.h> header file. */
54+#undef HAVE_SYS_SOCKET_H
55+
2756 /* Define to 1 if you have the <sys/stat.h> header file. */
2857 #undef HAVE_SYS_STAT_H
2958
59+/* Define to 1 if you have the <sys/time.h> header file. */
60+#undef HAVE_SYS_TIME_H
61+
3062 /* Define to 1 if you have the <sys/types.h> header file. */
3163 #undef HAVE_SYS_TYPES_H
3264
65+/* Define to 1 if you have the <termios.h> header file. */
66+#undef HAVE_TERMIOS_H
67+
3368 /* Define to 1 if you have the <unistd.h> header file. */
3469 #undef HAVE_UNISTD_H
3570
@@ -55,9 +90,24 @@
5590 /* Define to the version of this package. */
5691 #undef PACKAGE_VERSION
5792
93+/* Define to the type of arg 1 for `select'. */
94+#undef SELECT_TYPE_ARG1
95+
96+/* Define to the type of args 2, 3 and 4 for `select'. */
97+#undef SELECT_TYPE_ARG234
98+
99+/* Define to the type of arg 5 for `select'. */
100+#undef SELECT_TYPE_ARG5
101+
58102 /* Define to 1 if you have the ANSI C header files. */
59103 #undef STDC_HEADERS
60104
105+/* Define to 1 if strerror_r returns char *. */
106+#undef STRERROR_R_CHAR_P
107+
108+/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
109+#undef TIME_WITH_SYS_TIME
110+
61111 /* Version number of package */
62112 #undef VERSION
63113
@@ -64,5 +114,8 @@
64114 /* Define to empty if `const' does not conform to ANSI C. */
65115 #undef const
66116
117+/* Define to rpl_malloc if the replacement function should be used. */
118+#undef malloc
119+
67120 /* Define to `unsigned int' if <sys/types.h> does not define. */
68121 #undef size_t
旧リポジトリブラウザで表示