Re: call AC_DISABLE_SHARED "conditionally" for a certain host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Florian,

* Florian Schricker wrote on Tue, Feb 14, 2006 at 11:03:50AM CET:
> 
> Currently I am on the way on moving some software projects from custom
> makefiles to autoconf. These projects mostly depend on Xerces-C; since
> we want to support Linux, Darwin & MinGW32 I ran into trouble with DLLs
> on MinGW32 depending on Xerces-C DLLs so, for the first releases I
> figured I might just want to disable shared libs on MinGW32  before
> digging deeper on where the problems are.

OK.  This is a Libtool issue, not an Autoconf one.  Cc:ing bug-libtool
for that purpose.

Please let us know where the MINGW32 problems are.  If you did not use
`-no-undefined' while linking, please do so.  Maybe that solves your
issues.

> To do so I did:
> 
> 	AC_CANONICAL_HOST
> 	case "$host" in
> 	  *-*-linux* | *-*-darwin*)
> 	    ;;
> 	  *-*-mingw32*)
> 	    AC_DISABLE_SHARED
> 	    ;;
> 	esac
> 
> But I guess I am missing something; it does not work. Running this
> configure on GNU/Linux gives:
> 
> 	checking whether to build shared libraries...
> 	checking whether to build static libraries... yes

Indeed.  Confirmed with both branch-1-5 and HEAD.  Thanks for reporting
this!

> Any help would be so much appreciated; it's one of the last obstacles
> before our first release ;-)

Well, hope this gets you set for the release:  use

| AC_CANONICAL_HOST
| case "$host" in
|   *-*-linux* | *-*-darwin*)
|     AC_ENABLE_SHARED
|     ;;
|   *-*-mingw32*)
|     AC_DISABLE_SHARED
|     ;;
| esac

and make sure all of that comes before AC_PROG_LIBTOOL.

I'm inclined to "fix" this by adjusting the documentation, not the
implementation of these macros.

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux