Changeset 4522
- Timestamp:
- 02/07/07 23:11:23 (1 year ago)
- Files:
-
- wire/trunk/configure (modified) (57 diffs)
- wire/trunk/configure.in (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wire/trunk/configure
r4491 r4522 1322 1322 1323 1323 1324 # Include shared macros 1325 # config.m4 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1324 1375 # Get host 1325 1376 ac_aux_dir= … … 1422 1473 # These are used in the Makefile 1423 1474 WR_VERSION=1.1.2 1424 1425 1426 # These are used in configure.in1427 1428 1429 1475 1430 1476 … … 2485 2531 fi; 2486 2532 2487 2488 2489 2533 if test -n "$enable_warnings"; then 2490 2534 … … 2969 3013 # Checks for additional paths 2970 3014 2971 # Check if we need /usr/local/{include,lib}/ 2972 if test -d /usr/local/include; then 2973 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 2974 fi 2975 2976 if test -d /usr/local/lib; then 2977 LDFLAGS="$LDFLAGS -L/usr/local/lib" 2978 fi 2979 2980 2981 # Check if we need /usr/local/ssl/{include,lib}/ 2982 if test -d /usr/local/ssl/include; then 2983 CPPFLAGS="$CPPFLAGS -I/usr/local/ssl/include" 2984 fi 2985 2986 if test -d /usr/local/ssl/lib; then 2987 LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib" 2988 fi 2989 2990 2991 # Check if we need /usr/kerberos/include 2992 if test -d /usr/kerberos/include; then 2993 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" 2994 fi 3015 3016 if test -d /usr/local/include; then 3017 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 3018 fi 3019 3020 if test -d /usr/local/ssl/include; then 3021 CPPFLAGS="$CPPFLAGS -I/usr/local/ssl/include" 3022 fi 3023 3024 if test -d /usr/kerberos/include; then 3025 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" 3026 fi 3027 3028 3029 if test -d /usr/local/lib; then 3030 LDFLAGS="$LDFLAGS -L/usr/local/lib" 3031 fi 3032 3033 if test -d /usr/local/ssl/lib; then 3034 LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib" 3035 fi 3036 2995 3037 2996 3038 … … 2998 3040 # Checks for libraries 2999 3041 3000 # Check that we have a libwired in this directory 3001 if ! test -f "$srcdir/libwired/configure"; then 3002 3003 { { echo "$as_me:$LINENO: error: could not locate libwired 3042 3043 if ! test -f "$srcdir/libwired/configure"; then 3044 { { echo "$as_me:$LINENO: error: could not locate libwired 3004 3045 3005 3046 You need to download a version of libwired and place it in the same directory as this configure script" >&5 … … 3008 3049 You need to download a version of libwired and place it in the same directory as this configure script" >&2;} 3009 3050 { (exit 1); exit 1; }; } 3010 3011 fi 3012 3013 3014 # Check if we need the math library 3015 echo "$as_me:$LINENO: checking for pow" >&5 3051 fi 3052 3053 3054 echo "$as_me:$LINENO: checking for pow" >&5 3016 3055 echo $ECHO_N "checking for pow... $ECHO_C" >&6 3017 3056 if test "${ac_cv_func_pow+set}" = set; then … … 3107 3146 else 3108 3147 3109 echo "$as_me:$LINENO: checking for sqrt in -lm" >&53148 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 3110 3149 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 3111 3150 if test "${ac_cv_lib_m_sqrt+set}" = set; then … … 3173 3212 if test $ac_cv_lib_m_sqrt = yes; then 3174 3213 3175 LIBS="$LIBS -lm" 3176 3177 fi 3178 3179 3180 fi 3181 3182 3183 3184 # Check if we need the socket library 3185 echo "$as_me:$LINENO: checking for setsockopt" >&5 3214 LIBS="$LIBS -lm" 3215 3216 fi 3217 3218 3219 fi 3220 3221 3222 3223 echo "$as_me:$LINENO: checking for setsockopt" >&5 3186 3224 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 3187 3225 if test "${ac_cv_func_setsockopt+set}" = set; then … … 3277 3315 else 3278 3316 3279 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&53317 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 3280 3318 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 3281 3319 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then … … 3343 3381 if test $ac_cv_lib_socket_setsockopt = yes; then 3344 3382 3345 LIBS="$LIBS -lsocket" 3346 3347 fi 3348 3349 3350 fi 3351 3352 3353 3354 # Check if we need the network services library 3355 echo "$as_me:$LINENO: checking for gethostent" >&5 3383 LIBS="$LIBS -lsocket" 3384 3385 fi 3386 3387 3388 fi 3389 3390 3391 3392 echo "$as_me:$LINENO: checking for gethostent" >&5 3356 3393 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6 3357 3394 if test "${ac_cv_func_gethostent+set}" = set; then … … 3447 3484 else 3448 3485 3449 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&53486 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5 3450 3487 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6 3451 3488 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then … … 3513 3550 if test $ac_cv_lib_nsl_gethostent = yes; then 3514 3551 3515 LIBS="$LIBS -lnsl" 3516 3517 fi 3518 3519 3520 fi 3521 3522 3523 3524 # Check if we need the resolve services library 3525 echo "$as_me:$LINENO: checking for inet_aton" >&5 3552 LIBS="$LIBS -lnsl" 3553 3554 fi 3555 3556 3557 fi 3558 3559 3560 3561 echo "$as_me:$LINENO: checking for inet_aton" >&5 3526 3562 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 3527 3563 if test "${ac_cv_func_inet_aton+set}" = set; then … … 3617 3653 else 3618 3654 3619 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&53655 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 3620 3656 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 3621 3657 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then … … 3683 3719 if test $ac_cv_lib_resolv_inet_aton = yes; then 3684 3720 3685 LIBS="$LIBS -lresolv" 3686 3687 fi 3688 3689 3690 fi 3691 3692 3693 3694 # Check for the OpenSSL crypto library 3721 LIBS="$LIBS -lresolv" 3722 3723 fi 3724 3725 3726 fi 3727 3728 3695 3729 ac_ext=c 3696 3730 ac_cpp='$CPP $CPPFLAGS' … … 4179 4213 4180 4214 done 4215 4181 4216 4182 4217 … … 4327 4362 _ACEOF 4328 4363 4329 echo "$as_me:$LINENO: checking for MD5_Init in -lcrypto" >&54364 echo "$as_me:$LINENO: checking for MD5_Init in -lcrypto" >&5 4330 4365 echo $ECHO_N "checking for MD5_Init in -lcrypto... $ECHO_C" >&6 4331 4366 if test "${ac_cv_lib_crypto_MD5_Init+set}" = set; then … … 4393 4428 if test $ac_cv_lib_crypto_MD5_Init = yes; then 4394 4429 4395 LIBS="$LIBS -lcrypto"4430 LIBS="$LIBS -lcrypto" 4396 4431 4397 4432 else … … 4402 4437 If you installed OpenSSL into a non-standard directory, please run: 4403 4438 4404 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&54439 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 4405 4440 echo "$as_me: error: could not locate OpenSSL 4406 4441 4407 4442 If you installed OpenSSL into a non-standard directory, please run: 4408 4443 4409 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}4444 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 4410 4445 { (exit 1); exit 1; }; } 4411 4446 … … 4421 4456 If you installed OpenSSL into a non-standard directory, please run: 4422 4457 4423 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&54458 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 4424 4459 echo "$as_me: error: could not locate OpenSSL 4425 4460 4426 4461 If you installed OpenSSL into a non-standard directory, please run: 4427 4462 4428 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}4463 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 4429 4464 { (exit 1); exit 1; }; } 4430 4465 … … 4436 4471 4437 4472 4438 # Check for the OpenSSL ssl library4439 4473 4440 4474 for ac_header in openssl/ssl.h … … 4583 4617 _ACEOF 4584 4618 4585 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&54619 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 4586 4620 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6 4587 4621 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then … … 4649 4683 if test $ac_cv_lib_ssl_SSL_library_init = yes; then 4650 4684 4651 LIBS="$LIBS -lssl"4685 LIBS="$LIBS -lssl" 4652 4686 4653 4687 else … … 4658 4692 If you installed OpenSSL into a non-standard directory, please run: 4659 4693 4660 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&54694 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 4661 4695 echo "$as_me: error: could not locate OpenSSL 4662 4696 4663 4697 If you installed OpenSSL into a non-standard directory, please run: 4664 4698 4665 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}4699 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 4666 4700 { (exit 1); exit 1; }; } 4667 4701 … … 4677 4711 If you installed OpenSSL into a non-standard directory, please run: 4678 4712 4679 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&54713 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 4680 4714 echo "$as_me: error: could not locate OpenSSL 4681 4715 4682 4716 If you installed OpenSSL into a non-standard directory, please run: 4683 4717 4684 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}4718 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 4685 4719 { (exit 1); exit 1; }; } 4686 4720 … … 4692 4726 4693 4727 4694 # Check for the iconv library4695 4728 4696 4729 for ac_header in iconv.h … … 4839 4872 _ACEOF 4840 4873 4841 echo "$as_me:$LINENO: checking for iconv in -liconv" >&54874 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5 4842 4875 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6 4843 4876 if test "${ac_cv_lib_iconv_iconv+set}" = set; then … … 4905 4938 if test $ac_cv_lib_iconv_iconv = yes; then 4906 4939 4907 LIBS="$LIBS -liconv"4908 4909 else 4910 4911 echo "$as_me:$LINENO: checking for libiconv in -liconv" >&54940 LIBS="$LIBS -liconv" 4941 4942 else 4943 4944 echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5 4912 4945 echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6 4913 4946 if test "${ac_cv_lib_iconv_libiconv+set}" = set; then … … 4975 5008 if test $ac_cv_lib_iconv_libiconv = yes; then 4976 5009 4977 LIBS="$LIBS -liconv"4978 4979 else 4980 4981 echo "$as_me:$LINENO: checking for iconv" >&55010 LIBS="$LIBS -liconv" 5011 5012 else 5013 5014 echo "$as_me:$LINENO: checking for iconv" >&5 4982 5015 echo $ECHO_N "checking for iconv... $ECHO_C" >&6 4983 5016 if test "${ac_cv_func_iconv+set}" = set; then … … 5078 5111 If you installed iconv into a non-standard directory, please run: 5079 5112 5080 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&55113 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 5081 5114 echo "$as_me: error: could not locate iconv 5082 5115 5083 5116 If you installed iconv into a non-standard directory, please run: 5084 5117 5085 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}5118 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 5086 5119 { (exit 1); exit 1; }; } 5087 5120 … … 5103 5136 If you installed iconv into a non-standard directory, please run: 5104 5137 5105 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&55138 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 5106 5139 echo "$as_me: error: could not locate iconv 5107 5140 5108 5141 If you installed iconv into a non-standard directory, please run: 5109 5142 5110 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}5143 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 5111 5144 { (exit 1); exit 1; }; } 5112 5145 … … 5117 5150 5118 5151 5119 echo "$as_me:$LINENO: checking if iconv understands Unicode" >&55152 echo "$as_me:$LINENO: checking if iconv understands Unicode" >&5 5120 5153 echo $ECHO_N "checking if iconv understands Unicode... $ECHO_C" >&6 5121 if test "$cross_compiling" = yes; then5154 if test "$cross_compiling" = yes; then 5122 5155 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5123 5156 See \`config.log' for more details." >&5 … … 5128 5161 cat >conftest.$ac_ext <<_ACEOF 5129 5162 5130 #include <iconv.h>5131 int main(void) {5132 iconv_t conv = iconv_open("UTF-8", "UTF-16");5133 if(conv == (iconv_t) -1)5134 return 1;5135 return 0;5136 }5163 #include <iconv.h> 5164 int main(void) { 5165 iconv_t conv = iconv_open("UTF-8", "UTF-16"); 5166 if(conv == (iconv_t) -1) 5167 return 1; 5168 return 0; 5169 } 5137 5170 5138 5171 _ACEOF … … 5149 5182 (exit $ac_status); }; }; then 5150 5183 5151 echo "$as_me:$LINENO: result: yes" >&55184 echo "$as_me:$LINENO: result: yes" >&5 5152 5185 echo "${ECHO_T}yes" >&6 5153 5186 … … 5159 5192 ( exit $ac_status ) 5160 5193 5161 { { echo "$as_me:$LINENO: error: no" >&55194 { { echo "$as_me:$LINENO: error: no" >&5 5162 5195 echo "$as_me: error: no" >&2;} 5163 5196 { (exit 1); exit 1; }; } … … 5168 5201 5169 5202 5170 # Check for the termcap library5171 5203 5172 5204 for ac_header in term.h … … 5315 5347 _ACEOF 5316 5348 5317 echo "$as_me:$LINENO: checking for tgoto" >&55349 echo "$as_me:$LINENO: checking for tgoto" >&5 5318 5350 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6 5319 5351 if test "${ac_cv_func_tgoto+set}" = set; then … … 5409 5441 else 5410 5442 5411 echo "$as_me:$LINENO: checking for tgoto in -ltermcap" >&55443 echo "$as_me:$LINENO: checking for tgoto in -ltermcap" >&5 5412 5444 echo $ECHO_N "checking for tgoto in -ltermcap... $ECHO_C" >&6 5413 5445 if test "${ac_cv_lib_termcap_tgoto+set}" = set; then … … 5475 5507 if test $ac_cv_lib_termcap_tgoto = yes; then 5476 5508 5477 LIBS="$LIBS -ltermcap"5478 5479 else 5480 5481 echo "$as_me:$LINENO: checking for tgoto in -lncurses" >&55509 LIBS="$LIBS -ltermcap" 5510 5511 else 5512 5513 echo "$as_me:$LINENO: checking for tgoto in -lncurses" >&5 5482 5514 echo $ECHO_N "checking for tgoto in -lncurses... $ECHO_C" >&6 5483 5515 if test "${ac_cv_lib_ncurses_tgoto+set}" = set; then … … 5545 5577 if test $ac_cv_lib_ncurses_tgoto = yes; then 5546 5578 5547 LIBS="$LIBS -lncurses"5548 5549 else 5550 5551 echo "$as_me:$LINENO: checking for tgoto in -lcurses" >&55579 LIBS="$LIBS -lncurses" 5580 5581 else 5582 5583 echo "$as_me:$LINENO: checking for tgoto in -lcurses" >&5 5552 5584 echo $ECHO_N "checking for tgoto in -lcurses... $ECHO_C" >&6 5553 5585 if test "${ac_cv_lib_curses_tgoto+set}" = set; then … … 5615 5647 if test $ac_cv_lib_curses_tgoto = yes; then 5616 5648 5617 LIBS="$LIBS -lcurses"5649 LIBS="$LIBS -lcurses" 5618 5650 5619 5651 fi … … 5635 5667 5636 5668 5637 # Check for the readline library5638 5669 5639 5670 for ac_header in readline/readline.h … … 5782 5813 _ACEOF 5783 5814 5784 echo "$as_me:$LINENO: checking for rl_initialize in -lreadline" >&55815 echo "$as_me:$LINENO: checking for rl_initialize in -lreadline" >&5 5785 5816 echo $ECHO_N "checking for rl_initialize in -lreadline... $ECHO_C" >&6 5786 5817 if test "${ac_cv_lib_readline_rl_initialize+set}" = set; then … … 5848 5879 if test $ac_cv_lib_readline_rl_initialize = yes; then 5849 5880 5850 LIBS="$LIBS -lreadline"5851 5852 echo "$as_me:$LINENO: checking for GNU readline" >&55881 LIBS="$LIBS -lreadline" 5882 5883 echo "$as_me:$LINENO: checking for GNU readline" >&5 5853 5884 echo $ECHO_N "checking for GNU readline... $ECHO_C" >&6 5854 if test "$cross_compiling" = yes; then5885 if test "$cross_compiling" = yes; then 5855 5886 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5856 5887 See \`config.log' for more details." >&5 … … 5861 5892 cat >conftest.$ac_ext <<_ACEOF 5862 5893 5863 #include <stdio.h>5864 #include <readline/readline.h>5865 int main(void) {5866 return rl_gnu_readline_p ? 0 : 1;5867 }5894 #include <stdio.h> 5895 #include <readline/readline.h> 5896 int main(void) { 5897 return rl_gnu_readline_p ? 0 : 1; 5898 } 5868 5899 5869 5900 _ACEOF … … 5880 5911 (exit $ac_status); }; }; then 5881 5912 5882 echo "$as_me:$LINENO: result: yes" >&55913 echo "$as_me:$LINENO: result: yes" >&5 5883 5914 echo "${ECHO_T}yes" >&6 5884 5915 … … 5890 5921 ( exit $ac_status ) 5891 5922 5892 echo "$as_me:$LINENO: result: no" >&55923 echo "$as_me:$LINENO: result: no" >&5 5893 5924 echo "${ECHO_T}no" >&6 5894 5925 … … 5897 5928 If you installed GNU readline into a non-standard directory, please run: 5898 5929 5899 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&55930 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 5900 5931 echo "$as_me: error: could not locate GNU readline 5901 5932 5902 5933 If you installed GNU readline into a non-standard directory, please run: 5903 5934 5904 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}5935 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 5905 5936 { (exit 1); exit 1; }; } 5906 5937 … … 5910 5941 fi 5911 5942 5912 echo "$as_me:$LINENO: checking for rl_completion_matches" >&55943 echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 5913 5944 echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6 5914 if test "$cross_compiling" = yes; then5945 if test "$cross_compiling" = yes; then 5915 5946 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5916 5947 See \`config.log' for more details." >&5 … … 5921 5952 cat >conftest.$ac_ext <<_ACEOF 5922 5953 5923 #include <stdio.h>5924 #include <readline/readline.h>5925 char * generator(const char *, int);5926 char * generator(const char *text, int state) {5927 return NULL;5928 }5929 int main(void) {5930 (void) rl_completion_matches("", generator);5931 5932 return 0;5933 }5954 #include <stdio.h> 5955 #include <readline/readline.h> 5956 char * generator(const char *, int); 5957 char * generator(const char *text, int state) { 5958 return NULL; 5959 } 5960 int main(void) { 5961 (void) rl_completion_matches("", generator); 5962 5963 return 0; 5964 } 5934 5965 5935 5966 _ACEOF … … 5951 5982 _ACEOF 5952 5983 5953 echo "$as_me:$LINENO: result: yes" >&55984 echo "$as_me:$LINENO: result: yes" >&5 5954 5985 echo "${ECHO_T}yes" >&6 5955 5986 … … 5962 5993 ( exit $ac_status ) 5963 5994 5964 echo "$as_me:$LINENO: result: no" >&55995 echo "$as_me:$LINENO: result: no" >&5 5965 5996 echo "${ECHO_T}no" >&6 5966 5997 … … 5969 6000 fi 5970 6001 5971 echo "$as_me:$LINENO: checking whether rl_completion_display_matches_hook is declared" >&56002 echo "$as_me:$LINENO: checking whether rl_completion_display_matches_hook is declared" >&5 5972 6003 echo $ECHO_N "checking whether rl_completion_display_matches_hook is declared... $ECHO_C" >&6 5973 6004 if test "${ac_cv_have_decl_rl_completion_display_matches_hook+set}" = set; then … … 5981 6012 /* end confdefs.h. */ 5982 6013 5983 #include <stdio.h>5984 #include <readline/readline.h>6014 #include <stdio.h> 6015 #include <readline/readline.h> 5985 6016 5986 6017 … … 6053 6084 If you installed readline into a non-standard directory, please run: 6054 6085 6055 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&56086 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 6056 6087 echo "$as_me: error: could not locate readline 6057 6088 6058 6089 If you installed readline into a non-standard directory, please run: 6059 6090 6060 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}6091 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 6061 6092 { (exit 1); exit 1; }; } 6062 6093 … … 6072 6103 If you installed readline into a non-standard directory, please run: 6073 6104 6074 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&56105 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 6075 6106 echo "$as_me: error: could not locate readline 6076 6107 6077 6108 If you installed readline into a non-standard directory, please run: 6078 6109 6079 CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;}6110 env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} 6080 6111 { (exit 1); exit 1; }; } 6081 6112 … … 6087 6118 6088 6119 6089 # Check for CoreServices (Mac OS X)6090 6120 6091 6121 for ac_header in CoreServices/CoreServices.h … … 6234 6264 _ACEOF 6235 6265 6236 LIBS="$LIBS -framework CoreServices -framework Carbon"6266 LIBS="$LIBS -framework CoreServices -framework Carbon" 6237 6267 6238 6268 fi 6239 6269 6240 6270 done 6271 6241 6272 6242 6273 wire/trunk/configure.in
r4491 r4522 4 4 AC_CONFIG_SRCDIR([config.h.in]) 5 5 AC_CONFIG_HEADER([config.h]) 6 7 # Include shared macros 8 m4_include([libwired/config.m4]) 6 9 7 10 # Get host … … 15 18 # These are used in the Makefile 16 19 AC_SUBST([WR_VERSION], [AC_PACKAGE_VERSION]) 17 18 # These are used in configure.in19 AC_DEFUN([WR_MSG_LIB_ERROR], [20 AC_MSG_ERROR([could not locate $121 22 If you installed $1 into a non-standard directory, please run:23 24 CPPFLAGS="-I/path/to/include" LDFLAGS="-L/path/to/lib" ./configure])25 ])26 27 AC_DEFUN([WR_MSG_LIBWIRED_ERROR], [28 AC_MSG_ERROR([could not locate libwired29 30 You need to download a version of libwired and place it in the same directory as this configure script])31 ])32 20 33 21 … … 47 35 AC_ARG_ENABLE([warnings], AC_HELP_STRING([--enable-warnings], [enable warnings])) 48 36 49 AC_DEFUN([WR_WARNING_TRY], [50 OLD_CFLAGS="$CFLAGS"51 CFLAGS="$CFLAGS $1"52 53 AC_COMPILE_IFELSE([54 int main(void) {55 return 0;56 }57 ], [58 WARNFLAGS="$WARNFLAGS $1"59 ], [60 CFLAGS="$OLD_CFLAGS"61 ])62 ])63 64 37 if test -n "$enable_warnings"; then 65 W R_WARNING_TRY([-W])66 W R_WARNING_TRY([-Wall])67 W R_WARNING_TRY([-Wno-unknown-pragmas])68 W R_WARNING_TRY([-Wno-unused-parameter])69 W R_WARNING_TRY([-Wsign-compare])70 W R_WARNING_TRY([-Wstrict-prototypes])71 W R_WARNING_TRY([-Wmissing-prototypes])72 W R_WARNING_TRY([-Wmissing-declarations])73 W R_WARNING_TRY([-Wredundant-decls])38 WI_INCLUDE_WARNING_FLAG([-W]) 39 WI_INCLUDE_WARNING_FLAG([-Wall]) 40 WI_INCLUDE_WARNING_FLAG([-Wno-unknown-pragmas]) 41 WI_INCLUDE_WARNING_FLAG([-Wno-unused-parameter]) 42 WI_INCLUDE_WARNING_FLAG([-Wsign-compare]) 43 WI_INCLUDE_WARNING_FLAG([-Wstrict-prototypes]) 44 WI_INCLUDE_WARNING_FLAG([-Wmissing-prototypes]) 45 WI_INCLUDE_WARNING_FLAG([-Wmissing-declarations]) 46 WI_INCLUDE_WARNING_FLAG([-Wredundant-decls]) 74 47 75 48 AC_MSG_RESULT([$WARNFLAGS]) … … 116 89 # Checks for additional paths 117 90 118 # Check if we need /usr/local/{include,lib}/ 119 if test -d /usr/local/include; then 120 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 121 fi 122 123 if test -d /usr/local/lib; then 124 LDFLAGS="$LDFLAGS -L/usr/local/lib" 125 fi 126 127 128 # Check if we need /usr/local/ssl/{include,lib}/ 129 if test -d /usr/local/ssl/include; then 130 CPPFLAGS="$CPPFLAGS -I/usr/local/ssl/include" 131 fi 132 133 if test -d /usr/local/ssl/lib; then 134 LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib" 135 fi 136 137 138 # Check if we need /usr/kerberos/include 139 if test -d /usr/kerberos/include; then 140 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" 141 fi 91 WI_INCLUDE_EXTRA_INCLUDE_PATHS 92 WI_INCLUDE_EXTRA_LIBRARY_PATHS 142 93 143 94 … … 145 96 # Checks for libraries 146 97 147 # Check that we have a libwired in this directory 148 if ! test -f "$srcdir/libwired/configure"; then 149 WR_MSG_LIBWIRED_ERROR 150 fi 151 152 153 # Check if we need the math library 154 AC_CHECK_FUNC([pow], [], [ 155 AC_CHECK_LIB([m], [sqrt], [ 156 LIBS="$LIBS -lm" 157 ]) 158 ]) 159 160 161 # Check if we need the socket library 162 AC_CHECK_FUNC(setsockopt, [], [ 163 AC_CHECK_LIB([socket], [setsockopt], [ 164 LIBS="$LIBS -lsocket" 165 ]) 166 ]) 167 168 169 # Check if we need the network services library 170 AC_CHECK_FUNC([gethostent], [], [ 171 AC_CHECK_LIB([nsl], [gethostent], [ 172 LIBS="$LIBS -lnsl" 173 ]) 174 ]) 175 176 177 # Check if we need the resolve services library 178 AC_CHECK_FUNC([inet_aton], [], [ 179 AC_CHECK_LIB([resolv], [inet_aton], [ 180 LIBS="$LIBS -lresolv" 181 ]) 182 ]) 183 184 185 # Check for the OpenSSL crypto library 186 AC_CHECK_HEADERS([openssl/sha.h], [ 187 AC_CHECK_LIB([crypto], [MD5_Init], [ 188 LIBS="$LIBS -lcrypto" 189 ], [ 190 WR_MSG_LIB_ERROR([OpenSSL]) 191 ]) 192 ], [ 193 WR_MSG_LIB_ERROR([OpenSSL]) 194 ]) 195 196 197 # Check for the OpenSSL ssl library 198 AC_CHECK_HEADERS([openssl/ssl.h], [ 199 AC_CHECK_LIB([ssl], [SSL_library_init], [ 200 LIBS="$LIBS -lssl" 201 ], [ 202 WR_MSG_LIB_ERROR([OpenSSL]) 203 ]) 204 ], [ 205 WR_MSG_LIB_ERROR([OpenSSL]) 206 ]) 207 208 209 # Check for the iconv library 210 AC_CHECK_HEADERS([iconv.h], [ 211 AC_CHECK_LIB([iconv], [iconv], [ 212 LIBS="$LIBS -liconv" 213 ], [ 214 AC_CHECK_LIB([iconv], [libiconv], [ 215 LIBS="$LIBS -liconv" 216 ], [ 217 AC_CHECK_FUNC([iconv], [], [ 218 WR_MSG_LIB_ERROR([iconv]) 219 ]) 220 ]) 221 ]) 222 ], [ 223 WR_MSG_LIB_ERROR([iconv]) 224 ]) 225 226 AC_MSG_CHECKING([if iconv understands Unicode]) 227 AC_RUN_IFELSE([ 228 #include <iconv.h> 229 int main(void) { 230 iconv_t conv = iconv_open("UTF-8", "UTF-16"); 231 if(conv == (iconv_t) -1) 232 return 1; 233 return 0; 234 } 235 ], [ 236 AC_MSG_RESULT([yes]) 237 ], [ 238 AC_MSG_ERROR([no]) 239 ]) 240 241 242 # Check for the termcap library 243 AC_CHECK_HEADERS([term.h], [ 244 AC_CHECK_FUNC([tgoto], [], [ 245 AC_CHECK_LIB([termcap], [tgoto], [ 246 LIBS="$LIBS -ltermcap" 247 ], [ 248 AC_CHECK_LIB([ncurses], [tgoto], [ 249 LIBS="$LIBS -lncurses" 250 ], [ 251 AC_CHECK_LIB([curses], [tgoto], [ 252 LIBS="$LIBS -lcurses" 253 ]) 254 ]) 255 ]) 256 ]) 257 ]) 258 259 260 # Check for the readline library 261 AC_CHECK_HEADERS([readline/readline.h], [ 262 AC_CHECK_LIB([readline], [rl_initialize], [ 263 LIBS="$LIBS -lreadline" 264 265 AC_MSG_CHECKING([for GNU readline]) 266 AC_RUN_IFELSE([ 267 #include <stdio.h> 268 #include <readline/readline.h> 269 int main(void) { 270 return rl_gnu_readline_p ? 0 : 1; 271 } 272 ], [ 273 AC_MSG_RESULT([yes]) 274 ], [ 275 AC_MSG_RESULT([no]) 276 WR_MSG_LIB_ERROR([GNU readline]) 277 ]) 278 279 AC_MSG_CHECKING([for rl_completion_matches]) 280 AC_RUN_IFELSE([ 281 #include <stdio.h> 282 #include <readline/readline.h> 283 char * generator(const char *, int); 284 char * generator(const char *text, int state) { 285 return NULL; 286 } 287 int main(void) { 288 (void) rl_completion_matches("", generator); 289 290 return 0; 291 } 292 ], [ 293 AC_DEFINE([HAVE_RL_COMPLETION_MATCHES], [1], [Define to 1 if you have the `rl_completion_matches' function, and to 0 otherwise.]) 294 AC_MSG_RESULT([yes]) 295 296 ], [ 297 AC_MSG_RESULT([no]) 298 ]) 299 300 AC_CHECK_DECLS([rl_completion_display_matches_hook], [], [], [ 301 #include <stdio.h> 302 #include <readline/readline.h> 303 ]) 304 ], [ 305 WR_MSG_LIB_ERROR([readline]) 306 ]) 307 ], [ 308 WR_MSG_LIB_ERROR([readline]) 309 ]) 310 311 312 # Check for CoreServices (Mac OS X) 313 AC_CHECK_HEADERS([CoreServices/CoreServices.h], [ 314 LIBS="$LIBS -framework CoreServices -framework Carbon" 315 ]) 98 WI_CHECK_LIBWIRED 99 WI_INCLUDE_MATH_LIBRARY 100 WI_INCLUDE_SOCKET_LIBRARY 101 WI_INCLUDE_NSL_LIBRARY 102 WI_INCLUDE_RESOLV_LIBRARY 103 WI_INCLUDE_CRYPTO_LIBRARY 104 WI_INCLUDE_SSL_LIBRARY 105 WI_INCLUDE_ICONV_LIBRARY 106 WI_INCLUDE_TERMCAP_LIBRARY 107 WI_INCLUDE_READLINE_LIBRARY 108 WI_INCLUDE_CORESERVICES_FRAMEWORK 316 109 317 110
