aboutsummaryrefslogblamecommitdiffstats
path: root/configure.ac
blob: 042c88ce8518d68f37050109f4487cca2ca61cf3 (plain) (tree)
1
2
3
4
                                   
                                                                          
 
                 











                                
                        
 
                                                                           

                                                     

                





                                                                

                                                                              
                           
 
                  
                                                                                                         















                                                             
                                                                              




                            

                                    

                              
                                                                                                          





                                             
                      
                                                                                                              

                                           
                                     

















                                                                          
                     
                                                                                   












                                                                               
                    
                                                                                                          
                                            
                            
                      



                        




                                             






                        
       




                                                                            
 

                                           
                                                                                                             


                             
                          
                               
                                    
                                        
                                           
 

                   



                              
 


                              
                             
 

                 
                                                                  
                  
                     

                                                                         


                        
                                 

                       
           
                                 

                       
     
                                 
                      


     




                           
                     

                 
                 



                  



                                
                                                               
     


                        




                       
                             


     





                      
                       


                                                                                       
                                                                    

                                                                  
                                                          
 
                                                                  

                                                                
 






                                          
                                    
                                            
        
 

           
                              
 

                            
                             
                                                  


             


                             
                                                  


             

            
  
                     

                         






                                                        

             
               
          
           
            
          
              
              
           
 

                                                                        
                                              
                                                      
  



                                                           
                                                         
                                                                           
  


                


                   

                                                                                                                             





                                                      

      
                                         

                                                  

                                                                             
                                               
                                                          
          
                                                                
        
       
                                       


     
                                                                        
 

                         

                            



                                                                  
 
 


                                     
                          
                                                             
 



                                                                                    


           
                                                    

        

                                                                           
 


                        
                                                                                                                













                                                                  





















                                                                                                                           

                            





                                                    
          
             
               
                
             

             
              

  


                                                                  
                                 


                                                


                                                                            

                  


                     




                                         


                        

                            







                                   




                                        

              

                                                                                                                                                                                  

                          



                                                                                         
                                                                                                  
                                                                               
                            







           
 


                           

                                
 






                                     

                     
                                                                                    







                                          

                 
              




























































                                                                                       



                                                          
                                                     
                                                                                                                   



                                                          
            




                              


      

                          
                       
 

                                      


                                 


                   
        


                    
         
        
          
         
         
        
       

  
              
            
 
                                                             
 




                                                   
 
 
                                                   

                    
                                                                                    








                                                            
 
                        
                                                                                           





                                           

                     
     
 






                                       
                                                                                               



















                                                                                            
                                                                                 
                                                                                     

                            




                                                                           


                                                                
 

                       
                   
 
         
                                                                
 








                                   

                                                         
 



                           





                                       
                                                              
                                             

                                                                                                          
                                

                                        

                                                                              

  
                               
                           





                                     
                           
                                    

                            
 

                           


                
           
                                                              







                                   
                                                              












                                       
                              
                  
 



                                   
                   
                            

                              
 

         
                     
 
                  
 

                        
                          
       

                                
                         

                            
                              
                        

       
         

                                 
                         

                             
                               
                         






                                
                            
                              
                        

       
 
                                                                          
                                                                      
                                                                          
 
                                        



                                                                                                                      


                                                
 
                                   
                            
                                                                                                             









                                                                  
 
                       
 
                        
                                  
 

                           


          
                         
                                                                                                          













                                                                                                                                                  
                                       
                                                            


                                                               

  
                                 
                                                                                                
                                                
 



                                         

                                                                                   
                     
 

           










                                                      
                           
 





                                                                                         

                                                                          
                    
 
                                                               

                                                                  
 
                         
 
                                       

                                                                   


                                                
 
                                     
 
                                
 

                        
                                                                                   

               
                                                                              





                                                          
                                                           

                 


                                            
 
                                                  

                                               

                                                                                   

                                                                                         
                                                                             
 
           
 


                                                           
 
                                                             
 
                   

                
 


                         
                                
                             
                                                                                                
                                                   

                                                                  




                  
                                                              
 
                                           
                                                   

                         


                       
        
 
                    

                  
 
                                   
 
                       
 
                        

                       
                                  
 

                          
                      
                                        
                                                                    
                                                                          
                           

  
                                     
 
                                      
 
                    
 
                           
 
                    
 
                         
 
                                       
 
                                     
 

                                

                      
                  
               
 









                                              

       
 
                   






                                   
                       
                                 
 
                        
                                     


                    

                                                                                   









                                                                       


                                     
                               


                      
                 

              







                       






                                   
                                                 







                                         

















                                       









                                   

                                             














                                       
 



                    
                                  





                                      
         
                                                               


                                   
     
                  
                                                                                       
 

                                                                         
                                    


                  



                  
                     






                        
                         


                        






                                                             
                     
                                                                                           
 

                                                                         
                                       


                     







                                                                      







                                          

                        
                                                                                                  








                                           
                                       
                                                  

  











                                                                                                       

                   
                                                                                             








                                           

                    
                                                                                   








                                           
                                   
                                        

  


                                                                          
                



                                                                                                                              


                    
       
                      
                                                                                         














































                                                                 
 

                    
                                                                                  








                                           

                             
                                                                                                          








                                           
 










                                                          

                           
                                                                                                            




                                           
                           





                           
                                                                                                       




                                           
                           



                        

                      
                                                                                         




                                           
                           



                      

                         
                                                                                                                       






                                           
                        
 

                    
                                                                                     








                                           

                       
                                                                                                        


                                           
                           



                       
                      

                            
                                                                                                     









                                           
                                                                                                     









                                           
                                                                                                     









                                           
                                                                                                   









                                           
                                                                                                       









                                           
                                                                                                                                   










                                           
                                                                                                      


                                           
                           





                            
 







                                             
                                        







                                           
                                         
                                         


                  

                                               
                                         
                                 
                                                                                                     

                                     
 







                                                      
                               
 

                                                                             

  




                        



                                       
                                      
 

                           
          
                                                        



                        
                                                     
                                       

                 
                                                  
                                  

                  
                     
                                                   
                                   

        
                                                                       




                                                               

                                                                


                                                               

                                                                


                                                               

                                                                


                                                               

                                                                


                                                                 

                                                                  


                                                                                             
                                                                                



          










                                                                        

           
                                                                                   
                                                                 

                                                                                                      
                                                                                        
                                                                        
                                                    
                                                                 
 
 


                                  
                                    
                                                                             










                                                            

                                                                                

                                                        
                                                             







                                                                
                                                                                                                                                                                                                                  




                                                                                                
                                                                                                                      

                                                                                                            
                                                                                                                                                                 






                                          

                                                                                                        


        
                                      





                                                             

                                                                            











                                                      
                                                                               










                                                              
                                                                                                                                                                                                          




                                                                                    
                                                                                                          

                                                                                                    
                                                                                                                                               







                                    
                                                                                                   




                                                                                            
                                     






                                                                                  
                                     




                                     




                                        



                                                   
                                                 
                                                       

                                   



                                                      
                                                    
                                                          















                                                                                                      
 







                                                                       
                                                                    


                                                                     




                                                                    
                                                                   
                                                                   
 
                     














                                                                      


                                                        




                         
                                                


                                                        



                                        
                                                             


                            












                                          




                                                              
 


                       
                                                                                                       




                                           
                           



                             
                                                                                                     
                                                   



                                     
                                              


                         


                                                                                                                                                          
       
                                                                                       
                                         
     

  


                                           









                                                                       


                 
                               
                                                                                                                                                




















                                                                                                           





                                                                   
 





































































                                                                

                                                   


                                          

                






                         
 

           
                       







                                   

                                         
 

                             





















                                                     
                     


                  
          
 
                      
 
                                   
 


                   
                                                                                             













                                               
                                                                                                                    


                                           
                           





                            
                          
                                                                                                    
    
                                           
                           
                           
        
                          

      


                           
                                                                                                     




                                           
                           


                           


                                     
 
                      
                                                                                       





















                                                                                                               

                  


                                       

              
                                                                           


                  
                          
                                                                                        






                                                                                  


                                        
                                       
 

                            

      
                                                                                
                                     


                        
                                                                                   
 
                                                             


                                       









                                                                                        
                                                                         




                                                                                     
                                                 
  


                                                  
                                                                                                    
 
                      
 



                           

                                
                    
             
            
            

               
             
                
               
          




                         

  














                                    
































                                                                                              
                                                                        



                                                        
                                     



                                                                    
                                     
 












































                                                                                  

                      
                    

                 











                                                


              
                          
 

                  

                                     
 
                                     



                                        
                                        




                                       
                  
  
 





                                                         


                       
                        
                                       


                                        



                                             
 

                                
                                                     
                                

                                                              

                                      
                                               




                             
                                                                                       
 



                                                                                      
                                                                 
 
                          


                           
                                      
 
                                                                                   





                                                                     



                                  
                       


                      
   
 


                                      





                                                            



                                     
                        




                     
                          






                                   
                       
                                        
 
                        

                                                 
                                          
                                            
 

                                













                                       
                        




                     
                           


                                   

                  

                       
                       
                                         
 
                        


                                                  
                                           
                                             


                           









                                       
                         



                      
                                                                      






                                   
                       
                                          
 
                        
                                               
                                            








                                              
 



                                     
                                   
                       
 
 
                     
                                                                           
 





                                   
                       
                                               
 



                                                          
                                                  
                                                 
                                                   












                                       
                                        
                            


                
                                                                     




                                   


                        

                                                     
                                            
                                              


                           
                                               










                                       
                                   


                       
             
                                                               

                                   
                      
                                                                               





                                           
                         


                  


                        
                                            

                                                  
                                           
 
                                                                      
                                    
 
                         




                             



                                                             










                                       
                                



                    
                                                                     







                                   

                                              

                                                       
                                              
                                                
 
                                                                      












                                       
                                     



                         
                                                                 







                                   


                                                   
                                          
                                            
 
                                                   
 
                          












                                       
                                 



                     
                                                                         
 



                                                                 






                                   

                                                       
                                              
                                                
 
                                          
                                                                        
 
                              











                                       
                                     

                         





































                                          















































                                                                                              





                                                   

















                                                           



                                                                          


















































                                                                                  















                                                                 
                                              
                                            


                                            
                                                                                                  

















                                       
 


                      
                                                                                        




                                           
                           



                      



                                     
                                                                     


                                   

                                                             






                                                                   
                                                                                                        




                                           
                           








                           
                       
                                          
 
                        

                                               
                                            
                                              
 

                                  


                                                                                 
 
                            
 



                                            











                                       
                                   


                                                                               
                       
 







                                
                
                                                                     







                                   


                                                     
                                            
                                              
 
                                              













                                       
                                   

                       










                                   
                                                                                        











                                           


                                          




                                               
                                                                                                                   







                                                               
                            















                                       
 

            
                                                                   


                                   
                        
                                                                               







                                           
 
                         
                                                                                 








                                           
                        
                                                                           




                                           
                           



                        
                         
                                                                           








                                           
                    
                                                               




                                           
                           



                    
                     
                                                      




                                           
                           




                     
                                                      








                                           

                  


                        

                                                 
                                        
                                          

       












































                                                                                                           
                                          
























                                                                      
                                          



                                                       

                                                                 




                                                        

  
                                           











                                                                                                  
                                                                                         
 




                                                                                             

                                                                                            
     

                                        
                                          
                                                                        
     

                                        

                                                                            
     
                                         
 
                                                                          
                                           


                                             



      

                                                      
                                           
                                                                                                                                                                                                                                                                                     















                                                                               





                                                                               
                                                                             



                                                                       

                                        






                                                                          
 
                           
                                             

                                          

  
                                          
 
                                
 

                               

                                                                      



                   
                                                                    








                                   
                           
                    
 
                                                                      
                       




                                          

     


                       
                       
                                        
 
                        

                                             

                                                   
                                            
 



                                                        




                        
                                                                                                                   
                            
                                 




                                                                       


                                                                                 
                                                              


      

                                                                                  
                            
             







                                                                                 
                                                              



                       
                                                                                







                                                          


                                                                               
                                   
 


                                                    
                                









                                                                                       











                                       






                                                     


                     
                   
                                                                         






                                   
                       
                                             
 




                                                      
                                                
                                               













                                                 
                                      


                          
               
                                                                     




                                   



                                                                   
                          
                                             
 


                                            

                            


                       
                       
                                         
 
                        


                                                         
                                            
                                             
                                            
                                           
                                             

          
                                                    

                                     
                                        
                                                                               
                                             
                                                                                  
                                           
 
                                                                













                                                                             
                                                                  









                                                                                     

                                                                        
 
                           

                                                            
                               

                                                                                 

                                              
 
 

                          
                                                    



                                                        
                                                                  


                                                                
                                                             

                                                                                           
                                                                


                                                             
                                                          



                                                                                         
                                 
 
                                                         


                                
                                                                                                             
                                                          




                                                                                     
                                                        


                                                             
                                                          














                                                                                          
                         


                                                       
                                                                                       
                             
  
                                                                                
 
                           












                                       





















                                                             

                      
        
                    






                                   
                       
                                  
 
                        

                                       
                                    
                                      
 
                          
 

                           








                                       
 
                  

                                              

               



                                             
 
 
           
                       








                                                       
                       
                                     
 
                        


                                               
                                           
                                       
                                         












                                       
                     

                  


                        
                                                                                                        



                                           
                           


                        
                        
 



                                     












                                                                    
                                          
                                            
                                         




















                                                      
         
                                                               



                                   
                                    
                           
                                                                                                




                                           
                           

      
                                          
 



                                     
                                       
                            









                                       
                                      











                                                                       
                                                                             
 

                                     






                                                      
 



                           
                                                                               





                                                                         

                                                                        

                         
                           
                        


                           



                    









                                       





                                                        

                
 







                         
            
                                                                  
 


                                      








                                            
                                                                                     
    
                                           







                      
                                                            
    
                                           














                                           
                                         

                                         
                                                                               
                                  






                                                
                                                  

                                                    

                                       
                                        

                                                                






















                                                                                       











                                                             


                   
           
                                                                 






                                   
                       
                                     
 



                                         
                                        
                                         
                                        
                                       


                                               
                                              



















                                         
                              


                  
                                                                        





                                   
                       
                                            
 

                                                
                                              
                                               
                                               
                                                 
                                                     
                                                
                                                  
                                                  
                                                
















                                       
                                     

                         












































                                                             
 
                                      
                                                                                                        









                                                                                       

             
                                                                                                                                       









                                            
 




                 
                     
            

                            
                            
                          
                              


                          
                           
                                 
                         
                            
                              
                          
                             
                                   
                          
                                
                          
                                 
                        

             
            
          
              
         
             
        
            
            
                
         
             











                          
              
          
              
           
               





                      
               
              
                   
               
                   
                 



                    
                 
                     
                 
            
         
            


                  
          
              
          
              
             

                   
                                              
                                              

                               
               
            

                                                                        
                            
                                                                         

                                                                         
                          
                                                                       

                                                                           











                                                                              
                           
                                                                        
                            
                                                                         
                             
                                                                          
                            
                                                                         

                                                                           
                              
                                                                           



                                                                                 

                                                                            



         

                                               
                                                                                                                                                                                                                                           
 



                                                                                                                                                                                                                                                                                             


         

                                               

                    

                                                       

                  
                                                             

       
                                                       

      
 




                                             
  

                                 





                                                                                                         

                                                                   
 






                                                                               
 

                                               
    



                                                                                          
                                   





                                                                 
                                      

                                                                    




                                                
                                             
                                                 
                                               


                                                    
                                                                              


                                                          
                                                







                                                        

                                                                                  
                                                      
                                                                                

                                                                    



                                                                          
                                   
                                       
                           

                                                          
                                            
                                   

                                             
  
                                                              
                                      
                                 
    






                                        




                                               



                                                  



                                                  

                                                

  
         

                                                                              



                                                    
    














                                                                           
 
 



























































                                                                                

                                                                              
                                                                            


                                                                          



                                                                                





                                                                        



                                                                                




                                                                          



                                                                                

                                                                       



                                                                                






                                                                            



                                                                                



                                                                              



                                                                                


                                                                              



                                                                                
                                                                      




                                                                             



                                                                                



                                                                        



                                                                                


                                                                          



                                                                                


                                                                             



                                                                                


                                                                             



                                                                                

                                                                               
                                                                              

                                                                             



                                                                                




                                                                             



                                                                                


                                                                         

                                                                                








                                                                                






                                                                              
                                                                                                                                            




                                                                                
  

                                   






                                    









                                                                                                     






                                    





                                                                                                                                                                 
                                                                                       












                                                                                                                                                                                    
                                                                                           

















































                                                                                                                                                
  











                                                                              
EFL_VERSION([1], [11], [99], [dev])
AC_INIT([efl], [efl_version], [enlightenment-devel@lists.sourceforge.net])

