root/configure.in

Revision 44ff3960c287fb9db5673a83f1165dfe9a8ae96e, 14.2 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)

fixes on Solaris, fixes #203

  • Property mode set to 100755
Line 
1 AC_INIT(src/noitd.c)
2
3 node=`hostname | cut -f1 -d '.' | tr '[A-Z]' '[a-z]'`
4 if test -f ".configure.$node"; then
5         echo "***********************************************************"
6         echo "* Loading node specific configure settings for $node."
7         echo "***********************************************************"
8         . ./.configure.$node
9 fi
10
11 AC_CANONICAL_HOST
12 AC_CONFIG_HEADER(src/noit_config.h)
13 AC_CONFIG_HEADER(src/jlog/jlog_config.h)
14
15 AC_PROG_CC
16 AC_C_INLINE
17 AC_C_BIGENDIAN
18 AC_PROG_CPP
19 AC_PROG_RANLIB
20 AC_PROG_INSTALL
21 AC_PROG_LN_S
22 AC_PATH_PROG(AR, ar)
23 AC_PATH_PROGS(PERL, perl)
24 AC_PATH_PROGS(XSLTPROC, xsltproc)
25 AC_PATH_PROGS(XMLLINT, xmllint)
26 AC_PATH_PROGS(JAVA, java)
27 AC_PATH_PROGS(JAVAC, javac)
28 AC_PATH_PROGS(JAR, jar)
29 AC_PATH_PROG(NROFF, nroff)
30 AC_SUBST(PERL)
31
32 if test "x$CC" = "xgcc" ; then
33   CFLAGS="$CFLAGS -g -Wall"
34 else
35   CFLAGS="$CFLAGS -g"
36 fi
37
38 CPPFLAGS="$CPPFLAGS "'-I$(top_srcdir)/src'
39
40 case $host in
41 *-*-darwin*)
42         PICFLAGS="-fPIC"
43         MODULELD="$CC -bundle -flat_namespace -undefined suppress"
44         SHLD="$CC -dynamiclib -flat_namespace -undefined suppress"
45         MODULEEXT=bundle
46         RLDFLAG="-Wl,--rpath="
47         ;;
48 *-*-solaris*)
49         AC_MSG_CHECKING([32 or 64 bit Solaris assembly])
50         if test -n "`echo $CFLAGS | grep m64`"; then
51                 AC_MSG_RESULT([64])
52                 ATOMIC_OBJS="noit_atomic_sol_x86_64.o"
53         else
54                 AC_MSG_RESULT([32])
55                 ATOMIC_OBJS="noit_atomic_sol_x86_32.o"
56         fi
57         if test "x$CC" != "xgcc" ; then
58                 CFLAGS="$CFLAGS -mt"
59         fi
60         PICFLAGS="-Kpic"
61         MODULELD="$CC -G"
62         SHLD="$CC -G"
63         MODULEEXT=so
64         RLDFLAG="-R"
65         WHOLE_ARCHIVE="-Wl,-z -Wl,allextract"
66         NOWHOLE_ARCHIVE="-Wl,-z -Wl,defaultextract"
67         ;;
68 *-*-openbsd*)
69         PICFLAGS="-fpic"
70         LDFLAGS="$LDFLAGS -Wl,-E"
71         MODULELD="$CC -shared"
72         SHLD="$CC -shared"
73         MODULEEXT=so
74         LDFLAGS="$LDFLAGS -L/usr/local/lib"
75         CFLAGS="$CFLAGS -I/usr/local/include"
76         RLDFLAG="-Wl,--rpath="
77         WHOLE_ARCHIVE="-Wl,--whole-archive"
78         NOWHOLE_ARCHIVE="-Wl,--no-whole-archive"
79         ;;
80 *-*-linux*)
81         LDFLAGS="$LDFLAGS -Wl,-E"
82         CPPFLAGS="$CPPFLAGS"
83         PICFLAGS="-fpic"
84         MODULELD="$CC -shared"
85         SHLD="$CC -shared"
86         MODULEEXT=so
87         RLDFLAG="-Wl,--rpath="
88         WHOLE_ARCHIVE="-Wl,--whole-archive"
89         NOWHOLE_ARCHIVE="-Wl,--no-whole-archive"
90         ;;
91 *-*-freebsd*)
92         PICFLAGS="-fpic"
93         MODULELD="$CC -shared"
94         LDFLAGS="$LDFLAGS -export-dynamic -L/usr/local/lib"
95         CFLAGS="$CFLAGS -I/usr/local/include"
96         MODULEEXT=so
97         RLDFLAG="-Wl,--rpath="
98         ;;
99 *)
100         PICFLAGS="-fpic"
101         MODULELD="$CC -shared"
102         MODULEEXT=so
103         RLDFLAG="-Wl,--rpath="
104         ;;
105 esac
106 AC_SUBST(SHLD)
107 AC_SUBST(RLDFLAG)
108 AC_SUBST(MODULELD)
109 AC_SUBST(MODULEEXT)
110 AC_SUBST(WHOLE_ARCHIVE)
111 AC_SUBST(NOWHOLE_ARCHIVE)
112 AC_SUBST(ATOMIC_OBJS)
113 AC_DEFINE_UNQUOTED(MODULEEXT, "$MODULEEXT", [module extension])
114 AC_MSG_CHECKING([enable build/install of the Java IEP bits])
115
116 if test -z "$ac_cv_path_JAVA" ; then
117         AC_MSG_RESULT([no])
118 else
119         JAVAPARTS=java
120         AC_MSG_RESULT([yes])
121 fi
122 AC_SUBST(JAVAPARTS)
123
124 NOIT_SVNVERSION=`svnversion`
125 AC_DEFINE_UNQUOTED(NOIT_SVNVERSION, "$NOIT_SVNVERSION", [svn version from wc])
126
127 # Checks for data types
128 AC_CHECK_SIZEOF(char, 1)
129 AC_CHECK_SIZEOF(short int, 2)
130 AC_CHECK_SIZEOF(int, 4)
131 AC_CHECK_SIZEOF(long int, 4)
132 AC_CHECK_SIZEOF(long long int, 8)
133 AC_CHECK_SIZEOF(void *, 1)
134
135 AC_CHECK_LIB(z, compress2, , [AC_MSG_ERROR(*** zlib is required ***)])
136 AC_CHECK_LIB(rt, sem_init, , )
137 AC_CHECK_LIB(posix4, sem_wait, , )
138 AC_CHECK_LIB(pthread, pthread_create, , )
139 AC_CHECK_FUNC(uuid_generate, , [
140   AC_MSG_WARN([uuid_generate not available])
141   AC_CHECK_LIB(uuid, uuid_generate, , [AC_MSG_ERROR(*** uuid is required ***)])])
142
143 # Some libraries provide an unparse_lower command
144 # we use that, so if it isn't present, we'll need
145 # to implement it.
146 AC_CHECK_FUNC(uuid_unparse_lower, [AC_DEFINE(HAVE_UUID_UNPARSE_LOWER)], )
147 AC_CHECK_LIB(util, openpty, , )
148 AC_CHECK_LIB(termcap, tputs, , )
149 AC_CHECK_LIB(curses, clear, , [AC_MSG_ERROR([curses not found, but required])])
150
151 CPPFLAGS="$CPPFLAGS `pcre-config --cflags`"
152 LDFLAGS="$LDFLAGS `pcre-config --libs`"
153 AC_CHECK_LIB(pcre, pcre_compile, ,
154         [
155                 AC_MSG_ERROR([libpcre not found, but required])
156         ]
157 )
158 AC_CHECK_LIB(crypto, ERR_load_CRYPTO_strings, ,
159         [
160                 AC_MSG_ERROR([libcrypto not found, but required])
161         ]
162 )
163 AC_CHECK_LIB(ssl, SSL_library_init, ,
164         [
165                 AC_MSG_ERROR([libssl not found, but required])
166         ]
167 )
168
169 old_LIBS=$LIBS
170 old_CFLAGS=$CFLAGS
171 AC_CHECK_LIB(pq, PQconnectdb,
172         [
173                 LIBS="$LIBS -lpq"
174                 PGLIBS="$LIBS"
175                 AC_SUBST(PGLIBS)
176         ],
177         [
178                 AC_MSG_ERROR([libpq required])
179         ]
180 )
181
182 AC_MSG_CHECKING([libpq includes])
183 PQICFLAGS=`pg_config --includedir`
184 if test -n "$PQICFLAGS" ; then
185   CFLAGS="$CFLAGS -I$PQICFLAGS"
186 fi
187
188 AC_TRY_LINK([
189         #include <libpq-fe.h>
190         ],
191         [ PGconn *dbh = PQconnectdb(""); ],
192         [],
193         [ AC_MSG_ERROR([Cannot compile/link against libpq]) ]
194 )
195 PGCFLAGS=$CFLAGS
196 AC_SUBST(PGCFLAGS)
197
198 AC_CHECK_HEADERS(mysql.h mysql/mysql.h)
199
200 if test "$ac_cv_header_mysql_h" = "no" -a "$ac_cv_header_mysql_mysql_h" = "no" ; then
201         AC_MSG_WARN([No libmysqlclient, skipping mysql module])
202         AC_SUBST(MYCFLAGS)
203         AC_SUBST(MYLIBS)
204 else
205         LIBS=$old_LIBS
206         CFLAGS=$old_CFLAGS
207        
208         if test -z "$MYLIBS" ; then
209           MYLIBS="-lmysqlclient_r -lz -lssl -lcrypto"
210         fi
211        
212         old_CFLAGS=$CFLAGS
213         old_LIBS=$LIBS
214         CFLAGS="$CFLAGS $MYCFLAGS"
215         LIBS="$MYLIBS"
216        
217         AC_CHECK_FUNC(mysql_real_connect,
218                 [
219                         BUILD_MODULES="$BUILD_MODULES mysql.$MODULEEXT"
220                         MYCFLAGS="$CFLAGS"
221                         MYLIBS="$LIBS"
222                         AC_SUBST(MYCFLAGS)
223                         AC_SUBST(MYLIBS)
224                 ],
225                 [
226                         AC_MSG_WARN([No libmysqlclient, skipping mysql module])
227                         AC_SUBST(MYCFLAGS)
228                         AC_SUBST(MYLIBS)
229                 ]
230         )
231        
232        
233         LIBS=$old_LIBS
234         CFLAGS=$old_CFLAGS
235 fi
236
237 ########
238 #
239 # CHECK FOR VARIOUS MODULE CRITERIA
240 # We don't track the libs themselves, as we'll just explictly link
241 # against the in the makefile if we enable them to build (by adding
242 # them to the BUILD_MODULES list).
243 #
244 ########
245
246 # Should we build snmp checks?
247 SAVELIBS="$LIBS"
248 AC_CHECK_LIB(netsnmp, snmp_sess_open,
249         [
250                 BUILD_MODULES="$BUILD_MODULES snmp.$MODULEEXT"
251         ],
252         [
253                 AC_MSG_WARN([No libnetsnmp, skipping snmp module])
254         ]
255 )
256 LIBS="$SAVELIBS"
257
258 # Should we build ssh2 checks?
259 SAVELIBS="$LIBS"
260 AC_CHECK_LIB(ssh2, libssh2_session_init_ex,
261         [
262                 BUILD_MODULES="$BUILD_MODULES ssh2.$MODULEEXT"
263         ],
264         [
265                 AC_MSG_WARN([No libssh2, skipping ssh2 module])
266         ]
267 )
268 LIBS="$SAVELIBS"
269
270 AC_MSG_CHECKING([libxml2 cflags])
271 XML2CFLAGS=`xml2-config --cflags`
272 CFLAGS="$CFLAGS $XML2CFLAGS"
273 AC_MSG_RESULT([$XML2CFLAGS])
274
275 AC_MSG_CHECKING([libxml2 libs])
276 XML2LIBS=`xml2-config --libs`
277 LIBS="$LIBS $XML2LIBS"
278 AC_MSG_RESULT([$XML2LIBS])
279
280 AC_CHECK_FUNC(xmlParseDocument, , [AC_MSG_ERROR(*** libxml2 is required ***)])
281
282 AC_MSG_CHECKING([libxslt cflags])
283 XSLTCFLAGS=`xslt-config --cflags`
284 CFLAGS="$CFLAGS $XSLTCFLAGS"
285 AC_MSG_RESULT([$XSLTCFLAGS])
286
287 AC_MSG_CHECKING([libxslt libs])
288 XSLTLIBS=`xslt-config --libs`
289 LIBS="$LIBS $XSLTLIBS"
290 AC_MSG_RESULT([$XSLTLIBS])
291
292 AC_CHECK_FUNC(xsltParseStylesheetDoc, , [AC_MSG_ERROR(*** libxslt is required ***)])
293
294 APRPREFIX="`apr-1-config --prefix`"
295 AC_SUBST(APRPREFIX)
296 AC_MSG_RESULT([$APRPREFIX])
297
298 AC_MSG_CHECKING([libapr cflags])
299 APRCFLAGS="`apr-1-config --cflags --cppflags --includes`"
300 AC_SUBST(APRCFLAGS)
301 AC_MSG_RESULT([$APRCFLAGS])
302
303 AC_MSG_CHECKING([libapr libs])
304 APRLIBS="`apr-1-config --link-ld --ldflags --libs`"
305 AC_SUBST(APRLIBS)
306 AC_MSG_RESULT([$APRLIBS])
307
308 AC_MSG_CHECKING([libcurl cflags])
309 CURLCFLAGS="`curl-config --cflags`"
310 AC_SUBST(CURLCFLAGS)
311 AC_MSG_RESULT([$CURLCFLAGS])
312
313 AC_MSG_CHECKING([libcurl libs])
314 CURLLIBS="`curl-config --libs`"
315 AC_SUBST(CURLLIBS)
316 AC_MSG_RESULT([$CURLLIBS])
317
318 AC_TRY_LINK([],
319         [ issetugid(); ],
320         [ ac_cv_libc_defines_issetugid="yes" ],
321         [ ac_cv_libc_defines_issetugid="no" ]
322 )
323 if test "x$ac_cv_libc_defines_issetugid" = "xyes" ; then
324         AC_DEFINE(HAVE_ISSETUGID)
325 fi
326
327 AC_MSG_CHECKING([whether sem_init works])
328 AC_TRY_RUN(
329         [
330 #include <semaphore.h>
331 int main(void){sem_t s;return (0 != sem_init(&s,0,0));}
332         ],
333         [
334                 AC_MSG_RESULT(yes)
335                 AC_DEFINE(WORKING_SEM_INIT)
336         ],
337         [
338                 AC_MSG_RESULT(no)
339                 AC_MSG_WARN([****** sem_init() is broken, I'll implement one myself.])
340         ]
341 )
342
343 AC_FUNC_STRFTIME
344 AC_CHECK_FUNCS(ssetugid strlcpy strnstrn openpty inet_pton inet_ntop getopt \
345                poll)
346
347 # Checks for header files.
348 AC_CHECK_HEADERS(sys/file.h sys/types.h dirent.h sys/param.h fcntl.h errno.h limits.h \
349                  sys/resource.h pthread.h semaphore.h pwd.h stdio.h stdlib.h string.h \
350                  ctype.h unistd.h time.h pty.h sys/stat.h sys/event.h libkern/OSAtomic.h \
351                  term.h termio.h termios.h curses.h sys/cdefs.h grp.h netinet/in_systm.h \
352                  sys/ioctl_compat.h sys/filio.h util.h sys/time.h sys/mman.h \
353                  stropts.h sys/stream.h alloca.h sys/wait.h)
354
355 AC_CHECK_FUNCS(getpwnam_r)
356 GETPWNAM_R_POSIX
357 AC_CHECK_FUNCS(getgrnam_r)
358 GETGRNAM_R_POSIX
359
360 AC_MSG_CHECKING(for tputs() function final argument type)
361 AC_EGREP_CPP([tputs.*[(][       ]*char[         ]*[)]],
362                 [#if defined(HAVE_TERM_H)
363                  #include <term.h>
364                  #endif
365                  #if defined(HAVE_CURSES_H)
366                  #include <curses.h>
367                  #endif],
368                 [AC_MSG_RESULT(char)
369                  AC_DEFINE(TPUTS_TAKES_CHAR)],
370                 [AC_MSG_RESULT(not char)])
371
372 AC_CACHE_CHECK([for epoll support], ac_cv_have_epoll, [
373         AC_TRY_LINK(
374                 [ #include <sys/types.h> ],
375                 [ u_int a; a = epoll_create(); ],
376                 [ ac_cv_have_epoll="yes" ],
377                 [ ac_cv_have_epoll="no" ]
378         )
379 ])
380 if test "x$ac_cv_have_epoll" = "xyes" ; then
381         AC_DEFINE(HAVE_EPOLL)
382         EVENTER_OBJS="$EVENTER_OBJS eventer_epoll_impl.o"
383         AC_DEFINE_UNQUOTED(DEFAULT_EVENTER, "epoll")
384         have_epoll=1
385 fi
386
387 AC_CACHE_CHECK([for kqueue support], ac_cv_have_kqueue, [
388         AC_TRY_LINK(
389                 [ #include <sys/types.h> ],
390                 [ u_int a; a = kqueue(); ],
391                 [ ac_cv_have_kqueue="yes" ],
392                 [ ac_cv_have_kqueue="no" ]
393         )
394 ])
395 if test "x$ac_cv_have_kqueue" = "xyes" ; then
396         AC_DEFINE(HAVE_KQUEUE)
397         EVENTER_OBJS="$EVENTER_OBJS eventer_kqueue_impl.o"
398         AC_DEFINE_UNQUOTED(DEFAULT_EVENTER, "kqueue")
399         have_kqueue=1
400 fi
401
402 AC_CACHE_CHECK([for Solaris ports support], ac_cv_have_ports, [
403         AC_TRY_LINK(
404                 [ #include <port.h> ],
405                 [ u_int a; a = port_create(); ],
406                 [ ac_cv_have_ports="yes" ],
407                 [ ac_cv_have_ports="no" ]
408         )
409 ])
410 if test "x$ac_cv_have_ports" = "xyes" ; then
411         AC_DEFINE(HAVE_PORTS)
412         EVENTER_OBJS="$EVENTER_OBJS eventer_ports_impl.o"
413         AC_DEFINE_UNQUOTED(DEFAULT_EVENTER, "ports")
414         have_ports=1
415 fi
416
417 AC_SUBST(EVENTER_OBJS)
418
419 AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
420         AC_TRY_COMPILE(
421                 [ #include <sys/types.h> ],
422                 [ u_int a; a = 1;],
423                 [ ac_cv_have_u_int="yes" ],
424                 [ ac_cv_have_u_int="no" ]
425         )
426 ])
427 if test "x$ac_cv_have_u_int" = "xyes" ; then
428         AC_DEFINE(HAVE_U_INT)
429         have_u_int=1
430 fi
431
432 AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
433         AC_TRY_COMPILE(
434                 [ #include <sys/types.h> ],
435                 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
436                 [ ac_cv_have_intxx_t="yes" ],
437                 [ ac_cv_have_intxx_t="no" ]
438         )
439 ])
440 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
441         AC_DEFINE(HAVE_INTXX_T)
442         have_intxx_t=1
443 fi
444        
445 AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [
446         AC_TRY_COMPILE(
447                 [ #include <sys/types.h> ],
448                 [ int64_t a; a = 1;],
449                 [ ac_cv_have_int64_t="yes" ],
450                 [ ac_cv_have_int64_t="no" ]
451         )
452 ])
453 if test "x$ac_cv_have_int64_t" = "xyes" ; then
454         AC_DEFINE(HAVE_INT64_T)
455         have_int64_t=1
456 fi
457        
458 AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
459         AC_TRY_COMPILE(
460                 [ #include <sys/types.h> ],
461                 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
462                 [ ac_cv_have_u_intxx_t="yes" ],
463                 [ ac_cv_have_u_intxx_t="no" ]
464         )
465 ])
466 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
467         AC_DEFINE(HAVE_U_INTXX_T)
468         have_u_intxx_t=1
469 fi
470
471 AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [
472         AC_TRY_COMPILE(
473                 [ #include <sys/types.h> ],
474                 [ u_int64_t a; a = 1;],
475                 [ ac_cv_have_u_int64_t="yes" ],
476                 [ ac_cv_have_u_int64_t="no" ]
477         )
478 ])
479 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
480         AC_DEFINE(HAVE_U_INT64_T)
481         have_u_int64_t=1
482 fi
483
484 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
485            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
486 then
487         AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
488         AC_TRY_COMPILE(
489                 [
490 #include <sys/bitypes.h>
491                 ],
492                 [
493                         int8_t a; int16_t b; int32_t c;
494                         u_int8_t e; u_int16_t f; u_int32_t g;
495                         a = b = c = e = f = g = 1;
496                 ],
497                 [
498                         AC_DEFINE(HAVE_U_INTXX_T)
499                         AC_DEFINE(HAVE_INTXX_T)
500                         AC_MSG_RESULT(yes)
501                 ],
502                 [AC_MSG_RESULT(no)]
503         )
504 fi
505
506 if test -z "$have_u_intxx_t" ; then
507         AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
508                 AC_TRY_COMPILE(
509                         [
510 #include <sys/types.h>
511                         ],
512                         [ uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; ],
513                         [ ac_cv_have_uintxx_t="yes" ],
514                         [ ac_cv_have_uintxx_t="no" ]
515                 )
516         ])
517         if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
518                 AC_DEFINE(HAVE_UINTXX_T)
519         fi
520 fi
521
522 AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t, [
523         AC_TRY_COMPILE(
524                 [
525 #include <sys/types.h>
526 #include <sys/socket.h>
527                 ],
528                 [socklen_t foo; foo = 1235;],
529                 [ ac_cv_have_socklen_t="yes" ],
530                 [ ac_cv_have_socklen_t="no" ]
531         )
532 ])
533 if test "x$ac_cv_have_socklen_t" = "xyes" ; then
534         AC_DEFINE(HAVE_SOCKLEN_T)
535 fi
536
537 AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [
538         AC_TRY_COMPILE(
539                 [
540 #include <sys/types.h>
541                 ],
542                 [ size_t foo; foo = 1235; ],
543                 [ ac_cv_have_size_t="yes" ],
544                 [ ac_cv_have_size_t="no" ]
545         )
546 ])
547 if test "x$ac_cv_have_size_t" = "xyes" ; then
548         AC_DEFINE(HAVE_SIZE_T)
549 fi
550
551 AC_CACHE_CHECK([for ssize_t], ac_cv_have_ssize_t, [
552         AC_TRY_COMPILE(
553                 [
554 #include <sys/types.h>
555                 ],
556                 [ ssize_t foo; foo = 1235; ],
557                 [ ac_cv_have_ssize_t="yes" ],
558                 [ ac_cv_have_ssize_t="no" ]
559         )
560 ])
561 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
562         AC_DEFINE(HAVE_SSIZE_T)
563 fi
564
565 AC_SUBST(BUILD_MODULES)
566
567 docdir="docs"
568 mansubdir="man"
569 AC_SUBST(docdir)
570 AC_SUBST(mansubdir)
571 SHCFLAGS="$PICFLAGS $CFLAGS"
572 AC_SUBST(SHCFLAGS)
573
574 AC_MSG_CHECKING([Resolving libexec path...])
575 fullpath=$libexecdir
576 while test "x$temppath" != "x$fullpath" ; do
577   temppath=$fullpath
578   fullpath=`eval echo ${fullpath}`
579 done
580 fullpath=`echo $fullpath | sed "s~NONE~$ac_default_prefix~"`
581 AC_MSG_RESULT([$fullpath/noit])
582 AC_DEFINE_UNQUOTED(MODULES_DIR, "${fullpath}/noit")
583 MODULES_DIR=${fullpath}/noit
584 AC_SUBST(MODULES_DIR)
585
586 AC_MSG_CHECKING([Resolving sysconfdir path...])
587 fullpath=$sysconfdir
588 while test "x$temppath" != "x$fullpath" ; do
589   temppath=$fullpath
590   fullpath=`eval echo ${fullpath}`
591 done
592 fullpath=`echo $fullpath | sed "s~NONE~$ac_default_prefix~"`
593 AC_MSG_RESULT([$fullpath])
594 AC_DEFINE_UNQUOTED(ETC_DIR, "${fullpath}")
595 ETC_DIR=${fullpath}
596 AC_SUBST(ETC_DIR)
597
598
599 AC_OUTPUT([
600 Makefile
601 src/Makefile
602 src/eventer/Makefile
603 src/jlog/Makefile
604 src/jlog/perl/Makefile.PL
605 src/udns/Makefile
606 src/man/Makefile
607 src/modules/Makefile
608 src/modules-lua/Makefile
609 src/utils/Makefile
610 src/noitedit/Makefile
611 src/lua/Makefile
612 src/stomp/Makefile
613 src/java/Makefile
614 src/java/run-iep.sh
615 sql/Makefile
616 test/Makefile
617 ])
Note: See TracBrowser for help on using the browser.