Whitespace cleanup in m4
authorSteve Youngs <steve@sxemacs.org>
Sat, 28 Jan 2012 04:20:31 +0000 (14:20 +1000)
committerSteve Youngs <steve@sxemacs.org>
Sat, 28 Jan 2012 04:20:31 +0000 (14:20 +1000)
Signed-off-by: Steve Youngs <steve@sxemacs.org>
18 files changed:
m4/sxe-acx_pthread.m4
m4/sxe-arch.m4
m4/sxe-aux.m4
m4/sxe-bldchain-progs.m4
m4/sxe-bldenv.m4
m4/sxe-compiler.m4
m4/sxe-crypto.m4
m4/sxe-dbms.m4
m4/sxe-fs-funs.m4
m4/sxe-gui.m4
m4/sxe-iconv.m4
m4/sxe-libc.m4
m4/sxe-machine.m4
m4/sxe-maths.m4
m4/sxe-mm.m4
m4/sxe-option-groups.m4
m4/sxe-sockets.m4
m4/sxe-summary.m4

index 2da122a..1a838e2 100644 (file)
@@ -92,19 +92,19 @@ AC_DEFUN([ACX_PTHREAD], [
        # etcetera environment variables, and if threads linking works using
        # them:
        if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
-               save_CFLAGS="$CFLAGS"
-               CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
-               save_LIBS="$LIBS"
-               LIBS="$PTHREAD_LIBS $LIBS"
-               AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
-               AC_CHECK_FUNC([pthread_join], [acx_pthread_ok=yes])
-               AC_MSG_RESULT($acx_pthread_ok)
-               if test x"$acx_pthread_ok" = xno; then
-                       PTHREAD_LIBS=""
-                       PTHREAD_CFLAGS=""
-               fi
-               LIBS="$save_LIBS"
-               CFLAGS="$save_CFLAGS"
+               save_CFLAGS="$CFLAGS"
+               CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+               save_LIBS="$LIBS"
+               LIBS="$PTHREAD_LIBS $LIBS"
+               AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
+               AC_CHECK_FUNC([pthread_join], [acx_pthread_ok=yes])
+               AC_MSG_RESULT($acx_pthread_ok)
+               if test x"$acx_pthread_ok" = xno; then
+                       PTHREAD_LIBS=""
+                       PTHREAD_CFLAGS=""
+               fi
+               LIBS="$save_LIBS"
+               CFLAGS="$save_CFLAGS"
        fi
 
        # We must check for the threads library under a number of different
@@ -140,32 +140,32 @@ AC_DEFUN([ACX_PTHREAD], [
 # pthread-config: use pthread-config program (for GNU Pth library)
 
 case "${host_cpu}-${host_os}" in
-        *solaris*)
+       *solaris*)
 
-        # On Solaris (at least, for some versions), libc contains stubbed
-        # (non-functional) versions of the pthreads routines, so link-based
-        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
-        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
-        # a function called by this macro, so we could check for that, but
-        # who knows whether they'll stub that too in a future libc.)  So,
-        # we'll just look for -pthreads and -lpthread first:
+       # On Solaris (at least, for some versions), libc contains stubbed
+       # (non-functional) versions of the pthreads routines, so link-based
+       # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
+       # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
+       # a function called by this macro, so we could check for that, but
+       # who knows whether they'll stub that too in a future libc.)  So,
+       # we'll just look for -pthreads and -lpthread first:
 
-        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
-        ;;
+       acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
+       ;;
 esac
 
 if test x"$acx_pthread_ok" = xno; then
 for flag in $acx_pthread_flags; do
 
-        case $flag in
-                none)
-                AC_MSG_CHECKING([whether pthreads work without any flags])
-                ;;
+       case $flag in
+               none)
+               AC_MSG_CHECKING([whether pthreads work without any flags])
+               ;;
 
-                -*)
-                AC_MSG_CHECKING([whether pthreads work with $flag])
-                PTHREAD_CFLAGS="$flag"
-                ;;
+               -*)
+               AC_MSG_CHECKING([whether pthreads work with $flag])
+               PTHREAD_CFLAGS="$flag"
+               ;;
 
                pthread-config)
                AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no)
@@ -174,27 +174,27 @@ for flag in $acx_pthread_flags; do
                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
                ;;
 
-                *)
-                AC_MSG_CHECKING([for the pthreads library -l$flag])
-                PTHREAD_LIBS="-l$flag"
-                ;;
-        esac
+               *)
+               AC_MSG_CHECKING([for the pthreads library -l$flag])
+               PTHREAD_LIBS="-l$flag"
+               ;;
+       esac
 
-        save_LIBS="$LIBS"
-        save_CFLAGS="$CFLAGS"
-        LIBS="$PTHREAD_LIBS $LIBS"
-        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+       save_LIBS="$LIBS"
+       save_CFLAGS="$CFLAGS"
+       LIBS="$PTHREAD_LIBS $LIBS"
+       CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 
-        # Check for various functions.  We must include pthread.h,
-        # since some functions may be macros.  (On the Sequent, we
-        # need a special flag -Kthread to make this header compile.)
-        # We check for pthread_join because it is in -lpthread on IRIX
-        # while pthread_create is in libc.  We check for pthread_attr_init
-        # due to DEC craziness with -lpthreads.  We check for
-        # pthread_cleanup_push because it is one of the few pthread
-        # functions on Solaris that doesn't have a non-functional libc stub.
-        # We try pthread_create on general principles.
-        AC_LINK_IFELSE([AC_LANG_SOURCE([[
+       # Check for various functions.  We must include pthread.h,
+       # since some functions may be macros.  (On the Sequent, we
+       # need a special flag -Kthread to make this header compile.)
+       # We check for pthread_join because it is in -lpthread on IRIX
+       # while pthread_create is in libc.  We check for pthread_attr_init
+       # due to DEC craziness with -lpthreads.  We check for
+       # pthread_cleanup_push because it is one of the few pthread
+       # functions on Solaris that doesn't have a non-functional libc stub.
+       # We try pthread_create on general principles.
+       AC_LINK_IFELSE([AC_LANG_SOURCE([[
 #include <pthread.h>
 
 int main()
@@ -209,27 +209,27 @@ int main()
 }
                ]])], [acx_pthread_ok=yes])
 
-        LIBS="$save_LIBS"
-        CFLAGS="$save_CFLAGS"
+       LIBS="$save_LIBS"
+       CFLAGS="$save_CFLAGS"
 
-        AC_MSG_RESULT($acx_pthread_ok)
-        if test "x$acx_pthread_ok" = xyes; then
-                break;
-        fi
+       AC_MSG_RESULT($acx_pthread_ok)
+       if test "x$acx_pthread_ok" = xyes; then
+               break;
+       fi
 
-        PTHREAD_LIBS=""
-        PTHREAD_CFLAGS=""
+       PTHREAD_LIBS=""
+       PTHREAD_CFLAGS=""
 done
 fi
 
 # Various other checks:
 if test "x$acx_pthread_ok" = xyes; then
-        save_LIBS="$LIBS"
-        LIBS="$PTHREAD_LIBS $LIBS"
-        save_CFLAGS="$CFLAGS"
-        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+       save_LIBS="$LIBS"
+       LIBS="$PTHREAD_LIBS $LIBS"
+       save_CFLAGS="$CFLAGS"
+       CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 
-        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
+       # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
        AC_MSG_CHECKING([for joinable pthread attribute])
        attr_name=unknown
        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
@@ -243,35 +243,35 @@ int main()
 }
                ]])], [attr_name=$attr; break])
        done
-        AC_MSG_RESULT($attr_name)
-        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
-            AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
-                               [Define to necessary symbol if this constant
-                                uses a non-standard name on your system.])
-        fi
+       AC_MSG_RESULT($attr_name)
+       if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
+           AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
+                              [Define to necessary symbol if this constant
+                               uses a non-standard name on your system.])
+       fi
 
-        AC_MSG_CHECKING([if more special flags are required for pthreads])
-        flag=no
-        case "${host_cpu}-${host_os}" in
-            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
-            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
-        esac
-        AC_MSG_RESULT(${flag})
-        if test "x$flag" != xno; then
-            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
-        fi
+       AC_MSG_CHECKING([if more special flags are required for pthreads])
+       flag=no
+       case "${host_cpu}-${host_os}" in
+           *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
+           *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
+       esac
+       AC_MSG_RESULT(${flag})
+       if test "x$flag" != xno; then
+           PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
+       fi
 
