-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
127 lines (119 loc) · 3.46 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([cmdg], [0.0])
AC_CONFIG_SRCDIR([src/cmdg.cpp])
AM_INIT_AUTOMAKE([subdir-objects foreign])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# Checks for libraries.
ifdef([AM_PATH_GTK_2_0],[AM_PATH_GTK_2_0([2.0.0], [gtk=2], [])],
[AC_WARNING([generating configure script without GTK 2 autodetection])])
if test ! -f src/Makefile.am~pts-mode ; then
echo -e '\033@<:@1;32mpts-mode\033@<:@0m.'
else
codes_are_enough=no
test -f src/aes.cpp && test -f src/sha1.cpp && test -f src/sha2.cpp && codes_are_enough=yes
if test ! xyes = x"$codes_are_enough" ; then
echo -e '\033@<:@1;31mWARNING\033@<:@0m:'
echo -e 'In this version, original aes.cpp sha1.cpp sha2.cpp is \033@<:@1;31mnot implemented\033@<:@0m.'
echo -e "Please build pts-mode by \033@<:@1;31m'./toggle-Makefile.am.sh' script\033@<:@0m, or"
echo -e '\033@<:@1;31mprepare aes.cpp sha1.cpp sha2.cpp\033@<:@0m fitting to aes.hpp sha1.hpp sha2.hpp'
echo -e 'interface.'
echo -e 'It is hard to upload temporarily implements calling present AES SHA'
echo -e 'libraries \033@<:@1;31mfor keeping MIT-license\033@<:@0m, because most of these libraries'
echo -e 'seem to choose licence other than MIT-license.'
exit
fi
fi
# Checks for header files.
AC_FUNC_ALLOCA
AC_CHECK_HEADERS([arpa/inet.h fcntl.h malloc.h memory.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/time.h termios.h unistd.h wchar.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_MODE_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_REALLOC
TARGET='
gdk_cairo_create
gdk_cairo_set_source_pixbuf
gdk_cairo_set_source_color
gdk_cairo_rectangle
gdk_draw_layout
gdk_gc_set_foreground
gdk_pixbuf_new_from_data
gdk_threads_add_timeout
cairo_destroy
cairo_fill
cairo_paint
pango_layout_new
pango_layout_set_font_description
pango_layout_set_text
pango_layout_set_attributes
pango_attr_list_unref
pango_attr_list_new
pango_attr_list_insert
pango_attr_background_new
pango_font_description_free
pango_font_description_from_string
pango_font_metrics_unref
pango_font_metrics_get_approximate_digit_width
pango_font_metrics_get_ascent
pango_font_metrics_get_descent
g_idle_add
g_object_unref
g_object_get_qdata
g_object_set_qdata
g_signal_connect
gtk_init
gtk_main_quit
gtk_widget_destroy
gtk_widget_get_pango_context
gtk_widget_get_parent
gtk_widget_get_window
gtk_widget_modify_bg
gtk_widget_modify_font
gtk_widget_set_size_request
gtk_widget_show
gtk_widget_show_all
gtk_window_new
gtk_window_set_geometory_hints
gtk_window_set_policy
gtk_accel_group_new
gtk_box_pack_end
gtk_box_pack_start
gtk_container_add
gtk_container_get_children
gtk_drawing_area_new
gtk_hbox_new
gtk_item_factory_new
gtk_item_factory_create_items
gtk_item_factory_get_widget
gtk_image_new_from_stock
gtk_label_new
gtk_notebook_new
gtk_notebook_append_page
gtk_notebook_get_current_page
gtk_notebook_get_nth_page
gtk_notebook_popup_enable
gtk_notebook_set_scrollable
gtk_notebook_set_show_border
gtk_notebook_set_tab_pos
gtk_vbox_new
'
AC_CHECK_FUNCS([dup2 gettimeofday memchr memmove memset mkdir socket strchr strcspn strdup strerror strspn strtoul wcwidth $TARGET])
AC_CONFIG_FILES([Makefile
src/Makefile])
AC_OUTPUT