AC_PREREQ([2.60])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_MACRO_DIR([m4])

AC_CONFIG_HEADERS([config.h])
AH_TOP([
#ifndef EFL_CONFIG_H__
#define EFL_CONFIG_H__
])
AH_BOTTOM([
#endif /* EFL_CONFIG_H__ */
])

AC_USE_SYSTEM_EXTENSIONS

AM_INIT_AUTOMAKE([1.6 dist-bzip2 dist-xz -Wall color-tests subdir-objects])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

CFOPT_WARNING=""

#### Apply configuring with legacy api's only, eo api's or both.

EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT"
EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
efl_api="both"

#### For the moment the Eo EFL API is not ready you need to explicitely optin.
EFL_ENABLE_EO_API_SUPPORT
EFL_ENABLE_BETA_API_SUPPORT

AC_ARG_WITH([api],
   [AS_HELP_STRING([--with-api=@<:@eo/legacy/both@:>@],[Select the EFL API Model @<:@default=both@:>@])],
   [efl_api=${withval}],
   [efl_api="both"])

case "$efl_api" in
    eo)
        EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT"
        EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
        ;;
    legacy)
        EFL_API_LEGACY_DEF=""
        EFL_API_EO_DEF=""
        ;;
    both)
        EFL_API_LEGACY_DEF=""
        EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
        ;;
    *) AC_MSG_ERROR([Invalid api (${efl_api}): must be eo, legacy or both]) ;;
