<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 30 May, 2019, 2:48 PM Aditya Upadhyay, <<a href="mailto:aadit0402@gmail.com">aadit0402@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, May 30, 2019 at 12:52 AM Gedare Bloom <<a href="mailto:gedare@rtems.org" target="_blank" rel="noreferrer">gedare@rtems.org</a>> wrote:<br>
><br>
> On Tue, May 28, 2019 at 8:23 PM Vaibhav Gupta <<a href="mailto:vaibhavgupta40@gmail.com" target="_blank" rel="noreferrer">vaibhavgupta40@gmail.com</a>> wrote:<br>
> ><br>
> ><br>
> ><br>
> > On Tue, May 28, 2019 at 11:47 AM Aditya Upadhyay <<a href="mailto:aadit0402@gmail.com" target="_blank" rel="noreferrer">aadit0402@gmail.com</a>> wrote:<br>
> >><br>
> >> On Mon, May 27, 2019 at 10:42 PM Vaibhav Gupta <<a href="mailto:vaibhavgupta40@gmail.com" target="_blank" rel="noreferrer">vaibhavgupta40@gmail.com</a>> wrote:<br>
> >> ><br>
> >> > Hello, okay I will keep that in mind.<br>
> >> > .<br>
> >> > .<br>
> >> > .<br>
> >> > .<br>
> >> > But there is one problem with this patch then.<br>
> >> > .<br>
> >> > .<br>
> >> > If i just copy-paste ndbm.h, db.h(needed by ndbm.h) and ndbm.c and make the entry of ndbm.c in Makefile.am.<br>
> >> > Then run 'autoreconf' to add the entry for ndbm.c in Makefile.in. And then run `make` command. There will be compilation error.<br>
> >> > .<br>
> >><br>
> >> See Instructions here about regenerating the configuration files in newlib.<br>
> >> <a href="https://sourceware.org/newlib/README" rel="noreferrer noreferrer" target="_blank">https://sourceware.org/newlib/README</a><br>
> >> Newlib uses a specific version of autoconf. You can use `autoreconf<br>
> >> -fvi` command to regenerate that<br>
> >> Makefile.in file.<br>
> ><br>
> > Okay<br>
> >><br>
> >><br>
> >> > Header files needed by libc/posic/*.c files are present in libc/include directory. It is default path.<br>
> >> > .<br>
> >> > But ndbm.c also requires "hash.h" which is present inside "libc/search".<br>
> >> > .<br>
> >> > To over come it, i had to modify the entry of ndbm.c in Makefile.in and add "-I (topr_srcdir)/search" to specify the compiler for alternative source path.<br>
> >><br>
> >> If you specify any header file inclusion in Makefile.am, then you will<br>
> >> need to add the things manually<br>
> >> and when you will run autoreconf command, this .in file will get updated.<br>
> >><br>
> > I guess I will need to modify <a href="http://configure.in" rel="noreferrer noreferrer" target="_blank">configure.in</a> file. If I am not wrong that is responsible for what autoreconf is doing.<br>
><br>
> You shouldn't be manually modifying any *.in files.<br>
<br>
Basically, After adding any files, We just need to make some entries<br>
in these two files: <a href="http://configure.ac" rel="noreferrer noreferrer" target="_blank">configure.ac</a> and Makefile.am files.<br>
autoheader, autoconf and automake are the tools used when you execute<br>
autoreconf command. It generate <a href="http://config.h.in" rel="noreferrer noreferrer" target="_blank">config.h.in</a>, Makefile. in and that<br>
configure script and When you execute configure script, you get<br>
config.h and Makefile.<br>
Take a look at page no 26 of this file.<br>
<a href="https://elinux.org/images/4/43/Petazzoni.pdf" rel="noreferrer noreferrer" target="_blank">https://elinux.org/images/4/43/Petazzoni.pdf</a></blockquote></div></div><div dir="auto">Thanks!</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
</blockquote></div></div></div>