Changeset 3237
- Timestamp:
- 10/31/05 00:01:58 (3 years ago)
- Files:
-
- wire/trunk/Makefile.in (modified) (2 diffs)
- wire/trunk/config.h.in (modified) (1 diff)
- wire/trunk/configure (modified) (14 diffs)
- wire/trunk/configure.in (modified) (4 diffs)
- wire/trunk/man/wire.1 (modified) (4 diffs)
- wire/trunk/wire/Makefile.in (modified) (1 diff)
- wire/trunk/wire/client.c (modified) (34 diffs)
- wire/trunk/wire/client.h (modified) (3 diffs)
- wire/trunk/wire/commands.c (modified) (65 diffs)
- wire/trunk/wire/commands.h (modified) (2 diffs)
- wire/trunk/wire/files.c (modified) (6 diffs)
- wire/trunk/wire/files.h (modified) (3 diffs)
- wire/trunk/wire/ignores.c (modified) (9 diffs)
- wire/trunk/wire/ignores.h (modified) (1 diff)
- wire/trunk/wire/main.c (modified) (12 diffs)
- wire/trunk/wire/main.h (modified) (3 diffs)
- wire/trunk/wire/terminal.c (moved) (moved from wire/trunk/wire/term.c) (21 diffs)
- wire/trunk/wire/terminal.h (moved) (moved from wire/trunk/wire/term.h) (2 diffs)
- wire/trunk/wire/transfers.c (modified) (8 diffs)
- wire/trunk/wire/transfers.h (modified) (2 diffs)
- wire/trunk/wire/users.c (modified) (7 diffs)
- wire/trunk/wire/users.h (modified) (2 diffs)
- wire/trunk/wire/version.c (modified) (1 diff)
- wire/trunk/wire/version.h (modified) (1 diff)
- wire/trunk/wire/windows.c (modified) (24 diffs)
- wire/trunk/wire/windows.h (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wire/trunk/Makefile.in
r2865 r3237 20 20 target=`echo $@ | sed s/-recursive//`; \ 21 21 echo "Making $$target in $$subdir"; \ 22 (cd $$subdir && $(MAKE) $$target) ; \22 (cd $$subdir && $(MAKE) $$target) || exit 1; \ 23 23 done 24 24 … … 58 58 rm -rf wire-$(WR_VERSION) 59 59 60 auto: autoconf autoheader autoclean 61 62 autoconf: 63 @echo "Making $@ in ." 64 65 autoconf 66 67 autoheader: 68 @echo "Making $@ in ." 69 70 autoheader 71 60 72 clean: clean-recursive 61 73 @echo "Making $@ in ." wire/trunk/config.h.in
r2865 r3237 63 63 #undef HAVE_SYS_TYPES_H 64 64 65 /* Define to 1 if you have the <sys/vfs.h> header file. */ 66 #undef HAVE_SYS_VFS_H 67 65 68 /* Define to 1 if you have the <termcap.h> header file. */ 66 69 #undef HAVE_TERMCAP_H wire/trunk/configure
r2865 r3237 2476 2476 2477 2477 # Check for warnings 2478 echo "$as_me:$LINENO: checking for warning flags" >&5 2479 echo $ECHO_N "checking for warning flags... $ECHO_C" >&6 2478 2480 # Check whether --enable-warnings or --disable-warnings was given. 2479 2481 if test "${enable_warnings+set}" = set; then … … 2482 2484 fi; 2483 2485 2486 2487 2484 2488 if test -n "$enable_warnings"; then 2485 CFLAGS="$CFLAGS -W -Wall -Wno-unknown-pragmas -Wno-unused-parameter -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls" 2489 2490 2491 OLD_CFLAGS="$CFLAGS" 2492 CFLAGS="$CFLAGS -Whax" 2493 2494 if test "$cross_compiling" = yes; then 2495 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 2496 See \`config.log' for more details." >&5 2497 echo "$as_me: error: cannot run test program while cross compiling 2498 See \`config.log' for more details." >&2;} 2499 { (exit 1); exit 1; }; } 2500 else 2501 cat >conftest.$ac_ext <<_ACEOF 2502 /* confdefs.h. */ 2503 _ACEOF 2504 cat confdefs.h >>conftest.$ac_ext 2505 cat >>conftest.$ac_ext <<_ACEOF 2506 /* end confdefs.h. */ 2507 2508 int main(void) { 2509 return 0; 2510 } 2511 2512 _ACEOF 2513 rm -f conftest$ac_exeext 2514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2515 (eval $ac_link) 2>&5 2516 ac_status=$? 2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2520 (eval $ac_try) 2>&5 2521 ac_status=$? 2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2523 (exit $ac_status); }; }; then 2524 2525 WARNFLAGS="$WARNFLAGS -Whax" 2526 2527 else 2528 echo "$as_me: program exited with status $ac_status" >&5 2529 echo "$as_me: failed program was:" >&5 2530 sed 's/^/| /' conftest.$ac_ext >&5 2531 2532 ( exit $ac_status ) 2533 2534 CFLAGS="$OLD_CFLAGS" 2535 2536 fi 2537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2538 fi 2539 2540 2541 OLD_CFLAGS="$CFLAGS" 2542 CFLAGS="$CFLAGS -W" 2543 2544 if test "$cross_compiling" = yes; then 2545 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 2546 See \`config.log' for more details." >&5 2547 echo "$as_me: error: cannot run test program while cross compiling 2548 See \`config.log' for more details." >&2;} 2549 { (exit 1); exit 1; }; } 2550 else 2551 cat >conftest.$ac_ext <<_ACEOF 2552 /* confdefs.h. */ 2553 _ACEOF 2554 cat confdefs.h >>conftest.$ac_ext 2555 cat >>conftest.$ac_ext <<_ACEOF 2556 /* end confdefs.h. */ 2557 2558 int main(void) { 2559 return 0; 2560 } 2561 2562 _ACEOF 2563 rm -f conftest$ac_exeext 2564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2565 (eval $ac_link) 2>&5 2566 ac_status=$? 2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2570 (eval $ac_try) 2>&5 2571 ac_status=$? 2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2573 (exit $ac_status); }; }; then 2574 2575 WARNFLAGS="$WARNFLAGS -W" 2576 2577 else 2578 echo "$as_me: program exited with status $ac_status" >&5 2579 echo "$as_me: failed program was:" >&5 2580 sed 's/^/| /' conftest.$ac_ext >&5 2581 2582 ( exit $ac_status ) 2583 2584 CFLAGS="$OLD_CFLAGS" 2585 2586 fi 2587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2588 fi 2589 2590 2591 OLD_CFLAGS="$CFLAGS" 2592 CFLAGS="$CFLAGS -Wall" 2593 2594 if test "$cross_compiling" = yes; then 2595 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 2596 See \`config.log' for more details." >&5 2597 echo "$as_me: error: cannot run test program while cross compiling 2598 See \`config.log' for more details." >&2;} 2599 { (exit 1); exit 1; }; } 2600 else 2601 cat >conftest.$ac_ext <<_ACEOF 2602 /* confdefs.h. */ 2603 _ACEOF 2604 cat confdefs.h >>conftest.$ac_ext 2605 cat >>conftest.$ac_ext <<_ACEOF 2606 /* end confdefs.h. */ 2607 2608 int main(void) { 2609 return 0; 2610 } 2611 2612 _ACEOF 2613 rm -f conftest$ac_exeext 2614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2615 (eval $ac_link) 2>&5 2616 ac_status=$? 2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2620 (eval $ac_try) 2>&5 2621 ac_status=$? 2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2623 (exit $ac_status); }; }; then 2624 2625 WARNFLAGS="$WARNFLAGS -Wall" 2626 2627 else 2628 echo "$as_me: program exited with status $ac_status" >&5 2629 echo "$as_me: failed program was:" >&5 2630 sed 's/^/| /' conftest.$ac_ext >&5 2631 2632 ( exit $ac_status ) 2633 2634 CFLAGS="$OLD_CFLAGS" 2635 2636 fi 2637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2638 fi 2639 2640 2641 OLD_CFLAGS="$CFLAGS" 2642 CFLAGS="$CFLAGS -Wno-unknown-pragmas" 2643 2644 if test "$cross_compiling" = yes; then 2645 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 2646 See \`config.log' for more details." >&5 2647 echo "$as_me: error: cannot run test program while cross compiling 2648 See \`config.log' for more details." >&2;} 2649 { (exit 1); exit 1; }; } 2650 else 2651 cat >conftest.$ac_ext <<_ACEOF 2652 /* confdefs.h. */ 2653 _ACEOF 2654 cat confdefs.h >>conftest.$ac_ext 2655 cat >>conftest.$ac_ext <<_ACEOF 2656 /* end confdefs.h. */ 2657 2658 int main(void) { 2659 return 0; 2660 } 2661 2662 _ACEOF 2663 rm -f conftest$ac_exeext 2664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2665 (eval $ac_link) 2>&5 2666 ac_status=$? 2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2670 (eval $ac_try) 2>&5 2671 ac_status=$? 2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2673 (exit $ac_status); }; }; then 2674 2675 WARNFLAGS="$WARNFLAGS -Wno-unknown-pragmas" 2676 2677 else 2678 echo "$as_me: program exited with status $ac_status" >&5 2679 echo "$as_me: failed program was:" >&5 2680 sed 's/^/| /' conftest.$ac_ext >&5 2681 2682 ( exit $ac_status ) 2683 2684 CFLAGS="$OLD_CFLAGS" 2685 2686 fi 2687 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2688 fi 2689 2690 2691 OLD_CFLAGS="$CFLAGS" 2692 CFLAGS="$CFLAGS -Wno-unused-parameter" 2693 2694 if test "$cross_compiling" = yes; then 2695 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 2696 See \`config.log' for more details." >&5 2697 echo "$as_me: error: cannot run test program while cross compiling 2698 See \`config.log' for more details." >&2;} 2699 { (exit 1); exit 1; }; } 2700 else 2701 cat >conftest.$ac_ext <<_ACEOF 2702 /* confdefs.h. */ 2703 _ACEOF 2704 cat confdefs.h >>conftest.$ac_ext 2705 cat >>conftest.$ac_ext <<_ACEOF 2706 /* end confdefs.h. */ 2707 2708 int main(void) { 2709 return 0; 2710 } 2711 2712 _ACEOF 2713 rm -f conftest$ac_exeext 2714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2715 (eval $ac_link) 2>&5 2716 ac_status=$? 2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2720 (eval $ac_try) 2>&5 2721 ac_status=$? 2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2723 (exit $ac_status); }; }; then 2724 2725 WARNFLAGS="$WARNFLAGS -Wno-unused-parameter" 2726 2727 else 2728 echo "$as_me: program exited with status $ac_status" >&5 2729 echo "$as_me: failed program was:" >&5 2730 sed 's/^/| /' conftest.$ac_ext >&5 2731 2732 ( exit $ac_status ) 2733 2734 CFLAGS="$OLD_CFLAGS" 2735 2736 fi 2737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2738 fi 2739 2740 2741 OLD_CFLAGS="$CFLAGS" 2742 CFLAGS="$CFLAGS -Wsign-compare" 2743 2744 if test "$cross_compiling" = yes; then 2745 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 2746 See \`config.log' for more details." >&5 2747 echo "$as_me: error: cannot run test program while cross compiling 2748 See \`config.log' for more details." >&2;} 2749 { (exit 1); exit 1; }; } 2750 else 2751 cat >conftest.$ac_ext <<_ACEOF 2752 /* confdefs.h. */ 2753 _ACEOF 2754 cat confdefs.h >>conftest.$ac_ext 2755 cat >>conftest.$ac_ext <<_ACEOF 2756 /* end confdefs.h. */ 2757 2758 int main(void) { 2759 return 0; 2760 } 2761 2762 _ACEOF 2763 rm -f conftest$ac_exeext 2764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2765 (eval $ac_link) 2>&5 2766 ac_status=$? 2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2770 (eval $ac_try) 2>&5 2771 ac_status=$? 2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2773 (exit $ac_status); }; }; then 2774 2775 WARNFLAGS="$WARNFLAGS -Wsign-compare" 2776 2777 else 2778 echo "$as_me: program exited with status $ac_status" >&5 2779 echo "$as_me: failed program was:" >&5 2780 sed 's/^/| /' conftest.$ac_ext >&5 2781 2782 ( exit $ac_status ) 2783 2784 CFLAGS="$OLD_CFLAGS" 2785 2786 fi 2787 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2788 fi 2789 2790 2791 OLD_CFLAGS="$CFLAGS" 2792 CFLAGS="$CFLAGS -Wstrict-prototypes" 2793 2794 if test "$cross_compiling" = yes; then 2795 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 2796 See \`config.log' for more details." >&5 2797 echo "$as_me: error: cannot run test program while cross compiling 2798 See \`config.log' for more details." >&2;} 2799 { (exit 1); exit 1; }; } 2800 else 2801 cat >conftest.$ac_ext <<_ACEOF 2802 /* confdefs.h. */ 2803 _ACEOF 2804 cat confdefs.h >>conftest.$ac_ext 2805 cat >>conftest.$ac_ext <<_ACEOF 2806 /* end confdefs.h. */ 2807 2808 int main(void) { 2809 return 0; 2810 } 2811 2812 _ACEOF 2813 rm -f conftest$ac_exeext 2814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2815 (eval $ac_link) 2>&5 2816 ac_status=$? 2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2820 (eval $ac_try) 2>&5 2821 ac_status=$? 2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2823 (exit $ac_status); }; }; then 2824 2825 WARNFLAGS="$WARNFLAGS -Wstrict-prototypes" 2826 2827 else 2828 echo "$as_me: program exited with status $ac_status" >&5 2829 echo "$as_me: failed program was:" >&5 2830 sed 's/^/| /' conftest.$ac_ext >&5 2831 2832 ( exit $ac_status ) 2833 2834 CFLAGS="$OLD_CFLAGS" 2835 2836 fi 2837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2838 fi 2839 2840 2841 OLD_CFLAGS="$CFLAGS" 2842 CFLAGS="$CFLAGS -Wmissing-prototypes" 2843 2844 if test "$cross_compiling" = yes; then 2845 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 2846 See \`config.log' for more details." >&5 2847 echo "$as_me: error: cannot run test program while cross compiling 2848 See \`config.log' for more details." >&2;} 2849 { (exit 1); exit 1; }; } 2850 else 2851 cat >conftest.$ac_ext <<_ACEOF 2852 /* confdefs.h. */ 2853 _ACEOF 2854 cat confdefs.h >>conftest.$ac_ext 2855 cat >>conftest.$ac_ext <<_ACEOF 2856 /* end confdefs.h. */ 2857 2858 int main(void) { 2859 return 0; 2860 } 2861 2862 _ACEOF 2863 rm -f conftest$ac_exeext 2864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2865 (eval $ac_link) 2>&5 2866 ac_status=$? 2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2870 (eval $ac_try) 2>&5 2871 ac_status=$? 2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2873 (exit $ac_status); }; }; then 2874 2875 WARNFLAGS="$WARNFLAGS -Wmissing-prototypes" 2876 2877 else 2878 echo "$as_me: program exited with status $ac_status" >&5 2879 echo "$as_me: failed program was:" >&5 2880 sed 's/^/| /' conftest.$ac_ext >&5 2881 2882 ( exit $ac_status ) 2883 2884 CFLAGS="$OLD_CFLAGS" 2885 2886 fi 2887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2888 fi 2889 2890 2891 OLD_CFLAGS="$CFLAGS" 2892 CFLAGS="$CFLAGS -Wmissing-declarations" 2893 2894 if test "$cross_compiling" = yes; then 2895 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 2896 See \`config.log' for more details." >&5 2897 echo "$as_me: error: cannot run test program while cross compiling 2898 See \`config.log' for more details." >&2;} 2899 { (exit 1); exit 1; }; } 2900 else 2901 cat >conftest.$ac_ext <<_ACEOF 2902 /* confdefs.h. */ 2903 _ACEOF 2904 cat confdefs.h >>conftest.$ac_ext 2905 cat >>conftest.$ac_ext <<_ACEOF 2906 /* end confdefs.h. */ 2907 2908 int main(void) { 2909 return 0; 2910 } 2911 2912 _ACEOF 2913 rm -f conftest$ac_exeext 2914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2915 (eval $ac_link) 2>&5 2916 ac_status=$? 2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2920 (eval $ac_try) 2>&5 2921 ac_status=$? 2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2923 (exit $ac_status); }; }; then 2924 2925 WARNFLAGS="$WARNFLAGS -Wmissing-declarations" 2926 2927 else 2928 echo "$as_me: program exited with status $ac_status" >&5 2929 echo "$as_me: failed program was:" >&5 2930 sed 's/^/| /' conftest.$ac_ext >&5 2931 2932 ( exit $ac_status ) 2933 2934 CFLAGS="$OLD_CFLAGS" 2935 2936 fi 2937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2938 fi 2939 2940 2941 OLD_CFLAGS="$CFLAGS" 2942 CFLAGS="$CFLAGS -Wredundant-decls" 2943 2944 if test "$cross_compiling" = yes; then 2945 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 2946 See \`config.log' for more details." >&5 2947 echo "$as_me: error: cannot run test program while cross compiling 2948 See \`config.log' for more details." >&2;} 2949 { (exit 1); exit 1; }; } 2950 else 2951 cat >conftest.$ac_ext <<_ACEOF 2952 /* confdefs.h. */ 2953 _ACEOF 2954 cat confdefs.h >>conftest.$ac_ext 2955 cat >>conftest.$ac_ext <<_ACEOF 2956 /* end confdefs.h. */ 2957 2958 int main(void) { 2959 return 0; 2960 } 2961 2962 _ACEOF 2963 rm -f conftest$ac_exeext 2964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2965 (eval $ac_link) 2>&5 2966 ac_status=$? 2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2970 (eval $ac_try) 2>&5 2971 ac_status=$? 2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2973 (exit $ac_status); }; }; then 2974 2975 WARNFLAGS="$WARNFLAGS -Wredundant-decls" 2976 2977 else 2978 echo "$as_me: program exited with status $ac_status" >&5 2979 echo "$as_me: failed program was:" >&5 2980 sed 's/^/| /' conftest.$ac_ext >&5 2981 2982 ( exit $ac_status ) 2983 2984 CFLAGS="$OLD_CFLAGS" 2985 2986 fi 2987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2988 fi 2989 2990 2991 echo "$as_me:$LINENO: result: $WARNFLAGS" >&5 2992 echo "${ECHO_T}$WARNFLAGS" >&6 2993 else 2994 echo "$as_me:$LINENO: result: none" >&5 2995 echo "${ECHO_T}none" >&6 2486 2996 fi 2487 2997 … … 2534 3044 2535 3045 # Check for glibc (Linux) 2536 2537 3046 ac_ext=c 2538 3047 ac_cpp='$CPP $CPPFLAGS' … … 3960 4469 If you installed OpenSSL into a non-standard directory, please run: 3961 4470 3962 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&54471 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 3963 4472 echo "$as_me: error: could not locate OpenSSL 3964 4473 3965 4474 If you installed OpenSSL into a non-standard directory, please run: 3966 4475 3967 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}4476 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 3968 4477 { (exit 1); exit 1; }; } 3969 4478 … … 3979 4488 If you installed OpenSSL into a non-standard directory, please run: 3980 4489 3981 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&54490 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 3982 4491 echo "$as_me: error: could not locate OpenSSL 3983 4492 3984 4493 If you installed OpenSSL into a non-standard directory, please run: 3985 4494 3986 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}4495 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 3987 4496 { (exit 1); exit 1; }; } 3988 4497 … … 4210 4719 If you installed OpenSSL into a non-standard directory, please run: 4211 4720 4212 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&54721 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 4213 4722 echo "$as_me: error: could not locate OpenSSL 4214 4723 4215 4724 If you installed OpenSSL into a non-standard directory, please run: 4216 4725 4217 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}4726 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 4218 4727 { (exit 1); exit 1; }; } 4219 4728 … … 4229 4738 If you installed OpenSSL into a non-standard directory, please run: 4230 4739 4231 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&54740 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 4232 4741 echo "$as_me: error: could not locate OpenSSL 4233 4742 4234 4743 If you installed OpenSSL into a non-standard directory, please run: 4235 4744 4236 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}4745 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 4237 4746 { (exit 1); exit 1; }; } 4238 4747 … … 4554 5063 If you installed iconv into a non-standard directory, please run: 4555 5064 4556 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&55065 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 4557 5066 echo "$as_me: error: could not locate iconv 4558 5067 4559 5068 If you installed iconv into a non-standard directory, please run: 4560 5069 4561 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}5070 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 4562 5071 { (exit 1); exit 1; }; } 4563 5072 … … 4576 5085 If you installed iconv into a non-standard directory, please run: 4577 5086 4578 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&55087 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 4579 5088 echo "$as_me: error: could not locate iconv 4580 5089 4581 5090 If you installed iconv into a non-standard directory, please run: 4582 5091 4583 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}5092 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 4584 5093 { (exit 1); exit 1; }; } 4585 5094 … … 5470 5979 If you installed readline into a non-standard directory, please run: 5471 5980 5472 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&55981 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 5473 5982 echo "$as_me: error: could not locate readline 5474 5983 5475 5984 If you installed readline into a non-standard directory, please run: 5476 5985 5477 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}5986 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 5478 5987 { (exit 1); exit 1; }; } 5479 5988 … … 5489 5998 If you installed readline into a non-standard directory, please run: 5490 5999 5491 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&56000 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 5492 6001 echo "$as_me: error: could not locate readline 5493 6002 5494 6003 If you installed readline into a non-standard directory, please run: 5495 6004 5496 envCPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}6005 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 5497 6006 { (exit 1); exit 1; }; } 5498 6007 … … 6032 6541 6033 6542 6543 6034 6544 for ac_header in \ 6545 sys/vfs.h \ 6035 6546 termcap.h \ 6036 6547 termios.h \ … … 6742 7253 ac_config_files="$ac_config_files wire/Makefile" 6743 7254 7255 7256 # Configure libzanka 7257 ac_configure_args="$ac_configure_args --enable-ssl --enable-termcap --enable-iconv" 6744 7258 6745 7259 … … 8052 8566 fi 8053 8567 8568 8569 8570 ####################################################################### 8571 # Print summary 8572 8573 A=$(eval echo ${bindir}); A=$(eval echo ${A}) 8574 B=$(eval echo ${mandir}); B=$(eval echo ${B}) 8575 8576 echo "" 8577 echo "wire has been configured with the following options:" 8578 8579 echo "" 8580 echo " Binary: ${A}/wire" 8581 echo " Manual page: ${B}/man1/wire.1" 8582 8583 echo "" 8584 echo " Host: ${host}" 8585 echo " Compiler: ${CC}" 8586 echo " Compiler flags: ${CFLAGS}" 8587 echo " Preprocessor flags: ${CPPFLAGS}" 8588 echo " Linker flags: ${LDFLAGS}" 8589 echo " Libraries: ${LIBS}" 8590 8591 echo "" wire/trunk/configure.in
r2865 r3237 23 23 If you installed $1 into a non-standard directory, please run: 24 24 25 envCPPFLAGS="-I/path/to/include" LDFLAGS="-L/path/to/lib" ./configure])25 CPPFLAGS="-I/path/to/include" LDFLAGS="-L/path/to/lib" ./configure]) 26 26 ]) 27 27 … … 45 45 46 46 # Check for warnings 47 AC_MSG_CHECKING([for warning flags]) 47 48 AC_ARG_ENABLE([warnings], AC_HELP_STRING([--enable-warnings], [enable warnings])) 48 49 50 AC_DEFUN([WR_WARNING_TRY], [ 51 OLD_CFLAGS="$CFLAGS" 52 CFLAGS="$CFLAGS $1" 53 54 AC_TRY_RUN([ 55 int main(void) { 56 return 0; 57 } 58 ], [ 59 WARNFLAGS="$WARNFLAGS $1" 60 ], [ 61 CFLAGS="$OLD_CFLAGS" 62 ]) 63 ]) 64 49 65 if test -n "$enable_warnings"; then 50 CFLAGS="$CFLAGS -W -Wall -Wno-unknown-pragmas -Wno-unused-parameter -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls" 66 WR_WARNING_TRY([-W]) 67 WR_WARNING_TRY([-Wall]) 68 WR_WARNING_TRY([-Wno-unknown-pragmas]) 69 WR_WARNING_TRY([-Wno-unused-parameter]) 70 WR_WARNING_TRY([-Wsign-compare]) 71 WR_WARNING_TRY([-Wstrict-prototypes]) 72 WR_WARNING_TRY([-Wmissing-prototypes]) 73 WR_WARNING_TRY([-Wmissing-declarations]) 74 WR_WARNING_TRY([-Wredundant-decls]) 75 76 AC_MSG_RESULT([$WARNFLAGS]) 77 else 78 AC_MSG_RESULT([none]) 51 79 fi 52 80 … … 263 291 264 292 AC_CHECK_HEADERS([ \ 293 sys/vfs.h \ 265 294 termcap.h \ 266 295 termios.h \ … … 285 314 AC_CONFIG_FILES([Makefile]) 286 315 AC_CONFIG_FILES([wire/Makefile]) 316 317 # Configure libzanka 318 ac_configure_args="$ac_configure_args --enable-ssl --enable-termcap --enable-iconv" 287 319 AC_CONFIG_SUBDIRS([libzanka]) 288 320 289 321 AC_OUTPUT 322 323 324 ####################################################################### 325 # Print summary 326 327 A=$(eval echo ${bindir}); A=$(eval echo ${A}) 328 B=$(eval echo ${mandir}); B=$(eval echo ${B}) 329 330 echo "" 331 echo "wire has been configured with the following options:" 332 333 echo "" 334 echo " Binary: ${A}/wire" 335 echo " Manual page: ${B}/man1/wire.1" 336 337 echo "" 338 echo " Host: ${host}" 339 echo " Compiler: ${CC}" 340 echo " Compiler flags: ${CFLAGS}" 341 echo " Preprocessor flags: ${CPPFLAGS}" 342 echo " Linker flags: ${LDFLAGS}" 343 echo " Libraries: ${LIBS}" 344 345 echo "" wire/trunk/man/wire.1
r1665 r3237 25 25 .\" USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 26 .\" 27 .Dd Dec 18, 200427 .Dd Oct 28, 2005 28 28 .Dt WIRE 1 29 29 .Os … … 57 57 .Nm wire 58 58 will log extra debug messages to the chat window. 59 .It Fl c Ar charset60 Sets the character set that61 .Nm wire62 will convert all text from the server to. This string is passed directly to the63 .Xr iconv 364 character conversion system. The default value is65 .Sq ISO-8859-1 .66 59 .It Fl h 67 60 Displays a brief help message and exits. … … 77 70 for next. The 78 71 .Nm close 79 command closes the current window . Note that closing the main window is the same as exiting the program.72 command closes the current window, or, if in the main window, disconnects from the server. 80 73 .Sh COMMANDS 81 74 The following commands can be given to … … 101 94 .Pp 102 95 Example: /clear 96 .It Nm charset Ar charset 97 Sets the character set that 98 .Nm wire 99 will convert all text from the server to. This string is passed directly to the 100 .Xr iconv 3 101 character conversion system. The default value is 102 .Sq ISO-8859-1 . 103 .Pp 104 Example: /charset UTF-8 103 105 .It Nm clearnews 104 106 Clear the news. wire/trunk/wire/Makefile.in
r2865 r3237 7 7 top_srcdir = @top_srcdir@ 8 8 9 OBJECTS = client.o commands.o files.o ignores.o main.o term .o transfers.o \9 OBJECTS = client.o commands.o files.o ignores.o main.o terminal.o transfers.o \ 10 10 users.o version.o windows.o 11 HEADERS = client.h commands.h files.h ignores.h main.h term .h transfers.h \11 HEADERS = client.h commands.h files.h ignores.h main.h terminal.h transfers.h \ 12 12 users.h version.h windows.h 13 13 wire/trunk/wire/client.c
r3153 r3237 29 29 #include "config.h" 30 30 31 #include <sys/types.h>32 #include <sys/param.h>33 #include <sys/time.h>34 #include <stdio.h>35 #include <stdlib.h>36 31 #include <string.h> 37 #include <unistd.h>38 #include <ctype.h>39 32 #include <errno.h> 40 #include <fcntl.h>41 #include <sys/socket.h>42 #include <netinet/in.h>43 #include <netinet/tcp.h>44 #include <arpa/inet.h>45 #include <netdb.h>46 #include <openssl/err.h>47 #include <openssl/sha.h>48 #include <openssl/ssl.h>49 #include <readline/readline.h>50 33 #include <zanka/zanka.h> 51 34 … … 60 43 #include "windows.h" 61 44 62 static void wr_msg_200(za_array_t *); 63 static void wr_msg_201(za_array_t *); 64 static void wr_msg_300(za_array_t *); 65 static void wr_msg_301(za_array_t *); 66 static void wr_msg_302(za_array_t *); 67 static void wr_msg_303(za_array_t *); 68 static void wr_msg_304(za_array_t *); 69 static void wr_msg_305(za_array_t *); 70 static void wr_msg_306(za_array_t *); 71 static void wr_msg_307(za_array_t *); 72 static void wr_msg_308(za_array_t *); 73 static void wr_msg_309(za_array_t *); 74 static void wr_msg_310(za_array_t *); 75 static void wr_msg_311(za_array_t *); 76 static void wr_msg_320(za_array_t *); 77 static void wr_msg_321(za_array_t *); 78 static void wr_msg_322(za_array_t *); 79 static void wr_msg_331(za_array_t *); 80 static void wr_msg_341(za_array_t *); 81 static void wr_msg_400(za_array_t *); 82 static void wr_msg_401(za_array_t *); 83 static void wr_msg_402(za_array_t *); 84 static void wr_msg_410(za_array_t *); 85 static void wr_msg_411(za_array_t *); 86 static void wr_msg_420(za_array_t *); 87 static void wr_msg_421(za_array_t *); 88 89 90 char wr_host[MAXHOSTNAMELEN]; 91 int wr_port; 92 char wr_server[WR_SERVER_SIZE]; 93 double wr_protocol; 94 char wr_nick[WR_NICK_SIZE]; 95 char wr_status[WR_STATUS_SIZE]; 96 char wr_login[WR_LOGIN_SIZE]; 97 char wr_password[WR_PASSWORD_SIZE]; 98 char wr_password_sha[ZA_SHA1_SIZE]; 99 100 static const char wr_icon[] = 45 static int wr_runloop_server_callback(za_socket_t *); 46 47 static int wr_parse_message(const char *); 48 49 static void wr_msg_200(za_array_t *); 50 static void wr_msg_201(za_array_t *); 51 static void wr_msg_300(za_array_t *); 52 static void wr_msg_301(za_array_t *); 53 static void wr_msg_302(za_array_t *); 54 static void wr_msg_303(za_array_t *); 55 static void wr_msg_304(za_array_t *); 56 static void wr_msg_305(za_array_t *); 57 static void wr_msg_306(za_array_t *); 58 static void wr_msg_307(za_array_t *); 59 static void wr_msg_308(za_array_t *); 60 static void wr_msg_309(za_array_t *); 61 static void wr_msg_310(za_array_t *); 62 static void wr_msg_311(za_array_t *); 63 static void wr_msg_320(za_array_t *); 64 static void wr_msg_321(za_array_t *); 65 static void wr_msg_322(za_array_t *); 66 static void wr_msg_331(za_array_t *); 67 static void wr_msg_341(za_array_t *); 68 static void wr_msg_400(za_array_t *); 69 static void wr_msg_401(za_array_t *); 70 static void wr_msg_402(za_array_t *); 71 static void wr_msg_410(za_array_t *); 72 static void wr_msg_411(za_array_t *); 73 static void wr_msg_420(za_array_t *); 74 static void wr_msg_421(za_array_t *); 75 76 77 static char *wr_buffer; 78 static unsigned int wr_buffer_size; 79 static unsigned int wr_buffer_offset; 80 81 za_string_encoding_t *wr_client_string_encoding; 82 za_string_encoding_t *wr_server_string_encoding; 83 84 za_string_t *wr_host; 85 unsigned int wr_port; 86 87 za_string_t *wr_server; 88 double wr_protocol; 89 90 za_string_t *wr_nick; 91 za_string_t *wr_status; 92 za_string_t *wr_login; 93 za_string_t
