<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>11438</bug_id>
          
          <creation_ts>2007-04-10 11:23:12 +0400</creation_ts>
          <short_desc>autoreconf doesn&apos;t pass -I to aclocal</short_desc>
          <delta_ts>2008-11-22 04:26:39 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>autoconf_2.60</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sir Raorn">raorn</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>avm</cc>
    
    <cc>glebfm</cc>
    
    <cc>lav</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>solo</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48562</commentid>
    <comment_count>0</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2007-04-10 11:23:13 +0400</bug_when>
    <thetext>$ autoreconf -fisv -I.
autoreconf-default: Entering directory `.&apos;
autoreconf-default: configure.ac: not using Gettext
autoreconf-default: running: aclocal --force 
/usr/share/aclocal/libmikmod.m4:11: warning: underquoted definition of
AM_PATH_LIBMIKMOD
  run info &apos;(automake)Extending aclocal&apos;
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
autoreconf-default: configure.ac: tracing
autoreconf-default: running: libtoolize --force
/usr/share/aclocal/libmikmod.m4:11: warning: underquoted definition of
AM_PATH_LIBMIKMOD
  run info &apos;(automake)Extending aclocal&apos;
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
autoreconf-default: running: /usr/bin/autoconf-2.5 --include=. --force
configure.ac:177: error: possibly undefined macro:
AC_caolan_FUNC_WHICH_GETHOSTBYNAME_R
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf-default: /usr/bin/autoconf-2.5 failed with exit status: 1
[1]    28598 exit 1     autoreconf -fisv -I.

$ grep -rl AC_caolan_FUNC_WHICH_GETHOSTBYNAME_R .
./ac_gethostbyname_r.m4
./configure
./configure.ac
./autom4te.cache/output.0
./autom4te.cache/output.1

$ cat autogen.sh 
#!/bin/sh
set -e
set -x
aclocal -I .
autoheader
libtoolize --force --automake --copy
automake --gnu --include-deps --copy --add-missing
autoconf

При этом autogen.sh отрабатывает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48682</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2007-04-12 03:20:31 +0400</bug_when>
    <thetext>По хорошему, конечно, надо не autoreconf фичами обвешивать, а правильно
ACLOCAL_AMFLAGS в Makefile.am&apos;ах расставлять, см.
$ info automake &apos;Local Macros&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60561</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2008-01-08 03:00:40 +0300</bug_when>
    <thetext>Тем не менее для autoreconf описано
       -I, --include=DIR
              append directory DIR to search path
но в autoconf этот путь не передаётся.
Надо либо чтобы передавался, либо убрать из документации, раз не работает,
и вообще является нерекомендуемым способом.
P.S.
А за info automake &apos;Local Macros&apos;
огромное спасибо, помогло.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60562</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-01-08 03:11:35 +0300</bug_when>
    <thetext>(In reply to comment #2)
&gt; Тем не менее для autoreconf описано
&gt;        -I, --include=DIR
&gt;               append directory DIR to search path
&gt; но в autoconf этот путь не передаётся.

Нет, этот путь передаётся autoconf&apos;у и autoheader&apos;у,
но не передаётся aclocal&apos;у.
А у aclocal, в отличие от autoconf с autoheader, нет параметра -B.

Т.е. можно пропатчить autoreconf на тему передачи параметра -I ещё и aclocal&apos;у,
но с аналогичным параметром -B ничего не выйдет.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81498</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-11-21 19:59:10 +0300</bug_when>
    <thetext>На чём остановимся?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81510</commentid>
    <comment_count>5</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2008-11-22 01:07:20 +0300</bug_when>
    <thetext>Я согласен расставлять ACLOCAL_AMFLAGS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81519</commentid>
    <comment_count>6</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-11-22 04:26:39 +0300</bug_when>
    <thetext>upstream решил передавать -I aclocal&apos;у.
Хотя ACLOCAL_AMFLAGS конечно лучше.
Fixed in 2.63-alt2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>