esac

AC_SUBST(EFL_API_LEGACY_DEF)
AC_SUBST(EFL_API_EO_DEF)

#### Additional options to configure

# string to identify the build
AC_ARG_WITH([id],
   [AS_HELP_STRING([--with-id=BUILD_ID],[Specify a string to identify the build (vendor, maintainer, etc).
                     @<:@default=none@:>@])],
   [EFL_BUILD_ID="${withval}"],
   [EFL_BUILD_ID="none"])
AC_SUBST(EFL_BUILD_ID)

# profile
AC_ARG_WITH([profile],
   [AS_HELP_STRING([--with-profile=PROFILE],[use the predefined build profile, one of: dev, debug and release.
                    @<:@default=dev@:>@])],
   [build_profile=${withval}],
   [build_profile=def_build_profile])

case "${build_profile}" in
   dev|debug|release)
     ;;
   *)
     AC_MSG_ERROR([Unknown build profile --with-profile=${build_profile}])
     ;;
esac

prefer_assert="no"
case "${build_profile}" in
   dev|debug)
     prefer_assert="yes"
     ;;
esac

# TODO: add some build "profile" (server, full, etc...)

AC_ARG_WITH([crypto],
   [AS_HELP_STRING([--with-crypto=CRYPTO],[use the predefined build crypto, one of:
                    openssl, gnutls or none.
                    @<:@default=openssl@:>@])],
   [build_crypto=${withval}],
   [build_crypto=openssl])

case "${build_crypto}" in
   openssl|gnutls|none)
     ;;
   *)