configure.in 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. dnl $Id$
  2. dnl Copyright (c) 2001-2005 Roger Dingledine
  3. dnl Copyright (c) 2004-2005 Nick Mathewson
  4. dnl See LICENSE for licensing information
  5. AC_INIT
  6. AM_INIT_AUTOMAKE(tor, 0.1.1.12-alpha-cvs)
  7. AM_CONFIG_HEADER(orconfig.h)
  8. AC_CANONICAL_HOST
  9. if test -f /etc/redhat-release; then
  10. CFLAGS="$CFLAGS -I/usr/kerberos/include"
  11. fi
  12. AC_ARG_ENABLE(debug,
  13. AC_HELP_STRING(--enable-debug, compile with debugging info),
  14. [if test x$enableval = xyes; then
  15. CFLAGS="$CFLAGS -g"
  16. fi])
  17. AC_ARG_ENABLE(threads,
  18. AC_HELP_STRING(--disable-threads, disable multi-threading support))
  19. if test x$enable_threads = x; then
  20. case $host in
  21. *-*-netbsd* | *-*-openbsd* )
  22. # Don't try multithreading on netbsd -- there is no threadsafe DNS
  23. # lookup function there.
  24. AC_MSG_NOTICE([You are running OpenBSD or NetBSD; I am assuming that
  25. getaddrinfo is not threadsafe here, so I will disable threads.])
  26. enable_threads="no";;
  27. *-*-solaris* )
  28. # Don't try multithreading on solaris -- cpuworkers seem to lock.
  29. AC_MSG_NOTICE([You are running Solaris; Sometimes threading makes
  30. cpu workers lock up here, so I will disable threads.])
  31. enable_threads="no";;
  32. *)
  33. enable_threads="yes";;
  34. esac
  35. fi
  36. if test $enable_threads = "yes"; then
  37. AC_DEFINE(ENABLE_THREADS, 1, [Defined if we will try to use multithreading])
  38. fi
  39. case $host in
  40. *-*-solaris* )
  41. AC_DEFINE(_REENTRANT, 1, [Define on some platforms to activate x_r() functions in time.h])
  42. ;;
  43. esac
  44. AC_PROG_CC
  45. AC_PROG_MAKE_SET
  46. AC_PROG_RANLIB
  47. # The big search for OpenSSL
  48. # copied from openssh's configure.ac
  49. tryssldir=""
  50. AC_ARG_WITH(ssl-dir,
  51. [ --with-ssl-dir=PATH Specify path to OpenSSL installation ],
  52. [
  53. if test "x$withval" != "xno" ; then
  54. tryssldir=$withval
  55. fi
  56. ]
  57. )
  58. trylibeventdir=""
  59. AC_ARG_WITH(libevent-dir,
  60. [ --with-libevent-dir=PATH Specify path to Libevent installation ],
  61. [
  62. if test "x$withval" != "xno" ; then
  63. trylibeventdir=$withval
  64. fi
  65. ]
  66. )
  67. TORUSER=_tor
  68. AC_ARG_WITH(tor-user,
  69. [ --with-tor-user=NAME Specify username for tor daemon ],
  70. [
  71. TORUSER=$withval
  72. ]
  73. )
  74. AC_SUBST(TORUSER)
  75. TORGROUP=_tor
  76. AC_ARG_WITH(tor-group,
  77. [ --with-tor-group=NAME Specify group name for tor daemon ],
  78. [
  79. TORGROUP=$withval
  80. ]
  81. )
  82. AC_SUBST(TORGROUP)
  83. AC_SEARCH_LIBS(socket, [socket])
  84. AC_SEARCH_LIBS(gethostbyname, [nsl])
  85. AC_SEARCH_LIBS(dlopen, [dl])
  86. if test $enable_threads = "yes"; then
  87. AC_SEARCH_LIBS(pthread_create, [pthread])
  88. AC_SEARCH_LIBS(pthread_detach, [pthread])
  89. fi
  90. dnl ------------------------------------------------------
  91. dnl Where do you live, libevent? And how do we call you?
  92. saved_LIBS="$LIBS"
  93. saved_LDFLAGS="$LDFLAGS"
  94. AC_CACHE_CHECK([for libevent location], ac_cv_libevent_dir, [
  95. for ledir in $trylibeventdir "" $prefix /usr/local ; do
  96. LDFLAGS="$saved_LDFLAGS"
  97. LIBS="$saved_LIBS -levent"
  98. # Skip the directory if it isn't there.
  99. if test ! -z "$ledir" -a ! -d "$ledir" ; then
  100. continue;
  101. fi
  102. if test ! -z "$ledir" ; then
  103. if test -d "$ledir/lib" ; then
  104. LDFLAGS="-L$ledir/lib $LDFLAGS"
  105. else
  106. LDFLAGS="-L$ledir $LDFLAGS"
  107. fi
  108. fi
  109. # Can I link it?
  110. AC_TRY_LINK([], [ void *event_init(void); event_init(); ],
  111. [ libevent_linked=yes ], [ libevent_linked=no ])
  112. if test $libevent_linked = yes; then
  113. if test ! -z "$ledir" ; then
  114. ac_cv_libevent_dir=$ledir
  115. else
  116. ac_cv_libevent_dir="(system)"
  117. fi
  118. break
  119. fi
  120. done
  121. ])
  122. LIBS="$LIBS -levent"
  123. if test $ac_cv_libevent_dir != "(system)"; then
  124. if test -d "$ac_cv_libevent_dir/lib" ; then
  125. LDFLAGS="-L$ac_cv_libevent_dir/lib $LDFLAGS"
  126. le_libdir="$ac_cv_libevent_dir/lib"
  127. else
  128. LDFLAGS="-L$ac_cv_libevent_dir $LDFLAGS"
  129. le_libdir="$ac_cv_libevent_dir"
  130. fi
  131. if test -d "$ac_cv_libevent_dir/include" ; then
  132. CPPFLAGS="-I$ac_cv_libevent_dir/include $CPPFLAGS"
  133. else
  134. CPPFLAGS="-I$ac_cv_libevent_dir $CPPFLAGS"
  135. fi
  136. fi
  137. AC_CACHE_CHECK([whether libevent is in LDPATH], ac_cv_libevent_in_ldpath, [
  138. saved_LDFLAGS="$LDFLAGS"
  139. AC_TRY_RUN([void *event_init(void);
  140. int main(int c, char **v) {
  141. event_init(); return 0;
  142. }],
  143. libevent_runs=yes, libevent_runs=no)
  144. if test $libevent_runs = yes; then
  145. ac_cv_libevent_in_ldpath=yes
  146. else
  147. LDFLAGS="$LDFLAGS -Wl,-R$le_libdir"
  148. AC_TRY_RUN([void *event_init(void);
  149. int main(int c, char **v) {
  150. event_init(); return 0;
  151. }],
  152. libevent_runs_with_r=yes, libevent_runs_with_r=no)
  153. if test $libevent_runs_with_r = yes; then
  154. ac_cv_libevent_in_ldpath=no
  155. else
  156. AC_MSG_ERROR([Found linkable libevent in $ac_cv_libevent_dir, but it doesn't run, even with -R. Maybe specify another using --with-libevent-dir?])
  157. fi
  158. fi
  159. LDFLAGS="$saved_LDFLAGS"
  160. ])
  161. if test $ac_cv_libevent_in_ldpath = no ; then
  162. LDFLAGS="$LDFLAGS -Wl,-R$le_libdir"
  163. fi
  164. dnl ------------------------------------------------------
  165. dnl Where do you live, OpenSSL?
  166. saved_LIBS="$LIBS"
  167. saved_LDFLAGS="$LDFLAGS"
  168. saved_CPPFLAGS="$CPPFLAGS"
  169. if test "x$prefix" != "xNONE" ; then
  170. tryssldir="$tryssldir $prefix"
  171. fi
  172. AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
  173. for ssldir in $tryssldir "" /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/athena /usr/pkg /opt /opt/openssl ; do
  174. CPPFLAGS="$saved_CPPFLAGS"
  175. LDFLAGS="$saved_LDFLAGS"
  176. LIBS="$saved_LIBS -lssl -lcrypto"
  177. # Skip directories if they don't exist
  178. if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
  179. continue;
  180. fi
  181. if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
  182. # Try to use $ssldir/lib if it exists, otherwise
  183. # $ssldir
  184. if test -d "$ssldir/lib" ; then
  185. LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
  186. if test ! -z "$need_dash_r" ; then
  187. LDFLAGS="-R$ssldir/lib $LDFLAGS"
  188. fi
  189. else
  190. LDFLAGS="-L$ssldir $saved_LDFLAGS"
  191. if test ! -z "$need_dash_r" ; then
  192. LDFLAGS="-R$ssldir $LDFLAGS"
  193. fi
  194. fi
  195. # Try to use $ssldir/include if it exists, otherwise
  196. # $ssldir
  197. if test -d "$ssldir/include" ; then
  198. CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS"
  199. else
  200. CPPFLAGS="-I$ssldir $saved_CPPFLAGS"
  201. fi
  202. fi
  203. # Basic test to check for compatible version and correct linking
  204. # *does not* test for RSA - that comes later.
  205. AC_TRY_RUN(
  206. [
  207. #include <string.h>
  208. #include <openssl/rand.h>
  209. int main(void)
  210. {
  211. char a[2048];
  212. memset(a, 0, sizeof(a));
  213. RAND_add(a, sizeof(a), sizeof(a));
  214. return(RAND_status() <= 0);
  215. }
  216. ],
  217. [
  218. found_crypto=1
  219. break;
  220. ], []
  221. )
  222. if test ! -z "$found_crypto" ; then
  223. break;
  224. fi
  225. done
  226. if test -z "$found_crypto" ; then
  227. AC_MSG_ERROR([Could not find working OpenSSL library, please install or check config.log])
  228. fi
  229. if test -z "$ssldir" ; then
  230. ssldir="(system)"
  231. fi
  232. ac_cv_openssldir=$ssldir
  233. ])
  234. if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ;
  235. then
  236. dnl Need to recover ssldir - test above runs in subshell
  237. ssldir=$ac_cv_openssldir
  238. if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
  239. # Try to use $ssldir/lib if it exists, otherwise
  240. # $ssldir
  241. if test -d "$ssldir/lib" ; then
  242. LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
  243. if test ! -z "$need_dash_r" ; then
  244. LDFLAGS="-R$ssldir/lib $LDFLAGS"
  245. fi
  246. else
  247. LDFLAGS="-L$ssldir $saved_LDFLAGS"
  248. if test ! -z "$need_dash_r" ; then
  249. LDFLAGS="-R$ssldir $LDFLAGS"
  250. fi
  251. fi
  252. # Try to use $ssldir/include if it exists, otherwise
  253. # $ssldir
  254. if test -d "$ssldir/include" ; then
  255. CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS"
  256. else
  257. CPPFLAGS="-I$ssldir $saved_CPPFLAGS"
  258. fi
  259. fi
  260. fi
  261. LIBS="$saved_LIBS"
  262. AC_SYS_LARGEFILE
  263. dnl The warning message here is no longer strictly accurate.
  264. AC_CHECK_HEADERS(unistd.h string.h signal.h netdb.h ctype.h sys/stat.h sys/types.h fcntl.h sys/fcntl.h sys/ioctl.h sys/socket.h sys/time.h netinet/in.h arpa/inet.h errno.h assert.h time.h pwd.h grp.h, , AC_MSG_WARN(some headers were not found, compilation may fail))
  265. AC_CHECK_HEADERS(event.h, , AC_MSG_ERROR(Libevent header (event.h) not found. Tor requires libevent to build.))
  266. AC_CHECK_HEADERS(zlib.h, , AC_MSG_ERROR(Zlib header (zlib.h) not found. Tor requires zlib to build. You may need to install a zlib development package.))
  267. dnl These headers are not essential
  268. AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h stddef.h inttypes.h utime.h sys/utime.h)
  269. AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime getrlimit setrlimit strlcat strlcpy strtoull getpwnam getpwuid ftello getaddrinfo localtime_r gmtime_r event_get_version event_get_method event_set_log_callback memmem)
  270. if test $enable_threads = "yes"; then
  271. AC_CHECK_HEADERS(pthread.h)
  272. AC_CHECK_FUNCS(pthread_create)
  273. fi
  274. AC_FUNC_FSEEKO
  275. AC_CHECK_MEMBERS([struct timeval.tv_sec])
  276. dnl In case we aren't given a working stdint.h, we'll need to grow our own.
  277. dnl Watch out.
  278. AC_CHECK_SIZEOF(int8_t)
  279. AC_CHECK_SIZEOF(int16_t)
  280. AC_CHECK_SIZEOF(int32_t)
  281. AC_CHECK_SIZEOF(int64_t)
  282. AC_CHECK_SIZEOF(uint8_t)
  283. AC_CHECK_SIZEOF(uint16_t)
  284. AC_CHECK_SIZEOF(uint32_t)
  285. AC_CHECK_SIZEOF(uint64_t)
  286. AC_CHECK_SIZEOF(intptr_t)
  287. AC_CHECK_SIZEOF(uintptr_t)
  288. dnl AC_CHECK_TYPES([int8_t, int16_t, int32_t, int64_t, uint8_t, uint16_t, uint32_t, uint64_t, intptr_t, uintptr_t])
  289. AC_CHECK_SIZEOF(char)
  290. AC_CHECK_SIZEOF(short)
  291. AC_CHECK_SIZEOF(int)
  292. AC_CHECK_SIZEOF(long)
  293. AC_CHECK_SIZEOF(long long)
  294. AC_CHECK_SIZEOF(__int64)
  295. AC_CHECK_SIZEOF(void *)
  296. AC_CHECK_SIZEOF(time_t)
  297. AC_CACHE_CHECK([whether time_t is signed], tor_cv_time_t_signed, [
  298. AC_TRY_RUN([
  299. int main(int c, char**v) { if (((time_t)-1)<0) return 1; else return 0; }],
  300. tor_cv_time_t_signed=no, tor_cv_time_t_signed=yes)
  301. ])
  302. if test $tor_cv_time_t_signed = yes; then
  303. AC_DEFINE([TIME_T_IS_SIGNED], 1,
  304. [Define to 1 iff time_t is signed])
  305. fi
  306. AC_CHECK_SIZEOF(socklen_t, , [AC_INCLUDES_DEFAULT()
  307. #ifdef HAVE_SYS_SOCKET_H
  308. #include <sys/socket.h>
  309. #endif
  310. ])
  311. # We want to make sure that we _don't_ have a cell_t defined, like IRIX does.
  312. AC_CHECK_SIZEOF(cell_t)
  313. # Now, let's see about alignment requirements. On some platforms, we override
  314. # the default.
  315. case $host in
  316. ia64-*-* | arm-*-* | sparc-*-* | sparc64-*-* )
  317. tor_cv_unaligned_ok=no
  318. ;;
  319. # On the following architectures unaligned access works, but is not done in
  320. # hardware. This means that when you try to do unaligned access the kernel
  321. # gets to sort out an exception and then work around to somehow make your
  322. # reqest work, which is quite expensive. Therefore it's probably better to
  323. # not even do it.
  324. alpha-*-* | mips-*-* | mipsel-*-* )
  325. tor_cv_unaligned_ok=no
  326. ;;
  327. *)
  328. AC_CACHE_CHECK([whether unaligned int access is allowed], tor_cv_unaligned_ok,
  329. [AC_RUN_IFELSE([AC_LANG_SOURCE(
  330. [[int main () { char s[] = "A\x00\x00\x00\x00\x00\x00\x00";
  331. return *(int*)(&s[1]); }]])],
  332. [tor_cv_unaligned_ok=yes],
  333. [tor_cv_unaligned_ok=no],
  334. [tor_cv_unaligned_ok=cross])])
  335. esac
  336. if test $tor_cv_unaligned_ok = yes; then
  337. AC_DEFINE([UNALIGNED_INT_ACCESS_OK], 1,
  338. [Define to 1 iff unaligned int access is allowed])
  339. fi
  340. # Now make sure that NULL can be represented as zero bytes.
  341. AC_CACHE_CHECK([whether memset(0) sets pointers to NULL], tor_cv_null_is_zero,
  342. [AC_RUN_IFELSE([AC_LANG_SOURCE(
  343. [[#include <stdlib.h>
  344. #include <string.h>
  345. #include <stdio.h>
  346. #ifdef HAVE_STDDEF_H
  347. #include <stddef.h>
  348. #endif
  349. int main () { char *p1,*p2; p1=NULL; memset(&p2,0,sizeof(p2));
  350. return memcmp(&p1,&p2,sizeof(char*))?1:0; }]])],
  351. [tor_cv_null_is_zero=yes],
  352. [tor_cv_null_is_zero=no],
  353. [tor_cv_null_is_zero=cross])])
  354. if test $tor_cv_null_is_zero = yes; then
  355. AC_DEFINE([NULL_REP_IS_ZERO_BYTES], 1,
  356. [Define to 1 iff memset(0) sets pointers to NULL])
  357. fi
  358. # Whether we should use the dmalloc memory allocation debugging library.
  359. AC_MSG_CHECKING(whether to use dmalloc (debug memory allocation library))
  360. AC_ARG_WITH(dmalloc,
  361. [ --with-dmalloc Use debug memory allocation library. ],
  362. [if [[ "$withval" = "yes" ]]; then
  363. dmalloc=1
  364. AC_MSG_RESULT(yes)
  365. else
  366. dmalloc=1
  367. AC_MSG_RESULT(no)
  368. fi], [ dmalloc=0; AC_MSG_RESULT(no) ]
  369. )
  370. if [[ $dmalloc -eq 1 ]]; then
  371. AC_CHECK_HEADERS(dmalloc.h, , AC_MSG_ERROR(dmalloc header file not found. Do you have the development files for dmalloc installed?))
  372. AC_SEARCH_LIBS(dmalloc_malloc, [dmallocth dmalloc], , AC_MSG_ERROR(Libdmalloc library not found. If you enable it you better have it installed.))
  373. AC_DEFINE(USE_DMALLOC, 1, [Debug memory allocation library])
  374. AC_DEFINE(DMALLOC_FUNC_CHECK, 1, [Enable dmalloc's malloc function check])
  375. fi
  376. # Check for gethostbyname_r in all its glorious incompatible versions.
  377. # (This logic is based on that in Python's configure.in)
  378. AH_TEMPLATE(HAVE_GETHOSTBYNAME_R,
  379. [Define this if you have any gethostbyname_r()])
  380. AC_CHECK_FUNC(gethostbyname_r, [
  381. AC_MSG_CHECKING([how many arguments gethostbyname_r() wants])
  382. OLD_CFLAGS=$CFLAGS
  383. CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
  384. AC_TRY_COMPILE([
  385. #include <netdb.h>
  386. ], [
  387. char *cp1, *cp2;
  388. struct hostent *h1, *h2;
  389. int i1, i2;
  390. (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
  391. ], [
  392. AC_DEFINE(HAVE_GETHOSTBYNAME_R)
  393. AC_DEFINE(HAVE_GETHOSTBYNAME_R_6_ARG, 1,
  394. [Define this if gethostbyname_r takes 6 arguments])
  395. AC_MSG_RESULT(6)
  396. ], [
  397. AC_TRY_COMPILE([
  398. #include <netdb.h>
  399. ], [
  400. char *cp1, *cp2;
  401. struct hostent *h1;
  402. int i1, i2;
  403. (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
  404. ], [
  405. AC_DEFINE(HAVE_GETHOSTBYNAME_R)
  406. AC_DEFINE(HAVE_GETHOSTBYNAME_R_5_ARG, 1,
  407. [Define this if gethostbyname_r takes 5 arguments])
  408. AC_MSG_RESULT(5)
  409. ], [
  410. AC_TRY_COMPILE([
  411. #include <netdb.h>
  412. ], [
  413. char *cp1;
  414. struct hostent *h1;
  415. struct hostent_data hd;
  416. (void) gethostbyname_r(cp1,h1,&hd);
  417. ], [
  418. AC_DEFINE(HAVE_GETHOSTBYNAME_R)
  419. AC_DEFINE(HAVE_GETHOSTBYNAME_R_3_ARG, 1,
  420. [Define this if gethostbyname_r takes 3 arguments])
  421. AC_MSG_RESULT(3)
  422. ], [
  423. AC_MSG_RESULT(0)
  424. ])
  425. ])
  426. ])
  427. CFLAGS=$OLD_CFLAGS
  428. ])
  429. # $prefix stores the value of the --prefix command line option, or
  430. # NONE if the option wasn't set. In the case that it wasn't set, make
  431. # it be the default, so that we can use it to expand directories now.
  432. if test "x$prefix" = "xNONE"; then
  433. prefix=$ac_default_prefix
  434. fi
  435. # and similarly for $exec_prefix
  436. if test "x$exec_prefix" = "xNONE"; then
  437. exec_prefix=$prefix
  438. fi
  439. CONFDIR=`eval echo $sysconfdir/tor`
  440. AC_SUBST(CONFDIR)
  441. AC_DEFINE_UNQUOTED(CONFDIR,"$CONFDIR")
  442. AC_DEFINE([CONFDIR], [], [tor's configuration directory])
  443. BINDIR=`eval echo $bindir`
  444. AC_SUBST(BINDIR)
  445. LOCALSTATEDIR=`eval echo $localstatedir`
  446. AC_SUBST(LOCALSTATEDIR)
  447. AC_DEFINE_UNQUOTED(LOCALSTATEDIR,"$LOCALSTATEDIR")
  448. AC_DEFINE([LOCALSTATEDIR], [], [Default location to store state files.])
  449. # Set CFLAGS _after_ all the above checks, since our warnings are stricter
  450. # than autoconf's macros like.
  451. CFLAGS="$CFLAGS -Wall -g -O2"
  452. # Add some more warnings which we use in the cvs version but not in the
  453. # released versions. (Some relevant gcc versions can't handle these.)
  454. #CFLAGS="$CFLAGS -W -Wno-unused-parameter -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Winit-self -Wwrite-strings -Waggregate-return -Wmissing-declarations -Wmissing-field-initializers -Wredundant-decls -Winline"
  455. # Add these in when you feel like fun.
  456. #CFLAGS="$CFLAGS -Wbad-function-cast -Werror -Wdeclaration-after-statement -Wold-style-definition"
  457. echo "confdir: $CONFDIR"
  458. AC_OUTPUT(Makefile tor.spec contrib/tor.sh contrib/torctl contrib/torify contrib/tor.logrotate contrib/Makefile contrib/osx/Makefile contrib/osx/TorBundleDesc.plist contrib/osx/TorBundleInfo.plist contrib/osx/TorDesc.plist contrib/osx/TorInfo.plist contrib/osx/TorStartupDesc.plist src/config/torrc.sample doc/tor.1 src/Makefile doc/Makefile doc/design-paper/Makefile src/config/Makefile src/common/Makefile src/or/Makefile src/win32/Makefile src/tools/Makefile)
  459. if test -x /usr/bin/perl && test -x ./contrib/updateVersions.pl ; then
  460. ./contrib/updateVersions.pl
  461. fi