So this would all have to be HPUX only, right?

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Falk Hayn
Sent: Tuesday, September 24, 2002 9:55 AM
To: [EMAIL PROTECTED]
Subject: [Ntop-dev] no multithread on HP-UX 11.00 - resolved -
codechange request


Dear Burton, dear Ladies and Sirs,

to have multithread support enabled for HP-UX 11.00, it is necessary to
include some checkings for additional libs into configure.in near line 810

This change was tested with daily snapshot as ofSeptember 23th.
(I removed comments to better understand the if the hirarchy)

Pls. notify me, after the change has been included into daily snapshots.

configure.in near line 810
dnl> Do not perform any check for the thread library,
dnl> if the user decided to compile without multithread support.
dnl>
if test ".$ac_disable_multithread" = ".no"; then
  AC_CHECK_LIB(pthread, pthread_create)
  if test ".`echo $LIBS | grep pthread`" != .; then
     AC_CHECK_LIB(posix4, sem_init)
     AC_DEFINE(MULTITHREADED)
     AC_DEFINE(ASYNC_ADDRESS_RESOLUTION)
  else
     AC_CHECK_LIB(pthreads, pthread_create)
     if test ".`echo $LIBS | grep pthread`" != .; then
         AC_CHECK_LIB(posix4, sem_init)
         AC_DEFINE(MULTITHREADED)
         AC_DEFINE(ASYNC_ADDRESS_RESOLUTION)
     else
         AC_CHECK_LIB(c_r, pthread_create)
         if test ".`echo $LIBS | grep c_r`" != .; then
            AC_DEFINE(MULTITHREADED)
            AC_DEFINE(ASYNC_ADDRESS_RESOLUTION)
         else
            # check __pthread_create_system for
            # HP-UX instead off pthread_create
            # pthread_create is a wrapper to __pthread_create_system
            # pls see /usr/lib/sys/pthread.h on any HP-UX 11.00 system
            AC_CHECK_LIB(pthread, __pthread_create_system)
            if test ".`echo $LIBS | grep pthread `" != .; then
               AC_CHECK_LIB(rt, sem_init)
               if test ".`echo $LIBS | grep rt `" != .; then
                  AC_DEFINE(MULTITHREADED)
                  AC_DEFINE(ASYNC_ADDRESS_RESOLUTION)
               else
                  multithread_mode=no
               fi
            else
               multithread_mode=no
            fi
         fi
     fi
   fi
else
  AC_MSG_WARN([Multithread support disabled via command line option!])
  multithread_mode=no
fi

--
Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX w�hlen -
und tolle Preise absahnen! http://www.onlinestar.de

_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop-dev

_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop-dev

Reply via email to