Ticket #2664 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

configure does not work for fribidi2

Reported by: woodbri Assigned to: dmorissette
Priority: normal Milestone: 5.2 release
Component: Build Problems Version: svn-trunk (development)
Severity: normal Keywords:
Cc: dmorissette, aboudreault

Description

It looks like fribdi2 has changed from using fribidi-config to using pkg-config and this prevents the configure from finding that it has been installed. I built fribidi2 from source and installed it in /usr/local

Daniel Morissette wrote:
> Stephen Woodbridge wrote:
>>
>> mapserver expects
>>
>> --with-fribidi-config=yes
>> --with-fribidi-config=/path/to/fribidi-config
>>
>> BUT the fribidi2 download does not appear to build one!
>>
>> Anyone go any ideas?
>>
>
> I just checked and the previous release (fribidi-0.10.9) did include one, so it
> seems that the fribidi-config script was dropped in fribidi-0.19.1.
>
> Sounds like someone needs to ask about this on their dev list. I think Alan was
> on that list when he worked on that so maybe he could ask.
>
> Daniel

> I'm not aware of any ticket for this. FYI it seems that fribidi-config was
> dropped > in favor of pkg-config. Here is the response we got from their list:

> > Yes.  Dropped in favor of pkg-config.
> >
> > [behdad:0 ~]$ pkg-config --cflags fribidi
> > -I/home/behdad/.local/include/fribidi  [behdad:0 ~]$ pkg-config --libs fribidi
> > -L/home/behdad/.local/lib -lfribidi  

Attachments

configure.patch (3.2 kB) - added by aboudreault on 06/27/08 18:37:58.
mapstring.patch (386 bytes) - added by aboudreault on 06/27/08 18:39:09.

Change History

06/26/08 14:06:15 changed by dmorissette

  • owner changed from mapserverbugs to aboudreault.
  • cc set to dmorissette.

Alan, could you please check this one?

06/27/08 18:36:44 changed by aboudreault

Ok, i modified the configure.in to support pkg-config and fribidi2. There is a new option that we can use: --with-pkg-config[=path] : to specify the /path/to/pkg-config. By default, autoconf will check if the system has pkg-config in it default path. Otherwise set the $PKG_CONFIG to "no".

Now, the --with-fribidi-config can be:

  • no: ...
  • yes: Autoconf will check if the system has fribidi-config. If not, it will check if the pkg-config has fribidi in it's packages list.
  • path to fribidi-config for fribidi
  • path to fribidi.pc for fribidi2

I joined the two path files. (mapstring.c path is because pkg-config and fribidi-config do not return the same include path)

06/27/08 18:37:58 changed by aboudreault

  • attachment configure.patch added.

06/27/08 18:39:09 changed by aboudreault

  • attachment mapstring.patch added.

07/02/08 17:14:00 changed by dmorissette

  • status changed from new to assigned.
  • owner changed from aboudreault to dmorissette.

I have applied the patches in r7771, in time for 5.2.0-beta4.

Leaving ticket open to add relevant updates to README.CONFIGURE

07/02/08 17:14:23 changed by dmorissette

  • cc changed from dmorissette to dmorissette, aboudreault.

07/02/08 17:22:00 changed by dmorissette

  • status changed from assigned to closed.
  • resolution set to fixed.

Closing FIXED. README.CONFIGURE updated in r7772.

07/03/08 11:41:40 changed by dmorissette

SteveW reported the following error that is fixed in r7780:

Daniel,

Trivial testing looks good. I tried it on a couple of systems and also tried 
--with-fribidi-config=../fribidi/fribidi.pc  which worked fine also.

I did get one error below but it seemed to configure and build ok.

./configure: line 11962: =: command not found