Douglas E. Engert wrote:
> 
> 
> Huie-Ying Lee wrote:
> [...]
>>>
>>>> I changed the above code tp the code below and added the 
>>>> -DSUN_SOLARIS flag to the Maekfile.am file.
>>>>
> [...]
>>>>
>>>> However, the resulting file still picked up the original line.  It 
>>>> seems that the generated Makefile file doesn't recognize the new 
>>>> "SUN_SOLARIS" flag. Currently, I worked around this problem, but I 
>>>> would like to know which file that I should update so that the 
>>>> "-DSUN_SOLARIS" will be recognized.
>>>>
>>>
>>> Did you run the ./bootstrap after updating the Makefile.am?
>>
>> No, I didn't run the ./bootstrap script but I did run ".configure".
> 
> Not good enough. You modified the Makefile.am, that is used to generate
> the Makefile.in. by automake. Automake is run from bootstrap.
> configure assumes the Makefile.in is current, so you change was never added
> to Makefile.in so would not be in Makefile.
> 

Thanks for the explaination.

>>
>> The reason that I didn't run the "./bootstrap" script is because this 
>> script will remove the config.sub file and the config.guress file.  
>> However, these two config.* files are needed by the configure script.  
>> Is this a bug in the bootstrap command ?
> 
> No, part of bootstrap is to run automake. It should take care of copying
> in config.sub and config.guess
> 

I looked into the bootstrap command more carefully today.   I found that 
Solaris doesn't support "automake", "aclocal" and "libtoolize" commands 
currently, so the bootstrap command can be not run
completely as expected.  For the time being, it looks that I need to continue 
using my workaround which is actually not too bad.   My workaround is 

   #ifndef ORIGINAL
        new_code
   #else 
        original_code
   #endif

Thanks,
Huie-Ying 
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to