configure.ac 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ(2.59)
  4. # This version is the version returned by ns-slapd -v
  5. AC_INIT([dirsrv], [1.2.0], [http://bugzilla.redhat.com/])
  6. # AC_CONFIG_HEADER must be called right after AC_INIT.
  7. AC_CONFIG_HEADERS([config.h])
  8. AM_INIT_AUTOMAKE([1.9 foreign subdir-objects])
  9. AM_MAINTAINER_MODE
  10. AC_CANONICAL_HOST
  11. # Checks for programs.
  12. AC_PROG_CXX
  13. AC_PROG_CC
  14. AM_PROG_CC_C_O
  15. AM_PROG_AS
  16. # disable static libs by default - we only use a couple
  17. AC_DISABLE_STATIC
  18. AC_PROG_LIBTOOL
  19. # Checks for header files.
  20. AC_HEADER_DIRENT
  21. AC_HEADER_STDC
  22. AC_HEADER_SYS_WAIT
  23. AC_CHECK_HEADERS([arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/file.h sys/socket.h sys/time.h unistd.h inttypes.h])
  24. # Checks for typedefs, structures, and compiler characteristics.
  25. AC_HEADER_STAT
  26. AC_C_CONST
  27. AC_HEADER_STDBOOL
  28. AC_TYPE_UID_T
  29. AC_TYPE_PID_T
  30. AC_TYPE_SIZE_T
  31. AC_HEADER_TIME
  32. AC_STRUCT_TM
  33. # Checks for library functions.
  34. AC_FUNC_CHOWN
  35. AC_FUNC_CLOSEDIR_VOID
  36. AC_FUNC_ERROR_AT_LINE
  37. AC_FUNC_FORK
  38. AC_FUNC_LSTAT
  39. AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
  40. AC_FUNC_MALLOC
  41. AC_FUNC_MEMCMP
  42. AC_FUNC_MMAP
  43. AC_TYPE_SIGNAL
  44. AC_FUNC_STAT
  45. AC_FUNC_STRERROR_R
  46. AC_FUNC_STRFTIME
  47. AC_FUNC_VPRINTF
  48. AC_CHECK_FUNCS([setrlimit endpwent ftruncate getcwd gethostbyname inet_ntoa localtime_r memmove memset mkdir munmap putenv rmdir socket strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strstr strtol tzset])
  49. AC_MSG_CHECKING(for --enable-debug)
  50. AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [Enable debug features (default: no)]),
  51. [
  52. AC_MSG_RESULT(yes)
  53. debug_defs="-DDEBUG -DMCC_DEBUG"
  54. ],
  55. [
  56. AC_MSG_RESULT(no)
  57. debug_defs=""
  58. ])
  59. AC_SUBST([debug_defs])
  60. # Used for legacy style packaging where we bundle all of the dependencies.
  61. AC_MSG_CHECKING(for --enable-bundle)
  62. AC_ARG_ENABLE(bundle, AS_HELP_STRING([--enable-bundle], [Enable bundled dependencies (default: no)]),
  63. [
  64. AC_MSG_RESULT(yes)
  65. bundle="1";
  66. ],
  67. [
  68. AC_MSG_RESULT(no)
  69. bundle="";
  70. ])
  71. AM_CONDITIONAL(BUNDLE,test "$bundle" = "1")
  72. # these enables are for optional or experimental features
  73. if test -z "$enable_pam_passthru" ; then
  74. enable_pam_passthru=yes # if not set on cmdline, set default
  75. fi
  76. AC_MSG_CHECKING(for --enable-pam-passthru)
  77. AC_ARG_ENABLE(pam-passthru,
  78. AS_HELP_STRING([--enable-pam-passthru],
  79. [enable the PAM passthrough auth plugin (default: yes)]))
  80. if test "$enable_pam_passthru" = yes ; then
  81. AC_MSG_RESULT(yes)
  82. AC_DEFINE([ENABLE_PAM_PASSTHRU], [1], [enable the pam passthru auth plugin])
  83. else
  84. AC_MSG_RESULT(no)
  85. fi
  86. AM_CONDITIONAL(enable_pam_passthru,test "$enable_pam_passthru" = "yes")
  87. if test -z "$enable_dna" ; then
  88. enable_dna=yes # if not set on cmdline, set default
  89. fi
  90. AC_MSG_CHECKING(for --enable-dna)
  91. AC_ARG_ENABLE(dna,
  92. AS_HELP_STRING([--enable-dna],
  93. [enable the Distributed Numeric Assignment (DNA) plugin (default: yes)]))
  94. if test "$enable_dna" = yes ; then
  95. AC_MSG_RESULT(yes)
  96. AC_DEFINE([ENABLE_DNA], [1], [enable the dna plugin])
  97. else
  98. AC_MSG_RESULT(no)
  99. fi
  100. AM_CONDITIONAL(enable_dna,test "$enable_dna" = "yes")
  101. if test -z "$enable_ldapi" ; then
  102. enable_ldapi=yes # if not set on cmdline, set default
  103. fi
  104. AC_MSG_CHECKING(for --enable-ldapi)
  105. AC_ARG_ENABLE(ldapi,
  106. AS_HELP_STRING([--enable-ldapi],
  107. [enable LDAP over unix domain socket (LDAPI) support (default: yes)]))
  108. if test "$enable_ldapi" = yes ; then
  109. AC_MSG_RESULT(yes)
  110. AC_DEFINE([ENABLE_LDAPI], [1], [enable ldapi support in the server])
  111. else
  112. AC_MSG_RESULT(no)
  113. fi
  114. AM_CONDITIONAL(enable_ldapi,test "$enable_ldapi" = "yes")
  115. if test -z "$enable_autobind" ; then
  116. enable_autobind=no # if not set on cmdline, set default
  117. fi
  118. AC_MSG_CHECKING(for --enable-autobind)
  119. AC_ARG_ENABLE(autobind,
  120. AS_HELP_STRING([--enable-autobind],
  121. [enable auto bind over unix domain socket (LDAPI) support (default: no)]))
  122. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  123. AC_MSG_RESULT(yes)
  124. AC_DEFINE([ENABLE_AUTOBIND], [1], [enable ldapi auto bind support in the server])
  125. else
  126. AC_MSG_RESULT(no)
  127. fi
  128. AM_CONDITIONAL(enable_autobind,test "$enable_autobind" = "yes")
  129. if test -z "$enable_auto_dn_suffix" ; then
  130. enable_auto_dn_suffix=no # if not set on cmdline, set default
  131. fi
  132. AC_MSG_CHECKING(for --enable-auto-dn-suffix)
  133. AC_ARG_ENABLE(autobind,
  134. AS_HELP_STRING([--enable-auto-dn-suffix],
  135. [enable auto bind with auto dn suffix over unix domain socket (LDAPI) support (default: no)]))
  136. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  137. AC_MSG_RESULT(yes)
  138. AC_DEFINE([ENABLE_AUTO_DN_SUFFIX], [1], [enable ldapi auto bind with auto dn suffix support in the server])
  139. else
  140. AC_MSG_RESULT(no)
  141. fi
  142. AM_CONDITIONAL(enable_auto_dn_suffix,test "$enable_auto_dn_suffix" = "yes")
  143. if test -z "$enable_bitwise" ; then
  144. enable_bitwise=yes # if not set on cmdline, set default
  145. fi
  146. AC_MSG_CHECKING(for --enable-bitwise)
  147. AC_ARG_ENABLE(bitwise,
  148. AS_HELP_STRING([--enable-bitwise],
  149. [enable the bitwise matching rule plugin (default: yes)]))
  150. if test "$enable_bitwise" = yes ; then
  151. AC_MSG_RESULT(yes)
  152. AC_DEFINE([ENABLE_BITWISE], [1], [enable the bitwise plugin])
  153. else
  154. AC_MSG_RESULT(no)
  155. fi
  156. AM_CONDITIONAL(enable_bitwise,test "$enable_bitwise" = "yes")
  157. if test -z "$enable_presence" ; then
  158. enable_presence=no # if not set on cmdline, set default
  159. fi
  160. AC_MSG_CHECKING(for --enable-presence)
  161. AC_ARG_ENABLE(presence,
  162. AS_HELP_STRING([--enable-presence],
  163. [enable the presence plugin (default: no)]))
  164. if test "$enable_presence" = yes ; then
  165. AC_MSG_RESULT(yes)
  166. AC_DEFINE([ENABLE_PRESENCE], [1], [enable the presence plugin])
  167. else
  168. AC_MSG_RESULT(no)
  169. fi
  170. AM_CONDITIONAL(enable_presence,test "$enable_presence" = "yes")
  171. # the default prefix - override with --prefix or --with-fhs
  172. AC_PREFIX_DEFAULT([/opt/$PACKAGE_NAME])
  173. brand=389
  174. capbrand=389
  175. vendor="389 Project"
  176. m4_include(m4/fhs.m4)
  177. # installation paths - by default, we store everything
  178. # under the prefix. The with-fhs option will use /usr,
  179. # /etc, and /var. The with-fhs-opt option will use the
  180. # prefix, but it's sysconfdir and localstatedir will be
  181. # /etc/opt, and /var/opt.
  182. if test "$with_fhs_opt" = "yes"; then
  183. # Override sysconfdir and localstatedir if FHS optional
  184. # package was requested.
  185. sysconfdir='/etc/opt'
  186. localstatedir='/var/opt'
  187. # relative to datadir
  188. sampledatadir=/data
  189. # relative to datadir
  190. scripttemplatedir=/script-templates
  191. # relative to libdir
  192. serverdir=
  193. # relative to libdir
  194. serverplugindir=/plugins
  195. # relative to datadir
  196. infdir=/inf
  197. # relative to datadir
  198. mibdir=/mibs
  199. # location of property/resource files, relative to datadir
  200. propertydir=/properties
  201. # relative to libdir
  202. perldir=/perl
  203. else
  204. if test "$with_fhs" = "yes"; then
  205. ac_default_prefix=/usr
  206. prefix=$ac_default_prefix
  207. exec_prefix=$prefix
  208. dnl as opposed to the default /usr/etc
  209. sysconfdir='/etc'
  210. dnl as opposed to the default /usr/var
  211. localstatedir='/var'
  212. fi
  213. # relative to datadir
  214. sampledatadir=/$PACKAGE_NAME/data
  215. # relative to datadir
  216. scripttemplatedir=/$PACKAGE_NAME/script-templates
  217. # relative to libdir
  218. serverdir=/$PACKAGE_NAME
  219. # relative to libdir
  220. serverplugindir=/$PACKAGE_NAME/plugins
  221. # relative to datadir
  222. infdir=/$PACKAGE_NAME/inf
  223. # relative to datadir
  224. mibdir=/$PACKAGE_NAME/mibs
  225. # location of property/resource files, relative to datadir
  226. propertydir=/$PACKAGE_NAME/properties
  227. # relative to libdir
  228. perldir=/$PACKAGE_NAME/perl
  229. fi
  230. # if mandir is the default value, override it
  231. # otherwise, the user must have set it - just use it
  232. if test X"$mandir" = X'${prefix}/man' ; then
  233. mandir='$(datadir)/man'
  234. fi
  235. # Shared paths for all layouts
  236. # relative to sysconfdir
  237. configdir=/$PACKAGE_NAME/config
  238. # relative to sysconfdir
  239. schemadir=/$PACKAGE_NAME/schema
  240. # default user, group
  241. defaultuser=nobody
  242. defaultgroup=nobody
  243. AC_SUBST(configdir)
  244. AC_SUBST(sampledatadir)
  245. AC_SUBST(propertydir)
  246. AC_SUBST(schemadir)
  247. AC_SUBST(serverdir)
  248. AC_SUBST(serverplugindir)
  249. AC_SUBST(scripttemplatedir)
  250. AC_SUBST(perldir)
  251. AC_SUBST(infdir)
  252. AC_SUBST(mibdir)
  253. AC_SUBST(mandir)
  254. AC_SUBST(defaultuser)
  255. AC_SUBST(defaultgroup)
  256. # check for --with-instconfigdir
  257. AC_MSG_CHECKING(for --with-instconfigdir)
  258. AC_ARG_WITH(instconfigdir,
  259. AS_HELP_STRING([--with-instconfigdir=/path],
  260. [Base directory for instance specific writable configuration directories (default $sysconfdir/$PACKAGE_NAME)]),
  261. [
  262. if test $withval = yes ; then
  263. AC_ERROR([Please specify a full path with --with-instconfigdir])
  264. fi
  265. instconfigdir="$withval"
  266. AC_MSG_RESULT($withval)
  267. ],
  268. [
  269. dnl this value is expanded out in Makefile.am
  270. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  271. AC_MSG_RESULT(no)
  272. ])
  273. AC_SUBST(instconfigdir)
  274. # WINNT should be true if building on Windows system not using
  275. # cygnus, mingw, or the like and using cmd.exe as the shell
  276. AM_CONDITIONAL([WINNT], false)
  277. # Deal with platform dependent defines
  278. # relative to sysconfdir
  279. initdir=/rc.d
  280. # on most platforms, we will just use perl from PATH
  281. # On some platforms, we cannot. Why not just use any old
  282. # perl? Because of perldap. We use a perldap that is
  283. # compiled to either 32bit or 64bit, so we must use a native
  284. # perl binary compiled with the same bitsize. On Solaris
  285. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  286. # those with our 64 bit compiled product.
  287. perlexec='/usr/bin/env perl'
  288. case $host in
  289. *-*-linux*)
  290. AC_DEFINE([XP_UNIX], [1], [UNIX])
  291. AC_DEFINE([Linux], [1], [Linux])
  292. AC_DEFINE([LINUX], [1], [Linux])
  293. AC_DEFINE([LINUX2_0], [1], [Linux 2.0])
  294. AC_DEFINE([LINUX2_2], [1], [Linux 2.2])
  295. AC_DEFINE([LINUX2_4], [1], [Linux 2.4])
  296. AC_DEFINE([_GNU_SOURCE], [1], [GNU Source])
  297. platform="linux"
  298. # relative to sysconfdir
  299. initdir=/rc.d/init.d
  300. # do arch specific linux stuff here
  301. case $host in
  302. i*86-*-linux*)
  303. AC_DEFINE([CPU_x86], [], [cpu type x86])
  304. AC_DEFINE([ATOMIC_64BIT_OPERATIONS], [1], [enabling atomic counter])
  305. AC_CHECK_DECLS([__sync_add_and_fetch])
  306. ;;
  307. x86_64-*-linux*)
  308. AC_DEFINE([CPU_x86_64], [], [cpu type x86_64])
  309. AC_DEFINE([ATOMIC_64BIT_OPERATIONS], [1], [enabling atomic counter])
  310. AC_CHECK_DECLS([__sync_add_and_fetch])
  311. ;;
  312. esac
  313. ;;
  314. ia64-hp-hpux*)
  315. AC_DEFINE([XP_UNIX], [1], [UNIX])
  316. AC_DEFINE([hpux], [1], [HP-UX])
  317. AC_DEFINE([HPUX], [1], [HP-UX])
  318. AC_DEFINE([HPUX11], [1], [HP-UX 11])
  319. AC_DEFINE([HPUX11_23], [1], [HP-UX 11.23])
  320. AC_DEFINE([CPU_ia64], [], [cpu type ia64])
  321. AC_DEFINE([OS_hpux], [1], [OS HP-UX])
  322. AC_DEFINE([_POSIX_C_SOURCE], [199506L], [POSIX revision])
  323. AC_DEFINE([_HPUX_SOURCE], [1], [Source namespace])
  324. AC_DEFINE([_INCLUDE_STDC__SOURCE_199901], [1], [to pick up all of the printf format macros in inttypes.h])
  325. AC_DEFINE([ATOMIC_64BIT_OPERATIONS], [1], [enabling atomic counter])
  326. # assume 64 bit
  327. perlexec='/opt/perl_64/bin/perl'
  328. platform="hpux"
  329. initconfigdir="/$PACKAGE_NAME/config"
  330. ;;
  331. hppa*-hp-hpux*)
  332. AC_DEFINE([XP_UNIX], [1], [UNIX])
  333. AC_DEFINE([hpux], [1], [HP-UX])
  334. AC_DEFINE([HPUX], [1], [HP-UX])
  335. AC_DEFINE([HPUX11], [1], [HP-UX 11])
  336. AC_DEFINE([HPUX11_11], [1], [HP-UX 11.11])
  337. AC_DEFINE([CPU_hppa], [], [cpu type pa-risc])
  338. AC_DEFINE([OS_hpux], [1], [OS HP-UX])
  339. AC_DEFINE([_POSIX_C_SOURCE], [199506L], [POSIX revision])
  340. AC_DEFINE([_HPUX_SOURCE], [1], [Source namespace])
  341. AC_DEFINE([_INCLUDE_STDC__SOURCE_199901], [1], [to pick up all of the printf format macros in inttypes.h])
  342. AC_DEFINE([ATOMIC_64BIT_OPERATIONS], [1], [enabling atomic counter])
  343. # assume 64 bit
  344. initconfigdir="/$PACKAGE_NAME/config"
  345. perlexec='/opt/perl_64/bin/perl'
  346. platform="hpux"
  347. ;;
  348. sparc-sun-solaris*)
  349. AC_DEFINE([XP_UNIX], [1], [UNIX])
  350. AC_DEFINE([SVR4], [1], [SVR4])
  351. AC_DEFINE([__svr4], [1], [SVR4])
  352. AC_DEFINE([__svr4__], [1], [SVR4])
  353. AC_DEFINE([_SVID_GETTOD], [1], [SVID_GETTOD])
  354. AC_DEFINE([SOLARIS], [1], [SOLARIS])
  355. AC_DEFINE([CPU_sparc], [], [cpu type sparc])
  356. AC_DEFINE([OS_solaris], [1], [OS SOLARIS])
  357. AC_DEFINE([sunos5], [1], [SunOS5])
  358. AC_DEFINE([OSVERSION], [509], [OS version])
  359. AC_DEFINE([_REENTRANT], [1], [_REENTRANT])
  360. AC_DEFINE([NO_DOMAINNAME], [1], [no getdomainname])
  361. AC_DEFINE([ATOMIC_64BIT_OPERATIONS], [1], [enabling atomic counter])
  362. dnl socket nsl and dl are required to link several programs and libdb
  363. LIBSOCKET=-lsocket
  364. AC_SUBST([LIBSOCKET], [$LIBSOCKET])
  365. LIBNSL=-lnsl
  366. AC_SUBST([LIBNSL], [$LIBNSL])
  367. LIBDL=-ldl
  368. AC_SUBST([LIBDL], [$LIBDL])
  369. dnl Cstd and Crun are required to link any C++ related code
  370. LIBCSTD=-lCstd
  371. AC_SUBST([LIBCSTD], [$LIBCSTD])
  372. LIBCRUN=-lCrun
  373. AC_SUBST([LIBCRUN], [$LIBCRUN])
  374. platform="solaris"
  375. # assume 64 bit
  376. perlexec='/usr/lib/sparcv9/dirsec/perl5x/bin/perl'
  377. # relative to sysconfdir
  378. initdir=/init.d
  379. ;;
  380. *)
  381. platform=""
  382. ;;
  383. esac
  384. AC_SUBST(initdir)
  385. AC_SUBST(perlexec)
  386. # set default initconfigdir if not already set
  387. # value will be set so as to be relative to $(sysconfdir)
  388. if test -z "$initconfigdir" ; then
  389. if test -d /etc/sysconfig ; then
  390. initconfigdir=/sysconfig
  391. elif test -d /etc/default ; then
  392. initconfigdir=/default
  393. else
  394. initconfigdir="/$PACKAGE_NAME/config"
  395. fi
  396. fi
  397. AC_SUBST(initconfigdir)
  398. AM_CONDITIONAL(HPUX,test "$platform" = "hpux")
  399. AM_CONDITIONAL(SOLARIS,test "$platform" = "solaris")
  400. # Check for library dependencies
  401. m4_include(m4/nspr.m4)
  402. m4_include(m4/nss.m4)
  403. m4_include(m4/mozldap.m4)
  404. m4_include(m4/db.m4)
  405. m4_include(m4/sasl.m4)
  406. m4_include(m4/svrcore.m4)
  407. m4_include(m4/icu.m4)
  408. m4_include(m4/netsnmp.m4)
  409. m4_include(m4/kerberos.m4)
  410. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  411. AC_SUBST(PACKAGE_BASE_VERSION)
  412. # set sasl_path for wrapper scripts
  413. if test -z "$sasl_libdir" ; then
  414. sasl_path="$libdir/sasl2"
  415. else
  416. sasl_path="$sasl_libdir/sasl2"
  417. fi
  418. # write out paths for binary components
  419. AC_SUBST(nspr_inc)
  420. AC_SUBST(nspr_lib)
  421. AC_SUBST(nspr_libdir)
  422. AC_SUBST(nss_inc)
  423. AC_SUBST(nss_lib)
  424. AC_SUBST(nss_libdir)
  425. AC_SUBST(ldapsdk_inc)
  426. AC_SUBST(ldapsdk_lib)
  427. AC_SUBST(ldapsdk_libdir)
  428. AC_SUBST(ldapsdk_bindir)
  429. AC_SUBST(db_inc)
  430. AC_SUBST(db_incdir)
  431. AC_SUBST(db_lib)
  432. AC_SUBST(db_libdir)
  433. AC_SUBST(db_bindir)
  434. AC_SUBST(db_libver)
  435. AC_SUBST(sasl_inc)
  436. AC_SUBST(sasl_lib)
  437. AC_SUBST(sasl_libdir)
  438. AC_SUBST(sasl_path)
  439. AC_SUBST(svrcore_inc)
  440. AC_SUBST(svrcore_lib)
  441. AC_SUBST(icu_lib)
  442. AC_SUBST(icu_inc)
  443. AC_SUBST(icu_bin)
  444. AC_SUBST(netsnmp_inc)
  445. AC_SUBST(netsnmp_lib)
  446. AC_SUBST(netsnmp_libdir)
  447. AC_SUBST(netsnmp_link)
  448. AC_SUBST(brand)
  449. AC_SUBST(capbrand)
  450. AC_SUBST(vendor)
  451. AC_DEFINE([LDAP_DEBUG], [1], [LDAP debug flag])
  452. AC_DEFINE([LDAP_DONT_USE_SMARTHEAP], [1], [Don't use smartheap])
  453. # libtool on fedora/rhel contains some gcc-isms which cause problems
  454. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  455. # we remove them here
  456. if test "$GCC" != yes ; then
  457. AC_MSG_NOTICE([Not using gcc - fixing libtool to remove gcc-isms . . .])
  458. cp -p libtool libtool.orig
  459. cp -p libtool libtool.tmp
  460. # dnl note the special chars @<:@ and @:>@ - since m4 treats [ and ] specially,
  461. # we have to use the quadrigraph @<:@ for [ and @:>@ for ] - and you thought
  462. # perl produced write-only code . . .
  463. sed -e '/^gcc_dir/ d' \
  464. -e '/^gcc_ver/ d' \
  465. -e 's/^predep_objects=.*echo \("@<:@^"@:>@*"\).*$/predep_objects=\1/' \
  466. -e 's/^postdep_objects=.*echo \("@<:@^"@:>@*"\).*$/postdep_objects=\1/' \
  467. -e 's/^compiler_lib_search_path=.*echo \("@<:@^"@:>@*"\).*$/compiler_lib_search_path=\1/' \
  468. -e 's/^sys_lib_search_path_spec=.*echo \("@<:@^"@:>@*"\).*$/sys_lib_search_path_spec=\1/' \
  469. libtool > libtool.tmp
  470. cp -p libtool.tmp libtool
  471. rm -f libtool.tmp
  472. fi
  473. AC_CONFIG_FILES([Makefile])
  474. AC_OUTPUT