--- rpl/Attic/configure 2011/09/16 18:02:43 1.83 +++ rpl/Attic/configure 2011/10/04 19:32:33 1.89 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.68 for rpl 4.1.3. +# Generated by GNU Autoconf 2.68 for rpl 4.1.4. # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -557,8 +557,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='rpl' PACKAGE_TARNAME='rpl' -PACKAGE_VERSION='4.1.3' -PACKAGE_STRING='rpl 4.1.3' +PACKAGE_VERSION='4.1.4' +PACKAGE_STRING='rpl 4.1.4' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -673,9 +673,11 @@ LN_S RUNPATH PROFILAGE subdirs +SHARED_MEMORY LIBRPLCAS RPLCAS ABI +RPLTOOLS X_EXTRA_LIBS X_LIBS X_PRE_LIBS @@ -790,9 +792,11 @@ enable_dependency_tracking with_x with_32bits_abi with_64bits_abi -with_rplcas +with_rpltools +enable_rplcas +enable_shared_memory enable_optimization -enable_sysv_semaphores +enable_sysv_ipcs enable_full_static enable_final_encoding enable_tex @@ -1379,7 +1383,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures rpl 4.1.3 to adapt to many kinds of systems. +\`configure' configures rpl 4.1.4 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1454,7 +1458,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of rpl 4.1.3:";; + short | recursive ) echo "Configuration of rpl 4.1.4:";; esac cat <<\_ACEOF @@ -1464,6 +1468,8 @@ Optional Features: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors + --enable-rplcas compile rplcas (default=no) + --enable-shared-memory enable shared memory [default=yes] --enable-optimization set compiler flags [default=environment variables -O3] --enable-sysv-ipcs use SystemV IPC functions [default=guessed] --enable-full-static build static RPL/2 engine [default=shared] @@ -1484,7 +1490,7 @@ Optional Packages: --with-x use the X Window System --with-32bits-abi force 32bits ABI (multilib) --with-64bits-abi force 64bits ABI (multilib) - --with-rplcas compile rplcas (default=no) + --with-rpltools specify rpltools path used for cross compilation --with-mysql=PATH specify directory for installed mysql --with-postgresql=PATH specify directory for installed postgresql --with-bourne-shell=PATH specify path for OS/2 bourne shell @@ -1573,7 +1579,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -rpl configure 4.1.3 +rpl configure 4.1.4 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -2284,7 +2290,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by rpl $as_me 4.1.3, which was +It was created by rpl $as_me 4.1.4, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -3210,7 +3216,7 @@ fi # Define the identity of the package. PACKAGE='rpl' - VERSION='4.1.3' + VERSION='4.1.4' cat >>confdefs.h <<_ACEOF @@ -3262,7 +3268,7 @@ GPP=gpp-3.0 GNUPLOT=gnuplot-4.4.3 FILE=file-5.03 ICONV=libiconv-1.13.1 -SQLITE=sqlite-3.7.7.1 +SQLITE=sqlite-3.7.8 OPENSSL=openssl-1.0.0e OPENMOTIF=openmotif-2.3.3 LIBXPM=libXpm-3.5.9 @@ -4602,7 +4608,7 @@ fi -if test "$CXX" != "g++"; then +if test "$GXX" != yes; then as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5 fi @@ -4838,10 +4844,6 @@ ac_link='$CC -o conftest$ac_exeext $CFLA ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then - as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5 -fi - ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' @@ -5049,7 +5051,11 @@ ac_link='$CC -o conftest$ac_exeext $CFLA ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then +if test x"$F77" == x; then + as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5 +fi + +if test x"$FC" == x; then as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5 fi @@ -5947,10 +5953,28 @@ fi LDFLAGS="$LDFLAGS $ABI" -# Check whether --with-rplcas was given. -if test "${with_rplcas+set}" = set; then : - withval=$with_rplcas; -if test "$with-rplcas" = "no"; then +# Check whether --with-rpltools was given. +if test "${with_rpltools+set}" = set; then : + withval=$with_rpltools; +if test "$with_rpltools" = "no" -o "$with_rpltools" = yes; then + as_fn_error $? "You have to specify rpltools path !" "$LINENO" 5 +else + RPLTOOLS=$with_rpltools +fi +else + + RPLTOOLS=\$\(top_builddir\) + + +fi + + + + +# Check whether --enable-rplcas was given. +if test "${enable_rplcas+set}" = set; then : + enableval=$enable_rplcas; +if test "$enableval" = "no"; then RPLCAS=-URPLCAS LIBRPLCAS= else @@ -5970,6 +5994,22 @@ fi +# Check whether --enable-shared-memory was given. +if test "${enable_shared_memory+set}" = set; then : + enableval=$enable_shared_memory; +if test "$enableval" = "no"; then + SHARED_MEMORY="-USHARED_MEMORY" +else + SHARED_MEMORY="-DSHARED_MEMORY" +fi +else + + SHARED_MEMORY="-USHARED_MEMORY" +fi + + + + # Check whether --enable-optimization was given. if test "${enable_optimization+set}" = set; then : enableval=$enable_optimization; @@ -5995,18 +6035,29 @@ else fi -# Check whether --enable-sysv-semaphores was given. -if test "${enable_sysv_semaphores+set}" = set; then : - enableval=$enable_sysv_semaphores; +# Check whether --enable-sysv-ipcs was given. +if test "${enable_sysv_ipcs+set}" = set; then : + enableval=$enable_sysv_ipcs; if test "$enableval" = "no"; then - IPCS_SYSV=no + IPCS_SYSV=-UIPCS_SYSV + POSIX_IPCS=no else - IPCS_SYSV=yes + IPCS_SYSV=-DIPCS_SYSV + POSIX_IPCS=yes fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX semaphores" >&5 -$as_echo_n "checking for POSIX semaphores... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext + REG=$LDFLAGS +POSIX_IPCS=guessed +LDFLAGS=-lrt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX semaphores and shared objects" >&5 +$as_echo_n "checking for POSIX semaphores and shared objects... " >&6; } +if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run test program while cross compiling +See \`config.log' for more details" "$LINENO" 5; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -6015,17 +6066,20 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ int main () { - int fd; char *sem = "/sem.test"; + int fd; char *sem = "/test"; fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); close(fd); shm_unlink(sem); + fd = sem_open(sem, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); + close(fd); + sem_unlink(sem); return(0); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_run "$LINENO"; then : IPCS_SYSV=-UIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else @@ -6033,12 +6087,16 @@ else $as_echo "no" >&6; } fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +LDFLAGS=$REG fi -if test "$IPCS_SYSV" = "-UIPCS_SYSV"; then +if test "$IPCS_SYSV" = "-UIPCS_SYSV" -a "$POSIX_IPCS" = "guessed"; then REG=$LDFLAGS LDFLAGS=-pthread { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX anonymous semaphores" >&5 @@ -6347,6 +6405,8 @@ if test ! -d "$srcdir"/rplcas/$GIAC; the (cd "$srcdir/rplcas" && tar -xf -) fi +touch tools/openmotif.lib + # Check whether --enable-final-run-path was given. @@ -7047,7 +7107,51 @@ else as_fn_error $? "Can not find libm !" "$LINENO" 5 fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5 +$as_echo_n "checking for pthread_mutex_init in -lc... " >&6; } +if ${ac_cv_lib_c_pthread_mutex_init+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_mutex_init (); +int +main () +{ +return pthread_mutex_init (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_c_pthread_mutex_init=yes +else + ac_cv_lib_c_pthread_mutex_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5 +$as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; } +if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBC 1 +_ACEOF + + LIBS="-lc $LIBS" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5 $as_echo_n "checking for main in -lpthread... " >&6; } if ${ac_cv_lib_pthread_main+:} false; then : $as_echo_n "(cached) " >&6 @@ -7088,6 +7192,8 @@ else as_fn_error $? "Can not find libpthread !" "$LINENO" 5 fi +fi + ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" " #include @@ -7852,7 +7958,8 @@ fi if test "x$with_bourne_shell" = xno; then if test $(uname) = "OS/2"; then - as_fn_error $? "With OS/2 or eComstation, you have to specify a valide shell path !" "$LINENO" 5 + as_fn_error $? "With OS/2 or eComstation, you have to specify a valide +shell path with --with-bourne-shell=PATH !" "$LINENO" 5 fi BSH_PATH= @@ -9158,42 +9265,86 @@ fi -HOST=$host +HOST=$target -case $host_cpu in +my_save_cflags="$CFLAGS" +FPCFLAGS="" - i?86) - CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \ - -Wno-pointer-sign" - FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c" - FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c" - break ;; +CFLAGS=-malign-double +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -malign-double" >&5 +$as_echo_n "checking whether CC supports -malign-double... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - x86_64*) - CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \ - -Wno-pointer-sign" - FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c" - FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c" - break ;; +int +main () +{ - alpha*) - CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \ - -Wno-pointer-sign" - FFLAGS="$FFLAGS -mieee -Wall" - FCFLAGS="$FCFLAGS -mieee -Wall" - break ;; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -malign-double" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +CFLAGS=-mieee-fp +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee-fp" >&5 +$as_echo_n "checking whether CC supports -mieee-fp... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - sparc*) - CFLAGS="$CFLAGS -Wall -funsigned-char \ - -Wno-pointer-sign" - FFLAGS="$FFLAGS -Wall" - FCFLAGS="$FCFLAGS -Wall" - break ;; +int +main () +{ -esac + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee-fp" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +CFLAGS=-mieee +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee" >&5 +$as_echo_n "checking whether CC supports -mieee... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +CFLAGS=$my_save_cflags + +CFLAGS="$CFLAGS $FPCFLAGS -Wall -funsigned-char -Wno-pointer-sign" +FFLAGS="$FFLAGS $FPCFLAGS -Wall -fno-f2c" +FCFLAGS="$FCFLAGS $FPCFLAGS -Wall -fno-f2c" +CXXFLAGS="$CXXFLAGS $FPCFLAGS -Wall -funsigned-char" -case $host_os in +case $target_os in cygwin*) OS=Cygwin @@ -10001,7 +10152,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by rpl $as_me 4.1.3, which was +This file was extended by rpl $as_me 4.1.4, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -10067,7 +10218,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -rpl config.status 4.1.3 +rpl config.status 4.1.4 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\"