-        LIBS="$save_LIBS"
-        CFLAGS="$save_CFLAGS"
+       LIBS="$save_LIBS"
+       CFLAGS="$save_CFLAGS"
 
-        # More AIX lossage: must compile with xlc_r or cc_r
+       # More AIX lossage: must compile with xlc_r or cc_r
        if test x"$GCC" != xyes; then
-          AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC})
-        else
-          PTHREAD_CC=$CC
+         AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC})
+       else
+         PTHREAD_CC=$CC
        fi
 else
-        PTHREAD_CC="$CC"
+       PTHREAD_CC="$CC"
 fi
 
 AC_SUBST(PTHREAD_LIBS)
@@ -280,11 +280,11 @@ AC_SUBST(PTHREAD_CC)
 
 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
 if test x"$acx_pthread_ok" = xyes; then
-        ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
-        :
+       ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
+       :
 else
-        acx_pthread_ok=no
-        $2
+       acx_pthread_ok=no
+       $2
 fi
        AC_LANG_POP([C])
 ])dnl ACX_PTHREAD
index f79af76..08593a1 100644 (file)
@@ -117,8 +117,8 @@ case "$ac_cv_build" in
     case "ac_cv_build" in
       i[[3-9]]86-*-netbsd* ) machine=intel386 ;;
       hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
-                      dnl Yes, this is somewhat bogus.
-                      machine=hp9000s300 ;;
+                     dnl Yes, this is somewhat bogus.
+                     machine=hp9000s300 ;;
       pc532-*-netbsd* | ns32k-*-netbsd* )  machine=ns32000 ;;
       pmax-*-netbsd*  | mips-*-netbsd*  )  machine=pmax ;;
       macppc-*-netbsd* | powerpc-*-netbsd* ) machine=powerpc ;;
@@ -142,7 +142,7 @@ case "$ac_cv_build" in
       powerpc-*-freebsd* ) machine=powerpc ;;
     esac
   ;;
-      
+
 
   dnl Darwin, a.k.a. MacOS X (based on Mach and Freebsd)
   *-*-darwin*)
@@ -255,7 +255,7 @@ case "$ac_cv_build" in
   dnl Vaxen.
   vax-dec-* )
     case "$ac_cv_build" in
-      *-sysv[[01]]* | *-sysvr[[01]]* )         opsys=usg5-0 ;;
+      *-sysv[[01]]* | *-sysvr[[01]]* ) opsys=usg5-0 ;;
       *-sysv2* | *-sysvr2* )           opsys=usg5-2 ;;
       *-mach* )                                opsys=mach-bsd4-3 ;;
     esac
@@ -603,7 +603,7 @@ AC_DEFUN([_SXE_CHECK_ASM_RETVAL_IN_EBX], [dnl
        __asm__ volatile (
                "       movl $[1], %%ebx\n"
                : "=b" (cnt)
-               : 
+               :
                : "cc");
        return 0;
                ]])], [sxe_cv_asm_retval_in_ebx="yes"],
@@ -617,7 +617,7 @@ AC_DEFUN([_SXE_CHECK_ASM_ADCB], [dnl
        __asm__ (
                "       adcb $[1], %[cnt]       /* add 1 if carry was set*/\n"
                : [cnt] "=r" (cnt)
-               : 
+               :
                : "cc");
        return 0;
                ]])], [sxe_cv_asm_adcb="yes"], [sxe_cv_asm_adcb="no"])
index bf34396..1499c3c 100644 (file)
@@ -86,7 +86,7 @@ m4_define([__SXE_MAKE_ADDER], [
                        ]SXE_ADD_[]$1[]_OBJ([$i])[
                done
        ])dnl
