Changeset 502
- Timestamp:
- 05/25/09 07:23:01 (3 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 11 edited
-
ChangeLog (modified) (1 diff)
-
Makefile.am (modified) (1 diff)
-
Makefile.in (modified) (7 diffs)
-
aclocal.m4 (modified) (1 diff)
-
acx_pthread.m4 (added)
-
config.h.in (modified) (3 diffs)
-
configure (modified) (15 diffs)
-
configure.ac (modified) (2 diffs)
-
man/Makefile.in (modified) (5 diffs)
-
src/Makefile.in (modified) (6 diffs)
-
src/cygwin/Makefile.in (modified) (5 diffs)
-
src/ocat.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r500 r502 1 1 * version 0.1.12 2 - improved autoconf for better pthread configuration (acx_pthread.m4) 2 3 - socks connector completely rewritten. Works now 3 4 without dynamic thread pool. This is more memory efficient. -
trunk/Makefile.am
r486 r502 2 2 DIST_SUBDIRS = src/cygwin src man 3 3 dist_doc_DATA = README 4 ACLOCAL_AMFLAGS = -I . 5 EXTRA_DIST = acx_pthread.m4 4 6 -
trunk/Makefile.in
r500 r502 31 31 PRE_UNINSTALL = : 32 32 POST_UNINSTALL = : 33 build_triplet = @build@ 34 host_triplet = @host@ 33 35 subdir = . 34 36 DIST_COMMON = README $(am__configure_deps) $(dist_doc_DATA) \ … … 38 40 install-sh missing 39 41 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 40 am__aclocal_m4_deps = $(top_srcdir)/configure.ac 42 am__aclocal_m4_deps = $(top_srcdir)/acx_pthread.m4 \ 43 $(top_srcdir)/configure.ac 41 44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 42 45 $(ACLOCAL_M4) … … 115 118 PACKAGE_VERSION = @PACKAGE_VERSION@ 116 119 PATH_SEPARATOR = @PATH_SEPARATOR@ 120 PTHREAD_CC = @PTHREAD_CC@ 121 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ 122 PTHREAD_LIBS = @PTHREAD_LIBS@ 117 123 SET_MAKE = @SET_MAKE@ 118 124 SHELL = @SHELL@ … … 124 130 abs_top_srcdir = @abs_top_srcdir@ 125 131 ac_ct_CC = @ac_ct_CC@ 132 acx_pthread_config = @acx_pthread_config@ 126 133 am__include = @am__include@ 127 134 am__leading_dot = @am__leading_dot@ … … 130 137 am__untar = @am__untar@ 131 138 bindir = @bindir@ 139 build = @build@ 132 140 build_alias = @build_alias@ 141 build_cpu = @build_cpu@ 142 build_os = @build_os@ 143 build_vendor = @build_vendor@ 133 144 builddir = @builddir@ 134 145 datadir = @datadir@ … … 137 148 dvidir = @dvidir@ 138 149 exec_prefix = @exec_prefix@ 150 host = @host@ 139 151 host_alias = @host_alias@ 152 host_cpu = @host_cpu@ 153 host_os = @host_os@ 154 host_vendor = @host_vendor@ 140 155 htmldir = @htmldir@ 141 156 includedir = @includedir@ … … 164 179 DIST_SUBDIRS = src/cygwin src man 165 180 dist_doc_DATA = README 181 ACLOCAL_AMFLAGS = -I . 182 EXTRA_DIST = acx_pthread.m4 166 183 all: config.h 167 184 $(MAKE) $(AM_MAKEFLAGS) all-recursive -
trunk/aclocal.m4
r500 r502 876 876 ]) # _AM_PROG_TAR 877 877 878 m4_include([acx_pthread.m4]) -
trunk/config.h.in
r491 r502 18 18 /* Define to 1 if you have the `ether_ntoa_r' function. */ 19 19 #undef HAVE_ETHER_NTOA_R 20 21 /* Define to 1 if you have the `pthread' library (-lpthread). */22 #undef HAVE_LIBPTHREAD23 20 24 21 /* Define to 1 if you have the <linux/if_tun.h> header file. */ … … 60 57 /* Define to 1 if you have the <net/if_tun.h> header file. */ 61 58 #undef HAVE_NET_IF_TUN_H 59 60 /* Define if you have POSIX threads libraries and header files. */ 61 #undef HAVE_PTHREAD 62 62 63 63 /* Do we have sockaddr_in.sin_len? */ … … 115 115 #undef PACKET_QUEUE 116 116 117 /* Define to necessary symbol if this constant uses a non-standard name on 118 your system. */ 119 #undef PTHREAD_CREATE_JOINABLE 120 117 121 /* SVN Revision */ 118 122 #undef SVN_REVISION -
trunk/configure
r500 r502 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.63 for onioncat 0.1.12.r 499.3 # Generated by GNU Autoconf 2.63 for onioncat 0.1.12.r501. 4 4 # 5 5 # Report bugs to <rahra@cypherpunk.at>. … … 597 597 PACKAGE_NAME='onioncat' 598 598 PACKAGE_TARNAME='onioncat' 599 PACKAGE_VERSION='0.1.12.r 499'600 PACKAGE_STRING='onioncat 0.1.12.r 499'599 PACKAGE_VERSION='0.1.12.r501' 600 PACKAGE_STRING='onioncat 0.1.12.r501' 601 601 PACKAGE_BUGREPORT='rahra@cypherpunk.at' 602 602 603 603 ac_subst_vars='LTLIBOBJS 604 604 LIBOBJS 605 PTHREAD_CFLAGS 606 PTHREAD_LIBS 607 PTHREAD_CC 608 acx_pthread_config 609 host_os 610 host_vendor 611 host_cpu 612 host 613 build_os 614 build_vendor 615 build_cpu 616 build 605 617 am__fastdepCC_FALSE 606 618 am__fastdepCC_TRUE … … 1250 1262 # This message is too long to be a string in the A/UX 3.1 sh. 1251 1263 cat <<_ACEOF 1252 \`configure' configures onioncat 0.1.12.r 499to adapt to many kinds of systems.1264 \`configure' configures onioncat 0.1.12.r501 to adapt to many kinds of systems. 1253 1265 1254 1266 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1311 1323 --program-suffix=SUFFIX append SUFFIX to installed program names 1312 1324 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1325 1326 System types: 1327 --build=BUILD configure for building on BUILD [guessed] 1328 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1313 1329 _ACEOF 1314 1330 fi … … 1316 1332 if test -n "$ac_init_help"; then 1317 1333 case $ac_init_help in 1318 short | recursive ) echo "Configuration of onioncat 0.1.12.r 499:";;1334 short | recursive ) echo "Configuration of onioncat 0.1.12.r501:";; 1319 1335 esac 1320 1336 cat <<\_ACEOF … … 1408 1424 if $ac_init_version; then 1409 1425 cat <<\_ACEOF 1410 onioncat configure 0.1.12.r 4991426 onioncat configure 0.1.12.r501 1411 1427 generated by GNU Autoconf 2.63 1412 1428 … … 1422 1438 running configure, to aid debugging if configure makes a mistake. 1423 1439 1424 It was created by onioncat $as_me 0.1.12.r 499, which was1440 It was created by onioncat $as_me 0.1.12.r501, which was 1425 1441 generated by GNU Autoconf 2.63. Invocation command line was 1426 1442 … … 2138 2154 # Define the identity of the package. 2139 2155 PACKAGE='onioncat' 2140 VERSION='0.1.12.r 499'2156 VERSION='0.1.12.r501' 2141 2157 2142 2158 … … 2285 2301 2286 2302 cat >>confdefs.h <<\_ACEOF 2287 #define SVN_REVISION " 499"2288 _ACEOF 2289 2290 2291 CFLAGS="-Wall - pthread -O2"2303 #define SVN_REVISION "501" 2304 _ACEOF 2305 2306 2307 CFLAGS="-Wall -O2" 2292 2308 2293 2309 … … 3452 3468 3453 3469 #AC_PROG_INSTALL 3454 3455 # Checks for libraries. 3456 3457 3458 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 3459 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } 3460 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 3470 # Make sure we can run config.sub. 3471 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3472 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3473 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3474 { (exit 1); exit 1; }; } 3475 3476 { $as_echo "$as_me:$LINENO: checking build system type" >&5 3477 $as_echo_n "checking build system type... " >&6; } 3478 if test "${ac_cv_build+set}" = set; then 3461 3479 $as_echo_n "(cached) " >&6 3462 3480 else 3463 ac_check_lib_save_LIBS=$LIBS 3464 LIBS="-lpthread $LIBS" 3465 cat >conftest.$ac_ext <<_ACEOF 3481 ac_build_alias=$build_alias 3482 test "x$ac_build_alias" = x && 3483 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3484 test "x$ac_build_alias" = x && 3485 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3486 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3487 { (exit 1); exit 1; }; } 3488 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3489 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3490 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3491 { (exit 1); exit 1; }; } 3492 3493 fi 3494 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3495 $as_echo "$ac_cv_build" >&6; } 3496 case $ac_cv_build in 3497 *-*-*) ;; 3498 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3499 $as_echo "$as_me: error: invalid value of canonical build" >&2;} 3500 { (exit 1); exit 1; }; };; 3501 esac 3502 build=$ac_cv_build 3503 ac_save_IFS=$IFS; IFS='-' 3504 set x $ac_cv_build 3505 shift 3506 build_cpu=$1 3507 build_vendor=$2 3508 shift; shift 3509 # Remember, the first character of IFS is used to create $*, 3510 # except with old shells: 3511 build_os=$* 3512 IFS=$ac_save_IFS 3513 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3514 3515 3516 { $as_echo "$as_me:$LINENO: checking host system type" >&5 3517 $as_echo_n "checking host system type... " >&6; } 3518 if test "${ac_cv_host+set}" = set; then 3519 $as_echo_n "(cached) " >&6 3520 else 3521 if test "x$host_alias" = x; then 3522 ac_cv_host=$ac_cv_build 3523 else 3524 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3525 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3526 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3527 { (exit 1); exit 1; }; } 3528 fi 3529 3530 fi 3531 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3532 $as_echo "$ac_cv_host" >&6; } 3533 case $ac_cv_host in 3534 *-*-*) ;; 3535 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3536 $as_echo "$as_me: error: invalid value of canonical host" >&2;} 3537 { (exit 1); exit 1; }; };; 3538 esac 3539 host=$ac_cv_host 3540 ac_save_IFS=$IFS; IFS='-' 3541 set x $ac_cv_host 3542 shift 3543 host_cpu=$1 3544 host_vendor=$2 3545 shift; shift 3546 # Remember, the first character of IFS is used to create $*, 3547 # except with old shells: 3548 host_os=$* 3549 IFS=$ac_save_IFS 3550 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3551 3552 3553 3554 3555 3556 3557 ac_ext=c 3558 ac_cpp='$CPP $CPPFLAGS' 3559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3561 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3562 3563 acx_pthread_ok=no 3564 3565 # We used to check for pthread.h first, but this fails if pthread.h 3566 # requires special compiler flags (e.g. on True64 or Sequent). 3567 # It gets checked for in the link test anyway. 3568 3569 # First of all, check if the user has set any of the PTHREAD_LIBS, 3570 # etcetera environment variables, and if threads linking works using 3571 # them: 3572 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 3573 save_CFLAGS="$CFLAGS" 3574 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 3575 save_LIBS="$LIBS" 3576 LIBS="$PTHREAD_LIBS $LIBS" 3577 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 3578 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 3579 cat >conftest.$ac_ext <<_ACEOF 3466 3580 /* confdefs.h. */ 3467 3581 _ACEOF … … 3476 3590 extern "C" 3477 3591 #endif 3478 char pthread_ create();3592 char pthread_join (); 3479 3593 int 3480 3594 main () 3481 3595 { 3482 return pthread_ create();3596 return pthread_join (); 3483 3597 ; 3484 3598 return 0; … … 3506 3620 $as_test_x conftest$ac_exeext 3507 3621 }; then 3508 ac _cv_lib_pthread_pthread_create=yes3622 acx_pthread_ok=yes 3509 3623 else 3510 3624 $as_echo "$as_me: failed program was:" >&5 3511 3625 sed 's/^/| /' conftest.$ac_ext >&5 3512 3626 3513 ac_cv_lib_pthread_pthread_create=no 3627 3514 3628 fi 3515 3629 … … 3517 3631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3518 3632 conftest$ac_exeext conftest.$ac_ext 3519 LIBS=$ac_check_lib_save_LIBS 3520 fi 3521 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 3522 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 3523 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then 3524 cat >>confdefs.h <<_ACEOF 3525 #define HAVE_LIBPTHREAD 1 3526 _ACEOF 3527 3528 LIBS="-lpthread $LIBS" 3529 3530 fi 3531 3633 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 3634 $as_echo "$acx_pthread_ok" >&6; } 3635 if test x"$acx_pthread_ok" = xno; then 3636 PTHREAD_LIBS="" 3637 PTHREAD_CFLAGS="" 3638 fi 3639 LIBS="$save_LIBS" 3640 CFLAGS="$save_CFLAGS" 3641 fi 3642 3643 # We must check for the threads library under a number of different 3644 # names; the ordering is very important because some systems 3645 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the 3646 # libraries is broken (non-POSIX). 3647 3648 # Create a list of thread flags to try. Items starting with a "-" are 3649 # C compiler flags, and other items are library names, except for "none" 3650 # which indicates that we try without any flags at all, and "pthread-config" 3651 # which is a program returning the flags for the Pth emulation library. 3652 3653 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 3654 3655 # The ordering *is* (sometimes) important. Some notes on the 3656 # individual items follow: 3657 3658 # pthreads: AIX (must check this before -lpthread) 3659 # none: in case threads are in libc; should be tried before -Kthread and 3660 # other compiler flags to prevent continual compiler warnings 3661 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 3662 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 3663 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 3664 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 3665 # -pthreads: Solaris/gcc 3666 # -mthreads: Mingw32/gcc, Lynx/gcc 3667 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 3668 # doesn't hurt to check since this sometimes defines pthreads too; 3669 # also defines -D_REENTRANT) 3670 # ... -mt is also the pthreads flag for HP/aCC 3671 # pthread: Linux, etcetera 3672 # --thread-safe: KAI C++ 3673 # pthread-config: use pthread-config program (for GNU Pth library) 3674 3675 case "${host_cpu}-${host_os}" in 3676 *solaris*) 3677 3678 # On Solaris (at least, for some versions), libc contains stubbed 3679 # (non-functional) versions of the pthreads routines, so link-based 3680 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 3681 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 3682 # a function called by this macro, so we could check for that, but 3683 # who knows whether they'll stub that too in a future libc.) So, 3684 # we'll just look for -pthreads and -lpthread first: 3685 3686 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 3687 ;; 3688 esac 3689 3690 if test x"$acx_pthread_ok" = xno; then 3691 for flag in $acx_pthread_flags; do 3692 3693 case $flag in 3694 none) 3695 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 3696 $as_echo_n "checking whether pthreads work without any flags... " >&6; } 3697 ;; 3698 3699 -*) 3700 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 3701 $as_echo_n "checking whether pthreads work with $flag... " >&6; } 3702 PTHREAD_CFLAGS="$flag" 3703 ;; 3704 3705 pthread-config) 3706 # Extract the first word of "pthread-config", so it can be a program name with args. 3707 set dummy pthread-config; ac_word=$2 3708 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3709 $as_echo_n "checking for $ac_word... " >&6; } 3710 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then 3711 $as_echo_n "(cached) " >&6 3712 else 3713 if test -n "$acx_pthread_config"; then 3714 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 3715 else 3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3717 for as_dir in $PATH 3718 do 3719 IFS=$as_save_IFS 3720 test -z "$as_dir" && as_dir=. 3721 for ac_exec_ext in '' $ac_executable_extensions; do 3722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3723 ac_cv_prog_acx_pthread_config="yes" 3724 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3725 break 2 3726 fi 3727 done 3728 done 3729 IFS=$as_save_IFS 3730 3731 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 3732 fi 3733 fi 3734 acx_pthread_config=$ac_cv_prog_acx_pthread_config 3735 if test -n "$acx_pthread_config"; then 3736 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 3737 $as_echo "$acx_pthread_config" >&6; } 3738 else 3739 { $as_echo "$as_me:$LINENO: result: no" >&5 3740 $as_echo "no" >&6; } 3741 fi 3742 3743 3744 if test x"$acx_pthread_config" = xno; then continue; fi 3745 PTHREAD_CFLAGS="`pthread-config --cflags`" 3746 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 3747 ;; 3748 3749 *) 3750 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 3751 $as_echo_n "checking for the pthreads library -l$flag... " >&6; } 3752 PTHREAD_LIBS="-l$flag" 3753 ;; 3754 esac 3755 3756 save_LIBS="$LIBS" 3757 save_CFLAGS="$CFLAGS" 3758 LIBS="$PTHREAD_LIBS $LIBS" 3759 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 3760 3761 # Check for various functions. We must include pthread.h, 3762 # since some functions may be macros. (On the Sequent, we 3763 # need a special flag -Kthread to make this header compile.) 3764 # We check for pthread_join because it is in -lpthread on IRIX 3765 # while pthread_create is in libc. We check for pthread_attr_init 3766 # due to DEC craziness with -lpthreads. We check for 3767 # pthread_cleanup_push because it is one of the few pthread 3768 # functions on Solaris that doesn't have a non-functional libc stub. 3769 # We try pthread_create on general principles. 3770 cat >conftest.$ac_ext <<_ACEOF 3771 /* confdefs.h. */ 3772 _ACEOF 3773 cat confdefs.h >>conftest.$ac_ext 3774 cat >>conftest.$ac_ext <<_ACEOF 3775 /* end confdefs.h. */ 3776 #include <pthread.h> 3777 int 3778 main () 3779 { 3780 pthread_t th; pthread_join(th, 0); 3781 pthread_attr_init(0); pthread_cleanup_push(0, 0); 3782 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 3783 ; 3784 return 0; 3785 } 3786 _ACEOF 3787 rm -f conftest.$ac_objext conftest$ac_exeext 3788 if { (ac_try="$ac_link" 3789 case "(($ac_try" in 3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3791 *) ac_try_echo=$ac_try;; 3792 esac 3793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3794 $as_echo "$ac_try_echo") >&5 3795 (eval "$ac_link") 2>conftest.er1 3796 ac_status=$? 3797 grep -v '^ *+' conftest.er1 >conftest.err 3798 rm -f conftest.er1 3799 cat conftest.err >&5 3800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3801 (exit $ac_status); } && { 3802 test -z "$ac_c_werror_flag" || 3803 test ! -s conftest.err 3804 } && test -s conftest$ac_exeext && { 3805 test "$cross_compiling" = yes || 3806 $as_test_x conftest$ac_exeext 3807 }; then 3808 acx_pthread_ok=yes 3809 else 3810 $as_echo "$as_me: failed program was:" >&5 3811 sed 's/^/| /' conftest.$ac_ext >&5 3812 3813 3814 fi 3815 3816 rm -rf conftest.dSYM 3817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3818 conftest$ac_exeext conftest.$ac_ext 3819 3820 LIBS="$save_LIBS" 3821 CFLAGS="$save_CFLAGS" 3822 3823 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 3824 $as_echo "$acx_pthread_ok" >&6; } 3825 if test "x$acx_pthread_ok" = xyes; then 3826 break; 3827 fi 3828 3829 PTHREAD_LIBS="" 3830 PTHREAD_CFLAGS="" 3831 done 3832 fi 3833 3834 # Various other checks: 3835 if test "x$acx_pthread_ok" = xyes; then 3836 save_LIBS="$LIBS" 3837 LIBS="$PTHREAD_LIBS $LIBS" 3838 save_CFLAGS="$CFLAGS" 3839 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 3840 3841 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 3842 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 3843 $as_echo_n "checking for joinable pthread attribute... " >&6; } 3844 attr_name=unknown 3845 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 3846 cat >conftest.$ac_ext <<_ACEOF 3847 /* confdefs.h. */ 3848 _ACEOF 3849 cat confdefs.h >>conftest.$ac_ext 3850 cat >>conftest.$ac_ext <<_ACEOF 3851 /* end confdefs.h. */ 3852 #include <pthread.h> 3853 int 3854 main () 3855 { 3856 int attr=$attr; return attr; 3857 ; 3858 return 0; 3859 } 3860 _ACEOF 3861 rm -f conftest.$ac_objext conftest$ac_exeext 3862 if { (ac_try="$ac_link" 3863 case "(($ac_try" in 3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3865 *) ac_try_echo=$ac_try;; 3866 esac 3867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3868 $as_echo "$ac_try_echo") >&5 3869 (eval "$ac_link") 2>conftest.er1 3870 ac_status=$? 3871 grep -v '^ *+' conftest.er1 >conftest.err 3872 rm -f conftest.er1 3873 cat conftest.err >&5 3874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3875 (exit $ac_status); } && { 3876 test -z "$ac_c_werror_flag" || 3877 test ! -s conftest.err 3878 } && test -s conftest$ac_exeext && { 3879 test "$cross_compiling" = yes || 3880 $as_test_x conftest$ac_exeext 3881 }; then 3882 attr_name=$attr; break 3883 else 3884 $as_echo "$as_me: failed program was:" >&5 3885 sed 's/^/| /' conftest.$ac_ext >&5 3886 3887 3888 fi 3889 3890 rm -rf conftest.dSYM 3891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3892 conftest$ac_exeext conftest.$ac_ext 3893 done 3894 { $as_echo "$as_me:$LINENO: result: $attr_name" >&5 3895 $as_echo "$attr_name" >&6; } 3896 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 3897 3898 cat >>confdefs.h <<_ACEOF 3899 #define PTHREAD_CREATE_JOINABLE $attr_name 3900 _ACEOF 3901 3902 fi 3903 3904 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 3905 $as_echo_n "checking if more special flags are required for pthreads... " >&6; } 3906 flag=no 3907 case "${host_cpu}-${host_os}" in 3908 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 3909 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 3910 esac 3911 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5 3912 $as_echo "${flag}" >&6; } 3913 if test "x$flag" != xno; then 3914 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 3915 fi 3916 3917 LIBS="$save_LIBS" 3918 CFLAGS="$save_CFLAGS" 3919 3920 # More AIX lossage: must compile with xlc_r or cc_r 3921 if test x"$GCC" != xyes; then 3922 for ac_prog in xlc_r cc_r 3923 do 3924 # Extract the first word of "$ac_prog", so it can be a program name with args. 3925 set dummy $ac_prog; ac_word=$2 3926 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3927 $as_echo_n "checking for $ac_word... " >&6; } 3928 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then 3929 $as_echo_n "(cached) " >&6 3930 else 3931 if test -n "$PTHREAD_CC"; then 3932 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 3933 else 3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3935 for as_dir in $PATH 3936 do 3937 IFS=$as_save_IFS 3938 test -z "$as_dir" && as_dir=. 3939 for ac_exec_ext in '' $ac_executable_extensions; do 3940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3941 ac_cv_prog_PTHREAD_CC="$ac_prog" 3942 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3943 break 2 3944 fi 3945 done 3946 done 3947 IFS=$as_save_IFS 3948 3949 fi 3950 fi 3951 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 3952 if test -n "$PTHREAD_CC"; then 3953 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 3954 $as_echo "$PTHREAD_CC" >&6; } 3955 else 3956 { $as_echo "$as_me:$LINENO: result: no" >&5 3957 $as_echo "no" >&6; } 3958 fi 3959 3960 3961 test -n "$PTHREAD_CC" && break 3962 done 3963 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 3964 3965 else 3966 PTHREAD_CC=$CC 3967 fi 3968 else 3969 PTHREAD_CC="$CC" 3970 fi 3971 3972 3973 3974 3975 3976 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 3977 if test x"$acx_pthread_ok" = xyes; then 3978 3979 cat >>confdefs.h <<\_ACEOF 3980 #define HAVE_PTHREAD 1 3981 _ACEOF 3982 3983 : 3984 else 3985 acx_pthread_ok=no 3986 3987 fi 3988 ac_ext=c 3989 ac_cpp='$CPP $CPPFLAGS' 3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3993 3994 3995 3996 # Checks for libraries. 3997 #AC_CHECK_LIB([pthread], [pthread_create]) 3532 3998 #AC_CHECK_LIB([rt], [clock_gettime]) 3533 3999 #AC_CHECK_LIB([readline], [main]) 4000 4001 LIBS="$PTHREAD_LIBS $LIBS" 4002 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 4003 CC="$PTHREAD_CC" 3534 4004 3535 4005 # Checks for header files. … … 4804 5274 # values after options handling. 4805 5275 ac_log=" 4806 This file was extended by onioncat $as_me 0.1.12.r 499, which was5276 This file was extended by onioncat $as_me 0.1.12.r501, which was 4807 5277 generated by GNU Autoconf 2.63. Invocation command line was 4808 5278 … … 4867 5337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4868 5338 ac_cs_version="\\ 4869 onioncat config.status 0.1.12.r 4995339 onioncat config.status 0.1.12.r501 4870 5340 configured by $0, generated by GNU Autoconf 2.63, 4871 5341 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" -
trunk/configure.ac
r496 r502 8 8 AC_DEFINE(SVN_REVISION, "svnversion", [SVN Revision]) 9 9 10 AC_SUBST([CFLAGS], [["-Wall - pthread -O2"]])10 AC_SUBST([CFLAGS], [["-Wall -O2"]]) 11 11 12 12 AC_ARG_ENABLE([debug], AC_HELP_STRING([--enable-debug], [enable debugging]), AC_DEFINE([DEBUG], [], [enable debugging])) … … 20 20 AC_PROG_CC 21 21 #AC_PROG_INSTALL 22 ACX_PTHREAD 22 23 23 24 # Checks for libraries. 24 AC_CHECK_LIB([pthread], [pthread_create])25 #AC_CHECK_LIB([pthread], [pthread_create]) 25 26 #AC_CHECK_LIB([rt], [clock_gettime]) 26 27 #AC_CHECK_LIB([readline], [main]) 28 29 LIBS="$PTHREAD_LIBS $LIBS" 30 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 31 CC="$PTHREAD_CC" 27 32 28 33 # Checks for header files. -
trunk/man/Makefile.in
r500 r502 30 30 PRE_UNINSTALL = : 31 31 POST_UNINSTALL = : 32 build_triplet = @build@ 33 host_triplet = @host@ 32 34 subdir = man 33 35 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 34 36 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 35 am__aclocal_m4_deps = $(top_srcdir)/configure.ac 37 am__aclocal_m4_deps = $(top_srcdir)/acx_pthread.m4 \ 38 $(top_srcdir)/configure.ac 36 39 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 37 40 $(ACLOCAL_M4) … … 82 85 PACKAGE_VERSION = @PACKAGE_VERSION@ 83 86 PATH_SEPARATOR = @PATH_SEPARATOR@ 87 PTHREAD_CC = @PTHREAD_CC@ 88 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ 89 PTHREAD_LIBS = @PTHREAD_LIBS@ 84 90 SET_MAKE = @SET_MAKE@ 85 91 SHELL = @SHELL@ … … 91 97 abs_top_srcdir = @abs_top_srcdir@ 92 98 ac_ct_CC = @ac_ct_CC@ 99 acx_pthread_config = @acx_pthread_config@ 93 100 am__include = @am__include@ 94 101 am__leading_dot = @am__leading_dot@ … … 97 104 am__untar = @am__untar@ 98 105 bindir = @bindir@ 106 build = @build@ 99 107 build_alias = @build_alias@ 108 build_cpu = @build_cpu@ 109 build_os = @build_os@ 110 build_vendor = @build_vendor@ 100 111 builddir = @builddir@ 101 112 datadir = @datadir@ … … 104 115 dvidir = @dvidir@ 105 116 exec_prefix = @exec_prefix@ 117 host = @host@ 106 118 host_alias = @host_alias@ 119 host_cpu = @host_cpu@ 120 host_os = @host_os@ 121 host_vendor = @host_vendor@ 107 122 htmldir = @htmldir@ 108 123 includedir = @includedir@ -
trunk/src/Makefile.in
r500 r502 32 32 PRE_UNINSTALL = : 33 33 POST_UNINSTALL = : 34 build_triplet = @build@ 35 host_triplet = @host@ 34 36 bin_PROGRAMS = ocat$(EXEEXT) 35 37 subdir = src … … 37 39 $(srcdir)/Makefile.in 38 40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 39 am__aclocal_m4_deps = $(top_srcdir)/configure.ac 41 am__aclocal_m4_deps = $(top_srcdir)/acx_pthread.m4 \ 42 $(top_srcdir)/configure.ac 40 43 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 41 44 $(ACLOCAL_M4) … … 110 113 PACKAGE_VERSION = @PACKAGE_VERSION@ 111 114 PATH_SEPARATOR = @PATH_SEPARATOR@ 115 PTHREAD_CC = @PTHREAD_CC@ 116 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ 117 PTHREAD_LIBS = @PTHREAD_LIBS@ 112 118 SET_MAKE = @SET_MAKE@ 113 119 SHELL = @SHELL@ … … 119 125 abs_top_srcdir = @abs_top_srcdir@ 120 126 ac_ct_CC = @ac_ct_CC@ 127 acx_pthread_config = @acx_pthread_config@ 121 128 am__include = @am__include@ 122 129 am__leading_dot = @am__leading_dot@ … … 125 132 am__untar = @am__untar@ 126 133 bindir = @bindir@ 134 build = @build@ 127 135 build_alias = @build_alias@ 136 build_cpu = @build_cpu@ 137 build_os = @build_os@ 138 build_vendor = @build_vendor@ 128 139 builddir = @builddir@ 129 140 datadir = @datadir@ … … 132 143 dvidir = @dvidir@ 133 144 exec_prefix = @exec_prefix@ 145 host = @host@ 134 146 host_alias = @host_alias@ 147 host_cpu = @host_cpu@ 148 host_os = @host_os@ 149 host_vendor = @host_vendor@ 135 150 htmldir = @htmldir@ 136 151 includedir = @includedir@ -
trunk/src/cygwin/Makefile.in
r500 r502 31 31 PRE_UNINSTALL = : 32 32 POST_UNINSTALL = : 33 build_triplet = @build@ 34 host_triplet = @host@ 33 35 subdir = src/cygwin 34 36 DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \ 35 37 $(srcdir)/Makefile.in 36 38 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 37 am__aclocal_m4_deps = $(top_srcdir)/configure.ac 39 am__aclocal_m4_deps = $(top_srcdir)/acx_pthread.m4 \ 40 $(top_srcdir)/configure.ac 38 41 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 39 42 $(ACLOCAL_M4) … … 91 94 PACKAGE_VERSION = @PACKAGE_VERSION@ 92 95 PATH_SEPARATOR = @PATH_SEPARATOR@ 96 PTHREAD_CC = @PTHREAD_CC@ 97 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ 98 PTHREAD_LIBS = @PTHREAD_LIBS@ 93 99 SET_MAKE = @SET_MAKE@ 94 100 SHELL = @SHELL@ … … 100 106 abs_top_srcdir = @abs_top_srcdir@ 101 107 ac_ct_CC = @ac_ct_CC@ 108 acx_pthread_config = @acx_pthread_config@ 102 109 am__include = @am__include@ 103 110 am__leading_dot = @am__leading_dot@ … … 106 113 am__untar = @am__untar@ 107 114 bindir = @bindir@ 115 build = @build@ 108 116 build_alias = @build_alias@ 117 build_cpu = @build_cpu@ 118 build_os = @build_os@ 119 build_vendor = @build_vendor@ 109 120 builddir = @builddir@ 110 121 datadir = @datadir@ … … 113 124 dvidir = @dvidir@ 114 125 exec_prefix = @exec_prefix@ 126 host = @host@ 115 127 host_alias = @host_alias@ 128 host_cpu = @host_cpu@ 129 host_os = @host_os@ 130 host_vendor = @host_vendor@ 116 131 htmldir = @htmldir@ 117 132 includedir = @includedir@ -
trunk/src/ocat.c
r500 r502 387 387 388 388 memcpy(&CNF(ocat_hwaddr[3]), &CNF(ocat_addr.s6_addr[13]), 3); 389 if (CNF(use_tap)) ;389 if (CNF(use_tap)) 390 390 log_msg(LOG_INFO, "MAC address %s", ether_ntoa_r((struct ether_addr*) CNF(ocat_hwaddr), hw)); 391 391
Note: See TracChangeset
for help on using the changeset viewer.
