hksonngan / coot

Automatically exported from code.google.com/p/coot
GNU General Public License v3.0
0 stars 0 forks source link

the configure script do not fail if swig is not available #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

without swig the configure process run without error
but make gives this error

make[1]: entrant dans le répertoire « /home/picca/Projets/coot/src »
swig -o coot_wrap_guile_pre_gtk2.cc -DCOOT_USE_GTK2_INTERFACE  
-DHAVE_SYS_STDTYPES_H=0   -DUSE_LIBCURL -I../src -guile -c++  ../src/coot.i
/bin/bash: swig : commande introuvable

so it seems that swig is mendatory.
Can you teach configure.in to fail if swig is not available or do not compile 
the swig code if it is not available.

thanks

Frederic

Original issue reported on code.google.com by pi...@synchrotron-soleil.fr on 13 Jan 2013 at 7:05

GoogleCodeExporter commented 8 years ago
Here a proposition of patch for this issue

Original comment by pi...@synchrotron-soleil.fr on 14 Jan 2013 at 8:21

Attachments:

GoogleCodeExporter commented 8 years ago
Do you have some news about this pacth ?

Original comment by pi...@synchrotron-soleil.fr on 21 May 2013 at 9:32

GoogleCodeExporter commented 8 years ago
on debian/Ubuntu the swig executable is called swig2.0
so hard coding the swig name is a bad idea. the swig autotools macro take care 
of this.

Original comment by pi...@synchrotron-soleil.fr on 8 Jun 2013 at 9:52

GoogleCodeExporter commented 8 years ago
This problem should be resolved now (post June 2013) - configure/build no 
longer needs swig.

Original comment by pemsley@gmail.com on 2 Jul 2013 at 11:21

GoogleCodeExporter commented 8 years ago
But I can still find swig command in the Makefile.am, so this can cause some 
troubles during the build.

picca@mordor:~/Projets/coot$ find . -name Makefile.am | xargs grep swig
./src/Makefile.am:                             
$(top_srcdir)/src/c-interface-ligands-swig.hh \
./src/Makefile.am:      swig -o $@ -DCOOT_USE_GTK2_INTERFACE 
$(ENTERPRISE_TOOLS_CFLAGS) $(WITH_GUILE_CFLAGS)  $(USE_LIBCURL) 
-I$(top_srcdir)/src -guile -c++  $(top_srcdir)/src/coot.i
./src/Makefile.am:                              
$(top_srcdir)/src/c-interface-ligands-swig.hh \
./src/Makefile.am:      swig -o $@ -DCOOT_USE_GTK2_INTERFACE 
$(ENTERPRISE_TOOLS_CFLAGS) $(PYTHON_CFLAGS)  $(USE_LIBCURL) -I$(top_srcdir)/src 
-shadow -python -c++ $(top_srcdir)/src/coot.i && mv coot.py coot_gtk2.py
./src/Makefile.am:      c-interface-ligands-swig.hh   \

Original comment by pi...@synchrotron-soleil.fr on 3 Jul 2013 at 6:28

GoogleCodeExporter commented 8 years ago
I can confirm that
./configure && make

still failed due to this swig commands. So swig is still required during the 
build of coot.

Original comment by pi...@synchrotron-soleil.fr on 7 Jul 2013 at 7:08