-       
+
        m4_define([SXE_SUBST_]$1[_OBJS], [
                AC_SUBST($2_objs)
                ## subst additional vars
@@ -144,33 +144,33 @@ AC_DEFUN([SXE_SUBST_STATMOD_A], [AC_SUBST(statmod_archives)])
 dnl SXE_APPEND(value, varname)
 AC_DEFUN([SXE_APPEND],
 [SXE_CONSECUTIVE_UNDUP($2,"$[$2] [$1]")
- if test "$extra_verbose" = "yes"; then 
+ if test "$extra_verbose" = "yes"; then
        echo "    Appending \"[$1]\" to [$2]
-        (now \"$[$2]\")"
+       (now \"$[$2]\")"
  fi])
 
 dnl SXE_PREPEND(value, varname)
 AC_DEFUN([SXE_PREPEND],
 [SXE_CONSECUTIVE_UNDUP($2,"[$1] $[$2]")
- if test "$extra_verbose" = "yes"; then 
+ if test "$extra_verbose" = "yes"; then
        echo "    Prepending \"[$1]\" to [$2]
-        (now \"$[$2]\")"
+       (now \"$[$2]\")"
  fi])
 
 dnl SXE_APPEND(value, varname)
 AC_DEFUN([SXE_APPEND_UNDUP],
 [SXE_UNDUP($2,"$[$2] [$1]")
- if test "$extra_verbose" = "yes"; then 
+ if test "$extra_verbose" = "yes"; then
        echo "    Appending and dedupping \"[$1]\" to [$2]
-        (now \"$[$2]\")"
+       (now \"$[$2]\")"
  fi])
 
 dnl SXE_PREPEND(value, varname)
 AC_DEFUN([SXE_PREPEND_UNDUP],
 [SXE_UNDUP($2,"[$1] $[$2]")
- if test "$extra_verbose" = "yes"; then 
+ if test "$extra_verbose" = "yes"; then
        echo "    Prepending and dedupping \"[$1]\" to [$2]
-        (now \"$[$2]\")"
+       (now \"$[$2]\")"
  fi])
 
 dnl SXE_DIE(message)
@@ -235,16 +235,16 @@ AC_DEFUN([SXE_CANONICALISE_PATH], [dnl
                            -e "s|^/amd/|/net/|")
        fi
 
-dnl    if test -d "[$]tmpp"; then
-dnl            ## the easy way ...
-dnl            ## just let the filesystem implementation do the hard work
-dnl            tmpp[]=$(cd [$]tmpp[] && echo $(pwd))
-dnl    elif test -f "[$]tmpp"; then
-dnl            ## the easy way ...
-dnl            ## just let the filesystem implementation do the hard work
-dnl            tmpp[]=$(cd $(dirname [$]tmpp[]) && \
-dnl                    echo $(pwd)/$(basename [$]tmpp[]))
-dnl    else
+dnl    if test -d "[$]tmpp"; then
+dnl            ## the easy way ...
+dnl            ## just let the filesystem implementation do the hard work
+dnl            tmpp[]=$(cd [$]tmpp[] && echo $(pwd))
+dnl    elif test -f "[$]tmpp"; then
+dnl            ## the easy way ...
+dnl            ## just let the filesystem implementation do the hard work
+dnl            tmpp[]=$(cd $(dirname [$]tmpp[]) && \
+dnl                    echo $(pwd)/$(basename [$]tmpp[]))
+dnl    else
                ## simple magic
                canonicalised="no"
                while test "$canonicalised" = "no"; do
index c7f9cdb..6d71535 100644 (file)
@@ -12,7 +12,7 @@ AC_DEFUN([SXE_PROG_MAKEINFO], [dnl
                # This should be a good enough error message even in complement
                # to the libtool missing
                AC_MSG_ERROR([
-Could not find the makeinfo program. Check your PATH or install the texinfo package. 
+Could not find the makeinfo program. Check your PATH or install the texinfo package.
 For more details see the INSTALL and PROBLEMS files.
 SXEmacs generates the documentation during the build process.])
                exit 1
@@ -118,8 +118,8 @@ AC_DEFUN([SXE_CHECK_BUILDCHAIN], [dnl
        SXE_CHECK_AUTOTOOLS
        SXE_CHECK_USER_VARS
 
-dnl    dnl Soon ...
-dnl    dnl m4_ifdef([LT_INIT], [LT_INIT], [AC_PROG_LIBTOOL])
+dnl    dnl Soon ...
+dnl    dnl m4_ifdef([LT_INIT], [LT_INIT], [AC_PROG_LIBTOOL])
        AC_PROG_RANLIB
        SXE_PROG_AR
        SXE_PROG_MAKEINFO
index 13a78ae..c230461 100644 (file)
@@ -4,12 +4,12 @@ AC_DEFUN([SXE_LD_EXPORT_DYNAMIC], [dnl
        AC_MSG_CHECKING([if linker understands -export-dynamic])
        SXE_DUMP_LIBS
        LDFLAGS="-export-dynamic $LDFLAGS"
-        AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+       AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 #include <stdlib.h>
 ]],[[
 return 0;
 ]])],  [AC_MSG_RESULT([yes])
-        have_ld_export_dynamic="yes"], [
+       have_ld_export_dynamic="yes"], [
        AC_MSG_RESULT([no])
        have_ld_export_dynamic="no"])
        SXE_RESTORE_LIBS
@@ -20,12 +20,12 @@ AC_DEFUN([SXE_LD_NO_PIE], [dnl
        AC_MSG_CHECKING([if linker understands -no_pie])
        SXE_DUMP_LIBS
        LDFLAGS="-no_pie $LDFLAGS"
-        AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+       AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 #include <stdlib.h>
 ]],[[
 return 0;
 ]])],  [AC_MSG_RESULT([yes])
-        have_ld_no_pie="yes"], [
+       have_ld_no_pie="yes"], [
        AC_MSG_RESULT([no])
        have_ld_no_pie="no"])
        SXE_RESTORE_LIBS
@@ -292,7 +292,7 @@ dnl AC_ARG_PROGRAM
        ##else
        ##      datadir='${prefix}/share'
        fi
-       
+
        if test "x$libdir" != 'x${exec_prefix}/lib'; then
                AC_DEFINE([ARCHLIBDIR_USER_DEFINED], [1], [Description here!])
                AC_DEFINE([MODULEDIR_USER_DEFINED], [1], [Description here!])
index d27ed6d..8c7c566 100644 (file)
@@ -67,7 +67,7 @@ AC_DEFUN([SXE_CHECK_CC_VERSION], [dnl
        dnl non-gcc machine-specific magic - contributions welcome
        *)
                case "$ac_cv_build" in
-               *-*-aix*   ) 
+               *-*-aix*   )
                        dnl Yes, it's this ugly for AIX...
                        realcc=`which $SXEMACS_CC`
                        dnl Might be a symlink created by replaceCset command
@@ -165,7 +165,7 @@ AC_DEFUN([SXE_CHECK_CC_EXTERN_INLINE_DARWIN], [
        gcc*\ 4.0.1* | * )
                # For now we assume all MacOS compilers
                # are not able to handle EXTERN_INLINE
-               AC_DEFINE([SXE_STATIC_EXTERN_INLINE], [1], 
+               AC_DEFINE([SXE_STATIC_EXTERN_INLINE], [1],
                        [The MacOS gcc does not support extern inline])
                sxe_cc_gnu89_extern_inline="no"
                ;;
@@ -305,7 +305,7 @@ AC_DEFUN([SXE_CHECK_CC_CHAR], [dnl
 #define _VA_LIST va_list
 typedef void *__gnuc_va_list;
 typedef __gnuc_va_list va_list;]],[[1]])], [dnl
-               AC_MSG_RESULT(yes) 
+               AC_MSG_RESULT(yes)
                AC_DEFINE([NEED_GNUC_VA_LIST], [1], [Description here!])], [dnl
                AC_MSG_RESULT(no)])
        fi
@@ -402,7 +402,7 @@ AC_DEFUN([SXE_DO_CC_HACKS], [dnl
                SXE_DIE("Building with g++ is not supported")
        fi
 
-       
+
 ])dnl SXE_DO_CC_HACKS
 
 AC_DEFUN([SXE_CHECK_CC_NESTED_FUNS], [dnl
@@ -740,7 +740,7 @@ AC_DEFUN([SXE_OPTIFLAGS], [dnl
                echo ""
                optiflags="-O3"
        fi
-       
+
        SXE_CHECK_COMPILER_FLAGS([$optiflags], [:], [
                echo ""
                echo "********************************************************"
@@ -926,26 +926,26 @@ AC_DEFUN([SXE_CC_MAXOPT_GNU], [dnl
        fi
 
        ## these belong to the corresponding MAXOPT macro
-dnl    SXE_CHECK_COMPILER_FLAGS([-xopenmp], [
-dnl            optiflags="$optiflags -xopenmp"
-dnl            sxe_cv_feat_omp="yes"
-dnl            ])
-dnl    SXE_CHECK_COMPILER_FLAGS([-openmp], [
-dnl            optiflags="$optiflags -openmp"
-dnl            sxe_cv_feat_omp="yes"
-dnl            ])
-dnl    SXE_CHECK_COMPILER_FLAGS([-mp], [
-dnl            optiflags="$optiflags -mp"
-dnl            sxe_cv_feat_omp="yes"
-dnl            ])
-dnl    SXE_CHECK_COMPILER_FLAGS([-omp], [
-dnl            optiflags="$optiflags -omp"
-dnl            sxe_cv_feat_omp="yes"
-dnl            ])
-dnl    SXE_CHECK_COMPILER_FLAGS([-qsmp=omp], [
-dnl            optiflags="$optiflags -qsmp=omp"
-dnl            sxe_cv_feat_omp="yes"
-dnl            ])
+dnl    SXE_CHECK_COMPILER_FLAGS([-xopenmp], [
+dnl            optiflags="$optiflags -xopenmp"
+dnl            sxe_cv_feat_omp="yes"
+dnl            ])
+dnl    SXE_CHECK_COMPILER_FLAGS([-openmp], [
+dnl            optiflags="$optiflags -openmp"
+dnl            sxe_cv_feat_omp="yes"
+dnl            ])
+dnl    SXE_CHECK_COMPILER_FLAGS([-mp], [
+dnl            optiflags="$optiflags -mp"
+dnl            sxe_cv_feat_omp="yes"
+dnl            ])
+dnl    SXE_CHECK_COMPILER_FLAGS([-omp], [
+dnl            optiflags="$optiflags -omp"
+dnl            sxe_cv_feat_omp="yes"
+dnl            ])
+dnl    SXE_CHECK_COMPILER_FLAGS([-qsmp=omp], [
+dnl            optiflags="$optiflags -qsmp=omp"
+dnl            sxe_cv_feat_omp="yes"
+dnl            ])
        ## add -lgomp to ldflags
        if test "$sxe_cv_feat_omp" = "yes"; then
                LDFLAGS="$LDFLAGS -lgomp"
@@ -958,9 +958,9 @@ dnl                 ])
 
        ## would be nice to have this but it triggers too many
        ## meaningless warnings
-dnl    ## -fstrict-aliasing for gcc-2.95+
-dnl    SXE_CHECK_COMPILER_FLAGS([-fstrict-aliasing],
-dnl            [optiflags="$optiflags -fstrict-aliasing"])
+dnl    ## -fstrict-aliasing for gcc-2.95+
+dnl    SXE_CHECK_COMPILER_FLAGS([-fstrict-aliasing],
+dnl            [optiflags="$optiflags -fstrict-aliasing"])
 
        SXE_CHECK_COMPILER_FLAGS([-fearly-inlining],
                [optiflags="$optiflags -fearly-inlining"])
@@ -1546,7 +1546,7 @@ AC_DEFUN([SXE_CHECK_C99_NJSF], [dnl
 ]],[[
 return 0;
 ]])],  [AC_MSG_RESULT(yes)
-        have_c99="yes"],
+       have_c99="yes"],
        [c_switch_site=$sace_c_switch_site
                AC_MSG_RESULT(no)
                AC_MSG_WARN([C99 not supported, reverting option append])
@@ -1602,7 +1602,7 @@ extern void f(void*restrict[]);
                        [Define restrict to nothing])
        fi
        AC_MSG_RESULT([$typeofname])
-])dnl SXE_CHECK_BROKEN_RESTRICT        
+])dnl SXE_CHECK_BROKEN_RESTRICT
 
 AC_DEFUN([SXE_STACK_FLAGS], [dnl
        ## actually this belongs to error-checking stuff
index 4ae9d7d..4af3e69 100644 (file)
@@ -23,7 +23,7 @@ AC_DEFUN([SXE_OPENSSL_VERSION], [dnl
        allowed_versions="0.9.7[e-z] 0.9.8* 0.9.9* 1.0.0*"
        OPENSSL_SANE_P=no
        for ver in $allowed_versions; do
-               if echo "$OPENSSL_VERSION" | ${GREP-grep} -q "$ver"; then
+              if echo "$OPENSSL_VERSION" | ${GREP-grep} -q "$ver"; then
                        OPENSSL_SANE_P="yes"
                        break;
                fi
@@ -104,7 +104,7 @@ AC_DEFUN([SXE_CHECK_OPENSSL_LOCS], [dnl
        AC_CHECK_LIB([ssl], [SSL_connect],
                [have_libssl=yes], [have_libssl=no])
        if test "$ac_cv_header_openssl_crypto_h $have_libcrypto $have_libssl" != "yes yes yes"; then
-               OPENSSL_LIBS=""
+               OPENSSL_LIBS=""
                unset ac_cv_header_openssl_crypto_h
                unset ac_cv_lib_crypto_OPENSSL_cleanse
                SXE_TRY_OPENSSL_BIN_PREFIX
@@ -148,7 +148,7 @@ AC_DEFUN([SXE_CHECK_OPENSSL_FEATURES], [dnl
        if test "$openssl_no_dh" = "yes"; then
                AC_DEFINE([OPENSSL_NO_DH], [1], [Description here!])
        fi
-       
+
        dnl check for libssl support
        AC_CHECK_LIB([ssl], [SSL_new], [openssl_ssl=yes], [openssl_ssl=no])
        if test "$openssl_ssl" = "yes"; then
@@ -194,31 +194,31 @@ AC_DEFUN([SXE_CHECK_OPENSSL_FUNCS], [dnl
                SSL_get_peer_certificate X509_verify_cert_error_string dnl
                SSL_get_verify_result SSL_get_current_cipher SSL_CIPHER_get_bits])
        if test x"$ac_TLSv1_client_method" = xyes; then
-               AC_DEFINE([HAVE_TLSV1_CLIENT_METHOD], 1, [TLSv1 client methods available])
+               AC_DEFINE([HAVE_TLSV1_CLIENT_METHOD], 1, [TLSv1 client methods available])
        fi
        if test x"$ac_SSLv2_client_method" = xyes; then
-               AC_DEFINE([HAVE_SSLV2_CLIENT_METHOD], 1, [SSLv2 client methods available])
+               AC_DEFINE([HAVE_SSLV2_CLIENT_METHOD], 1, [SSLv2 client methods available])
        fi
        if test x"$ac_SSLv3_client_method" = xyes; then
-               AC_DEFINE([HAVE_SSLV3_CLIENT_METHOD], 1, [SSLv3 client methods available])
+               AC_DEFINE([HAVE_SSLV3_CLIENT_METHOD], 1, [SSLv3 client methods available])
        fi
        if test x"$ac_SSLv23_client_method" = xyes; then
-               AC_DEFINE([HAVE_SSLV23_CLIENT_METHOD], 1, [SSLv23 client methods available])
+               AC_DEFINE([HAVE_SSLV23_CLIENT_METHOD], 1, [SSLv23 client methods available])
        fi
        if test x"$ac_TLSv1_server_method" = xyes; then
-               AC_DEFINE([HAVE_TLSV1_SERVER_METHOD], 1, [TLSv1 server methods available])
+               AC_DEFINE([HAVE_TLSV1_SERVER_METHOD], 1, [TLSv1 server methods available])
        fi
        if test x"$ac_SSLv2_server_method" = xyes; then
-               AC_DEFINE([HAVE_SSLV2_SERVER_METHOD], 1, [SSLv2 server methods available])
+               AC_DEFINE([HAVE_SSLV2_SERVER_METHOD], 1, [SSLv2 server methods available])
        fi
        if test x"$ac_SSLv3_server_method" = xyes; then
-               AC_DEFINE([HAVE_SSLV3_SERVER_METHOD], 1, [SSLv3 server methods available])
+               AC_DEFINE([HAVE_SSLV3_SERVER_METHOD], 1, [SSLv3 server methods available])
        fi
        if test x"$ac_SSLv23_server_method" = xyes; then
-               AC_DEFINE([HAVE_SSLV23_SERVER_METHOD], 1, [SSLv23 server methods available])
+               AC_DEFINE([HAVE_SSLV23_SERVER_METHOD], 1, [SSLv23 server methods available])
        fi
        if test x"$ac_ssl_verify_cert_chain" = xyes; then
-               AC_DEFINE([HAVE_SSL_VERIFY_CERT_CHAIN], 1, [ssl_verify_cert_chain available])
+               AC_DEFINE([HAVE_SSL_VERIFY_CERT_CHAIN], 1, [ssl_verify_cert_chain available])
        fi
        SXE_RESTORE_LIBS
 ])dnl SXE_CHECK_OPENSSL_FUNCS
@@ -231,12 +231,12 @@ AC_DEFUN([SXE_CHECK_OPENSSL], [dnl
        dnl defines OPENSSL_VERSION and OPENSSL_SANE_P
        SXE_OPENSSL_VERSION
        if test "$OPENSSL_SANE_P" = "yes"; then
-               SXE_CHECK_OPENSSL_LOCS
-               if test "$have_libssl $have_libcrypto" = "yes yes"; then
+               SXE_CHECK_OPENSSL_LOCS
+               if test "$have_libssl $have_libcrypto" = "yes yes"; then
                        have_openssl=yes
                        SXE_CHECK_OPENSSL_FEATURES
                        SXE_CHECK_OPENSSL_FUNCS
-               fi
+               fi
        fi
 ])dnl SXE_CHECK_OPENSSL
 
index 3c97142..0194531 100644 (file)
@@ -36,7 +36,7 @@ AC_DEFUN([_SXE_CHECK_POSTGRESQL], [dnl
                [have_PQserverVersion=yes
                 AC_DEFINE([HAVE_PQSERVERVERSION], [1],
                         [Defined when PQserverVersion() is available])],
-               [have_PQserverVersion=no])
+               [have_PQserverVersion=no])
 
 
        if test "$ac_cv_header_libpq_fe_h" = "yes"; then
@@ -95,12 +95,12 @@ AC_DEFUN([SXE_CHECK_POSTGRESQL], [dnl
                                AC_MSG_WARN([Sadly OpenSSL is not available or is misconfigured,])
                                AC_MSG_WARN([and '--with-openssl=no' was passed. Disabling PostgreSQL])
                                have_postgresql="no"
-                       else
-                               AC_MSG_WARN([Your PostgreSQL seems to require OpenSSL.])
-                               AC_MSG_WARN([Sadly OpenSSL is not available or is misconfigured.])
-                               AC_MSG_WARN([Performing the actual check anyway, cross your fingers!])
-                               AC_MSG_WARN([If you still encounter problems disable using '--with-postgresql=no'.])
-                               AC_MSG_WARN([NOTE: '--with-openssl=no' will also implictly disable PostgreSQL in this configuration.])
+                       else
+                               AC_MSG_WARN([Your PostgreSQL seems to require OpenSSL.])
+                               AC_MSG_WARN([Sadly OpenSSL is not available or is misconfigured.])
+                               AC_MSG_WARN([Performing the actual check anyway, cross your fingers!])
+                               AC_MSG_WARN([If you still encounter problems disable using '--with-postgresql=no'.])
+                               AC_MSG_WARN([NOTE: '--with-openssl=no' will also implictly disable PostgreSQL in this configuration.])
                        fi
                fi
        else
index 99ee02a..ca7cb65 100644 (file)
@@ -98,9 +98,9 @@ AC_DEFUN([_SXE_CHECK_REALPATH_RETVAL_OWNER], [dnl
        ## anything ... took me fucking ages to find out what's going on
        ## so let's drink to the morons responsible for THAT!
        AC_MSG_CHECKING([to whom belongs the object returned by realpath])
-        if test "$opsys" = "darwin"; then
-           resvar=user
-        else
+       if test "$opsys" = "darwin"; then
+          resvar=user
+       else
        AC_RUN_IFELSE([AC_LANG_SOURCE([[
 #ifdef HAVE_STDLIB_H
 #  include <stdlib.h>
@@ -142,7 +142,7 @@ int main()
                resvar[=user],
                resvar[=sys],
                resvar[=sys])
-        fi
+       fi
        AC_MSG_RESULT([$]resvar)
 
        if test "$[]resvar[]" = "user"; then
@@ -161,9 +161,9 @@ AC_DEFUN([_SXE_CHECK_REALPATH_ON_PROTECTED_MEMORY], [dnl
        pushdef([resvar], [sxe_func_realpath_accepts_protmem])
 
        AC_MSG_CHECKING([whether realpath can operate on protected mem blocks])
-        if test "$opsys" = "darwin"; then
-           resvar=no
-        else
+       if test "$opsys" = "darwin"; then
+          resvar=no
+       else
        AC_RUN_IFELSE([AC_LANG_SOURCE([[
 #ifdef HAVE_STDLIB_H
 #  include <stdlib.h>
@@ -173,7 +173,7 @@ AC_DEFUN([_SXE_CHECK_REALPATH_ON_PROTECTED_MEMORY], [dnl
 #define PATH_MAX 4096
 #endif
 
-int realpath_can_operate_on_protected_mem_blocks() 
+int realpath_can_operate_on_protected_mem_blocks()
 {
        char resv[PATH_MAX];
        realpath("/bin/sh", NULL);
@@ -189,7 +189,7 @@ int main()
                resvar[=yes],
                resvar[=no],
                resvar[=no])
-        fi
+       fi
        AC_MSG_RESULT([$]resvar)
 
        if test "$[]resvar[]" = "yes"; then
@@ -270,7 +270,7 @@ AC_DEFUN([SXE_CHECK_DIRNAME], [dnl
        ## and since we all hate working systems we do our best
        ## to break these so called standards wherever we can
        ##
-       ## Passage from coreutils: 
+       ## Passage from coreutils:
        ## In general, we can't use the builtin `dirname' function if available,
        ## since it has different meanings in different environments. In some
        ## environments the builtin `dirname' modifies its argument.
@@ -382,10 +382,10 @@ AC_DEFUN([_SXE_CHECK_DIRNAME_RETVAL_OWNER], [dnl
        ## values are either "sys" or "user"
        pushdef([resvar], [sxe_func_dirname_retval_owner])
 
-        malloc_check=${MALLOC_CHECK_}
-        ## Turn off the stupid glibc 2.5 stack trace check. We *know* we may
-        ## do something bad here :-) 
-        MALLOC_CHECK_=0
+       malloc_check=${MALLOC_CHECK_}
+       ## Turn off the stupid glibc 2.5 stack trace check. We *know* we may
+       ## do something bad here :-)
+       MALLOC_CHECK_=0
        export MALLOC_CHECK_
        ## this test is especially critical, because some systems do not
        ## allocate memory for the user when the return value is "."
@@ -394,9 +394,9 @@ AC_DEFUN([_SXE_CHECK_DIRNAME_RETVAL_OWNER], [dnl
        ## anything ... took me fucking ages to find out what's going on
        ## so let's drink to the morons responsible for THAT!
        AC_MSG_CHECKING([to whom belongs the object returned by dirname])
-        if test "$opsys" = "darwin" ; then
-           resvar=sys
-        else
+       if test "$opsys" = "darwin" ; then
+          resvar=sys
+       else
        AC_RUN_IFELSE([AC_LANG_SOURCE([[
 #ifdef HAVE_LIBGEN_H
 #  include <libgen.h>
@@ -435,11 +435,11 @@ int main()
                resvar[=sys],
                resvar[=sys])
        fi
-        if test "${malloc_check}" = "" ; then
+       if test "${malloc_check}" = "" ; then
                unset MALLOC_CHECK_
-        else 
-               MALLOC_CHECK_=${malloc_check}
-        fi
+       else
+               MALLOC_CHECK_=${malloc_check}
+       fi
        AC_MSG_RESULT([$]resvar)
 
        if test "$[]resvar[]" = "user"; then
index 390eb5c..d992ce7 100644 (file)
@@ -126,7 +126,7 @@ AC_DEFUN([SXE_TEST_XAW_LIB], [dnl
 ])dnl SXE_TEST_XAW_LIB
 
 AC_DEFUN([SXE_TEST_XAW_INC], [dnl
-       ## arg1 are some additional INCLUDES 
+       ## arg1 are some additional INCLUDES
 
        ## unset the values before we get our dirty hands on them
        unset "ac_cv_header_X11_Xaw_XawInit_h"
@@ -209,21 +209,21 @@ AC_DEFUN([SXE_CHECK_XTOOLKITS], [
        ## initialise our have-vars
        have_athena=no
        have_motif=no
-         
+
        case "$with_athena" in
        ## autodetect, that is walk through the chain given above
        "auto" | "")
-               AC_MSG_CHECKING([for the Athena widgets])
+               AC_MSG_CHECKING([for the Athena widgets])
                AC_MSG_RESULT([])
 
-               ## ignite the chain :)
-               SXE_TEST_NEXTAW
-               SXE_TEST_XAW3D
-               SXE_TEST_XAWXPM
-               SXE_TEST_XAW95
-               SXE_TEST_XAW
+               ## ignite the chain :)
+               SXE_TEST_NEXTAW
+               SXE_TEST_XAW3D
+               SXE_TEST_XAWXPM
+               SXE_TEST_XAW95
+               SXE_TEST_XAW
                SXE_TEST_MOTIF
-               ;;
+               ;;
 
        "3d")
                SXE_TEST_XAW3D
@@ -242,16 +242,16 @@ AC_DEFUN([SXE_CHECK_XTOOLKITS], [
        "xaw")
                SXE_TEST_XAW
                ;;
-         
+
        ## force the motif chain
        "no")
                SXE_TEST_MOTIF
                ;;
        *)
-               SXE_DIE(["Unknown Athena widget set \`$with_athena'. This should not happen."])
+               SXE_DIE(["Unknown Athena widget set \`$with_athena'. This should not happen."])
                ;;
        esac
-         
+
        ## Do we actually have a usable Athena widget set? Please?
        if test -n "$athena_lib" -a -n "$athena_h_path"; then
                if test "athena_lib" = "Xaw"; then
@@ -305,13 +305,13 @@ AC_DEFUN([SXE_SUFFICIENT_ATHENA_P], [dnl
                if test "$have_xaw" != "yes"; then
                        SXE_DIE(["Could not find a suitable Athena library to build with."])
                fi
-       
+
                dnl Add the Lucid widget Athena code
                SXE_APPEND([lwlib-Xaw.o], [lwlib_objs])
-       
+
                dnl Add the Athena widget library we located earlier
                SXE_PREPEND([-l$athena_lib], [libs_x])
-       
+
                dnl Tell lwlib where to find the Athena header files.
                dnl Many people have tried to create a `smart' way of doing this,
                dnl but all have failed.  Before changing the following ugly definitions,
@@ -336,11 +336,11 @@ AC_DEFUN([SXE_SUFFICIENT_ATHENA_P], [dnl
                        [Description here!])
                AC_DEFINE_UNQUOTED([ATHENA_XawInit_h_], ["$athena_h_path/XawInit.h"],
                        [Description here!])
-       
+
                AC_DEFINE([LWLIB_USES_ATHENA], [1], [Description here!])
                AC_DEFINE([NEED_ATHENA], [1], [Description here!])
                need_athena="yes"
-       
+
                if test "$athena_3d" = "yes"; then
                        AC_DEFINE([HAVE_ATHENA_3D], [1], [Description here!])
                fi
@@ -361,7 +361,7 @@ AC_DEFUN([SXE_SUFFICIENT_ATHENA_P], [dnl
        if test "$with_dialogs" = "athena"; then
                AC_DEFINE([LWLIB_DIALOGS_ATHENA], [1], [Description here!])
        fi
-       
+
        if test "$athena_3d" = "yes" -a \
                "$with_scrollbars" = "athena"; then
                AC_DEFINE([LWLIB_SCROLLBARS_ATHENA3D], [1], [Description here!])
index f7e7881..9388ddf 100644 (file)
@@ -129,7 +129,7 @@ AC_DEFUN([SXE_CHECK_WNN], [dnl
                else
                        have_wnn=no
                fi
-                       
+
                if test "$have_wnn" = "yes"; then
                        AC_DEFINE([HAVE_WNN], [1], [Description here!])
                        SXE_PREPEND([-l$libwnn], [libs_x])
index 9c32661..a8aa1fb 100644 (file)
@@ -119,7 +119,7 @@ AC_DEFUN([SXE_CHECK_LIBC], [dnl
 AC_DEFUN([SXE_CHECK_LIBC_VERSION], [dnl
        libc_version=""
        AC_MSG_CHECKING(for standard C library version information)
-       
+
        case "$ac_cv_build" in
        *-*-linux*)
                dnl #### who would ever _not_ be running the distro's libc?
@@ -131,19 +131,19 @@ AC_DEFUN([SXE_CHECK_LIBC_VERSION], [dnl
                        libc_version=`dpkg-query --showformat='${version}' --show libc6`
                        libc_version="GNU libc $libc_version (Debian)"
                elif test -f /etc/slackware-version ; then
-                        slackver=`cat /etc/slackware-version`
+                       slackver=`cat /etc/slackware-version`
                        libc_version=`/lib/libc.so.6|head -1|cut -d ' ' -f7|tr -d ,`
-                        if test "x$libc_version" = "x"; then
-                                libc_version=`/lib64/libc.so.6|head -1|cut -d ' ' -f7|tr -d ,`
-                        fi
+                       if test "x$libc_version" = "x"; then
+                               libc_version=`/lib64/libc.so.6|head -1|cut -d ' ' -f7|tr -d ,`
+                       fi
                        libc_version="GNU libc $libc_version ($slackver)"
                dnl need SuSE et al checks here...
                fi
                dnl #### Tested on Debian, does this actually work elsewhere?  ;-)
                dnl #### NO! -hroptatyr
-               dnl if test -z "$libc_version"; then
+               dnl if test -z "$libc_version"; then
                dnl   libc_version=`ls /lib/libc-*.so | sed -e 's,/lib/libc-\(.*\)\.so,\1,'`
-               dnl fi
+               dnl fi
 
                if test -z "$libc_version"; then
                AC_RUN_IFELSE([AC_LANG_SOURCE([[
@@ -155,9 +155,9 @@ libc_file_we_use=`$LDD ./conftest | grep libc | sed -e "s/.*=>\(.*\) .*$/\1/"`],
                ;;
 
        *-*-aix*)
-               libc_version="bos.rte.libc `lslpp -Lqc bos.rte.libc | cut -f3 -d:`" 
+               libc_version="bos.rte.libc `lslpp -Lqc bos.rte.libc | cut -f3 -d:`"
                ;;
-       
+
        *-*-solaris*)
                libc=`pkginfo -l SUNWcsl | grep VERSION: | awk '{print $2}'`
                libc_version="SUNWcsl $libc"
@@ -264,10 +264,10 @@ AC_DEFUN([SXE_CHECK_BASIC_TYPES], [dnl
 
        ## we used to do:
        ## if test "$ac_cv_sizeof_short" = 0; then
-       ##      echo ""
-       ##      echo "*** PANIC *** Configure tests are not working - compiler is broken."
-       ##      echo "*** PANIC *** Please examine config.log for compilation errors."
-       ##      exit 1
+       ##      echo ""
+       ##      echo "*** PANIC *** Configure tests are not working - compiler is broken."
+       ##      echo "*** PANIC *** Please examine config.log for compilation errors."
+       ##      exit 1
        ## fi
 
        ## treat RETSIGTYPE specially since we've kicked the detection
@@ -338,7 +338,7 @@ AC_DEFUN([SXE_CHECK_BASIC_FUNS], [dnl
 
 AC_DEFUN([SXE_CHECK_SIGNALS], [dnl
        SXE_CHECK_HEADERS([string.h])
-        AC_CHECK_FUNCS([strsignal])
+       AC_CHECK_FUNCS([strsignal])
        AC_CHECK_DECLS([sys_siglist], [], [], [
 #include <signal.h>
 /* NetBSD declares sys_siglist in unistd.h.  */
@@ -363,17 +363,17 @@ AC_DEFUN([SXE_CHECK_INTPTR_T], [dnl
        fi
 
        dnl if test "$ac_cv_header_inttypes_h" != "yes"; then
-       dnl     AC_MSG_CHECKING([for intptr_t in sys/types.h])
-       dnl     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+       dnl     AC_MSG_CHECKING([for intptr_t in sys/types.h])
+       dnl     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
        dnl #include <sys/types.h>
        dnl ]], [[
        dnl intptr_t x;
        dnl ]])], [dnl
-       dnl             AC_MSG_RESULT(yes)
-       dnl             AC_DEFINE([HAVE_INTPTR_T_IN_SYS_TYPES_H], [1],
+       dnl             AC_MSG_RESULT(yes)
+       dnl             AC_DEFINE([HAVE_INTPTR_T_IN_SYS_TYPES_H], [1],
        dnl                     [Description here!])
-       dnl             ], [dnl
-       dnl             AC_MSG_RESULT(no)])
+       dnl             ], [dnl
+       dnl             AC_MSG_RESULT(no)])
        dnl fi
 ])dnl SXE_CHECK_INTPTR_T
 
index cbdd76c..d084f03 100644 (file)
@@ -231,7 +231,7 @@ AC_DEFUN([SXE_NPROCESSORS], [dnl
 AC_DEFUN([SXE_PROC_FLAGS], [dnl
        AC_REQUIRE([AC_PROG_EGREP])
        AC_REQUIRE([SXE_CHECK_PROC_CPUINFO])
-       
+
        AC_CACHE_CHECK([for processor flags], [sxe_cv_proc_flags], [
                if test "$sxe_cv_file_proc_cpuinfo" = "yes"; then
                        sxe_cv_proc_flags=$($EGREP "^flags" "/proc/cpuinfo" | \
@@ -436,7 +436,7 @@ AC_DEFUN([SXE_CHECK_PROC_SSE5], [
 
 AC_DEFUN([SXE_CHECK_SIMD_EXTENSIONS], [
        ## note that we enable "unsafe" fp optimisation with other compilers, too
-       
+
        SXE_CHECK_PROC_MMX
        SXE_CHECK_PROC_AMDMMX
        SXE_CHECK_PROC_3DNOW
index 3bf2a02..9f86b83 100644 (file)
@@ -42,7 +42,7 @@ AC_DEFUN([_SXE_MATH_ASSIGN_IFELSE], [
        AC_REQUIRE([SXE_CHECK_MATHS_HEADERS])
        AC_REQUIRE([SXE_CHECK_MATHS_TYPES])
 
-        AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+       AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 #if defined HAVE_MATH_H
 # include <math.h>
 #endif
@@ -90,7 +90,7 @@ AC_DEFUN([SXE_CHECK_MATHS_SYM], [dnl
        AC_REQUIRE([SXE_CHECK_MATHS_HEADERS])
        AC_REQUIRE([SXE_CHECK_MATHS_TYPES])
 
-        SXE_MSG_CHECKING([for ]sym[])
+       SXE_MSG_CHECKING([for ]sym[])
        _SXE_MATH_ASSIGN_IFELSE([]typesym[], []sym[], [dnl yes case
                sxe_cv_maths_[]sym[]="yes"
                AC_DEFINE([HAVE_MATHS_]sym[], [1],
@@ -303,7 +303,7 @@ AC_DEFUN([SXE_MATHS_FINITE], [
        ## could be an ordinary function, at least it should be
        AC_CHECK_FUNCS([finite])
 
-        SXE_MSG_CHECKING([for working finite])
+       SXE_MSG_CHECKING([for working finite])
        _SXE_MATH_ASSIGN_IFELSE([float], [0.0; finit(__test_assign);],
                [sxe_cv_maths_finite="yes"], [sxe_cv_maths_finite="no"])
        SXE_MSG_RESULT([$sxe_cv_maths_fpclassify])
@@ -322,7 +322,7 @@ AC_DEFUN([SXE_MATHS_FPCLASS], [
        ## could be an ordinary function, at least it should be
        AC_CHECK_FUNCS([fpclass])
 
-        SXE_MSG_CHECKING([for working fpclass])
+       SXE_MSG_CHECKING([for working fpclass])
        _SXE_MATH_ASSIGN_IFELSE([float], [0.0; fpclass(__test_assign);],
                [sxe_cv_maths_fpclass="yes"], [sxe_cv_maths_fpclass="no"])
        SXE_MSG_RESULT([$sxe_cv_maths_fpclass])
@@ -341,7 +341,7 @@ AC_DEFUN([SXE_MATHS_FPCLASSIFY], [
        ## could be an ordinary function, at least it should be
        AC_CHECK_FUNCS([fpclassify __fpclassifyf __fpclassify __fpclassifyl])
 
-        SXE_MSG_CHECKING([for working fpclassify])
+       SXE_MSG_CHECKING([for working fpclassify])
        _SXE_MATH_ASSIGN_IFELSE([float], [0.0; fpclassify(__test_assign);],
                [sxe_cv_maths_fpclassify="yes"], [sxe_cv_maths_fpclassify="no"])
        SXE_MSG_RESULT([$sxe_cv_maths_fpclassify])
@@ -360,8 +360,8 @@ AC_DEFUN([SXE_MATHS_ISINF], [
        ## could be an ordinary function, at least it should be
        AC_CHECK_FUNCS([isinf __isinff __isinf __isinfl])
 
-        SXE_MSG_CHECKING([for working isinf])
-       _SXE_MATH_ASSIGN_IFELSE([float], [0.0; isinf(__test_assign);], 
+       SXE_MSG_CHECKING([for working isinf])
+       _SXE_MATH_ASSIGN_IFELSE([float], [0.0; isinf(__test_assign);],
                [sxe_cv_maths_isinf="yes"], [sxe_cv_maths_isinf="no"])
        SXE_MSG_RESULT([$sxe_cv_maths_isinf])
 
@@ -379,7 +379,7 @@ AC_DEFUN([SXE_MATHS_ISNAN], [
        ## could be an ordinary function, at least it should be
        AC_CHECK_FUNCS([isnan __isnanf __isnan __isnanl])
 
-        SXE_MSG_CHECKING([for working isnan])
+       SXE_MSG_CHECKING([for working isnan])
        _SXE_MATH_ASSIGN_IFELSE([float], [0.0; isnan(__test_assign);],
                [sxe_cv_maths_isnan="yes"], [sxe_cv_maths_isnan="no"])
        SXE_MSG_RESULT([$sxe_cv_maths_isnan])
@@ -398,7 +398,7 @@ AC_DEFUN([SXE_MATHS_SIGNBIT], [
        ## could be an ordinary function, at least it should be
        AC_CHECK_FUNCS([signbit __signbitf __signbit __signbitl])
 
-        SXE_MSG_CHECKING([for working signbit])
+       SXE_MSG_CHECKING([for working signbit])
        _SXE_MATH_ASSIGN_IFELSE([float], [-1.0; signbit(__test_assign);],
                [sxe_cv_maths_signbit="yes"], [sxe_cv_maths_signbit="no"])
        SXE_MSG_RESULT([$sxe_cv_maths_signbit])
@@ -587,7 +587,7 @@ AC_DEFUN([SXE_CHECK_MPFR], [dnl
 
        popdef([ACTION_IF_FOUND])
        popdef([ACTION_IF_NOT_FOUND])
-])dnl SXE_CHECK_MPFR   
+])dnl SXE_CHECK_MPFR
 
 AC_DEFUN([_SXE_CHECK_MPFR], [dnl
        SXE_DUMP_LIBS
@@ -679,7 +679,7 @@ AC_DEFUN([_SXE_CHECK_MPC], [dnl
                AC_DEFINE([HAVE_MPC_SET_UI_FR], [1], [Whether simple mpc_set_ui_fr is available])
        fi
        if test "$ac_cv_lib_mpc_mpc_init" = "yes" -o \
-               "$ac_cv_lib_mpc_mpc_init2" = "yes"; then
+               "$ac_cv_lib_mpc_mpc_init2" = "yes"; then
                mpc_can_be_initted="yes"
        fi
        if test "$ac_cv_header_mpc_h" = "yes" -a \
@@ -854,7 +854,7 @@ int main(int c, char **v)
 
        surprise = str_to_fpfloat("0.0") + (o4 = str_to_fpfloat("1.4"));
 
-       if (surprise == o4) 
+       if (surprise == o4)
 #if fpfloat_cand_long_double_p
        {
                fpfloat_cand gtdouble_s = str_to_fpfloat("1.0e+513");
@@ -877,7 +877,7 @@ int main(int c, char **v)
                return 0;
        }
 #else
-               return 0;
+               return 0;
 #endif
        else
                return 1;
index cc67a7f..e6a21aa 100644 (file)
@@ -319,15 +319,15 @@ AC_DEFUN([SXE_MM_CHECK_FFMPEG], [
 
        sxe_cv_feat_ffmpeg=
        ## we can't use that one since we have to check multiple headers
-dnl    _SXE_MM_CHECK_pkgconfig_based([ffmpeg], [libavformat], [49.0.0], [dnl
-dnl            av_open_input_file av_close_input_file av_find_stream_info dnl
-dnl            url_fopen av_probe_input_format avcodec_find_decoder dnl
-dnl            avcodec_open av_read_frame av_seek_frame av_register_all dnl
-dnl            avcodec_decode_audio avcodec_decode_audio2], [avformat.h],
-dnl            [sxe_cv_feat_ffmpeg=yes], [sxe_cv_feat_ffmpeg=no])
+dnl    _SXE_MM_CHECK_pkgconfig_based([ffmpeg], [libavformat], [49.0.0], [dnl
+dnl            av_open_input_file av_close_input_file av_find_stream_info dnl
+dnl            url_fopen av_probe_input_format avcodec_find_decoder dnl
+dnl            avcodec_open av_read_frame av_seek_frame av_register_all dnl
+dnl            avcodec_decode_audio avcodec_decode_audio2], [avformat.h],
+dnl            [sxe_cv_feat_ffmpeg=yes], [sxe_cv_feat_ffmpeg=no])
 
-dnl    Dropped in favour of sxe-pkgconfig.m4 macros
-dnl    _SXE_CHECK_pkgconfig_based([ffmpeg], [libavformat], [49.0.0])
+dnl    Dropped in favour of sxe-pkgconfig.m4 macros
+dnl    _SXE_CHECK_pkgconfig_based([ffmpeg], [libavformat], [49.0.0])
 
        SXE_PC_CHECK_VERSION_ATLEAST([libavformat], [51.0.0])
 
@@ -849,7 +849,7 @@ AC_DEFUN([SXE_MM_CHECK_OSS], [
        SXE_DUMP_LIBS
        MM_FAIL
        SXE_CHECK_HEADERS([machine/soundcard.h sys/soundcard.h linux/soundcard.h soundcard.h])
-        if test "$ac_cv_header_linux_soundcard_h"="yes" -o     \
+       if test "$ac_cv_header_linux_soundcard_h"="yes" -o      \
                "$ac_cv_header_machine_soundcard_h"="yes" -o    \
                "$ac_cv_header_soundcard_h"="yes" -o            \
                "$ac_cv_header_sys_soundcard_h"="yes"
@@ -864,11 +864,11 @@ AC_DEFUN([SXE_MM_CHECK_OSS], [
 #else
 #include <soundcard.h>
 #endif
-]], 
+]],
                [[ ioctl(0, SNDCTL_DSP_RESET, 0); ]])],
-                       [oss_ioctl_linked=yes],
-                       [oss_ioctl_linked=no])
-               if test "${oss_ioctl_linked}" = "no" 
+                       [oss_ioctl_linked=yes],
+                       [oss_ioctl_linked=no])
+               if test "${oss_ioctl_linked}" = "no"
                then
                        if test "${opsys}" = "netbsd"
                        then
@@ -1157,7 +1157,7 @@ AC_DEFUN([SXE_CHECK_ALSA_VERSION], [dnl
 # include <alsa/version.h>
 #endif
 
-int main(int c, char *v[]) 
+int main(int c, char *v[])
 {
        fprintf(stdout, SND_LIB_VERSION_STR);
        return 0;
@@ -1171,7 +1171,7 @@ int main(int c, char *v[])
                AC_MSG_WARN([Your ALSA version is _KNOWN_ to fail! Do not say we have not warned you!])
                sxe_mm_alsa_version_supported_p="no"
                ;;
-       1.0.2 | 1.0.4* | 1.0.5* | 1.0.6* | 1.0.7* | 1.0.8* ) 
+       1.0.2 | 1.0.4* | 1.0.5* | 1.0.6* | 1.0.7* | 1.0.8* )
                AC_MSG_RESULT([${sxe_mm_alsa_version} (suspicious to break)])
                AC_MSG_WARN([Your ALSA version has not been tested. Do not be surprised if it fails!])
                sxe_mm_alsa_version_supported_p="no"
index 68dde84..777c0ba 100644 (file)
@@ -132,8 +132,8 @@ dnl $3 = allowed values, can be [og_any]
 AC_DEFUN([OG_MULTIARG_PROCESS], [dnl
        pushdef([og_group], [translit([$1],[-],[_])])
        new_default=
-        for og_val in $2 `echo "$withval" | sed -e 's/,/ /g'`; do
-               og_arg=invalid
+       for og_val in $2 `echo "$withval" | sed -e 's/,/ /g'`; do
+               og_arg=invalid
                case "$og_val" in
                dnl all and none are only permitted as the first in the list.
                no | none )             new_default=no ;;
@@ -150,9 +150,9 @@ AC_DEFUN([OG_MULTIARG_PROCESS], [dnl
                        esac
                ])
                if test -n "$new_default"; then
-dnl                    for og_item in "[$3]"; do
-dnl                            with_[]og_group[]_$og_item="$new_default"
-dnl                    done
+dnl                    for og_item in "[$3]"; do
+dnl                            with_[]og_group[]_$og_item="$new_default"
+dnl                    done
                        with_[]og_group[]_[]patsubst([$3],[ ],[=$new_default; with_[]og_group[]_])[]=$new_default
                                new_default=
                                og_arg=valid
@@ -170,7 +170,7 @@ OG_ERROR_ADDITIONAL_VERBOSITY($1)
 )
                fi
        done
-        popdef([og_group])
+       popdef([og_group])
 ])
 
 dnl helper for OG_MULTIARG_HELP_STINGS
@@ -208,7 +208,7 @@ AC_DEFUN([OG_MULTIARG_WITH], [# Option Group --with-$1 (multiarg)
        sxe_with_options="$sxe_with_options $1"
 
        pushdef([og_group], [translit([$1],[-],[_])])
-        pushdef([og_DefVal],ifelse($3,,auto,$3))
+       pushdef([og_DefVal],ifelse($3,,auto,$3))
        pushdef([OG_MULTIARG_ITEM], dnl
                _OG_MULTIARG_ITEM($1, $[1], $[2], $[3]))
        pushdef([OG_MULTIARG_MUTEX], dnl
@@ -230,13 +230,13 @@ AC_DEFUN([OG_MULTIARG_WITH], [# Option Group --with-$1 (multiarg)
 
        pushdef([OG_HELP_STRING], [AS_HELP_STRING($[1], $[2])])
        pushdef([og_desc], [dnl
-patsubst([$2], [^[     ]AS_HELP_STRING], [AS_HELP_STRING])])
+patsubst([$2], [^[     ]AS_HELP_STRING], [AS_HELP_STRING])])
        pushdef([og_helps], [dnl
-patsubst(patsubst(patsubst([OG_MULTIARG_HELP_STRINGS($5)], [^[         ]+], []), [[    ]+$], []), [^[  ]*
+patsubst(patsubst(patsubst([OG_MULTIARG_HELP_STRINGS($5)], [^[ ]+], []), [[    ]+$], []), [^[  ]*
 ], [])])
 
        dnl I personally shoot everybody who fiddles with the whitespace here!!!!
-        AC_ARG_WITH($1, [
+       AC_ARG_WITH($1, [
 og_desc[]ifelse($5,[og_any],,[
 AS_HELP_STRING([], OG_MULTIARG_POSSVAL(og_items))
 AS_HELP_STRING([], OG_MULTIARG_MORE_ON_POSSVALS)
@@ -322,7 +322,7 @@ AC_DEFUN([OG_MULTIARG_SUMMARY], [# Option Group --with-$1 (multiarg)
        pushdef([og_mutices], [$sxe_og_[]og_group[]_mutices])
        pushdef([indent], [ifelse([$3],[],[],[$3])])
 
-        for og_val in og_items; do
+       for og_val in og_items; do
                if eval "test \"\$have_[]og_group[]_${og_val}\" = \"yes\""; then
                        if eval "test \"\$with_[]og_group[]_${og_val}\" \
                           != \"yes\""; then
index f46023b..2c71798 100644 (file)
@@ -623,7 +623,7 @@ AC_DEFUN([SXE_CHECK_NATIVE_INET_FUNS], [dnl
 
 AC_DEFUN([SXE_CHECK_LIBBIND_INET_FUNS], [dnl
        ## defines sxe_cv_feat_libbind_inet_funs, will be 'yes or 'no
-       ## key question here is still how our ipv6 support concept looks like 
+       ## key question here is still how our ipv6 support concept looks like
        ## of course it is an established thing today, but since other big
        ## players, like isc's bind, socks, etc. can still be configured
        ## without ipv6, and moreover, their ipv6 design may change any second
@@ -658,14 +658,14 @@ AC_DEFUN([SXE_CHECK_LIBBIND_INET_FUNS], [dnl
                ## grrrrrr, as for cppflags we just bang isc-config.sh --cflags
                ## and also isc-config.sh --cflags/bind and moreover, as
                ##    case "$includedir" in
-               ##      '${prefix}/include')
-               ##              includedir='${prefix}/bind/include'
-               ##              ;;
+               ##      '${prefix}/include')
+               ##              includedir='${prefix}/bind/include'
+               ##              ;;
                ##    esac
                ##    case "$libdir" in
-               ##      '${prefix}/lib')
-               ##              libdir='${prefix}/bind/lib'
-               ##              ;;
+               ##      '${prefix}/lib')
+               ##              libdir='${prefix}/bind/lib'
+               ##              ;;
                ##    esac
                ##               this is undocumented, don't abuse it ;)
                ##               vvvvvvvvvvvvv
@@ -675,7 +675,7 @@ AC_DEFUN([SXE_CHECK_LIBBIND_INET_FUNS], [dnl
                        bind_cppflags="${bind_cppflags} \
                                -I$(${ISC_CONFIG_SH} --prefix)/bind/include"
                fi
-               
+
                ##              this is undocumented, don't abuse it ;)
                ##              vvvvvvvvvvvv
                bind_ldflags="${BIND_LDFLAGS} $(${ISC_CONFIG_SH} --libs)"
index acdfbf4..fdcdbd7 100644 (file)
@@ -112,7 +112,7 @@ elif test "${sxemacs_betaname}" != ""; then
   echo "    WARNING: troubleshooting information available."
   echo "    WARNING: ---------------------------------------------------------"
 fi
-unset tmp_enabled 
+unset tmp_enabled
 
 
 echo "
@@ -171,9 +171,9 @@ fi
 case "$with_menubars" in
   lucid ) echo "  Using Lucid menubars." ;;
   motif ) echo "  Using Motif menubars."
-          echo "  *WARNING*  The Motif menubar implementation is currently buggy."
-          echo "             We recommend using the Lucid menubar instead."
-          echo "             Re-run configure with --with-menubars='lucid'." ;;
+         echo "  *WARNING*  The Motif menubar implementation is currently buggy."
+         echo "             We recommend using the Lucid menubar instead."
+         echo "             Re-run configure with --with-menubars='lucid'." ;;
   * )      echo "  No support for menubars."   ;;
 esac
 case "$with_scrollbars" in
@@ -184,12 +184,12 @@ case "$with_scrollbars" in
 esac
 case "$with_dialogs" in
   motif  ) echo "  Using Motif dialog boxes."
-           if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
-             echo "  *WARNING*  The Motif dialog boxes cause problems on AIX 4.3 and higher."
-             echo "             We recommend using the Athena dialog boxes instead."
-             echo "             Install libXaw and re-run configure with --with-dialogs='athena'."
-             echo "             Read the PROBLEMS file for more information."
-           fi; fi ;;
+          if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
+            echo "  *WARNING*  The Motif dialog boxes cause problems on AIX 4.3 and higher."
+            echo "             We recommend using the Athena dialog boxes instead."
+            echo "             Install libXaw and re-run configure with --with-dialogs='athena'."
+            echo "             Read the PROBLEMS file for more information."
+          fi; fi ;;
   athena ) echo "  Using Athena dialog boxes."     ;;
   * )      echo "  No support for dialog boxes." ;;
 esac