diff --git a/Gem/extra/Makefile.am~ b/Gem/extra/Makefile.am~ deleted file mode 100644 index 8332066..0000000 --- a/Gem/extra/Makefile.am~ +++ /dev/null @@ -1,9 +0,0 @@ -AUTOMAKE_OPTIONS = foreign -AM_CPPFLAGS = -I$(top_srcdir)/src -ACLOCAL_AMFLAGS = -I ../m4 - - -SUBDIRS = pix2jpg - -EXTRA_DIST = \ - README-EXTRA.txt diff --git a/bin/PDLicense.txt b/PDLicense.txt similarity index 100% rename from bin/PDLicense.txt rename to PDLicense.txt diff --git a/bin/lms.conf b/bin/lms.conf deleted file mode 100644 index 99259cc..0000000 Binary files a/bin/lms.conf and /dev/null differ diff --git a/credits.txt b/credits.txt index 96ea014..81b0b05 100644 --- a/credits.txt +++ b/credits.txt @@ -1,4 +1,4 @@ -LibreMediaServer uses or has modified free software from: +All the project has open licenses, generally the GPL. We are redistributing software from third party with these licenses and copyrights: Open Lighting Arquitecture - Copyright © Simon Newton - LPGL License. - ola2pd is a modification of ola_dmxmonitor. GPL License. @@ -18,7 +18,7 @@ cyclone/counter.pd_linux - Copyright © Miller Miller Puckette and others - BSD cyclone/gate.pd_linux - Copyright © Miller Miller Puckette and others - BSD License. hcs/folderlist - Copyright © Hans-Christoph Steiner - GPL License. - - fileselector is a modification of folderlist. + - fileselector is a modification of folderlist. we are not using folderlist anymore. expr.pd_linux - Copyright © Shahrokh Yadegari - GPL License. @@ -37,5 +37,5 @@ Copyright 1999-2011 zexy-contributors pdogg~/oggread~.pd_linux - Copyright © 2002-2004 by Olaf Matthes - GPL License. -CITP Lib Copyright - Copyright © 2009 John Warwick - MIT License. +CITP Lib Copyright - Copyright © 2009 John Warwick - MIT License. All the CITP/MSEx layer has been built on top of this library. diff --git a/Gem/COPYING.txt b/externals/COPYING.txt similarity index 100% rename from Gem/COPYING.txt rename to externals/COPYING.txt diff --git a/Gem/ChangeLog b/externals/ChangeLog similarity index 100% rename from Gem/ChangeLog rename to externals/ChangeLog diff --git a/bin/Gem/Gem-meta.pd b/externals/Gem-meta.pd similarity index 100% rename from bin/Gem/Gem-meta.pd rename to externals/Gem-meta.pd diff --git a/bin/Gem/Gem.la b/externals/Gem.la similarity index 100% rename from bin/Gem/Gem.la rename to externals/Gem.la diff --git a/bin/Gem/Gem.pd_linux b/externals/Gem.pd_linux similarity index 100% rename from bin/Gem/Gem.pd_linux rename to externals/Gem.pd_linux diff --git a/bin/Gem/COPYING.txt b/externals/GemLicense.txt similarity index 100% rename from bin/Gem/COPYING.txt rename to externals/GemLicense.txt diff --git a/Gem/GnuGPL.LICENSE.txt b/externals/GnuGPL.LICENSE.txt similarity index 100% rename from Gem/GnuGPL.LICENSE.txt rename to externals/GnuGPL.LICENSE.txt diff --git a/Gem/README.txt b/externals/README.txt similarity index 100% rename from Gem/README.txt rename to externals/README.txt diff --git a/bin/externals/coll.pd_linux b/externals/coll.pd_linux similarity index 100% rename from bin/externals/coll.pd_linux rename to externals/coll.pd_linux diff --git a/bin/externals/counter.pd_linux b/externals/counter.pd_linux similarity index 100% rename from bin/externals/counter.pd_linux rename to externals/counter.pd_linux diff --git a/bin/externals/expr.pd_linux b/externals/expr.pd_linux similarity index 100% rename from bin/externals/expr.pd_linux rename to externals/expr.pd_linux diff --git a/bin/externals/fileselector.pd_linux b/externals/fileselector.pd_linux similarity index 100% rename from bin/externals/fileselector.pd_linux rename to externals/fileselector.pd_linux diff --git a/bin/externals/gate.pd_linux b/externals/gate.pd_linux similarity index 100% rename from bin/externals/gate.pd_linux rename to externals/gate.pd_linux diff --git a/bin/Gem/gem_filmAVIPLAY.la b/externals/gem_filmAVIPLAY.la similarity index 100% rename from bin/Gem/gem_filmAVIPLAY.la rename to externals/gem_filmAVIPLAY.la diff --git a/bin/Gem/gem_filmAVIPLAY.so b/externals/gem_filmAVIPLAY.so similarity index 100% rename from bin/Gem/gem_filmAVIPLAY.so rename to externals/gem_filmAVIPLAY.so diff --git a/bin/Gem/gem_filmGMERLIN.la b/externals/gem_filmGMERLIN.la similarity index 100% rename from bin/Gem/gem_filmGMERLIN.la rename to externals/gem_filmGMERLIN.la diff --git a/bin/Gem/gem_filmGMERLIN.so b/externals/gem_filmGMERLIN.so similarity index 100% rename from bin/Gem/gem_filmGMERLIN.so rename to externals/gem_filmGMERLIN.so diff --git a/externals/gem_filmMPEG3.la b/externals/gem_filmMPEG3.la new file mode 100755 index 0000000..daead5d --- /dev/null +++ b/externals/gem_filmMPEG3.la @@ -0,0 +1,41 @@ +# gem_filmMPEG3.la - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.1 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='gem_filmMPEG3.so' + +# Names of this library. +library_names='gem_filmMPEG3.so gem_filmMPEG3.so gem_filmMPEG3.so' + +# The name of the static archive. +old_library='' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs=' -L./ -L../.. -lmpeg3 -lXxf86vm -ldl -lz' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for gem_filmMPEG3. +current=0 +age=0 +revision=0 + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=yes + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='/home/santi/pd-externals/lib/pd/extra/Gem' diff --git a/externals/gem_filmMPEG3.so b/externals/gem_filmMPEG3.so new file mode 100755 index 0000000..1e50c60 Binary files /dev/null and b/externals/gem_filmMPEG3.so differ diff --git a/bin/Gem/gem_filmQT4L.la b/externals/gem_filmQT4L.la similarity index 100% rename from bin/Gem/gem_filmQT4L.la rename to externals/gem_filmQT4L.la diff --git a/bin/Gem/gem_filmQT4L.so b/externals/gem_filmQT4L.so similarity index 100% rename from bin/Gem/gem_filmQT4L.so rename to externals/gem_filmQT4L.so diff --git a/bin/Gem/gem_imageJPEG.la b/externals/gem_imageJPEG.la similarity index 100% rename from bin/Gem/gem_imageJPEG.la rename to externals/gem_imageJPEG.la diff --git a/bin/Gem/gem_imageJPEG.so b/externals/gem_imageJPEG.so similarity index 100% rename from bin/Gem/gem_imageJPEG.so rename to externals/gem_imageJPEG.so diff --git a/bin/Gem/gem_imageMAGICK.la b/externals/gem_imageMAGICK.la similarity index 100% rename from bin/Gem/gem_imageMAGICK.la rename to externals/gem_imageMAGICK.la diff --git a/bin/Gem/gem_imageMAGICK.so b/externals/gem_imageMAGICK.so similarity index 100% rename from bin/Gem/gem_imageMAGICK.so rename to externals/gem_imageMAGICK.so diff --git a/bin/Gem/gem_imageSGI.la b/externals/gem_imageSGI.la similarity index 100% rename from bin/Gem/gem_imageSGI.la rename to externals/gem_imageSGI.la diff --git a/bin/Gem/gem_imageSGI.so b/externals/gem_imageSGI.so similarity index 100% rename from bin/Gem/gem_imageSGI.so rename to externals/gem_imageSGI.so diff --git a/bin/Gem/gem_imageTIFF.la b/externals/gem_imageTIFF.la similarity index 100% rename from bin/Gem/gem_imageTIFF.la rename to externals/gem_imageTIFF.la diff --git a/bin/Gem/gem_imageTIFF.so b/externals/gem_imageTIFF.so similarity index 100% rename from bin/Gem/gem_imageTIFF.so rename to externals/gem_imageTIFF.so diff --git a/bin/Gem/gem_modelOBJ.la b/externals/gem_modelOBJ.la similarity index 100% rename from bin/Gem/gem_modelOBJ.la rename to externals/gem_modelOBJ.la diff --git a/bin/Gem/gem_modelOBJ.so b/externals/gem_modelOBJ.so similarity index 100% rename from bin/Gem/gem_modelOBJ.so rename to externals/gem_modelOBJ.so diff --git a/bin/Gem/gem_recordQT4L.la b/externals/gem_recordQT4L.la similarity index 100% rename from bin/Gem/gem_recordQT4L.la rename to externals/gem_recordQT4L.la diff --git a/bin/Gem/gem_recordQT4L.so b/externals/gem_recordQT4L.so similarity index 100% rename from bin/Gem/gem_recordQT4L.so rename to externals/gem_recordQT4L.so diff --git a/externals/gem_recordV4L.la b/externals/gem_recordV4L.la new file mode 100755 index 0000000..b7baf35 --- /dev/null +++ b/externals/gem_recordV4L.la @@ -0,0 +1,41 @@ +# gem_recordV4L.la - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.1 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='gem_recordV4L.so' + +# Names of this library. +library_names='gem_recordV4L.so gem_recordV4L.so gem_recordV4L.so' + +# The name of the static archive. +old_library='' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs=' -L./ -L../.. -lv4l1 -lXxf86vm -ldl -lz' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for gem_recordV4L. +current=0 +age=0 +revision=0 + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=yes + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='/home/santi/pd-externals/lib/pd/extra/Gem' diff --git a/externals/gem_recordV4L.so b/externals/gem_recordV4L.so new file mode 100755 index 0000000..e1fb38b Binary files /dev/null and b/externals/gem_recordV4L.so differ diff --git a/externals/gem_recordV4L2.la b/externals/gem_recordV4L2.la new file mode 100755 index 0000000..09ae860 --- /dev/null +++ b/externals/gem_recordV4L2.la @@ -0,0 +1,41 @@ +# gem_recordV4L2.la - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.1 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='gem_recordV4L2.so' + +# Names of this library. +library_names='gem_recordV4L2.so gem_recordV4L2.so gem_recordV4L2.so' + +# The name of the static archive. +old_library='' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs=' -L./ -L../.. -lv4l2 -lXxf86vm -ldl -lz' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for gem_recordV4L2. +current=0 +age=0 +revision=0 + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=yes + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='/home/santi/pd-externals/lib/pd/extra/Gem' diff --git a/externals/gem_recordV4L2.so b/externals/gem_recordV4L2.so new file mode 100755 index 0000000..228c2d0 Binary files /dev/null and b/externals/gem_recordV4L2.so differ diff --git a/externals/gem_videoV4L.la b/externals/gem_videoV4L.la new file mode 100755 index 0000000..01a8392 --- /dev/null +++ b/externals/gem_videoV4L.la @@ -0,0 +1,41 @@ +# gem_videoV4L.la - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.1 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='gem_videoV4L.so' + +# Names of this library. +library_names='gem_videoV4L.so gem_videoV4L.so gem_videoV4L.so' + +# The name of the static archive. +old_library='' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs=' -L./ -L../.. -lv4l1 -lXxf86vm -ldl -lz' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for gem_videoV4L. +current=0 +age=0 +revision=0 + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=yes + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='/home/santi/pd-externals/lib/pd/extra/Gem' diff --git a/externals/gem_videoV4L.so b/externals/gem_videoV4L.so new file mode 100755 index 0000000..2cb8593 Binary files /dev/null and b/externals/gem_videoV4L.so differ diff --git a/externals/gem_videoV4L2.la b/externals/gem_videoV4L2.la new file mode 100755 index 0000000..a9bff31 --- /dev/null +++ b/externals/gem_videoV4L2.la @@ -0,0 +1,41 @@ +# gem_videoV4L2.la - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.1 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='gem_videoV4L2.so' + +# Names of this library. +library_names='gem_videoV4L2.so gem_videoV4L2.so gem_videoV4L2.so' + +# The name of the static archive. +old_library='' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs=' -L./ -L../.. -lv4l2 -lXxf86vm -ldl -lz' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for gem_videoV4L2. +current=0 +age=0 +revision=0 + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=yes + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='/home/santi/pd-externals/lib/pd/extra/Gem' diff --git a/externals/gem_videoV4L2.so b/externals/gem_videoV4L2.so new file mode 100755 index 0000000..7efb1be Binary files /dev/null and b/externals/gem_videoV4L2.so differ diff --git a/bin/Gem/gemdefaultwindow.pd b/externals/gemdefaultwindow.pd similarity index 100% rename from bin/Gem/gemdefaultwindow.pd rename to externals/gemdefaultwindow.pd diff --git a/externals/gemglutwindow.la b/externals/gemglutwindow.la new file mode 100755 index 0000000..dff4a05 --- /dev/null +++ b/externals/gemglutwindow.la @@ -0,0 +1,41 @@ +# gemglutwindow.la - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.1 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='gemglutwindow.pd_linux' + +# Names of this library. +library_names='gemglutwindow.pd_linux gemglutwindow.pd_linux gemglutwindow.pd_linux' + +# The name of the static archive. +old_library='' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags=' -pthread' + +# Libraries that this one depends upon. +dependency_libs=' -L./ -L../.. -lglut -lSM -lICE -lXmu -lXi -lGLU -lGL -lXxf86vm -ldl -lz' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for gemglutwindow. +current=0 +age=0 +revision=0 + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=yes + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='/home/santi/pd-externals/lib/pd/extra/Gem' diff --git a/externals/gemglutwindow.pd_linux b/externals/gemglutwindow.pd_linux new file mode 100755 index 0000000..28be1bf Binary files /dev/null and b/externals/gemglutwindow.pd_linux differ diff --git a/bin/Gem/gemglxwindow.la b/externals/gemglxwindow.la similarity index 100% rename from bin/Gem/gemglxwindow.la rename to externals/gemglxwindow.la diff --git a/bin/Gem/gemglxwindow.pd_linux b/externals/gemglxwindow.pd_linux similarity index 100% rename from bin/Gem/gemglxwindow.pd_linux rename to externals/gemglxwindow.pd_linux diff --git a/Gem/abstractions/gemhead.pd b/externals/gemhead.pd similarity index 100% rename from Gem/abstractions/gemhead.pd rename to externals/gemhead.pd diff --git a/Gem/abstractions/gemmouse.pd b/externals/gemmouse.pd similarity index 100% rename from Gem/abstractions/gemmouse.pd rename to externals/gemmouse.pd diff --git a/Gem/abstractions/gemorb.pd b/externals/gemorb.pd similarity index 100% rename from Gem/abstractions/gemorb.pd rename to externals/gemorb.pd diff --git a/bin/Gem/gemsdlwindow.la b/externals/gemsdlwindow.la similarity index 100% rename from bin/Gem/gemsdlwindow.la rename to externals/gemsdlwindow.la diff --git a/bin/Gem/gemsdlwindow.pd_linux b/externals/gemsdlwindow.pd_linux similarity index 100% rename from bin/Gem/gemsdlwindow.pd_linux rename to externals/gemsdlwindow.pd_linux diff --git a/Gem/abstractions/gemtablet.pd b/externals/gemtablet.pd similarity index 100% rename from Gem/abstractions/gemtablet.pd rename to externals/gemtablet.pd diff --git a/Gem/abstractions/gemwin.pd b/externals/gemwin.pd similarity index 100% rename from Gem/abstractions/gemwin.pd rename to externals/gemwin.pd diff --git a/Gem/abstractions/hsv2rgb-help.pd b/externals/hsv2rgb-help.pd similarity index 100% rename from Gem/abstractions/hsv2rgb-help.pd rename to externals/hsv2rgb-help.pd diff --git a/Gem/abstractions/hsv2rgb.pd b/externals/hsv2rgb.pd similarity index 100% rename from Gem/abstractions/hsv2rgb.pd rename to externals/hsv2rgb.pd diff --git a/externals/libMagick++-6.Q16.so b/externals/libMagick++-6.Q16.so new file mode 120000 index 0000000..4ba2617 --- /dev/null +++ b/externals/libMagick++-6.Q16.so @@ -0,0 +1 @@ +libMagick++-6.Q16.so.1.0.0 \ No newline at end of file diff --git a/externals/libMagick++-6.Q16.so.1 b/externals/libMagick++-6.Q16.so.1 new file mode 120000 index 0000000..4ba2617 --- /dev/null +++ b/externals/libMagick++-6.Q16.so.1 @@ -0,0 +1 @@ +libMagick++-6.Q16.so.1.0.0 \ No newline at end of file diff --git a/externals/libMagick++-6.Q16.so.1.0.0 b/externals/libMagick++-6.Q16.so.1.0.0 new file mode 100755 index 0000000..7c83239 Binary files /dev/null and b/externals/libMagick++-6.Q16.so.1.0.0 differ diff --git a/externals/libMagick++6-Q16.so b/externals/libMagick++6-Q16.so new file mode 120000 index 0000000..d1ed15f --- /dev/null +++ b/externals/libMagick++6-Q16.so @@ -0,0 +1 @@ +/usr/local/lib/libMagick++-6.Q16.so.1.0.0 \ No newline at end of file diff --git a/externals/libMagickCore-6.Q16.so.1.0.0 b/externals/libMagickCore-6.Q16.so.1.0.0 new file mode 100755 index 0000000..a269638 Binary files /dev/null and b/externals/libMagickCore-6.Q16.so.1.0.0 differ diff --git a/bin/externals/list2symbol.pd_linux b/externals/list2symbol.pd_linux similarity index 100% rename from bin/externals/list2symbol.pd_linux rename to externals/list2symbol.pd_linux diff --git a/bin/externals/oggread~.pd_linux b/externals/oggread~.pd_linux similarity index 100% rename from bin/externals/oggread~.pd_linux rename to externals/oggread~.pd_linux diff --git a/bin/externals/ola2pd.pd_linux b/externals/ola2pd.pd_linux similarity index 100% rename from bin/externals/ola2pd.pd_linux rename to externals/ola2pd.pd_linux diff --git a/bin/externals/pix2jpg.la b/externals/pix2jpg.la similarity index 100% rename from bin/externals/pix2jpg.la rename to externals/pix2jpg.la diff --git a/bin/externals/pix2jpg.pd_linux b/externals/pix2jpg.pd_linux similarity index 100% rename from bin/externals/pix2jpg.pd_linux rename to externals/pix2jpg.pd_linux diff --git a/Gem/abstractions/pix_blobtracker-help.pd b/externals/pix_blobtracker-help.pd similarity index 100% rename from Gem/abstractions/pix_blobtracker-help.pd rename to externals/pix_blobtracker-help.pd diff --git a/Gem/abstractions/pix_blobtracker.pd b/externals/pix_blobtracker.pd similarity index 100% rename from Gem/abstractions/pix_blobtracker.pd rename to externals/pix_blobtracker.pd diff --git a/Gem/abstractions/pix_buffer_filmopen-help.pd b/externals/pix_buffer_filmopen-help.pd similarity index 100% rename from Gem/abstractions/pix_buffer_filmopen-help.pd rename to externals/pix_buffer_filmopen-help.pd diff --git a/Gem/abstractions/pix_buffer_filmopen.pd b/externals/pix_buffer_filmopen.pd similarity index 100% rename from Gem/abstractions/pix_buffer_filmopen.pd rename to externals/pix_buffer_filmopen.pd diff --git a/Gem/abstractions/pix_write.pd b/externals/pix_write.pd similarity index 100% rename from Gem/abstractions/pix_write.pd rename to externals/pix_write.pd diff --git a/bin/externals/prepend.pd_linux b/externals/prepend.pd_linux similarity index 100% rename from bin/externals/prepend.pd_linux rename to externals/prepend.pd_linux diff --git a/Gem/abstractions/rgb2hsv-help.pd b/externals/rgb2hsv-help.pd similarity index 100% rename from Gem/abstractions/rgb2hsv-help.pd rename to externals/rgb2hsv-help.pd diff --git a/Gem/abstractions/rgb2hsv.pd b/externals/rgb2hsv.pd similarity index 100% rename from Gem/abstractions/rgb2hsv.pd rename to externals/rgb2hsv.pd diff --git a/Gem/abstractions/rgb2yuv-help.pd b/externals/rgb2yuv-help.pd similarity index 100% rename from Gem/abstractions/rgb2yuv-help.pd rename to externals/rgb2yuv-help.pd diff --git a/Gem/abstractions/rgb2yuv.pd b/externals/rgb2yuv.pd similarity index 100% rename from Gem/abstractions/rgb2yuv.pd rename to externals/rgb2yuv.pd diff --git a/bin/externals/split.pd_linux b/externals/split.pd_linux similarity index 100% rename from bin/externals/split.pd_linux rename to externals/split.pd_linux diff --git a/bin/text.txt b/externals/text.txt similarity index 100% rename from bin/text.txt rename to externals/text.txt diff --git a/Gem/abstractions/yuv2rgb-help.pd b/externals/yuv2rgb-help.pd similarity index 100% rename from Gem/abstractions/yuv2rgb-help.pd rename to externals/yuv2rgb-help.pd diff --git a/Gem/abstractions/yuv2rgb.pd b/externals/yuv2rgb.pd similarity index 100% rename from Gem/abstractions/yuv2rgb.pd rename to externals/yuv2rgb.pd diff --git a/bin/libremediaserver b/libremediaserver similarity index 100% rename from bin/libremediaserver rename to libremediaserver diff --git a/bin/layer.pd b/patches/layer.pd similarity index 100% rename from bin/layer.pd rename to patches/layer.pd diff --git a/bin/layer_audio.pd b/patches/layer_audio.pd similarity index 100% rename from bin/layer_audio.pd rename to patches/layer_audio.pd diff --git a/bin/lms-audio.pd b/patches/lms-audio.pd similarity index 100% rename from bin/lms-audio.pd rename to patches/lms-audio.pd diff --git a/bin/lms-video.pd b/patches/lms-video.pd similarity index 100% rename from bin/lms-video.pd rename to patches/lms-video.pd diff --git a/patches/log.txt b/patches/log.txt new file mode 100644 index 0000000..8ba976c --- /dev/null +++ b/patches/log.txt @@ -0,0 +1,2019 @@ +Debug: ************************************************************************** +Debug: Date: QDate("Wed Feb 20 2013") Time: QTime("16:21:49") +Debug: Starting OLA +Critical: sendPacket:Socket not initialized: (El otro extremo de la conexión no está conectado) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Debug: "Media Path Changed to: /home/santi/media" +Debug: Starting PD Video: 1 +Debug: PD Video: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Video: "GEM: Graphics Environment for Multimedia" +Debug: PD Video: "verbose(2): GEM: ver: 0.93.git v0.01-1-19-g615ec83" +Debug: PD Video: "verbose(2): GEM: compiled: Feb 19 2013" +Debug: PD Video: "verbose(2): GEM: maintained by IOhannes m zmoelnig" +Debug: PD Video: "verbose(2): GEM: Authors : Mark Danks (original version)" +Debug: PD Video: "verbose(2): GEM: Chris Clepper" +Debug: PD Video: "verbose(2): GEM: Cyrille Henry" +Debug: PD Video: "verbose(2): GEM: IOhannes m zmoelnig" +Debug: PD Video: "verbose(2): GEM: with help by Guenter Geiger, Daniel Heckenberg, James Tittle, Hans-Christoph Steiner, et al." +Debug: PD Video: "verbose(2): GEM: found a bug? miss a feature? please report it:" +Debug: PD Video: "verbose(2): GEM: homepage http://gem.iem.at/" +Debug: PD Video: "verbose(2): GEM: bug-tracker http://sourceforge.net/projects/pd-gem/" +Debug: PD Video: "verbose(2): GEM: mailing-list http://lists.puredata.info/listinfo/gem-dev/" +Debug: PD Video: "/etc/pd/gem.conf: No such file or directory" +Debug: PD Video: "/home/santi/.config/pure-data/gem.conf: No such file or directory" +Debug: PD Video: "./gem.conf: No such file or directory" +Debug: PD Video: "verbose(3): please manually add './Gem' to your search-path!" +Debug: PD Video: "verbose(2): GEM: compiled for MMX architecture" +Debug: PD Video: "verbose(2): GEM: using MMX optimization" +Debug: PD Video: "verbose(2): GEM: detected 2 CPUs" +Debug: PD Video: "load plugins " +Debug: PD Video: "pattern :" +Debug: PD Video: "./Gem/gem_film*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./Gem/gem_filmAVIPLAY.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./Gem/gem_filmGMERLIN.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./Gem/gem_filmQT4L.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "pattern :" +Debug: PD Video: "./Gem/gem_image*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./Gem/gem_imageJPEG.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./Gem/gem_imageMAGICK.s" +Debug: PD Video: "library loading returned:" +Debug: PD Video: "dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./Gem/gem_imageSGI.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./Gem/gem_imageTIFF.s" +Debug: PD Video: "GEM: image loading support" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "load plugins " +Debug: PD Video: "pattern :" +Debug: PD Video: "./Gem/gem_image*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./Gem/gem_imageJPEG.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./Gem/gem_imageMAGICK.s" +Debug: PD Video: "library loading returned:" +Debug: PD Video: "dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./Gem/gem_imageSGI.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./Gem/gem_imageTIFF.s" +Debug: PD Video: "GEM: image saving support" +Debug: PD Video: "load plugins " +Debug: PD Video: "pattern :" +Debug: PD Video: "./Gem/gem_model*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./Gem/gem_modelOBJ.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "pattern :" +Debug: PD Video: "./Gem/gem_record*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./Gem/gem_recordQT4L.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "pattern :" +Debug: PD Video: "./Gem/gem_video*.s" +Debug: PD Video: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com +not reloading 'image' plugins (already 3 loaded)" +Debug: PD Video: "not reloading 'film' plugins (already 3 loaded) +not reloading 'image' plugins (already 3 loaded) +verbose(3): [pix_film]: gmerlin support +verbose(3): [pix_film]: quicktime4linux support +verbose(3): [pix_film]: aviplay support +verbose(3): [pix_film]: image support +expr, expr~, fexpr~ version 0.4 under GNU General Public License " +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf' +verbose(4): ... you might be able to track this down from the Find menu." +Debug: PD Video: "not reloading 'film' plugins (already 3 loaded) +not reloading 'image' plugins (already 3 loaded)" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "[pix2jpg]: pix2jpg v0.02 Convert pix to jpeg and send to Unix Local Socket" +Debug: PD Video: "[pix2jpg]: (c) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Video: "[pix2jpg]: GPL License" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "togui: 0" +Debug: Loadbang Video +Warning: QAbstractSocket::connectToHost() called when already looking up or connecting/connected to "127.0.0.1" +Debug: PD Video: "error: [gemwin]: height must be greater than 0" +Debug: Starting PD Audio: 1 +Debug: PD Audio: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +expr, expr~, fexpr~ version 0.4 under GNU General Public License +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "connecting to port 9198" +Debug: Sending conf to PD Audio +Debug: Sending conf to PD Audio +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy +ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Video: "ola2pd: Init complete. Start listening..." +Debug: PD Video: "[pix_film:audio_ffmpeg] Codec not found: FFmpeg Sonic decoder" +Debug: PD Video: "[pix_film]: loaded file: /home/santi/media/video/000-BassVisuals/000-AmoebaEvolution_320x240_30p_Photo-JPEG.mov with 210 frames (320x240) at 30.000000 fps" +Debug: PD Video: "togui: 1 /home/santi/media/video/000-BassVisuals/000-AmoebaEvolution_320x240_30p_Photo-JPEG.mov" +Debug: PD Video: "GEM: Direct Rendering enabled!" +Debug: PD Video: "GEM: GLEW version 1.5.4" +Debug: PD Video: "GEM: Start rendering" +Debug: PD Audio: "oggread~: no file open (ignored)" +Debug: PD Audio: "oggread~: file "/home/santi/media/sound/000-Explicit_Language-LadronesDeSuenos/01-ExplicitLanguage.ogg" opened" +Debug: PD Audio: "oggread~: input bitstream contained 1 logical bitstream section(s) +oggread~: total bitstream playing time: 127 seconds +oggread~: encoded by: Xiph.Org libVorbis I 20101101 (Schaufenugget) + + logical bitstream section 1 information: + 44100Hz 2 channels bitrate 111kbps serial number=663994593 + header length: 3995 bytes + compressed length: 1782558 bytes + play time: 127 seconds +" +Debug: PD Audio: "oggread~: START" +Debug: PD Audio: "ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open)" +Debug: PD Audio: "unable to open slav" +Debug: PD Audio: "ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open)" +Debug: PD Audio: "unable to open slave" +Debug: PD Audio: "ALSA lib pcm.c:2217:(snd_pcm_open_noupdate)" +Debug: PD Audio: "Unknown PCM cards.pcm.rear" +Debug: PD Audio: "ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe +ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side" +Debug: PD Audio: "ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)" +Debug: PD Audio: "ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)" +Debug: PD Audio: "ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)" +Debug: PD Audio: "ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)" +Debug: PD Audio: "ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream" +Debug: PD Audio: "ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open)" +Debug: PD Audio: "unable to open slave" +Debug: PD Audio: "Cannot connect to server socket err = No such file or directory +Cannot connect to server socket" +Debug: PD Audio: "jack server is not running or cannot be started" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy +ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "oggread~: START" +Debug: PD Audio: "oggread~: START" +Debug: PD Audio: "oggread~: closing file" +Debug: Saved file complete: "Bytes Write to file 84" +Debug: Starting PD Audio: 2 +Debug: PD Audio: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Audio: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "expr, expr~, fexpr~ version 0.4 under GNU General Public License " +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "connecting to port 9198" +Debug: Sending conf to PD Audio +Debug: Sending conf to PD Audio +Debug: PD Audio: "ola2pd: Success" +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "oggread~: no file open (ignored)" +Debug: PD Audio: "oggread~: file "/home/santi/media/sound/000-Explicit_Language-LadronesDeSuenos/01-ExplicitLanguage.ogg" opened" +Debug: PD Audio: "oggread~: input bitstream contained 1 logical bitstream section(s) +oggread~: total bitstream playing time: 127 seconds +oggread~: encoded by: Xiph.Org libVorbis I 20101101 (Schaufenugget) + + logical bitstream section 1 information: + 44100Hz 2 channels bitrate 111kbps serial number=663994593 + header length: 3995 bytes + compressed length: 1782558 bytes + play time: 127 seconds +" +Debug: PD Audio: "oggread~: START" +Debug: Saved file complete: "Bytes Write to file 84" +Debug: PD Video starts: 1 PD Audio starts: 2 +Debug: Date: QDate("Wed Feb 20 2013") Time: QTime("16:36:46") +Debug: ************************************************************************** +Debug: ************************************************************************** +Debug: Date: QDate("Wed Feb 20 2013") Time: QTime("16:37:06") +Debug: Starting OLA +Critical: sendPacket:Socket not initialized: (El otro extremo de la conexión no está conectado) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Debug: Starting PD Audio: 1 +Debug: "Media Path Changed to: /home/santi/media" +Debug: PD Audio: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Audio: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +expr, expr~, fexpr~ version 0.4 under GNU General Public License +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "connecting to port 9198" +Debug: Sending conf to PD Audio +Debug: Sending conf to PD Audio +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "oggread~: no file open (ignored)" +Debug: PD Audio: "oggread~: file "/home/santi/media/sound/000-Explicit_Language-LadronesDeSuenos/01-ExplicitLanguage.ogg" opened" +Debug: PD Audio: "oggread~: input bitstream contained 1 logical bitstream section(s) +oggread~: total bitstream playing time: 127 seconds +oggread~: encoded by: Xiph.Org libVorbis I 20101101 (Schaufenugget) + + logical bitstream section 1 information: + 44100Hz 2 channels bitrate 111kbps serial number=663994593 + header length: 3995 bytes + compressed length: 1782558 bytes + play time: 127 seconds +" +Debug: PD Audio: "oggread~: START" +Debug: Saved file complete: "Bytes Write to file 84" +Debug: PD Video starts: 0 PD Audio starts: 1 +Debug: Date: QDate("Wed Feb 20 2013") Time: QTime("16:41:36") +Debug: ************************************************************************** +Debug: ************************************************************************** +Debug: Date: QDate("Wed Feb 20 2013") Time: QTime("16:41:43") +Debug: Starting OLA +Critical: sendPacket:Socket not initialized: (El otro extremo de la conexión no está conectado) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Debug: "Media Path Changed to: /home/santi/media" +Debug: Starting PD Video: 1 +Debug: PD Video: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Video: "GEM: Graphics Environment for Multimedia" +Debug: PD Video: "verbose(2): GEM: ver: 0.93.git v0.01-1-19-g615ec83" +Debug: PD Video: "verbose(2): GEM: compiled: Feb 19 2013" +Debug: PD Video: "verbose(2): GEM: maintained by IOhannes m zmoelnig" +Debug: PD Video: "verbose(2): GEM: Authors : Mark Danks (original version)" +Debug: PD Video: "verbose(2): GEM: Chris Clepper" +Debug: PD Video: "verbose(2): GEM: Cyrille Henry" +Debug: PD Video: "verbose(2): GEM: IOhannes m zmoelnig" +Debug: PD Video: "verbose(2): GEM: with help by Guenter Geiger, Daniel Heckenberg, James Tittle, Hans-Christoph Steiner, et al." +Debug: PD Video: "verbose(2): GEM: found a bug? miss a feature? please report it:" +Debug: PD Video: "verbose(2): GEM: homepage http://gem.iem.at/" +Debug: PD Video: "verbose(2): GEM: bug-tracker http://sourceforge.net/projects/pd-gem/" +Debug: PD Video: "verbose(2): GEM: mailing-list http://lists.puredata.info/listinfo/gem-dev/" +Debug: PD Video: "/etc/pd/gem.conf: No such file or directory" +Debug: PD Video: "/home/santi/.config/pure-data/gem.conf: No such file or directory" +Debug: PD Video: "./gem.conf: No such file or directory" +Debug: PD Video: "verbose(2): GEM: compiled for MMX architecture" +Debug: PD Video: "verbose(2): GEM: using MMX optimization" +Debug: PD Video: "verbose(2): GEM: detected 2 CPUs" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_film*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmAVIPLAY.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmGMERLIN.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmQT4L.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_image*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageJPEG.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageMAGICK.s" +Debug: PD Video: "library loading returned:" +Debug: PD Video: "dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageSGI.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageTIFF.s" +Debug: PD Video: "GEM: image loading support" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_image*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageJPEG.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageMAGICK.s" +Debug: PD Video: "library loading returned:" +Debug: PD Video: "dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageSGI.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageTIFF.s" +Debug: PD Video: "GEM: image saving support" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_model*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_modelOBJ.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_record*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_recordQT4L.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_video*.s" +Debug: PD Video: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "image' plugins (already 3 loaded) +verbose(3): [pix_film]: gmerlin support +verbose(3): [pix_film]: quicktime4linux support +verbose(3): [pix_film]: aviplay support +verbose(3): [pix_film]: image support +expr, expr~, fexpr~ version 0.4 under GNU General Public License " +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "verbose(4): ... you might be able to track this down from the Find menu." +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "[pix2jpg]: pix2jpg v0.02 Convert pix to jpeg and send to Unix Local Socket" +Debug: PD Video: "[pix2jpg]: (c) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Video: "[pix2jpg]: GPL License" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "togui: 0" +Debug: Loadbang Video +Warning: QAbstractSocket::connectToHost() called when already looking up or connecting/connected to "127.0.0.1" +Debug: PD Video: "error: [gemwin]: height must be greater than 0" +Debug: PD Video: "ola2pd: Init complete. Start listening..." +Debug: PD Video: "GEM: Direct Rendering enabled!" +Debug: PD Video: "GEM: GLEW version 1.5.4" +Debug: PD Video: "error: [gemwin]: window already made" +Debug: PD Video: "GEM: Start rendering" +Debug: PD Video: "[pix_film:audio_ffmpeg] Codec not found: FFmpeg Sonic decoder" +Debug: PD Video: "[pix_film]: loaded file: /home/santi/media/video/000-BassVisuals/000-AmoebaEvolution_320x240_30p_Photo-JPEG.mov with 210 frames (320x240) at 30.000000 fps" +Debug: PD Video: "togui: 1 /home/santi/media/video/000-BassVisuals/000-AmoebaEvolution_320x240_30p_Photo-JPEG.mov" +Debug: Starting PD Audio: 1 +Debug: PD Audio: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +expr, expr~, fexpr~ version 0.4 under GNU General Public License +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "connecting to port 9198" +Debug: Sending conf to PD Audio +Debug: Sending conf to PD Audio +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "oggread~: no file open (ignored) +oggread~: file "/home/santi/media/sound/000-Explicit_Language-LadronesDeSuenos/01-ExplicitLanguage.ogg" opened +oggread~: input bitstream contained 1 logical bitstream section(s) +oggread~: total bitstream playing time: 127 seconds +oggread~: encoded by: Xiph.Org libVorbis I 20101101 (Schaufenugget) + + logical bitstream section 1 information: + 44100Hz 2 channels bitrate 111kbps serial number=663994593 + header length: 3995 bytes + compressed length: 1782558 bytes + play time: 127 seconds +" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy +ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "oggread~: START" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy +ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open)" +Debug: PD Audio: "unable to open slav" +Debug: PD Audio: "ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open)" +Debug: PD Audio: "unable to open slave" +Debug: PD Audio: "ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear" +Debug: PD Audio: "ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe +ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side" +Debug: PD Audio: "ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)" +Debug: PD Audio: "ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)" +Debug: PD Audio: "ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)" +Debug: PD Audio: "ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)" +Debug: PD Audio: "ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream" +Debug: PD Audio: "ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave" +Debug: PD Audio: "Cannot connect to server socket err = No such file or directory +Cannot connect to server socket" +Debug: PD Audio: "jack server is not running or cannot be started" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy +ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy +ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "oggread~: closing file" +Debug: Saved file complete: "Bytes Write to file 84" +Debug: Starting PD Audio: 2 +Debug: PD Audio: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +expr, expr~, fexpr~ version 0.4 under GNU General Public License +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "connecting to port 9198" +Debug: Sending conf to PD Audio +Debug: Sending conf to PD Audio +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "oggread~: no file open (ignored) +oggread~: file "/home/santi/media/sound/000-Explicit_Language-LadronesDeSuenos/01-ExplicitLanguage.ogg" opened" +Debug: PD Audio: "oggread~: input bitstream contained 1 logical bitstream section(s) +oggread~: total bitstream playing time: 127 seconds +oggread~: encoded by: Xiph.Org libVorbis I 20101101 (Schaufenugget) + + logical bitstream section 1 information: + 44100Hz 2 channels bitrate 111kbps serial number=663994593 + header length: 3995 bytes + compressed length: 1782558 bytes + play time: 127 seconds +" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open)" +Debug: PD Audio: "unable to open slave" +Debug: PD Audio: "ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open)" +Debug: PD Audio: "unable to open slave" +Debug: PD Audio: "ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear" +Debug: PD Audio: "ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe +ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side" +Debug: PD Audio: "ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5) +ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5) +ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5) +ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5) +ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream" +Debug: PD Audio: "ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave" +Debug: PD Audio: "Cannot connect to server socket err = No such file or directory +Cannot connect to server socket" +Debug: PD Audio: "jack server is not running or cannot be started" +Debug: PD Audio: "/dev/dsp (read/write): No such file or directory +(now will try write-only...) +/dev/dsp (writeonly): No such file or directory +/dev/dsp (readonly): No such file or directory" +Debug: PD Audio: "/dev/dsp (read/write): No such file or directory +(now will try write-only...) +/dev/dsp (writeonly): No such file or directory +/dev/dsp (readonly): No such file or directory" +Debug: PD Audio: "error: audio I/O stuck... closing audio +" +Debug: PD Audio: "/dev/dsp (read/write): No such file or directory +(now will try write-only...) +/dev/dsp (writeonly): No such file or directory +/dev/dsp (readonly): No such file or directory" +Debug: PD Audio: "error: audio I/O stuck... closing audio +" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy +ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "oggread~: closing file" +Debug: Saved file complete: "Bytes Write to file 84" +Debug: Starting PD Audio: 3 +Debug: PD Audio: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +expr, expr~, fexpr~ version 0.4 under GNU General Public License " +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "connecting to port 9198" +Debug: Sending conf to PD Audio +Debug: Sending conf to PD Audio +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "oggread~: no file open (ignored)" +Debug: PD Audio: "oggread~: file "/home/santi/media/sound/000-Explicit_Language-LadronesDeSuenos/01-ExplicitLanguage.ogg" opened" +Debug: PD Audio: "oggread~: input bitstream contained 1 logical bitstream section(s) +oggread~: total bitstream playing time: 127 seconds +oggread~: encoded by: Xiph.Org libVorbis I 20101101 (Schaufenugget) + + logical bitstream section 1 information: + 44100Hz 2 channels bitrate 111kbps serial number=663994593 + header length: 3995 bytes + compressed length: 1782558 bytes + play time: 127 seconds +" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy +ALSA output error (snd_pcm_open): Device or resource busy" +Debug: Starting PD Audio: 4 +Debug: PD Audio: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Audio: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +expr, expr~, fexpr~ version 0.4 under GNU General Public License +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "connecting to port 9198" +Debug: Sending conf to PD Audio +Debug: Sending conf to PD Audio +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "oggread~: no file open (ignored)" +Debug: PD Audio: "oggread~: file "/home/santi/media/sound/000-Explicit_Language-LadronesDeSuenos/01-ExplicitLanguage.ogg" opened" +Debug: PD Audio: "oggread~: input bitstream contained 1 logical bitstream section(s) +oggread~: total bitstream playing time: 127 seconds +oggread~: encoded by: Xiph.Org libVorbis I 20101101 (Schaufenugget) + + logical bitstream section 1 information: + 44100Hz 2 channels bitrate 111kbps serial number=663994593 + header length: 3995 bytes + compressed length: 1782558 bytes + play time: 127 seconds +" +Debug: PD Audio: "oggread~: START" +Debug: Starting PD Video: 2 +Debug: PD Video: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Video: "ALSA input error (snd_pcm_open): Device or resource busy +ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Video: "GEM: Graphics Environment for Multimedia" +Debug: PD Video: "verbose(2): GEM: ver: 0.93.git v0.01-1-19-g615ec83" +Debug: PD Video: "verbose(2): GEM: compiled: Feb 19 2013" +Debug: PD Video: "verbose(2): GEM: maintained by IOhannes m zmoelnig" +Debug: PD Video: "verbose(2): GEM: Authors : Mark Danks (original version)" +Debug: PD Video: "verbose(2): GEM: Chris Clepper" +Debug: PD Video: "verbose(2): GEM: Cyrille Henry" +Debug: PD Video: "verbose(2): GEM: IOhannes m zmoelnig" +Debug: PD Video: "verbose(2): GEM: with help by Guenter Geiger, Daniel Heckenberg, James Tittle, Hans-Christoph Steiner, et al." +Debug: PD Video: "verbose(2): GEM: found a bug? miss a feature? please report it:" +Debug: PD Video: "verbose(2): GEM: homepage http://gem.iem.at/" +Debug: PD Video: "verbose(2): GEM: bug-tracker http://sourceforge.net/projects/pd-gem/" +Debug: PD Video: "verbose(2): GEM: mailing-list http://lists.puredata.info/listinfo/gem-dev/" +Debug: PD Video: "/etc/pd/gem.conf: No such file or directory" +Debug: PD Video: "/home/santi/.config/pure-data/gem.conf: No such file or directory" +Debug: PD Video: "./gem.conf: No such file or directory" +Debug: PD Video: "verbose(2): GEM: compiled for MMX architecture" +Debug: PD Video: "verbose(2): GEM: using MMX optimization" +Debug: PD Video: "verbose(2): GEM: detected 2 CPUs" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_film*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmAVIPLAY.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmGMERLIN.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmQT4L.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_image*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageJPEG.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageMAGICK.s" +Debug: PD Video: "library loading returned:" +Debug: PD Video: "dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageSGI.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageTIFF.s" +Debug: PD Video: "GEM: image loading support" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_image*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageJPEG.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageMAGICK.s" +Debug: PD Video: "library loading returned:" +Debug: PD Video: "dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageSGI.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageTIFF.s" +Debug: PD Video: "GEM: image saving support" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_model*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_modelOBJ.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_record*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_recordQT4L.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_video*.s" +Debug: PD Video: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading 'film' plugins (already 3 loaded)" +Debug: PD Video: "not reloading 'image' plugins (already 3 loaded) +verbose(3): [pix_film]: gmerlin support +verbose(3): [pix_film]: quicktime4linux support +verbose(3): [pix_film]: aviplay support +verbose(3): [pix_film]: image support" +Debug: PD Video: "expr, expr~, fexpr~ version 0.4 under GNU General Public License " +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "verbose(4): ... you might be able to track this down from the Find menu." +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "[pix2jpg]: pix2jpg v0.02 Convert pix to jpeg and send to Unix Local Socket" +Debug: PD Video: "[pix2jpg]: (c) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Video: "[pix2jpg]: GPL License" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "togui: 0" +Debug: Loadbang Video +Warning: QAbstractSocket::connectToHost() called when already looking up or connecting/connected to "127.0.0.1" +Debug: PD Video: "error: [gemwin]: height must be greater than 0" +Debug: PD Video: "ola2pd: Init complete. Start listening..." +Debug: PD Video: "GEM: Direct Rendering enabled!" +Debug: PD Video: "GEM: GLEW version 1.5.4" +Debug: PD Video: "error: [gemwin]: window already made" +Debug: PD Video: "GEM: Start rendering" +Debug: PD Video: "[pix_film:audio_ffmpeg] Codec not found: FFmpeg Sonic decoder" +Debug: PD Video: "[pix_film]: loaded file: /home/santi/media/video/000-BassVisuals/000-AmoebaEvolution_320x240_30p_Photo-JPEG.mov with 210 frames (320x240) at 30.000000 fps" +Debug: PD Video: "togui: 1 /home/santi/media/video/000-BassVisuals/000-AmoebaEvolution_320x240_30p_Photo-JPEG.mov" +Debug: Starting PD Audio: 5 +Debug: PD Audio: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Audio: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +expr, expr~, fexpr~ version 0.4 under GNU General Public License +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "connecting to port 9198" +Debug: Sending conf to PD Audio +Debug: Sending conf to PD Audio +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "oggread~: no file open (ignored)" +Debug: PD Audio: "oggread~: file "/home/santi/media/sound/000-Explicit_Language-LadronesDeSuenos/01-ExplicitLanguage.ogg" opened" +Debug: PD Audio: "oggread~: input bitstream contained 1 logical bitstream section(s) +oggread~: total bitstream playing time: 127 seconds +oggread~: encoded by: Xiph.Org libVorbis I 20101101 (Schaufenugget) + + logical bitstream section 1 information: + 44100Hz 2 channels bitrate 111kbps serial number=663994593 + header length: 3995 bytes + compressed length: 1782558 bytes + play time: 127 seconds +" +Debug: PD Audio: "oggread~: START" +Debug: PD Audio: "ola2pd: Close complete" +Debug: PD Video: "GEM: Stop rendering" +Debug: PD Video: "ola2pd: Close complete" +Debug: Saved file complete: "Bytes Write to file 84" +Debug: PD Video starts: 2 PD Audio starts: 5 +Debug: Date: QDate("Wed Feb 20 2013") Time: QTime("16:45:26") +Debug: ************************************************************************** +Debug: ************************************************************************** +Debug: Date: QDate("Wed Feb 20 2013") Time: QTime("16:46:27") +Debug: Starting OLA +Critical: sendPacket:Socket not initialized: (El otro extremo de la conexión no está conectado) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Debug: "Media Path Changed to: /home/santi/media" +Debug: Starting PD Video: 1 +Debug: PD Video: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Video: "GEM: Graphics Environment for Multimedia" +Debug: PD Video: "verbose(2): GEM: ver: 0.93.git v0.01-1-19-g615ec83" +Debug: PD Video: "verbose(2): GEM: compiled: Feb 19 2013" +Debug: PD Video: "verbose(2): GEM: maintained by IOhannes m zmoelnig" +Debug: PD Video: "verbose(2): GEM: Authors : Mark Danks (original version)" +Debug: PD Video: "verbose(2): GEM: Chris Clepper" +Debug: PD Video: "verbose(2): GEM: Cyrille Henry" +Debug: PD Video: "verbose(2): GEM: IOhannes m zmoelnig" +Debug: PD Video: "verbose(2): GEM: with help by Guenter Geiger, Daniel Heckenberg, James Tittle, Hans-Christoph Steiner, et al." +Debug: PD Video: "verbose(2): GEM: found a bug? miss a feature? please report it:" +Debug: PD Video: "verbose(2): GEM: homepage http://gem.iem.at/" +Debug: PD Video: "verbose(2): GEM: bug-tracker http://sourceforge.net/projects/pd-gem/" +Debug: PD Video: "verbose(2): GEM: mailing-list http://lists.puredata.info/listinfo/gem-dev/" +Debug: PD Video: "/etc/pd/gem.conf: No such file or directory" +Debug: PD Video: "/home/santi/.config/pure-data/gem.conf: No such file or directory" +Debug: PD Video: "./gem.conf: No such file or directory" +Debug: PD Video: "verbose(2): GEM: compiled for MMX architecture" +Debug: PD Video: "verbose(2): GEM: using MMX optimization" +Debug: PD Video: "verbose(2): GEM: detected 2 CPUs" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_film*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmAVIPLAY.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmGMERLIN.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmQT4L.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_image*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageJPEG.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageMAGICK.s" +Debug: PD Video: "library loading returned:" +Debug: PD Video: "dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageSGI.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageTIFF.s" +Debug: PD Video: "GEM: image loading support" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_image*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageJPEG.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageMAGICK.s" +Debug: PD Video: "library loading returned:" +Debug: PD Video: "dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageSGI.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageTIFF.s" +Debug: PD Video: "GEM: image saving support" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_model*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_modelOBJ.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_record*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_recordQT4L.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_video*.s" +Debug: PD Video: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading 'film' plugins (already 3 loaded) +not reloading 'image' plugins (already 3 loaded) +verbose(3): [pix_film]: gmerlin support +verbose(3): [pix_film]: quicktime4linux support +verbose(3): [pix_film]: aviplay support +verbose(3): [pix_film]: image support +expr, expr~, fexpr~ version 0.4 under GNU General Public License " +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "verbose(4): ... you might be able to track this down from the Find menu." +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "[pix2jpg]: pix2jpg v0.02 Convert pix to jpeg and send to Unix Local Socket" +Debug: PD Video: "[pix2jpg]: (c) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Video: "[pix2jpg]: GPL License" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "togui: 0" +Debug: Loadbang Video +Warning: QAbstractSocket::connectToHost() called when already looking up or connecting/connected to "127.0.0.1" +Debug: PD Video: "error: [gemwin]: height must be greater than 0" +Debug: PD Video: "ola2pd: Init complete. Start listening..." +Debug: PD Video: "[pix_film:audio_ffmpeg] Codec not found: FFmpeg Sonic decoder" +Debug: PD Video: "[pix_film]: loaded file: /home/santi/media/video/000-BassVisuals/000-AmoebaEvolution_320x240_30p_Photo-JPEG.mov with 210 frames (320x240) at 30.000000 fps" +Debug: PD Video: "togui: 1 /home/santi/media/video/000-BassVisuals/000-AmoebaEvolution_320x240_30p_Photo-JPEG.mov" +Debug: PD Video: "GEM: Direct Rendering enabled!" +Debug: PD Video: "GEM: GLEW version 1.5.4" +Debug: PD Video: "GEM: Start rendering" +Debug: Starting PD Audio: 1 +Debug: PD Audio: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy +ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +expr, expr~, fexpr~ version 0.4 under GNU General Public License " +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "connecting to port 9198" +Debug: Sending conf to PD Audio +Debug: Sending conf to PD Audio +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "oggread~: no file open (ignored)" +Debug: PD Audio: "oggread~: file "/home/santi/media/sound/000-Explicit_Language-LadronesDeSuenos/01-ExplicitLanguage.ogg" opened" +Debug: PD Audio: "oggread~: input bitstream contained 1 logical bitstream section(s) +oggread~: total bitstream playing time: 127 seconds +oggread~: encoded by: Xiph.Org libVorbis I 20101101 (Schaufenugget) + + logical bitstream section 1 information: + 44100Hz 2 channels bitrate 111kbps serial number=663994593 + header length: 3995 bytes + compressed length: 1782558 bytes + play time: 127 seconds +" +Debug: PD Audio: "oggread~: START" +Debug: PD Audio: "oggread~: START" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy +ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy +ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "oggread~: START" +Debug: Starting PD Audio: 2 +Debug: PD Audio: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Audio: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +expr, expr~, fexpr~ version 0.4 under GNU General Public License +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "connecting to port 9198" +Debug: Sending conf to PD Audio +Debug: Sending conf to PD Audio +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "oggread~: no file open (ignored)" +Debug: PD Audio: "oggread~: file "/home/santi/media/sound/000-Explicit_Language-LadronesDeSuenos/01-ExplicitLanguage.ogg" opened" +Debug: PD Audio: "oggread~: input bitstream contained 1 logical bitstream section(s) +oggread~: total bitstream playing time: 127 seconds +oggread~: encoded by: Xiph.Org libVorbis I 20101101 (Schaufenugget) + + logical bitstream section 1 information: + 44100Hz 2 channels bitrate 111kbps serial number=663994593 + header length: 3995 bytes + compressed length: 1782558 bytes + play time: 127 seconds +" +Debug: PD Audio: "oggread~: START" +Debug: Starting PD Video: 2 +Debug: PD Video: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Video: "GEM: Graphics Environment for Multimedia" +Debug: PD Video: "verbose(2): GEM: ver: 0.93.git v0.01-1-19-g615ec83" +Debug: PD Video: "verbose(2): GEM: compiled: Feb 19 2013" +Debug: PD Video: "verbose(2): GEM: maintained by IOhannes m zmoelnig" +Debug: PD Video: "verbose(2): GEM: Authors : Mark Danks (original version)" +Debug: PD Video: "verbose(2): GEM: Chris Clepper" +Debug: PD Video: "verbose(2): GEM: Cyrille Henry" +Debug: PD Video: "verbose(2): GEM: IOhannes m zmoelnig" +Debug: PD Video: "verbose(2): GEM: with help by Guenter Geiger, Daniel Heckenberg, James Tittle, Hans-Christoph Steiner, et al." +Debug: PD Video: "verbose(2): GEM: found a bug? miss a feature? please report it:" +Debug: PD Video: "verbose(2): GEM: homepage http://gem.iem.at/" +Debug: PD Video: "verbose(2): GEM: bug-tracker http://sourceforge.net/projects/pd-gem/" +Debug: PD Video: "verbose(2): GEM: mailing-list http://lists.puredata.info/listinfo/gem-dev/" +Debug: PD Video: "/etc/pd/gem.conf: No such file or directory" +Debug: PD Video: "/home/santi/.config/pure-data/gem.conf: No such file or directory" +Debug: PD Video: "./gem.conf: No such file or directory" +Debug: PD Video: "verbose(2): GEM: compiled for MMX architecture" +Debug: PD Video: "verbose(2): GEM: using MMX optimization" +Debug: PD Video: "verbose(2): GEM: detected 2 CPUs" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_film*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmAVIPLAY.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmGMERLIN.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmQT4L.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_image*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageJPEG.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageMAGICK.s" +Debug: PD Video: "library loading returned:" +Debug: PD Video: "dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageSGI.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageTIFF.s" +Debug: PD Video: "GEM: image loading support" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_image*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageJPEG.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageMAGICK.s" +Debug: PD Video: "library loading returned:" +Debug: PD Video: "dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageSGI.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageTIFF.s" +Debug: PD Video: "GEM: image saving support" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_model*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_modelOBJ.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_record*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_recordQT4L.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_video*.s" +Debug: PD Video: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading 'film' plugins (already 3 loaded) +not reloading 'image' plugins (already 3 loaded) +verbose(3): [pix_film]: gmerlin support +verbose(3): [pix_film]: quicktime4linux support +verbose(3): [pix_film]: aviplay support +verbose(3): [pix_film]: image support +expr, expr~, fexpr~ version 0.4 under GNU General Public License " +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "verbose(4): ... you might be able to track this down from the Find menu." +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "[pix2jpg]: pix2jpg v0.02 Convert pix to jpeg and send to Unix Local Socket" +Debug: PD Video: "[pix2jpg]: (c) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Video: "[pix2jpg]: GPL License" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "togui: 0" +Debug: Loadbang Video +Warning: QAbstractSocket::connectToHost() called when already looking up or connecting/connected to "127.0.0.1" +Debug: PD Video: "error: [gemwin]: height must be greater than 0" +Debug: PD Video: "ola2pd: Init complete. Start listening..." +Debug: PD Video: "GEM: Direct Rendering enabled!" +Debug: PD Video: "GEM: GLEW version 1.5.4" +Debug: PD Video: "error: [gemwin]: window already made" +Debug: PD Video: "GEM: Start rendering" +Debug: PD Video: "[pix_film:audio_ffmpeg] Codec not found: FFmpeg Sonic decoder" +Debug: PD Video: "[pix_film]: loaded file: /home/santi/media/video/000-BassVisuals/000-AmoebaEvolution_320x240_30p_Photo-JPEG.mov with 210 frames (320x240) at 30.000000 fps" +Debug: PD Video: "togui: 1 /home/santi/media/video/000-BassVisuals/000-AmoebaEvolution_320x240_30p_Photo-JPEG.mov" +Debug: Starting PD Audio: 3 +Debug: PD Audio: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "expr, expr~, fexpr~ version 0.4 under GNU General Public License " +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "connecting to port 9198" +Debug: Sending conf to PD Audio +Debug: Sending conf to PD Audio +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "oggread~: no file open (ignored) +oggread~: file "/home/santi/media/sound/000-Explicit_Language-LadronesDeSuenos/01-ExplicitLanguage.ogg" opened" +Debug: PD Audio: "oggread~: input bitstream contained 1 logical bitstream section(s) +oggread~: total bitstream playing time: 127 seconds +oggread~: encoded by: Xiph.Org libVorbis I 20101101 (Schaufenugget) + + logical bitstream section 1 information: + 44100Hz 2 channels bitrate 111kbps serial number=663994593 + header length: 3995 bytes + compressed length: 1782558 bytes + play time: 127 seconds +" +Debug: PD Audio: "ALSA input error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "ALSA output error (snd_pcm_open): Device or resource busy" +Debug: PD Audio: "oggread~: START" +Debug: PD Audio: "oggread~: START" +Debug: PD Audio: "oggread~: START" +Debug: PD Audio: "oggread~: START" +Debug: Starting PD Audio: 4 +Debug: PD Audio: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Audio: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +expr, expr~, fexpr~ version 0.4 under GNU General Public License " +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "connecting to port 9198" +Debug: Sending conf to PD Audio +Debug: Sending conf to PD Audio +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "oggread~: no file open (ignored) +oggread~: file "/home/santi/media/sound/000-Explicit_Language-LadronesDeSuenos/01-ExplicitLanguage.ogg" opened" +Debug: PD Audio: "oggread~: input bitstream contained 1 logical bitstream section(s) +oggread~: total bitstream playing time: 127 seconds +oggread~: encoded by: Xiph.Org libVorbis I 20101101 (Schaufenugget) + + logical bitstream section 1 information: + 44100Hz 2 channels bitrate 111kbps serial number=663994593 + header length: 3995 bytes + compressed length: 1782558 bytes + play time: 127 seconds +" +Debug: PD Audio: "oggread~: START" +Debug: Saved file complete: "Bytes Write to file 84" +Debug: PD Video starts: 2 PD Audio starts: 4 +Debug: Date: QDate("Wed Feb 20 2013") Time: QTime("16:53:02") +Debug: ************************************************************************** +Debug: ****************************************************************************************************** +Debug: QDate("Wed Feb 20 2013") QTime("16:53:27") +Debug: Starting OLA +Critical: sendPacket:Socket not initialized: (El otro extremo de la conexión no está conectado) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Debug: Starting PD Audio: 1 +Debug: "Media Path Changed to: /home/santi/media" +Debug: PD Audio: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Audio: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +expr, expr~, fexpr~ version 0.4 under GNU General Public License " +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "connecting to port 9198" +Debug: Sending conf to PD Audio +Debug: Sending conf to PD Audio +Debug: PD Audio: "ola2pd: Success" +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "oggread~: no file open (ignored)" +Debug: PD Audio: "oggread~: file "/home/santi/media/sound/000-Explicit_Language-LadronesDeSuenos/01-ExplicitLanguage.ogg" opened" +Debug: PD Audio: "oggread~: input bitstream contained 1 logical bitstream section(s) +oggread~: total bitstream playing time: 127 seconds +oggread~: encoded by: Xiph.Org libVorbis I 20101101 (Schaufenugget) + + logical bitstream section 1 information: + 44100Hz 2 channels bitrate 111kbps serial number=663994593 + header length: 3995 bytes + compressed length: 1782558 bytes + play time: 127 seconds +" +Debug: PD Audio: "oggread~: START" +Debug: Starting PD Video: 1 +Debug: PD Video: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Video: "GEM: Graphics Environment for Multimedia" +Debug: PD Video: "verbose(2): GEM: ver: 0.93.git v0.01-1-19-g615ec83 +verbose(2): GEM: compiled: Feb 19 2013 +verbose(2): GEM: maintained by IOhannes m zmoelnig +verbose(2): GEM: Authors : Mark Danks (original version) +verbose(2): GEM: Chris Clepper +verbose(2): GEM: Cyrille Henry +verbose(2): GEM: IOhannes m zmoelnig +verbose(2): GEM: with help by Guenter Geiger, Daniel Heckenberg, James Tittle, Hans-Christoph Steiner, et al. +verbose(2): GEM: found a bug? miss a feature? please report it: +verbose(2): GEM: homepage http://gem.iem.at/ +verbose(2): GEM: bug-tracker http://sourceforge.net/projects/pd-gem/ +verbose(2): GEM: mailing-list http://lists.puredata.info/listinfo/gem-dev/ +open: /etc/pd/gem.conf: No such file or directory +open: /home/santi/.config/pure-data/gem.conf: No such file or directory +open: ./gem.conf: No such file or directory" +Debug: PD Video: "verbose(2): GEM: compiled for MMX architecture +verbose(2): GEM: using MMX optimization +verbose(2): GEM: detected 2 CPUs +load plugins 'film' in './externals/' +pattern : ./externals/gem_film*.so" +Debug: PD Video: "dylib loading file './externals/gem_filmAVIPLAY.so'!" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmGMERLIN.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmQT4L.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_image*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageJPEG.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageMAGICK.s" +Debug: PD Video: "library loading returned:" +Debug: PD Video: "dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageSGI.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageTIFF.s" +Debug: PD Video: "GEM: image loading support" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_image*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageJPEG.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageMAGICK.s" +Debug: PD Video: "library loading returned:" +Debug: PD Video: "dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageSGI.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageTIFF.s" +Debug: PD Video: "GEM: image saving support" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_model*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_modelOBJ.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_record*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_recordQT4L.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_video*.s" +Debug: PD Video: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading 'film' plugins (already 3 loaded) +not reloading 'image' plugins (already 3 loaded) +verbose(3): [pix_film]: gmerlin support +verbose(3): [pix_film]: quicktime4linux support +verbose(3): [pix_film]: aviplay support +verbose(3): [pix_film]: image support +expr, expr~, fexpr~ version 0.4 under GNU General Public License " +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "verbose(4): ... you might be able to track this down from the Find menu." +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading 'film' plugins (already 3 loaded) +not reloading 'image' plugins (already 3 loaded)" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf' +not reloading 'film' plugins (already 3 loaded) +not reloading 'image' plugins (already 3 loaded)" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "[pix2jpg]: pix2jpg v0.02 Convert pix to jpeg and send to Unix Local Socket" +Debug: PD Video: "[pix2jpg]: (c) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Video: "[pix2jpg]: GPL License" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "togui: 0" +Debug: Loadbang Video +Warning: QAbstractSocket::connectToHost() called when already looking up or connecting/connected to "127.0.0.1" +Debug: PD Video: "error: [gemwin]: height must be greater than 0" +Debug: PD Video: "ola2pd: Init complete. Start listening..." +Debug: PD Video: "GEM: Direct Rendering enabled!" +Debug: PD Video: "GEM: GLEW version 1.5.4" +Debug: PD Video: "error: [gemwin]: window already made" +Debug: PD Video: "GEM: Start rendering" +Debug: PD Video: "[pix_film:audio_ffmpeg] Codec not found: FFmpeg Sonic decoder +[pix_film]: loaded file: /home/santi/media/video/000-BassVisuals/000-AmoebaEvolution_320x240_30p_Photo-JPEG.mov with 210 frames (320x240) at 30.000000 fps +togui: 1 /home/santi/media/video/000-BassVisuals/000-AmoebaEvolution_320x240_30p_Photo-JPEG.mov" +Debug: Starting PD Audio: 2 +Debug: PD Audio: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Audio: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "expr, expr~, fexpr~ version 0.4 under GNU General Public License " +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "connecting to port 9198" +Debug: Sending conf to PD Audio +Debug: Sending conf to PD Audio +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "oggread~: no file open (ignored) +oggread~: file "/home/santi/media/sound/000-Explicit_Language-LadronesDeSuenos/01-ExplicitLanguage.ogg" opened" +Debug: PD Audio: "oggread~: input bitstream contained 1 logical bitstream section(s) +oggread~: total bitstream playing time: 127 seconds +oggread~: encoded by: Xiph.Org libVorbis I 20101101 (Schaufenugget) + + logical bitstream section 1 information: + 44100Hz 2 channels bitrate 111kbps serial number=663994593 + header length: 3995 bytes + compressed length: 1782558 bytes + play time: 127 seconds +" +Debug: PD Audio: "oggread~: START" +Debug: PD Audio: "ola2pd: Close complete" +Debug: PD Video: "GEM: Stop rendering" +Debug: PD Video: "ola2pd: Close complete" +Debug: Saved file complete: "Bytes Write to file 84" +Debug: PD Video starts: 1 PD Audio starts: 2 +Debug: Date: QDate("Wed Feb 20 2013") Time: QTime("16:58:51") +Debug: ****************************************************************************************************** +Debug: ****************************************************************************************************** +Debug: QDate("Wed Feb 20 2013") QTime("17:22:37") +Debug: Starting OLA +Critical: sendPacket:Socket not initialized: (El otro extremo de la conexión no está conectado) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Critical: sendPacket:Socket not initialized: (La lista de argumentos es demasiado larga) +Debug: "Media Path Changed to: /home/santi/media" +Debug: Starting PD Video: 1 +Debug: PD Video: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Video: "GEM: Graphics Environment for Multimedia" +Debug: PD Video: "verbose(2): GEM: ver: 0.93.git v0.01-1-19-g615ec83" +Debug: PD Video: "verbose(2): GEM: compiled: Feb 19 2013" +Debug: PD Video: "verbose(2): GEM: maintained by IOhannes m zmoelnig" +Debug: PD Video: "verbose(2): GEM: Authors : Mark Danks (original version)" +Debug: PD Video: "verbose(2): GEM: Chris Clepper" +Debug: PD Video: "verbose(2): GEM: Cyrille Henry" +Debug: PD Video: "verbose(2): GEM: IOhannes m zmoelnig" +Debug: PD Video: "verbose(2): GEM: with help by Guenter Geiger, Daniel Heckenberg, James Tittle, Hans-Christoph Steiner, et al." +Debug: PD Video: "verbose(2): GEM: found a bug? miss a feature? please report it:" +Debug: PD Video: "verbose(2): GEM: homepage http://gem.iem.at/" +Debug: PD Video: "verbose(2): GEM: bug-tracker http://sourceforge.net/projects/pd-gem/" +Debug: PD Video: "verbose(2): GEM: mailing-list http://lists.puredata.info/listinfo/gem-dev/" +Debug: PD Video: "/etc/pd/gem.conf: No such file or directory" +Debug: PD Video: "/home/santi/.config/pure-data/gem.conf: No such file or directory" +Debug: PD Video: "./gem.conf: No such file or directory" +Debug: PD Video: "verbose(2): GEM: compiled for MMX architecture" +Debug: PD Video: "verbose(2): GEM: using MMX optimization" +Debug: PD Video: "verbose(2): GEM: detected 2 CPUs" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_film*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmAVIPLAY.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmGMERLIN.s" +Debug: PD Video: "dylib loading file './externals/gem_filmQT4L.so'!" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_image*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageJPEG.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageMAGICK.s" +Debug: PD Video: "library loading returned:" +Debug: PD Video: "dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageSGI.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageTIFF.s" +Debug: PD Video: "GEM: image loading support" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_image*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageJPEG.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageMAGICK.s" +Debug: PD Video: "library loading returned:" +Debug: PD Video: "dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageSGI.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_imageTIFF.s" +Debug: PD Video: "GEM: image saving support" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_model*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_modelOBJ.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_record*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_recordQT4L.s" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_video*.s" +Debug: PD Video: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com +not reloading 'image' plugins (already 3 loaded)" +Debug: PD Video: "not reloading " +Debug: PD Video: "film' plugins (already 3 loaded) +not reloading 'image' plugins (already 3 loaded) +verbose(3): [pix_film]: gmerlin support +verbose(3): [pix_film]: quicktime4linux support +verbose(3): [pix_film]: aviplay support +verbose(3): [pix_film]: image support +expr, expr~, fexpr~ version 0.4 under GNU General Public License +error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf' +verbose(4): ... you might be able to track this down from the Find menu." +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "[pix2jpg]: pix2jpg v0.02 Convert pix to jpeg and send to Unix Local Socket" +Debug: PD Video: "[pix2jpg]: (c) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Video: "[pix2jpg]: GPL License" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt' +coll: finished reading 28 lines from text file 'text.txt' +coll: finished reading 28 lines from text file 'text.txt' +coll: finished reading 28 lines from text file 'text.txt' +coll: finished reading 28 lines from text file 'text.txt' +coll: finished reading 28 lines from text file 'text.txt' +coll: finished reading 28 lines from text file 'text.txt' +coll: finished reading 28 lines from text file 'text.txt' +togui: 0" +Debug: Loadbang Video +Warning: QAbstractSocket::connectToHost() called when already looking up or connecting/connected to "127.0.0.1" +Debug: PD Video: "error: [gemwin]: height must be greater than 0" +Debug: PD Video: "GEM: Direct Rendering enabled!" +Debug: PD Video: "GEM: GLEW version 1.5.4" +Debug: PD Video: "GEM: Start rendering" +Debug: PD Video: "ola2pd: Init complete. Start listening..." +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "GEM: Stop rendering" +Debug: Saved file complete: "Bytes Write to file 84" +Debug: Starting PD Video: 2 +Debug: PD Video: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Video: "GEM: Graphics Environment for Multimedia" +Debug: PD Video: "verbose(2): GEM: ver: 0.93.git v0.01-1-19-g615ec83" +Debug: PD Video: "verbose(2): GEM: compiled: Feb 19 2013" +Debug: PD Video: "verbose(2): GEM: maintained by IOhannes m zmoelnig" +Debug: PD Video: "verbose(2): GEM: Authors : Mark Danks (original version)" +Debug: PD Video: "verbose(2): GEM: Chris Clepper" +Debug: PD Video: "verbose(2): GEM: Cyrille Henry" +Debug: PD Video: "verbose(2): GEM: IOhannes m zmoelnig" +Debug: PD Video: "verbose(2): GEM: with help by Guenter Geiger, Daniel Heckenberg, James Tittle, Hans-Christoph Steiner, et al." +Debug: PD Video: "verbose(2): GEM: found a bug? miss a feature? please report it:" +Debug: PD Video: "verbose(2): GEM: homepage http://gem.iem.at/" +Debug: PD Video: "verbose(2): GEM: bug-tracker http://sourceforge.net/projects/pd-gem/" +Debug: PD Video: "verbose(2): GEM: mailing-list http://lists.puredata.info/listinfo/gem-dev/" +Debug: PD Video: "/etc/pd/gem.conf: No such file or directory" +Debug: PD Video: "/home/santi/.config/pure-data/gem.conf: No such file or directory" +Debug: PD Video: "./gem.conf: No such file or directory" +Debug: PD Video: "verbose(2): GEM: compiled for MMX architecture" +Debug: PD Video: "verbose(2): GEM: using MMX optimization" +Debug: PD Video: "verbose(2): GEM: detected 2 CPUs" +Debug: PD Video: "load plugins " +Debug: PD Video: "./externals" +Debug: PD Video: "pattern :" +Debug: PD Video: "./externals/gem_film*.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmAVIPLAY.s" +Debug: PD Video: "dylib loading file " +Debug: PD Video: "./externals/gem_filmGMERLIN.s" +Debug: PD Video: "dylib loading file './externals/gem_filmQT4L.so'!" +Debug: PD Video: "load plugins 'image' in './externals/' +pattern : ./externals/gem_image*.so" +Debug: PD Video: "dylib loading file './externals/gem_imageJPEG.so'!" +Debug: PD Video: "dylib loading file './externals/gem_imageMAGICK.so'!" +Debug: PD Video: "library loading returned: dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory' +dylib loading file './externals/gem_imageSGI.so'!" +Debug: PD Video: "dylib loading file './externals/gem_imageTIFF.so'!" +Debug: PD Video: "GEM: image loading support: SGI jpeg tiff" +Debug: PD Video: "not reloading 'image' plugins (already 3 loaded) +load plugins 'image' in './externals/' +pattern : ./externals/gem_image*.so" +Debug: PD Video: "dylib loading file './externals/gem_imageJPEG.so'!" +Debug: PD Video: "dylib loading file './externals/gem_imageMAGICK.so'!" +Debug: PD Video: "library loading returned: dlerror 'libMagick++-6.Q16.so.1: cannot open shared object file: No such file or directory' +dylib loading file './externals/gem_imageSGI.so'!" +Debug: PD Video: "dylib loading file './externals/gem_imageTIFF.so'! +GEM: image saving support: jpeg tiff +load plugins 'model' in './externals/' +pattern : ./externals/gem_model*.so" +Debug: PD Video: "dylib loading file './externals/gem_modelOBJ.so'!" +Debug: PD Video: "load plugins 'record' in './externals/' +pattern : ./externals/gem_record*.so" +Debug: PD Video: "dylib loading file './externals/gem_recordQT4L.so'!" +Debug: PD Video: "load plugins 'video' in './externals/' +pattern : ./externals/gem_video*.so" +Debug: PD Video: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Video: "not reloading 'image' plugins (already 3 loaded)" +Debug: PD Video: "not reloading 'film' plugins (already 3 loaded) +not reloading 'image' plugins (already 3 loaded) +verbose(3): [pix_film]: gmerlin support +verbose(3): [pix_film]: quicktime4linux support +verbose(3): [pix_film]: aviplay support +verbose(3): [pix_film]: image support +expr, expr~, fexpr~ version 0.4 under GNU General Public License " +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf' +verbose(4): ... you might be able to track this down from the Find menu." +Debug: PD Video: "not reloading 'film' plugins (already 3 loaded)" +Debug: PD Video: "not reloading 'image' plugins (already 3 loaded)" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading 'film' plugins (already 3 loaded)" +Debug: PD Video: "not reloading 'image' plugins (already 3 loaded)" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already 3 loaded)" +Debug: PD Video: "not reloading 'image' plugins (already 3 loaded)" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "not reloading " +Debug: PD Video: "' plugins (already" +Debug: PD Video: " loaded" +Debug: PD Video: "error: [text3d]: cannot find font-file '/home/santi/lms/git/libremediaserver/bin/vera.ttf'" +Debug: PD Video: "[pix2jpg]: pix2jpg v0.02 Convert pix to jpeg and send to Unix Local Socket" +Debug: PD Video: "[pix2jpg]: (c) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Video: "[pix2jpg]: GPL License" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "coll: finished reading 28 lines from text file 'text.txt'" +Debug: PD Video: "togui: 0" +Debug: Loadbang Video +Warning: QAbstractSocket::connectToHost() called when already looking up or connecting/connected to "127.0.0.1" +Debug: PD Video: "error: [gemwin]: height must be greater than 0" +Debug: PD Video: "ola2pd: Init complete. Start listening..." +Debug: PD Video: "GEM: Direct Rendering enabled!" +Debug: PD Video: "GEM: GLEW version 1.5.4" +Debug: PD Video: "error: [gemwin]: window already made" +Debug: PD Video: "GEM: Start rendering" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: Starting PD Audio: 1 +Debug: PD Audio: "disabling real-time priority due to missing pd-watchdog (../bin/pd-watchdog)" +Debug: PD Audio: "ola2pd v0.02 - an interface to Open Lighting Arquitecture +(C) 2012-2013 Santi Noreña libremediaserver@gmail.com" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +expr, expr~, fexpr~ version 0.4 under GNU General Public License +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes +oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "oggread~: ogg/vorbis file reader version 0.2c, written by Olaf Matthes" +Debug: PD Audio: "connecting to port 9198" +Debug: Sending conf to PD Audio +Debug: Sending conf to PD Audio +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Audio: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Audio: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Audio: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Audio: "ola2pd: Can not read DMX!" +Debug: PD Audio: "ola2pd: Close complete" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Audio: "ola2pd: Success" +Debug: PD Audio: "ola2pd: Init complete. Start listening..." +Debug: PD Audio: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Audio: "ola2pd: Can not read DMX!" +Debug: PD Audio: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Audio: "ola2pd: Can not read DMX!" +Debug: PD Audio: "ola2pd: Can not read DMX!" +Debug: PD Video: "ola2pd: Can not read DMX!" +Debug: PD Audio: "ola2pd: Can not read DMX!" +Debug: PD Audio: "ola2pd: Can not read DMX!" +Debug: Saved file complete: "Bytes Write to file 84" +Debug: PD Video starts: 2 PD Audio starts: 1 +Debug: QDate("Wed Feb 20 2013") QTime("17:27:58") +Debug: ****************************************************************************************************** diff --git a/bin/pd b/pd similarity index 100% rename from bin/pd rename to pd diff --git a/pd-0.44-2/bin/pd b/pd-0.44-2/bin/pd deleted file mode 100755 index 392afbe..0000000 Binary files a/pd-0.44-2/bin/pd and /dev/null differ diff --git a/src/Gem/COPYING.txt b/src/Gem/COPYING.txt new file mode 100644 index 0000000..e54306d --- /dev/null +++ b/src/Gem/COPYING.txt @@ -0,0 +1,48 @@ +GEM - Graphics Environment for Multimedia +Copyright © 1997-2000 Mark Danks +Copyright © Günter Geiger +Copyright © 2001-2011 IOhannes m zmölnig, +Copyright © 2003-2007 James Tittle II, +Copyright © 2003-2008 Chris Clepper + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along +with this program. If not, see . + +In the official GEM distribution, the GNU General Public License is +in the file GnuGPL.LICENSE + +--------------------------------------------------------- + + ACKNOWLEDGMENTS + +--------------------------------------------------------- +Not all of the source code provided here has entirely been written by me. +I would like to point at the great openGL-tutorials at http://nehe.gamedev.net +Since these are tutorials, there is no copyright notice here. +Some of the pix_fx code is borrowed from effecTV by Kentarou Fukuchi et al. +at http://effectv.sourceforge.net released under the Gnu GPL, some other pix_fx +code has been ported from Pete Warden's fine collection of FreeFrame plugins at +http://petewarden.com released under the Gnu GPL. + +--------------------------------------------------------- + + OTHER COPYRIGHT NOTICES + +--------------------------------------------------------- + +particle: + Author: David McAllister + davemc[AT]cs.unc.edu + http://www.cs.unc.edu/~davemc/Particle/ + Copyright (c) 1998 David K. McAllister + diff --git a/bin/Gem/ChangeLog b/src/Gem/ChangeLog similarity index 100% rename from bin/Gem/ChangeLog rename to src/Gem/ChangeLog diff --git a/Gem/Gem-meta.pd.in b/src/Gem/Gem-meta.pd.in similarity index 100% rename from Gem/Gem-meta.pd.in rename to src/Gem/Gem-meta.pd.in diff --git a/Gem/Gem.pc.in b/src/Gem/Gem.pc.in similarity index 100% rename from Gem/Gem.pc.in rename to src/Gem/Gem.pc.in diff --git a/bin/Gem/GnuGPL.LICENSE.txt b/src/Gem/GnuGPL.LICENSE.txt similarity index 100% rename from bin/Gem/GnuGPL.LICENSE.txt rename to src/Gem/GnuGPL.LICENSE.txt diff --git a/Gem/Makefile.am b/src/Gem/Makefile.am similarity index 100% rename from Gem/Makefile.am rename to src/Gem/Makefile.am diff --git a/src/Gem/Makefile.in b/src/Gem/Makefile.in new file mode 100644 index 0000000..dd1cbaa --- /dev/null +++ b/src/Gem/Makefile.in @@ -0,0 +1,1005 @@ +# Makefile.in generated by automake 1.11.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = . +DIST_COMMON = $(am__configure_deps) $(dist_gem_DATA) \ + $(srcdir)/Gem-meta.pd.in $(srcdir)/Gem.pc.in \ + $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(top_srcdir)/configure ChangeLog TODO config.guess config.sub \ + depcomp install-sh ltmain.sh missing +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_gl.m4 \ + $(top_srcdir)/m4/ax_check_glu.m4 \ + $(top_srcdir)/m4/ax_check_glut.m4 \ + $(top_srcdir)/m4/ax_compiler_vendor.m4 \ + $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/gem.m4 \ + $(top_srcdir)/m4/iem_ftgl.m4 $(top_srcdir)/m4/iem_opengl.m4 \ + $(top_srcdir)/m4/iem_operatingsystem.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/src/config.h +CONFIG_CLEAN_FILES = Gem.pc Gem-meta.pd +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(gemdir)" "$(DESTDIR)$(pkgconfigdir)" +DATA = $(dist_gem_DATA) $(pkgconfig_DATA) +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir dist dist-all distcheck +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + if test -d "$(distdir)"; then \ + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -rf "$(distdir)" \ + || { sleep 5 && rm -rf "$(distdir)"; }; \ + else :; fi +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +AGL_CFLAGS = @AGL_CFLAGS@ +AGL_LIBS = @AGL_LIBS@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFINES = @DEFINES@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXT = @EXT@ +FGREP = @FGREP@ +GEM_ARCH_CXXFLAGS = @GEM_ARCH_CXXFLAGS@ +GEM_ARCH_LDFLAGS = @GEM_ARCH_LDFLAGS@ +GEM_CFLAGS = @GEM_CFLAGS@ +GEM_CPPFLAGS = @GEM_CPPFLAGS@ +GEM_CXXFLAGS = @GEM_CXXFLAGS@ +GEM_DEFAULT_WINDOW = @GEM_DEFAULT_WINDOW@ +GEM_EXTERNAL_CFLAGS = @GEM_EXTERNAL_CFLAGS@ +GEM_EXTERNAL_CPPFLAGS = @GEM_EXTERNAL_CPPFLAGS@ +GEM_EXTERNAL_LIBS = @GEM_EXTERNAL_LIBS@ +GEM_FRAMEWORK_AGL = @GEM_FRAMEWORK_AGL@ +GEM_FRAMEWORK_CARBON = @GEM_FRAMEWORK_CARBON@ +GEM_FRAMEWORK_COCOA = @GEM_FRAMEWORK_COCOA@ +GEM_FRAMEWORK_QUICKTIME = @GEM_FRAMEWORK_QUICKTIME@ +GEM_LIBS = @GEM_LIBS@ +GEM_LIB_ASSIMP_CFLAGS = @GEM_LIB_ASSIMP_CFLAGS@ +GEM_LIB_ASSIMP_LIBS = @GEM_LIB_ASSIMP_LIBS@ +GEM_LIB_AVIFILE_CFLAGS = @GEM_LIB_AVIFILE_CFLAGS@ +GEM_LIB_AVIFILE_LIBS = @GEM_LIB_AVIFILE_LIBS@ +GEM_LIB_FRIBIDI_CFLAGS = @GEM_LIB_FRIBIDI_CFLAGS@ +GEM_LIB_FRIBIDI_LIBS = @GEM_LIB_FRIBIDI_LIBS@ +GEM_LIB_FTGL_CFLAGS = @GEM_LIB_FTGL_CFLAGS@ +GEM_LIB_FTGL_LIBS = @GEM_LIB_FTGL_LIBS@ +GEM_LIB_GLEW_CFLAGS = @GEM_LIB_GLEW_CFLAGS@ +GEM_LIB_GLEW_LIBS = @GEM_LIB_GLEW_LIBS@ +GEM_LIB_GMERLIN_AVDEC_CFLAGS = @GEM_LIB_GMERLIN_AVDEC_CFLAGS@ +GEM_LIB_GMERLIN_AVDEC_LIBS = @GEM_LIB_GMERLIN_AVDEC_LIBS@ +GEM_LIB_IMAGEMAGICK___CFLAGS = @GEM_LIB_IMAGEMAGICK___CFLAGS@ +GEM_LIB_IMAGEMAGICK___LIBS = @GEM_LIB_IMAGEMAGICK___LIBS@ +GEM_LIB_JPEG_CFLAGS = @GEM_LIB_JPEG_CFLAGS@ +GEM_LIB_JPEG_LIBS = @GEM_LIB_JPEG_LIBS@ +GEM_LIB_LIBDC1394_2_CFLAGS = @GEM_LIB_LIBDC1394_2_CFLAGS@ +GEM_LIB_LIBDC1394_2_LIBS = @GEM_LIB_LIBDC1394_2_LIBS@ +GEM_LIB_LIBDV_CFLAGS = @GEM_LIB_LIBDV_CFLAGS@ +GEM_LIB_LIBDV_LIBS = @GEM_LIB_LIBDV_LIBS@ +GEM_LIB_LIBIEC61883_CFLAGS = @GEM_LIB_LIBIEC61883_CFLAGS@ +GEM_LIB_LIBIEC61883_LIBS = @GEM_LIB_LIBIEC61883_LIBS@ +GEM_LIB_LIBMPEG3_CFLAGS = @GEM_LIB_LIBMPEG3_CFLAGS@ +GEM_LIB_LIBMPEG3_LIBS = @GEM_LIB_LIBMPEG3_LIBS@ +GEM_LIB_LIBQUICKTIME_CFLAGS = @GEM_LIB_LIBQUICKTIME_CFLAGS@ +GEM_LIB_LIBQUICKTIME_LIBS = @GEM_LIB_LIBQUICKTIME_LIBS@ +GEM_LIB_LIBRAW1394_CFLAGS = @GEM_LIB_LIBRAW1394_CFLAGS@ +GEM_LIB_LIBRAW1394_LIBS = @GEM_LIB_LIBRAW1394_LIBS@ +GEM_LIB_LIBUNICAP_CFLAGS = @GEM_LIB_LIBUNICAP_CFLAGS@ +GEM_LIB_LIBUNICAP_LIBS = @GEM_LIB_LIBUNICAP_LIBS@ +GEM_LIB_LIBV4L1_CFLAGS = @GEM_LIB_LIBV4L1_CFLAGS@ +GEM_LIB_LIBV4L1_LIBS = @GEM_LIB_LIBV4L1_LIBS@ +GEM_LIB_LIBV4L2_CFLAGS = @GEM_LIB_LIBV4L2_CFLAGS@ +GEM_LIB_LIBV4L2_LIBS = @GEM_LIB_LIBV4L2_LIBS@ +GEM_LIB_LIBVLC_CFLAGS = @GEM_LIB_LIBVLC_CFLAGS@ +GEM_LIB_LIBVLC_LIBS = @GEM_LIB_LIBVLC_LIBS@ +GEM_LIB_LQT_CFLAGS = @GEM_LIB_LQT_CFLAGS@ +GEM_LIB_LQT_LIBS = @GEM_LIB_LQT_LIBS@ +GEM_LIB_MAGICKCORE_CFLAGS = @GEM_LIB_MAGICKCORE_CFLAGS@ +GEM_LIB_MAGICKCORE_LIBS = @GEM_LIB_MAGICKCORE_LIBS@ +GEM_LIB_MPEG_CFLAGS = @GEM_LIB_MPEG_CFLAGS@ +GEM_LIB_MPEG_LIBS = @GEM_LIB_MPEG_LIBS@ +GEM_LIB_SDL_CFLAGS = @GEM_LIB_SDL_CFLAGS@ +GEM_LIB_SDL_LIBS = @GEM_LIB_SDL_LIBS@ +GEM_LIB_TIFF_CFLAGS = @GEM_LIB_TIFF_CFLAGS@ +GEM_LIB_TIFF_LIBS = @GEM_LIB_TIFF_LIBS@ +GEM_LIB_VFW32_CFLAGS = @GEM_LIB_VFW32_CFLAGS@ +GEM_LIB_VFW32_LIBS = @GEM_LIB_VFW32_LIBS@ +GEM_PTHREAD_CFLAGS = @GEM_PTHREAD_CFLAGS@ +GEM_PTHREAD_LIBS = @GEM_PTHREAD_LIBS@ +GEM_RTE = @GEM_RTE@ +GEM_RTE_CFLAGS = @GEM_RTE_CFLAGS@ +GEM_RTE_EXTENSION = @GEM_RTE_EXTENSION@ +GEM_RTE_LIBS = @GEM_RTE_LIBS@ +GEM_TARGETS = @GEM_TARGETS@ +GLUT_CFLAGS = @GLUT_CFLAGS@ +GLUT_LIBS = @GLUT_LIBS@ +GLU_CFLAGS = @GLU_CFLAGS@ +GLU_LIBS = @GLU_LIBS@ +GLX_CFLAGS = @GLX_CFLAGS@ +GLX_LIBS = @GLX_LIBS@ +GL_CFLAGS = @GL_CFLAGS@ +GL_LIBS = @GL_LIBS@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEDEP_FLAGS = @MAKEDEP_FLAGS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJC = @OBJC@ +OBJCDEPMODE = @OBJCDEPMODE@ +OBJCFLAGS = @OBJCFLAGS@ +OBJCXX = @OBJCXX@ +OBJCXXFLAGS = @OBJCXXFLAGS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_ASSIMP_CFLAGS = @PKG_ASSIMP_CFLAGS@ +PKG_ASSIMP_LIBS = @PKG_ASSIMP_LIBS@ +PKG_AVIFILE_CFLAGS = @PKG_AVIFILE_CFLAGS@ +PKG_AVIFILE_LIBS = @PKG_AVIFILE_LIBS@ +PKG_CFLAGS = @PKG_CFLAGS@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_FRIBIDI_CFLAGS = @PKG_FRIBIDI_CFLAGS@ +PKG_FRIBIDI_LIBS = @PKG_FRIBIDI_LIBS@ +PKG_FTGL_CFLAGS = @PKG_FTGL_CFLAGS@ +PKG_FTGL_LIBS = @PKG_FTGL_LIBS@ +PKG_GLEW_CFLAGS = @PKG_GLEW_CFLAGS@ +PKG_GLEW_LIBS = @PKG_GLEW_LIBS@ +PKG_GMERLIN_AVDEC_CFLAGS = @PKG_GMERLIN_AVDEC_CFLAGS@ +PKG_GMERLIN_AVDEC_LIBS = @PKG_GMERLIN_AVDEC_LIBS@ +PKG_IMAGEMAGICK___CFLAGS = @PKG_IMAGEMAGICK___CFLAGS@ +PKG_IMAGEMAGICK___LIBS = @PKG_IMAGEMAGICK___LIBS@ +PKG_JPEG_CFLAGS = @PKG_JPEG_CFLAGS@ +PKG_JPEG_LIBS = @PKG_JPEG_LIBS@ +PKG_LIBDC1394_2_CFLAGS = @PKG_LIBDC1394_2_CFLAGS@ +PKG_LIBDC1394_2_LIBS = @PKG_LIBDC1394_2_LIBS@ +PKG_LIBDV_CFLAGS = @PKG_LIBDV_CFLAGS@ +PKG_LIBDV_LIBS = @PKG_LIBDV_LIBS@ +PKG_LIBIEC61883_CFLAGS = @PKG_LIBIEC61883_CFLAGS@ +PKG_LIBIEC61883_LIBS = @PKG_LIBIEC61883_LIBS@ +PKG_LIBMPEG3_CFLAGS = @PKG_LIBMPEG3_CFLAGS@ +PKG_LIBMPEG3_LIBS = @PKG_LIBMPEG3_LIBS@ +PKG_LIBQUICKTIME_CFLAGS = @PKG_LIBQUICKTIME_CFLAGS@ +PKG_LIBQUICKTIME_LIBS = @PKG_LIBQUICKTIME_LIBS@ +PKG_LIBRAW1394_CFLAGS = @PKG_LIBRAW1394_CFLAGS@ +PKG_LIBRAW1394_LIBS = @PKG_LIBRAW1394_LIBS@ +PKG_LIBS = @PKG_LIBS@ +PKG_LIBUNICAP_CFLAGS = @PKG_LIBUNICAP_CFLAGS@ +PKG_LIBUNICAP_LIBS = @PKG_LIBUNICAP_LIBS@ +PKG_LIBV4L1_CFLAGS = @PKG_LIBV4L1_CFLAGS@ +PKG_LIBV4L1_LIBS = @PKG_LIBV4L1_LIBS@ +PKG_LIBV4L2_CFLAGS = @PKG_LIBV4L2_CFLAGS@ +PKG_LIBV4L2_LIBS = @PKG_LIBV4L2_LIBS@ +PKG_LIBVLC_CFLAGS = @PKG_LIBVLC_CFLAGS@ +PKG_LIBVLC_LIBS = @PKG_LIBVLC_LIBS@ +PKG_LQT_CFLAGS = @PKG_LQT_CFLAGS@ +PKG_LQT_LIBS = @PKG_LQT_LIBS@ +PKG_MAGICKCORE_CFLAGS = @PKG_MAGICKCORE_CFLAGS@ +PKG_MAGICKCORE_LIBS = @PKG_MAGICKCORE_LIBS@ +PKG_MPEG_CFLAGS = @PKG_MPEG_CFLAGS@ +PKG_MPEG_LIBS = @PKG_MPEG_LIBS@ +PKG_SDL_CFLAGS = @PKG_SDL_CFLAGS@ +PKG_SDL_LIBS = @PKG_SDL_LIBS@ +PKG_TIFF_CFLAGS = @PKG_TIFF_CFLAGS@ +PKG_TIFF_LIBS = @PKG_TIFF_LIBS@ +PKG_VFW32_CFLAGS = @PKG_VFW32_CFLAGS@ +PKG_VFW32_LIBS = @PKG_VFW32_LIBS@ +PTHREAD_CC = @PTHREAD_CC@ +PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ +PTHREAD_LIBS = @PTHREAD_LIBS@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XMKMF = @XMKMF@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +ac_ct_OBJC = @ac_ct_OBJC@ +ac_ct_OBJCXX = @ac_ct_OBJCXX@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +ax_pthread_config = @ax_pthread_config@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +subdirs = @subdirs@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AUTOMAKE_OPTIONS = foreign +ACLOCAL_AMFLAGS = -I m4 +SUBDIRS = src abstractions help doc examples build plugins src/Output \ + extra + +#pkg-config support +#pkgconfigdir = $(libdir)/pkgconfig +pkgconfigdir = ${exec_prefix}/lib/pkgconfig +pkgconfig_DATA = Gem.pc +gemdir = $(pkglibdir) +dist_gem_DATA = \ + Gem-meta.pd \ + ChangeLog \ + COPYING.txt \ + GnuGPL.LICENSE.txt \ + README.txt + +EXTRA_DIST = autogen.sh +all: all-recursive + +.SUFFIXES: +am--refresh: Makefile + @: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): +Gem.pc: $(top_builddir)/config.status $(srcdir)/Gem.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +Gem-meta.pd: $(top_builddir)/config.status $(srcdir)/Gem-meta.pd.in + cd $(top_builddir) && $(SHELL) ./config.status $@ + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool config.lt +install-dist_gemDATA: $(dist_gem_DATA) + @$(NORMAL_INSTALL) + @list='$(dist_gem_DATA)'; test -n "$(gemdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(gemdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(gemdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(gemdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(gemdir)" || exit $$?; \ + done + +uninstall-dist_gemDATA: + @$(NORMAL_UNINSTALL) + @list='$(dist_gem_DATA)'; test -n "$(gemdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(gemdir)'; $(am__uninstall_files_from_dir) +install-pkgconfigDATA: $(pkgconfig_DATA) + @$(NORMAL_INSTALL) + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ + done + +uninstall-pkgconfigDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-lzip: distdir + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz + $(am__remove_distdir) + +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.lz*) \ + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod u+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @test -n '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: trying to run $@ with an empty' \ + '$$(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + $(am__cd) '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile $(DATA) +installdirs: installdirs-recursive +installdirs-am: + for dir in "$(DESTDIR)$(gemdir)" "$(DESTDIR)$(pkgconfigdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-libtool \ + distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: install-dist_gemDATA install-pkgconfigDATA + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: uninstall-dist_gemDATA uninstall-pkgconfigDATA + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ + install-am install-strip tags-recursive + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am am--refresh check check-am clean clean-generic \ + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ + dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \ + dist-zip distcheck distclean distclean-generic \ + distclean-libtool distclean-tags distcleancheck distdir \ + distuninstallcheck dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am \ + install-dist_gemDATA install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-pkgconfigDATA install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs installdirs-am \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags tags-recursive uninstall uninstall-am \ + uninstall-dist_gemDATA uninstall-pkgconfigDATA + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/bin/Gem/README.txt b/src/Gem/README.txt similarity index 100% rename from bin/Gem/README.txt rename to src/Gem/README.txt diff --git a/Gem/TODO b/src/Gem/TODO similarity index 100% rename from Gem/TODO rename to src/Gem/TODO diff --git a/Gem/abstractions/Makefile.am b/src/Gem/abstractions/Makefile.am similarity index 100% rename from Gem/abstractions/Makefile.am rename to src/Gem/abstractions/Makefile.am diff --git a/src/Gem/abstractions/Makefile.in b/src/Gem/abstractions/Makefile.in new file mode 100644 index 0000000..4e6a0aa --- /dev/null +++ b/src/Gem/abstractions/Makefile.in @@ -0,0 +1,649 @@ +# Makefile.in generated by automake 1.11.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = abstractions +DIST_COMMON = $(dist_gemabs_DATA) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(srcdir)/gemdefaultwindow.pd.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_gl.m4 \ + $(top_srcdir)/m4/ax_check_glu.m4 \ + $(top_srcdir)/m4/ax_check_glut.m4 \ + $(top_srcdir)/m4/ax_compiler_vendor.m4 \ + $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/gem.m4 \ + $(top_srcdir)/m4/iem_ftgl.m4 $(top_srcdir)/m4/iem_opengl.m4 \ + $(top_srcdir)/m4/iem_operatingsystem.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/src/config.h +CONFIG_CLEAN_FILES = gemdefaultwindow.pd +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(gemabsdir)" "$(DESTDIR)$(gemabsdir)" +DATA = $(dist_gemabs_DATA) $(nodist_gemabs_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AGL_CFLAGS = @AGL_CFLAGS@ +AGL_LIBS = @AGL_LIBS@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFINES = @DEFINES@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXT = @EXT@ +FGREP = @FGREP@ +GEM_ARCH_CXXFLAGS = @GEM_ARCH_CXXFLAGS@ +GEM_ARCH_LDFLAGS = @GEM_ARCH_LDFLAGS@ +GEM_CFLAGS = @GEM_CFLAGS@ +GEM_CPPFLAGS = @GEM_CPPFLAGS@ +GEM_CXXFLAGS = @GEM_CXXFLAGS@ +GEM_DEFAULT_WINDOW = @GEM_DEFAULT_WINDOW@ +GEM_EXTERNAL_CFLAGS = @GEM_EXTERNAL_CFLAGS@ +GEM_EXTERNAL_CPPFLAGS = @GEM_EXTERNAL_CPPFLAGS@ +GEM_EXTERNAL_LIBS = @GEM_EXTERNAL_LIBS@ +GEM_FRAMEWORK_AGL = @GEM_FRAMEWORK_AGL@ +GEM_FRAMEWORK_CARBON = @GEM_FRAMEWORK_CARBON@ +GEM_FRAMEWORK_COCOA = @GEM_FRAMEWORK_COCOA@ +GEM_FRAMEWORK_QUICKTIME = @GEM_FRAMEWORK_QUICKTIME@ +GEM_LIBS = @GEM_LIBS@ +GEM_LIB_ASSIMP_CFLAGS = @GEM_LIB_ASSIMP_CFLAGS@ +GEM_LIB_ASSIMP_LIBS = @GEM_LIB_ASSIMP_LIBS@ +GEM_LIB_AVIFILE_CFLAGS = @GEM_LIB_AVIFILE_CFLAGS@ +GEM_LIB_AVIFILE_LIBS = @GEM_LIB_AVIFILE_LIBS@ +GEM_LIB_FRIBIDI_CFLAGS = @GEM_LIB_FRIBIDI_CFLAGS@ +GEM_LIB_FRIBIDI_LIBS = @GEM_LIB_FRIBIDI_LIBS@ +GEM_LIB_FTGL_CFLAGS = @GEM_LIB_FTGL_CFLAGS@ +GEM_LIB_FTGL_LIBS = @GEM_LIB_FTGL_LIBS@ +GEM_LIB_GLEW_CFLAGS = @GEM_LIB_GLEW_CFLAGS@ +GEM_LIB_GLEW_LIBS = @GEM_LIB_GLEW_LIBS@ +GEM_LIB_GMERLIN_AVDEC_CFLAGS = @GEM_LIB_GMERLIN_AVDEC_CFLAGS@ +GEM_LIB_GMERLIN_AVDEC_LIBS = @GEM_LIB_GMERLIN_AVDEC_LIBS@ +GEM_LIB_IMAGEMAGICK___CFLAGS = @GEM_LIB_IMAGEMAGICK___CFLAGS@ +GEM_LIB_IMAGEMAGICK___LIBS = @GEM_LIB_IMAGEMAGICK___LIBS@ +GEM_LIB_JPEG_CFLAGS = @GEM_LIB_JPEG_CFLAGS@ +GEM_LIB_JPEG_LIBS = @GEM_LIB_JPEG_LIBS@ +GEM_LIB_LIBDC1394_2_CFLAGS = @GEM_LIB_LIBDC1394_2_CFLAGS@ +GEM_LIB_LIBDC1394_2_LIBS = @GEM_LIB_LIBDC1394_2_LIBS@ +GEM_LIB_LIBDV_CFLAGS = @GEM_LIB_LIBDV_CFLAGS@ +GEM_LIB_LIBDV_LIBS = @GEM_LIB_LIBDV_LIBS@ +GEM_LIB_LIBIEC61883_CFLAGS = @GEM_LIB_LIBIEC61883_CFLAGS@ +GEM_LIB_LIBIEC61883_LIBS = @GEM_LIB_LIBIEC61883_LIBS@ +GEM_LIB_LIBMPEG3_CFLAGS = @GEM_LIB_LIBMPEG3_CFLAGS@ +GEM_LIB_LIBMPEG3_LIBS = @GEM_LIB_LIBMPEG3_LIBS@ +GEM_LIB_LIBQUICKTIME_CFLAGS = @GEM_LIB_LIBQUICKTIME_CFLAGS@ +GEM_LIB_LIBQUICKTIME_LIBS = @GEM_LIB_LIBQUICKTIME_LIBS@ +GEM_LIB_LIBRAW1394_CFLAGS = @GEM_LIB_LIBRAW1394_CFLAGS@ +GEM_LIB_LIBRAW1394_LIBS = @GEM_LIB_LIBRAW1394_LIBS@ +GEM_LIB_LIBUNICAP_CFLAGS = @GEM_LIB_LIBUNICAP_CFLAGS@ +GEM_LIB_LIBUNICAP_LIBS = @GEM_LIB_LIBUNICAP_LIBS@ +GEM_LIB_LIBV4L1_CFLAGS = @GEM_LIB_LIBV4L1_CFLAGS@ +GEM_LIB_LIBV4L1_LIBS = @GEM_LIB_LIBV4L1_LIBS@ +GEM_LIB_LIBV4L2_CFLAGS = @GEM_LIB_LIBV4L2_CFLAGS@ +GEM_LIB_LIBV4L2_LIBS = @GEM_LIB_LIBV4L2_LIBS@ +GEM_LIB_LIBVLC_CFLAGS = @GEM_LIB_LIBVLC_CFLAGS@ +GEM_LIB_LIBVLC_LIBS = @GEM_LIB_LIBVLC_LIBS@ +GEM_LIB_LQT_CFLAGS = @GEM_LIB_LQT_CFLAGS@ +GEM_LIB_LQT_LIBS = @GEM_LIB_LQT_LIBS@ +GEM_LIB_MAGICKCORE_CFLAGS = @GEM_LIB_MAGICKCORE_CFLAGS@ +GEM_LIB_MAGICKCORE_LIBS = @GEM_LIB_MAGICKCORE_LIBS@ +GEM_LIB_MPEG_CFLAGS = @GEM_LIB_MPEG_CFLAGS@ +GEM_LIB_MPEG_LIBS = @GEM_LIB_MPEG_LIBS@ +GEM_LIB_SDL_CFLAGS = @GEM_LIB_SDL_CFLAGS@ +GEM_LIB_SDL_LIBS = @GEM_LIB_SDL_LIBS@ +GEM_LIB_TIFF_CFLAGS = @GEM_LIB_TIFF_CFLAGS@ +GEM_LIB_TIFF_LIBS = @GEM_LIB_TIFF_LIBS@ +GEM_LIB_VFW32_CFLAGS = @GEM_LIB_VFW32_CFLAGS@ +GEM_LIB_VFW32_LIBS = @GEM_LIB_VFW32_LIBS@ +GEM_PTHREAD_CFLAGS = @GEM_PTHREAD_CFLAGS@ +GEM_PTHREAD_LIBS = @GEM_PTHREAD_LIBS@ +GEM_RTE = @GEM_RTE@ +GEM_RTE_CFLAGS = @GEM_RTE_CFLAGS@ +GEM_RTE_EXTENSION = @GEM_RTE_EXTENSION@ +GEM_RTE_LIBS = @GEM_RTE_LIBS@ +GEM_TARGETS = @GEM_TARGETS@ +GLUT_CFLAGS = @GLUT_CFLAGS@ +GLUT_LIBS = @GLUT_LIBS@ +GLU_CFLAGS = @GLU_CFLAGS@ +GLU_LIBS = @GLU_LIBS@ +GLX_CFLAGS = @GLX_CFLAGS@ +GLX_LIBS = @GLX_LIBS@ +GL_CFLAGS = @GL_CFLAGS@ +GL_LIBS = @GL_LIBS@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEDEP_FLAGS = @MAKEDEP_FLAGS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJC = @OBJC@ +OBJCDEPMODE = @OBJCDEPMODE@ +OBJCFLAGS = @OBJCFLAGS@ +OBJCXX = @OBJCXX@ +OBJCXXFLAGS = @OBJCXXFLAGS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_ASSIMP_CFLAGS = @PKG_ASSIMP_CFLAGS@ +PKG_ASSIMP_LIBS = @PKG_ASSIMP_LIBS@ +PKG_AVIFILE_CFLAGS = @PKG_AVIFILE_CFLAGS@ +PKG_AVIFILE_LIBS = @PKG_AVIFILE_LIBS@ +PKG_CFLAGS = @PKG_CFLAGS@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_FRIBIDI_CFLAGS = @PKG_FRIBIDI_CFLAGS@ +PKG_FRIBIDI_LIBS = @PKG_FRIBIDI_LIBS@ +PKG_FTGL_CFLAGS = @PKG_FTGL_CFLAGS@ +PKG_FTGL_LIBS = @PKG_FTGL_LIBS@ +PKG_GLEW_CFLAGS = @PKG_GLEW_CFLAGS@ +PKG_GLEW_LIBS = @PKG_GLEW_LIBS@ +PKG_GMERLIN_AVDEC_CFLAGS = @PKG_GMERLIN_AVDEC_CFLAGS@ +PKG_GMERLIN_AVDEC_LIBS = @PKG_GMERLIN_AVDEC_LIBS@ +PKG_IMAGEMAGICK___CFLAGS = @PKG_IMAGEMAGICK___CFLAGS@ +PKG_IMAGEMAGICK___LIBS = @PKG_IMAGEMAGICK___LIBS@ +PKG_JPEG_CFLAGS = @PKG_JPEG_CFLAGS@ +PKG_JPEG_LIBS = @PKG_JPEG_LIBS@ +PKG_LIBDC1394_2_CFLAGS = @PKG_LIBDC1394_2_CFLAGS@ +PKG_LIBDC1394_2_LIBS = @PKG_LIBDC1394_2_LIBS@ +PKG_LIBDV_CFLAGS = @PKG_LIBDV_CFLAGS@ +PKG_LIBDV_LIBS = @PKG_LIBDV_LIBS@ +PKG_LIBIEC61883_CFLAGS = @PKG_LIBIEC61883_CFLAGS@ +PKG_LIBIEC61883_LIBS = @PKG_LIBIEC61883_LIBS@ +PKG_LIBMPEG3_CFLAGS = @PKG_LIBMPEG3_CFLAGS@ +PKG_LIBMPEG3_LIBS = @PKG_LIBMPEG3_LIBS@ +PKG_LIBQUICKTIME_CFLAGS = @PKG_LIBQUICKTIME_CFLAGS@ +PKG_LIBQUICKTIME_LIBS = @PKG_LIBQUICKTIME_LIBS@ +PKG_LIBRAW1394_CFLAGS = @PKG_LIBRAW1394_CFLAGS@ +PKG_LIBRAW1394_LIBS = @PKG_LIBRAW1394_LIBS@ +PKG_LIBS = @PKG_LIBS@ +PKG_LIBUNICAP_CFLAGS = @PKG_LIBUNICAP_CFLAGS@ +PKG_LIBUNICAP_LIBS = @PKG_LIBUNICAP_LIBS@ +PKG_LIBV4L1_CFLAGS = @PKG_LIBV4L1_CFLAGS@ +PKG_LIBV4L1_LIBS = @PKG_LIBV4L1_LIBS@ +PKG_LIBV4L2_CFLAGS = @PKG_LIBV4L2_CFLAGS@ +PKG_LIBV4L2_LIBS = @PKG_LIBV4L2_LIBS@ +PKG_LIBVLC_CFLAGS = @PKG_LIBVLC_CFLAGS@ +PKG_LIBVLC_LIBS = @PKG_LIBVLC_LIBS@ +PKG_LQT_CFLAGS = @PKG_LQT_CFLAGS@ +PKG_LQT_LIBS = @PKG_LQT_LIBS@ +PKG_MAGICKCORE_CFLAGS = @PKG_MAGICKCORE_CFLAGS@ +PKG_MAGICKCORE_LIBS = @PKG_MAGICKCORE_LIBS@ +PKG_MPEG_CFLAGS = @PKG_MPEG_CFLAGS@ +PKG_MPEG_LIBS = @PKG_MPEG_LIBS@ +PKG_SDL_CFLAGS = @PKG_SDL_CFLAGS@ +PKG_SDL_LIBS = @PKG_SDL_LIBS@ +PKG_TIFF_CFLAGS = @PKG_TIFF_CFLAGS@ +PKG_TIFF_LIBS = @PKG_TIFF_LIBS@ +PKG_VFW32_CFLAGS = @PKG_VFW32_CFLAGS@ +PKG_VFW32_LIBS = @PKG_VFW32_LIBS@ +PTHREAD_CC = @PTHREAD_CC@ +PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ +PTHREAD_LIBS = @PTHREAD_LIBS@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XMKMF = @XMKMF@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +ac_ct_OBJC = @ac_ct_OBJC@ +ac_ct_OBJCXX = @ac_ct_OBJCXX@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +ax_pthread_config = @ax_pthread_config@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +subdirs = @subdirs@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AUTOMAKE_OPTIONS = foreign +SUFFIXES = .pd +gemabsdir = $(pkglibdir) +nodist_gemabs_DATA = \ + gemdefaultwindow.pd + +dist_gemabs_DATA = \ + gemhead.pd \ + gemmouse.pd \ + gemorb.pd \ + gemtablet.pd \ + gemwin.pd \ + hsv2rgb-help.pd \ + hsv2rgb.pd \ + pix_blobtracker-help.pd \ + pix_blobtracker.pd \ + pix_buffer_filmopen-help.pd \ + pix_buffer_filmopen.pd \ + pix_write.pd \ + rgb2hsv-help.pd \ + rgb2hsv.pd \ + rgb2yuv-help.pd \ + rgb2yuv.pd \ + yuv2rgb-help.pd \ + yuv2rgb.pd + +all: all-am + +.SUFFIXES: +.SUFFIXES: .pd +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign abstractions/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign abstractions/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +gemdefaultwindow.pd: $(top_builddir)/config.status $(srcdir)/gemdefaultwindow.pd.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-dist_gemabsDATA: $(dist_gemabs_DATA) + @$(NORMAL_INSTALL) + @list='$(dist_gemabs_DATA)'; test -n "$(gemabsdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(gemabsdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(gemabsdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(gemabsdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(gemabsdir)" || exit $$?; \ + done + +uninstall-dist_gemabsDATA: + @$(NORMAL_UNINSTALL) + @list='$(dist_gemabs_DATA)'; test -n "$(gemabsdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(gemabsdir)'; $(am__uninstall_files_from_dir) +install-nodist_gemabsDATA: $(nodist_gemabs_DATA) + @$(NORMAL_INSTALL) + @list='$(nodist_gemabs_DATA)'; test -n "$(gemabsdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(gemabsdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(gemabsdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(gemabsdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(gemabsdir)" || exit $$?; \ + done + +uninstall-nodist_gemabsDATA: + @$(NORMAL_UNINSTALL) + @list='$(nodist_gemabs_DATA)'; test -n "$(gemabsdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(gemabsdir)'; $(am__uninstall_files_from_dir) +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(gemabsdir)" "$(DESTDIR)$(gemabsdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-dist_gemabsDATA install-nodist_gemabsDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-dist_gemabsDATA uninstall-nodist_gemabsDATA + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dist_gemabsDATA \ + install-dvi install-dvi-am install-exec install-exec-am \ + install-html install-html-am install-info install-info-am \ + install-man install-nodist_gemabsDATA install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ + uninstall-dist_gemabsDATA uninstall-nodist_gemabsDATA + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/Gem/abstractions/gemdefaultwindow.pd.in b/src/Gem/abstractions/gemdefaultwindow.pd.in similarity index 100% rename from Gem/abstractions/gemdefaultwindow.pd.in rename to src/Gem/abstractions/gemdefaultwindow.pd.in diff --git a/bin/Gem/gemhead.pd b/src/Gem/abstractions/gemhead.pd similarity index 100% rename from bin/Gem/gemhead.pd rename to src/Gem/abstractions/gemhead.pd diff --git a/bin/Gem/gemmouse.pd b/src/Gem/abstractions/gemmouse.pd similarity index 100% rename from bin/Gem/gemmouse.pd rename to src/Gem/abstractions/gemmouse.pd diff --git a/bin/Gem/gemorb.pd b/src/Gem/abstractions/gemorb.pd similarity index 100% rename from bin/Gem/gemorb.pd rename to src/Gem/abstractions/gemorb.pd diff --git a/bin/Gem/gemtablet.pd b/src/Gem/abstractions/gemtablet.pd similarity index 100% rename from bin/Gem/gemtablet.pd rename to src/Gem/abstractions/gemtablet.pd diff --git a/bin/Gem/gemwin.pd b/src/Gem/abstractions/gemwin.pd similarity index 100% rename from bin/Gem/gemwin.pd rename to src/Gem/abstractions/gemwin.pd diff --git a/bin/Gem/hsv2rgb-help.pd b/src/Gem/abstractions/hsv2rgb-help.pd similarity index 100% rename from bin/Gem/hsv2rgb-help.pd rename to src/Gem/abstractions/hsv2rgb-help.pd diff --git a/bin/Gem/hsv2rgb.pd b/src/Gem/abstractions/hsv2rgb.pd similarity index 100% rename from bin/Gem/hsv2rgb.pd rename to src/Gem/abstractions/hsv2rgb.pd diff --git a/bin/Gem/pix_blobtracker-help.pd b/src/Gem/abstractions/pix_blobtracker-help.pd similarity index 100% rename from bin/Gem/pix_blobtracker-help.pd rename to src/Gem/abstractions/pix_blobtracker-help.pd diff --git a/bin/Gem/pix_blobtracker.pd b/src/Gem/abstractions/pix_blobtracker.pd similarity index 100% rename from bin/Gem/pix_blobtracker.pd rename to src/Gem/abstractions/pix_blobtracker.pd diff --git a/bin/Gem/pix_buffer_filmopen-help.pd b/src/Gem/abstractions/pix_buffer_filmopen-help.pd similarity index 100% rename from bin/Gem/pix_buffer_filmopen-help.pd rename to src/Gem/abstractions/pix_buffer_filmopen-help.pd diff --git a/bin/Gem/pix_buffer_filmopen.pd b/src/Gem/abstractions/pix_buffer_filmopen.pd similarity index 100% rename from bin/Gem/pix_buffer_filmopen.pd rename to src/Gem/abstractions/pix_buffer_filmopen.pd diff --git a/bin/Gem/pix_write.pd b/src/Gem/abstractions/pix_write.pd similarity index 100% rename from bin/Gem/pix_write.pd rename to src/Gem/abstractions/pix_write.pd diff --git a/Gem/abstractions/pix_writer.pd b/src/Gem/abstractions/pix_writer.pd similarity index 100% rename from Gem/abstractions/pix_writer.pd rename to src/Gem/abstractions/pix_writer.pd diff --git a/bin/Gem/rgb2hsv-help.pd b/src/Gem/abstractions/rgb2hsv-help.pd similarity index 100% rename from bin/Gem/rgb2hsv-help.pd rename to src/Gem/abstractions/rgb2hsv-help.pd diff --git a/bin/Gem/rgb2hsv.pd b/src/Gem/abstractions/rgb2hsv.pd similarity index 100% rename from bin/Gem/rgb2hsv.pd rename to src/Gem/abstractions/rgb2hsv.pd diff --git a/bin/Gem/rgb2yuv-help.pd b/src/Gem/abstractions/rgb2yuv-help.pd similarity index 100% rename from bin/Gem/rgb2yuv-help.pd rename to src/Gem/abstractions/rgb2yuv-help.pd diff --git a/bin/Gem/rgb2yuv.pd b/src/Gem/abstractions/rgb2yuv.pd similarity index 100% rename from bin/Gem/rgb2yuv.pd rename to src/Gem/abstractions/rgb2yuv.pd diff --git a/bin/Gem/yuv2rgb-help.pd b/src/Gem/abstractions/yuv2rgb-help.pd similarity index 100% rename from bin/Gem/yuv2rgb-help.pd rename to src/Gem/abstractions/yuv2rgb-help.pd diff --git a/bin/Gem/yuv2rgb.pd b/src/Gem/abstractions/yuv2rgb.pd similarity index 100% rename from bin/Gem/yuv2rgb.pd rename to src/Gem/abstractions/yuv2rgb.pd diff --git a/src/Gem/aclocal.m4 b/src/Gem/aclocal.m4 new file mode 100644 index 0000000..1b5501e --- /dev/null +++ b/src/Gem/aclocal.m4 @@ -0,0 +1,987 @@ +# generated automatically by aclocal 1.11.6 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, +# Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, +[m4_warning([this file was generated for autoconf 2.69. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically `autoreconf'.])]) + +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software +# Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.11' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.11.6], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.11.6])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 9 + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, +# 2010, 2011 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 12 + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], UPC, [depcc="$UPC" am_compiler_list=], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +#serial 5 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 16 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.62])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl +]) + +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, +# Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST(install_sh)]) + +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 6 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, +# Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_PROG_MKDIR_P +# --------------- +# Check for `mkdir -p'. +AC_DEFUN([AM_PROG_MKDIR_P], +[AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software +# Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# -------------------- +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ------------------------ +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# AM_SUBST_NOTMAKE(VARIABLE) +# -------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of `v7', `ustar', or `pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + +m4_include([m4/ax_check_gl.m4]) +m4_include([m4/ax_check_glu.m4]) +m4_include([m4/ax_check_glut.m4]) +m4_include([m4/ax_compiler_vendor.m4]) +m4_include([m4/ax_pthread.m4]) +m4_include([m4/gem.m4]) +m4_include([m4/iem_ftgl.m4]) +m4_include([m4/iem_opengl.m4]) +m4_include([m4/iem_operatingsystem.m4]) +m4_include([m4/lib-prefix.m4]) +m4_include([m4/libtool.m4]) +m4_include([m4/ltoptions.m4]) +m4_include([m4/ltsugar.m4]) +m4_include([m4/ltversion.m4]) +m4_include([m4/lt~obsolete.m4]) +m4_include([m4/pkg.m4]) diff --git a/Gem/autogen.sh b/src/Gem/autogen.sh similarity index 100% rename from Gem/autogen.sh rename to src/Gem/autogen.sh diff --git a/src/Gem/autom4te.cache/output.0 b/src/Gem/autom4te.cache/output.0 new file mode 100644 index 0000000..b8d97ee --- /dev/null +++ b/src/Gem/autom4te.cache/output.0 @@ -0,0 +1,33455 @@ +@%:@! /bin/sh +@%:@ Guess values for system-dependent variables and create Makefiles. +@%:@ Generated by GNU Autoconf 2.69 for Gem 0.93. +@%:@ +@%:@ Report bugs to . +@%:@ +@%:@ +@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +@%:@ +@%:@ +@%:@ This configure script is free software; the Free Software Foundation +@%:@ gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in @%:@( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and zmoelnig@iem.at +$0: about your system, including any error possibly output +$0: before this message. Then install a modern shell, or +$0: manually run the script under such a shell if you do +$0: have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + +SHELL=${CONFIG_SHELL-/bin/sh} + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIB@&t@OBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='Gem' +PACKAGE_TARNAME='Gem' +PACKAGE_VERSION='0.93' +PACKAGE_STRING='Gem 0.93' +PACKAGE_BUGREPORT='zmoelnig@iem.at' +PACKAGE_URL='http://gem.iem.at' + +ac_unique_file="src/Base/GemBase.h" +enable_option_checking=no +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_header_list= +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +DISABLED_FALSE +DISABLED_TRUE +ENABLED_FALSE +ENABLED_TRUE +GEM_DEFAULT_WINDOW +GEM_ARCH_LDFLAGS +GEM_ARCH_CXXFLAGS +MAKEDEP_FLAGS +LIB@&t@OBJS +GEM_PTHREAD_LIBS +GEM_PTHREAD_CFLAGS +HAVE_LIB_ASSIMP_FALSE +HAVE_LIB_ASSIMP_TRUE +PKG_ASSIMP_LIBS +PKG_ASSIMP_CFLAGS +GEM_LIB_ASSIMP_LIBS +GEM_LIB_ASSIMP_CFLAGS +HAVE_LIB_LIBVLC_FALSE +HAVE_LIB_LIBVLC_TRUE +PKG_LIBVLC_LIBS +PKG_LIBVLC_CFLAGS +GEM_LIB_LIBVLC_LIBS +GEM_LIB_LIBVLC_CFLAGS +HAVE_LIB_VFW32_FALSE +HAVE_LIB_VFW32_TRUE +PKG_VFW32_LIBS +PKG_VFW32_CFLAGS +GEM_LIB_VFW32_LIBS +GEM_LIB_VFW32_CFLAGS +HAVE_V4L2_FALSE +HAVE_V4L2_TRUE +HAVE_LIB_LIBV4L2_FALSE +HAVE_LIB_LIBV4L2_TRUE +PKG_LIBV4L2_LIBS +PKG_LIBV4L2_CFLAGS +GEM_LIB_LIBV4L2_LIBS +GEM_LIB_LIBV4L2_CFLAGS +HAVE_V4L_FALSE +HAVE_V4L_TRUE +HAVE_LIB_LIBV4L1_FALSE +HAVE_LIB_LIBV4L1_TRUE +PKG_LIBV4L1_LIBS +PKG_LIBV4L1_CFLAGS +GEM_LIB_LIBV4L1_LIBS +GEM_LIB_LIBV4L1_CFLAGS +HAVE_LIB_UNICAP_FALSE +HAVE_LIB_UNICAP_TRUE +HAVE_LIB_LIBUNICAP_FALSE +HAVE_LIB_LIBUNICAP_TRUE +PKG_LIBUNICAP_LIBS +PKG_LIBUNICAP_CFLAGS +GEM_LIB_LIBUNICAP_LIBS +GEM_LIB_LIBUNICAP_CFLAGS +HAVE_LIB_LIBIEC61883_FALSE +HAVE_LIB_LIBIEC61883_TRUE +PKG_LIBIEC61883_LIBS +PKG_LIBIEC61883_CFLAGS +GEM_LIB_LIBIEC61883_LIBS +GEM_LIB_LIBIEC61883_CFLAGS +HAVE_LIB_LIBRAW1394_FALSE +HAVE_LIB_LIBRAW1394_TRUE +PKG_LIBRAW1394_LIBS +PKG_LIBRAW1394_CFLAGS +GEM_LIB_LIBRAW1394_LIBS +GEM_LIB_LIBRAW1394_CFLAGS +HAVE_LIB_LIBDV_FALSE +HAVE_LIB_LIBDV_TRUE +PKG_LIBDV_LIBS +PKG_LIBDV_CFLAGS +GEM_LIB_LIBDV_LIBS +GEM_LIB_LIBDV_CFLAGS +HAVE_LIB_LIBDC1394_2_FALSE +HAVE_LIB_LIBDC1394_2_TRUE +PKG_LIBDC1394_2_LIBS +PKG_LIBDC1394_2_CFLAGS +GEM_LIB_LIBDC1394_2_LIBS +GEM_LIB_LIBDC1394_2_CFLAGS +HAVE_LIB_LQT_FALSE +HAVE_LIB_LQT_TRUE +PKG_LQT_LIBS +PKG_LQT_CFLAGS +GEM_LIB_LQT_LIBS +GEM_LIB_LQT_CFLAGS +HAVE_LIB_LIBQUICKTIME_FALSE +HAVE_LIB_LIBQUICKTIME_TRUE +PKG_LIBQUICKTIME_LIBS +PKG_LIBQUICKTIME_CFLAGS +GEM_LIB_LIBQUICKTIME_LIBS +GEM_LIB_LIBQUICKTIME_CFLAGS +HAVE_LIB_LIBMPEG3_FALSE +HAVE_LIB_LIBMPEG3_TRUE +PKG_LIBMPEG3_LIBS +PKG_LIBMPEG3_CFLAGS +GEM_LIB_LIBMPEG3_LIBS +GEM_LIB_LIBMPEG3_CFLAGS +HAVE_LIB_MPEG_FALSE +HAVE_LIB_MPEG_TRUE +PKG_MPEG_LIBS +PKG_MPEG_CFLAGS +GEM_LIB_MPEG_LIBS +GEM_LIB_MPEG_CFLAGS +HAVE_LIB_GMERLIN_AVDEC_FALSE +HAVE_LIB_GMERLIN_AVDEC_TRUE +PKG_GMERLIN_AVDEC_LIBS +PKG_GMERLIN_AVDEC_CFLAGS +GEM_LIB_GMERLIN_AVDEC_LIBS +GEM_LIB_GMERLIN_AVDEC_CFLAGS +HAVE_LIB_AVIFILE_FALSE +HAVE_LIB_AVIFILE_TRUE +PKG_AVIFILE_LIBS +PKG_AVIFILE_CFLAGS +GEM_LIB_AVIFILE_LIBS +GEM_LIB_AVIFILE_CFLAGS +HAVE_LIB_FRIBIDI_FALSE +HAVE_LIB_FRIBIDI_TRUE +PKG_FRIBIDI_LIBS +PKG_FRIBIDI_CFLAGS +GEM_LIB_FRIBIDI_LIBS +GEM_LIB_FRIBIDI_CFLAGS +HAVE_LIB_FTGL_FALSE +HAVE_LIB_FTGL_TRUE +PKG_FTGL_LIBS +PKG_FTGL_CFLAGS +GEM_LIB_FTGL_LIBS +GEM_LIB_FTGL_CFLAGS +HAVE_LIB_JPEG_FALSE +HAVE_LIB_JPEG_TRUE +PKG_JPEG_LIBS +PKG_JPEG_CFLAGS +GEM_LIB_JPEG_LIBS +GEM_LIB_JPEG_CFLAGS +HAVE_LIB_TIFF_FALSE +HAVE_LIB_TIFF_TRUE +PKG_TIFF_LIBS +PKG_TIFF_CFLAGS +GEM_LIB_TIFF_LIBS +GEM_LIB_TIFF_CFLAGS +HAVE_LIB_MAGICKCORE_FALSE +HAVE_LIB_MAGICKCORE_TRUE +PKG_MAGICKCORE_LIBS +PKG_MAGICKCORE_CFLAGS +GEM_LIB_MAGICKCORE_LIBS +GEM_LIB_MAGICKCORE_CFLAGS +HAVE_LIB_IMAGEMAGICK___FALSE +HAVE_LIB_IMAGEMAGICK___TRUE +PKG_IMAGEMAGICK___LIBS +PKG_IMAGEMAGICK___CFLAGS +GEM_LIB_IMAGEMAGICK___LIBS +GEM_LIB_IMAGEMAGICK___CFLAGS +VIDEODARWIN_FALSE +VIDEODARWIN_TRUE +HAVE_FRAMEWORK_QUICKTIME_FALSE +HAVE_FRAMEWORK_QUICKTIME_TRUE +GEM_FRAMEWORK_QUICKTIME +HAVE_FRAMEWORK_CARBON_FALSE +HAVE_FRAMEWORK_CARBON_TRUE +GEM_FRAMEWORK_CARBON +HAVE_FRAMEWORK_COCOA_FALSE +HAVE_FRAMEWORK_COCOA_TRUE +GEM_FRAMEWORK_COCOA +HAVE_LIB_SDL_FALSE +HAVE_LIB_SDL_TRUE +PKG_SDL_LIBS +PKG_SDL_CFLAGS +GEM_LIB_SDL_LIBS +GEM_LIB_SDL_CFLAGS +HAVE_LIB_GLEW_FALSE +HAVE_LIB_GLEW_TRUE +PKG_GLEW_LIBS +PKG_GLEW_CFLAGS +PKG_CONFIG +GEM_LIB_GLEW_LIBS +GEM_LIB_GLEW_CFLAGS +HAVE_AGL_FALSE +HAVE_AGL_TRUE +AGL_LIBS +AGL_CFLAGS +HAVE_FRAMEWORK_AGL_FALSE +HAVE_FRAMEWORK_AGL_TRUE +GEM_FRAMEWORK_AGL +GLX_LIBS +GLX_CFLAGS +HAVE_GLX_FALSE +HAVE_GLX_TRUE +HAVE_GLUT_FALSE +HAVE_GLUT_TRUE +GLUT_LIBS +GLUT_CFLAGS +HAVE_GLU_FALSE +HAVE_GLU_TRUE +GLU_LIBS +GLU_CFLAGS +HAVE_GL_FALSE +HAVE_GL_TRUE +GL_LIBS +GL_CFLAGS +PTHREAD_CFLAGS +PTHREAD_LIBS +PTHREAD_CC +ax_pthread_config +XMKMF +TARGET_VERTEX_FALSE +TARGET_VERTEX_TRUE +TARGET_OPENGL_FALSE +TARGET_OPENGL_TRUE +TARGET_PIXES_FALSE +TARGET_PIXES_TRUE +TARGET_PARTICLES_FALSE +TARGET_PARTICLES_TRUE +TARGET_NONGEOS_FALSE +TARGET_NONGEOS_TRUE +TARGET_MANIPS_FALSE +TARGET_MANIPS_TRUE +TARGET_GEOS_FALSE +TARGET_GEOS_TRUE +TARGET_CONTROLS_FALSE +TARGET_CONTROLS_TRUE +GEM_EXTERNAL_LIBS +GEM_EXTERNAL_CFLAGS +GEM_EXTERNAL_CPPFLAGS +GEM_LIBS +GEM_CXXFLAGS +GEM_CFLAGS +GEM_CPPFLAGS +GEM_RTE_EXTENSION +GEM_RTE +GEM_RTE_LIBS +GEM_RTE_CFLAGS +IRIX_FALSE +IRIX_TRUE +HURD_FALSE +HURD_TRUE +MINGW_FALSE +MINGW_TRUE +CYGWIN_FALSE +CYGWIN_TRUE +WINDOWS_FALSE +WINDOWS_TRUE +BSD_FALSE +BSD_TRUE +IPHONEOS_FALSE +IPHONEOS_TRUE +MACOSX_FALSE +MACOSX_TRUE +ANDROID_FALSE +ANDROID_TRUE +LINUX_FALSE +LINUX_TRUE +CPP +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +MANIFEST_TOOL +RANLIB +ac_ct_AR +AR +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +EGREP +GREP +SED +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +ac_ct_CC +CFLAGS +CC +LIBTOOL +OBJDUMP +DLLTOOL +AS +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +ac_ct_OBJCXX +OBJCXXFLAGS +OBJCXX +am__fastdepOBJC_FALSE +am__fastdepOBJC_TRUE +OBJCDEPMODE +ac_ct_OBJC +OBJCFLAGS +OBJC +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CXX +LDFLAGS +PKG_LIBS +PKG_CFLAGS +X_EXTRA_LIBS +X_LIBS +X_PRE_LIBS +X_CFLAGS +DEFINES +CPPFLAGS +CXXFLAGS +EXT +GEM_TARGETS +CXX +CXXCPP +subdirs +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_dependency_tracking +enable_shared +enable_static +with_pic +enable_fast_install +with_gnu_ld +with_sysroot +enable_libtool_lock +with_ALL +with_pd +with_extension +enable_mmx +enable_sse2 +enable_altivec +enable_powerpc +enable_pascalstrings +enable_registerstruct +enable_Controls +enable_Geos +enable_Manips +enable_Nongeos +enable_Particles +enable_Pixes +enable_openGL +enable_Vertex +with_x +with_glew +with_glew_includes +with_glew_libs +with_sdl +with_sdl_includes +with_sdl_libs +with_ImageMagick +with_ImageMagick_includes +with_ImageMagick_libs +with_MagickCore +with_MagickCore_includes +with_MagickCore_libs +with_tiff +with_tiff_includes +with_tiff_libs +with_jpeg +with_jpeg_includes +with_jpeg_libs +with_ftgl +with_ftgl_includes +with_ftgl_libs +with_fribidi +with_fribidi_includes +with_fribidi_libs +with_avifile +with_avifile_includes +with_avifile_libs +with_gmerlin_avdec +with_gmerlin_avdec_includes +with_gmerlin_avdec_libs +with_mpeg +with_mpeg_includes +with_mpeg_libs +with_libmpeg3 +with_libmpeg3_includes +with_libmpeg3_libs +with_libquicktime +with_libquicktime_includes +with_libquicktime_libs +with_lqt +with_lqt_includes +with_lqt_libs +with_libdc1394_2 +with_libdc1394_2_includes +with_libdc1394_2_libs +with_libdv +with_libdv_includes +with_libdv_libs +with_libraw1394 +with_libraw1394_includes +with_libraw1394_libs +with_libiec61883 +with_libiec61883_includes +with_libiec61883_libs +with_unicap +with_libunicap +with_libunicap_includes +with_libunicap_libs +with_v4l +with_libv4l1 +with_libv4l1_includes +with_libv4l1_libs +with_v4l2 +with_libv4l2 +with_libv4l2_includes +with_libv4l2_libs +with_vfw32 +with_vfw32_includes +with_vfw32_libs +with_libvlc +with_libvlc_includes +with_libvlc_libs +with_assimp +with_assimp_includes +with_assimp_libs +with_default_font +enable_threads +with_video +with_film +enable_fat_binary +with_defaultwindow +' + ac_precious_vars='build_alias +host_alias +target_alias +CXX +CXXFLAGS +LDFLAGS +LIBS +CPPFLAGS +CCC +OBJC +OBJCFLAGS +OBJCXX +OBJCXXFLAGS +CC +CFLAGS +CPP +CXXCPP +XMKMF +PKG_CONFIG +PKG_GLEW_CFLAGS +PKG_GLEW_LIBS +PKG_SDL_CFLAGS +PKG_SDL_LIBS +PKG_IMAGEMAGICK___CFLAGS +PKG_IMAGEMAGICK___LIBS +PKG_MAGICKCORE_CFLAGS +PKG_MAGICKCORE_LIBS +PKG_TIFF_CFLAGS +PKG_TIFF_LIBS +PKG_JPEG_CFLAGS +PKG_JPEG_LIBS +PKG_FTGL_CFLAGS +PKG_FTGL_LIBS +PKG_FRIBIDI_CFLAGS +PKG_FRIBIDI_LIBS +PKG_AVIFILE_CFLAGS +PKG_AVIFILE_LIBS +PKG_GMERLIN_AVDEC_CFLAGS +PKG_GMERLIN_AVDEC_LIBS +PKG_MPEG_CFLAGS +PKG_MPEG_LIBS +PKG_LIBMPEG3_CFLAGS +PKG_LIBMPEG3_LIBS +PKG_LIBQUICKTIME_CFLAGS +PKG_LIBQUICKTIME_LIBS +PKG_LQT_CFLAGS +PKG_LQT_LIBS +PKG_LIBDC1394_2_CFLAGS +PKG_LIBDC1394_2_LIBS +PKG_LIBDV_CFLAGS +PKG_LIBDV_LIBS +PKG_LIBRAW1394_CFLAGS +PKG_LIBRAW1394_LIBS +PKG_LIBIEC61883_CFLAGS +PKG_LIBIEC61883_LIBS +PKG_LIBUNICAP_CFLAGS +PKG_LIBUNICAP_LIBS +PKG_LIBV4L1_CFLAGS +PKG_LIBV4L1_LIBS +PKG_LIBV4L2_CFLAGS +PKG_LIBV4L2_LIBS +PKG_VFW32_CFLAGS +PKG_VFW32_LIBS +PKG_LIBVLC_CFLAGS +PKG_LIBVLC_LIBS +PKG_ASSIMP_CFLAGS +PKG_ASSIMP_LIBS' +ac_subdirs_all='extra +plugins/videoAVT +plugins/videoHALCON +plugins/videoPYLON' + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures Gem 0.93 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + @<:@@S|@ac_default_prefix@:>@ + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + @<:@PREFIX@:>@ + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root @<:@DATAROOTDIR/doc/Gem@:>@ + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +X features: + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of Gem 0.93:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ + --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ + --enable-fast-install@<:@=PKGS@:>@ + optimize for fast installation @<:@default=yes@:>@ + --disable-libtool-lock avoid locking (might break parallel builds) + --disable-mmx disable mmx (MMX-support) + --enable-sse2 enable sse2 (SSE2-support) + --disable-altivec disable altivec (AltiVec-support) + --enable-powerpc enable powerpc (PowerPC specific optimizations) + --disable-pascalstrings disable pascalstrings (containing '\p') + --disable-registerstruct + disable registerstruct (use \"-freg-struct-return\" + (needed for FreeFrame)) + --disable-Controls disable Controls-objects + --disable-Geos disable Geos-objects + --disable-Manips disable Manips-objects + --disable-Nongeos disable Nongeos-objects + --disable-Particles disable Particles-objects + --disable-Pixes disable Pixes-objects + --disable-openGL disable openGL-objects + --enable-Vertex enable Vertex-objects + --disable-threads disable threads (default: use threads) + --enable-fat-binary=ARCHS + build an Apple Multi Architecture Binary (MAB); + ARCHS is a comma-delimited list of architectures for + which to build; if ARCHS is omitted, then the package + will be built for all architectures supported by the + platform (e.g. "ppc,i386" for MacOS/X and Darwin); + if this option is disabled or omitted entirely, then + the package will be built only for the target + platform; when building multiple architectures, + dependency-tracking must be disabled + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use + both@:>@ + --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ + --with-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + --without-ALL en/disable ALL libraries by default + --with-pd= where to find pd-binary (./bin/pd.exe) and + pd-sources + --with-extension= enforce a certain file-extension (e.g. pd_linux) + --with-x use the X Window System + --without-glew disable glew (OpenGL Extension Wrangler library) + --with-glew-includes=/path/to/glew/include/ + include path for glew + --with-glew-libs=/path/to/glew/lib/ + library path for glew + --without-sdl disable sdl (SDL windowing) + --with-sdl-includes=/path/to/sdl/include/ + include path for sdl + --with-sdl-libs=/path/to/sdl/lib/ + library path for sdl + --without-ImageMagick disable ImageMagick (image loader) + --with-ImageMagick-includes=/path/to/ImageMagick/include/ + include path for ImageMagick + --with-ImageMagick-libs=/path/to/ImageMagick/lib/ + library path for ImageMagick + --without-MagickCore disable MagickCore (image loader) + --with-MagickCore-includes=/path/to/MagickCore/include/ + include path for MagickCore + --with-MagickCore-libs=/path/to/MagickCore/lib/ + library path for MagickCore + --without-tiff disable tiff (image loader) + --with-tiff-includes=/path/to/tiff/include/ + include path for tiff + --with-tiff-libs=/path/to/tiff/lib/ + library path for tiff + --without-jpeg disable jpeg (image loader) + --with-jpeg-includes=/path/to/jpeg/include/ + include path for jpeg + --with-jpeg-libs=/path/to/jpeg/lib/ + library path for jpeg + --without-ftgl disable ftgl (font support) + --with-ftgl-includes=/path/to/ftgl/include/ + include path for ftgl + --with-ftgl-libs=/path/to/ftgl/lib/ + library path for ftgl + --without-fribidi disable fribidi (bidrectional text rendering using + FriBidi) + --with-fribidi-includes=/path/to/fribidi/include/ + include path for fribidi + --with-fribidi-libs=/path/to/fribidi/lib/ + library path for fribidi + --without-avifile disable avifile (movie loader) + --with-avifile-includes=/path/to/avifile/include/ + include path for avifile + --with-avifile-libs=/path/to/avifile/lib/ + library path for avifile + --without-gmerlin_avdec disable gmerlin_avdec (movie loader) + --with-gmerlin_avdec-includes=/path/to/gmerlin_avdec/include/ + include path for gmerlin_avdec + --with-gmerlin_avdec-libs=/path/to/gmerlin_avdec/lib/ + library path for gmerlin_avdec + --without-mpeg disable mpeg (movie loader) + --with-mpeg-includes=/path/to/mpeg/include/ + include path for mpeg + --with-mpeg-libs=/path/to/mpeg/lib/ + library path for mpeg + --without-libmpeg3 disable libmpeg3 (movie loader) + --with-libmpeg3-includes=/path/to/libmpeg3/include/ + include path for libmpeg3 + --with-libmpeg3-libs=/path/to/libmpeg3/lib/ + library path for libmpeg3 + --without-libquicktime disable libquicktime (movie loader) + --with-libquicktime-includes=/path/to/libquicktime/include/ + include path for libquicktime + --with-libquicktime-libs=/path/to/libquicktime/lib/ + library path for libquicktime + --without-lqt disable lqt (movie loader) + --with-lqt-includes=/path/to/lqt/include/ + include path for lqt + --with-lqt-libs=/path/to/lqt/lib/ + library path for lqt + --without-libdc1394_2 disable libdc1394_2 (video input) + --with-libdc1394_2-includes=/path/to/libdc1394_2/include/ + include path for libdc1394_2 + --with-libdc1394_2-libs=/path/to/libdc1394_2/lib/ + library path for libdc1394_2 + --without-libdv disable libdv (video input) + --with-libdv-includes=/path/to/libdv/include/ + include path for libdv + --with-libdv-libs=/path/to/libdv/lib/ + library path for libdv + --without-libraw1394 disable libraw1394 (video input) + --with-libraw1394-includes=/path/to/libraw1394/include/ + include path for libraw1394 + --with-libraw1394-libs=/path/to/libraw1394/lib/ + library path for libraw1394 + --without-libiec61883 disable libiec61883 (video input) + --with-libiec61883-includes=/path/to/libiec61883/include/ + include path for libiec61883 + --with-libiec61883-libs=/path/to/libiec61883/lib/ + library path for libiec61883 + --without-unicap disable unicap-lib (video input) + --without-libunicap disable libunicap (video input) + --with-libunicap-includes=/path/to/libunicap/include/ + include path for libunicap + --with-libunicap-libs=/path/to/libunicap/lib/ + library path for libunicap + --without-v4l disable v4l-lib (video input) + --without-libv4l1 disable libv4l1 (video output) + --with-libv4l1-includes=/path/to/libv4l1/include/ + include path for libv4l1 + --with-libv4l1-libs=/path/to/libv4l1/lib/ + library path for libv4l1 + --without-v4l2 disable v4l2-lib (video input) + --without-libv4l2 disable libv4l2 (video input) + --with-libv4l2-includes=/path/to/libv4l2/include/ + include path for libv4l2 + --with-libv4l2-libs=/path/to/libv4l2/lib/ + library path for libv4l2 + --without-vfw32 disable vfw32 (video input) + --with-vfw32-includes=/path/to/vfw32/include/ + include path for vfw32 + --with-vfw32-libs=/path/to/vfw32/lib/ + library path for vfw32 + --without-libvlc disable libvlc (video input) + --with-libvlc-includes=/path/to/libvlc/include/ + include path for libvlc + --with-libvlc-libs=/path/to/libvlc/lib/ + library path for libvlc + --without-assimp disable assimp (3D model loading) + --with-assimp-includes=/path/to/assimp/include/ + include path for assimp + --with-assimp-libs=/path/to/assimp/lib/ + library path for assimp + --with-default-font=vera.ttf + specify the default font for text-rendering + + --with-video=plugins|Darwin|DS|NT + use plugins for video capture or OS-specific + "pix_video" + --with-film=plugins|Darwin + use plugins for video decoding or OS-specific + "pix_film" + --with-defaultwindow=<> specify default window backend (default: auto) + +Some influential environment variables: + CXX C++ compiler command + CXXFLAGS C++ compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + OBJC Objective C compiler command + OBJCFLAGS Objective C compiler flags + OBJCXX Objective C++ compiler command + OBJCXXFLAGS Objective C++ compiler flags + CC C compiler command + CFLAGS C compiler flags + CPP C preprocessor + CXXCPP C++ preprocessor + XMKMF Path to xmkmf, Makefile generator for X Window System + PKG_CONFIG path to pkg-config utility + PKG_GLEW_CFLAGS + C compiler flags for PKG_GLEW, overriding pkg-config + PKG_GLEW_LIBS + linker flags for PKG_GLEW, overriding pkg-config + PKG_SDL_CFLAGS + C compiler flags for PKG_SDL, overriding pkg-config + PKG_SDL_LIBS + linker flags for PKG_SDL, overriding pkg-config + PKG_IMAGEMAGICK___CFLAGS + C compiler flags for PKG_IMAGEMAGICK__, overriding pkg-config + PKG_IMAGEMAGICK___LIBS + linker flags for PKG_IMAGEMAGICK__, overriding pkg-config + PKG_MAGICKCORE_CFLAGS + C compiler flags for PKG_MAGICKCORE, overriding pkg-config + PKG_MAGICKCORE_LIBS + linker flags for PKG_MAGICKCORE, overriding pkg-config + PKG_TIFF_CFLAGS + C compiler flags for PKG_TIFF, overriding pkg-config + PKG_TIFF_LIBS + linker flags for PKG_TIFF, overriding pkg-config + PKG_JPEG_CFLAGS + C compiler flags for PKG_JPEG, overriding pkg-config + PKG_JPEG_LIBS + linker flags for PKG_JPEG, overriding pkg-config + PKG_FTGL_CFLAGS + C compiler flags for PKG_FTGL, overriding pkg-config + PKG_FTGL_LIBS + linker flags for PKG_FTGL, overriding pkg-config + PKG_FRIBIDI_CFLAGS + C compiler flags for PKG_FRIBIDI, overriding pkg-config + PKG_FRIBIDI_LIBS + linker flags for PKG_FRIBIDI, overriding pkg-config + PKG_AVIFILE_CFLAGS + C compiler flags for PKG_AVIFILE, overriding pkg-config + PKG_AVIFILE_LIBS + linker flags for PKG_AVIFILE, overriding pkg-config + PKG_GMERLIN_AVDEC_CFLAGS + C compiler flags for PKG_GMERLIN_AVDEC, overriding pkg-config + PKG_GMERLIN_AVDEC_LIBS + linker flags for PKG_GMERLIN_AVDEC, overriding pkg-config + PKG_MPEG_CFLAGS + C compiler flags for PKG_MPEG, overriding pkg-config + PKG_MPEG_LIBS + linker flags for PKG_MPEG, overriding pkg-config + PKG_LIBMPEG3_CFLAGS + C compiler flags for PKG_LIBMPEG3, overriding pkg-config + PKG_LIBMPEG3_LIBS + linker flags for PKG_LIBMPEG3, overriding pkg-config + PKG_LIBQUICKTIME_CFLAGS + C compiler flags for PKG_LIBQUICKTIME, overriding pkg-config + PKG_LIBQUICKTIME_LIBS + linker flags for PKG_LIBQUICKTIME, overriding pkg-config + PKG_LQT_CFLAGS + C compiler flags for PKG_LQT, overriding pkg-config + PKG_LQT_LIBS + linker flags for PKG_LQT, overriding pkg-config + PKG_LIBDC1394_2_CFLAGS + C compiler flags for PKG_LIBDC1394_2, overriding pkg-config + PKG_LIBDC1394_2_LIBS + linker flags for PKG_LIBDC1394_2, overriding pkg-config + PKG_LIBDV_CFLAGS + C compiler flags for PKG_LIBDV, overriding pkg-config + PKG_LIBDV_LIBS + linker flags for PKG_LIBDV, overriding pkg-config + PKG_LIBRAW1394_CFLAGS + C compiler flags for PKG_LIBRAW1394, overriding pkg-config + PKG_LIBRAW1394_LIBS + linker flags for PKG_LIBRAW1394, overriding pkg-config + PKG_LIBIEC61883_CFLAGS + C compiler flags for PKG_LIBIEC61883, overriding pkg-config + PKG_LIBIEC61883_LIBS + linker flags for PKG_LIBIEC61883, overriding pkg-config + PKG_LIBUNICAP_CFLAGS + C compiler flags for PKG_LIBUNICAP, overriding pkg-config + PKG_LIBUNICAP_LIBS + linker flags for PKG_LIBUNICAP, overriding pkg-config + PKG_LIBV4L1_CFLAGS + C compiler flags for PKG_LIBV4L1, overriding pkg-config + PKG_LIBV4L1_LIBS + linker flags for PKG_LIBV4L1, overriding pkg-config + PKG_LIBV4L2_CFLAGS + C compiler flags for PKG_LIBV4L2, overriding pkg-config + PKG_LIBV4L2_LIBS + linker flags for PKG_LIBV4L2, overriding pkg-config + PKG_VFW32_CFLAGS + C compiler flags for PKG_VFW32, overriding pkg-config + PKG_VFW32_LIBS + linker flags for PKG_VFW32, overriding pkg-config + PKG_LIBVLC_CFLAGS + C compiler flags for PKG_LIBVLC, overriding pkg-config + PKG_LIBVLC_LIBS + linker flags for PKG_LIBVLC, overriding pkg-config + PKG_ASSIMP_CFLAGS + C compiler flags for PKG_ASSIMP, overriding pkg-config + PKG_ASSIMP_LIBS + linker flags for PKG_ASSIMP, overriding pkg-config + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +Gem home page: . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +Gem configure 0.93 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +@%:@ ac_fn_cxx_try_compile LINENO +@%:@ ---------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_compile + +@%:@ ac_fn_objc_try_compile LINENO +@%:@ ----------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_objc_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_objc_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_objc_try_compile + +@%:@ ac_fn_objcxx_try_compile LINENO +@%:@ ------------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_objcxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_objcxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_objcxx_try_compile + +@%:@ ac_fn_c_try_compile LINENO +@%:@ -------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_compile + +@%:@ ac_fn_c_try_link LINENO +@%:@ ----------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_link + +@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists and can be compiled using the include files in +@%:@ INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_compile + +@%:@ ac_fn_c_try_cpp LINENO +@%:@ ---------------------- +@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_cpp + +@%:@ ac_fn_c_try_run LINENO +@%:@ ---------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes +@%:@ that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_run + +@%:@ ac_fn_c_check_func LINENO FUNC VAR +@%:@ ---------------------------------- +@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_func + +@%:@ ac_fn_cxx_try_cpp LINENO +@%:@ ------------------------ +@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_cpp + +@%:@ ac_fn_cxx_try_link LINENO +@%:@ ------------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_link + +@%:@ ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES +@%:@ --------------------------------------------------------- +@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using +@%:@ the include files in INCLUDES and setting the cache variable VAR +@%:@ accordingly. +ac_fn_cxx_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include <$2> +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ------------------------------ ## +## Report this to zmoelnig@iem.at ## +## ------------------------------ ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_cxx_check_header_mongrel + +@%:@ ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES +@%:@ --------------------------------------------------------- +@%:@ Tests whether HEADER exists and can be compiled using the include files in +@%:@ INCLUDES, setting the cache variable VAR accordingly. +ac_fn_cxx_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_cxx_check_header_compile + +@%:@ ac_fn_cxx_check_func LINENO FUNC VAR +@%:@ ------------------------------------ +@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_cxx_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_cxx_check_func + +@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using +@%:@ the include files in INCLUDES and setting the cache variable VAR +@%:@ accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ------------------------------ ## +## Report this to zmoelnig@iem.at ## +## ------------------------------ ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_mongrel + +@%:@ ac_fn_cxx_try_run LINENO +@%:@ ------------------------ +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes +@%:@ that executables *can* be run. +ac_fn_cxx_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_run + +@%:@ ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES +@%:@ --------------------------------------------- +@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache +@%:@ variable VAR accordingly. +ac_fn_cxx_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_cxx_check_type + +@%:@ ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES +@%:@ ---------------------------------------------- +@%:@ Tries to find the compile-time value of EXPR in a program that includes +@%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be +@%:@ computed +ac_fn_cxx_compute_int () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@; +test_array @<:@0@:>@ = 0; +return test_array @<:@0@:>@; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_lo=0 ac_mid=0 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@; +test_array @<:@0@:>@ = 0; +return test_array @<:@0@:>@; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_hi=$ac_mid; break +else + as_fn_arith $ac_mid + 1 && ac_lo=$as_val + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array @<:@1 - 2 * !(($2) < 0)@:>@; +test_array @<:@0@:>@ = 0; +return test_array @<:@0@:>@; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_hi=-1 ac_mid=-1 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@; +test_array @<:@0@:>@ = 0; +return test_array @<:@0@:>@; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_lo=$ac_mid; break +else + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + ac_lo= ac_hi= +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@; +test_array @<:@0@:>@ = 0; +return test_array @<:@0@:>@; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_hi=$ac_mid +else + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in @%:@(( +?*) eval "$3=\$ac_lo"; ac_retval=0 ;; +'') ac_retval=1 ;; +esac + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +static long int longval () { return $2; } +static unsigned long int ulongval () { return $2; } +@%:@include +@%:@include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (($2) < 0) + { + long int i = longval (); + if (i != ($2)) + return 1; + fprintf (f, "%ld", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ($2)) + return 1; + fprintf (f, "%lu", i); + } + /* Do not output a trailing newline, as this causes \r\n confusion + on some platforms. */ + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + echo >>conftest.val; read $3 config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by Gem $as_me 0.93, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in @%:@(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +as_fn_append ac_header_list " stdlib.h" +as_fn_append ac_header_list " unistd.h" +as_fn_append ac_header_list " sys/param.h" +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +am__api_version='1.11' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in @%:@(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='Gem' + VERSION='0.93' + + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + + + +# +ac_config_files="$ac_config_files Makefile abstractions/Makefile" + + +# documentation +ac_config_files="$ac_config_files help/Makefile doc/Makefile examples/Makefile" + + +# src +ac_config_files="$ac_config_files src/Makefile src/Gem/Makefile src/Utils/Makefile" + +ac_config_files="$ac_config_files src/RTE/Makefile src/Base/Makefile src/plugins/Makefile" + +ac_config_files="$ac_config_files src/Output/Makefile" + +ac_config_files="$ac_config_files src/deprecated/Makefile" + + +## plugins that use this autoconf instance for configuration +ac_config_files="$ac_config_files plugins/Makefile" + +ac_config_files="$ac_config_files plugins/imageQT/Makefile" + +ac_config_files="$ac_config_files plugins/imageMAGICK/Makefile" + +ac_config_files="$ac_config_files plugins/imageTIFF/Makefile" + +ac_config_files="$ac_config_files plugins/imageJPEG/Makefile" + +ac_config_files="$ac_config_files plugins/imageSGI/Makefile" + + +ac_config_files="$ac_config_files plugins/filmAVI/Makefile" + +ac_config_files="$ac_config_files plugins/filmAVIPLAY/Makefile" + +ac_config_files="$ac_config_files plugins/filmDS/Makefile" + +ac_config_files="$ac_config_files plugins/filmDarwin/Makefile" + +ac_config_files="$ac_config_files plugins/filmGMERLIN/Makefile" + +ac_config_files="$ac_config_files plugins/filmMPEG1/Makefile" + +ac_config_files="$ac_config_files plugins/filmMPEG3/Makefile" + +ac_config_files="$ac_config_files plugins/filmQT/Makefile" + +ac_config_files="$ac_config_files plugins/filmQT4L/Makefile" + +ac_config_files="$ac_config_files plugins/filmTEST/Makefile" + + +ac_config_files="$ac_config_files plugins/modelOBJ/Makefile" + +ac_config_files="$ac_config_files plugins/modelASSIMP2/Makefile" + + +ac_config_files="$ac_config_files plugins/recordQT/Makefile" + +ac_config_files="$ac_config_files plugins/recordQT4L/Makefile" + +ac_config_files="$ac_config_files plugins/recordV4L/Makefile" + +ac_config_files="$ac_config_files plugins/recordV4L2/Makefile" + + +ac_config_files="$ac_config_files plugins/videoDC1394/Makefile" + +ac_config_files="$ac_config_files plugins/videoDS/Makefile" + +ac_config_files="$ac_config_files plugins/videoDV4L/Makefile" + +ac_config_files="$ac_config_files plugins/videoDarwin/Makefile" + +ac_config_files="$ac_config_files plugins/videoSGI/Makefile" + +ac_config_files="$ac_config_files plugins/videoTEST/Makefile" + +ac_config_files="$ac_config_files plugins/videoUNICAP/Makefile" + +ac_config_files="$ac_config_files plugins/videoV4L/Makefile" + +ac_config_files="$ac_config_files plugins/videoV4L2/Makefile" + +ac_config_files="$ac_config_files plugins/videoVFW/Makefile" + +ac_config_files="$ac_config_files plugins/videoVLC/Makefile" + + +## extra holds additional objects/libraries +# some of them have their own build system +#AC_CONFIG_FILES([extra/Makefile]) +# some do not +ac_config_files="$ac_config_files extra/pix2jpg/Makefile" + + +# other stuff +ac_config_files="$ac_config_files build/Makefile Gem.pc Gem-meta.pd" + + + +########################## + + + +ac_config_headers="$ac_config_headers src/config.h" + + + + + +subdirs="$subdirs extra" + + +if test -d "$srcdir/plugins/videoAVT"; then + subdirs="$subdirs plugins/videoAVT" + +fi +if test -d "$srcdir/plugins/videoHALCON"; then + subdirs="$subdirs plugins/videoHALCON" + +fi +if test -d "$srcdir/plugins/videoPYLON"; then + subdirs="$subdirs plugins/videoPYLON" + +fi + + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +ARCH=$(uname -m) +KERN=$(uname -s) + + + + + + + + + + + + + + + + + + + + + + +# Checks for programs. +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 +$as_echo_n "checking whether the C++ compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C++ compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 +$as_echo_n "checking for C++ compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C++ compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +@%:@ Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CXX_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + +ac_ext=m +ac_cpp='$OBJCPP $CPPFLAGS' +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_objc_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in gcc objcc objc cc CC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJC"; then + ac_cv_prog_OBJC="$OBJC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJC=$ac_cv_prog_OBJC +if test -n "$OBJC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 +$as_echo "$OBJC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$OBJC" && break + done +fi +if test -z "$OBJC"; then + ac_ct_OBJC=$OBJC + for ac_prog in gcc objcc objc cc CC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJC"; then + ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC +if test -n "$ac_ct_OBJC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 +$as_echo "$ac_ct_OBJC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_OBJC" && break +done + + if test "x$ac_ct_OBJC" = x; then + OBJC="gcc" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJC=$ac_ct_OBJC + fi +fi + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 +$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } +if ${ac_cv_objc_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_objc_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 +$as_echo "$ac_cv_objc_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GOBJC=yes +else + GOBJC= +fi +ac_test_OBJCFLAGS=${OBJCFLAGS+set} +ac_save_OBJCFLAGS=$OBJCFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 +$as_echo_n "checking whether $OBJC accepts -g... " >&6; } +if ${ac_cv_prog_objc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_objc_werror_flag=$ac_objc_werror_flag + ac_objc_werror_flag=yes + ac_cv_prog_objc_g=no + OBJCFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + ac_cv_prog_objc_g=yes +else + OBJCFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + +else + ac_objc_werror_flag=$ac_save_objc_werror_flag + OBJCFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + ac_cv_prog_objc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_objc_werror_flag=$ac_save_objc_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 +$as_echo "$ac_cv_prog_objc_g" >&6; } +if test "$ac_test_OBJCFLAGS" = set; then + OBJCFLAGS=$ac_save_OBJCFLAGS +elif test $ac_cv_prog_objc_g = yes; then + if test "$GOBJC" = yes; then + OBJCFLAGS="-g -O2" + else + OBJCFLAGS="-g" + fi +else + if test "$GOBJC" = yes; then + OBJCFLAGS="-O2" + else + OBJCFLAGS= + fi +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +depcc="$OBJC" am_compiler_list='gcc3 gcc' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_OBJC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_OBJC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_OBJC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_OBJC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } +OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then + am__fastdepOBJC_TRUE= + am__fastdepOBJC_FALSE='#' +else + am__fastdepOBJC_TRUE='#' + am__fastdepOBJC_FALSE= +fi + + +ac_ext=mm +ac_cpp='$OBJCXXCPP $CPPFLAGS' +ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in g++ objc++ objcxx c++ CXX + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJCXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJCXX"; then + ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJCXX=$ac_cv_prog_OBJCXX +if test -n "$OBJCXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 +$as_echo "$OBJCXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$OBJCXX" && break + done +fi +if test -z "$OBJCXX"; then + ac_ct_OBJCXX=$OBJCXX + for ac_prog in g++ objc++ objcxx c++ CXX +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJCXX"; then + ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJCXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX +if test -n "$ac_ct_OBJCXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 +$as_echo "$ac_ct_OBJCXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_OBJCXX" && break +done + + if test "x$ac_ct_OBJCXX" = x; then + OBJCXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJCXX=$ac_ct_OBJCXX + fi +fi + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } +if ${ac_cv_objcxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 +$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GOBJCXX=yes +else + GOBJCXX= +fi +ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} +ac_save_OBJCXXFLAGS=$OBJCXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 +$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } +if ${ac_cv_prog_objcxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag + ac_objcxx_werror_flag=yes + ac_cv_prog_objcxx_g=no + OBJCXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + ac_cv_prog_objcxx_g=yes +else + OBJCXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + +else + ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag + OBJCXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + ac_cv_prog_objcxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_objcxx_werror_flag=$ac_save_objcx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 +$as_echo "$ac_cv_prog_objcxx_g" >&6; } +if test "$ac_test_OBJCXXFLAGS" = set; then + OBJCXXFLAGS=$ac_save_OBJCXXFLAGS +elif test $ac_cv_prog_objcxx_g = yes; then + if test "$GOBJCXX" = yes; then + OBJCXXFLAGS="-g -O2" + else + OBJCXXFLAGS="-g" + fi +else + if test "$GOBJCXX" = yes; then + OBJCXXFLAGS="-O2" + else + OBJCXXFLAGS= + fi +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AS="${ac_tool_prefix}as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +$as_echo "$AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AS="as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +$as_echo "$ac_ct_AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + + ;; +esac + +test -z "$AS" && AS=as + + + + + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + + +macro_version='2.4.2' +macro_revision='1.3337' + + + + + + + + + + + + + +ltmain="$ac_aux_dir/ltmain.sh" + +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +$as_echo_n "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case "$ECHO" in + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +$as_echo "printf" >&6; } ;; + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +$as_echo "print -r" >&6; } ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +$as_echo "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $@%:@ != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if ${ac_cv_path_FGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_FGREP" || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +@%:@ Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if ${lt_cv_nm_interface+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 +$as_echo "$xsi_shell" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +lt_shell_append=no +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 +$as_echo "$lt_shell_append" >&6; } + + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } +if ${lt_cv_to_host_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac + +fi + +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +$as_echo "$lt_cv_to_host_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } +if ${lt_cv_to_tool_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + #assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac + +fi + +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test "$GCC" != yes; then + reload_cmds=false + fi + ;; + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + + + + + + + + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + + + + + + + + +if test -n "$ac_tool_prefix"; then + for ac_prog in ar + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +fi + +: ${AR=ar} +: ${AR_FLAGS=cru} + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +$as_echo_n "checking for archiver @FILE support... " >&6; } +if ${lt_cv_ar_at_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ar_at_file=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +$as_echo "$lt_cv_ar_at_file" >&6; } + +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +test -z "$STRIP" && STRIP=: + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +test -z "$RANLIB" && RANLIB=: + + + + + + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT@&t@_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT@&t@_DLSYM_CONST +#else +# define LT@&t@_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT@&t@_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + +@%:@ Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then : + withval=$with_sysroot; +else + with_sysroot=no +fi + + +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +$as_echo "${with_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +$as_echo "${lt_sysroot:-no}" >&6; } + + + + + + +@%:@ Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD="${LD-ld}_sol2" + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. +set dummy ${ac_tool_prefix}mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MANIFEST_TOOL"; then + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL +if test -n "$MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +$as_echo "$MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL + # Extract the first word of "mt", so it can be a program name with args. +set dummy mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MANIFEST_TOOL"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL +if test -n "$ac_ct_MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MANIFEST_TOOL" = x; then + MANIFEST_TOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL + fi +else + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" +fi + +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if ${lt_cv_path_mainfest_tool+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&5 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +$as_echo "$lt_cv_path_mainfest_tool" >&6; } +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi + + + + + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi +else + OTOOL="$ac_cv_prog_OTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&5 + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test $_lt_result -eq 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +$as_echo_n "checking for -force_load linker flag... " >&6; } +if ${lt_cv_ld_force_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 + echo "$AR cru libconftest.a conftest.o" >&5 + $AR cru libconftest.a conftest.o 2>&5 + echo "$RANLIB libconftest.a" >&5 + $RANLIB libconftest.a 2>&5 + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&5 + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&5 + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +$as_echo "$lt_cv_ld_force_load" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + + +func_stripname_cnf () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname_cnf + + + + + +# Set options + + + + enable_dlopen=no + + + + @%:@ Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + + + + + + + + + @%:@ Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +@%:@ Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for lt_pkg in $withval; do + IFS="$lt_save_ifs" + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + pic_mode=default +fi + + +test -z "$pic_mode" && pic_mode=default + + + + + + + + @%:@ Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +cat >>confdefs.h <<_ACEOF +@%:@define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +# Use C for the default configuration in the libtool script + +lt_save_CC="$CC" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + case $cc_basename in + nvcc*) + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; + *) + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + + + + + + + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + + + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + lt_prog_compiler_wl='-Xlinker ' + if test -n "$lt_prog_compiler_pic"; then + lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + *Sun\ F* | *Sun*Fortran*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Intel*\ [CF]*Compiler*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + *Portland\ Group*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +$as_echo "$lt_cv_prog_compiler_pic" >&6; } +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi + + + + + + + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs=no + ;; + esac + + ld_shlibs=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; + *\ \(GNU\ Binutils\)\ [3-9]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + export_dynamic_flag_spec='${wl}--export-all-symbols' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs=yes + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='${wl}-f,' + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + link_all_deplibs=no + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + fi + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + always_export_symbols=yes + file_list_spec='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' + enable_shared_with_static_runtimes=yes + exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + old_postinstall_cmds='chmod 644 $oldlib' + postlink_cmds='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + enable_shared_with_static_runtimes=yes + ;; + esac + ;; + + darwin* | rhapsody*) + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec='' + fi + link_all_deplibs=yes + allow_undefined_flag="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + + else + ld_shlibs=no + fi + + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +$as_echo_n "checking if $CC understands -b... " >&6; } +if ${lt_cv_prog_compiler__b+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler__b=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -b" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler__b=yes + fi + else + lt_cv_prog_compiler__b=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +$as_echo "$lt_cv_prog_compiler__b" >&6; } + +if test x"$lt_cv_prog_compiler__b" = xyes; then + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' +else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' +fi + + ;; + esac + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if ${lt_cv_irix_exported_symbol+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (void) { return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_irix_exported_symbol=yes +else + lt_cv_irix_exported_symbol=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +$as_echo "$lt_cv_irix_exported_symbol" >&6; } + if test "$lt_cv_irix_exported_symbol" = yes; then + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='${wl}-Blargedynsym' + ;; + esac + fi + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no + +with_gnu_ld=$with_gnu_ld + + + + + + + + + + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([A-Za-z]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink || + test "$inherit_rpath" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + + + + + + + + + + + + + + + + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + + + + + + + + + + + + + # Report which library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + + + + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +CC="$lt_save_CC" + + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +else + _lt_caught_CXX_error=yes +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +compiler_needs_object_CXX=no +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_direct_absolute_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +inherit_rpath_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +reload_flag_CXX=$reload_flag +reload_cmds_CXX=$reload_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + + # save warnings/boilerplate of simple test code + ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + + ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + compiler_CXX=$CC + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' + else + lt_prog_compiler_no_builtin_flag_CXX= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + + +@%:@ Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + ld_shlibs_CXX=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + file_list_spec_CXX='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec_CXX='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + fi + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec_CXX=' ' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=yes + file_list_spec_CXX='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' + enable_shared_with_static_runtimes_CXX=yes + # Don't use ranlib + old_postinstall_cmds_CXX='chmod 644 $oldlib' + postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + + + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec_CXX='' + fi + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + + else + ld_shlibs_CXX=no + fi + + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + freebsd2.*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + ld_shlibs_CXX=no + ;; + + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + + haiku*) + archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs_CXX=yes + ;; + + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + inherit_rpath_CXX=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [1-5].* | *pgcpp\ [1-5].*) + prelink_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + old_archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object_CXX=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + ld_shlibs_CXX=yes + ;; + + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + hardcode_direct_absolute_CXX=yes + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + ld_shlibs_CXX=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + case $host in + osf3*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + ;; + *) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + ;; + esac + + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ + '"$old_archive_cmds_CXX" + reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ + '"$reload_cmds_CXX" + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } + test "$ld_shlibs_CXX" = no && can_build_shared=no + + GCC_CXX="$GXX" + LD_CXX="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + # Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= + +cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF + + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; +esac + +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case ${prev}${p} in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test "$pre_test_object_deps_done" = no; then + case ${prev} in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC* | sunCC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac + + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + compiler_lib_search_dirs_CXX= +if test -n "${compiler_lib_search_path_CXX}"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic_CXX='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-qpic' + lt_prog_compiler_static_CXX='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd* | netbsdelf*-gnu) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } +lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : +else + lt_prog_compiler_static_CXX= +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global defined + # symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) + exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + ;; + esac + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs_CXX=no + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +with_gnu_ld_CXX=$with_gnu_ld + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc_CXX=no + else + lt_cv_archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } + archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || + test -n "$runpath_var_CXX" || + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } + +if test "$hardcode_action_CXX" = relink || + test "$inherit_rpath_CXX" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + + + + + + + + + + + + + ac_config_commands="$ac_config_commands libtool" + + + + +# Only expand once: + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + + + +@%:@ Check whether --with-ALL was given. +if test "${with_ALL+set}" = set; then : + withval=$with_ALL; +fi + + + + + +ARCH=$(uname -m) +KERN=$(uname -s) + + + +LINUX=no +ANDROID=no +MACOSX=no +IPHONEOS=no +BSD=no +WINDOWS=no +MINGW=no +CYGWIN=no +HURD=no +IRIX=no + +case $host_os in +*linux*) + LINUX=yes + ;; +*darwin*) + MACOSX=yes + ;; +GNU/kFreeBSD) + BSD=yes + ;; +*mingw*) + WINDOWS=yes + MINGW=yes + ;; +*cygwin*) + WINDOWS=yes + CYGWIN=yes + ;; +GNU) + HURD=yes + ;; +esac + + + if test x$LINUX = xyes; then + LINUX_TRUE= + LINUX_FALSE='#' +else + LINUX_TRUE='#' + LINUX_FALSE= +fi + + if test x$ANDROID = xyes; then + ANDROID_TRUE= + ANDROID_FALSE='#' +else + ANDROID_TRUE='#' + ANDROID_FALSE= +fi + + if test x$MACOSX = xyes; then + MACOSX_TRUE= + MACOSX_FALSE='#' +else + MACOSX_TRUE='#' + MACOSX_FALSE= +fi + + if test x$IPHONEOS = xyes; then + IPHONEOS_TRUE= + IPHONEOS_FALSE='#' +else + IPHONEOS_TRUE='#' + IPHONEOS_FALSE= +fi + + if test x$BSD = xyes; then + BSD_TRUE= + BSD_FALSE='#' +else + BSD_TRUE='#' + BSD_FALSE= +fi + + if test x$WINDOWS = xyes; then + WINDOWS_TRUE= + WINDOWS_FALSE='#' +else + WINDOWS_TRUE='#' + WINDOWS_FALSE= +fi + + if test x$CYGWIN = xyes; then + CYGWIN_TRUE= + CYGWIN_FALSE='#' +else + CYGWIN_TRUE='#' + CYGWIN_FALSE= +fi + + if test x$MINGW = xyes; then + MINGW_TRUE= + MINGW_FALSE='#' +else + MINGW_TRUE='#' + MINGW_FALSE= +fi + + if test x$HURD = xyes; then + HURD_TRUE= + HURD_FALSE='#' +else + HURD_TRUE='#' + HURD_FALSE= +fi + + if test x$IRIX = xyes; then + IRIX_TRUE= + IRIX_FALSE='#' +else + IRIX_TRUE='#' + IRIX_FALSE= +fi + + + + + + + +if test "x${libdir}" = "x\${exec_prefix}/lib"; then + libdir='${exec_prefix}/lib/pd/extra' +fi + +tmp_rte_cppflags="$CPPFLAGS" +tmp_rte_cflags="$CFLAGS" +tmp_rte_cxxflags="$CXXFLAGS" +tmp_rte_ldflags="$LDFLAGS" +tmp_rte_libs="$LIBS" + +GEM_RTE_CFLAGS="-DPD" +GEM_RTE_LIBS="" +GEM_RTE="Pure Data" + + +@%:@ Check whether --with-pd was given. +if test "${with_pd+set}" = set; then : + withval=$with_pd; +fi + + +## some default paths +if test "x${with_pd}" = "x"; then + case $host_os in + *darwin*) + if test -d "/Applications/Pd-extended.app/Contents/Resources"; then with_pd="/Applications/Pd-extended.app/Contents/Resources"; fi + if test -d "/Applications/Pd.app/Contents/Resources"; then with_pd="/Applications/Pd.app/Contents/Resources"; fi + ;; + *mingw* | *cygwin*) + if test -d "${PROGRAMFILES}/Pd-extended"; then with_pd="${PROGRAMFILES}/Pd-extended"; fi + if test -d "${PROGRAMFILES}/pd"; then with_pd="${PROGRAMFILES}/pd"; fi + ;; + esac +fi + +if test -d "$with_pd" ; then + if test -d "${with_pd}/src" ; then + + for element in "-I${with_pd}/src"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + elif test -d "${with_pd}/include/pd" ; then + + for element in "-I${with_pd}/include/pd"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + elif test -d "${with_pd}/include" ; then + + for element in "-I${with_pd}/include"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + else + + for element in "-I${with_pd}"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + fi + if test -d "${with_pd}/bin" ; then + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-L${with_pd}/bin" + else + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-L${with_pd}" + fi + + CPPFLAGS="$CPPFLAGS ${GEM_RTE_CFLAGS}" + CFLAGS="$CFLAGS ${GEM_RTE_CFLAGS}" + CXXFLAGS="$CXXFLAGS ${GEM_RTE_CFLAGS}" + LIBS="$LIBS ${GEM_RTE_LIBS}" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nullfn in -l:pd.dll" >&5 +$as_echo_n "checking for nullfn in -l:pd.dll... " >&6; } +if ${ac_cv_lib__pd_dll_nullfn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l:pd.dll $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char nullfn (); +int +main () +{ +return nullfn (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib__pd_dll_nullfn=yes +else + ac_cv_lib__pd_dll_nullfn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib__pd_dll_nullfn" >&5 +$as_echo "$ac_cv_lib__pd_dll_nullfn" >&6; } +if test "x$ac_cv_lib__pd_dll_nullfn" = xyes; then : + have_pddll="yes" +else + have_pddll="no" +fi + +if test "x$have_pddll" = "xyes"; then + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-Xlinker -l:pd.dll" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nullfn in -lpd" >&5 +$as_echo_n "checking for nullfn in -lpd... " >&6; } +if ${ac_cv_lib_pd_nullfn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char nullfn (); +int +main () +{ +return nullfn (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_pd_nullfn=yes +else + ac_cv_lib_pd_nullfn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pd_nullfn" >&5 +$as_echo "$ac_cv_lib_pd_nullfn" >&6; } +if test "x$ac_cv_lib_pd_nullfn" = xyes; then : + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-lpd" +fi + +fi + +for ac_header in m_pd.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "m_pd.h" "ac_cv_header_m_pd_h" "$ac_includes_default" +if test "x$ac_cv_header_m_pd_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_M_PD_H 1 +_ACEOF + have_pd="yes" +else + have_pd="no" +fi + +done + + +for ac_header in s_stuff.h +do : + ac_fn_cxx_check_header_compile "$LINENO" "s_stuff.h" "ac_cv_header_s_stuff_h" "#ifdef HAVE_M_PD_H +# define PD +# include \"m_pd.h\" +#endif + +" +if test "x$ac_cv_header_s_stuff_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_S_STUFF_H 1 +_ACEOF + +fi + +done + + +### this should only be set if Pd has been found +# the extension + +@%:@ Check whether --with-extension was given. +if test "${with_extension+set}" = set; then : + withval=$with_extension; +fi + +if test "x$with_extension" != "x"; then + EXT=$with_extension +else + case x$host_os in + x*darwin*) + EXT=pd_darwin + ;; + x*mingw* | x*cygwin*) + EXT=dll + ;; + x) + EXT="pd_linux" + ;; + *) + EXT=pd_`echo $host_os | sed -e '/.*/s/-.*//' -e 's/\..*//'` + ;; + esac +fi +GEM_RTE_EXTENSION=$EXT + + +CPPFLAGS="$tmp_rte_cppflags" +CFLAGS="$tmp_rte_cflags" +CXXFLAGS="$tmp_rte_cxxflags" +LDFLAGS="$tmp_rte_ldflags" +LIBS="$tmp_rte_libs" + + + + + + + + + + + + +GEM_CPPFLAGS="-DGEM_INTERNAL" + +if test "x$have_pddll" = "xyes"; then + GEM_EXTERNAL_LIBS="${GEM_EXTERNAL_LIBS}${GEM_EXTERNAL_LIBS:+ }-Xlinker -l:Gem.dll" +fi + +@%:@ Check whether --enable-mmx was given. +if test "${enable_mmx+set}" = set; then : + enableval=$enable_mmx; +else + + if test "x" != "x"; then enable_mmx="yes"; fi + +fi + + +@%:@ Check whether --enable-sse2 was given. +if test "${enable_sse2+set}" = set; then : + enableval=$enable_sse2; +else + + if test "x" != "x"; then enable_sse2="no"; fi + +fi + + +@%:@ Check whether --enable-altivec was given. +if test "${enable_altivec+set}" = set; then : + enableval=$enable_altivec; +else + + if test "x" != "x"; then enable_altivec="yes"; fi + +fi + + +@%:@ Check whether --enable-powerpc was given. +if test "${enable_powerpc+set}" = set; then : + enableval=$enable_powerpc; +else + + if test "x" != "x"; then enable_powerpc="no"; fi + +fi + + + +@%:@ Check whether --enable-pascalstrings was given. +if test "${enable_pascalstrings+set}" = set; then : + enableval=$enable_pascalstrings; +else + + if test "x" != "x"; then enable_pascalstrings="yes"; fi + +fi + + + +@%:@ Check whether --enable-registerstruct was given. +if test "${enable_registerstruct+set}" = set; then : + enableval=$enable_registerstruct; +else + + if test "xforce" != "x"; then enable_registerstruct="yes"; fi + +fi + + + + + + +ac_config_files="$ac_config_files src/Controls/Makefile" + + +@%:@ Check whether --enable-Controls was given. +if test "${enable_Controls+set}" = set; then : + enableval=$enable_Controls; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Controls-objects" >&5 +$as_echo "building Gem with Controls-objects" >&6; } + target_CONTROLS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Controls-objects" >&5 +$as_echo "building Gem without Controls-objects" >&6; } + target_CONTROLS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Controls-objects" >&5 +$as_echo "building Gem with Controls-objects" >&6; } + target_CONTROLS="yes" + +fi + + if test "x$target_CONTROLS" != "xno"; then + TARGET_CONTROLS_TRUE= + TARGET_CONTROLS_FALSE='#' +else + TARGET_CONTROLS_TRUE='#' + TARGET_CONTROLS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Geos/Makefile" + + +@%:@ Check whether --enable-Geos was given. +if test "${enable_Geos+set}" = set; then : + enableval=$enable_Geos; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Geos-objects" >&5 +$as_echo "building Gem with Geos-objects" >&6; } + target_GEOS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Geos-objects" >&5 +$as_echo "building Gem without Geos-objects" >&6; } + target_GEOS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Geos-objects" >&5 +$as_echo "building Gem with Geos-objects" >&6; } + target_GEOS="yes" + +fi + + if test "x$target_GEOS" != "xno"; then + TARGET_GEOS_TRUE= + TARGET_GEOS_FALSE='#' +else + TARGET_GEOS_TRUE='#' + TARGET_GEOS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Manips/Makefile" + + +@%:@ Check whether --enable-Manips was given. +if test "${enable_Manips+set}" = set; then : + enableval=$enable_Manips; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Manips-objects" >&5 +$as_echo "building Gem with Manips-objects" >&6; } + target_MANIPS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Manips-objects" >&5 +$as_echo "building Gem without Manips-objects" >&6; } + target_MANIPS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Manips-objects" >&5 +$as_echo "building Gem with Manips-objects" >&6; } + target_MANIPS="yes" + +fi + + if test "x$target_MANIPS" != "xno"; then + TARGET_MANIPS_TRUE= + TARGET_MANIPS_FALSE='#' +else + TARGET_MANIPS_TRUE='#' + TARGET_MANIPS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Nongeos/Makefile" + + +@%:@ Check whether --enable-Nongeos was given. +if test "${enable_Nongeos+set}" = set; then : + enableval=$enable_Nongeos; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Nongeos-objects" >&5 +$as_echo "building Gem with Nongeos-objects" >&6; } + target_NONGEOS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Nongeos-objects" >&5 +$as_echo "building Gem without Nongeos-objects" >&6; } + target_NONGEOS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Nongeos-objects" >&5 +$as_echo "building Gem with Nongeos-objects" >&6; } + target_NONGEOS="yes" + +fi + + if test "x$target_NONGEOS" != "xno"; then + TARGET_NONGEOS_TRUE= + TARGET_NONGEOS_FALSE='#' +else + TARGET_NONGEOS_TRUE='#' + TARGET_NONGEOS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Particles/Makefile" + + +@%:@ Check whether --enable-Particles was given. +if test "${enable_Particles+set}" = set; then : + enableval=$enable_Particles; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Particles-objects" >&5 +$as_echo "building Gem with Particles-objects" >&6; } + target_PARTICLES="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Particles-objects" >&5 +$as_echo "building Gem without Particles-objects" >&6; } + target_PARTICLES="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Particles-objects" >&5 +$as_echo "building Gem with Particles-objects" >&6; } + target_PARTICLES="yes" + +fi + + if test "x$target_PARTICLES" != "xno"; then + TARGET_PARTICLES_TRUE= + TARGET_PARTICLES_FALSE='#' +else + TARGET_PARTICLES_TRUE='#' + TARGET_PARTICLES_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Pixes/Makefile" + + +@%:@ Check whether --enable-Pixes was given. +if test "${enable_Pixes+set}" = set; then : + enableval=$enable_Pixes; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Pixes-objects" >&5 +$as_echo "building Gem with Pixes-objects" >&6; } + target_PIXES="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Pixes-objects" >&5 +$as_echo "building Gem without Pixes-objects" >&6; } + target_PIXES="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Pixes-objects" >&5 +$as_echo "building Gem with Pixes-objects" >&6; } + target_PIXES="yes" + +fi + + if test "x$target_PIXES" != "xno"; then + TARGET_PIXES_TRUE= + TARGET_PIXES_FALSE='#' +else + TARGET_PIXES_TRUE='#' + TARGET_PIXES_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/openGL/Makefile" + + +@%:@ Check whether --enable-openGL was given. +if test "${enable_openGL+set}" = set; then : + enableval=$enable_openGL; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with openGL-objects" >&5 +$as_echo "building Gem with openGL-objects" >&6; } + target_OPENGL="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without openGL-objects" >&5 +$as_echo "building Gem without openGL-objects" >&6; } + target_OPENGL="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with openGL-objects" >&5 +$as_echo "building Gem with openGL-objects" >&6; } + target_OPENGL="yes" + +fi + + if test "x$target_OPENGL" != "xno"; then + TARGET_OPENGL_TRUE= + TARGET_OPENGL_FALSE='#' +else + TARGET_OPENGL_TRUE='#' + TARGET_OPENGL_FALSE= +fi + + + + + + +ac_config_files="$ac_config_files src/Vertex/Makefile" + +@%:@ Check whether --enable-Vertex was given. +if test "${enable_Vertex+set}" = set; then : + enableval=$enable_Vertex; + if test "x$enableval" != "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Vertex-objects" >&5 +$as_echo "building Gem without Vertex-objects" >&6; } + target_VERTEX="no" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Vertex-objects" >&5 +$as_echo "building Gem with Vertex-objects" >&6; } + target_VERTEX="yes" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Vertex-objects" >&5 +$as_echo "building Gem without Vertex-objects" >&6; } + target_VERTEX="no" + +fi + + if test "x$target_VERTEX" != "xno"; then + TARGET_VERTEX_TRUE= + TARGET_VERTEX_FALSE='#' +else + TARGET_VERTEX_TRUE='#' + TARGET_VERTEX_FALSE= +fi + + + + +# Checks for libraries. + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 +$as_echo_n "checking for sin in -lm... " >&6; } +if ${ac_cv_lib_m_sin+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sin (); +int +main () +{ +return sin (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_m_sin=yes +else + ac_cv_lib_m_sin=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 +$as_echo "$ac_cv_lib_m_sin" >&6; } +if test "x$ac_cv_lib_m_sin" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBM 1 +_ACEOF + + LIBS="-lm $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5 +$as_echo_n "checking for main in -lz... " >&6; } +if ${ac_cv_lib_z_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_z_main=yes +else + ac_cv_lib_z_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5 +$as_echo "$ac_cv_lib_z_main" >&6; } +if test "x$ac_cv_lib_z_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBZ 1 +_ACEOF + + LIBS="-lz $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBDL 1 +_ACEOF + + LIBS="-ldl $LIBS" + +fi + + +# w32 compatibility library +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lOLDNAMES" >&5 +$as_echo_n "checking for close in -lOLDNAMES... " >&6; } +if ${ac_cv_lib_OLDNAMES_close+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lOLDNAMES $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char close (); +int +main () +{ +return close (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_OLDNAMES_close=yes +else + ac_cv_lib_OLDNAMES_close=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OLDNAMES_close" >&5 +$as_echo "$ac_cv_lib_OLDNAMES_close" >&6; } +if test "x$ac_cv_lib_OLDNAMES_close" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBOLDNAMES 1 +_ACEOF + + LIBS="-lOLDNAMES $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lcoldname" >&5 +$as_echo_n "checking for close in -lcoldname... " >&6; } +if ${ac_cv_lib_coldname_close+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcoldname $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char close (); +int +main () +{ +return close (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_coldname_close=yes +else + ac_cv_lib_coldname_close=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_coldname_close" >&5 +$as_echo "$ac_cv_lib_coldname_close" >&6; } +if test "x$ac_cv_lib_coldname_close" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBCOLDNAME 1 +_ACEOF + + LIBS="-lcoldname $LIBS" + +fi + +# Standard C++ Libray: +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llibcpmt" >&5 +$as_echo_n "checking for main in -llibcpmt... " >&6; } +if ${ac_cv_lib_libcpmt_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-llibcpmt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_libcpmt_main=yes +else + ac_cv_lib_libcpmt_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_libcpmt_main" >&5 +$as_echo "$ac_cv_lib_libcpmt_main" >&6; } +if test "x$ac_cv_lib_libcpmt_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBCPMT 1 +_ACEOF + + LIBS="-llibcpmt $LIBS" + +fi + +# C runtime library: +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose in -lmsvcrt" >&5 +$as_echo_n "checking for fclose in -lmsvcrt... " >&6; } +if ${ac_cv_lib_msvcrt_fclose+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmsvcrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char fclose (); +int +main () +{ +return fclose (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_msvcrt_fclose=yes +else + ac_cv_lib_msvcrt_fclose=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msvcrt_fclose" >&5 +$as_echo "$ac_cv_lib_msvcrt_fclose" >&6; } +if test "x$ac_cv_lib_msvcrt_fclose" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMSVCRT 1 +_ACEOF + + LIBS="-lmsvcrt $LIBS" + +fi + +# Standard C++ Libray: +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmsvcprt" >&5 +$as_echo_n "checking for main in -lmsvcprt... " >&6; } +if ${ac_cv_lib_msvcprt_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmsvcprt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_msvcprt_main=yes +else + ac_cv_lib_msvcprt_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msvcprt_main" >&5 +$as_echo "$ac_cv_lib_msvcprt_main" >&6; } +if test "x$ac_cv_lib_msvcprt_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMSVCPRT 1 +_ACEOF + + LIBS="-lmsvcprt $LIBS" + +fi + +# Winsock Library +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 +$as_echo_n "checking for main in -lws2_32... " >&6; } +if ${ac_cv_lib_ws2_32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lws2_32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ws2_32_main=yes +else + ac_cv_lib_ws2_32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 +$as_echo "$ac_cv_lib_ws2_32_main" >&6; } +if test "x$ac_cv_lib_ws2_32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBWS2_32 1 +_ACEOF + + LIBS="-lws2_32 $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwsock32" >&5 +$as_echo_n "checking for main in -lwsock32... " >&6; } +if ${ac_cv_lib_wsock32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lwsock32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_wsock32_main=yes +else + ac_cv_lib_wsock32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_main" >&5 +$as_echo "$ac_cv_lib_wsock32_main" >&6; } +if test "x$ac_cv_lib_wsock32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBWSOCK32 1 +_ACEOF + + LIBS="-lwsock32 $LIBS" + +fi + + +# w32 window creating +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5 +$as_echo_n "checking for main in -lgdi32... " >&6; } +if ${ac_cv_lib_gdi32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgdi32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_gdi32_main=yes +else + ac_cv_lib_gdi32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5 +$as_echo "$ac_cv_lib_gdi32_main" >&6; } +if test "x$ac_cv_lib_gdi32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGDI32 1 +_ACEOF + + LIBS="-lgdi32 $LIBS" + +fi + + + +## on OSX X shouldn't be used by default as there are other ways +## however, if people really want it ("--with-x") they should get it +if test "x$KERN" = "xDarwin"; then + if test "x$with_x" = "x"; then + with_x="no" + fi +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 +$as_echo_n "checking for X... " >&6; } + + +@%:@ Check whether --with-x was given. +if test "${with_x+set}" = set; then : + withval=$with_x; +fi + +# $have_x is `yes', `no', `disabled', or empty when we do not yet know. +if test "x$with_x" = xno; then + # The user explicitly disabled X. + have_x=disabled +else + case $x_includes,$x_libraries in #( + *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( + *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : + $as_echo_n "(cached) " >&6 +else + # One or both of the vars are not set, and there is no cached value. +ac_x_includes=no ac_x_libraries=no +rm -f -r conftest.dir +if mkdir conftest.dir; then + cd conftest.dir + cat >Imakefile <<'_ACEOF' +incroot: + @echo incroot='${INCROOT}' +usrlibdir: + @echo usrlibdir='${USRLIBDIR}' +libdir: + @echo libdir='${LIBDIR}' +_ACEOF + if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then + # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. + for ac_var in incroot usrlibdir libdir; do + eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" + done + # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. + for ac_extension in a so sl dylib la dll; do + if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && + test -f "$ac_im_libdir/libX11.$ac_extension"; then + ac_im_usrlibdir=$ac_im_libdir; break + fi + done + # Screen out bogus values from the imake configuration. They are + # bogus both because they are the default anyway, and because + # using them would break gcc on systems where it needs fixed includes. + case $ac_im_incroot in + /usr/include) ac_x_includes= ;; + *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; + esac + case $ac_im_usrlibdir in + /usr/lib | /usr/lib64 | /lib | /lib64) ;; + *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; + esac + fi + cd .. + rm -f -r conftest.dir +fi + +# Standard set of common directories for X headers. +# Check X11 before X11Rn because it is often a symlink to the current release. +ac_x_header_dirs=' +/usr/X11/include +/usr/X11R7/include +/usr/X11R6/include +/usr/X11R5/include +/usr/X11R4/include + +/usr/include/X11 +/usr/include/X11R7 +/usr/include/X11R6 +/usr/include/X11R5 +/usr/include/X11R4 + +/usr/local/X11/include +/usr/local/X11R7/include +/usr/local/X11R6/include +/usr/local/X11R5/include +/usr/local/X11R4/include + +/usr/local/include/X11 +/usr/local/include/X11R7 +/usr/local/include/X11R6 +/usr/local/include/X11R5 +/usr/local/include/X11R4 + +/usr/X386/include +/usr/x386/include +/usr/XFree86/include/X11 + +/usr/include +/usr/local/include +/usr/unsupported/include +/usr/athena/include +/usr/local/x11r5/include +/usr/lpp/Xamples/include + +/usr/openwin/include +/usr/openwin/share/include' + +if test "$ac_x_includes" = no; then + # Guess where to find include files, by looking for Xlib.h. + # First, try using that file with no special directory specified. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # We can compile using X headers with no special include directory. +ac_x_includes= +else + for ac_dir in $ac_x_header_dirs; do + if test -r "$ac_dir/X11/Xlib.h"; then + ac_x_includes=$ac_dir + break + fi +done +fi +rm -f conftest.err conftest.i conftest.$ac_ext +fi # $ac_x_includes = no + +if test "$ac_x_libraries" = no; then + # Check for the libraries. + # See if we find them without any special options. + # Don't add to $LIBS permanently. + ac_save_LIBS=$LIBS + LIBS="-lX11 $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +int +main () +{ +XrmInitialize () + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + LIBS=$ac_save_LIBS +# We can link X programs with no special library path. +ac_x_libraries= +else + LIBS=$ac_save_LIBS +for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` +do + # Don't even attempt the hair of trying to link an X program! + for ac_extension in a so sl dylib la dll; do + if test -r "$ac_dir/libX11.$ac_extension"; then + ac_x_libraries=$ac_dir + break 2 + fi + done +done +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi # $ac_x_libraries = no + +case $ac_x_includes,$ac_x_libraries in #( + no,* | *,no | *\'*) + # Didn't find X, or a directory has "'" in its name. + ac_cv_have_x="have_x=no";; #( + *) + # Record where we found X for the cache. + ac_cv_have_x="have_x=yes\ + ac_x_includes='$ac_x_includes'\ + ac_x_libraries='$ac_x_libraries'" +esac +fi +;; #( + *) have_x=yes;; + esac + eval "$ac_cv_have_x" +fi # $with_x != no + +if test "$have_x" != yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 +$as_echo "$have_x" >&6; } + no_x=yes +else + # If each of the values was on the command line, it overrides each guess. + test "x$x_includes" = xNONE && x_includes=$ac_x_includes + test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries + # Update the cache value to reflect the command line values. + ac_cv_have_x="have_x=yes\ + ac_x_includes='$x_includes'\ + ac_x_libraries='$x_libraries'" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 +$as_echo "libraries $x_libraries, headers $x_includes" >&6; } +fi + +if test "$no_x" = yes; then + # Not all programs may use this symbol, but it does not hurt to define it. + +$as_echo "@%:@define X_DISPLAY_MISSING 1" >>confdefs.h + + X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= +else + if test -n "$x_includes"; then + X_CFLAGS="$X_CFLAGS -I$x_includes" + fi + + # It would also be nice to do this for all -L options, not just this one. + if test -n "$x_libraries"; then + X_LIBS="$X_LIBS -L$x_libraries" + # For Solaris; some versions of Sun CC require a space after -R and + # others require no space. Words are not sufficient . . . . + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 +$as_echo_n "checking whether -R must be followed by a space... " >&6; } + ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" + ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + X_LIBS="$X_LIBS -R$x_libraries" +else + LIBS="$ac_xsave_LIBS -R $x_libraries" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + X_LIBS="$X_LIBS -R $x_libraries" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 +$as_echo "neither works" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag + LIBS=$ac_xsave_LIBS + fi + + # Check for system-dependent libraries X programs must link with. + # Do this before checking for the system-independent R6 libraries + # (-lICE), since we may need -lsocket or whatever for X linking. + + if test "$ISC" = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" + else + # Martyn Johnson says this is needed for Ultrix, if the X + # libraries were built with DECnet support. And Karl Berry says + # the Alpha needs dnet_stub (dnet does not exist). + ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char XOpenDisplay (); +int +main () +{ +return XOpenDisplay (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 +$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } +if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_ntoa (); +int +main () +{ +return dnet_ntoa (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dnet_dnet_ntoa=yes +else + ac_cv_lib_dnet_dnet_ntoa=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 +$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } +if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" +fi + + if test $ac_cv_lib_dnet_dnet_ntoa = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 +$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } +if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet_stub $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_ntoa (); +int +main () +{ +return dnet_ntoa (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dnet_stub_dnet_ntoa=yes +else + ac_cv_lib_dnet_stub_dnet_ntoa=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 +$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } +if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" +fi + + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$ac_xsave_LIBS" + + # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, + # to get the SysV transport functions. + # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) + # needs -lnsl. + # The nsl library prevents programs from opening the X display + # on Irix 5.2, according to T.E. Dickey. + # The functions gethostbyname, getservbyname, and inet_addr are + # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. + ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" +if test "x$ac_cv_func_gethostbyname" = xyes; then : + +fi + + if test $ac_cv_func_gethostbyname = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_gethostbyname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_nsl_gethostbyname=yes +else + ac_cv_lib_nsl_gethostbyname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } +if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" +fi + + if test $ac_cv_lib_nsl_gethostbyname = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 +$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } +if ${ac_cv_lib_bsd_gethostbyname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbsd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_bsd_gethostbyname=yes +else + ac_cv_lib_bsd_gethostbyname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 +$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } +if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" +fi + + fi + fi + + # lieder@skyler.mavd.honeywell.com says without -lsocket, + # socket/setsockopt and other routines are undefined under SCO ODT + # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary + # on later versions), says Simon Leinen: it contains gethostby* + # variants that don't use the name server (or something). -lsocket + # must be given before -lnsl if both are needed. We assume that + # if connect needs -lnsl, so does gethostbyname. + ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" +if test "x$ac_cv_func_connect" = xyes; then : + +fi + + if test $ac_cv_func_connect = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 +$as_echo_n "checking for connect in -lsocket... " >&6; } +if ${ac_cv_lib_socket_connect+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $X_EXTRA_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char connect (); +int +main () +{ +return connect (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_socket_connect=yes +else + ac_cv_lib_socket_connect=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 +$as_echo "$ac_cv_lib_socket_connect" >&6; } +if test "x$ac_cv_lib_socket_connect" = xyes; then : + X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" +fi + + fi + + # Guillermo Gomez says -lposix is necessary on A/UX. + ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" +if test "x$ac_cv_func_remove" = xyes; then : + +fi + + if test $ac_cv_func_remove = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 +$as_echo_n "checking for remove in -lposix... " >&6; } +if ${ac_cv_lib_posix_remove+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lposix $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char remove (); +int +main () +{ +return remove (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_posix_remove=yes +else + ac_cv_lib_posix_remove=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 +$as_echo "$ac_cv_lib_posix_remove" >&6; } +if test "x$ac_cv_lib_posix_remove" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" +fi + + fi + + # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. + ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" +if test "x$ac_cv_func_shmat" = xyes; then : + +fi + + if test $ac_cv_func_shmat = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 +$as_echo_n "checking for shmat in -lipc... " >&6; } +if ${ac_cv_lib_ipc_shmat+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lipc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shmat (); +int +main () +{ +return shmat (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ipc_shmat=yes +else + ac_cv_lib_ipc_shmat=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 +$as_echo "$ac_cv_lib_ipc_shmat" >&6; } +if test "x$ac_cv_lib_ipc_shmat" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" +fi + + fi + fi + + # Check for libraries that X11R6 Xt/Xaw programs need. + ac_save_LDFLAGS=$LDFLAGS + test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" + # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to + # check for ICE first), but we must link in the order -lSM -lICE or + # we get undefined symbols. So assume we have SM if we have ICE. + # These have to be linked with before -lX11, unlike the other + # libraries we check for below, so use a different variable. + # John Interrante, Karl Berry + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 +$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } +if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lICE $X_EXTRA_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char IceConnectionNumber (); +int +main () +{ +return IceConnectionNumber (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ICE_IceConnectionNumber=yes +else + ac_cv_lib_ICE_IceConnectionNumber=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 +$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } +if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : + X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" +fi + + LDFLAGS=$ac_save_LDFLAGS + +fi + + +if test "x$with_x" != "xno"; then +# AC_CHECK_LIB([X11],[main]) +# AC_CHECK_LIB([Xext],[main]) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeGetAllModeLines in -lXxf86vm" >&5 +$as_echo_n "checking for XF86VidModeGetAllModeLines in -lXxf86vm... " >&6; } +if ${ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lXxf86vm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char XF86VidModeGetAllModeLines (); +int +main () +{ +return XF86VidModeGetAllModeLines (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines=yes +else + ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines" >&5 +$as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines" >&6; } +if test "x$ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBXXF86VM 1 +_ACEOF + + LIBS="-lXxf86vm $LIBS" + +fi + +fi + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ax_pthread_ok=no + +# We used to check for pthread.h first, but this fails if pthread.h +# requires special compiler flags (e.g. on True64 or Sequent). +# It gets checked for in the link test anyway. + +# First of all, check if the user has set any of the PTHREAD_LIBS, +# etcetera environment variables, and if threads linking works using +# them: +if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS" >&5 +$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_join (); +int +main () +{ +return pthread_join (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test x"$ax_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" +fi + +# We must check for the threads library under a number of different +# names; the ordering is very important because some systems +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the +# libraries is broken (non-POSIX). + +# Create a list of thread flags to try. Items starting with a "-" are +# C compiler flags, and other items are library names, except for "none" +# which indicates that we try without any flags at all, and "pthread-config" +# which is a program returning the flags for the Pth emulation library. + +ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads +-mthreads pthread --thread-safe -mt pthread-config" + +# The ordering *is* (sometimes) important. Some notes on the +# individual items follow: + +# pthreads: AIX (must check this before -lpthread) +# none: in case threads are in libc; should be tried before -Kthread and +# other compiler flags to prevent continual compiler warnings +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) +# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) +# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) +# -pthreads: Solaris/gcc +# -mthreads: Mingw32/gcc, Lynx/gcc +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it +# doesn't hurt to check since this sometimes defines pthreads too; +# also defines -D_REENTRANT) +# ... -mt is also the pthreads flag for HP/aCC +# pthread: Linux, etcetera +# --thread-safe: KAI C++ +# pthread-config: use pthread-config program (for GNU Pth library) + +case "${host_cpu}-${host_os}" in + *solaris*) + + # On Solaris (at least, for some versions), libc contains stubbed + # (non-functional) versions of the pthreads routines, so link-based + # tests will erroneously succeed. (We need to link with -pthreads/-mt/ + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather + # a function called by this macro, so we could check for that, but + # who knows whether they'll stub that too in a future libc.) So, + # we'll just look for -pthreads and -lpthread first: + + ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" + ;; + + *-darwin*) + acx_pthread_flags="-pthread $acx_pthread_flags" + ;; +esac + +if test x"$ax_pthread_ok" = xno; then +for flag in $ax_pthread_flags; do + + case $flag in + none) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 +$as_echo_n "checking whether pthreads work without any flags... " >&6; } + ;; + + -*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 +$as_echo_n "checking whether pthreads work with $flag... " >&6; } + PTHREAD_CFLAGS="$flag" + ;; + + pthread-config) + # Extract the first word of "pthread-config", so it can be a program name with args. +set dummy pthread-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ax_pthread_config+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ax_pthread_config"; then + ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ax_pthread_config="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" +fi +fi +ax_pthread_config=$ac_cv_prog_ax_pthread_config +if test -n "$ax_pthread_config"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 +$as_echo "$ax_pthread_config" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test x"$ax_pthread_config" = xno; then continue; fi + PTHREAD_CFLAGS="`pthread-config --cflags`" + PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config +--libs`" + ;; + + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 +$as_echo_n "checking for the pthreads library -l$flag... " >&6; } + PTHREAD_LIBS="-l$flag" + ;; + esac + + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Check for various functions. We must include pthread.h, + # since some functions may be macros. (On the Sequent, we + # need a special flag -Kthread to make this header compile.) + # We check for pthread_join because it is in -lpthread on IRIX + # while pthread_create is in libc. We check for pthread_attr_init + # due to DEC craziness with -lpthreads. We check for + # pthread_cleanup_push because it is one of the few pthread + # functions on Solaris that doesn't have a non-functional libc stub. + # We try pthread_create on general principles. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + static void routine(void* a) {a=0;} + static void* start_routine(void* a) {return a;} +int +main () +{ +pthread_t th; pthread_attr_t attr; + pthread_join(th, 0); + pthread_attr_init(&attr); + pthread_cleanup_push(routine, 0); + pthread_create(&th,0,start_routine,0); + pthread_cleanup_pop(0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test "x$ax_pthread_ok" = xyes; then + break; + fi + + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" +done +fi + +# Various other checks: +if test "x$ax_pthread_ok" = xyes; then + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 +$as_echo_n "checking for joinable pthread attribute... " >&6; } + attr_name=unknown + for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int attr=$attr; return attr; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + attr_name=$attr; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + done + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 +$as_echo "$attr_name" >&6; } + if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then + +cat >>confdefs.h <<_ACEOF +@%:@define PTHREAD_CREATE_JOINABLE $attr_name +_ACEOF + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 +$as_echo_n "checking if more special flags are required for pthreads... " >&6; } + flag=no + case "${host_cpu}-${host_os}" in + *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 +$as_echo "${flag}" >&6; } + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + # More AIX lossage: must compile with xlc_r or cc_r + if test x"$GCC" != xyes; then + for ac_prog in xlc_r cc_r +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_PTHREAD_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$PTHREAD_CC"; then + ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_PTHREAD_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +PTHREAD_CC=$ac_cv_prog_PTHREAD_CC +if test -n "$PTHREAD_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 +$as_echo "$PTHREAD_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$PTHREAD_CC" && break +done +test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" + + else + PTHREAD_CC=$CC + fi +else + PTHREAD_CC="$CC" +fi + + + + + +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: +if test x"$ax_pthread_ok" = xyes; then + +$as_echo "@%:@define HAVE_PTHREADS 1" >>confdefs.h + + : +else + ax_pthread_ok=no + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 +$as_echo_n "checking for C compiler vendor... " >&6; } +if ${ax_cv_c_compiler_vendor+:} false; then : + $as_echo_n "(cached) " >&6 +else + # note: don't check for gcc first since some other compilers define __GNUC__ + vendors="intel: __ICC,__ECC,__INTEL_COMPILER + ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ + pathscale: __PATHCC__,__PATHSCALE__ + clang: __clang__ + gnu: __GNUC__ + sun: __SUNPRO_C,__SUNPRO_CC + hp: __HP_cc,__HP_aCC + dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER + borland: __BORLANDC__,__TURBOC__ + comeau: __COMO__ + cray: _CRAYC + kai: __KCC + lcc: __LCC__ + sgi: __sgi,sgi + microsoft: _MSC_VER + metrowerks: __MWERKS__ + watcom: __WATCOMC__ + portland: __PGI + unknown: UNKNOWN" + for ventest in $vendors; do + case $ventest in + *:) vendor=$ventest; continue ;; + *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; + esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + #if !($vencpp) + thisisanerror; + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done + ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 +$as_echo "$ax_cv_c_compiler_vendor" >&6; } + +if test X$ax_cv_c_compiler_vendor != Xmicrosoft; then : + GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm" +fi + +# +# Use x_includes and x_libraries if they have been set (presumably by +# AC_PATH_X). +# +if test "X$no_x" != "Xyes"; then : + if test -n "$x_includes"; then : + GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" +fi + if test -n "$x_libraries"; then : + GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" +fi +fi + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +for ac_header in GL/gl.h OpenGL/gl.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +CPPFLAGS="${ax_save_CPPFLAGS}" + +for ac_header in windows.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" +if test "x$ac_cv_header_windows_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_WINDOWS_H 1 +_ACEOF + +fi + +done + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5 +$as_echo_n "checking for OpenGL library... " >&6; } +if ${ax_cv_check_gl_libgl+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_check_gl_libgl="no" +case $host_cpu in + x86_64) ax_check_gl_libdir=lib64 ;; + *) ax_check_gl_libdir=lib ;; +esac +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" +LIBS="" +ax_check_libs="-lopengl32 -lGL" +for ax_lib in ${ax_check_libs}; do + if test X$ax_compiler_ms = Xyes; then : + ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` +else + ax_try_lib="${ax_lib}" +fi + LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="${ax_try_lib}"; break +else + ax_check_gl_nvidia_flags="-L/usr/${ax_check_gl_libdir}/nvidia" LIBS="${ax_try_lib} ${ax_check_gl_nvidia_flags} ${GL_LIBS} ${ax_save_LIBS}" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break +else + ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' LIBS="${ax_try_lib} ${ax_check_gl_dylib_flag} ${GL_LIBS} ${ax_save_LIBS}" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +done + +if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then : + LIBS='-framework OpenGL' +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="$LIBS" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi + +LIBS=${ax_save_LIBS} +CPPFLAGS=${ax_save_CPPFLAGS} +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5 +$as_echo "$ax_cv_check_gl_libgl" >&6; } + +if test "X$ax_cv_check_gl_libgl" = Xno; then : + no_gl=yes; GL_CFLAGS=""; GL_LIBS="" +else + GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + + + + if test "x$no_gl" != "xyes"; then + HAVE_GL_TRUE= + HAVE_GL_FALSE='#' +else + HAVE_GL_TRUE='#' + HAVE_GL_FALSE= +fi + + +GLU_CFLAGS="${GL_CFLAGS}" + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +for ac_header in GL/glu.h OpenGL/glu.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +CPPFLAGS="${ax_save_CPPFLAGS}" + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5 +$as_echo_n "checking for OpenGL Utility library... " >&6; } +if ${ax_cv_check_glu_libglu+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_check_glu_libglu="no" +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" + +# +# First, check for the possibility that everything we need is already in +# GL_LIBS. +# +LIBS="${GL_LIBS} ${ax_save_LIBS}" +# +# libGLU typically links with libstdc++ on POSIX platforms. +# However, setting the language to C++ means that test program +# source is named "conftest.cc"; and Microsoft cl doesn't know what +# to do with such a file. +# +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +if test X$ax_compiler_ms = Xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLU_H +# include +# elif defined(HAVE_OPENGL_GLU_H) +# include +# else +# error no glu.h +# endif +int +main () +{ +gluBeginCurve(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glu_libglu=yes +else + LIBS="" +ax_check_libs="-lglu32 -lGLU" +for ax_lib in ${ax_check_libs}; do + if test X$ax_compiler_ms = Xyes; then : + ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` +else + ax_try_lib="${ax_lib}" +fi + LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLU_H +# include +# elif defined(HAVE_OPENGL_GLU_H) +# include +# else +# error no glu.h +# endif +int +main () +{ +gluBeginCurve(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glu_libglu="${ax_try_lib}"; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +done + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test X$ax_compiler_ms = Xyes; then : + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +LIBS=${ax_save_LIBS} +CPPFLAGS=${ax_save_CPPFLAGS} +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5 +$as_echo "$ax_cv_check_glu_libglu" >&6; } +if test "X$ax_cv_check_glu_libglu" = Xno; then : + no_glu=yes; GLU_CFLAGS=""; GLU_LIBS="" +else + if test "X$ax_cv_check_glu_libglu" = Xyes; then : + GLU_LIBS="$GL_LIBS" +else + GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" +fi +fi + + + +# +# Some versions of Mac OS X include a broken interpretation of the GLU +# tesselation callback function signature. +# +if test "X$ax_cv_check_glu_libglu" != Xno; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5 +$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; } +if ${ax_cv_varargs_glu_tesscb+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_varargs_glu_tesscb=no +ax_save_CFLAGS="$CFLAGS" +CFLAGS="$GL_CFLAGS $CFLAGS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# ifdef HAVE_GL_GLU_H +# include +# else +# include +# endif +int +main () +{ +GLvoid (*func)(...); gluTessCallback(0, 0, func) + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ax_cv_varargs_glu_tesscb=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +CFLAGS="$ax_save_CFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5 +$as_echo "$ax_cv_varargs_glu_tesscb" >&6; } +if test X$ax_cv_varargs_glu_tesscb = Xyes; then : + +$as_echo "@%:@define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h + +fi +fi + + + if test "x$no_glu" != "xyes"; then + HAVE_GLU_TRUE= + HAVE_GLU_FALSE='#' +else + HAVE_GLU_TRUE='#' + HAVE_GLU_FALSE= +fi + + + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" +for ac_header in GL/glut.h GLUT/glut.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +CPPFLAGS="${ax_save_CPPFLAGS}" + +GLUT_CFLAGS=${GLU_CFLAGS} +GLUT_LIBS=${GLU_LIBS} + + + +# +# If X is present, assume GLUT depends on it. +# +if test X$no_x != Xyes; then : + GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5 +$as_echo_n "checking for GLUT library... " >&6; } +if ${ax_cv_check_glut_libglut+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_check_glut_libglut="no" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" +LIBS="" +ax_check_libs="-lglut32 -lglut" +for ax_lib in ${ax_check_libs}; do + if test X$ax_compiler_ms = Xyes; then : + ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` +else + ax_try_lib="${ax_lib}" +fi + LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if HAVE_WINDOWS_H && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLUT_H +# include +# elif defined(HAVE_GLUT_GLUT_H) +# include +# else +# error no glut.h +# endif +int +main () +{ +glutMainLoop() + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glut_libglut="${ax_try_lib}"; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +done + +if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then : + LIBS='-framework GLUT' +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if HAVE_WINDOWS_H && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLUT_H +# include +# elif defined(HAVE_GLUT_GLUT_H) +# include +# else +# error no glut.h +# endif +int +main () +{ +glutMainLoop() + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glut_libglut="$LIBS" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi + +CPPFLAGS="${ax_save_CPPFLAGS}" +LIBS="${ax_save_LIBS}" +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5 +$as_echo "$ax_cv_check_glut_libglut" >&6; } + +if test "X$ax_cv_check_glut_libglut" = Xno; then : + no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS="" +else + GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" +fi + + + + + + if test "x$no_glut" != "xyes"; then + HAVE_GLUT_TRUE= + HAVE_GLUT_FALSE='#' +else + HAVE_GLUT_TRUE='#' + HAVE_GLUT_FALSE= +fi + + + +for ac_header in GL/glx.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default" +if test "x$ac_cv_header_GL_glx_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GL_GLX_H 1 +_ACEOF + +else + no_glx=yes +fi + +done + + if test "x$no_glx" != "xyes"; then + HAVE_GLX_TRUE= + HAVE_GLX_FALSE='#' +else + HAVE_GLX_TRUE='#' + HAVE_GLX_FALSE= +fi + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"AGL\"-framework" >&5 +$as_echo_n "checking for \"AGL\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework AGL ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_AGL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GEM_FRAMEWORK_AGL 1 +_ACEOF + + GEM_FRAMEWORK_AGL="-framework AGL" + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_AGL_TRUE= + HAVE_FRAMEWORK_AGL_FALSE='#' +else + HAVE_FRAMEWORK_AGL_TRUE='#' + HAVE_FRAMEWORK_AGL_FALSE= +fi + + + +if test "x$gem_check_ldflags_success" != "xyes"; then + no_agl="yes" +fi +AGL_CFLAGS="" +AGL_LIBS="${GEM_FRAMEWORK_AGL}" + + + if test "x$no_agl" != "xyes"; then + HAVE_AGL_TRUE= + HAVE_AGL_FALSE='#' +else + HAVE_AGL_TRUE='#' + HAVE_AGL_FALSE= +fi + + + +## use system's libGLEW + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi + +fi + + + + + + + +@%:@ Check whether --with-glew was given. +if test "${with_glew+set}" = set; then : + withval=$with_glew; +fi + + +@%:@ Check whether --with-glew-includes was given. +if test "${with_glew_includes+set}" = set; then : + withval=$with_glew_includes; +fi + + +@%:@ Check whether --with-glew-libs was given. +if test "${with_glew_libs+set}" = set; then : + withval=$with_glew_libs; +fi + + + if test "x$with_glew" = "x"; then with_glew="no"; fi + + if test "x$with_ALL" = "xyes" && test "x$with_glew" = "x"; then with_glew="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_glew" = "x"; then with_glew="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_glew = "xno"; then + have_glew="no (forced)" +else + if test -d "$with_glew_includes"; then + CFLAGS="-I$with_glew_includes $CFLAGS" + CPPFLAGS="-I$with_glew_includes $CPPFLAGS" + CXXFLAGS="-I$with_glew_includes $CXXFLAGS" + fi + if test -d "$with_glew_libs"; then + LIBS="-L$with_glew_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_GLEW_glewInit) >/dev/null 2>&1 && unset ac_cv_lib_GLEW_glewInit + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GLEW_CFLAGS" >&5 +$as_echo_n "checking for PKG_GLEW_CFLAGS... " >&6; } +if ${pkg_cv_PKG_GLEW_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GLEW_CFLAGS_set" = "xset"; then + pkg_cv_PKG_GLEW_CFLAGS=$ac_cv_env_PKG_GLEW_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"glew\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "glew" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GLEW_CFLAGS=`$PKG_CONFIG --cflags "glew" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GLEW_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_GLEW_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GLEW_LIBS" >&5 +$as_echo_n "checking for PKG_GLEW_LIBS... " >&6; } +if ${pkg_cv_PKG_GLEW_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GLEW_LIBS_set" = "xset"; then + pkg_cv_PKG_GLEW_LIBS=$ac_cv_env_PKG_GLEW_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"glew\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "glew" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GLEW_LIBS=`$PKG_CONFIG --libs "glew" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GLEW_LIBS" >&5 +$as_echo "$pkg_cv_PKG_GLEW_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_GLEW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glew"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_GLEW_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_GLEW_CFLAGS=$pkg_cv_PKG_GLEW_CFLAGS + PKG_GLEW_LIBS=$pkg_cv_PKG_GLEW_LIBS + ac_cv_lib_GLEW_glewInit=yes +fi +if test "x${PKG_GLEW_CFLAGS}" != "x"; then + + for element in "${PKG_GLEW_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_GLEW_LIBS}" != "x"; then + PKG_LIBS="${PKG_GLEW_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_GLEW_glewInit" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glew-config" >&5 +$as_echo_n "checking for glew-config... " >&6; } + gem_check_lib_pkgconfig_GLEW="" + if test "xglew" != "x"; then + gem_check_lib_pkgconfig_GLEW="glew"-config + if which -- "$gem_check_lib_pkgconfig_GLEW" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_GLEW=`which "glew"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_GLEW="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_GLEW" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_GLEW_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_GLEW --cflags >/dev/null 2>&1; then + PKG_GLEW_CFLAGS=$(${gem_check_lib_pkgconfig_GLEW} --cflags) + PKG_CFLAGS="$PKG_GLEW_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_GLEW_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_GLEW --plugin-libs >/dev/null 2>&1; then + PKG_GLEW_LIBS=$(${gem_check_lib_pkgconfig_GLEW} --plugin-libs) + else + if $gem_check_lib_pkgconfig_GLEW --libs >/dev/null 2>&1; then + PKG_GLEW_LIBS=$(${gem_check_lib_pkgconfig_GLEW} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_GLEW_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glewInit in -lGLEW" >&5 +$as_echo_n "checking for glewInit in -lGLEW... " >&6; } +if ${ac_cv_lib_GLEW_glewInit+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lGLEW $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char glewInit (); +int +main () +{ +return glewInit (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_GLEW_glewInit=yes +else + ac_cv_lib_GLEW_glewInit=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLEW_glewInit" >&5 +$as_echo "$ac_cv_lib_GLEW_glewInit" >&6; } +if test "x$ac_cv_lib_GLEW_glewInit" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGLEW 1 +_ACEOF + + LIBS="-lGLEW $LIBS" + +fi + + PKG_GLEW_LIBS="-lGLEW" + else + PKG_LIBS="${PKG_GLEW_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_GLEW_glewInit" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGLEW 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGLEW 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GLEWINIT 1 +_ACEOF + + GEM_LIB_GLEW_CFLAGS=${PKG_GLEW_CFLAGS} + GEM_LIB_GLEW_LIBS=${PKG_GLEW_LIBS} + have_glew="yes" + with_glew="no" + + +else + + have_glew="no" + + +fi + +fi + if test "x${have_glew}" = "xyes"; then + HAVE_LIB_GLEW_TRUE= + HAVE_LIB_GLEW_FALSE='#' +else + HAVE_LIB_GLEW_TRUE='#' + HAVE_LIB_GLEW_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +if test "x${have_glew}" != "xyes"; then + GEM_CPPFLAGS+=" -DGLEW_BUILD" +fi + + + + + + + + +@%:@ Check whether --with-sdl was given. +if test "${with_sdl+set}" = set; then : + withval=$with_sdl; +fi + + +@%:@ Check whether --with-sdl-includes was given. +if test "${with_sdl_includes+set}" = set; then : + withval=$with_sdl_includes; +fi + + +@%:@ Check whether --with-sdl-libs was given. +if test "${with_sdl_libs+set}" = set; then : + withval=$with_sdl_libs; +fi + + + if test "x$with_sdl" = "x"; then with_sdl="yes"; fi + + if test "x$with_ALL" = "xyes" && test "x$with_sdl" = "x"; then with_sdl="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_sdl" = "x"; then with_sdl="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_sdl = "xno"; then + have_sdl="no (forced)" +else + if test -d "$with_sdl_includes"; then + CFLAGS="-I$with_sdl_includes $CFLAGS" + CPPFLAGS="-I$with_sdl_includes $CPPFLAGS" + CXXFLAGS="-I$with_sdl_includes $CXXFLAGS" + fi + if test -d "$with_sdl_libs"; then + LIBS="-L$with_sdl_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_SDL_SDL_Quit) >/dev/null 2>&1 && unset ac_cv_lib_SDL_SDL_Quit + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_SDL_CFLAGS" >&5 +$as_echo_n "checking for PKG_SDL_CFLAGS... " >&6; } +if ${pkg_cv_PKG_SDL_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_SDL_CFLAGS_set" = "xset"; then + pkg_cv_PKG_SDL_CFLAGS=$ac_cv_env_PKG_SDL_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"sdl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "sdl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_SDL_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_SDL_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_SDL_LIBS" >&5 +$as_echo_n "checking for PKG_SDL_LIBS... " >&6; } +if ${pkg_cv_PKG_SDL_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_SDL_LIBS_set" = "xset"; then + pkg_cv_PKG_SDL_LIBS=$ac_cv_env_PKG_SDL_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"sdl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "sdl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_SDL_LIBS" >&5 +$as_echo "$pkg_cv_PKG_SDL_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_SDL_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_SDL_CFLAGS=$pkg_cv_PKG_SDL_CFLAGS + PKG_SDL_LIBS=$pkg_cv_PKG_SDL_LIBS + ac_cv_lib_SDL_SDL_Quit=yes +fi +if test "x${PKG_SDL_CFLAGS}" != "x"; then + + for element in "${PKG_SDL_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_SDL_LIBS}" != "x"; then + PKG_LIBS="${PKG_SDL_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_SDL_SDL_Quit" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl-config" >&5 +$as_echo_n "checking for sdl-config... " >&6; } + gem_check_lib_pkgconfig_SDL="" + if test "xsdl" != "x"; then + gem_check_lib_pkgconfig_SDL="sdl"-config + if which -- "$gem_check_lib_pkgconfig_SDL" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_SDL=`which "sdl"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_SDL="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_SDL" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_SDL_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_SDL --cflags >/dev/null 2>&1; then + PKG_SDL_CFLAGS=$(${gem_check_lib_pkgconfig_SDL} --cflags) + PKG_CFLAGS="$PKG_SDL_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_SDL_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_SDL --plugin-libs >/dev/null 2>&1; then + PKG_SDL_LIBS=$(${gem_check_lib_pkgconfig_SDL} --plugin-libs) + else + if $gem_check_lib_pkgconfig_SDL --libs >/dev/null 2>&1; then + PKG_SDL_LIBS=$(${gem_check_lib_pkgconfig_SDL} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_SDL_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Quit in -lSDL" >&5 +$as_echo_n "checking for SDL_Quit in -lSDL... " >&6; } +if ${ac_cv_lib_SDL_SDL_Quit+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lSDL $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SDL_Quit (); +int +main () +{ +return SDL_Quit (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_SDL_SDL_Quit=yes +else + ac_cv_lib_SDL_SDL_Quit=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Quit" >&5 +$as_echo "$ac_cv_lib_SDL_SDL_Quit" >&6; } +if test "x$ac_cv_lib_SDL_SDL_Quit" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBSDL 1 +_ACEOF + + LIBS="-lSDL $LIBS" + +fi + + PKG_SDL_LIBS="-lSDL" + else + PKG_LIBS="${PKG_SDL_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_SDL_SDL_Quit" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBSDL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBSDL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_SDL_QUIT 1 +_ACEOF + + GEM_LIB_SDL_CFLAGS=${PKG_SDL_CFLAGS} + GEM_LIB_SDL_LIBS=${PKG_SDL_LIBS} + have_sdl="yes" + with_sdl="no" + + +else + + have_sdl="no" + + +fi + +fi + if test "x${have_sdl}" = "xyes"; then + HAVE_LIB_SDL_TRUE= + HAVE_LIB_SDL_FALSE='#' +else + HAVE_LIB_SDL_TRUE='#' + HAVE_LIB_SDL_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +## http://wiki.fifengine.de/Segfault_in_cxa_allocate_exception#Workaround_.231 +### "-lstdc++" really has to be added before e.g. "-lGL" in order to avoid +### triggering the bug +### however, libtool is way to clever and eliminates duplicate LIBS entries. +### since "-lstdc++" is usually found in the postdeps, this would remove the +### entry found in LIBS; so we add it to the predeps_CXX (only) +stdcxx_LIBS=$LIBS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 +$as_echo_n "checking for main in -lstdc++... " >&6; } +if ${ac_cv_lib_stdcpp_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lstdc++ $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_stdcpp_main=yes +else + ac_cv_lib_stdcpp_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5 +$as_echo "$ac_cv_lib_stdcpp_main" >&6; } +if test "x$ac_cv_lib_stdcpp_main" = xyes; then : + predeps_CXX="$predeps_CXX -lstdc++" +fi + +LIBS=$stdcxx_LIBS + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"Cocoa\"-framework" >&5 +$as_echo_n "checking for \"Cocoa\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework Cocoa ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_COCOA 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GEM_FRAMEWORK_COCOA 1 +_ACEOF + + GEM_FRAMEWORK_COCOA="-framework Cocoa" + have_cocoa_framework="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + have_cocoa_framework="no" + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_COCOA_TRUE= + HAVE_FRAMEWORK_COCOA_FALSE='#' +else + HAVE_FRAMEWORK_COCOA_TRUE='#' + HAVE_FRAMEWORK_COCOA_FALSE= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"Carbon\"-framework" >&5 +$as_echo_n "checking for \"Carbon\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework Carbon ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_CARBON 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GEM_FRAMEWORK_CARBON 1 +_ACEOF + + GEM_FRAMEWORK_CARBON="-framework Carbon" + have_carbon_framework="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + have_carbon_framework="no" + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_CARBON_TRUE= + HAVE_FRAMEWORK_CARBON_FALSE='#' +else + HAVE_FRAMEWORK_CARBON_TRUE='#' + HAVE_FRAMEWORK_CARBON_FALSE= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"QuickTime\"-framework" >&5 +$as_echo_n "checking for \"QuickTime\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework QuickTime ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_QUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GEM_FRAMEWORK_QUICKTIME 1 +_ACEOF + + GEM_FRAMEWORK_QUICKTIME="-framework QuickTime" + have_quicktime_framework="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + have_quicktime_framework="no" + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_QUICKTIME_TRUE= + HAVE_FRAMEWORK_QUICKTIME_FALSE='#' +else + HAVE_FRAMEWORK_QUICKTIME_TRUE='#' + HAVE_FRAMEWORK_QUICKTIME_FALSE= +fi + + + + + if test "x${have_carbon_framework}" = "xyes" && test "x${have_quicktime_framework}" = "xyes"; then + VIDEODARWIN_TRUE= + VIDEODARWIN_FALSE='#' +else + VIDEODARWIN_TRUE='#' + VIDEODARWIN_FALSE= +fi + + +#fallback to imagemagick if people are too lazy to type ImageMagick +if test "x$with_ImageMagick" = "x"; then + with_ImageMagick="$with_imagemagick" +fi +if test "x$with_MagickCore" = "x"; then + with_MagickCore="$with_ImageMagick" +fi + + + + + + + + +@%:@ Check whether --with-ImageMagick was given. +if test "${with_ImageMagick+set}" = set; then : + withval=$with_ImageMagick; +fi + + +@%:@ Check whether --with-ImageMagick-includes was given. +if test "${with_ImageMagick_includes+set}" = set; then : + withval=$with_ImageMagick_includes; +fi + + +@%:@ Check whether --with-ImageMagick-libs was given. +if test "${with_ImageMagick_libs+set}" = set; then : + withval=$with_ImageMagick_libs; +fi + + + if test "x$with_ImageMagick" = "x"; then with_ImageMagick=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_ImageMagick" = "x"; then with_ImageMagick="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_ImageMagick" = "x"; then with_ImageMagick="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_ImageMagick = "xno"; then + have_ImageMagick="no (forced)" +else + if test -d "$with_ImageMagick_includes"; then + CFLAGS="-I$with_ImageMagick_includes $CFLAGS" + CPPFLAGS="-I$with_ImageMagick_includes $CPPFLAGS" + CXXFLAGS="-I$with_ImageMagick_includes $CXXFLAGS" + fi + if test -d "$with_ImageMagick_libs"; then + LIBS="-L$with_ImageMagick_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_Magickpp_main) >/dev/null 2>&1 && unset ac_cv_lib_Magickpp_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_IMAGEMAGICK___CFLAGS" >&5 +$as_echo_n "checking for PKG_IMAGEMAGICK___CFLAGS... " >&6; } +if ${pkg_cv_PKG_IMAGEMAGICK___CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_IMAGEMAGICK___CFLAGS_set" = "xset"; then + pkg_cv_PKG_IMAGEMAGICK___CFLAGS=$ac_cv_env_PKG_IMAGEMAGICK___CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ImageMagick++\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ImageMagick++" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_IMAGEMAGICK___CFLAGS=`$PKG_CONFIG --cflags "ImageMagick++" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_IMAGEMAGICK___CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_IMAGEMAGICK___CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_IMAGEMAGICK___LIBS" >&5 +$as_echo_n "checking for PKG_IMAGEMAGICK___LIBS... " >&6; } +if ${pkg_cv_PKG_IMAGEMAGICK___LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_IMAGEMAGICK___LIBS_set" = "xset"; then + pkg_cv_PKG_IMAGEMAGICK___LIBS=$ac_cv_env_PKG_IMAGEMAGICK___LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ImageMagick++\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ImageMagick++" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_IMAGEMAGICK___LIBS=`$PKG_CONFIG --libs "ImageMagick++" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_IMAGEMAGICK___LIBS" >&5 +$as_echo "$pkg_cv_PKG_IMAGEMAGICK___LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_IMAGEMAGICK___PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ImageMagick++"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_IMAGEMAGICK___PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_IMAGEMAGICK___CFLAGS=$pkg_cv_PKG_IMAGEMAGICK___CFLAGS + PKG_IMAGEMAGICK___LIBS=$pkg_cv_PKG_IMAGEMAGICK___LIBS + ac_cv_lib_Magickpp_main=yes +fi +if test "x${PKG_IMAGEMAGICK___CFLAGS}" != "x"; then + + for element in "${PKG_IMAGEMAGICK___CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_IMAGEMAGICK___LIBS}" != "x"; then + PKG_LIBS="${PKG_IMAGEMAGICK___LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_Magickpp_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick++-config" >&5 +$as_echo_n "checking for ImageMagick++-config... " >&6; } + gem_check_lib_pkgconfig_IMAGEMAGICK__="" + if test "xImageMagick++" != "x"; then + gem_check_lib_pkgconfig_IMAGEMAGICK__="ImageMagick++"-config + if which -- "$gem_check_lib_pkgconfig_IMAGEMAGICK__" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_IMAGEMAGICK__=`which "ImageMagick++"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_IMAGEMAGICK__="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_IMAGEMAGICK__" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_IMAGEMAGICK___CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_IMAGEMAGICK__ --cflags >/dev/null 2>&1; then + PKG_IMAGEMAGICK___CFLAGS=$(${gem_check_lib_pkgconfig_IMAGEMAGICK__} --cflags) + PKG_CFLAGS="$PKG_IMAGEMAGICK___CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_IMAGEMAGICK___LIBS" = "x"; then + if $gem_check_lib_pkgconfig_IMAGEMAGICK__ --plugin-libs >/dev/null 2>&1; then + PKG_IMAGEMAGICK___LIBS=$(${gem_check_lib_pkgconfig_IMAGEMAGICK__} --plugin-libs) + else + if $gem_check_lib_pkgconfig_IMAGEMAGICK__ --libs >/dev/null 2>&1; then + PKG_IMAGEMAGICK___LIBS=$(${gem_check_lib_pkgconfig_IMAGEMAGICK__} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_IMAGEMAGICK___LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lMagick++" >&5 +$as_echo_n "checking for main in -lMagick++... " >&6; } +if ${ac_cv_lib_Magickpp_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lMagick++ $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_Magickpp_main=yes +else + ac_cv_lib_Magickpp_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Magickpp_main" >&5 +$as_echo "$ac_cv_lib_Magickpp_main" >&6; } +if test "x$ac_cv_lib_Magickpp_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMAGICK__ 1 +_ACEOF + + LIBS="-lMagick++ $LIBS" + +fi + + PKG_IMAGEMAGICK___LIBS="-lMagick++" + else + PKG_LIBS="${PKG_IMAGEMAGICK___LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_Magickpp_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBIMAGEMAGICK__ 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMAGICK__ 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_IMAGEMAGICK___CFLAGS=${PKG_IMAGEMAGICK___CFLAGS} + GEM_LIB_IMAGEMAGICK___LIBS=${PKG_IMAGEMAGICK___LIBS} + have_ImageMagick="yes" + with_ImageMagick="no" + +$as_echo "@%:@define HAVE_LIBMAGICKPLUSPLUS 1" >>confdefs.h + + +else + + have_ImageMagick="no" + + +fi + +fi + if test "x${have_ImageMagick}" = "xyes"; then + HAVE_LIB_IMAGEMAGICK___TRUE= + HAVE_LIB_IMAGEMAGICK___FALSE='#' +else + HAVE_LIB_IMAGEMAGICK___TRUE='#' + HAVE_LIB_IMAGEMAGICK___FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + + +@%:@ Check whether --with-MagickCore was given. +if test "${with_MagickCore+set}" = set; then : + withval=$with_MagickCore; +fi + + +@%:@ Check whether --with-MagickCore-includes was given. +if test "${with_MagickCore_includes+set}" = set; then : + withval=$with_MagickCore_includes; +fi + + +@%:@ Check whether --with-MagickCore-libs was given. +if test "${with_MagickCore_libs+set}" = set; then : + withval=$with_MagickCore_libs; +fi + + + if test "x$with_MagickCore" = "x"; then with_MagickCore=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_MagickCore" = "x"; then with_MagickCore="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_MagickCore" = "x"; then with_MagickCore="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_MagickCore = "xno"; then + have_MagickCore="no (forced)" +else + if test -d "$with_MagickCore_includes"; then + CFLAGS="-I$with_MagickCore_includes $CFLAGS" + CPPFLAGS="-I$with_MagickCore_includes $CPPFLAGS" + CXXFLAGS="-I$with_MagickCore_includes $CXXFLAGS" + fi + if test -d "$with_MagickCore_libs"; then + LIBS="-L$with_MagickCore_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_Magick_main) >/dev/null 2>&1 && unset ac_cv_lib_Magick_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MAGICKCORE_CFLAGS" >&5 +$as_echo_n "checking for PKG_MAGICKCORE_CFLAGS... " >&6; } +if ${pkg_cv_PKG_MAGICKCORE_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MAGICKCORE_CFLAGS_set" = "xset"; then + pkg_cv_PKG_MAGICKCORE_CFLAGS=$ac_cv_env_PKG_MAGICKCORE_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"MagickCore\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "MagickCore" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MAGICKCORE_CFLAGS=`$PKG_CONFIG --cflags "MagickCore" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MAGICKCORE_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_MAGICKCORE_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MAGICKCORE_LIBS" >&5 +$as_echo_n "checking for PKG_MAGICKCORE_LIBS... " >&6; } +if ${pkg_cv_PKG_MAGICKCORE_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MAGICKCORE_LIBS_set" = "xset"; then + pkg_cv_PKG_MAGICKCORE_LIBS=$ac_cv_env_PKG_MAGICKCORE_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"MagickCore\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "MagickCore" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MAGICKCORE_LIBS=`$PKG_CONFIG --libs "MagickCore" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MAGICKCORE_LIBS" >&5 +$as_echo "$pkg_cv_PKG_MAGICKCORE_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_MAGICKCORE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "MagickCore"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_MAGICKCORE_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_MAGICKCORE_CFLAGS=$pkg_cv_PKG_MAGICKCORE_CFLAGS + PKG_MAGICKCORE_LIBS=$pkg_cv_PKG_MAGICKCORE_LIBS + ac_cv_lib_Magick_main=yes +fi +if test "x${PKG_MAGICKCORE_CFLAGS}" != "x"; then + + for element in "${PKG_MAGICKCORE_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_MAGICKCORE_LIBS}" != "x"; then + PKG_LIBS="${PKG_MAGICKCORE_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_Magick_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MagickCore-config" >&5 +$as_echo_n "checking for MagickCore-config... " >&6; } + gem_check_lib_pkgconfig_MAGICKCORE="" + if test "xMagickCore" != "x"; then + gem_check_lib_pkgconfig_MAGICKCORE="MagickCore"-config + if which -- "$gem_check_lib_pkgconfig_MAGICKCORE" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_MAGICKCORE=`which "MagickCore"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_MAGICKCORE="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_MAGICKCORE" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_MAGICKCORE_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_MAGICKCORE --cflags >/dev/null 2>&1; then + PKG_MAGICKCORE_CFLAGS=$(${gem_check_lib_pkgconfig_MAGICKCORE} --cflags) + PKG_CFLAGS="$PKG_MAGICKCORE_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_MAGICKCORE_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_MAGICKCORE --plugin-libs >/dev/null 2>&1; then + PKG_MAGICKCORE_LIBS=$(${gem_check_lib_pkgconfig_MAGICKCORE} --plugin-libs) + else + if $gem_check_lib_pkgconfig_MAGICKCORE --libs >/dev/null 2>&1; then + PKG_MAGICKCORE_LIBS=$(${gem_check_lib_pkgconfig_MAGICKCORE} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_MAGICKCORE_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lMagick" >&5 +$as_echo_n "checking for main in -lMagick... " >&6; } +if ${ac_cv_lib_Magick_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lMagick $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_Magick_main=yes +else + ac_cv_lib_Magick_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Magick_main" >&5 +$as_echo "$ac_cv_lib_Magick_main" >&6; } +if test "x$ac_cv_lib_Magick_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMAGICK 1 +_ACEOF + + LIBS="-lMagick $LIBS" + +fi + + PKG_MAGICKCORE_LIBS="-lMagick" + else + PKG_LIBS="${PKG_MAGICKCORE_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_Magick_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMAGICKCORE 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMAGICK 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_MAGICKCORE_CFLAGS=${PKG_MAGICKCORE_CFLAGS} + GEM_LIB_MAGICKCORE_LIBS=${PKG_MAGICKCORE_LIBS} + have_MagickCore="yes" + with_MagickCore="no" + +$as_echo "@%:@define HAVE_LIBMAGICK 1" >>confdefs.h + + +else + + have_MagickCore="no" + + +fi + +fi + if test "x${have_MagickCore}" = "xyes"; then + HAVE_LIB_MAGICKCORE_TRUE= + HAVE_LIB_MAGICKCORE_FALSE='#' +else + HAVE_LIB_MAGICKCORE_TRUE='#' + HAVE_LIB_MAGICKCORE_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +#if test "x${have_ImageMagick}" = "xyes" +#then +# with_tiff=no +# with_jpeg=no +#fi + + + + + + + +@%:@ Check whether --with-tiff was given. +if test "${with_tiff+set}" = set; then : + withval=$with_tiff; +fi + + +@%:@ Check whether --with-tiff-includes was given. +if test "${with_tiff_includes+set}" = set; then : + withval=$with_tiff_includes; +fi + + +@%:@ Check whether --with-tiff-libs was given. +if test "${with_tiff_libs+set}" = set; then : + withval=$with_tiff_libs; +fi + + + if test "x$with_tiff" = "x"; then with_tiff=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_tiff" = "x"; then with_tiff="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_tiff" = "x"; then with_tiff="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_tiff = "xno"; then + have_tiff="no (forced)" +else + if test -d "$with_tiff_includes"; then + CFLAGS="-I$with_tiff_includes $CFLAGS" + CPPFLAGS="-I$with_tiff_includes $CPPFLAGS" + CXXFLAGS="-I$with_tiff_includes $CXXFLAGS" + fi + if test -d "$with_tiff_libs"; then + LIBS="-L$with_tiff_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_tiff_TIFFOpen) >/dev/null 2>&1 && unset ac_cv_lib_tiff_TIFFOpen + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_TIFF_CFLAGS" >&5 +$as_echo_n "checking for PKG_TIFF_CFLAGS... " >&6; } +if ${pkg_cv_PKG_TIFF_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_TIFF_CFLAGS_set" = "xset"; then + pkg_cv_PKG_TIFF_CFLAGS=$ac_cv_env_PKG_TIFF_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"tiff\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "tiff" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_TIFF_CFLAGS=`$PKG_CONFIG --cflags "tiff" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_TIFF_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_TIFF_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_TIFF_LIBS" >&5 +$as_echo_n "checking for PKG_TIFF_LIBS... " >&6; } +if ${pkg_cv_PKG_TIFF_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_TIFF_LIBS_set" = "xset"; then + pkg_cv_PKG_TIFF_LIBS=$ac_cv_env_PKG_TIFF_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"tiff\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "tiff" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_TIFF_LIBS=`$PKG_CONFIG --libs "tiff" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_TIFF_LIBS" >&5 +$as_echo "$pkg_cv_PKG_TIFF_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_TIFF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tiff"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_TIFF_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_TIFF_CFLAGS=$pkg_cv_PKG_TIFF_CFLAGS + PKG_TIFF_LIBS=$pkg_cv_PKG_TIFF_LIBS + ac_cv_lib_tiff_TIFFOpen=yes +fi +if test "x${PKG_TIFF_CFLAGS}" != "x"; then + + for element in "${PKG_TIFF_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_TIFF_LIBS}" != "x"; then + PKG_LIBS="${PKG_TIFF_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_tiff_TIFFOpen" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tiff-config" >&5 +$as_echo_n "checking for tiff-config... " >&6; } + gem_check_lib_pkgconfig_TIFF="" + if test "xtiff" != "x"; then + gem_check_lib_pkgconfig_TIFF="tiff"-config + if which -- "$gem_check_lib_pkgconfig_TIFF" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_TIFF=`which "tiff"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_TIFF="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_TIFF" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_TIFF_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_TIFF --cflags >/dev/null 2>&1; then + PKG_TIFF_CFLAGS=$(${gem_check_lib_pkgconfig_TIFF} --cflags) + PKG_CFLAGS="$PKG_TIFF_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_TIFF_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_TIFF --plugin-libs >/dev/null 2>&1; then + PKG_TIFF_LIBS=$(${gem_check_lib_pkgconfig_TIFF} --plugin-libs) + else + if $gem_check_lib_pkgconfig_TIFF --libs >/dev/null 2>&1; then + PKG_TIFF_LIBS=$(${gem_check_lib_pkgconfig_TIFF} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_TIFF_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 +$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } +if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltiff $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char TIFFOpen (); +int +main () +{ +return TIFFOpen (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_tiff_TIFFOpen=yes +else + ac_cv_lib_tiff_TIFFOpen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 +$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } +if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBTIFF 1 +_ACEOF + + LIBS="-ltiff $LIBS" + +fi + + PKG_TIFF_LIBS="-ltiff" + else + PKG_LIBS="${PKG_TIFF_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_tiff_TIFFOpen" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBTIFF 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBTIFF 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_TIFFOPEN 1 +_ACEOF + + GEM_LIB_TIFF_CFLAGS=${PKG_TIFF_CFLAGS} + GEM_LIB_TIFF_LIBS=${PKG_TIFF_LIBS} + have_tiff="yes" + with_tiff="no" + + +else + + have_tiff="no" + + +fi + +fi + if test "x${have_tiff}" = "xyes"; then + HAVE_LIB_TIFF_TRUE= + HAVE_LIB_TIFF_FALSE='#' +else + HAVE_LIB_TIFF_TRUE='#' + HAVE_LIB_TIFF_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-jpeg was given. +if test "${with_jpeg+set}" = set; then : + withval=$with_jpeg; +fi + + +@%:@ Check whether --with-jpeg-includes was given. +if test "${with_jpeg_includes+set}" = set; then : + withval=$with_jpeg_includes; +fi + + +@%:@ Check whether --with-jpeg-libs was given. +if test "${with_jpeg_libs+set}" = set; then : + withval=$with_jpeg_libs; +fi + + + if test "x$with_jpeg" = "x"; then with_jpeg=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_jpeg" = "x"; then with_jpeg="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_jpeg" = "x"; then with_jpeg="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_jpeg = "xno"; then + have_jpeg="no (forced)" +else + if test -d "$with_jpeg_includes"; then + CFLAGS="-I$with_jpeg_includes $CFLAGS" + CPPFLAGS="-I$with_jpeg_includes $CPPFLAGS" + CXXFLAGS="-I$with_jpeg_includes $CXXFLAGS" + fi + if test -d "$with_jpeg_libs"; then + LIBS="-L$with_jpeg_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_jpeg_jpeg_read_header) >/dev/null 2>&1 && unset ac_cv_lib_jpeg_jpeg_read_header + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_JPEG_CFLAGS" >&5 +$as_echo_n "checking for PKG_JPEG_CFLAGS... " >&6; } +if ${pkg_cv_PKG_JPEG_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_JPEG_CFLAGS_set" = "xset"; then + pkg_cv_PKG_JPEG_CFLAGS=$ac_cv_env_PKG_JPEG_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"jpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "jpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_JPEG_CFLAGS=`$PKG_CONFIG --cflags "jpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_JPEG_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_JPEG_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_JPEG_LIBS" >&5 +$as_echo_n "checking for PKG_JPEG_LIBS... " >&6; } +if ${pkg_cv_PKG_JPEG_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_JPEG_LIBS_set" = "xset"; then + pkg_cv_PKG_JPEG_LIBS=$ac_cv_env_PKG_JPEG_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"jpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "jpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_JPEG_LIBS=`$PKG_CONFIG --libs "jpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_JPEG_LIBS" >&5 +$as_echo "$pkg_cv_PKG_JPEG_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_JPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jpeg"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_JPEG_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_JPEG_CFLAGS=$pkg_cv_PKG_JPEG_CFLAGS + PKG_JPEG_LIBS=$pkg_cv_PKG_JPEG_LIBS + ac_cv_lib_jpeg_jpeg_read_header=yes +fi +if test "x${PKG_JPEG_CFLAGS}" != "x"; then + + for element in "${PKG_JPEG_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_JPEG_LIBS}" != "x"; then + PKG_LIBS="${PKG_JPEG_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_jpeg_jpeg_read_header" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg-config" >&5 +$as_echo_n "checking for jpeg-config... " >&6; } + gem_check_lib_pkgconfig_JPEG="" + if test "xjpeg" != "x"; then + gem_check_lib_pkgconfig_JPEG="jpeg"-config + if which -- "$gem_check_lib_pkgconfig_JPEG" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_JPEG=`which "jpeg"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_JPEG="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_JPEG" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_JPEG_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_JPEG --cflags >/dev/null 2>&1; then + PKG_JPEG_CFLAGS=$(${gem_check_lib_pkgconfig_JPEG} --cflags) + PKG_CFLAGS="$PKG_JPEG_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_JPEG_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_JPEG --plugin-libs >/dev/null 2>&1; then + PKG_JPEG_LIBS=$(${gem_check_lib_pkgconfig_JPEG} --plugin-libs) + else + if $gem_check_lib_pkgconfig_JPEG --libs >/dev/null 2>&1; then + PKG_JPEG_LIBS=$(${gem_check_lib_pkgconfig_JPEG} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_JPEG_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 +$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } +if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ljpeg $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char jpeg_read_header (); +int +main () +{ +return jpeg_read_header (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_jpeg_jpeg_read_header=yes +else + ac_cv_lib_jpeg_jpeg_read_header=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 +$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } +if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBJPEG 1 +_ACEOF + + LIBS="-ljpeg $LIBS" + +fi + + PKG_JPEG_LIBS="-ljpeg" + else + PKG_LIBS="${PKG_JPEG_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_jpeg_jpeg_read_header" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBJPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBJPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_JPEG_READ_HEADER 1 +_ACEOF + + GEM_LIB_JPEG_CFLAGS=${PKG_JPEG_CFLAGS} + GEM_LIB_JPEG_LIBS=${PKG_JPEG_LIBS} + have_jpeg="yes" + with_jpeg="no" + + +else + + have_jpeg="no" + + +fi + +fi + if test "x${have_jpeg}" = "xyes"; then + HAVE_LIB_JPEG_TRUE= + HAVE_LIB_JPEG_FALSE='#' +else + HAVE_LIB_JPEG_TRUE='#' + HAVE_LIB_JPEG_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + + + + + +@%:@ Check whether --with-ftgl was given. +if test "${with_ftgl+set}" = set; then : + withval=$with_ftgl; +fi + + +@%:@ Check whether --with-ftgl-includes was given. +if test "${with_ftgl_includes+set}" = set; then : + withval=$with_ftgl_includes; +fi + + +@%:@ Check whether --with-ftgl-libs was given. +if test "${with_ftgl_libs+set}" = set; then : + withval=$with_ftgl_libs; +fi + + + if test "x$with_ftgl" = "x"; then with_ftgl=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_ftgl" = "x"; then with_ftgl="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_ftgl" = "x"; then with_ftgl="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_ftgl = "xno"; then + have_ftgl="no (forced)" +else + if test -d "$with_ftgl_includes"; then + CFLAGS="-I$with_ftgl_includes $CFLAGS" + CPPFLAGS="-I$with_ftgl_includes $CPPFLAGS" + CXXFLAGS="-I$with_ftgl_includes $CXXFLAGS" + fi + if test -d "$with_ftgl_libs"; then + LIBS="-L$with_ftgl_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_ftgl_main) >/dev/null 2>&1 && unset ac_cv_lib_ftgl_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FTGL_CFLAGS" >&5 +$as_echo_n "checking for PKG_FTGL_CFLAGS... " >&6; } +if ${pkg_cv_PKG_FTGL_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FTGL_CFLAGS_set" = "xset"; then + pkg_cv_PKG_FTGL_CFLAGS=$ac_cv_env_PKG_FTGL_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ftgl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ftgl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FTGL_CFLAGS=`$PKG_CONFIG --cflags "ftgl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FTGL_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_FTGL_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FTGL_LIBS" >&5 +$as_echo_n "checking for PKG_FTGL_LIBS... " >&6; } +if ${pkg_cv_PKG_FTGL_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FTGL_LIBS_set" = "xset"; then + pkg_cv_PKG_FTGL_LIBS=$ac_cv_env_PKG_FTGL_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ftgl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ftgl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FTGL_LIBS=`$PKG_CONFIG --libs "ftgl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FTGL_LIBS" >&5 +$as_echo "$pkg_cv_PKG_FTGL_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_FTGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ftgl"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_FTGL_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_FTGL_CFLAGS=$pkg_cv_PKG_FTGL_CFLAGS + PKG_FTGL_LIBS=$pkg_cv_PKG_FTGL_LIBS + ac_cv_lib_ftgl_main=yes +fi +if test "x${PKG_FTGL_CFLAGS}" != "x"; then + + for element in "${PKG_FTGL_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_FTGL_LIBS}" != "x"; then + PKG_LIBS="${PKG_FTGL_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_ftgl_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftgl-config" >&5 +$as_echo_n "checking for ftgl-config... " >&6; } + gem_check_lib_pkgconfig_FTGL="" + if test "xftgl" != "x"; then + gem_check_lib_pkgconfig_FTGL="ftgl"-config + if which -- "$gem_check_lib_pkgconfig_FTGL" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_FTGL=`which "ftgl"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_FTGL="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_FTGL" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_FTGL_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_FTGL --cflags >/dev/null 2>&1; then + PKG_FTGL_CFLAGS=$(${gem_check_lib_pkgconfig_FTGL} --cflags) + PKG_CFLAGS="$PKG_FTGL_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_FTGL_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_FTGL --plugin-libs >/dev/null 2>&1; then + PKG_FTGL_LIBS=$(${gem_check_lib_pkgconfig_FTGL} --plugin-libs) + else + if $gem_check_lib_pkgconfig_FTGL --libs >/dev/null 2>&1; then + PKG_FTGL_LIBS=$(${gem_check_lib_pkgconfig_FTGL} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_FTGL_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lftgl" >&5 +$as_echo_n "checking for main in -lftgl... " >&6; } +if ${ac_cv_lib_ftgl_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lftgl -lfreetype $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ftgl_main=yes +else + ac_cv_lib_ftgl_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftgl_main" >&5 +$as_echo "$ac_cv_lib_ftgl_main" >&6; } +if test "x$ac_cv_lib_ftgl_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFTGL 1 +_ACEOF + + LIBS="-lftgl $LIBS" + +fi + + PKG_FTGL_LIBS="-lftgl" + else + PKG_LIBS="${PKG_FTGL_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_ftgl_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFTGL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFTGL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_FTGL_CFLAGS=${PKG_FTGL_CFLAGS} + GEM_LIB_FTGL_LIBS=${PKG_FTGL_LIBS} + have_ftgl="yes" + with_ftgl="no" + + +else + + have_ftgl="no" + + +fi + +fi + if test "x${have_ftgl}" = "xyes"; then + HAVE_LIB_FTGL_TRUE= + HAVE_LIB_FTGL_FALSE='#' +else + HAVE_LIB_FTGL_TRUE='#' + HAVE_LIB_FTGL_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +tmp_gem_check_ftgl_cflags="$CFLAGS" +tmp_gem_check_ftgl_cxxflags="$CXXFLAGS" + +CFLAGS="$CFLAGS $GEM_LIB_FTGL_CFLAGS" +CXXFLAGS="$CXXFLAGS $GEM_LIB_FTGL_CFLAGS" +for ac_header in FTGL/ftgl.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "FTGL/ftgl.h" "ac_cv_header_FTGL_ftgl_h" "$ac_includes_default" +if test "x$ac_cv_header_FTGL_ftgl_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_FTGL_FTGL_H 1 +_ACEOF + +fi + +done + + +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" + + + + + + + + +@%:@ Check whether --with-fribidi was given. +if test "${with_fribidi+set}" = set; then : + withval=$with_fribidi; +fi + + +@%:@ Check whether --with-fribidi-includes was given. +if test "${with_fribidi_includes+set}" = set; then : + withval=$with_fribidi_includes; +fi + + +@%:@ Check whether --with-fribidi-libs was given. +if test "${with_fribidi_libs+set}" = set; then : + withval=$with_fribidi_libs; +fi + + + if test "x$with_fribidi" = "x"; then with_fribidi=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_fribidi" = "x"; then with_fribidi="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_fribidi" = "x"; then with_fribidi="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_fribidi = "xno"; then + have_fribidi="no (forced)" +else + if test -d "$with_fribidi_includes"; then + CFLAGS="-I$with_fribidi_includes $CFLAGS" + CPPFLAGS="-I$with_fribidi_includes $CPPFLAGS" + CXXFLAGS="-I$with_fribidi_includes $CXXFLAGS" + fi + if test -d "$with_fribidi_libs"; then + LIBS="-L$with_fribidi_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_fribidi_fribidi_log2vis) >/dev/null 2>&1 && unset ac_cv_lib_fribidi_fribidi_log2vis + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FRIBIDI_CFLAGS" >&5 +$as_echo_n "checking for PKG_FRIBIDI_CFLAGS... " >&6; } +if ${pkg_cv_PKG_FRIBIDI_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FRIBIDI_CFLAGS_set" = "xset"; then + pkg_cv_PKG_FRIBIDI_CFLAGS=$ac_cv_env_PKG_FRIBIDI_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"fribidi\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "fribidi" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FRIBIDI_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_FRIBIDI_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FRIBIDI_LIBS" >&5 +$as_echo_n "checking for PKG_FRIBIDI_LIBS... " >&6; } +if ${pkg_cv_PKG_FRIBIDI_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FRIBIDI_LIBS_set" = "xset"; then + pkg_cv_PKG_FRIBIDI_LIBS=$ac_cv_env_PKG_FRIBIDI_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"fribidi\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "fribidi" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FRIBIDI_LIBS" >&5 +$as_echo "$pkg_cv_PKG_FRIBIDI_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fribidi"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_FRIBIDI_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_FRIBIDI_CFLAGS=$pkg_cv_PKG_FRIBIDI_CFLAGS + PKG_FRIBIDI_LIBS=$pkg_cv_PKG_FRIBIDI_LIBS + ac_cv_lib_fribidi_fribidi_log2vis=yes +fi +if test "x${PKG_FRIBIDI_CFLAGS}" != "x"; then + + for element in "${PKG_FRIBIDI_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_FRIBIDI_LIBS}" != "x"; then + PKG_LIBS="${PKG_FRIBIDI_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_fribidi_fribidi_log2vis" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fribidi-config" >&5 +$as_echo_n "checking for fribidi-config... " >&6; } + gem_check_lib_pkgconfig_FRIBIDI="" + if test "xfribidi" != "x"; then + gem_check_lib_pkgconfig_FRIBIDI="fribidi"-config + if which -- "$gem_check_lib_pkgconfig_FRIBIDI" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_FRIBIDI=`which "fribidi"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_FRIBIDI="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_FRIBIDI" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_FRIBIDI_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_FRIBIDI --cflags >/dev/null 2>&1; then + PKG_FRIBIDI_CFLAGS=$(${gem_check_lib_pkgconfig_FRIBIDI} --cflags) + PKG_CFLAGS="$PKG_FRIBIDI_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_FRIBIDI_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_FRIBIDI --plugin-libs >/dev/null 2>&1; then + PKG_FRIBIDI_LIBS=$(${gem_check_lib_pkgconfig_FRIBIDI} --plugin-libs) + else + if $gem_check_lib_pkgconfig_FRIBIDI --libs >/dev/null 2>&1; then + PKG_FRIBIDI_LIBS=$(${gem_check_lib_pkgconfig_FRIBIDI} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_FRIBIDI_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fribidi_log2vis in -lfribidi" >&5 +$as_echo_n "checking for fribidi_log2vis in -lfribidi... " >&6; } +if ${ac_cv_lib_fribidi_fribidi_log2vis+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lfribidi $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char fribidi_log2vis (); +int +main () +{ +return fribidi_log2vis (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_fribidi_fribidi_log2vis=yes +else + ac_cv_lib_fribidi_fribidi_log2vis=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fribidi_fribidi_log2vis" >&5 +$as_echo "$ac_cv_lib_fribidi_fribidi_log2vis" >&6; } +if test "x$ac_cv_lib_fribidi_fribidi_log2vis" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFRIBIDI 1 +_ACEOF + + LIBS="-lfribidi $LIBS" + +fi + + PKG_FRIBIDI_LIBS="-lfribidi" + else + PKG_LIBS="${PKG_FRIBIDI_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_fribidi_fribidi_log2vis" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFRIBIDI 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFRIBIDI 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_FRIBIDI_LOG2VIS 1 +_ACEOF + + GEM_LIB_FRIBIDI_CFLAGS=${PKG_FRIBIDI_CFLAGS} + GEM_LIB_FRIBIDI_LIBS=${PKG_FRIBIDI_LIBS} + have_fribidi="yes" + with_fribidi="no" + + +else + + have_fribidi="no" + + +fi + +fi + if test "x${have_fribidi}" = "xyes"; then + HAVE_LIB_FRIBIDI_TRUE= + HAVE_LIB_FRIBIDI_FALSE='#' +else + HAVE_LIB_FRIBIDI_TRUE='#' + HAVE_LIB_FRIBIDI_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +## film en/decoders + + + + + + + +@%:@ Check whether --with-avifile was given. +if test "${with_avifile+set}" = set; then : + withval=$with_avifile; +fi + + +@%:@ Check whether --with-avifile-includes was given. +if test "${with_avifile_includes+set}" = set; then : + withval=$with_avifile_includes; +fi + + +@%:@ Check whether --with-avifile-libs was given. +if test "${with_avifile_libs+set}" = set; then : + withval=$with_avifile_libs; +fi + + + if test "x$with_avifile" = "x"; then with_avifile=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_avifile" = "x"; then with_avifile="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_avifile" = "x"; then with_avifile="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_avifile = "xno"; then + have_avifile="no (forced)" +else + if test -d "$with_avifile_includes"; then + CFLAGS="-I$with_avifile_includes $CFLAGS" + CPPFLAGS="-I$with_avifile_includes $CPPFLAGS" + CXXFLAGS="-I$with_avifile_includes $CXXFLAGS" + fi + if test -d "$with_avifile_libs"; then + LIBS="-L$with_avifile_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_aviplay_CreateIAviReadFile) >/dev/null 2>&1 && unset ac_cv_lib_aviplay_CreateIAviReadFile + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_AVIFILE_CFLAGS" >&5 +$as_echo_n "checking for PKG_AVIFILE_CFLAGS... " >&6; } +if ${pkg_cv_PKG_AVIFILE_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_AVIFILE_CFLAGS_set" = "xset"; then + pkg_cv_PKG_AVIFILE_CFLAGS=$ac_cv_env_PKG_AVIFILE_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"avifile\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "avifile" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_AVIFILE_CFLAGS=`$PKG_CONFIG --cflags "avifile" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_AVIFILE_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_AVIFILE_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_AVIFILE_LIBS" >&5 +$as_echo_n "checking for PKG_AVIFILE_LIBS... " >&6; } +if ${pkg_cv_PKG_AVIFILE_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_AVIFILE_LIBS_set" = "xset"; then + pkg_cv_PKG_AVIFILE_LIBS=$ac_cv_env_PKG_AVIFILE_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"avifile\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "avifile" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_AVIFILE_LIBS=`$PKG_CONFIG --libs "avifile" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_AVIFILE_LIBS" >&5 +$as_echo "$pkg_cv_PKG_AVIFILE_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_AVIFILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "avifile"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_AVIFILE_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_AVIFILE_CFLAGS=$pkg_cv_PKG_AVIFILE_CFLAGS + PKG_AVIFILE_LIBS=$pkg_cv_PKG_AVIFILE_LIBS + ac_cv_lib_aviplay_CreateIAviReadFile=yes +fi +if test "x${PKG_AVIFILE_CFLAGS}" != "x"; then + + for element in "${PKG_AVIFILE_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_AVIFILE_LIBS}" != "x"; then + PKG_LIBS="${PKG_AVIFILE_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_aviplay_CreateIAviReadFile" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avifile-config" >&5 +$as_echo_n "checking for avifile-config... " >&6; } + gem_check_lib_pkgconfig_AVIFILE="" + if test "xavifile" != "x"; then + gem_check_lib_pkgconfig_AVIFILE="avifile"-config + if which -- "$gem_check_lib_pkgconfig_AVIFILE" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_AVIFILE=`which "avifile"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_AVIFILE="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_AVIFILE" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_AVIFILE_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_AVIFILE --cflags >/dev/null 2>&1; then + PKG_AVIFILE_CFLAGS=$(${gem_check_lib_pkgconfig_AVIFILE} --cflags) + PKG_CFLAGS="$PKG_AVIFILE_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_AVIFILE_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_AVIFILE --plugin-libs >/dev/null 2>&1; then + PKG_AVIFILE_LIBS=$(${gem_check_lib_pkgconfig_AVIFILE} --plugin-libs) + else + if $gem_check_lib_pkgconfig_AVIFILE --libs >/dev/null 2>&1; then + PKG_AVIFILE_LIBS=$(${gem_check_lib_pkgconfig_AVIFILE} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_AVIFILE_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateIAviReadFile in -laviplay" >&5 +$as_echo_n "checking for CreateIAviReadFile in -laviplay... " >&6; } +if ${ac_cv_lib_aviplay_CreateIAviReadFile+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-laviplay $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char CreateIAviReadFile (); +int +main () +{ +return CreateIAviReadFile (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_aviplay_CreateIAviReadFile=yes +else + ac_cv_lib_aviplay_CreateIAviReadFile=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aviplay_CreateIAviReadFile" >&5 +$as_echo "$ac_cv_lib_aviplay_CreateIAviReadFile" >&6; } +if test "x$ac_cv_lib_aviplay_CreateIAviReadFile" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBAVIPLAY 1 +_ACEOF + + LIBS="-laviplay $LIBS" + +fi + + PKG_AVIFILE_LIBS="-laviplay" + else + PKG_LIBS="${PKG_AVIFILE_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_aviplay_CreateIAviReadFile" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBAVIFILE 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBAVIPLAY 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_CREATEIAVIREADFILE 1 +_ACEOF + + GEM_LIB_AVIFILE_CFLAGS=${PKG_AVIFILE_CFLAGS} + GEM_LIB_AVIFILE_LIBS=${PKG_AVIFILE_LIBS} + have_avifile="yes" + with_avifile="no" + + +else + + have_avifile="no" + + +fi + +fi + if test "x${have_avifile}" = "xyes"; then + HAVE_LIB_AVIFILE_TRUE= + HAVE_LIB_AVIFILE_FALSE='#' +else + HAVE_LIB_AVIFILE_TRUE='#' + HAVE_LIB_AVIFILE_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-gmerlin_avdec was given. +if test "${with_gmerlin_avdec+set}" = set; then : + withval=$with_gmerlin_avdec; +fi + + +@%:@ Check whether --with-gmerlin_avdec-includes was given. +if test "${with_gmerlin_avdec_includes+set}" = set; then : + withval=$with_gmerlin_avdec_includes; +fi + + +@%:@ Check whether --with-gmerlin_avdec-libs was given. +if test "${with_gmerlin_avdec_libs+set}" = set; then : + withval=$with_gmerlin_avdec_libs; +fi + + + if test "x$with_gmerlin_avdec" = "x"; then with_gmerlin_avdec=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_gmerlin_avdec" = "x"; then with_gmerlin_avdec="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_gmerlin_avdec" = "x"; then with_gmerlin_avdec="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_gmerlin_avdec = "xno"; then + have_gmerlin_avdec="no (forced)" +else + if test -d "$with_gmerlin_avdec_includes"; then + CFLAGS="-I$with_gmerlin_avdec_includes $CFLAGS" + CPPFLAGS="-I$with_gmerlin_avdec_includes $CPPFLAGS" + CXXFLAGS="-I$with_gmerlin_avdec_includes $CXXFLAGS" + fi + if test -d "$with_gmerlin_avdec_libs"; then + LIBS="-L$with_gmerlin_avdec_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_gmerlin_avdec_gavl_start) >/dev/null 2>&1 && unset ac_cv_lib_gmerlin_avdec_gavl_start + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GMERLIN_AVDEC_CFLAGS" >&5 +$as_echo_n "checking for PKG_GMERLIN_AVDEC_CFLAGS... " >&6; } +if ${pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GMERLIN_AVDEC_CFLAGS_set" = "xset"; then + pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS=$ac_cv_env_PKG_GMERLIN_AVDEC_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"gmerlin_avdec\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "gmerlin_avdec" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS=`$PKG_CONFIG --cflags "gmerlin_avdec" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GMERLIN_AVDEC_LIBS" >&5 +$as_echo_n "checking for PKG_GMERLIN_AVDEC_LIBS... " >&6; } +if ${pkg_cv_PKG_GMERLIN_AVDEC_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GMERLIN_AVDEC_LIBS_set" = "xset"; then + pkg_cv_PKG_GMERLIN_AVDEC_LIBS=$ac_cv_env_PKG_GMERLIN_AVDEC_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"gmerlin_avdec\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "gmerlin_avdec" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GMERLIN_AVDEC_LIBS=`$PKG_CONFIG --libs "gmerlin_avdec" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GMERLIN_AVDEC_LIBS" >&5 +$as_echo "$pkg_cv_PKG_GMERLIN_AVDEC_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_GMERLIN_AVDEC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gmerlin_avdec"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_GMERLIN_AVDEC_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_GMERLIN_AVDEC_CFLAGS=$pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS + PKG_GMERLIN_AVDEC_LIBS=$pkg_cv_PKG_GMERLIN_AVDEC_LIBS + ac_cv_lib_gmerlin_avdec_gavl_start=yes +fi +if test "x${PKG_GMERLIN_AVDEC_CFLAGS}" != "x"; then + + for element in "${PKG_GMERLIN_AVDEC_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_GMERLIN_AVDEC_LIBS}" != "x"; then + PKG_LIBS="${PKG_GMERLIN_AVDEC_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_gmerlin_avdec_gavl_start" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmerlin_avdec-config" >&5 +$as_echo_n "checking for gmerlin_avdec-config... " >&6; } + gem_check_lib_pkgconfig_GMERLIN_AVDEC="" + if test "xgmerlin_avdec" != "x"; then + gem_check_lib_pkgconfig_GMERLIN_AVDEC="gmerlin_avdec"-config + if which -- "$gem_check_lib_pkgconfig_GMERLIN_AVDEC" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_GMERLIN_AVDEC=`which "gmerlin_avdec"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_GMERLIN_AVDEC="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_GMERLIN_AVDEC" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_GMERLIN_AVDEC_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_GMERLIN_AVDEC --cflags >/dev/null 2>&1; then + PKG_GMERLIN_AVDEC_CFLAGS=$(${gem_check_lib_pkgconfig_GMERLIN_AVDEC} --cflags) + PKG_CFLAGS="$PKG_GMERLIN_AVDEC_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_GMERLIN_AVDEC_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_GMERLIN_AVDEC --plugin-libs >/dev/null 2>&1; then + PKG_GMERLIN_AVDEC_LIBS=$(${gem_check_lib_pkgconfig_GMERLIN_AVDEC} --plugin-libs) + else + if $gem_check_lib_pkgconfig_GMERLIN_AVDEC --libs >/dev/null 2>&1; then + PKG_GMERLIN_AVDEC_LIBS=$(${gem_check_lib_pkgconfig_GMERLIN_AVDEC} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_GMERLIN_AVDEC_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gavl_start in -lgmerlin_avdec" >&5 +$as_echo_n "checking for gavl_start in -lgmerlin_avdec... " >&6; } +if ${ac_cv_lib_gmerlin_avdec_gavl_start+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgmerlin_avdec $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gavl_start (); +int +main () +{ +return gavl_start (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_gmerlin_avdec_gavl_start=yes +else + ac_cv_lib_gmerlin_avdec_gavl_start=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmerlin_avdec_gavl_start" >&5 +$as_echo "$ac_cv_lib_gmerlin_avdec_gavl_start" >&6; } +if test "x$ac_cv_lib_gmerlin_avdec_gavl_start" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGMERLIN_AVDEC 1 +_ACEOF + + LIBS="-lgmerlin_avdec $LIBS" + +fi + + PKG_GMERLIN_AVDEC_LIBS="-lgmerlin_avdec" + else + PKG_LIBS="${PKG_GMERLIN_AVDEC_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_gmerlin_avdec_gavl_start" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGMERLIN_AVDEC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGMERLIN_AVDEC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GAVL_START 1 +_ACEOF + + GEM_LIB_GMERLIN_AVDEC_CFLAGS=${PKG_GMERLIN_AVDEC_CFLAGS} + GEM_LIB_GMERLIN_AVDEC_LIBS=${PKG_GMERLIN_AVDEC_LIBS} + have_gmerlin_avdec="yes" + with_gmerlin_avdec="no" + + +else + + have_gmerlin_avdec="no" + + +fi + +fi + if test "x${have_gmerlin_avdec}" = "xyes"; then + HAVE_LIB_GMERLIN_AVDEC_TRUE= + HAVE_LIB_GMERLIN_AVDEC_FALSE='#' +else + HAVE_LIB_GMERLIN_AVDEC_TRUE='#' + HAVE_LIB_GMERLIN_AVDEC_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-mpeg was given. +if test "${with_mpeg+set}" = set; then : + withval=$with_mpeg; +fi + + +@%:@ Check whether --with-mpeg-includes was given. +if test "${with_mpeg_includes+set}" = set; then : + withval=$with_mpeg_includes; +fi + + +@%:@ Check whether --with-mpeg-libs was given. +if test "${with_mpeg_libs+set}" = set; then : + withval=$with_mpeg_libs; +fi + + + if test "x$with_mpeg" = "x"; then with_mpeg=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_mpeg" = "x"; then with_mpeg="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_mpeg" = "x"; then with_mpeg="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_mpeg = "xno"; then + have_mpeg="no (forced)" +else + if test -d "$with_mpeg_includes"; then + CFLAGS="-I$with_mpeg_includes $CFLAGS" + CPPFLAGS="-I$with_mpeg_includes $CPPFLAGS" + CXXFLAGS="-I$with_mpeg_includes $CXXFLAGS" + fi + if test -d "$with_mpeg_libs"; then + LIBS="-L$with_mpeg_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_mpeg_OpenMPEG) >/dev/null 2>&1 && unset ac_cv_lib_mpeg_OpenMPEG + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MPEG_CFLAGS" >&5 +$as_echo_n "checking for PKG_MPEG_CFLAGS... " >&6; } +if ${pkg_cv_PKG_MPEG_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MPEG_CFLAGS_set" = "xset"; then + pkg_cv_PKG_MPEG_CFLAGS=$ac_cv_env_PKG_MPEG_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"mpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "mpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MPEG_CFLAGS=`$PKG_CONFIG --cflags "mpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MPEG_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_MPEG_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MPEG_LIBS" >&5 +$as_echo_n "checking for PKG_MPEG_LIBS... " >&6; } +if ${pkg_cv_PKG_MPEG_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MPEG_LIBS_set" = "xset"; then + pkg_cv_PKG_MPEG_LIBS=$ac_cv_env_PKG_MPEG_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"mpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "mpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MPEG_LIBS=`$PKG_CONFIG --libs "mpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MPEG_LIBS" >&5 +$as_echo "$pkg_cv_PKG_MPEG_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_MPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mpeg"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_MPEG_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_MPEG_CFLAGS=$pkg_cv_PKG_MPEG_CFLAGS + PKG_MPEG_LIBS=$pkg_cv_PKG_MPEG_LIBS + ac_cv_lib_mpeg_OpenMPEG=yes +fi +if test "x${PKG_MPEG_CFLAGS}" != "x"; then + + for element in "${PKG_MPEG_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_MPEG_LIBS}" != "x"; then + PKG_LIBS="${PKG_MPEG_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_mpeg_OpenMPEG" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpeg-config" >&5 +$as_echo_n "checking for mpeg-config... " >&6; } + gem_check_lib_pkgconfig_MPEG="" + if test "xmpeg" != "x"; then + gem_check_lib_pkgconfig_MPEG="mpeg"-config + if which -- "$gem_check_lib_pkgconfig_MPEG" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_MPEG=`which "mpeg"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_MPEG="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_MPEG" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_MPEG_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_MPEG --cflags >/dev/null 2>&1; then + PKG_MPEG_CFLAGS=$(${gem_check_lib_pkgconfig_MPEG} --cflags) + PKG_CFLAGS="$PKG_MPEG_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_MPEG_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_MPEG --plugin-libs >/dev/null 2>&1; then + PKG_MPEG_LIBS=$(${gem_check_lib_pkgconfig_MPEG} --plugin-libs) + else + if $gem_check_lib_pkgconfig_MPEG --libs >/dev/null 2>&1; then + PKG_MPEG_LIBS=$(${gem_check_lib_pkgconfig_MPEG} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_MPEG_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMPEG in -lmpeg" >&5 +$as_echo_n "checking for OpenMPEG in -lmpeg... " >&6; } +if ${ac_cv_lib_mpeg_OpenMPEG+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmpeg $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OpenMPEG (); +int +main () +{ +return OpenMPEG (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_mpeg_OpenMPEG=yes +else + ac_cv_lib_mpeg_OpenMPEG=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpeg_OpenMPEG" >&5 +$as_echo "$ac_cv_lib_mpeg_OpenMPEG" >&6; } +if test "x$ac_cv_lib_mpeg_OpenMPEG" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMPEG 1 +_ACEOF + + LIBS="-lmpeg $LIBS" + +fi + + PKG_MPEG_LIBS="-lmpeg" + else + PKG_LIBS="${PKG_MPEG_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_mpeg_OpenMPEG" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_OPENMPEG 1 +_ACEOF + + GEM_LIB_MPEG_CFLAGS=${PKG_MPEG_CFLAGS} + GEM_LIB_MPEG_LIBS=${PKG_MPEG_LIBS} + have_mpeg="yes" + with_mpeg="no" + + +else + + have_mpeg="no" + + +fi + +fi + if test "x${have_mpeg}" = "xyes"; then + HAVE_LIB_MPEG_TRUE= + HAVE_LIB_MPEG_FALSE='#' +else + HAVE_LIB_MPEG_TRUE='#' + HAVE_LIB_MPEG_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-libmpeg3 was given. +if test "${with_libmpeg3+set}" = set; then : + withval=$with_libmpeg3; +fi + + +@%:@ Check whether --with-libmpeg3-includes was given. +if test "${with_libmpeg3_includes+set}" = set; then : + withval=$with_libmpeg3_includes; +fi + + +@%:@ Check whether --with-libmpeg3-libs was given. +if test "${with_libmpeg3_libs+set}" = set; then : + withval=$with_libmpeg3_libs; +fi + + + if test "x$with_libmpeg3" = "x"; then with_libmpeg3=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libmpeg3" = "x"; then with_libmpeg3="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libmpeg3" = "x"; then with_libmpeg3="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libmpeg3 = "xno"; then + have_libmpeg3="no (forced)" +else + if test -d "$with_libmpeg3_includes"; then + CFLAGS="-I$with_libmpeg3_includes $CFLAGS" + CPPFLAGS="-I$with_libmpeg3_includes $CPPFLAGS" + CXXFLAGS="-I$with_libmpeg3_includes $CXXFLAGS" + fi + if test -d "$with_libmpeg3_libs"; then + LIBS="-L$with_libmpeg3_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_mpeg3_mpeg3_check_sig) >/dev/null 2>&1 && unset ac_cv_lib_mpeg3_mpeg3_check_sig + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBMPEG3_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBMPEG3_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBMPEG3_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBMPEG3_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBMPEG3_CFLAGS=$ac_cv_env_PKG_LIBMPEG3_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libmpeg3\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libmpeg3" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBMPEG3_CFLAGS=`$PKG_CONFIG --cflags "libmpeg3" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBMPEG3_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBMPEG3_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBMPEG3_LIBS" >&5 +$as_echo_n "checking for PKG_LIBMPEG3_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBMPEG3_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBMPEG3_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBMPEG3_LIBS=$ac_cv_env_PKG_LIBMPEG3_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libmpeg3\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libmpeg3" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBMPEG3_LIBS=`$PKG_CONFIG --libs "libmpeg3" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBMPEG3_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBMPEG3_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBMPEG3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmpeg3"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBMPEG3_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBMPEG3_CFLAGS=$pkg_cv_PKG_LIBMPEG3_CFLAGS + PKG_LIBMPEG3_LIBS=$pkg_cv_PKG_LIBMPEG3_LIBS + ac_cv_lib_mpeg3_mpeg3_check_sig=yes +fi +if test "x${PKG_LIBMPEG3_CFLAGS}" != "x"; then + + for element in "${PKG_LIBMPEG3_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBMPEG3_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBMPEG3_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_mpeg3_mpeg3_check_sig" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpeg3-config" >&5 +$as_echo_n "checking for libmpeg3-config... " >&6; } + gem_check_lib_pkgconfig_LIBMPEG3="" + if test "xlibmpeg3" != "x"; then + gem_check_lib_pkgconfig_LIBMPEG3="libmpeg3"-config + if which -- "$gem_check_lib_pkgconfig_LIBMPEG3" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBMPEG3=`which "libmpeg3"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBMPEG3="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBMPEG3" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBMPEG3_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBMPEG3 --cflags >/dev/null 2>&1; then + PKG_LIBMPEG3_CFLAGS=$(${gem_check_lib_pkgconfig_LIBMPEG3} --cflags) + PKG_CFLAGS="$PKG_LIBMPEG3_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBMPEG3_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBMPEG3 --plugin-libs >/dev/null 2>&1; then + PKG_LIBMPEG3_LIBS=$(${gem_check_lib_pkgconfig_LIBMPEG3} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBMPEG3 --libs >/dev/null 2>&1; then + PKG_LIBMPEG3_LIBS=$(${gem_check_lib_pkgconfig_LIBMPEG3} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBMPEG3_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpeg3_check_sig in -lmpeg3" >&5 +$as_echo_n "checking for mpeg3_check_sig in -lmpeg3... " >&6; } +if ${ac_cv_lib_mpeg3_mpeg3_check_sig+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmpeg3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mpeg3_check_sig (); +int +main () +{ +return mpeg3_check_sig (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_mpeg3_mpeg3_check_sig=yes +else + ac_cv_lib_mpeg3_mpeg3_check_sig=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpeg3_mpeg3_check_sig" >&5 +$as_echo "$ac_cv_lib_mpeg3_mpeg3_check_sig" >&6; } +if test "x$ac_cv_lib_mpeg3_mpeg3_check_sig" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMPEG3 1 +_ACEOF + + LIBS="-lmpeg3 $LIBS" + +fi + + PKG_LIBMPEG3_LIBS="-lmpeg3" + else + PKG_LIBS="${PKG_LIBMPEG3_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_mpeg3_mpeg3_check_sig" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBMPEG3 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMPEG3 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MPEG3_CHECK_SIG 1 +_ACEOF + + GEM_LIB_LIBMPEG3_CFLAGS=${PKG_LIBMPEG3_CFLAGS} + GEM_LIB_LIBMPEG3_LIBS=${PKG_LIBMPEG3_LIBS} + have_libmpeg3="yes" + with_libmpeg3="no" + + +else + + have_libmpeg3="no" + + +fi + +fi + if test "x${have_libmpeg3}" = "xyes"; then + HAVE_LIB_LIBMPEG3_TRUE= + HAVE_LIB_LIBMPEG3_FALSE='#' +else + HAVE_LIB_LIBMPEG3_TRUE='#' + HAVE_LIB_LIBMPEG3_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-libquicktime was given. +if test "${with_libquicktime+set}" = set; then : + withval=$with_libquicktime; +fi + + +@%:@ Check whether --with-libquicktime-includes was given. +if test "${with_libquicktime_includes+set}" = set; then : + withval=$with_libquicktime_includes; +fi + + +@%:@ Check whether --with-libquicktime-libs was given. +if test "${with_libquicktime_libs+set}" = set; then : + withval=$with_libquicktime_libs; +fi + + + if test "x$with_libquicktime" = "x"; then with_libquicktime=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libquicktime" = "x"; then with_libquicktime="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libquicktime" = "x"; then with_libquicktime="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libquicktime = "xno"; then + have_libquicktime="no (forced)" +else + if test -d "$with_libquicktime_includes"; then + CFLAGS="-I$with_libquicktime_includes $CFLAGS" + CPPFLAGS="-I$with_libquicktime_includes $CPPFLAGS" + CXXFLAGS="-I$with_libquicktime_includes $CXXFLAGS" + fi + if test -d "$with_libquicktime_libs"; then + LIBS="-L$with_libquicktime_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_quicktime_quicktime_init) >/dev/null 2>&1 && unset ac_cv_lib_quicktime_quicktime_init + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBQUICKTIME_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBQUICKTIME_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBQUICKTIME_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBQUICKTIME_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBQUICKTIME_CFLAGS=$ac_cv_env_PKG_LIBQUICKTIME_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libquicktime\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libquicktime" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBQUICKTIME_CFLAGS=`$PKG_CONFIG --cflags "libquicktime" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBQUICKTIME_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBQUICKTIME_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBQUICKTIME_LIBS" >&5 +$as_echo_n "checking for PKG_LIBQUICKTIME_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBQUICKTIME_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBQUICKTIME_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBQUICKTIME_LIBS=$ac_cv_env_PKG_LIBQUICKTIME_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libquicktime\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libquicktime" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBQUICKTIME_LIBS=`$PKG_CONFIG --libs "libquicktime" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBQUICKTIME_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBQUICKTIME_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBQUICKTIME_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libquicktime"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBQUICKTIME_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBQUICKTIME_CFLAGS=$pkg_cv_PKG_LIBQUICKTIME_CFLAGS + PKG_LIBQUICKTIME_LIBS=$pkg_cv_PKG_LIBQUICKTIME_LIBS + ac_cv_lib_quicktime_quicktime_init=yes +fi +if test "x${PKG_LIBQUICKTIME_CFLAGS}" != "x"; then + + for element in "${PKG_LIBQUICKTIME_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBQUICKTIME_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBQUICKTIME_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libquicktime-config" >&5 +$as_echo_n "checking for libquicktime-config... " >&6; } + gem_check_lib_pkgconfig_LIBQUICKTIME="" + if test "xlibquicktime" != "x"; then + gem_check_lib_pkgconfig_LIBQUICKTIME="libquicktime"-config + if which -- "$gem_check_lib_pkgconfig_LIBQUICKTIME" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBQUICKTIME=`which "libquicktime"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBQUICKTIME="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBQUICKTIME" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBQUICKTIME_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBQUICKTIME --cflags >/dev/null 2>&1; then + PKG_LIBQUICKTIME_CFLAGS=$(${gem_check_lib_pkgconfig_LIBQUICKTIME} --cflags) + PKG_CFLAGS="$PKG_LIBQUICKTIME_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBQUICKTIME_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBQUICKTIME --plugin-libs >/dev/null 2>&1; then + PKG_LIBQUICKTIME_LIBS=$(${gem_check_lib_pkgconfig_LIBQUICKTIME} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBQUICKTIME --libs >/dev/null 2>&1; then + PKG_LIBQUICKTIME_LIBS=$(${gem_check_lib_pkgconfig_LIBQUICKTIME} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBQUICKTIME_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quicktime_init in -lquicktime" >&5 +$as_echo_n "checking for quicktime_init in -lquicktime... " >&6; } +if ${ac_cv_lib_quicktime_quicktime_init+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lquicktime $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char quicktime_init (); +int +main () +{ +return quicktime_init (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_quicktime_quicktime_init=yes +else + ac_cv_lib_quicktime_quicktime_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quicktime_quicktime_init" >&5 +$as_echo "$ac_cv_lib_quicktime_quicktime_init" >&6; } +if test "x$ac_cv_lib_quicktime_quicktime_init" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBQUICKTIME 1 +_ACEOF + + LIBS="-lquicktime $LIBS" + +fi + + PKG_LIBQUICKTIME_LIBS="-lquicktime" + else + PKG_LIBS="${PKG_LIBQUICKTIME_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBQUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBQUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_QUICKTIME_INIT 1 +_ACEOF + + GEM_LIB_LIBQUICKTIME_CFLAGS=${PKG_LIBQUICKTIME_CFLAGS} + GEM_LIB_LIBQUICKTIME_LIBS=${PKG_LIBQUICKTIME_LIBS} + have_libquicktime="yes" + with_libquicktime="no" + + +else + + have_libquicktime="no" + + +fi + +fi + if test "x${have_libquicktime}" = "xyes"; then + HAVE_LIB_LIBQUICKTIME_TRUE= + HAVE_LIB_LIBQUICKTIME_FALSE='#' +else + HAVE_LIB_LIBQUICKTIME_TRUE='#' + HAVE_LIB_LIBQUICKTIME_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-lqt was given. +if test "${with_lqt+set}" = set; then : + withval=$with_lqt; +fi + + +@%:@ Check whether --with-lqt-includes was given. +if test "${with_lqt_includes+set}" = set; then : + withval=$with_lqt_includes; +fi + + +@%:@ Check whether --with-lqt-libs was given. +if test "${with_lqt_libs+set}" = set; then : + withval=$with_lqt_libs; +fi + + + if test "x$with_lqt" = "x"; then with_lqt=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_lqt" = "x"; then with_lqt="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_lqt" = "x"; then with_lqt="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_lqt = "xno"; then + have_lqt="no (forced)" +else + if test -d "$with_lqt_includes"; then + CFLAGS="-I$with_lqt_includes $CFLAGS" + CPPFLAGS="-I$with_lqt_includes $CPPFLAGS" + CXXFLAGS="-I$with_lqt_includes $CXXFLAGS" + fi + if test -d "$with_lqt_libs"; then + LIBS="-L$with_lqt_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_quicktime_quicktime_init) >/dev/null 2>&1 && unset ac_cv_lib_quicktime_quicktime_init + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LQT_CFLAGS" >&5 +$as_echo_n "checking for PKG_LQT_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LQT_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LQT_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LQT_CFLAGS=$ac_cv_env_PKG_LQT_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"lqt\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "lqt" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LQT_CFLAGS=`$PKG_CONFIG --cflags "lqt" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LQT_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LQT_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LQT_LIBS" >&5 +$as_echo_n "checking for PKG_LQT_LIBS... " >&6; } +if ${pkg_cv_PKG_LQT_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LQT_LIBS_set" = "xset"; then + pkg_cv_PKG_LQT_LIBS=$ac_cv_env_PKG_LQT_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"lqt\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "lqt" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LQT_LIBS=`$PKG_CONFIG --libs "lqt" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LQT_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LQT_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LQT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lqt"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LQT_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LQT_CFLAGS=$pkg_cv_PKG_LQT_CFLAGS + PKG_LQT_LIBS=$pkg_cv_PKG_LQT_LIBS + ac_cv_lib_quicktime_quicktime_init=yes +fi +if test "x${PKG_LQT_CFLAGS}" != "x"; then + + for element in "${PKG_LQT_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LQT_LIBS}" != "x"; then + PKG_LIBS="${PKG_LQT_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lqt-config" >&5 +$as_echo_n "checking for lqt-config... " >&6; } + gem_check_lib_pkgconfig_LQT="" + if test "xlqt" != "x"; then + gem_check_lib_pkgconfig_LQT="lqt"-config + if which -- "$gem_check_lib_pkgconfig_LQT" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LQT=`which "lqt"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LQT="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LQT" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LQT_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LQT --cflags >/dev/null 2>&1; then + PKG_LQT_CFLAGS=$(${gem_check_lib_pkgconfig_LQT} --cflags) + PKG_CFLAGS="$PKG_LQT_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LQT_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LQT --plugin-libs >/dev/null 2>&1; then + PKG_LQT_LIBS=$(${gem_check_lib_pkgconfig_LQT} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LQT --libs >/dev/null 2>&1; then + PKG_LQT_LIBS=$(${gem_check_lib_pkgconfig_LQT} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LQT_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quicktime_init in -lquicktime" >&5 +$as_echo_n "checking for quicktime_init in -lquicktime... " >&6; } +if ${ac_cv_lib_quicktime_quicktime_init+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lquicktime $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char quicktime_init (); +int +main () +{ +return quicktime_init (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_quicktime_quicktime_init=yes +else + ac_cv_lib_quicktime_quicktime_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quicktime_quicktime_init" >&5 +$as_echo "$ac_cv_lib_quicktime_quicktime_init" >&6; } +if test "x$ac_cv_lib_quicktime_quicktime_init" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBQUICKTIME 1 +_ACEOF + + LIBS="-lquicktime $LIBS" + +fi + + PKG_LQT_LIBS="-lquicktime" + else + PKG_LIBS="${PKG_LQT_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLQT 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBQUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_QUICKTIME_INIT 1 +_ACEOF + + GEM_LIB_LQT_CFLAGS=${PKG_LQT_CFLAGS} + GEM_LIB_LQT_LIBS=${PKG_LQT_LIBS} + have_lqt="yes" + with_lqt="no" + + +else + + have_lqt="no" + + +fi + +fi + if test "x${have_lqt}" = "xyes"; then + HAVE_LIB_LQT_TRUE= + HAVE_LIB_LQT_FALSE='#' +else + HAVE_LIB_LQT_TRUE='#' + HAVE_LIB_LQT_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +# special function in libquicktime +old_cflags=${CFLAGS} +old_ldflags=${LDFLAGS} +CFLAGS="${CFLAGS} $GEM_LIB_LIBQUICKTIME_CFLAGS $GEM_LIB_LQT_CFLAGS" +LDFLAGS="${LDFLAGS} $GEM_LIB_LIBQUICKTIME_LIBS $GEM_LIB_LQT_LIBS" +for ac_func in lqt_seek_video +do : + ac_fn_cxx_check_func "$LINENO" "lqt_seek_video" "ac_cv_func_lqt_seek_video" +if test "x$ac_cv_func_lqt_seek_video" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LQT_SEEK_VIDEO 1 +_ACEOF + +fi +done + +for ac_func in lqt_open_write +do : + ac_fn_cxx_check_func "$LINENO" "lqt_open_write" "ac_cv_func_lqt_open_write" +if test "x$ac_cv_func_lqt_open_write" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LQT_OPEN_WRITE 1 +_ACEOF + +fi +done + +CFLAGS=${old_cflags} +LDFLAGS=${old_ldflags} + +#video + + + + + + + +@%:@ Check whether --with-libdc1394_2 was given. +if test "${with_libdc1394_2+set}" = set; then : + withval=$with_libdc1394_2; +fi + + +@%:@ Check whether --with-libdc1394_2-includes was given. +if test "${with_libdc1394_2_includes+set}" = set; then : + withval=$with_libdc1394_2_includes; +fi + + +@%:@ Check whether --with-libdc1394_2-libs was given. +if test "${with_libdc1394_2_libs+set}" = set; then : + withval=$with_libdc1394_2_libs; +fi + + + if test "x$with_libdc1394_2" = "x"; then with_libdc1394_2=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libdc1394_2" = "x"; then with_libdc1394_2="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libdc1394_2" = "x"; then with_libdc1394_2="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libdc1394_2 = "xno"; then + have_libdc1394_2="no (forced)" +else + if test -d "$with_libdc1394_2_includes"; then + CFLAGS="-I$with_libdc1394_2_includes $CFLAGS" + CPPFLAGS="-I$with_libdc1394_2_includes $CPPFLAGS" + CXXFLAGS="-I$with_libdc1394_2_includes $CXXFLAGS" + fi + if test -d "$with_libdc1394_2_libs"; then + LIBS="-L$with_libdc1394_2_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_dc1394_main) >/dev/null 2>&1 && unset ac_cv_lib_dc1394_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDC1394_2_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBDC1394_2_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBDC1394_2_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDC1394_2_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBDC1394_2_CFLAGS=$ac_cv_env_PKG_LIBDC1394_2_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdc1394-2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdc1394-2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDC1394_2_CFLAGS=`$PKG_CONFIG --cflags "libdc1394-2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDC1394_2_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBDC1394_2_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDC1394_2_LIBS" >&5 +$as_echo_n "checking for PKG_LIBDC1394_2_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBDC1394_2_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDC1394_2_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBDC1394_2_LIBS=$ac_cv_env_PKG_LIBDC1394_2_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdc1394-2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdc1394-2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDC1394_2_LIBS=`$PKG_CONFIG --libs "libdc1394-2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDC1394_2_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBDC1394_2_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBDC1394_2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdc1394-2"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBDC1394_2_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBDC1394_2_CFLAGS=$pkg_cv_PKG_LIBDC1394_2_CFLAGS + PKG_LIBDC1394_2_LIBS=$pkg_cv_PKG_LIBDC1394_2_LIBS + ac_cv_lib_dc1394_main=yes +fi +if test "x${PKG_LIBDC1394_2_CFLAGS}" != "x"; then + + for element in "${PKG_LIBDC1394_2_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBDC1394_2_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBDC1394_2_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_dc1394_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdc1394-2-config" >&5 +$as_echo_n "checking for libdc1394-2-config... " >&6; } + gem_check_lib_pkgconfig_LIBDC1394_2="" + if test "xlibdc1394-2" != "x"; then + gem_check_lib_pkgconfig_LIBDC1394_2="libdc1394-2"-config + if which -- "$gem_check_lib_pkgconfig_LIBDC1394_2" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBDC1394_2=`which "libdc1394-2"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBDC1394_2="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBDC1394_2" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBDC1394_2_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDC1394_2 --cflags >/dev/null 2>&1; then + PKG_LIBDC1394_2_CFLAGS=$(${gem_check_lib_pkgconfig_LIBDC1394_2} --cflags) + PKG_CFLAGS="$PKG_LIBDC1394_2_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBDC1394_2_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDC1394_2 --plugin-libs >/dev/null 2>&1; then + PKG_LIBDC1394_2_LIBS=$(${gem_check_lib_pkgconfig_LIBDC1394_2} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBDC1394_2 --libs >/dev/null 2>&1; then + PKG_LIBDC1394_2_LIBS=$(${gem_check_lib_pkgconfig_LIBDC1394_2} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBDC1394_2_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldc1394" >&5 +$as_echo_n "checking for main in -ldc1394... " >&6; } +if ${ac_cv_lib_dc1394_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldc1394 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dc1394_main=yes +else + ac_cv_lib_dc1394_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dc1394_main" >&5 +$as_echo "$ac_cv_lib_dc1394_main" >&6; } +if test "x$ac_cv_lib_dc1394_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBDC1394 1 +_ACEOF + + LIBS="-ldc1394 $LIBS" + +fi + + PKG_LIBDC1394_2_LIBS="-ldc1394" + else + PKG_LIBS="${PKG_LIBDC1394_2_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_dc1394_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBDC1394_2 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBDC1394 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBDC1394_2_CFLAGS=${PKG_LIBDC1394_2_CFLAGS} + GEM_LIB_LIBDC1394_2_LIBS=${PKG_LIBDC1394_2_LIBS} + have_libdc1394_2="yes" + with_libdc1394_2="no" + + +else + + have_libdc1394_2="no" + + +fi + +fi + if test "x${have_libdc1394_2}" = "xyes"; then + HAVE_LIB_LIBDC1394_2_TRUE= + HAVE_LIB_LIBDC1394_2_FALSE='#' +else + HAVE_LIB_LIBDC1394_2_TRUE='#' + HAVE_LIB_LIBDC1394_2_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-libdv was given. +if test "${with_libdv+set}" = set; then : + withval=$with_libdv; +fi + + +@%:@ Check whether --with-libdv-includes was given. +if test "${with_libdv_includes+set}" = set; then : + withval=$with_libdv_includes; +fi + + +@%:@ Check whether --with-libdv-libs was given. +if test "${with_libdv_libs+set}" = set; then : + withval=$with_libdv_libs; +fi + + + if test "x$with_libdv" = "x"; then with_libdv=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libdv" = "x"; then with_libdv="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libdv" = "x"; then with_libdv="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libdv = "xno"; then + have_libdv="no (forced)" +else + if test -d "$with_libdv_includes"; then + CFLAGS="-I$with_libdv_includes $CFLAGS" + CPPFLAGS="-I$with_libdv_includes $CPPFLAGS" + CXXFLAGS="-I$with_libdv_includes $CXXFLAGS" + fi + if test -d "$with_libdv_libs"; then + LIBS="-L$with_libdv_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_dv_main) >/dev/null 2>&1 && unset ac_cv_lib_dv_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDV_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBDV_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBDV_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDV_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBDV_CFLAGS=$ac_cv_env_PKG_LIBDV_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdv\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdv" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDV_CFLAGS=`$PKG_CONFIG --cflags "libdv" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDV_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBDV_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDV_LIBS" >&5 +$as_echo_n "checking for PKG_LIBDV_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBDV_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDV_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBDV_LIBS=$ac_cv_env_PKG_LIBDV_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdv\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdv" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDV_LIBS=`$PKG_CONFIG --libs "libdv" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDV_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBDV_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBDV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdv"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBDV_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBDV_CFLAGS=$pkg_cv_PKG_LIBDV_CFLAGS + PKG_LIBDV_LIBS=$pkg_cv_PKG_LIBDV_LIBS + ac_cv_lib_dv_main=yes +fi +if test "x${PKG_LIBDV_CFLAGS}" != "x"; then + + for element in "${PKG_LIBDV_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBDV_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBDV_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_dv_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdv-config" >&5 +$as_echo_n "checking for libdv-config... " >&6; } + gem_check_lib_pkgconfig_LIBDV="" + if test "xlibdv" != "x"; then + gem_check_lib_pkgconfig_LIBDV="libdv"-config + if which -- "$gem_check_lib_pkgconfig_LIBDV" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBDV=`which "libdv"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBDV="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBDV" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBDV_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDV --cflags >/dev/null 2>&1; then + PKG_LIBDV_CFLAGS=$(${gem_check_lib_pkgconfig_LIBDV} --cflags) + PKG_CFLAGS="$PKG_LIBDV_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBDV_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDV --plugin-libs >/dev/null 2>&1; then + PKG_LIBDV_LIBS=$(${gem_check_lib_pkgconfig_LIBDV} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBDV --libs >/dev/null 2>&1; then + PKG_LIBDV_LIBS=$(${gem_check_lib_pkgconfig_LIBDV} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBDV_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldv" >&5 +$as_echo_n "checking for main in -ldv... " >&6; } +if ${ac_cv_lib_dv_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dv_main=yes +else + ac_cv_lib_dv_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dv_main" >&5 +$as_echo "$ac_cv_lib_dv_main" >&6; } +if test "x$ac_cv_lib_dv_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBDV 1 +_ACEOF + + LIBS="-ldv $LIBS" + +fi + + PKG_LIBDV_LIBS="-ldv" + else + PKG_LIBS="${PKG_LIBDV_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_dv_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBDV 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBDV 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBDV_CFLAGS=${PKG_LIBDV_CFLAGS} + GEM_LIB_LIBDV_LIBS=${PKG_LIBDV_LIBS} + have_libdv="yes" + with_libdv="no" + + +else + + have_libdv="no" + + +fi + +fi + if test "x${have_libdv}" = "xyes"; then + HAVE_LIB_LIBDV_TRUE= + HAVE_LIB_LIBDV_FALSE='#' +else + HAVE_LIB_LIBDV_TRUE='#' + HAVE_LIB_LIBDV_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-libraw1394 was given. +if test "${with_libraw1394+set}" = set; then : + withval=$with_libraw1394; +fi + + +@%:@ Check whether --with-libraw1394-includes was given. +if test "${with_libraw1394_includes+set}" = set; then : + withval=$with_libraw1394_includes; +fi + + +@%:@ Check whether --with-libraw1394-libs was given. +if test "${with_libraw1394_libs+set}" = set; then : + withval=$with_libraw1394_libs; +fi + + + if test "x$with_libraw1394" = "x"; then with_libraw1394=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libraw1394" = "x"; then with_libraw1394="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libraw1394" = "x"; then with_libraw1394="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libraw1394 = "xno"; then + have_libraw1394="no (forced)" +else + if test -d "$with_libraw1394_includes"; then + CFLAGS="-I$with_libraw1394_includes $CFLAGS" + CPPFLAGS="-I$with_libraw1394_includes $CPPFLAGS" + CXXFLAGS="-I$with_libraw1394_includes $CXXFLAGS" + fi + if test -d "$with_libraw1394_libs"; then + LIBS="-L$with_libraw1394_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_raw1394_main) >/dev/null 2>&1 && unset ac_cv_lib_raw1394_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBRAW1394_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBRAW1394_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBRAW1394_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBRAW1394_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBRAW1394_CFLAGS=$ac_cv_env_PKG_LIBRAW1394_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libraw1394\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libraw1394" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBRAW1394_CFLAGS=`$PKG_CONFIG --cflags "libraw1394" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBRAW1394_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBRAW1394_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBRAW1394_LIBS" >&5 +$as_echo_n "checking for PKG_LIBRAW1394_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBRAW1394_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBRAW1394_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBRAW1394_LIBS=$ac_cv_env_PKG_LIBRAW1394_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libraw1394\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libraw1394" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBRAW1394_LIBS=`$PKG_CONFIG --libs "libraw1394" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBRAW1394_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBRAW1394_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBRAW1394_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libraw1394"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBRAW1394_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBRAW1394_CFLAGS=$pkg_cv_PKG_LIBRAW1394_CFLAGS + PKG_LIBRAW1394_LIBS=$pkg_cv_PKG_LIBRAW1394_LIBS + ac_cv_lib_raw1394_main=yes +fi +if test "x${PKG_LIBRAW1394_CFLAGS}" != "x"; then + + for element in "${PKG_LIBRAW1394_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBRAW1394_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBRAW1394_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_raw1394_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraw1394-config" >&5 +$as_echo_n "checking for libraw1394-config... " >&6; } + gem_check_lib_pkgconfig_LIBRAW1394="" + if test "xlibraw1394" != "x"; then + gem_check_lib_pkgconfig_LIBRAW1394="libraw1394"-config + if which -- "$gem_check_lib_pkgconfig_LIBRAW1394" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBRAW1394=`which "libraw1394"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBRAW1394="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBRAW1394" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBRAW1394_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBRAW1394 --cflags >/dev/null 2>&1; then + PKG_LIBRAW1394_CFLAGS=$(${gem_check_lib_pkgconfig_LIBRAW1394} --cflags) + PKG_CFLAGS="$PKG_LIBRAW1394_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBRAW1394_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBRAW1394 --plugin-libs >/dev/null 2>&1; then + PKG_LIBRAW1394_LIBS=$(${gem_check_lib_pkgconfig_LIBRAW1394} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBRAW1394 --libs >/dev/null 2>&1; then + PKG_LIBRAW1394_LIBS=$(${gem_check_lib_pkgconfig_LIBRAW1394} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBRAW1394_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lraw1394" >&5 +$as_echo_n "checking for main in -lraw1394... " >&6; } +if ${ac_cv_lib_raw1394_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lraw1394 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_raw1394_main=yes +else + ac_cv_lib_raw1394_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raw1394_main" >&5 +$as_echo "$ac_cv_lib_raw1394_main" >&6; } +if test "x$ac_cv_lib_raw1394_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBRAW1394 1 +_ACEOF + + LIBS="-lraw1394 $LIBS" + +fi + + PKG_LIBRAW1394_LIBS="-lraw1394" + else + PKG_LIBS="${PKG_LIBRAW1394_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_raw1394_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBRAW1394 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBRAW1394 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBRAW1394_CFLAGS=${PKG_LIBRAW1394_CFLAGS} + GEM_LIB_LIBRAW1394_LIBS=${PKG_LIBRAW1394_LIBS} + have_libraw1394="yes" + with_libraw1394="no" + + +else + + have_libraw1394="no" + + +fi + +fi + if test "x${have_libraw1394}" = "xyes"; then + HAVE_LIB_LIBRAW1394_TRUE= + HAVE_LIB_LIBRAW1394_FALSE='#' +else + HAVE_LIB_LIBRAW1394_TRUE='#' + HAVE_LIB_LIBRAW1394_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-libiec61883 was given. +if test "${with_libiec61883+set}" = set; then : + withval=$with_libiec61883; +fi + + +@%:@ Check whether --with-libiec61883-includes was given. +if test "${with_libiec61883_includes+set}" = set; then : + withval=$with_libiec61883_includes; +fi + + +@%:@ Check whether --with-libiec61883-libs was given. +if test "${with_libiec61883_libs+set}" = set; then : + withval=$with_libiec61883_libs; +fi + + + if test "x$with_libiec61883" = "x"; then with_libiec61883=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libiec61883" = "x"; then with_libiec61883="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libiec61883" = "x"; then with_libiec61883="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libiec61883 = "xno"; then + have_libiec61883="no (forced)" +else + if test -d "$with_libiec61883_includes"; then + CFLAGS="-I$with_libiec61883_includes $CFLAGS" + CPPFLAGS="-I$with_libiec61883_includes $CPPFLAGS" + CXXFLAGS="-I$with_libiec61883_includes $CXXFLAGS" + fi + if test -d "$with_libiec61883_libs"; then + LIBS="-L$with_libiec61883_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_iec61883_main) >/dev/null 2>&1 && unset ac_cv_lib_iec61883_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBIEC61883_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBIEC61883_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBIEC61883_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBIEC61883_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBIEC61883_CFLAGS=$ac_cv_env_PKG_LIBIEC61883_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libiec61883\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libiec61883" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBIEC61883_CFLAGS=`$PKG_CONFIG --cflags "libiec61883" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBIEC61883_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBIEC61883_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBIEC61883_LIBS" >&5 +$as_echo_n "checking for PKG_LIBIEC61883_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBIEC61883_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBIEC61883_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBIEC61883_LIBS=$ac_cv_env_PKG_LIBIEC61883_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libiec61883\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libiec61883" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBIEC61883_LIBS=`$PKG_CONFIG --libs "libiec61883" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBIEC61883_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBIEC61883_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBIEC61883_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libiec61883"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBIEC61883_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBIEC61883_CFLAGS=$pkg_cv_PKG_LIBIEC61883_CFLAGS + PKG_LIBIEC61883_LIBS=$pkg_cv_PKG_LIBIEC61883_LIBS + ac_cv_lib_iec61883_main=yes +fi +if test "x${PKG_LIBIEC61883_CFLAGS}" != "x"; then + + for element in "${PKG_LIBIEC61883_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBIEC61883_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBIEC61883_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_iec61883_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiec61883-config" >&5 +$as_echo_n "checking for libiec61883-config... " >&6; } + gem_check_lib_pkgconfig_LIBIEC61883="" + if test "xlibiec61883" != "x"; then + gem_check_lib_pkgconfig_LIBIEC61883="libiec61883"-config + if which -- "$gem_check_lib_pkgconfig_LIBIEC61883" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBIEC61883=`which "libiec61883"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBIEC61883="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBIEC61883" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBIEC61883_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBIEC61883 --cflags >/dev/null 2>&1; then + PKG_LIBIEC61883_CFLAGS=$(${gem_check_lib_pkgconfig_LIBIEC61883} --cflags) + PKG_CFLAGS="$PKG_LIBIEC61883_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBIEC61883_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBIEC61883 --plugin-libs >/dev/null 2>&1; then + PKG_LIBIEC61883_LIBS=$(${gem_check_lib_pkgconfig_LIBIEC61883} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBIEC61883 --libs >/dev/null 2>&1; then + PKG_LIBIEC61883_LIBS=$(${gem_check_lib_pkgconfig_LIBIEC61883} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBIEC61883_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -liec61883" >&5 +$as_echo_n "checking for main in -liec61883... " >&6; } +if ${ac_cv_lib_iec61883_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-liec61883 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_iec61883_main=yes +else + ac_cv_lib_iec61883_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iec61883_main" >&5 +$as_echo "$ac_cv_lib_iec61883_main" >&6; } +if test "x$ac_cv_lib_iec61883_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBIEC61883 1 +_ACEOF + + LIBS="-liec61883 $LIBS" + +fi + + PKG_LIBIEC61883_LIBS="-liec61883" + else + PKG_LIBS="${PKG_LIBIEC61883_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_iec61883_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBIEC61883 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBIEC61883 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBIEC61883_CFLAGS=${PKG_LIBIEC61883_CFLAGS} + GEM_LIB_LIBIEC61883_LIBS=${PKG_LIBIEC61883_LIBS} + have_libiec61883="yes" + with_libiec61883="no" + + +else + + have_libiec61883="no" + + +fi + +fi + if test "x${have_libiec61883}" = "xyes"; then + HAVE_LIB_LIBIEC61883_TRUE= + HAVE_LIB_LIBIEC61883_FALSE='#' +else + HAVE_LIB_LIBIEC61883_TRUE='#' + HAVE_LIB_LIBIEC61883_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +for ac_header in vl/vl.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "vl/vl.h" "ac_cv_header_vl_vl_h" "$ac_includes_default" +if test "x$ac_cv_header_vl_vl_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_VL_VL_H 1 +_ACEOF + +fi + +done + + + + if test "x$with_ALL" = "xyes" && test "x${with_unicap}" = "x"; then with_unicap="yes"; fi + if test "x$with_ALL" = "xno" && test "x${with_unicap}" = "x"; then with_unicap="no"; fi + + +@%:@ Check whether --with-unicap was given. +if test "${with_unicap+set}" = set; then : + withval=$with_unicap; +else + + if test "xforce" != "x"; then with_unicap="yes"; fi + +fi + + + + + + + + + + +@%:@ Check whether --with-libunicap was given. +if test "${with_libunicap+set}" = set; then : + withval=$with_libunicap; +fi + + +@%:@ Check whether --with-libunicap-includes was given. +if test "${with_libunicap_includes+set}" = set; then : + withval=$with_libunicap_includes; +fi + + +@%:@ Check whether --with-libunicap-libs was given. +if test "${with_libunicap_libs+set}" = set; then : + withval=$with_libunicap_libs; +fi + + + if test "x$with_libunicap" = "x"; then with_libunicap=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libunicap" = "x"; then with_libunicap="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libunicap" = "x"; then with_libunicap="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libunicap = "xno"; then + have_libunicap="no (forced)" +else + if test -d "$with_libunicap_includes"; then + CFLAGS="-I$with_libunicap_includes $CFLAGS" + CPPFLAGS="-I$with_libunicap_includes $CPPFLAGS" + CXXFLAGS="-I$with_libunicap_includes $CXXFLAGS" + fi + if test -d "$with_libunicap_libs"; then + LIBS="-L$with_libunicap_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_unicap_unicap_check_version) >/dev/null 2>&1 && unset ac_cv_lib_unicap_unicap_check_version + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBUNICAP_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBUNICAP_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBUNICAP_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBUNICAP_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBUNICAP_CFLAGS=$ac_cv_env_PKG_LIBUNICAP_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libunicap\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libunicap" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBUNICAP_CFLAGS=`$PKG_CONFIG --cflags "libunicap" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBUNICAP_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBUNICAP_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBUNICAP_LIBS" >&5 +$as_echo_n "checking for PKG_LIBUNICAP_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBUNICAP_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBUNICAP_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBUNICAP_LIBS=$ac_cv_env_PKG_LIBUNICAP_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libunicap\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libunicap" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBUNICAP_LIBS=`$PKG_CONFIG --libs "libunicap" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBUNICAP_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBUNICAP_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBUNICAP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libunicap"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBUNICAP_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBUNICAP_CFLAGS=$pkg_cv_PKG_LIBUNICAP_CFLAGS + PKG_LIBUNICAP_LIBS=$pkg_cv_PKG_LIBUNICAP_LIBS + ac_cv_lib_unicap_unicap_check_version=yes +fi +if test "x${PKG_LIBUNICAP_CFLAGS}" != "x"; then + + for element in "${PKG_LIBUNICAP_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBUNICAP_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBUNICAP_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_unicap_unicap_check_version" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunicap-config" >&5 +$as_echo_n "checking for libunicap-config... " >&6; } + gem_check_lib_pkgconfig_LIBUNICAP="" + if test "xlibunicap" != "x"; then + gem_check_lib_pkgconfig_LIBUNICAP="libunicap"-config + if which -- "$gem_check_lib_pkgconfig_LIBUNICAP" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBUNICAP=`which "libunicap"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBUNICAP="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBUNICAP" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBUNICAP_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBUNICAP --cflags >/dev/null 2>&1; then + PKG_LIBUNICAP_CFLAGS=$(${gem_check_lib_pkgconfig_LIBUNICAP} --cflags) + PKG_CFLAGS="$PKG_LIBUNICAP_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBUNICAP_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBUNICAP --plugin-libs >/dev/null 2>&1; then + PKG_LIBUNICAP_LIBS=$(${gem_check_lib_pkgconfig_LIBUNICAP} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBUNICAP --libs >/dev/null 2>&1; then + PKG_LIBUNICAP_LIBS=$(${gem_check_lib_pkgconfig_LIBUNICAP} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBUNICAP_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unicap_check_version in -lunicap" >&5 +$as_echo_n "checking for unicap_check_version in -lunicap... " >&6; } +if ${ac_cv_lib_unicap_unicap_check_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lunicap $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char unicap_check_version (); +int +main () +{ +return unicap_check_version (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_unicap_unicap_check_version=yes +else + ac_cv_lib_unicap_unicap_check_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unicap_unicap_check_version" >&5 +$as_echo "$ac_cv_lib_unicap_unicap_check_version" >&6; } +if test "x$ac_cv_lib_unicap_unicap_check_version" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBUNICAP 1 +_ACEOF + + LIBS="-lunicap $LIBS" + +fi + + PKG_LIBUNICAP_LIBS="-lunicap" + else + PKG_LIBS="${PKG_LIBUNICAP_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_unicap_unicap_check_version" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBUNICAP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBUNICAP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_UNICAP_CHECK_VERSION 1 +_ACEOF + + GEM_LIB_LIBUNICAP_CFLAGS=${PKG_LIBUNICAP_CFLAGS} + GEM_LIB_LIBUNICAP_LIBS=${PKG_LIBUNICAP_LIBS} + have_libunicap="yes" + with_libunicap="no" + + +else + + have_libunicap="no" + + +fi + +fi + if test "x${have_libunicap}" = "xyes"; then + HAVE_LIB_LIBUNICAP_TRUE= + HAVE_LIB_LIBUNICAP_FALSE='#' +else + HAVE_LIB_LIBUNICAP_TRUE='#' + HAVE_LIB_LIBUNICAP_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +if test "x$have_unicap" = "xyes"; then + ac_fn_cxx_check_header_mongrel "$LINENO" "unicap/unicap.h" "ac_cv_header_unicap_unicap_h" "$ac_includes_default" +if test "x$ac_cv_header_unicap_unicap_h" = xyes; then : + + +$as_echo "@%:@define HAVE_UNICAP /**/" >>confdefs.h + + have_unicap="yes" + +else + have_unicap="no" +fi + + +fi +if test "x$have_libunicap"; then + have_unicap="yes" +fi + if test "x${have_unicap}" = "xyes"; then + HAVE_LIB_UNICAP_TRUE= + HAVE_LIB_UNICAP_FALSE='#' +else + HAVE_LIB_UNICAP_TRUE='#' + HAVE_LIB_UNICAP_FALSE= +fi + + + +have_v4l="no" + + if test "x$with_ALL" = "xyes" && test "x${with_v4l}" = "x"; then with_v4l="yes"; fi + if test "x$with_ALL" = "xno" && test "x${with_v4l}" = "x"; then with_v4l="no"; fi + + +@%:@ Check whether --with-v4l was given. +if test "${with_v4l+set}" = set; then : + withval=$with_v4l; +else + + if test "xforce" != "x"; then with_v4l="yes"; fi + +fi + + +for ac_header in linux/videodev.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default" +if test "x$ac_cv_header_linux_videodev_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LINUX_VIDEODEV_H 1 +_ACEOF + have_v4l="yes" +fi + +done + + + + + + + + +@%:@ Check whether --with-libv4l1 was given. +if test "${with_libv4l1+set}" = set; then : + withval=$with_libv4l1; +fi + + +@%:@ Check whether --with-libv4l1-includes was given. +if test "${with_libv4l1_includes+set}" = set; then : + withval=$with_libv4l1_includes; +fi + + +@%:@ Check whether --with-libv4l1-libs was given. +if test "${with_libv4l1_libs+set}" = set; then : + withval=$with_libv4l1_libs; +fi + + + if test "x$with_libv4l1" = "x"; then with_libv4l1=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libv4l1" = "x"; then with_libv4l1="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libv4l1" = "x"; then with_libv4l1="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libv4l1 = "xno"; then + have_libv4l1="no (forced)" +else + if test -d "$with_libv4l1_includes"; then + CFLAGS="-I$with_libv4l1_includes $CFLAGS" + CPPFLAGS="-I$with_libv4l1_includes $CPPFLAGS" + CXXFLAGS="-I$with_libv4l1_includes $CXXFLAGS" + fi + if test -d "$with_libv4l1_libs"; then + LIBS="-L$with_libv4l1_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_v4l1_v4l1_open) >/dev/null 2>&1 && unset ac_cv_lib_v4l1_v4l1_open + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L1_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBV4L1_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBV4L1_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L1_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBV4L1_CFLAGS=$ac_cv_env_PKG_LIBV4L1_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l1\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l1" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L1_CFLAGS=`$PKG_CONFIG --cflags "libv4l1" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L1_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L1_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L1_LIBS" >&5 +$as_echo_n "checking for PKG_LIBV4L1_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBV4L1_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L1_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBV4L1_LIBS=$ac_cv_env_PKG_LIBV4L1_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l1\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l1" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L1_LIBS=`$PKG_CONFIG --libs "libv4l1" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L1_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L1_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBV4L1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libv4l1"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBV4L1_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBV4L1_CFLAGS=$pkg_cv_PKG_LIBV4L1_CFLAGS + PKG_LIBV4L1_LIBS=$pkg_cv_PKG_LIBV4L1_LIBS + ac_cv_lib_v4l1_v4l1_open=yes +fi +if test "x${PKG_LIBV4L1_CFLAGS}" != "x"; then + + for element in "${PKG_LIBV4L1_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBV4L1_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBV4L1_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_v4l1_v4l1_open" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libv4l1-config" >&5 +$as_echo_n "checking for libv4l1-config... " >&6; } + gem_check_lib_pkgconfig_LIBV4L1="" + if test "xlibv4l1" != "x"; then + gem_check_lib_pkgconfig_LIBV4L1="libv4l1"-config + if which -- "$gem_check_lib_pkgconfig_LIBV4L1" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBV4L1=`which "libv4l1"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBV4L1="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBV4L1" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBV4L1_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L1 --cflags >/dev/null 2>&1; then + PKG_LIBV4L1_CFLAGS=$(${gem_check_lib_pkgconfig_LIBV4L1} --cflags) + PKG_CFLAGS="$PKG_LIBV4L1_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBV4L1_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L1 --plugin-libs >/dev/null 2>&1; then + PKG_LIBV4L1_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L1} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBV4L1 --libs >/dev/null 2>&1; then + PKG_LIBV4L1_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L1} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBV4L1_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l1_open in -lv4l1" >&5 +$as_echo_n "checking for v4l1_open in -lv4l1... " >&6; } +if ${ac_cv_lib_v4l1_v4l1_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lv4l1 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char v4l1_open (); +int +main () +{ +return v4l1_open (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_v4l1_v4l1_open=yes +else + ac_cv_lib_v4l1_v4l1_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l1_v4l1_open" >&5 +$as_echo "$ac_cv_lib_v4l1_v4l1_open" >&6; } +if test "x$ac_cv_lib_v4l1_v4l1_open" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBV4L1 1 +_ACEOF + + LIBS="-lv4l1 $LIBS" + +fi + + PKG_LIBV4L1_LIBS="-lv4l1" + else + PKG_LIBS="${PKG_LIBV4L1_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_v4l1_v4l1_open" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBV4L1 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBV4L1 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_V4L1_OPEN 1 +_ACEOF + + GEM_LIB_LIBV4L1_CFLAGS=${PKG_LIBV4L1_CFLAGS} + GEM_LIB_LIBV4L1_LIBS=${PKG_LIBV4L1_LIBS} + have_libv4l1="yes" + with_libv4l1="no" + + +else + + have_libv4l1="no" + + +fi + +fi + if test "x${have_libv4l1}" = "xyes"; then + HAVE_LIB_LIBV4L1_TRUE= + HAVE_LIB_LIBV4L1_FALSE='#' +else + HAVE_LIB_LIBV4L1_TRUE='#' + HAVE_LIB_LIBV4L1_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +if test "x$have_libv4l1" = "xyes"; then + have_v4l="yes (libv4l)" +fi +if test "x$with_v4l" = "xno"; then + have_v4l="no" +fi + if test "x${have_v4l}" != "xno"; then + HAVE_V4L_TRUE= + HAVE_V4L_FALSE='#' +else + HAVE_V4L_TRUE='#' + HAVE_V4L_FALSE= +fi + + + +have_v4l2="no" + + if test "x$with_ALL" = "xyes" && test "x${with_v4l2}" = "x"; then with_v4l2="yes"; fi + if test "x$with_ALL" = "xno" && test "x${with_v4l2}" = "x"; then with_v4l2="no"; fi + + +@%:@ Check whether --with-v4l2 was given. +if test "${with_v4l2+set}" = set; then : + withval=$with_v4l2; +else + + if test "xforce" != "x"; then with_v4l2="yes"; fi + +fi + + +for ac_header in linux/videodev2.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "$ac_includes_default" +if test "x$ac_cv_header_linux_videodev2_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LINUX_VIDEODEV2_H 1 +_ACEOF + +fi + +done + + + + + + + + +@%:@ Check whether --with-libv4l2 was given. +if test "${with_libv4l2+set}" = set; then : + withval=$with_libv4l2; +fi + + +@%:@ Check whether --with-libv4l2-includes was given. +if test "${with_libv4l2_includes+set}" = set; then : + withval=$with_libv4l2_includes; +fi + + +@%:@ Check whether --with-libv4l2-libs was given. +if test "${with_libv4l2_libs+set}" = set; then : + withval=$with_libv4l2_libs; +fi + + + if test "x$with_libv4l2" = "x"; then with_libv4l2=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libv4l2" = "x"; then with_libv4l2="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libv4l2" = "x"; then with_libv4l2="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libv4l2 = "xno"; then + have_libv4l2="no (forced)" +else + if test -d "$with_libv4l2_includes"; then + CFLAGS="-I$with_libv4l2_includes $CFLAGS" + CPPFLAGS="-I$with_libv4l2_includes $CPPFLAGS" + CXXFLAGS="-I$with_libv4l2_includes $CXXFLAGS" + fi + if test -d "$with_libv4l2_libs"; then + LIBS="-L$with_libv4l2_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_v4l2_v4l2_open) >/dev/null 2>&1 && unset ac_cv_lib_v4l2_v4l2_open + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L2_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBV4L2_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBV4L2_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L2_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBV4L2_CFLAGS=$ac_cv_env_PKG_LIBV4L2_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L2_CFLAGS=`$PKG_CONFIG --cflags "libv4l2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L2_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L2_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L2_LIBS" >&5 +$as_echo_n "checking for PKG_LIBV4L2_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBV4L2_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L2_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBV4L2_LIBS=$ac_cv_env_PKG_LIBV4L2_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L2_LIBS=`$PKG_CONFIG --libs "libv4l2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L2_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L2_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBV4L2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libv4l2"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBV4L2_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBV4L2_CFLAGS=$pkg_cv_PKG_LIBV4L2_CFLAGS + PKG_LIBV4L2_LIBS=$pkg_cv_PKG_LIBV4L2_LIBS + ac_cv_lib_v4l2_v4l2_open=yes +fi +if test "x${PKG_LIBV4L2_CFLAGS}" != "x"; then + + for element in "${PKG_LIBV4L2_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBV4L2_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBV4L2_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_v4l2_v4l2_open" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libv4l2-config" >&5 +$as_echo_n "checking for libv4l2-config... " >&6; } + gem_check_lib_pkgconfig_LIBV4L2="" + if test "xlibv4l2" != "x"; then + gem_check_lib_pkgconfig_LIBV4L2="libv4l2"-config + if which -- "$gem_check_lib_pkgconfig_LIBV4L2" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBV4L2=`which "libv4l2"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBV4L2="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBV4L2" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBV4L2_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L2 --cflags >/dev/null 2>&1; then + PKG_LIBV4L2_CFLAGS=$(${gem_check_lib_pkgconfig_LIBV4L2} --cflags) + PKG_CFLAGS="$PKG_LIBV4L2_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBV4L2_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L2 --plugin-libs >/dev/null 2>&1; then + PKG_LIBV4L2_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L2} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBV4L2 --libs >/dev/null 2>&1; then + PKG_LIBV4L2_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L2} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBV4L2_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5 +$as_echo_n "checking for v4l2_open in -lv4l2... " >&6; } +if ${ac_cv_lib_v4l2_v4l2_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lv4l2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char v4l2_open (); +int +main () +{ +return v4l2_open (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_v4l2_v4l2_open=yes +else + ac_cv_lib_v4l2_v4l2_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5 +$as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; } +if test "x$ac_cv_lib_v4l2_v4l2_open" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBV4L2 1 +_ACEOF + + LIBS="-lv4l2 $LIBS" + +fi + + PKG_LIBV4L2_LIBS="-lv4l2" + else + PKG_LIBS="${PKG_LIBV4L2_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_v4l2_v4l2_open" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBV4L2 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBV4L2 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_V4L2_OPEN 1 +_ACEOF + + GEM_LIB_LIBV4L2_CFLAGS=${PKG_LIBV4L2_CFLAGS} + GEM_LIB_LIBV4L2_LIBS=${PKG_LIBV4L2_LIBS} + have_libv4l2="yes" + with_libv4l2="no" + + +else + + have_libv4l2="no" + + +fi + +fi + if test "x${have_libv4l2}" = "xyes"; then + HAVE_LIB_LIBV4L2_TRUE= + HAVE_LIB_LIBV4L2_FALSE='#' +else + HAVE_LIB_LIBV4L2_TRUE='#' + HAVE_LIB_LIBV4L2_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +# AC_DEFINE([HAVE_VIDEO4LINUX2], [], [video capturing using v4l2]) + +if test "x$have_libv4l2" = "xyes"; then + have_v4l2="yes (libv4l)" +fi +if test "x$with_v4l2" = "xno"; then + have_v4l2="no" +fi + if test "x${have_v4l2}" != "xno"; then + HAVE_V4L2_TRUE= + HAVE_V4L2_FALSE='#' +else + HAVE_V4L2_TRUE='#' + HAVE_V4L2_FALSE= +fi + + + + + + + + + + +@%:@ Check whether --with-vfw32 was given. +if test "${with_vfw32+set}" = set; then : + withval=$with_vfw32; +fi + + +@%:@ Check whether --with-vfw32-includes was given. +if test "${with_vfw32_includes+set}" = set; then : + withval=$with_vfw32_includes; +fi + + +@%:@ Check whether --with-vfw32-libs was given. +if test "${with_vfw32_libs+set}" = set; then : + withval=$with_vfw32_libs; +fi + + + if test "x$with_vfw32" = "x"; then with_vfw32=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_vfw32" = "x"; then with_vfw32="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_vfw32" = "x"; then with_vfw32="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_vfw32 = "xno"; then + have_vfw32="no (forced)" +else + if test -d "$with_vfw32_includes"; then + CFLAGS="-I$with_vfw32_includes $CFLAGS" + CPPFLAGS="-I$with_vfw32_includes $CPPFLAGS" + CXXFLAGS="-I$with_vfw32_includes $CXXFLAGS" + fi + if test -d "$with_vfw32_libs"; then + LIBS="-L$with_vfw32_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_vfw32_main) >/dev/null 2>&1 && unset ac_cv_lib_vfw32_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_VFW32_CFLAGS" >&5 +$as_echo_n "checking for PKG_VFW32_CFLAGS... " >&6; } +if ${pkg_cv_PKG_VFW32_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_VFW32_CFLAGS_set" = "xset"; then + pkg_cv_PKG_VFW32_CFLAGS=$ac_cv_env_PKG_VFW32_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"vfw32\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "vfw32" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_VFW32_CFLAGS=`$PKG_CONFIG --cflags "vfw32" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_VFW32_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_VFW32_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_VFW32_LIBS" >&5 +$as_echo_n "checking for PKG_VFW32_LIBS... " >&6; } +if ${pkg_cv_PKG_VFW32_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_VFW32_LIBS_set" = "xset"; then + pkg_cv_PKG_VFW32_LIBS=$ac_cv_env_PKG_VFW32_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"vfw32\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "vfw32" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_VFW32_LIBS=`$PKG_CONFIG --libs "vfw32" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_VFW32_LIBS" >&5 +$as_echo "$pkg_cv_PKG_VFW32_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_VFW32_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vfw32"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_VFW32_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_VFW32_CFLAGS=$pkg_cv_PKG_VFW32_CFLAGS + PKG_VFW32_LIBS=$pkg_cv_PKG_VFW32_LIBS + ac_cv_lib_vfw32_main=yes +fi +if test "x${PKG_VFW32_CFLAGS}" != "x"; then + + for element in "${PKG_VFW32_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_VFW32_LIBS}" != "x"; then + PKG_LIBS="${PKG_VFW32_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_vfw32_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vfw32-config" >&5 +$as_echo_n "checking for vfw32-config... " >&6; } + gem_check_lib_pkgconfig_VFW32="" + if test "xvfw32" != "x"; then + gem_check_lib_pkgconfig_VFW32="vfw32"-config + if which -- "$gem_check_lib_pkgconfig_VFW32" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_VFW32=`which "vfw32"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_VFW32="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_VFW32" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_VFW32_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_VFW32 --cflags >/dev/null 2>&1; then + PKG_VFW32_CFLAGS=$(${gem_check_lib_pkgconfig_VFW32} --cflags) + PKG_CFLAGS="$PKG_VFW32_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_VFW32_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_VFW32 --plugin-libs >/dev/null 2>&1; then + PKG_VFW32_LIBS=$(${gem_check_lib_pkgconfig_VFW32} --plugin-libs) + else + if $gem_check_lib_pkgconfig_VFW32 --libs >/dev/null 2>&1; then + PKG_VFW32_LIBS=$(${gem_check_lib_pkgconfig_VFW32} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_VFW32_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvfw32" >&5 +$as_echo_n "checking for main in -lvfw32... " >&6; } +if ${ac_cv_lib_vfw32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lvfw32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_vfw32_main=yes +else + ac_cv_lib_vfw32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vfw32_main" >&5 +$as_echo "$ac_cv_lib_vfw32_main" >&6; } +if test "x$ac_cv_lib_vfw32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVFW32 1 +_ACEOF + + LIBS="-lvfw32 $LIBS" + +fi + + PKG_VFW32_LIBS="-lvfw32" + else + PKG_LIBS="${PKG_VFW32_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_vfw32_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVFW32 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVFW32 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_VFW32_CFLAGS=${PKG_VFW32_CFLAGS} + GEM_LIB_VFW32_LIBS=${PKG_VFW32_LIBS} + have_vfw32="yes" + with_vfw32="no" + + +else + + have_vfw32="no" + + +fi + +fi + if test "x${have_vfw32}" = "xyes"; then + HAVE_LIB_VFW32_TRUE= + HAVE_LIB_VFW32_FALSE='#' +else + HAVE_LIB_VFW32_TRUE='#' + HAVE_LIB_VFW32_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +# is this needed? + +# VLC + + + + + + + +@%:@ Check whether --with-libvlc was given. +if test "${with_libvlc+set}" = set; then : + withval=$with_libvlc; +fi + + +@%:@ Check whether --with-libvlc-includes was given. +if test "${with_libvlc_includes+set}" = set; then : + withval=$with_libvlc_includes; +fi + + +@%:@ Check whether --with-libvlc-libs was given. +if test "${with_libvlc_libs+set}" = set; then : + withval=$with_libvlc_libs; +fi + + + if test "x$with_libvlc" = "x"; then with_libvlc=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libvlc" = "x"; then with_libvlc="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libvlc" = "x"; then with_libvlc="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libvlc = "xno"; then + have_libvlc="no (forced)" +else + if test -d "$with_libvlc_includes"; then + CFLAGS="-I$with_libvlc_includes $CFLAGS" + CPPFLAGS="-I$with_libvlc_includes $CPPFLAGS" + CXXFLAGS="-I$with_libvlc_includes $CXXFLAGS" + fi + if test -d "$with_libvlc_libs"; then + LIBS="-L$with_libvlc_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_vlc_libvlc_video_set_callbacks) >/dev/null 2>&1 && unset ac_cv_lib_vlc_libvlc_video_set_callbacks + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBVLC_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBVLC_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBVLC_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBVLC_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBVLC_CFLAGS=$ac_cv_env_PKG_LIBVLC_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libvlc\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libvlc" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBVLC_CFLAGS=`$PKG_CONFIG --cflags "libvlc" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBVLC_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBVLC_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBVLC_LIBS" >&5 +$as_echo_n "checking for PKG_LIBVLC_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBVLC_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBVLC_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBVLC_LIBS=$ac_cv_env_PKG_LIBVLC_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libvlc\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libvlc" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBVLC_LIBS=`$PKG_CONFIG --libs "libvlc" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBVLC_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBVLC_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBVLC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libvlc"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBVLC_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBVLC_CFLAGS=$pkg_cv_PKG_LIBVLC_CFLAGS + PKG_LIBVLC_LIBS=$pkg_cv_PKG_LIBVLC_LIBS + ac_cv_lib_vlc_libvlc_video_set_callbacks=yes +fi +if test "x${PKG_LIBVLC_CFLAGS}" != "x"; then + + for element in "${PKG_LIBVLC_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBVLC_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBVLC_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_vlc_libvlc_video_set_callbacks" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvlc-config" >&5 +$as_echo_n "checking for libvlc-config... " >&6; } + gem_check_lib_pkgconfig_LIBVLC="" + if test "xlibvlc" != "x"; then + gem_check_lib_pkgconfig_LIBVLC="libvlc"-config + if which -- "$gem_check_lib_pkgconfig_LIBVLC" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBVLC=`which "libvlc"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBVLC="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBVLC" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBVLC_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBVLC --cflags >/dev/null 2>&1; then + PKG_LIBVLC_CFLAGS=$(${gem_check_lib_pkgconfig_LIBVLC} --cflags) + PKG_CFLAGS="$PKG_LIBVLC_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBVLC_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBVLC --plugin-libs >/dev/null 2>&1; then + PKG_LIBVLC_LIBS=$(${gem_check_lib_pkgconfig_LIBVLC} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBVLC --libs >/dev/null 2>&1; then + PKG_LIBVLC_LIBS=$(${gem_check_lib_pkgconfig_LIBVLC} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBVLC_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvlc_video_set_callbacks in -lvlc" >&5 +$as_echo_n "checking for libvlc_video_set_callbacks in -lvlc... " >&6; } +if ${ac_cv_lib_vlc_libvlc_video_set_callbacks+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lvlc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char libvlc_video_set_callbacks (); +int +main () +{ +return libvlc_video_set_callbacks (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_vlc_libvlc_video_set_callbacks=yes +else + ac_cv_lib_vlc_libvlc_video_set_callbacks=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vlc_libvlc_video_set_callbacks" >&5 +$as_echo "$ac_cv_lib_vlc_libvlc_video_set_callbacks" >&6; } +if test "x$ac_cv_lib_vlc_libvlc_video_set_callbacks" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVLC 1 +_ACEOF + + LIBS="-lvlc $LIBS" + +fi + + PKG_LIBVLC_LIBS="-lvlc" + else + PKG_LIBS="${PKG_LIBVLC_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_vlc_libvlc_video_set_callbacks" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBVLC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVLC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVLC_VIDEO_SET_CALLBACKS 1 +_ACEOF + + GEM_LIB_LIBVLC_CFLAGS=${PKG_LIBVLC_CFLAGS} + GEM_LIB_LIBVLC_LIBS=${PKG_LIBVLC_LIBS} + have_libvlc="yes" + with_libvlc="no" + + +else + + have_libvlc="no" + + +fi + +fi + if test "x${have_libvlc}" = "xyes"; then + HAVE_LIB_LIBVLC_TRUE= + HAVE_LIB_LIBVLC_FALSE='#' +else + HAVE_LIB_LIBVLC_TRUE='#' + HAVE_LIB_LIBVLC_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +# assimp + + + + + + + +@%:@ Check whether --with-assimp was given. +if test "${with_assimp+set}" = set; then : + withval=$with_assimp; +fi + + +@%:@ Check whether --with-assimp-includes was given. +if test "${with_assimp_includes+set}" = set; then : + withval=$with_assimp_includes; +fi + + +@%:@ Check whether --with-assimp-libs was given. +if test "${with_assimp_libs+set}" = set; then : + withval=$with_assimp_libs; +fi + + + if test "x$with_assimp" = "x"; then with_assimp=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_assimp" = "x"; then with_assimp="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_assimp" = "x"; then with_assimp="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_assimp = "xno"; then + have_assimp="no (forced)" +else + if test -d "$with_assimp_includes"; then + CFLAGS="-I$with_assimp_includes $CFLAGS" + CPPFLAGS="-I$with_assimp_includes $CPPFLAGS" + CXXFLAGS="-I$with_assimp_includes $CXXFLAGS" + fi + if test -d "$with_assimp_libs"; then + LIBS="-L$with_assimp_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_assimp_aiDetachAllLogStreams) >/dev/null 2>&1 && unset ac_cv_lib_assimp_aiDetachAllLogStreams + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_ASSIMP_CFLAGS" >&5 +$as_echo_n "checking for PKG_ASSIMP_CFLAGS... " >&6; } +if ${pkg_cv_PKG_ASSIMP_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_ASSIMP_CFLAGS_set" = "xset"; then + pkg_cv_PKG_ASSIMP_CFLAGS=$ac_cv_env_PKG_ASSIMP_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"assimp\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "assimp" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_ASSIMP_CFLAGS=`$PKG_CONFIG --cflags "assimp" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_ASSIMP_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_ASSIMP_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_ASSIMP_LIBS" >&5 +$as_echo_n "checking for PKG_ASSIMP_LIBS... " >&6; } +if ${pkg_cv_PKG_ASSIMP_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_ASSIMP_LIBS_set" = "xset"; then + pkg_cv_PKG_ASSIMP_LIBS=$ac_cv_env_PKG_ASSIMP_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"assimp\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "assimp" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_ASSIMP_LIBS=`$PKG_CONFIG --libs "assimp" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_ASSIMP_LIBS" >&5 +$as_echo "$pkg_cv_PKG_ASSIMP_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_ASSIMP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "assimp"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_ASSIMP_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_ASSIMP_CFLAGS=$pkg_cv_PKG_ASSIMP_CFLAGS + PKG_ASSIMP_LIBS=$pkg_cv_PKG_ASSIMP_LIBS + ac_cv_lib_assimp_aiDetachAllLogStreams=yes +fi +if test "x${PKG_ASSIMP_CFLAGS}" != "x"; then + + for element in "${PKG_ASSIMP_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_ASSIMP_LIBS}" != "x"; then + PKG_LIBS="${PKG_ASSIMP_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_assimp_aiDetachAllLogStreams" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assimp-config" >&5 +$as_echo_n "checking for assimp-config... " >&6; } + gem_check_lib_pkgconfig_ASSIMP="" + if test "xassimp" != "x"; then + gem_check_lib_pkgconfig_ASSIMP="assimp"-config + if which -- "$gem_check_lib_pkgconfig_ASSIMP" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_ASSIMP=`which "assimp"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_ASSIMP="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_ASSIMP" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_ASSIMP_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_ASSIMP --cflags >/dev/null 2>&1; then + PKG_ASSIMP_CFLAGS=$(${gem_check_lib_pkgconfig_ASSIMP} --cflags) + PKG_CFLAGS="$PKG_ASSIMP_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_ASSIMP_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_ASSIMP --plugin-libs >/dev/null 2>&1; then + PKG_ASSIMP_LIBS=$(${gem_check_lib_pkgconfig_ASSIMP} --plugin-libs) + else + if $gem_check_lib_pkgconfig_ASSIMP --libs >/dev/null 2>&1; then + PKG_ASSIMP_LIBS=$(${gem_check_lib_pkgconfig_ASSIMP} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_ASSIMP_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aiDetachAllLogStreams in -lassimp" >&5 +$as_echo_n "checking for aiDetachAllLogStreams in -lassimp... " >&6; } +if ${ac_cv_lib_assimp_aiDetachAllLogStreams+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lassimp $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char aiDetachAllLogStreams (); +int +main () +{ +return aiDetachAllLogStreams (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_assimp_aiDetachAllLogStreams=yes +else + ac_cv_lib_assimp_aiDetachAllLogStreams=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_assimp_aiDetachAllLogStreams" >&5 +$as_echo "$ac_cv_lib_assimp_aiDetachAllLogStreams" >&6; } +if test "x$ac_cv_lib_assimp_aiDetachAllLogStreams" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBASSIMP 1 +_ACEOF + + LIBS="-lassimp $LIBS" + +fi + + PKG_ASSIMP_LIBS="-lassimp" + else + PKG_LIBS="${PKG_ASSIMP_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_assimp_aiDetachAllLogStreams" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBASSIMP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBASSIMP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_AIDETACHALLLOGSTREAMS 1 +_ACEOF + + GEM_LIB_ASSIMP_CFLAGS=${PKG_ASSIMP_CFLAGS} + GEM_LIB_ASSIMP_LIBS=${PKG_ASSIMP_LIBS} + have_assimp="yes" + with_assimp="no" + + +else + + have_assimp="no" + + +fi + +fi + if test "x${have_assimp}" = "xyes"; then + HAVE_LIB_ASSIMP_TRUE= + HAVE_LIB_ASSIMP_FALSE='#' +else + HAVE_LIB_ASSIMP_TRUE='#' + HAVE_LIB_ASSIMP_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + +@%:@ Check whether --with-default-font was given. +if test "${with_default_font+set}" = set; then : + withval=$with_default_font; +fi + +if test "x$with_default_font" != "x" && \ + test "x$with_default_font" != "xno" && + test "x$with_default_font" != "xyes"; then + + +cat >>confdefs.h <<_ACEOF +@%:@define GEM_DEFAULT_FONT "${with_default_font}" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using \"${with_default_font}\" as default font" >&5 +$as_echo "using \"${with_default_font}\" as default font" >&6; } +fi + +# threading + +@%:@ Check whether --enable-threads was given. +if test "${enable_threads+set}" = set; then : + enableval=$enable_threads; +else + + if test "x" != "x"; then enable_threads="yes"; fi + +fi + + + + + + +if test "x$enable_threads" != "xno"; then + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ax_pthread_ok=no + +# We used to check for pthread.h first, but this fails if pthread.h +# requires special compiler flags (e.g. on True64 or Sequent). +# It gets checked for in the link test anyway. + +# First of all, check if the user has set any of the PTHREAD_LIBS, +# etcetera environment variables, and if threads linking works using +# them: +if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS" >&5 +$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_join (); +int +main () +{ +return pthread_join (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test x"$ax_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" +fi + +# We must check for the threads library under a number of different +# names; the ordering is very important because some systems +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the +# libraries is broken (non-POSIX). + +# Create a list of thread flags to try. Items starting with a "-" are +# C compiler flags, and other items are library names, except for "none" +# which indicates that we try without any flags at all, and "pthread-config" +# which is a program returning the flags for the Pth emulation library. + +ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads +-mthreads pthread --thread-safe -mt pthread-config" + +# The ordering *is* (sometimes) important. Some notes on the +# individual items follow: + +# pthreads: AIX (must check this before -lpthread) +# none: in case threads are in libc; should be tried before -Kthread and +# other compiler flags to prevent continual compiler warnings +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) +# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) +# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) +# -pthreads: Solaris/gcc +# -mthreads: Mingw32/gcc, Lynx/gcc +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it +# doesn't hurt to check since this sometimes defines pthreads too; +# also defines -D_REENTRANT) +# ... -mt is also the pthreads flag for HP/aCC +# pthread: Linux, etcetera +# --thread-safe: KAI C++ +# pthread-config: use pthread-config program (for GNU Pth library) + +case "${host_cpu}-${host_os}" in + *solaris*) + + # On Solaris (at least, for some versions), libc contains stubbed + # (non-functional) versions of the pthreads routines, so link-based + # tests will erroneously succeed. (We need to link with -pthreads/-mt/ + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather + # a function called by this macro, so we could check for that, but + # who knows whether they'll stub that too in a future libc.) So, + # we'll just look for -pthreads and -lpthread first: + + ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" + ;; + + *-darwin*) + acx_pthread_flags="-pthread $acx_pthread_flags" + ;; +esac + +if test x"$ax_pthread_ok" = xno; then +for flag in $ax_pthread_flags; do + + case $flag in + none) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 +$as_echo_n "checking whether pthreads work without any flags... " >&6; } + ;; + + -*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 +$as_echo_n "checking whether pthreads work with $flag... " >&6; } + PTHREAD_CFLAGS="$flag" + ;; + + pthread-config) + # Extract the first word of "pthread-config", so it can be a program name with args. +set dummy pthread-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ax_pthread_config+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ax_pthread_config"; then + ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ax_pthread_config="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" +fi +fi +ax_pthread_config=$ac_cv_prog_ax_pthread_config +if test -n "$ax_pthread_config"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 +$as_echo "$ax_pthread_config" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test x"$ax_pthread_config" = xno; then continue; fi + PTHREAD_CFLAGS="`pthread-config --cflags`" + PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config +--libs`" + ;; + + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 +$as_echo_n "checking for the pthreads library -l$flag... " >&6; } + PTHREAD_LIBS="-l$flag" + ;; + esac + + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Check for various functions. We must include pthread.h, + # since some functions may be macros. (On the Sequent, we + # need a special flag -Kthread to make this header compile.) + # We check for pthread_join because it is in -lpthread on IRIX + # while pthread_create is in libc. We check for pthread_attr_init + # due to DEC craziness with -lpthreads. We check for + # pthread_cleanup_push because it is one of the few pthread + # functions on Solaris that doesn't have a non-functional libc stub. + # We try pthread_create on general principles. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + static void routine(void* a) {a=0;} + static void* start_routine(void* a) {return a;} +int +main () +{ +pthread_t th; pthread_attr_t attr; + pthread_join(th, 0); + pthread_attr_init(&attr); + pthread_cleanup_push(routine, 0); + pthread_create(&th,0,start_routine,0); + pthread_cleanup_pop(0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test "x$ax_pthread_ok" = xyes; then + break; + fi + + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" +done +fi + +# Various other checks: +if test "x$ax_pthread_ok" = xyes; then + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 +$as_echo_n "checking for joinable pthread attribute... " >&6; } + attr_name=unknown + for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int attr=$attr; return attr; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + attr_name=$attr; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + done + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 +$as_echo "$attr_name" >&6; } + if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then + +cat >>confdefs.h <<_ACEOF +@%:@define PTHREAD_CREATE_JOINABLE $attr_name +_ACEOF + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 +$as_echo_n "checking if more special flags are required for pthreads... " >&6; } + flag=no + case "${host_cpu}-${host_os}" in + *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 +$as_echo "${flag}" >&6; } + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + # More AIX lossage: must compile with xlc_r or cc_r + if test x"$GCC" != xyes; then + for ac_prog in xlc_r cc_r +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_PTHREAD_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$PTHREAD_CC"; then + ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_PTHREAD_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +PTHREAD_CC=$ac_cv_prog_PTHREAD_CC +if test -n "$PTHREAD_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 +$as_echo "$PTHREAD_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$PTHREAD_CC" && break +done +test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" + + else + PTHREAD_CC=$CC + fi +else + PTHREAD_CC="$CC" +fi + + + + + +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: +if test x"$ax_pthread_ok" = xyes; then + +$as_echo "@%:@define HAVE_PTHREADS 1" >>confdefs.h + + : +else + ax_pthread_ok=no + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + GEM_THREADS_CFLAGS="" + + for element in "${PTHREAD_CFLAGS}"; do + haveit= + for x in $GEM_THREADS_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_THREADS_CFLAGS="${GEM_THREADS_CFLAGS}${GEM_THREADS_CFLAGS:+ }$element" + fi + done + + GEM_THREADS_LIBS="${GEM_THREADS_LIBS}${GEM_THREADS_LIBS:+ }${PTHREAD_LIBS}" +fi + + +# Checks for header files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h + +fi + +for ac_header in fcntl.h float.h memory.h stddef.h stdlib.h string.h strings.h sys/ioctl.h sys/time.h termios.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in wordexp.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "wordexp.h" "ac_cv_header_wordexp_h" "$ac_includes_default" +if test "x$ac_cv_header_wordexp_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_WORDEXP_H 1 +_ACEOF + +fi + +done + + +# Checks for typedefs, structures, and compiler characteristics. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 +$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } +if ${ac_cv_header_stdbool_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #ifndef bool + "error: bool is not defined" + #endif + #ifndef false + "error: false is not defined" + #endif + #if false + "error: false is not 0" + #endif + #ifndef true + "error: true is not defined" + #endif + #if true != 1 + "error: true is not 1" + #endif + #ifndef __bool_true_false_are_defined + "error: __bool_true_false_are_defined is not defined" + #endif + + struct s { _Bool s: 1; _Bool t; } s; + + char a[true == 1 ? 1 : -1]; + char b[false == 0 ? 1 : -1]; + char c[__bool_true_false_are_defined == 1 ? 1 : -1]; + char d[(bool) 0.5 == true ? 1 : -1]; + /* See body of main program for 'e'. */ + char f[(_Bool) 0.0 == false ? 1 : -1]; + char g[true]; + char h[sizeof (_Bool)]; + char i[sizeof s.t]; + enum { j = false, k = true, l = false * true, m = true * 256 }; + /* The following fails for + HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ + _Bool n[m]; + char o[sizeof n == m * sizeof n[0] ? 1 : -1]; + char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; + /* Catch a bug in an HP-UX C compiler. See + http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + */ + _Bool q = true; + _Bool *pq = &q; + +int +main () +{ + + bool e = &s; + *pq |= q; + *pq |= ! q; + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + + !m + !n + !o + !p + !q + !pq); + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_header_stdbool_h=yes +else + ac_cv_header_stdbool_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 +$as_echo "$ac_cv_header_stdbool_h" >&6; } + ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" +if test "x$ac_cv_type__Bool" = xyes; then : + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE__BOOL 1 +_ACEOF + + +fi + + +if test $ac_cv_header_stdbool_h = yes; then + +$as_echo "@%:@define HAVE_STDBOOL_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if ${ac_cv_c_const+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +#ifndef __cplusplus + /* Ultrix mips cc rejects this sort of thing. */ + typedef int charset[2]; + const charset cs = { 0, 0 }; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *pcpcc; + char **ppc; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + pcpcc = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++pcpcc; + ppc = (char**) pcpcc; + pcpcc = (char const *const *) ppc; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 0; + if (s) return 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + if (!foo) return 0; + } + return !cs[0] && !zero.x; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_c_const=yes +else + ac_cv_c_const=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +$as_echo "@%:@define const /**/" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + +ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +@%:@define size_t unsigned int +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } +if ${ac_cv_header_time+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include + +int +main () +{ +if ((struct tm *) 0) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_header_time=yes +else + ac_cv_header_time=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 +$as_echo "$ac_cv_header_time" >&6; } +if test $ac_cv_header_time = yes; then + +$as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h + +fi + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 +$as_echo_n "checking size of unsigned int... " >&6; } +if ${ac_cv_sizeof_unsigned_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_unsigned_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (unsigned int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_unsigned_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 +$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +@%:@define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 +$as_echo_n "checking size of void *... " >&6; } +if ${ac_cv_sizeof_void_p+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_void_p" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (void *) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_void_p=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 +$as_echo "$ac_cv_sizeof_void_p" >&6; } + + + +cat >>confdefs.h <<_ACEOF +@%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p +_ACEOF + + + +# Checks for library functions. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 +$as_echo_n "checking for error_at_line... " >&6; } +if ${ac_cv_lib_error_at_line+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +error_at_line (0, 0, "", 0, "an error occurred"); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_error_at_line=yes +else + ac_cv_lib_error_at_line=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 +$as_echo "$ac_cv_lib_error_at_line" >&6; } +if test $ac_cv_lib_error_at_line = no; then + case " $LIB@&t@OBJS " in + *" error.$ac_objext "* ) ;; + *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext" + ;; +esac + +fi + +ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" +if test "x$ac_cv_type_pid_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +@%:@define pid_t int +_ACEOF + +fi + +for ac_header in vfork.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" +if test "x$ac_cv_header_vfork_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_VFORK_H 1 +_ACEOF + +fi + +done + +for ac_func in fork vfork +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +if test "x$ac_cv_func_fork" = xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 +$as_echo_n "checking for working fork... " >&6; } +if ${ac_cv_func_fork_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_fork_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* By Ruediger Kuhlmann. */ + return fork () < 0; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_fork_works=yes +else + ac_cv_func_fork_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 +$as_echo "$ac_cv_func_fork_works" >&6; } + +else + ac_cv_func_fork_works=$ac_cv_func_fork +fi +if test "x$ac_cv_func_fork_works" = xcross; then + case $host in + *-*-amigaos* | *-*-msdosdjgpp*) + # Override, as these systems have only a dummy fork() stub + ac_cv_func_fork_works=no + ;; + *) + ac_cv_func_fork_works=yes + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 +$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} +fi +ac_cv_func_vfork_works=$ac_cv_func_vfork +if test "x$ac_cv_func_vfork" = xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 +$as_echo_n "checking for working vfork... " >&6; } +if ${ac_cv_func_vfork_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_vfork_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Thanks to Paul Eggert for this test. */ +$ac_includes_default +#include +#ifdef HAVE_VFORK_H +# include +#endif +/* On some sparc systems, changes by the child to local and incoming + argument registers are propagated back to the parent. The compiler + is told about this with #include , but some compilers + (e.g. gcc -O) don't grok . Test for this by using a + static variable whose address is put into a register that is + clobbered by the vfork. */ +static void +#ifdef __cplusplus +sparc_address_test (int arg) +# else +sparc_address_test (arg) int arg; +#endif +{ + static pid_t child; + if (!child) { + child = vfork (); + if (child < 0) { + perror ("vfork"); + _exit(2); + } + if (!child) { + arg = getpid(); + write(-1, "", 0); + _exit (arg); + } + } +} + +int +main () +{ + pid_t parent = getpid (); + pid_t child; + + sparc_address_test (0); + + child = vfork (); + + if (child == 0) { + /* Here is another test for sparc vfork register problems. This + test uses lots of local variables, at least as many local + variables as main has allocated so far including compiler + temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris + 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should + reuse the register of parent for one of the local variables, + since it will think that parent can't possibly be used any more + in this routine. Assigning to the local variable will thus + munge parent in the parent process. */ + pid_t + p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), + p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); + /* Convince the compiler that p..p7 are live; otherwise, it might + use the same hardware register for all 8 local variables. */ + if (p != p1 || p != p2 || p != p3 || p != p4 + || p != p5 || p != p6 || p != p7) + _exit(1); + + /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent + from child file descriptors. If the child closes a descriptor + before it execs or exits, this munges the parent's descriptor + as well. Test for this by closing stdout in the child. */ + _exit(close(fileno(stdout)) != 0); + } else { + int status; + struct stat st; + + while (wait(&status) != child) + ; + return ( + /* Was there some problem with vforking? */ + child < 0 + + /* Did the child fail? (This shouldn't happen.) */ + || status + + /* Did the vfork/compiler bug occur? */ + || parent != getpid() + + /* Did the file descriptor bug occur? */ + || fstat(fileno(stdout), &st) != 0 + ); + } +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_vfork_works=yes +else + ac_cv_func_vfork_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 +$as_echo "$ac_cv_func_vfork_works" >&6; } + +fi; +if test "x$ac_cv_func_fork_works" = xcross; then + ac_cv_func_vfork_works=$ac_cv_func_vfork + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 +$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} +fi + +if test "x$ac_cv_func_vfork_works" = xyes; then + +$as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h + +else + +$as_echo "@%:@define vfork fork" >>confdefs.h + +fi +if test "x$ac_cv_func_fork_works" = xyes; then + +$as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h + +fi + +for ac_header in stdlib.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +if test "x$ac_cv_header_stdlib_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_STDLIB_H 1 +_ACEOF + +fi + +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 +$as_echo_n "checking for GNU libc compatible malloc... " >&6; } +if ${ac_cv_func_malloc_0_nonnull+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_malloc_0_nonnull=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined STDC_HEADERS || defined HAVE_STDLIB_H +# include +#else +char *malloc (); +#endif + +int +main () +{ +return ! malloc (0); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_malloc_0_nonnull=yes +else + ac_cv_func_malloc_0_nonnull=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 +$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } +if test $ac_cv_func_malloc_0_nonnull = yes; then : + +$as_echo "@%:@define HAVE_MALLOC 1" >>confdefs.h + +else + $as_echo "@%:@define HAVE_MALLOC 0" >>confdefs.h + + case " $LIB@&t@OBJS " in + *" malloc.$ac_objext "* ) ;; + *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext" + ;; +esac + + +$as_echo "@%:@define malloc rpl_malloc" >>confdefs.h + +fi + + + + + + for ac_header in $ac_header_list +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + + + + +for ac_func in getpagesize +do : + ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" +if test "x$ac_cv_func_getpagesize" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GETPAGESIZE 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 +$as_echo_n "checking for working mmap... " >&6; } +if ${ac_cv_func_mmap_fixed_mapped+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_mmap_fixed_mapped=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +/* malloc might have been renamed as rpl_malloc. */ +#undef malloc + +/* Thanks to Mike Haertel and Jim Avera for this test. + Here is a matrix of mmap possibilities: + mmap private not fixed + mmap private fixed at somewhere currently unmapped + mmap private fixed at somewhere already mapped + mmap shared not fixed + mmap shared fixed at somewhere currently unmapped + mmap shared fixed at somewhere already mapped + For private mappings, we should verify that changes cannot be read() + back from the file, nor mmap's back from the file at a different + address. (There have been systems where private was not correctly + implemented like the infamous i386 svr4.0, and systems where the + VM page cache was not coherent with the file system buffer cache + like early versions of FreeBSD and possibly contemporary NetBSD.) + For shared mappings, we should conversely verify that changes get + propagated back to all the places they're supposed to be. + + Grep wants private fixed already mapped. + The main things grep needs to know about mmap are: + * does it exist and is it safe to write into the mmap'd area + * how to use it (BSD variants) */ + +#include +#include + +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H +char *malloc (); +#endif + +/* This mess was copied from the GNU getpagesize.h. */ +#ifndef HAVE_GETPAGESIZE +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# ifdef HAVE_SYS_PARAM_H +# include +# ifdef EXEC_PAGESIZE +# define getpagesize() EXEC_PAGESIZE +# else /* no EXEC_PAGESIZE */ +# ifdef NBPG +# define getpagesize() NBPG * CLSIZE +# ifndef CLSIZE +# define CLSIZE 1 +# endif /* no CLSIZE */ +# else /* no NBPG */ +# ifdef NBPC +# define getpagesize() NBPC +# else /* no NBPC */ +# ifdef PAGESIZE +# define getpagesize() PAGESIZE +# endif /* PAGESIZE */ +# endif /* no NBPC */ +# endif /* no NBPG */ +# endif /* no EXEC_PAGESIZE */ +# else /* no HAVE_SYS_PARAM_H */ +# define getpagesize() 8192 /* punt totally */ +# endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ + +#endif /* no HAVE_GETPAGESIZE */ + +int +main () +{ + char *data, *data2, *data3; + const char *cdata2; + int i, pagesize; + int fd, fd2; + + pagesize = getpagesize (); + + /* First, make a file with some known garbage in it. */ + data = (char *) malloc (pagesize); + if (!data) + return 1; + for (i = 0; i < pagesize; ++i) + *(data + i) = rand (); + umask (0); + fd = creat ("conftest.mmap", 0600); + if (fd < 0) + return 2; + if (write (fd, data, pagesize) != pagesize) + return 3; + close (fd); + + /* Next, check that the tail of a page is zero-filled. File must have + non-zero length, otherwise we risk SIGBUS for entire page. */ + fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); + if (fd2 < 0) + return 4; + cdata2 = ""; + if (write (fd2, cdata2, 1) != 1) + return 5; + data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); + if (data2 == MAP_FAILED) + return 6; + for (i = 0; i < pagesize; ++i) + if (*(data2 + i)) + return 7; + close (fd2); + if (munmap (data2, pagesize)) + return 8; + + /* Next, try to mmap the file at a fixed address which already has + something else allocated at it. If we can, also make sure that + we see the same garbage. */ + fd = open ("conftest.mmap", O_RDWR); + if (fd < 0) + return 9; + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_FIXED, fd, 0L)) + return 10; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + return 11; + + /* Finally, make sure that changes to the mapped area do not + percolate back to the file as seen by read(). (This is a bug on + some variants of i386 svr4.0.) */ + for (i = 0; i < pagesize; ++i) + *(data2 + i) = *(data2 + i) + 1; + data3 = (char *) malloc (pagesize); + if (!data3) + return 12; + if (read (fd, data3, pagesize) != pagesize) + return 13; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data3 + i)) + return 14; + close (fd); + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_mmap_fixed_mapped=yes +else + ac_cv_func_mmap_fixed_mapped=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 +$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } +if test $ac_cv_func_mmap_fixed_mapped = yes; then + +$as_echo "@%:@define HAVE_MMAP 1" >>confdefs.h + +fi +rm -f conftest.mmap conftest.txt + +for ac_func in bzero floor gettimeofday memset munmap pow sqrt strchr strdup strrchr strstr strnlen +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + +# enabling recording with quicktime4linux +gem_tmp_lqt_libs="$LIBS" +LIBS="$LIBS $PKG_LIBS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lqt_open_write" >&5 +$as_echo_n "checking for lqt_open_write... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lqt_open_write (); +int +main () +{ +return lqt_open_write (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + +$as_echo "@%:@define HAVE_LQT_OPEN_WRITE /**/" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS="$gem_tmp_lqt_libs" + +### make-depend flags +if test "x$ac_cv_c_compiler_gnu" = "xyes"; then + MAKEDEP_FLAGS="-MM" + +else + MAKEDEP_FLAGS="-M" + +fi + +# using pix_videoOS rather than pix_video + +@%:@ Check whether --with-video was given. +if test "${with_video+set}" = set; then : + withval=$with_video; +fi + + +## on OSX we still default to the olde way +#if test "x$KERN" = "xDarwin"; then +# if test "x$with_film" = "x"; then +# with_film="Darwin" +# fi +# if test "x$with_video" = "x"; then +# with_video="Darwin" +# fi +#fi + +if test "x$with_video" = "x"; then + with_video="plugins" +elif test "x$with_video" = "xyes"; then + with_video="plugins" +elif test "x$with_video" = "xno"; then +# hmm, what to do here? + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ignoring request for no video...using plugins" >&5 +$as_echo "ignoring request for no video...using plugins" >&6; } + with_video="plugins" +elif test "x$with_video" = "xplugins"; then + : +else + +cat >>confdefs.h <<_ACEOF +@%:@define GEM_VIDEOBACKEND GEM_VIDEOBACKEND_$with_video +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using deprecated video-loader $with_video" >&5 +$as_echo "using deprecated video-loader $with_video" >&6; } +fi + +# using pix_filmOS rather than pix_film + +@%:@ Check whether --with-film was given. +if test "${with_film+set}" = set; then : + withval=$with_film; +fi + + +if test "x$with_film" = "x"; then + with_film="plugins" +elif test "x$with_film" = "xyes"; then + with_film="plugins" +elif test "x$with_film" = "xno"; then +# hmm, what to do here? + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ignoring request for no film...using plugins" >&5 +$as_echo "ignoring request for no film...using plugins" >&6; } + with_film="plugins" +elif test "x$with_film" = "xplugins"; then + : +else + +cat >>confdefs.h <<_ACEOF +@%:@define GEM_FILMBACKEND GEM_FILMBACKEND_$with_film +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using deprecated film-loader $with_film" >&5 +$as_echo "using deprecated film-loader $with_film" >&6; } +fi + + + + + +# enabling "-freg-struct-return" (for FreeFrame) +# i wonder could we make this the default ??? +if test "x$enable_registerstruct" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-freg-struct-return\"" >&5 +$as_echo_n "checking whether compiler accepts \"-freg-struct-return\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -freg-struct-return > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -freg-struct-return" + enable_registerstruct="yes" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + enable_registerstruct="no" +fi + + +if test "x$enable_registerstruct" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling \"register struct return\" + allows to make use of FreeFrame-effects without recompiling them + might break things, if you are using several different compilers" >&5 +$as_echo "enabling \"register struct return\" + allows to make use of FreeFrame-effects without recompiling them + might break things, if you are using several different compilers" >&6; } +fi +fi + +if test "x$WINDOWS" = "xyes"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-mms-bitfields\"" >&5 +$as_echo_n "checking whether compiler accepts \"-mms-bitfields\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -mms-bitfields > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -mms-bitfields" + GEM_EXTERNAL_CFLAGS+="-mms-bitfields" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + +if test "x$KERN" = "xDarwin"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-Os\"" >&5 +$as_echo_n "checking whether compiler accepts \"-Os\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -Os > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -Os" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-O3\"" >&5 +$as_echo_n "checking whether compiler accepts \"-O3\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -O3 > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -O3" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + + +# shall we built FAT-binaries ? +## this needs more thinking! running just the preprocessor does not like these flags +## for now we could live with just adding these manually with GEM_EXTRA_CXXFLAGS and GEM_EXTRA_LDFLAGS + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-O3\"" >&5 +$as_echo_n "checking whether compiler accepts \"-O3\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -O3 > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -O3" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-falign-loops -falign-functions -falign-jumps -funroll-loops\"" >&5 +$as_echo_n "checking whether compiler accepts \"-falign-loops -falign-functions -falign-jumps -funroll-loops\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -falign-loops -falign-functions -falign-jumps -funroll-loops > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -falign-loops -falign-functions -falign-jumps -funroll-loops" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-falign-loops -funroll-loops\"" >&5 +$as_echo_n "checking whether compiler accepts \"-falign-loops -funroll-loops\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -falign-loops -funroll-loops > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -falign-loops -funroll-loops" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-ffast-math\"" >&5 +$as_echo_n "checking whether compiler accepts \"-ffast-math\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -ffast-math > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -ffast-math" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + + +## SIMD support +# naive approach is to just check, which SIMD-flags the compiler takes +# and use these +# drawback: while the compiler might support compilation for a specific +# SIMD instruction set, the hardware you are compiling for might not + +# proposal: +# by default the configure-task should only enable flags that are known +# to work on the machine we are compiling. +# the user can override this by explicitely stating that they want the +# flag to be enabled (if possible) +# e.g. "./configure --enable-sse2" on a pentium-3 should +# produce a binary that will only run on machines with SSE2 registers +# whereas "./configure" will make a binary with only MMX enabled. +# +# but how do we test for the CPU-caps? on linux we could just read /proc/cpuinfo +# but on other OSs? + +# we make it a bit complicated in order to allow people to enforce the +# compilation with a specific SIMD-instruction set, even on platforms +# that don't support it +# why? think cross-compilation + + +@%:@ Check whether --enable-fat-binary was given. +if test "${enable_fat_binary+set}" = set; then : + enableval=$enable_fat_binary; fat_binary=$enableval +else + fat_binary=no +fi + +if test "$fat_binary" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking target architectures" >&5 +$as_echo_n "checking target architectures... " >&6; } + + # Respect TARGET_ARCHS setting from environment if available. + if test -z "$TARGET_ARCHS"; then + # Respect ARCH given to --enable-fat-binary if present. + if test "$fat_binary" != yes; then + TARGET_ARCHS=`echo "$fat_binary" | tr ',' ' '` + else + # Choose a default set of architectures based upon platform. + TARGET_ARCHS="ppc i386" + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ARCHS" >&5 +$as_echo "$TARGET_ARCHS" >&6; } + + + # /usr/lib/arch_tool -archify_list $TARGET_ARCHS + GEM_ARCH="" + tmp_arch_count=0 + for archs in $TARGET_ARCHS + do + GEM_ARCH="$GEM_ARCH -arch $archs" + tmp_arch_count=$((tmp_arch_count+1)) + done + + if test "$tmp_arch_count" -gt 1; then + if test "x$enable_dependency_tracking" != xno; then + as_fn_error $? "when building for multiple architectures, you MUST turn off dependency-tracking" "$LINENO" 5 + fi + fi + + if test "x$GEM_ARCH" != "x"; then + tmp_arch_cflags="$CFLAGS" + tmp_arch_cxxflags="$CXXFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"$GEM_ARCH\"" >&5 +$as_echo_n "checking whether compiler accepts \"$GEM_ARCH\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ $GEM_ARCH > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} $GEM_ARCH" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + GEM_ARCH="" +fi + + GEM_ARCH_CXXFLAGS+=$GEM_ARCH + CFLAGS="$tmp_arch_cflags" + CXXFLAGS="$tmp_arch_cxxflags" + fi + + if test "x$GEM_ARCH" != "x"; then + tmp_arch_ldflags="$LDFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts \"$GEM_ARCH\"" >&5 +$as_echo_n "checking whether linker accepts \"$GEM_ARCH\"... " >&6; } + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="$GEM_ARCH ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + GEM_ARCH="" + fi + + GEM_ARCH_LDFLAGS+=$GEM_ARCH + LDFLAGS="$tmp_arch_ldflags" + fi + + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEM_ARCH" >&5 +$as_echo "$GEM_ARCH" >&6; } + + + +if test "x${ARCH}" = "xi386" || test "x${ARCH}" = "xi686" || test "x${ARCH}" = "xx86_64"; then + if test "x$enable_altivec" != "xyes"; then enable_altivec="no"; fi +fi + +if test "x${ARCH}" = "xPower Macintosh" || test "x${ARCH}" = "xpowerpc"; then + if test "x$enable_mmx" != "xyes"; then enable_mmx="no" ; fi + if test "x$enable_sse2" != "xyes"; then enable_sse2="no"; fi +fi + +if test "x$enable_mmx" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-mmmx\"" >&5 +$as_echo_n "checking whether compiler accepts \"-mmmx\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -mmmx > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -mmmx" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi +if test "x$enable_sse2" = "xyes"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-msse2\"" >&5 +$as_echo_n "checking whether compiler accepts \"-msse2\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -msse2 > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -msse2" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi +if test "x$enable_altivec" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-faltivec\"" >&5 +$as_echo_n "checking whether compiler accepts \"-faltivec\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -faltivec > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -faltivec" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi +if test "x$enable_powerpc" = "xyes"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-mpowerpc-gfxopt\"" >&5 +$as_echo_n "checking whether compiler accepts \"-mpowerpc-gfxopt\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -mpowerpc-gfxopt > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -mpowerpc-gfxopt" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + +# on os-x we might come across "pascal strings" containing "\p"... +if test "x$enable_pascalstrings" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-fpascal-strings\"" >&5 +$as_echo_n "checking whether compiler accepts \"-fpascal-strings\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -fpascal-strings > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -fpascal-strings" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + + +@%:@ Check whether --with-defaultwindow was given. +if test "${with_defaultwindow+set}" = set; then : + withval=$with_defaultwindow; +fi + + +case "$with_defaultwindow" in + gem*) + GEM_DEFAULT_WINDOW="$with_defaultwindow" + ;; + *) + GEM_DEFAULT_WINDOW="" + ;; +esac +if test "x${GEM_DEFAULT_WINDOW}" = "x"; then + if test "x$WINDOWS" = "xyes"; then + GEM_DEFAULT_WINDOW="gemw32window" + elif test "x$DARWIN" = "xyes"; then + #GEM_DEFAULT_WINDOW="gemmacwindow" + GEM_DEFAULT_WINDOW="gemcocoawindow" + elif test "x$no_glx" != "xyes"; then + GEM_DEFAULT_WINDOW="gemglxwindow" + elif test "x$no_glut" != "xyes"; then + GEM_DEFAULT_WINDOW="gemglutwindow" + fi +fi + +ac_config_files="$ac_config_files abstractions/gemdefaultwindow.pd" + + +## dummy conditionals that are always "true" (ENABLED) or "false" (DISABLED) +enabled="yes" + if test "x${enabled}" = "xyes"; then + ENABLED_TRUE= + ENABLED_FALSE='#' +else + ENABLED_TRUE='#' + ENABLED_FALSE= +fi + + if test "x${enabled}" = "xno"; then + DISABLED_TRUE= + DISABLED_FALSE='#' +else + DISABLED_TRUE='#' + DISABLED_FALSE= +fi + + + +# damned: gcc on osX seems to report that it supports "-ip -ipo_obj" although they are only icc flags + + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIB@&t@OBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then + as_fn_error $? "conditional \"LINUX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then + as_fn_error $? "conditional \"ANDROID\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then + as_fn_error $? "conditional \"MACOSX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${IPHONEOS_TRUE}" && test -z "${IPHONEOS_FALSE}"; then + as_fn_error $? "conditional \"IPHONEOS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then + as_fn_error $? "conditional \"BSD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then + as_fn_error $? "conditional \"WINDOWS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then + as_fn_error $? "conditional \"CYGWIN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then + as_fn_error $? "conditional \"MINGW\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then + as_fn_error $? "conditional \"HURD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then + as_fn_error $? "conditional \"IRIX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CONTROLS_TRUE}" && test -z "${TARGET_CONTROLS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CONTROLS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_GEOS_TRUE}" && test -z "${TARGET_GEOS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_GEOS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_MANIPS_TRUE}" && test -z "${TARGET_MANIPS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_MANIPS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_NONGEOS_TRUE}" && test -z "${TARGET_NONGEOS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_NONGEOS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_PARTICLES_TRUE}" && test -z "${TARGET_PARTICLES_FALSE}"; then + as_fn_error $? "conditional \"TARGET_PARTICLES\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_PIXES_TRUE}" && test -z "${TARGET_PIXES_FALSE}"; then + as_fn_error $? "conditional \"TARGET_PIXES\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_OPENGL_TRUE}" && test -z "${TARGET_OPENGL_FALSE}"; then + as_fn_error $? "conditional \"TARGET_OPENGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_VERTEX_TRUE}" && test -z "${TARGET_VERTEX_FALSE}"; then + as_fn_error $? "conditional \"TARGET_VERTEX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GL_TRUE}" && test -z "${HAVE_GL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GLU_TRUE}" && test -z "${HAVE_GLU_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GLU\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GLUT_TRUE}" && test -z "${HAVE_GLUT_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GLUT\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GLX_TRUE}" && test -z "${HAVE_GLX_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GLX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_AGL_TRUE}" && test -z "${HAVE_FRAMEWORK_AGL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_AGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_AGL_TRUE}" && test -z "${HAVE_AGL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_AGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_GLEW_TRUE}" && test -z "${HAVE_LIB_GLEW_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_GLEW\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_SDL_TRUE}" && test -z "${HAVE_LIB_SDL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_SDL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_COCOA_TRUE}" && test -z "${HAVE_FRAMEWORK_COCOA_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_COCOA\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_CARBON_TRUE}" && test -z "${HAVE_FRAMEWORK_CARBON_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_CARBON\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_QUICKTIME_TRUE}" && test -z "${HAVE_FRAMEWORK_QUICKTIME_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_QUICKTIME\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${VIDEODARWIN_TRUE}" && test -z "${VIDEODARWIN_FALSE}"; then + as_fn_error $? "conditional \"VIDEODARWIN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_IMAGEMAGICK___TRUE}" && test -z "${HAVE_LIB_IMAGEMAGICK___FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_IMAGEMAGICK__\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_MAGICKCORE_TRUE}" && test -z "${HAVE_LIB_MAGICKCORE_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_MAGICKCORE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_TIFF_TRUE}" && test -z "${HAVE_LIB_TIFF_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_TIFF\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_JPEG_TRUE}" && test -z "${HAVE_LIB_JPEG_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_JPEG\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_FTGL_TRUE}" && test -z "${HAVE_LIB_FTGL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_FTGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_FRIBIDI_TRUE}" && test -z "${HAVE_LIB_FRIBIDI_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_FRIBIDI\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_AVIFILE_TRUE}" && test -z "${HAVE_LIB_AVIFILE_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_AVIFILE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_GMERLIN_AVDEC_TRUE}" && test -z "${HAVE_LIB_GMERLIN_AVDEC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_GMERLIN_AVDEC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_MPEG_TRUE}" && test -z "${HAVE_LIB_MPEG_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_MPEG\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBMPEG3_TRUE}" && test -z "${HAVE_LIB_LIBMPEG3_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBMPEG3\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBQUICKTIME_TRUE}" && test -z "${HAVE_LIB_LIBQUICKTIME_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBQUICKTIME\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LQT_TRUE}" && test -z "${HAVE_LIB_LQT_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LQT\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBDC1394_2_TRUE}" && test -z "${HAVE_LIB_LIBDC1394_2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBDC1394_2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBDV_TRUE}" && test -z "${HAVE_LIB_LIBDV_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBDV\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBRAW1394_TRUE}" && test -z "${HAVE_LIB_LIBRAW1394_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBRAW1394\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBIEC61883_TRUE}" && test -z "${HAVE_LIB_LIBIEC61883_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBIEC61883\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBUNICAP_TRUE}" && test -z "${HAVE_LIB_LIBUNICAP_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBUNICAP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_UNICAP_TRUE}" && test -z "${HAVE_LIB_UNICAP_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_UNICAP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBV4L1_TRUE}" && test -z "${HAVE_LIB_LIBV4L1_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBV4L1\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_V4L_TRUE}" && test -z "${HAVE_V4L_FALSE}"; then + as_fn_error $? "conditional \"HAVE_V4L\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBV4L2_TRUE}" && test -z "${HAVE_LIB_LIBV4L2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBV4L2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_V4L2_TRUE}" && test -z "${HAVE_V4L2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_V4L2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_VFW32_TRUE}" && test -z "${HAVE_LIB_VFW32_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_VFW32\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBVLC_TRUE}" && test -z "${HAVE_LIB_LIBVLC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBVLC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_ASSIMP_TRUE}" && test -z "${HAVE_LIB_ASSIMP_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_ASSIMP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${ENABLED_TRUE}" && test -z "${ENABLED_FALSE}"; then + as_fn_error $? "conditional \"ENABLED\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${DISABLED_TRUE}" && test -z "${DISABLED_FALSE}"; then + as_fn_error $? "conditional \"DISABLED\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by Gem $as_me 0.93, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to . +Gem home page: ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +Gem config.status 0.93 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX +@%:@@%:@ Running $as_me. @%:@@%:@ +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' +PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' +predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' +postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' +predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' +postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' +LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' +reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' +reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' +GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' +inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' +link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' +always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' +exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' +predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' +postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' +predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' +postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in AS \ +DLLTOOL \ +OBJDUMP \ +SHELL \ +ECHO \ +PATH_SEPARATOR \ +SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +deplibs_check_method \ +file_magic_cmd \ +file_magic_glob \ +want_nocaseglob \ +sharedlib_from_linklib_cmd \ +AR \ +AR_FLAGS \ +archiver_list_spec \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +nm_file_list_spec \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_pic \ +lt_prog_compiler_wl \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +MANIFEST_TOOL \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_separator \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib \ +compiler_lib_search_dirs \ +predep_objects \ +postdep_objects \ +predeps \ +postdeps \ +compiler_lib_search_path \ +LD_CXX \ +reload_flag_CXX \ +compiler_CXX \ +lt_prog_compiler_no_builtin_flag_CXX \ +lt_prog_compiler_pic_CXX \ +lt_prog_compiler_wl_CXX \ +lt_prog_compiler_static_CXX \ +lt_cv_prog_compiler_c_o_CXX \ +export_dynamic_flag_spec_CXX \ +whole_archive_flag_spec_CXX \ +compiler_needs_object_CXX \ +with_gnu_ld_CXX \ +allow_undefined_flag_CXX \ +no_undefined_flag_CXX \ +hardcode_libdir_flag_spec_CXX \ +hardcode_libdir_separator_CXX \ +exclude_expsyms_CXX \ +include_expsyms_CXX \ +file_list_spec_CXX \ +compiler_lib_search_dirs_CXX \ +predep_objects_CXX \ +postdep_objects_CXX \ +predeps_CXX \ +postdeps_CXX \ +compiler_lib_search_path_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postlink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +sys_lib_dlsearch_path_spec \ +reload_cmds_CXX \ +old_archive_cmds_CXX \ +old_archive_from_new_cmds_CXX \ +old_archive_from_expsyms_cmds_CXX \ +archive_cmds_CXX \ +archive_expsym_cmds_CXX \ +module_cmds_CXX \ +module_expsym_cmds_CXX \ +export_symbols_cmds_CXX \ +prelink_cmds_CXX \ +postlink_cmds_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +ac_aux_dir='$ac_aux_dir' +xsi_shell='$xsi_shell' +lt_shell_append='$lt_shell_append' + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile' + + + + + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "abstractions/Makefile") CONFIG_FILES="$CONFIG_FILES abstractions/Makefile" ;; + "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "src/Gem/Makefile") CONFIG_FILES="$CONFIG_FILES src/Gem/Makefile" ;; + "src/Utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/Utils/Makefile" ;; + "src/RTE/Makefile") CONFIG_FILES="$CONFIG_FILES src/RTE/Makefile" ;; + "src/Base/Makefile") CONFIG_FILES="$CONFIG_FILES src/Base/Makefile" ;; + "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;; + "src/Output/Makefile") CONFIG_FILES="$CONFIG_FILES src/Output/Makefile" ;; + "src/deprecated/Makefile") CONFIG_FILES="$CONFIG_FILES src/deprecated/Makefile" ;; + "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; + "plugins/imageQT/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageQT/Makefile" ;; + "plugins/imageMAGICK/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageMAGICK/Makefile" ;; + "plugins/imageTIFF/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageTIFF/Makefile" ;; + "plugins/imageJPEG/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageJPEG/Makefile" ;; + "plugins/imageSGI/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageSGI/Makefile" ;; + "plugins/filmAVI/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmAVI/Makefile" ;; + "plugins/filmAVIPLAY/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmAVIPLAY/Makefile" ;; + "plugins/filmDS/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmDS/Makefile" ;; + "plugins/filmDarwin/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmDarwin/Makefile" ;; + "plugins/filmGMERLIN/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmGMERLIN/Makefile" ;; + "plugins/filmMPEG1/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmMPEG1/Makefile" ;; + "plugins/filmMPEG3/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmMPEG3/Makefile" ;; + "plugins/filmQT/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmQT/Makefile" ;; + "plugins/filmQT4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmQT4L/Makefile" ;; + "plugins/filmTEST/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmTEST/Makefile" ;; + "plugins/modelOBJ/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/modelOBJ/Makefile" ;; + "plugins/modelASSIMP2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/modelASSIMP2/Makefile" ;; + "plugins/recordQT/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordQT/Makefile" ;; + "plugins/recordQT4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordQT4L/Makefile" ;; + "plugins/recordV4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordV4L/Makefile" ;; + "plugins/recordV4L2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordV4L2/Makefile" ;; + "plugins/videoDC1394/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDC1394/Makefile" ;; + "plugins/videoDS/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDS/Makefile" ;; + "plugins/videoDV4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDV4L/Makefile" ;; + "plugins/videoDarwin/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDarwin/Makefile" ;; + "plugins/videoSGI/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoSGI/Makefile" ;; + "plugins/videoTEST/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoTEST/Makefile" ;; + "plugins/videoUNICAP/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoUNICAP/Makefile" ;; + "plugins/videoV4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoV4L/Makefile" ;; + "plugins/videoV4L2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoV4L2/Makefile" ;; + "plugins/videoVFW/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoVFW/Makefile" ;; + "plugins/videoVLC/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoVLC/Makefile" ;; + "extra/pix2jpg/Makefile") CONFIG_FILES="$CONFIG_FILES extra/pix2jpg/Makefile" ;; + "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; + "Gem.pc") CONFIG_FILES="$CONFIG_FILES Gem.pc" ;; + "Gem-meta.pd") CONFIG_FILES="$CONFIG_FILES Gem-meta.pd" ;; + "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "src/Controls/Makefile") CONFIG_FILES="$CONFIG_FILES src/Controls/Makefile" ;; + "src/Geos/Makefile") CONFIG_FILES="$CONFIG_FILES src/Geos/Makefile" ;; + "src/Manips/Makefile") CONFIG_FILES="$CONFIG_FILES src/Manips/Makefile" ;; + "src/Nongeos/Makefile") CONFIG_FILES="$CONFIG_FILES src/Nongeos/Makefile" ;; + "src/Particles/Makefile") CONFIG_FILES="$CONFIG_FILES src/Particles/Makefile" ;; + "src/Pixes/Makefile") CONFIG_FILES="$CONFIG_FILES src/Pixes/Makefile" ;; + "src/openGL/Makefile") CONFIG_FILES="$CONFIG_FILES src/openGL/Makefile" ;; + "src/Vertex/Makefile") CONFIG_FILES="$CONFIG_FILES src/Vertex/Makefile" ;; + "abstractions/gemdefaultwindow.pd") CONFIG_FILES="$CONFIG_FILES abstractions/gemdefaultwindow.pd" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) + + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +# The names of the tagged configurations supported by this script. +available_tags="CXX " + +# ### BEGIN LIBTOOL CONFIG + +# Assembler program. +AS=$lt_AS + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Object dumper program. +OBJDUMP=$lt_OBJDUMP + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# The PATH separator for the build system. +PATH_SEPARATOR=$lt_PATH_SEPARATOR + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method = "file_magic". +file_magic_cmd=$lt_file_magic_cmd + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + +# The archiver. +AR=$lt_AR + +# Flags to create an archive. +AR_FLAGS=$lt_AR_FLAGS + +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec + +# The root where to search for dependent libraries,and in which our libraries should be installed. +lt_sysroot=$lt_sysroot + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects +postdep_objects=$lt_postdep_objects +predeps=$lt_predeps +postdeps=$lt_postdeps + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + +ltmain="$ac_aux_dir/ltmain.sh" + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + if test x"$xsi_shell" = xyes; then + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ +func_dirname ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_basename ()$/,/^} # func_basename /c\ +func_basename ()\ +{\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ +func_dirname_and_basename ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ +func_stripname ()\ +{\ +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ +\ # positional parameters, so assign one to ordinary parameter first.\ +\ func_stripname_result=${3}\ +\ func_stripname_result=${func_stripname_result#"${1}"}\ +\ func_stripname_result=${func_stripname_result%"${2}"}\ +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ +func_split_long_opt ()\ +{\ +\ func_split_long_opt_name=${1%%=*}\ +\ func_split_long_opt_arg=${1#*=}\ +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ +func_split_short_opt ()\ +{\ +\ func_split_short_opt_arg=${1#??}\ +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ +func_lo2o ()\ +{\ +\ case ${1} in\ +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ +\ *) func_lo2o_result=${1} ;;\ +\ esac\ +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_xform ()$/,/^} # func_xform /c\ +func_xform ()\ +{\ + func_xform_result=${1%.*}.lo\ +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_arith ()$/,/^} # func_arith /c\ +func_arith ()\ +{\ + func_arith_result=$(( $* ))\ +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_len ()$/,/^} # func_len /c\ +func_len ()\ +{\ + func_len_result=${#1}\ +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + +fi + +if test x"$lt_shell_append" = xyes; then + sed -e '/^func_append ()$/,/^} # func_append /c\ +func_append ()\ +{\ + eval "${1}+=\\${2}"\ +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ +func_append_quoted ()\ +{\ +\ func_quote_for_eval "${2}"\ +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} +fi + + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + + + cat <<_LT_EOF >> "$ofile" + +# ### BEGIN LIBTOOL TAG CONFIG: CXX + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# How to create reloadable object files. +reload_flag=$lt_reload_flag_CXX +reload_cmds=$lt_reload_cmds_CXX + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_CXX + +# A language specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU compiler? +with_gcc=$GCC_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_CXX + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_CXX + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_CXX + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_CXX + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds_CXX + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_CXX + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_CXX +postdep_objects=$lt_postdep_objects_CXX +predeps=$lt_predeps_CXX +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# ### END LIBTOOL TAG CONFIG: CXX +_LT_EOF + + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi + +# +# CONFIG_SUBDIRS section. +# +if test "$no_recursion" != yes; then + + # Remove --cache-file, --srcdir, and --disable-option-checking arguments + # so they do not pile up. + ac_sub_configure_args= + ac_prev= + eval "set x $ac_configure_args" + shift + for ac_arg + do + if test -n "$ac_prev"; then + ac_prev= + continue + fi + case $ac_arg in + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ + | --c=*) + ;; + --config-cache | -C) + ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + ;; + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + ;; + --disable-option-checking) + ;; + *) + case $ac_arg in + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append ac_sub_configure_args " '$ac_arg'" ;; + esac + done + + # Always prepend --prefix to ensure using the same prefix + # in subdir configurations. + ac_arg="--prefix=$prefix" + case $ac_arg in + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" + + # Pass --silent + if test "$silent" = yes; then + ac_sub_configure_args="--silent $ac_sub_configure_args" + fi + + # Always prepend --disable-option-checking to silence warnings, since + # different subdirs can have different --enable and --with options. + ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" + + ac_popdir=`pwd` + for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue + + # Do not complain, so a configure script can configure whichever + # parts of a large source tree are present. + test -d "$srcdir/$ac_dir" || continue + + ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" + $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 + $as_echo "$ac_msg" >&6 + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + cd "$ac_dir" + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f "$ac_srcdir/configure.gnu"; then + ac_sub_configure=$ac_srcdir/configure.gnu + elif test -f "$ac_srcdir/configure"; then + ac_sub_configure=$ac_srcdir/configure + elif test -f "$ac_srcdir/configure.in"; then + # This should be Cygnus configure. + ac_sub_configure=$ac_aux_dir/configure + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 +$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} + ac_sub_configure= + fi + + # The recursion is here. + if test -n "$ac_sub_configure"; then + # Make the cache file name correct relative to the subdirectory. + case $cache_file in + [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; + *) # Relative name. + ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} + # The eval makes quoting arguments work. + eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ + --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || + as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 + fi + + cd "$ac_popdir" + done +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + + +if test "x$have_ftgl" = "xyes"; then + have_font=FTGL +fi + +if test "x$have_ImageMagick" = "xyes"; then + have_ImageMagick="yes (Magick++)" +else + if test "x$have_MagickCore" = "xyes"; then + have_ImageMagick="yes (MagickCore)" + fi +fi + +if test "x$have_quicktime_framework" = "x"; then have_quicktime_framework="no"; fi + +if test "x$have_quicktime_framework" = "xyes"; then + have_libquicktime="yes (framework)" +fi + +have_ieee1394="" +if test "x$have_libdc1394_2" = "xyes"; then + have_ieee1394="$have_ieee1394 libdc1394" +fi + +if test "x$have_ieee1394" = "x"; then + have_ieee1394="no"; +else + have_ieee1394="yes (${have_ieee1394# })" +fi + +if test "x${have_v4l}" = "x"; then have_v4l="no"; fi +if test "x${have_v4l2}" = "x"; then have_v4l2="no"; fi +if test "x${have_ieee1394}" = "x"; then have_ieee1394="no"; fi +if test "x${have_libdv}" = "x"; then have_libdv="no"; fi +if test "x${have_unicap}" = "x"; then have_unicap="no"; fi +if test "x${have_vfw32}" = "x"; then have_vfw32="no"; fi +# TODO: have_ds + +if test "x$with_film" = "xplugins"; then + use_film_plugins="yes" +else + use_film_plugins="no (using $with_film backend)" +fi + +if test "x$with_video" = "xplugins"; then + use_video_plugins="yes" +else + use_video_plugins="no (using $with_video backend)" +fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: +Result: + Target : Gem.${EXT} + Objects : ${GEM_TARGETS} + default window : ${GEM_DEFAULT_WINDOW} + +Configuration: + Compiler : ${CXX} + CXXFLAGS : ${CXXFLAGS} ${X_CFLAGS} + : ${PKG_CFLAGS} + DEFINES : ${DEFINES} + + LIBS : ${LIBS} + : ${PKG_LIBS} + LDFLAGS : ${LDFLAGS} + : ${X_LIBS} + + Install path : ${prefix} + + RTE (${GEM_RTE}): + external-extension : ${GEM_RTE_EXTENSION} + CFLAGS : ${GEM_RTE_CFLAGS} + LIBS : ${GEM_RTE_LIBS} + + used optional libraries: + + font-rendering : ${have_font} + default font : ${GEM_DEFAULT_FONT} + + image-support + use ImageMagick : ${have_ImageMagick} + use QuickTime : ${have_quicktime_framework} + use TIFF : ${have_tiff} + use JPEG : ${have_jpeg} + moviefile-support + use PLUGINS : ${use_film_plugins} + use mpeg : ${have_mpeg} + use mpeg-3 : ${have_libmpeg3} + use QuickTime : ${have_libquicktime} + use aviplay : ${have_avifile} + use gmerlin : ${have_gmerlin_avdec} + capture-support + use PLUGINS : ${use_video_plugins} + use v4l : ${have_v4l} + use v4l2 : ${have_v4l2} + use ieee1394 : ${have_ieee1394} + use DV : ${have_libdv} + use Unicap : ${have_unicap} + use Video-for-WinDOS : ${have_vfw32} + use QuickTime : ${have_quicktime_framework} +" >&5 +$as_echo " +Result: + Target : Gem.${EXT} + Objects : ${GEM_TARGETS} + default window : ${GEM_DEFAULT_WINDOW} + +Configuration: + Compiler : ${CXX} + CXXFLAGS : ${CXXFLAGS} ${X_CFLAGS} + : ${PKG_CFLAGS} + DEFINES : ${DEFINES} + + LIBS : ${LIBS} + : ${PKG_LIBS} + LDFLAGS : ${LDFLAGS} + : ${X_LIBS} + + Install path : ${prefix} + + RTE (${GEM_RTE}): + external-extension : ${GEM_RTE_EXTENSION} + CFLAGS : ${GEM_RTE_CFLAGS} + LIBS : ${GEM_RTE_LIBS} + + used optional libraries: + + font-rendering : ${have_font} + default font : ${GEM_DEFAULT_FONT} + + image-support + use ImageMagick : ${have_ImageMagick} + use QuickTime : ${have_quicktime_framework} + use TIFF : ${have_tiff} + use JPEG : ${have_jpeg} + moviefile-support + use PLUGINS : ${use_film_plugins} + use mpeg : ${have_mpeg} + use mpeg-3 : ${have_libmpeg3} + use QuickTime : ${have_libquicktime} + use aviplay : ${have_avifile} + use gmerlin : ${have_gmerlin_avdec} + capture-support + use PLUGINS : ${use_video_plugins} + use v4l : ${have_v4l} + use v4l2 : ${have_v4l2} + use ieee1394 : ${have_ieee1394} + use DV : ${have_libdv} + use Unicap : ${have_unicap} + use Video-for-WinDOS : ${have_vfw32} + use QuickTime : ${have_quicktime_framework} +" >&6; } + +if test "x$have_pd" = "xno"; then + as_fn_error $? "Pd (header) is mandatory and seems to be missing!" "$LINENO" 5 +fi + +if test "x$no_gl" = "xyes"; then + as_fn_error $? "GL (headers) not found! you need openGL!!!" "$LINENO" 5 +fi + +if test "x$no_glu" = "xyes" && test "x$no_agl" = "xyes"; then + as_fn_error $? "GLU (headers) not found! you need openGL Utility Library!!!" "$LINENO" 5 +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Now run make ..." >&5 +$as_echo "Now run make ..." >&6; } diff --git a/src/Gem/autom4te.cache/output.1 b/src/Gem/autom4te.cache/output.1 new file mode 100644 index 0000000..b8d97ee --- /dev/null +++ b/src/Gem/autom4te.cache/output.1 @@ -0,0 +1,33455 @@ +@%:@! /bin/sh +@%:@ Guess values for system-dependent variables and create Makefiles. +@%:@ Generated by GNU Autoconf 2.69 for Gem 0.93. +@%:@ +@%:@ Report bugs to . +@%:@ +@%:@ +@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +@%:@ +@%:@ +@%:@ This configure script is free software; the Free Software Foundation +@%:@ gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in @%:@( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and zmoelnig@iem.at +$0: about your system, including any error possibly output +$0: before this message. Then install a modern shell, or +$0: manually run the script under such a shell if you do +$0: have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + +SHELL=${CONFIG_SHELL-/bin/sh} + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIB@&t@OBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='Gem' +PACKAGE_TARNAME='Gem' +PACKAGE_VERSION='0.93' +PACKAGE_STRING='Gem 0.93' +PACKAGE_BUGREPORT='zmoelnig@iem.at' +PACKAGE_URL='http://gem.iem.at' + +ac_unique_file="src/Base/GemBase.h" +enable_option_checking=no +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_header_list= +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +DISABLED_FALSE +DISABLED_TRUE +ENABLED_FALSE +ENABLED_TRUE +GEM_DEFAULT_WINDOW +GEM_ARCH_LDFLAGS +GEM_ARCH_CXXFLAGS +MAKEDEP_FLAGS +LIB@&t@OBJS +GEM_PTHREAD_LIBS +GEM_PTHREAD_CFLAGS +HAVE_LIB_ASSIMP_FALSE +HAVE_LIB_ASSIMP_TRUE +PKG_ASSIMP_LIBS +PKG_ASSIMP_CFLAGS +GEM_LIB_ASSIMP_LIBS +GEM_LIB_ASSIMP_CFLAGS +HAVE_LIB_LIBVLC_FALSE +HAVE_LIB_LIBVLC_TRUE +PKG_LIBVLC_LIBS +PKG_LIBVLC_CFLAGS +GEM_LIB_LIBVLC_LIBS +GEM_LIB_LIBVLC_CFLAGS +HAVE_LIB_VFW32_FALSE +HAVE_LIB_VFW32_TRUE +PKG_VFW32_LIBS +PKG_VFW32_CFLAGS +GEM_LIB_VFW32_LIBS +GEM_LIB_VFW32_CFLAGS +HAVE_V4L2_FALSE +HAVE_V4L2_TRUE +HAVE_LIB_LIBV4L2_FALSE +HAVE_LIB_LIBV4L2_TRUE +PKG_LIBV4L2_LIBS +PKG_LIBV4L2_CFLAGS +GEM_LIB_LIBV4L2_LIBS +GEM_LIB_LIBV4L2_CFLAGS +HAVE_V4L_FALSE +HAVE_V4L_TRUE +HAVE_LIB_LIBV4L1_FALSE +HAVE_LIB_LIBV4L1_TRUE +PKG_LIBV4L1_LIBS +PKG_LIBV4L1_CFLAGS +GEM_LIB_LIBV4L1_LIBS +GEM_LIB_LIBV4L1_CFLAGS +HAVE_LIB_UNICAP_FALSE +HAVE_LIB_UNICAP_TRUE +HAVE_LIB_LIBUNICAP_FALSE +HAVE_LIB_LIBUNICAP_TRUE +PKG_LIBUNICAP_LIBS +PKG_LIBUNICAP_CFLAGS +GEM_LIB_LIBUNICAP_LIBS +GEM_LIB_LIBUNICAP_CFLAGS +HAVE_LIB_LIBIEC61883_FALSE +HAVE_LIB_LIBIEC61883_TRUE +PKG_LIBIEC61883_LIBS +PKG_LIBIEC61883_CFLAGS +GEM_LIB_LIBIEC61883_LIBS +GEM_LIB_LIBIEC61883_CFLAGS +HAVE_LIB_LIBRAW1394_FALSE +HAVE_LIB_LIBRAW1394_TRUE +PKG_LIBRAW1394_LIBS +PKG_LIBRAW1394_CFLAGS +GEM_LIB_LIBRAW1394_LIBS +GEM_LIB_LIBRAW1394_CFLAGS +HAVE_LIB_LIBDV_FALSE +HAVE_LIB_LIBDV_TRUE +PKG_LIBDV_LIBS +PKG_LIBDV_CFLAGS +GEM_LIB_LIBDV_LIBS +GEM_LIB_LIBDV_CFLAGS +HAVE_LIB_LIBDC1394_2_FALSE +HAVE_LIB_LIBDC1394_2_TRUE +PKG_LIBDC1394_2_LIBS +PKG_LIBDC1394_2_CFLAGS +GEM_LIB_LIBDC1394_2_LIBS +GEM_LIB_LIBDC1394_2_CFLAGS +HAVE_LIB_LQT_FALSE +HAVE_LIB_LQT_TRUE +PKG_LQT_LIBS +PKG_LQT_CFLAGS +GEM_LIB_LQT_LIBS +GEM_LIB_LQT_CFLAGS +HAVE_LIB_LIBQUICKTIME_FALSE +HAVE_LIB_LIBQUICKTIME_TRUE +PKG_LIBQUICKTIME_LIBS +PKG_LIBQUICKTIME_CFLAGS +GEM_LIB_LIBQUICKTIME_LIBS +GEM_LIB_LIBQUICKTIME_CFLAGS +HAVE_LIB_LIBMPEG3_FALSE +HAVE_LIB_LIBMPEG3_TRUE +PKG_LIBMPEG3_LIBS +PKG_LIBMPEG3_CFLAGS +GEM_LIB_LIBMPEG3_LIBS +GEM_LIB_LIBMPEG3_CFLAGS +HAVE_LIB_MPEG_FALSE +HAVE_LIB_MPEG_TRUE +PKG_MPEG_LIBS +PKG_MPEG_CFLAGS +GEM_LIB_MPEG_LIBS +GEM_LIB_MPEG_CFLAGS +HAVE_LIB_GMERLIN_AVDEC_FALSE +HAVE_LIB_GMERLIN_AVDEC_TRUE +PKG_GMERLIN_AVDEC_LIBS +PKG_GMERLIN_AVDEC_CFLAGS +GEM_LIB_GMERLIN_AVDEC_LIBS +GEM_LIB_GMERLIN_AVDEC_CFLAGS +HAVE_LIB_AVIFILE_FALSE +HAVE_LIB_AVIFILE_TRUE +PKG_AVIFILE_LIBS +PKG_AVIFILE_CFLAGS +GEM_LIB_AVIFILE_LIBS +GEM_LIB_AVIFILE_CFLAGS +HAVE_LIB_FRIBIDI_FALSE +HAVE_LIB_FRIBIDI_TRUE +PKG_FRIBIDI_LIBS +PKG_FRIBIDI_CFLAGS +GEM_LIB_FRIBIDI_LIBS +GEM_LIB_FRIBIDI_CFLAGS +HAVE_LIB_FTGL_FALSE +HAVE_LIB_FTGL_TRUE +PKG_FTGL_LIBS +PKG_FTGL_CFLAGS +GEM_LIB_FTGL_LIBS +GEM_LIB_FTGL_CFLAGS +HAVE_LIB_JPEG_FALSE +HAVE_LIB_JPEG_TRUE +PKG_JPEG_LIBS +PKG_JPEG_CFLAGS +GEM_LIB_JPEG_LIBS +GEM_LIB_JPEG_CFLAGS +HAVE_LIB_TIFF_FALSE +HAVE_LIB_TIFF_TRUE +PKG_TIFF_LIBS +PKG_TIFF_CFLAGS +GEM_LIB_TIFF_LIBS +GEM_LIB_TIFF_CFLAGS +HAVE_LIB_MAGICKCORE_FALSE +HAVE_LIB_MAGICKCORE_TRUE +PKG_MAGICKCORE_LIBS +PKG_MAGICKCORE_CFLAGS +GEM_LIB_MAGICKCORE_LIBS +GEM_LIB_MAGICKCORE_CFLAGS +HAVE_LIB_IMAGEMAGICK___FALSE +HAVE_LIB_IMAGEMAGICK___TRUE +PKG_IMAGEMAGICK___LIBS +PKG_IMAGEMAGICK___CFLAGS +GEM_LIB_IMAGEMAGICK___LIBS +GEM_LIB_IMAGEMAGICK___CFLAGS +VIDEODARWIN_FALSE +VIDEODARWIN_TRUE +HAVE_FRAMEWORK_QUICKTIME_FALSE +HAVE_FRAMEWORK_QUICKTIME_TRUE +GEM_FRAMEWORK_QUICKTIME +HAVE_FRAMEWORK_CARBON_FALSE +HAVE_FRAMEWORK_CARBON_TRUE +GEM_FRAMEWORK_CARBON +HAVE_FRAMEWORK_COCOA_FALSE +HAVE_FRAMEWORK_COCOA_TRUE +GEM_FRAMEWORK_COCOA +HAVE_LIB_SDL_FALSE +HAVE_LIB_SDL_TRUE +PKG_SDL_LIBS +PKG_SDL_CFLAGS +GEM_LIB_SDL_LIBS +GEM_LIB_SDL_CFLAGS +HAVE_LIB_GLEW_FALSE +HAVE_LIB_GLEW_TRUE +PKG_GLEW_LIBS +PKG_GLEW_CFLAGS +PKG_CONFIG +GEM_LIB_GLEW_LIBS +GEM_LIB_GLEW_CFLAGS +HAVE_AGL_FALSE +HAVE_AGL_TRUE +AGL_LIBS +AGL_CFLAGS +HAVE_FRAMEWORK_AGL_FALSE +HAVE_FRAMEWORK_AGL_TRUE +GEM_FRAMEWORK_AGL +GLX_LIBS +GLX_CFLAGS +HAVE_GLX_FALSE +HAVE_GLX_TRUE +HAVE_GLUT_FALSE +HAVE_GLUT_TRUE +GLUT_LIBS +GLUT_CFLAGS +HAVE_GLU_FALSE +HAVE_GLU_TRUE +GLU_LIBS +GLU_CFLAGS +HAVE_GL_FALSE +HAVE_GL_TRUE +GL_LIBS +GL_CFLAGS +PTHREAD_CFLAGS +PTHREAD_LIBS +PTHREAD_CC +ax_pthread_config +XMKMF +TARGET_VERTEX_FALSE +TARGET_VERTEX_TRUE +TARGET_OPENGL_FALSE +TARGET_OPENGL_TRUE +TARGET_PIXES_FALSE +TARGET_PIXES_TRUE +TARGET_PARTICLES_FALSE +TARGET_PARTICLES_TRUE +TARGET_NONGEOS_FALSE +TARGET_NONGEOS_TRUE +TARGET_MANIPS_FALSE +TARGET_MANIPS_TRUE +TARGET_GEOS_FALSE +TARGET_GEOS_TRUE +TARGET_CONTROLS_FALSE +TARGET_CONTROLS_TRUE +GEM_EXTERNAL_LIBS +GEM_EXTERNAL_CFLAGS +GEM_EXTERNAL_CPPFLAGS +GEM_LIBS +GEM_CXXFLAGS +GEM_CFLAGS +GEM_CPPFLAGS +GEM_RTE_EXTENSION +GEM_RTE +GEM_RTE_LIBS +GEM_RTE_CFLAGS +IRIX_FALSE +IRIX_TRUE +HURD_FALSE +HURD_TRUE +MINGW_FALSE +MINGW_TRUE +CYGWIN_FALSE +CYGWIN_TRUE +WINDOWS_FALSE +WINDOWS_TRUE +BSD_FALSE +BSD_TRUE +IPHONEOS_FALSE +IPHONEOS_TRUE +MACOSX_FALSE +MACOSX_TRUE +ANDROID_FALSE +ANDROID_TRUE +LINUX_FALSE +LINUX_TRUE +CPP +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +MANIFEST_TOOL +RANLIB +ac_ct_AR +AR +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +EGREP +GREP +SED +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +ac_ct_CC +CFLAGS +CC +LIBTOOL +OBJDUMP +DLLTOOL +AS +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +ac_ct_OBJCXX +OBJCXXFLAGS +OBJCXX +am__fastdepOBJC_FALSE +am__fastdepOBJC_TRUE +OBJCDEPMODE +ac_ct_OBJC +OBJCFLAGS +OBJC +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CXX +LDFLAGS +PKG_LIBS +PKG_CFLAGS +X_EXTRA_LIBS +X_LIBS +X_PRE_LIBS +X_CFLAGS +DEFINES +CPPFLAGS +CXXFLAGS +EXT +GEM_TARGETS +CXX +CXXCPP +subdirs +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_dependency_tracking +enable_shared +enable_static +with_pic +enable_fast_install +with_gnu_ld +with_sysroot +enable_libtool_lock +with_ALL +with_pd +with_extension +enable_mmx +enable_sse2 +enable_altivec +enable_powerpc +enable_pascalstrings +enable_registerstruct +enable_Controls +enable_Geos +enable_Manips +enable_Nongeos +enable_Particles +enable_Pixes +enable_openGL +enable_Vertex +with_x +with_glew +with_glew_includes +with_glew_libs +with_sdl +with_sdl_includes +with_sdl_libs +with_ImageMagick +with_ImageMagick_includes +with_ImageMagick_libs +with_MagickCore +with_MagickCore_includes +with_MagickCore_libs +with_tiff +with_tiff_includes +with_tiff_libs +with_jpeg +with_jpeg_includes +with_jpeg_libs +with_ftgl +with_ftgl_includes +with_ftgl_libs +with_fribidi +with_fribidi_includes +with_fribidi_libs +with_avifile +with_avifile_includes +with_avifile_libs +with_gmerlin_avdec +with_gmerlin_avdec_includes +with_gmerlin_avdec_libs +with_mpeg +with_mpeg_includes +with_mpeg_libs +with_libmpeg3 +with_libmpeg3_includes +with_libmpeg3_libs +with_libquicktime +with_libquicktime_includes +with_libquicktime_libs +with_lqt +with_lqt_includes +with_lqt_libs +with_libdc1394_2 +with_libdc1394_2_includes +with_libdc1394_2_libs +with_libdv +with_libdv_includes +with_libdv_libs +with_libraw1394 +with_libraw1394_includes +with_libraw1394_libs +with_libiec61883 +with_libiec61883_includes +with_libiec61883_libs +with_unicap +with_libunicap +with_libunicap_includes +with_libunicap_libs +with_v4l +with_libv4l1 +with_libv4l1_includes +with_libv4l1_libs +with_v4l2 +with_libv4l2 +with_libv4l2_includes +with_libv4l2_libs +with_vfw32 +with_vfw32_includes +with_vfw32_libs +with_libvlc +with_libvlc_includes +with_libvlc_libs +with_assimp +with_assimp_includes +with_assimp_libs +with_default_font +enable_threads +with_video +with_film +enable_fat_binary +with_defaultwindow +' + ac_precious_vars='build_alias +host_alias +target_alias +CXX +CXXFLAGS +LDFLAGS +LIBS +CPPFLAGS +CCC +OBJC +OBJCFLAGS +OBJCXX +OBJCXXFLAGS +CC +CFLAGS +CPP +CXXCPP +XMKMF +PKG_CONFIG +PKG_GLEW_CFLAGS +PKG_GLEW_LIBS +PKG_SDL_CFLAGS +PKG_SDL_LIBS +PKG_IMAGEMAGICK___CFLAGS +PKG_IMAGEMAGICK___LIBS +PKG_MAGICKCORE_CFLAGS +PKG_MAGICKCORE_LIBS +PKG_TIFF_CFLAGS +PKG_TIFF_LIBS +PKG_JPEG_CFLAGS +PKG_JPEG_LIBS +PKG_FTGL_CFLAGS +PKG_FTGL_LIBS +PKG_FRIBIDI_CFLAGS +PKG_FRIBIDI_LIBS +PKG_AVIFILE_CFLAGS +PKG_AVIFILE_LIBS +PKG_GMERLIN_AVDEC_CFLAGS +PKG_GMERLIN_AVDEC_LIBS +PKG_MPEG_CFLAGS +PKG_MPEG_LIBS +PKG_LIBMPEG3_CFLAGS +PKG_LIBMPEG3_LIBS +PKG_LIBQUICKTIME_CFLAGS +PKG_LIBQUICKTIME_LIBS +PKG_LQT_CFLAGS +PKG_LQT_LIBS +PKG_LIBDC1394_2_CFLAGS +PKG_LIBDC1394_2_LIBS +PKG_LIBDV_CFLAGS +PKG_LIBDV_LIBS +PKG_LIBRAW1394_CFLAGS +PKG_LIBRAW1394_LIBS +PKG_LIBIEC61883_CFLAGS +PKG_LIBIEC61883_LIBS +PKG_LIBUNICAP_CFLAGS +PKG_LIBUNICAP_LIBS +PKG_LIBV4L1_CFLAGS +PKG_LIBV4L1_LIBS +PKG_LIBV4L2_CFLAGS +PKG_LIBV4L2_LIBS +PKG_VFW32_CFLAGS +PKG_VFW32_LIBS +PKG_LIBVLC_CFLAGS +PKG_LIBVLC_LIBS +PKG_ASSIMP_CFLAGS +PKG_ASSIMP_LIBS' +ac_subdirs_all='extra +plugins/videoAVT +plugins/videoHALCON +plugins/videoPYLON' + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures Gem 0.93 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + @<:@@S|@ac_default_prefix@:>@ + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + @<:@PREFIX@:>@ + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root @<:@DATAROOTDIR/doc/Gem@:>@ + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +X features: + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of Gem 0.93:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ + --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ + --enable-fast-install@<:@=PKGS@:>@ + optimize for fast installation @<:@default=yes@:>@ + --disable-libtool-lock avoid locking (might break parallel builds) + --disable-mmx disable mmx (MMX-support) + --enable-sse2 enable sse2 (SSE2-support) + --disable-altivec disable altivec (AltiVec-support) + --enable-powerpc enable powerpc (PowerPC specific optimizations) + --disable-pascalstrings disable pascalstrings (containing '\p') + --disable-registerstruct + disable registerstruct (use \"-freg-struct-return\" + (needed for FreeFrame)) + --disable-Controls disable Controls-objects + --disable-Geos disable Geos-objects + --disable-Manips disable Manips-objects + --disable-Nongeos disable Nongeos-objects + --disable-Particles disable Particles-objects + --disable-Pixes disable Pixes-objects + --disable-openGL disable openGL-objects + --enable-Vertex enable Vertex-objects + --disable-threads disable threads (default: use threads) + --enable-fat-binary=ARCHS + build an Apple Multi Architecture Binary (MAB); + ARCHS is a comma-delimited list of architectures for + which to build; if ARCHS is omitted, then the package + will be built for all architectures supported by the + platform (e.g. "ppc,i386" for MacOS/X and Darwin); + if this option is disabled or omitted entirely, then + the package will be built only for the target + platform; when building multiple architectures, + dependency-tracking must be disabled + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use + both@:>@ + --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ + --with-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + --without-ALL en/disable ALL libraries by default + --with-pd= where to find pd-binary (./bin/pd.exe) and + pd-sources + --with-extension= enforce a certain file-extension (e.g. pd_linux) + --with-x use the X Window System + --without-glew disable glew (OpenGL Extension Wrangler library) + --with-glew-includes=/path/to/glew/include/ + include path for glew + --with-glew-libs=/path/to/glew/lib/ + library path for glew + --without-sdl disable sdl (SDL windowing) + --with-sdl-includes=/path/to/sdl/include/ + include path for sdl + --with-sdl-libs=/path/to/sdl/lib/ + library path for sdl + --without-ImageMagick disable ImageMagick (image loader) + --with-ImageMagick-includes=/path/to/ImageMagick/include/ + include path for ImageMagick + --with-ImageMagick-libs=/path/to/ImageMagick/lib/ + library path for ImageMagick + --without-MagickCore disable MagickCore (image loader) + --with-MagickCore-includes=/path/to/MagickCore/include/ + include path for MagickCore + --with-MagickCore-libs=/path/to/MagickCore/lib/ + library path for MagickCore + --without-tiff disable tiff (image loader) + --with-tiff-includes=/path/to/tiff/include/ + include path for tiff + --with-tiff-libs=/path/to/tiff/lib/ + library path for tiff + --without-jpeg disable jpeg (image loader) + --with-jpeg-includes=/path/to/jpeg/include/ + include path for jpeg + --with-jpeg-libs=/path/to/jpeg/lib/ + library path for jpeg + --without-ftgl disable ftgl (font support) + --with-ftgl-includes=/path/to/ftgl/include/ + include path for ftgl + --with-ftgl-libs=/path/to/ftgl/lib/ + library path for ftgl + --without-fribidi disable fribidi (bidrectional text rendering using + FriBidi) + --with-fribidi-includes=/path/to/fribidi/include/ + include path for fribidi + --with-fribidi-libs=/path/to/fribidi/lib/ + library path for fribidi + --without-avifile disable avifile (movie loader) + --with-avifile-includes=/path/to/avifile/include/ + include path for avifile + --with-avifile-libs=/path/to/avifile/lib/ + library path for avifile + --without-gmerlin_avdec disable gmerlin_avdec (movie loader) + --with-gmerlin_avdec-includes=/path/to/gmerlin_avdec/include/ + include path for gmerlin_avdec + --with-gmerlin_avdec-libs=/path/to/gmerlin_avdec/lib/ + library path for gmerlin_avdec + --without-mpeg disable mpeg (movie loader) + --with-mpeg-includes=/path/to/mpeg/include/ + include path for mpeg + --with-mpeg-libs=/path/to/mpeg/lib/ + library path for mpeg + --without-libmpeg3 disable libmpeg3 (movie loader) + --with-libmpeg3-includes=/path/to/libmpeg3/include/ + include path for libmpeg3 + --with-libmpeg3-libs=/path/to/libmpeg3/lib/ + library path for libmpeg3 + --without-libquicktime disable libquicktime (movie loader) + --with-libquicktime-includes=/path/to/libquicktime/include/ + include path for libquicktime + --with-libquicktime-libs=/path/to/libquicktime/lib/ + library path for libquicktime + --without-lqt disable lqt (movie loader) + --with-lqt-includes=/path/to/lqt/include/ + include path for lqt + --with-lqt-libs=/path/to/lqt/lib/ + library path for lqt + --without-libdc1394_2 disable libdc1394_2 (video input) + --with-libdc1394_2-includes=/path/to/libdc1394_2/include/ + include path for libdc1394_2 + --with-libdc1394_2-libs=/path/to/libdc1394_2/lib/ + library path for libdc1394_2 + --without-libdv disable libdv (video input) + --with-libdv-includes=/path/to/libdv/include/ + include path for libdv + --with-libdv-libs=/path/to/libdv/lib/ + library path for libdv + --without-libraw1394 disable libraw1394 (video input) + --with-libraw1394-includes=/path/to/libraw1394/include/ + include path for libraw1394 + --with-libraw1394-libs=/path/to/libraw1394/lib/ + library path for libraw1394 + --without-libiec61883 disable libiec61883 (video input) + --with-libiec61883-includes=/path/to/libiec61883/include/ + include path for libiec61883 + --with-libiec61883-libs=/path/to/libiec61883/lib/ + library path for libiec61883 + --without-unicap disable unicap-lib (video input) + --without-libunicap disable libunicap (video input) + --with-libunicap-includes=/path/to/libunicap/include/ + include path for libunicap + --with-libunicap-libs=/path/to/libunicap/lib/ + library path for libunicap + --without-v4l disable v4l-lib (video input) + --without-libv4l1 disable libv4l1 (video output) + --with-libv4l1-includes=/path/to/libv4l1/include/ + include path for libv4l1 + --with-libv4l1-libs=/path/to/libv4l1/lib/ + library path for libv4l1 + --without-v4l2 disable v4l2-lib (video input) + --without-libv4l2 disable libv4l2 (video input) + --with-libv4l2-includes=/path/to/libv4l2/include/ + include path for libv4l2 + --with-libv4l2-libs=/path/to/libv4l2/lib/ + library path for libv4l2 + --without-vfw32 disable vfw32 (video input) + --with-vfw32-includes=/path/to/vfw32/include/ + include path for vfw32 + --with-vfw32-libs=/path/to/vfw32/lib/ + library path for vfw32 + --without-libvlc disable libvlc (video input) + --with-libvlc-includes=/path/to/libvlc/include/ + include path for libvlc + --with-libvlc-libs=/path/to/libvlc/lib/ + library path for libvlc + --without-assimp disable assimp (3D model loading) + --with-assimp-includes=/path/to/assimp/include/ + include path for assimp + --with-assimp-libs=/path/to/assimp/lib/ + library path for assimp + --with-default-font=vera.ttf + specify the default font for text-rendering + + --with-video=plugins|Darwin|DS|NT + use plugins for video capture or OS-specific + "pix_video" + --with-film=plugins|Darwin + use plugins for video decoding or OS-specific + "pix_film" + --with-defaultwindow=<> specify default window backend (default: auto) + +Some influential environment variables: + CXX C++ compiler command + CXXFLAGS C++ compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + OBJC Objective C compiler command + OBJCFLAGS Objective C compiler flags + OBJCXX Objective C++ compiler command + OBJCXXFLAGS Objective C++ compiler flags + CC C compiler command + CFLAGS C compiler flags + CPP C preprocessor + CXXCPP C++ preprocessor + XMKMF Path to xmkmf, Makefile generator for X Window System + PKG_CONFIG path to pkg-config utility + PKG_GLEW_CFLAGS + C compiler flags for PKG_GLEW, overriding pkg-config + PKG_GLEW_LIBS + linker flags for PKG_GLEW, overriding pkg-config + PKG_SDL_CFLAGS + C compiler flags for PKG_SDL, overriding pkg-config + PKG_SDL_LIBS + linker flags for PKG_SDL, overriding pkg-config + PKG_IMAGEMAGICK___CFLAGS + C compiler flags for PKG_IMAGEMAGICK__, overriding pkg-config + PKG_IMAGEMAGICK___LIBS + linker flags for PKG_IMAGEMAGICK__, overriding pkg-config + PKG_MAGICKCORE_CFLAGS + C compiler flags for PKG_MAGICKCORE, overriding pkg-config + PKG_MAGICKCORE_LIBS + linker flags for PKG_MAGICKCORE, overriding pkg-config + PKG_TIFF_CFLAGS + C compiler flags for PKG_TIFF, overriding pkg-config + PKG_TIFF_LIBS + linker flags for PKG_TIFF, overriding pkg-config + PKG_JPEG_CFLAGS + C compiler flags for PKG_JPEG, overriding pkg-config + PKG_JPEG_LIBS + linker flags for PKG_JPEG, overriding pkg-config + PKG_FTGL_CFLAGS + C compiler flags for PKG_FTGL, overriding pkg-config + PKG_FTGL_LIBS + linker flags for PKG_FTGL, overriding pkg-config + PKG_FRIBIDI_CFLAGS + C compiler flags for PKG_FRIBIDI, overriding pkg-config + PKG_FRIBIDI_LIBS + linker flags for PKG_FRIBIDI, overriding pkg-config + PKG_AVIFILE_CFLAGS + C compiler flags for PKG_AVIFILE, overriding pkg-config + PKG_AVIFILE_LIBS + linker flags for PKG_AVIFILE, overriding pkg-config + PKG_GMERLIN_AVDEC_CFLAGS + C compiler flags for PKG_GMERLIN_AVDEC, overriding pkg-config + PKG_GMERLIN_AVDEC_LIBS + linker flags for PKG_GMERLIN_AVDEC, overriding pkg-config + PKG_MPEG_CFLAGS + C compiler flags for PKG_MPEG, overriding pkg-config + PKG_MPEG_LIBS + linker flags for PKG_MPEG, overriding pkg-config + PKG_LIBMPEG3_CFLAGS + C compiler flags for PKG_LIBMPEG3, overriding pkg-config + PKG_LIBMPEG3_LIBS + linker flags for PKG_LIBMPEG3, overriding pkg-config + PKG_LIBQUICKTIME_CFLAGS + C compiler flags for PKG_LIBQUICKTIME, overriding pkg-config + PKG_LIBQUICKTIME_LIBS + linker flags for PKG_LIBQUICKTIME, overriding pkg-config + PKG_LQT_CFLAGS + C compiler flags for PKG_LQT, overriding pkg-config + PKG_LQT_LIBS + linker flags for PKG_LQT, overriding pkg-config + PKG_LIBDC1394_2_CFLAGS + C compiler flags for PKG_LIBDC1394_2, overriding pkg-config + PKG_LIBDC1394_2_LIBS + linker flags for PKG_LIBDC1394_2, overriding pkg-config + PKG_LIBDV_CFLAGS + C compiler flags for PKG_LIBDV, overriding pkg-config + PKG_LIBDV_LIBS + linker flags for PKG_LIBDV, overriding pkg-config + PKG_LIBRAW1394_CFLAGS + C compiler flags for PKG_LIBRAW1394, overriding pkg-config + PKG_LIBRAW1394_LIBS + linker flags for PKG_LIBRAW1394, overriding pkg-config + PKG_LIBIEC61883_CFLAGS + C compiler flags for PKG_LIBIEC61883, overriding pkg-config + PKG_LIBIEC61883_LIBS + linker flags for PKG_LIBIEC61883, overriding pkg-config + PKG_LIBUNICAP_CFLAGS + C compiler flags for PKG_LIBUNICAP, overriding pkg-config + PKG_LIBUNICAP_LIBS + linker flags for PKG_LIBUNICAP, overriding pkg-config + PKG_LIBV4L1_CFLAGS + C compiler flags for PKG_LIBV4L1, overriding pkg-config + PKG_LIBV4L1_LIBS + linker flags for PKG_LIBV4L1, overriding pkg-config + PKG_LIBV4L2_CFLAGS + C compiler flags for PKG_LIBV4L2, overriding pkg-config + PKG_LIBV4L2_LIBS + linker flags for PKG_LIBV4L2, overriding pkg-config + PKG_VFW32_CFLAGS + C compiler flags for PKG_VFW32, overriding pkg-config + PKG_VFW32_LIBS + linker flags for PKG_VFW32, overriding pkg-config + PKG_LIBVLC_CFLAGS + C compiler flags for PKG_LIBVLC, overriding pkg-config + PKG_LIBVLC_LIBS + linker flags for PKG_LIBVLC, overriding pkg-config + PKG_ASSIMP_CFLAGS + C compiler flags for PKG_ASSIMP, overriding pkg-config + PKG_ASSIMP_LIBS + linker flags for PKG_ASSIMP, overriding pkg-config + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +Gem home page: . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +Gem configure 0.93 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +@%:@ ac_fn_cxx_try_compile LINENO +@%:@ ---------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_compile + +@%:@ ac_fn_objc_try_compile LINENO +@%:@ ----------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_objc_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_objc_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_objc_try_compile + +@%:@ ac_fn_objcxx_try_compile LINENO +@%:@ ------------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_objcxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_objcxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_objcxx_try_compile + +@%:@ ac_fn_c_try_compile LINENO +@%:@ -------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_compile + +@%:@ ac_fn_c_try_link LINENO +@%:@ ----------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_link + +@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists and can be compiled using the include files in +@%:@ INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_compile + +@%:@ ac_fn_c_try_cpp LINENO +@%:@ ---------------------- +@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_cpp + +@%:@ ac_fn_c_try_run LINENO +@%:@ ---------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes +@%:@ that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_run + +@%:@ ac_fn_c_check_func LINENO FUNC VAR +@%:@ ---------------------------------- +@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_func + +@%:@ ac_fn_cxx_try_cpp LINENO +@%:@ ------------------------ +@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_cpp + +@%:@ ac_fn_cxx_try_link LINENO +@%:@ ------------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_link + +@%:@ ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES +@%:@ --------------------------------------------------------- +@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using +@%:@ the include files in INCLUDES and setting the cache variable VAR +@%:@ accordingly. +ac_fn_cxx_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include <$2> +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ------------------------------ ## +## Report this to zmoelnig@iem.at ## +## ------------------------------ ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_cxx_check_header_mongrel + +@%:@ ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES +@%:@ --------------------------------------------------------- +@%:@ Tests whether HEADER exists and can be compiled using the include files in +@%:@ INCLUDES, setting the cache variable VAR accordingly. +ac_fn_cxx_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_cxx_check_header_compile + +@%:@ ac_fn_cxx_check_func LINENO FUNC VAR +@%:@ ------------------------------------ +@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_cxx_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_cxx_check_func + +@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using +@%:@ the include files in INCLUDES and setting the cache variable VAR +@%:@ accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ------------------------------ ## +## Report this to zmoelnig@iem.at ## +## ------------------------------ ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_mongrel + +@%:@ ac_fn_cxx_try_run LINENO +@%:@ ------------------------ +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes +@%:@ that executables *can* be run. +ac_fn_cxx_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_run + +@%:@ ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES +@%:@ --------------------------------------------- +@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache +@%:@ variable VAR accordingly. +ac_fn_cxx_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_cxx_check_type + +@%:@ ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES +@%:@ ---------------------------------------------- +@%:@ Tries to find the compile-time value of EXPR in a program that includes +@%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be +@%:@ computed +ac_fn_cxx_compute_int () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@; +test_array @<:@0@:>@ = 0; +return test_array @<:@0@:>@; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_lo=0 ac_mid=0 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@; +test_array @<:@0@:>@ = 0; +return test_array @<:@0@:>@; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_hi=$ac_mid; break +else + as_fn_arith $ac_mid + 1 && ac_lo=$as_val + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array @<:@1 - 2 * !(($2) < 0)@:>@; +test_array @<:@0@:>@ = 0; +return test_array @<:@0@:>@; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_hi=-1 ac_mid=-1 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@; +test_array @<:@0@:>@ = 0; +return test_array @<:@0@:>@; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_lo=$ac_mid; break +else + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + ac_lo= ac_hi= +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@; +test_array @<:@0@:>@ = 0; +return test_array @<:@0@:>@; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_hi=$ac_mid +else + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in @%:@(( +?*) eval "$3=\$ac_lo"; ac_retval=0 ;; +'') ac_retval=1 ;; +esac + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +static long int longval () { return $2; } +static unsigned long int ulongval () { return $2; } +@%:@include +@%:@include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (($2) < 0) + { + long int i = longval (); + if (i != ($2)) + return 1; + fprintf (f, "%ld", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ($2)) + return 1; + fprintf (f, "%lu", i); + } + /* Do not output a trailing newline, as this causes \r\n confusion + on some platforms. */ + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + echo >>conftest.val; read $3 config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by Gem $as_me 0.93, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in @%:@(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +as_fn_append ac_header_list " stdlib.h" +as_fn_append ac_header_list " unistd.h" +as_fn_append ac_header_list " sys/param.h" +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +am__api_version='1.11' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in @%:@(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='Gem' + VERSION='0.93' + + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + + + +# +ac_config_files="$ac_config_files Makefile abstractions/Makefile" + + +# documentation +ac_config_files="$ac_config_files help/Makefile doc/Makefile examples/Makefile" + + +# src +ac_config_files="$ac_config_files src/Makefile src/Gem/Makefile src/Utils/Makefile" + +ac_config_files="$ac_config_files src/RTE/Makefile src/Base/Makefile src/plugins/Makefile" + +ac_config_files="$ac_config_files src/Output/Makefile" + +ac_config_files="$ac_config_files src/deprecated/Makefile" + + +## plugins that use this autoconf instance for configuration +ac_config_files="$ac_config_files plugins/Makefile" + +ac_config_files="$ac_config_files plugins/imageQT/Makefile" + +ac_config_files="$ac_config_files plugins/imageMAGICK/Makefile" + +ac_config_files="$ac_config_files plugins/imageTIFF/Makefile" + +ac_config_files="$ac_config_files plugins/imageJPEG/Makefile" + +ac_config_files="$ac_config_files plugins/imageSGI/Makefile" + + +ac_config_files="$ac_config_files plugins/filmAVI/Makefile" + +ac_config_files="$ac_config_files plugins/filmAVIPLAY/Makefile" + +ac_config_files="$ac_config_files plugins/filmDS/Makefile" + +ac_config_files="$ac_config_files plugins/filmDarwin/Makefile" + +ac_config_files="$ac_config_files plugins/filmGMERLIN/Makefile" + +ac_config_files="$ac_config_files plugins/filmMPEG1/Makefile" + +ac_config_files="$ac_config_files plugins/filmMPEG3/Makefile" + +ac_config_files="$ac_config_files plugins/filmQT/Makefile" + +ac_config_files="$ac_config_files plugins/filmQT4L/Makefile" + +ac_config_files="$ac_config_files plugins/filmTEST/Makefile" + + +ac_config_files="$ac_config_files plugins/modelOBJ/Makefile" + +ac_config_files="$ac_config_files plugins/modelASSIMP2/Makefile" + + +ac_config_files="$ac_config_files plugins/recordQT/Makefile" + +ac_config_files="$ac_config_files plugins/recordQT4L/Makefile" + +ac_config_files="$ac_config_files plugins/recordV4L/Makefile" + +ac_config_files="$ac_config_files plugins/recordV4L2/Makefile" + + +ac_config_files="$ac_config_files plugins/videoDC1394/Makefile" + +ac_config_files="$ac_config_files plugins/videoDS/Makefile" + +ac_config_files="$ac_config_files plugins/videoDV4L/Makefile" + +ac_config_files="$ac_config_files plugins/videoDarwin/Makefile" + +ac_config_files="$ac_config_files plugins/videoSGI/Makefile" + +ac_config_files="$ac_config_files plugins/videoTEST/Makefile" + +ac_config_files="$ac_config_files plugins/videoUNICAP/Makefile" + +ac_config_files="$ac_config_files plugins/videoV4L/Makefile" + +ac_config_files="$ac_config_files plugins/videoV4L2/Makefile" + +ac_config_files="$ac_config_files plugins/videoVFW/Makefile" + +ac_config_files="$ac_config_files plugins/videoVLC/Makefile" + + +## extra holds additional objects/libraries +# some of them have their own build system +#AC_CONFIG_FILES([extra/Makefile]) +# some do not +ac_config_files="$ac_config_files extra/pix2jpg/Makefile" + + +# other stuff +ac_config_files="$ac_config_files build/Makefile Gem.pc Gem-meta.pd" + + + +########################## + + + +ac_config_headers="$ac_config_headers src/config.h" + + + + + +subdirs="$subdirs extra" + + +if test -d "$srcdir/plugins/videoAVT"; then + subdirs="$subdirs plugins/videoAVT" + +fi +if test -d "$srcdir/plugins/videoHALCON"; then + subdirs="$subdirs plugins/videoHALCON" + +fi +if test -d "$srcdir/plugins/videoPYLON"; then + subdirs="$subdirs plugins/videoPYLON" + +fi + + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +ARCH=$(uname -m) +KERN=$(uname -s) + + + + + + + + + + + + + + + + + + + + + + +# Checks for programs. +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 +$as_echo_n "checking whether the C++ compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C++ compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 +$as_echo_n "checking for C++ compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C++ compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +@%:@ Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CXX_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + +ac_ext=m +ac_cpp='$OBJCPP $CPPFLAGS' +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_objc_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in gcc objcc objc cc CC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJC"; then + ac_cv_prog_OBJC="$OBJC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJC=$ac_cv_prog_OBJC +if test -n "$OBJC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 +$as_echo "$OBJC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$OBJC" && break + done +fi +if test -z "$OBJC"; then + ac_ct_OBJC=$OBJC + for ac_prog in gcc objcc objc cc CC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJC"; then + ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC +if test -n "$ac_ct_OBJC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 +$as_echo "$ac_ct_OBJC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_OBJC" && break +done + + if test "x$ac_ct_OBJC" = x; then + OBJC="gcc" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJC=$ac_ct_OBJC + fi +fi + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 +$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } +if ${ac_cv_objc_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_objc_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 +$as_echo "$ac_cv_objc_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GOBJC=yes +else + GOBJC= +fi +ac_test_OBJCFLAGS=${OBJCFLAGS+set} +ac_save_OBJCFLAGS=$OBJCFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 +$as_echo_n "checking whether $OBJC accepts -g... " >&6; } +if ${ac_cv_prog_objc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_objc_werror_flag=$ac_objc_werror_flag + ac_objc_werror_flag=yes + ac_cv_prog_objc_g=no + OBJCFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + ac_cv_prog_objc_g=yes +else + OBJCFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + +else + ac_objc_werror_flag=$ac_save_objc_werror_flag + OBJCFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + ac_cv_prog_objc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_objc_werror_flag=$ac_save_objc_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 +$as_echo "$ac_cv_prog_objc_g" >&6; } +if test "$ac_test_OBJCFLAGS" = set; then + OBJCFLAGS=$ac_save_OBJCFLAGS +elif test $ac_cv_prog_objc_g = yes; then + if test "$GOBJC" = yes; then + OBJCFLAGS="-g -O2" + else + OBJCFLAGS="-g" + fi +else + if test "$GOBJC" = yes; then + OBJCFLAGS="-O2" + else + OBJCFLAGS= + fi +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +depcc="$OBJC" am_compiler_list='gcc3 gcc' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_OBJC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_OBJC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_OBJC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_OBJC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } +OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then + am__fastdepOBJC_TRUE= + am__fastdepOBJC_FALSE='#' +else + am__fastdepOBJC_TRUE='#' + am__fastdepOBJC_FALSE= +fi + + +ac_ext=mm +ac_cpp='$OBJCXXCPP $CPPFLAGS' +ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in g++ objc++ objcxx c++ CXX + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJCXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJCXX"; then + ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJCXX=$ac_cv_prog_OBJCXX +if test -n "$OBJCXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 +$as_echo "$OBJCXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$OBJCXX" && break + done +fi +if test -z "$OBJCXX"; then + ac_ct_OBJCXX=$OBJCXX + for ac_prog in g++ objc++ objcxx c++ CXX +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJCXX"; then + ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJCXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX +if test -n "$ac_ct_OBJCXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 +$as_echo "$ac_ct_OBJCXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_OBJCXX" && break +done + + if test "x$ac_ct_OBJCXX" = x; then + OBJCXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJCXX=$ac_ct_OBJCXX + fi +fi + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } +if ${ac_cv_objcxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 +$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GOBJCXX=yes +else + GOBJCXX= +fi +ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} +ac_save_OBJCXXFLAGS=$OBJCXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 +$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } +if ${ac_cv_prog_objcxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag + ac_objcxx_werror_flag=yes + ac_cv_prog_objcxx_g=no + OBJCXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + ac_cv_prog_objcxx_g=yes +else + OBJCXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + +else + ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag + OBJCXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + ac_cv_prog_objcxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_objcxx_werror_flag=$ac_save_objcx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 +$as_echo "$ac_cv_prog_objcxx_g" >&6; } +if test "$ac_test_OBJCXXFLAGS" = set; then + OBJCXXFLAGS=$ac_save_OBJCXXFLAGS +elif test $ac_cv_prog_objcxx_g = yes; then + if test "$GOBJCXX" = yes; then + OBJCXXFLAGS="-g -O2" + else + OBJCXXFLAGS="-g" + fi +else + if test "$GOBJCXX" = yes; then + OBJCXXFLAGS="-O2" + else + OBJCXXFLAGS= + fi +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AS="${ac_tool_prefix}as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +$as_echo "$AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AS="as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +$as_echo "$ac_ct_AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + + ;; +esac + +test -z "$AS" && AS=as + + + + + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + + +macro_version='2.4.2' +macro_revision='1.3337' + + + + + + + + + + + + + +ltmain="$ac_aux_dir/ltmain.sh" + +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +$as_echo_n "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case "$ECHO" in + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +$as_echo "printf" >&6; } ;; + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +$as_echo "print -r" >&6; } ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +$as_echo "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $@%:@ != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if ${ac_cv_path_FGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_FGREP" || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +@%:@ Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if ${lt_cv_nm_interface+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 +$as_echo "$xsi_shell" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +lt_shell_append=no +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 +$as_echo "$lt_shell_append" >&6; } + + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } +if ${lt_cv_to_host_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac + +fi + +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +$as_echo "$lt_cv_to_host_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } +if ${lt_cv_to_tool_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + #assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac + +fi + +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test "$GCC" != yes; then + reload_cmds=false + fi + ;; + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + + + + + + + + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + + + + + + + + +if test -n "$ac_tool_prefix"; then + for ac_prog in ar + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +fi + +: ${AR=ar} +: ${AR_FLAGS=cru} + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +$as_echo_n "checking for archiver @FILE support... " >&6; } +if ${lt_cv_ar_at_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ar_at_file=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +$as_echo "$lt_cv_ar_at_file" >&6; } + +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +test -z "$STRIP" && STRIP=: + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +test -z "$RANLIB" && RANLIB=: + + + + + + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT@&t@_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT@&t@_DLSYM_CONST +#else +# define LT@&t@_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT@&t@_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + +@%:@ Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then : + withval=$with_sysroot; +else + with_sysroot=no +fi + + +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +$as_echo "${with_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +$as_echo "${lt_sysroot:-no}" >&6; } + + + + + + +@%:@ Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD="${LD-ld}_sol2" + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. +set dummy ${ac_tool_prefix}mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MANIFEST_TOOL"; then + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL +if test -n "$MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +$as_echo "$MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL + # Extract the first word of "mt", so it can be a program name with args. +set dummy mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MANIFEST_TOOL"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL +if test -n "$ac_ct_MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MANIFEST_TOOL" = x; then + MANIFEST_TOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL + fi +else + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" +fi + +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if ${lt_cv_path_mainfest_tool+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&5 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +$as_echo "$lt_cv_path_mainfest_tool" >&6; } +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi + + + + + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi +else + OTOOL="$ac_cv_prog_OTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&5 + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test $_lt_result -eq 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +$as_echo_n "checking for -force_load linker flag... " >&6; } +if ${lt_cv_ld_force_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 + echo "$AR cru libconftest.a conftest.o" >&5 + $AR cru libconftest.a conftest.o 2>&5 + echo "$RANLIB libconftest.a" >&5 + $RANLIB libconftest.a 2>&5 + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&5 + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&5 + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +$as_echo "$lt_cv_ld_force_load" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + + +func_stripname_cnf () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname_cnf + + + + + +# Set options + + + + enable_dlopen=no + + + + @%:@ Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + + + + + + + + + @%:@ Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +@%:@ Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for lt_pkg in $withval; do + IFS="$lt_save_ifs" + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + pic_mode=default +fi + + +test -z "$pic_mode" && pic_mode=default + + + + + + + + @%:@ Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +cat >>confdefs.h <<_ACEOF +@%:@define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +# Use C for the default configuration in the libtool script + +lt_save_CC="$CC" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + case $cc_basename in + nvcc*) + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; + *) + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + + + + + + + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + + + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + lt_prog_compiler_wl='-Xlinker ' + if test -n "$lt_prog_compiler_pic"; then + lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + *Sun\ F* | *Sun*Fortran*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Intel*\ [CF]*Compiler*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + *Portland\ Group*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +$as_echo "$lt_cv_prog_compiler_pic" >&6; } +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi + + + + + + + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs=no + ;; + esac + + ld_shlibs=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; + *\ \(GNU\ Binutils\)\ [3-9]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + export_dynamic_flag_spec='${wl}--export-all-symbols' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs=yes + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='${wl}-f,' + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + link_all_deplibs=no + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + fi + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + always_export_symbols=yes + file_list_spec='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' + enable_shared_with_static_runtimes=yes + exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + old_postinstall_cmds='chmod 644 $oldlib' + postlink_cmds='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + enable_shared_with_static_runtimes=yes + ;; + esac + ;; + + darwin* | rhapsody*) + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec='' + fi + link_all_deplibs=yes + allow_undefined_flag="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + + else + ld_shlibs=no + fi + + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +$as_echo_n "checking if $CC understands -b... " >&6; } +if ${lt_cv_prog_compiler__b+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler__b=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -b" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler__b=yes + fi + else + lt_cv_prog_compiler__b=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +$as_echo "$lt_cv_prog_compiler__b" >&6; } + +if test x"$lt_cv_prog_compiler__b" = xyes; then + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' +else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' +fi + + ;; + esac + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if ${lt_cv_irix_exported_symbol+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (void) { return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_irix_exported_symbol=yes +else + lt_cv_irix_exported_symbol=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +$as_echo "$lt_cv_irix_exported_symbol" >&6; } + if test "$lt_cv_irix_exported_symbol" = yes; then + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='${wl}-Blargedynsym' + ;; + esac + fi + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no + +with_gnu_ld=$with_gnu_ld + + + + + + + + + + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([A-Za-z]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink || + test "$inherit_rpath" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + + + + + + + + + + + + + + + + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + + + + + + + + + + + + + # Report which library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + + + + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +CC="$lt_save_CC" + + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +else + _lt_caught_CXX_error=yes +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +compiler_needs_object_CXX=no +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_direct_absolute_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +inherit_rpath_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +reload_flag_CXX=$reload_flag +reload_cmds_CXX=$reload_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + + # save warnings/boilerplate of simple test code + ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + + ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + compiler_CXX=$CC + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' + else + lt_prog_compiler_no_builtin_flag_CXX= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + + +@%:@ Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + ld_shlibs_CXX=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + file_list_spec_CXX='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec_CXX='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + fi + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec_CXX=' ' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=yes + file_list_spec_CXX='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' + enable_shared_with_static_runtimes_CXX=yes + # Don't use ranlib + old_postinstall_cmds_CXX='chmod 644 $oldlib' + postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + + + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec_CXX='' + fi + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + + else + ld_shlibs_CXX=no + fi + + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + freebsd2.*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + ld_shlibs_CXX=no + ;; + + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + + haiku*) + archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs_CXX=yes + ;; + + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + inherit_rpath_CXX=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [1-5].* | *pgcpp\ [1-5].*) + prelink_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + old_archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object_CXX=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + ld_shlibs_CXX=yes + ;; + + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + hardcode_direct_absolute_CXX=yes + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + ld_shlibs_CXX=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + case $host in + osf3*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + ;; + *) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + ;; + esac + + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ + '"$old_archive_cmds_CXX" + reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ + '"$reload_cmds_CXX" + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } + test "$ld_shlibs_CXX" = no && can_build_shared=no + + GCC_CXX="$GXX" + LD_CXX="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + # Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= + +cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF + + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; +esac + +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case ${prev}${p} in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test "$pre_test_object_deps_done" = no; then + case ${prev} in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC* | sunCC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac + + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + compiler_lib_search_dirs_CXX= +if test -n "${compiler_lib_search_path_CXX}"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic_CXX='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-qpic' + lt_prog_compiler_static_CXX='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd* | netbsdelf*-gnu) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } +lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : +else + lt_prog_compiler_static_CXX= +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global defined + # symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) + exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + ;; + esac + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs_CXX=no + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +with_gnu_ld_CXX=$with_gnu_ld + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc_CXX=no + else + lt_cv_archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } + archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || + test -n "$runpath_var_CXX" || + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } + +if test "$hardcode_action_CXX" = relink || + test "$inherit_rpath_CXX" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + + + + + + + + + + + + + ac_config_commands="$ac_config_commands libtool" + + + + +# Only expand once: + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + + + +@%:@ Check whether --with-ALL was given. +if test "${with_ALL+set}" = set; then : + withval=$with_ALL; +fi + + + + + +ARCH=$(uname -m) +KERN=$(uname -s) + + + +LINUX=no +ANDROID=no +MACOSX=no +IPHONEOS=no +BSD=no +WINDOWS=no +MINGW=no +CYGWIN=no +HURD=no +IRIX=no + +case $host_os in +*linux*) + LINUX=yes + ;; +*darwin*) + MACOSX=yes + ;; +GNU/kFreeBSD) + BSD=yes + ;; +*mingw*) + WINDOWS=yes + MINGW=yes + ;; +*cygwin*) + WINDOWS=yes + CYGWIN=yes + ;; +GNU) + HURD=yes + ;; +esac + + + if test x$LINUX = xyes; then + LINUX_TRUE= + LINUX_FALSE='#' +else + LINUX_TRUE='#' + LINUX_FALSE= +fi + + if test x$ANDROID = xyes; then + ANDROID_TRUE= + ANDROID_FALSE='#' +else + ANDROID_TRUE='#' + ANDROID_FALSE= +fi + + if test x$MACOSX = xyes; then + MACOSX_TRUE= + MACOSX_FALSE='#' +else + MACOSX_TRUE='#' + MACOSX_FALSE= +fi + + if test x$IPHONEOS = xyes; then + IPHONEOS_TRUE= + IPHONEOS_FALSE='#' +else + IPHONEOS_TRUE='#' + IPHONEOS_FALSE= +fi + + if test x$BSD = xyes; then + BSD_TRUE= + BSD_FALSE='#' +else + BSD_TRUE='#' + BSD_FALSE= +fi + + if test x$WINDOWS = xyes; then + WINDOWS_TRUE= + WINDOWS_FALSE='#' +else + WINDOWS_TRUE='#' + WINDOWS_FALSE= +fi + + if test x$CYGWIN = xyes; then + CYGWIN_TRUE= + CYGWIN_FALSE='#' +else + CYGWIN_TRUE='#' + CYGWIN_FALSE= +fi + + if test x$MINGW = xyes; then + MINGW_TRUE= + MINGW_FALSE='#' +else + MINGW_TRUE='#' + MINGW_FALSE= +fi + + if test x$HURD = xyes; then + HURD_TRUE= + HURD_FALSE='#' +else + HURD_TRUE='#' + HURD_FALSE= +fi + + if test x$IRIX = xyes; then + IRIX_TRUE= + IRIX_FALSE='#' +else + IRIX_TRUE='#' + IRIX_FALSE= +fi + + + + + + + +if test "x${libdir}" = "x\${exec_prefix}/lib"; then + libdir='${exec_prefix}/lib/pd/extra' +fi + +tmp_rte_cppflags="$CPPFLAGS" +tmp_rte_cflags="$CFLAGS" +tmp_rte_cxxflags="$CXXFLAGS" +tmp_rte_ldflags="$LDFLAGS" +tmp_rte_libs="$LIBS" + +GEM_RTE_CFLAGS="-DPD" +GEM_RTE_LIBS="" +GEM_RTE="Pure Data" + + +@%:@ Check whether --with-pd was given. +if test "${with_pd+set}" = set; then : + withval=$with_pd; +fi + + +## some default paths +if test "x${with_pd}" = "x"; then + case $host_os in + *darwin*) + if test -d "/Applications/Pd-extended.app/Contents/Resources"; then with_pd="/Applications/Pd-extended.app/Contents/Resources"; fi + if test -d "/Applications/Pd.app/Contents/Resources"; then with_pd="/Applications/Pd.app/Contents/Resources"; fi + ;; + *mingw* | *cygwin*) + if test -d "${PROGRAMFILES}/Pd-extended"; then with_pd="${PROGRAMFILES}/Pd-extended"; fi + if test -d "${PROGRAMFILES}/pd"; then with_pd="${PROGRAMFILES}/pd"; fi + ;; + esac +fi + +if test -d "$with_pd" ; then + if test -d "${with_pd}/src" ; then + + for element in "-I${with_pd}/src"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + elif test -d "${with_pd}/include/pd" ; then + + for element in "-I${with_pd}/include/pd"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + elif test -d "${with_pd}/include" ; then + + for element in "-I${with_pd}/include"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + else + + for element in "-I${with_pd}"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + fi + if test -d "${with_pd}/bin" ; then + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-L${with_pd}/bin" + else + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-L${with_pd}" + fi + + CPPFLAGS="$CPPFLAGS ${GEM_RTE_CFLAGS}" + CFLAGS="$CFLAGS ${GEM_RTE_CFLAGS}" + CXXFLAGS="$CXXFLAGS ${GEM_RTE_CFLAGS}" + LIBS="$LIBS ${GEM_RTE_LIBS}" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nullfn in -l:pd.dll" >&5 +$as_echo_n "checking for nullfn in -l:pd.dll... " >&6; } +if ${ac_cv_lib__pd_dll_nullfn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l:pd.dll $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char nullfn (); +int +main () +{ +return nullfn (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib__pd_dll_nullfn=yes +else + ac_cv_lib__pd_dll_nullfn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib__pd_dll_nullfn" >&5 +$as_echo "$ac_cv_lib__pd_dll_nullfn" >&6; } +if test "x$ac_cv_lib__pd_dll_nullfn" = xyes; then : + have_pddll="yes" +else + have_pddll="no" +fi + +if test "x$have_pddll" = "xyes"; then + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-Xlinker -l:pd.dll" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nullfn in -lpd" >&5 +$as_echo_n "checking for nullfn in -lpd... " >&6; } +if ${ac_cv_lib_pd_nullfn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char nullfn (); +int +main () +{ +return nullfn (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_pd_nullfn=yes +else + ac_cv_lib_pd_nullfn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pd_nullfn" >&5 +$as_echo "$ac_cv_lib_pd_nullfn" >&6; } +if test "x$ac_cv_lib_pd_nullfn" = xyes; then : + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-lpd" +fi + +fi + +for ac_header in m_pd.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "m_pd.h" "ac_cv_header_m_pd_h" "$ac_includes_default" +if test "x$ac_cv_header_m_pd_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_M_PD_H 1 +_ACEOF + have_pd="yes" +else + have_pd="no" +fi + +done + + +for ac_header in s_stuff.h +do : + ac_fn_cxx_check_header_compile "$LINENO" "s_stuff.h" "ac_cv_header_s_stuff_h" "#ifdef HAVE_M_PD_H +# define PD +# include \"m_pd.h\" +#endif + +" +if test "x$ac_cv_header_s_stuff_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_S_STUFF_H 1 +_ACEOF + +fi + +done + + +### this should only be set if Pd has been found +# the extension + +@%:@ Check whether --with-extension was given. +if test "${with_extension+set}" = set; then : + withval=$with_extension; +fi + +if test "x$with_extension" != "x"; then + EXT=$with_extension +else + case x$host_os in + x*darwin*) + EXT=pd_darwin + ;; + x*mingw* | x*cygwin*) + EXT=dll + ;; + x) + EXT="pd_linux" + ;; + *) + EXT=pd_`echo $host_os | sed -e '/.*/s/-.*//' -e 's/\..*//'` + ;; + esac +fi +GEM_RTE_EXTENSION=$EXT + + +CPPFLAGS="$tmp_rte_cppflags" +CFLAGS="$tmp_rte_cflags" +CXXFLAGS="$tmp_rte_cxxflags" +LDFLAGS="$tmp_rte_ldflags" +LIBS="$tmp_rte_libs" + + + + + + + + + + + + +GEM_CPPFLAGS="-DGEM_INTERNAL" + +if test "x$have_pddll" = "xyes"; then + GEM_EXTERNAL_LIBS="${GEM_EXTERNAL_LIBS}${GEM_EXTERNAL_LIBS:+ }-Xlinker -l:Gem.dll" +fi + +@%:@ Check whether --enable-mmx was given. +if test "${enable_mmx+set}" = set; then : + enableval=$enable_mmx; +else + + if test "x" != "x"; then enable_mmx="yes"; fi + +fi + + +@%:@ Check whether --enable-sse2 was given. +if test "${enable_sse2+set}" = set; then : + enableval=$enable_sse2; +else + + if test "x" != "x"; then enable_sse2="no"; fi + +fi + + +@%:@ Check whether --enable-altivec was given. +if test "${enable_altivec+set}" = set; then : + enableval=$enable_altivec; +else + + if test "x" != "x"; then enable_altivec="yes"; fi + +fi + + +@%:@ Check whether --enable-powerpc was given. +if test "${enable_powerpc+set}" = set; then : + enableval=$enable_powerpc; +else + + if test "x" != "x"; then enable_powerpc="no"; fi + +fi + + + +@%:@ Check whether --enable-pascalstrings was given. +if test "${enable_pascalstrings+set}" = set; then : + enableval=$enable_pascalstrings; +else + + if test "x" != "x"; then enable_pascalstrings="yes"; fi + +fi + + + +@%:@ Check whether --enable-registerstruct was given. +if test "${enable_registerstruct+set}" = set; then : + enableval=$enable_registerstruct; +else + + if test "xforce" != "x"; then enable_registerstruct="yes"; fi + +fi + + + + + + +ac_config_files="$ac_config_files src/Controls/Makefile" + + +@%:@ Check whether --enable-Controls was given. +if test "${enable_Controls+set}" = set; then : + enableval=$enable_Controls; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Controls-objects" >&5 +$as_echo "building Gem with Controls-objects" >&6; } + target_CONTROLS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Controls-objects" >&5 +$as_echo "building Gem without Controls-objects" >&6; } + target_CONTROLS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Controls-objects" >&5 +$as_echo "building Gem with Controls-objects" >&6; } + target_CONTROLS="yes" + +fi + + if test "x$target_CONTROLS" != "xno"; then + TARGET_CONTROLS_TRUE= + TARGET_CONTROLS_FALSE='#' +else + TARGET_CONTROLS_TRUE='#' + TARGET_CONTROLS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Geos/Makefile" + + +@%:@ Check whether --enable-Geos was given. +if test "${enable_Geos+set}" = set; then : + enableval=$enable_Geos; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Geos-objects" >&5 +$as_echo "building Gem with Geos-objects" >&6; } + target_GEOS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Geos-objects" >&5 +$as_echo "building Gem without Geos-objects" >&6; } + target_GEOS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Geos-objects" >&5 +$as_echo "building Gem with Geos-objects" >&6; } + target_GEOS="yes" + +fi + + if test "x$target_GEOS" != "xno"; then + TARGET_GEOS_TRUE= + TARGET_GEOS_FALSE='#' +else + TARGET_GEOS_TRUE='#' + TARGET_GEOS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Manips/Makefile" + + +@%:@ Check whether --enable-Manips was given. +if test "${enable_Manips+set}" = set; then : + enableval=$enable_Manips; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Manips-objects" >&5 +$as_echo "building Gem with Manips-objects" >&6; } + target_MANIPS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Manips-objects" >&5 +$as_echo "building Gem without Manips-objects" >&6; } + target_MANIPS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Manips-objects" >&5 +$as_echo "building Gem with Manips-objects" >&6; } + target_MANIPS="yes" + +fi + + if test "x$target_MANIPS" != "xno"; then + TARGET_MANIPS_TRUE= + TARGET_MANIPS_FALSE='#' +else + TARGET_MANIPS_TRUE='#' + TARGET_MANIPS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Nongeos/Makefile" + + +@%:@ Check whether --enable-Nongeos was given. +if test "${enable_Nongeos+set}" = set; then : + enableval=$enable_Nongeos; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Nongeos-objects" >&5 +$as_echo "building Gem with Nongeos-objects" >&6; } + target_NONGEOS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Nongeos-objects" >&5 +$as_echo "building Gem without Nongeos-objects" >&6; } + target_NONGEOS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Nongeos-objects" >&5 +$as_echo "building Gem with Nongeos-objects" >&6; } + target_NONGEOS="yes" + +fi + + if test "x$target_NONGEOS" != "xno"; then + TARGET_NONGEOS_TRUE= + TARGET_NONGEOS_FALSE='#' +else + TARGET_NONGEOS_TRUE='#' + TARGET_NONGEOS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Particles/Makefile" + + +@%:@ Check whether --enable-Particles was given. +if test "${enable_Particles+set}" = set; then : + enableval=$enable_Particles; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Particles-objects" >&5 +$as_echo "building Gem with Particles-objects" >&6; } + target_PARTICLES="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Particles-objects" >&5 +$as_echo "building Gem without Particles-objects" >&6; } + target_PARTICLES="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Particles-objects" >&5 +$as_echo "building Gem with Particles-objects" >&6; } + target_PARTICLES="yes" + +fi + + if test "x$target_PARTICLES" != "xno"; then + TARGET_PARTICLES_TRUE= + TARGET_PARTICLES_FALSE='#' +else + TARGET_PARTICLES_TRUE='#' + TARGET_PARTICLES_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Pixes/Makefile" + + +@%:@ Check whether --enable-Pixes was given. +if test "${enable_Pixes+set}" = set; then : + enableval=$enable_Pixes; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Pixes-objects" >&5 +$as_echo "building Gem with Pixes-objects" >&6; } + target_PIXES="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Pixes-objects" >&5 +$as_echo "building Gem without Pixes-objects" >&6; } + target_PIXES="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Pixes-objects" >&5 +$as_echo "building Gem with Pixes-objects" >&6; } + target_PIXES="yes" + +fi + + if test "x$target_PIXES" != "xno"; then + TARGET_PIXES_TRUE= + TARGET_PIXES_FALSE='#' +else + TARGET_PIXES_TRUE='#' + TARGET_PIXES_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/openGL/Makefile" + + +@%:@ Check whether --enable-openGL was given. +if test "${enable_openGL+set}" = set; then : + enableval=$enable_openGL; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with openGL-objects" >&5 +$as_echo "building Gem with openGL-objects" >&6; } + target_OPENGL="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without openGL-objects" >&5 +$as_echo "building Gem without openGL-objects" >&6; } + target_OPENGL="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with openGL-objects" >&5 +$as_echo "building Gem with openGL-objects" >&6; } + target_OPENGL="yes" + +fi + + if test "x$target_OPENGL" != "xno"; then + TARGET_OPENGL_TRUE= + TARGET_OPENGL_FALSE='#' +else + TARGET_OPENGL_TRUE='#' + TARGET_OPENGL_FALSE= +fi + + + + + + +ac_config_files="$ac_config_files src/Vertex/Makefile" + +@%:@ Check whether --enable-Vertex was given. +if test "${enable_Vertex+set}" = set; then : + enableval=$enable_Vertex; + if test "x$enableval" != "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Vertex-objects" >&5 +$as_echo "building Gem without Vertex-objects" >&6; } + target_VERTEX="no" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Vertex-objects" >&5 +$as_echo "building Gem with Vertex-objects" >&6; } + target_VERTEX="yes" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Vertex-objects" >&5 +$as_echo "building Gem without Vertex-objects" >&6; } + target_VERTEX="no" + +fi + + if test "x$target_VERTEX" != "xno"; then + TARGET_VERTEX_TRUE= + TARGET_VERTEX_FALSE='#' +else + TARGET_VERTEX_TRUE='#' + TARGET_VERTEX_FALSE= +fi + + + + +# Checks for libraries. + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 +$as_echo_n "checking for sin in -lm... " >&6; } +if ${ac_cv_lib_m_sin+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sin (); +int +main () +{ +return sin (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_m_sin=yes +else + ac_cv_lib_m_sin=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 +$as_echo "$ac_cv_lib_m_sin" >&6; } +if test "x$ac_cv_lib_m_sin" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBM 1 +_ACEOF + + LIBS="-lm $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5 +$as_echo_n "checking for main in -lz... " >&6; } +if ${ac_cv_lib_z_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_z_main=yes +else + ac_cv_lib_z_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5 +$as_echo "$ac_cv_lib_z_main" >&6; } +if test "x$ac_cv_lib_z_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBZ 1 +_ACEOF + + LIBS="-lz $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBDL 1 +_ACEOF + + LIBS="-ldl $LIBS" + +fi + + +# w32 compatibility library +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lOLDNAMES" >&5 +$as_echo_n "checking for close in -lOLDNAMES... " >&6; } +if ${ac_cv_lib_OLDNAMES_close+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lOLDNAMES $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char close (); +int +main () +{ +return close (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_OLDNAMES_close=yes +else + ac_cv_lib_OLDNAMES_close=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OLDNAMES_close" >&5 +$as_echo "$ac_cv_lib_OLDNAMES_close" >&6; } +if test "x$ac_cv_lib_OLDNAMES_close" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBOLDNAMES 1 +_ACEOF + + LIBS="-lOLDNAMES $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lcoldname" >&5 +$as_echo_n "checking for close in -lcoldname... " >&6; } +if ${ac_cv_lib_coldname_close+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcoldname $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char close (); +int +main () +{ +return close (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_coldname_close=yes +else + ac_cv_lib_coldname_close=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_coldname_close" >&5 +$as_echo "$ac_cv_lib_coldname_close" >&6; } +if test "x$ac_cv_lib_coldname_close" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBCOLDNAME 1 +_ACEOF + + LIBS="-lcoldname $LIBS" + +fi + +# Standard C++ Libray: +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llibcpmt" >&5 +$as_echo_n "checking for main in -llibcpmt... " >&6; } +if ${ac_cv_lib_libcpmt_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-llibcpmt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_libcpmt_main=yes +else + ac_cv_lib_libcpmt_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_libcpmt_main" >&5 +$as_echo "$ac_cv_lib_libcpmt_main" >&6; } +if test "x$ac_cv_lib_libcpmt_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBCPMT 1 +_ACEOF + + LIBS="-llibcpmt $LIBS" + +fi + +# C runtime library: +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose in -lmsvcrt" >&5 +$as_echo_n "checking for fclose in -lmsvcrt... " >&6; } +if ${ac_cv_lib_msvcrt_fclose+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmsvcrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char fclose (); +int +main () +{ +return fclose (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_msvcrt_fclose=yes +else + ac_cv_lib_msvcrt_fclose=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msvcrt_fclose" >&5 +$as_echo "$ac_cv_lib_msvcrt_fclose" >&6; } +if test "x$ac_cv_lib_msvcrt_fclose" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMSVCRT 1 +_ACEOF + + LIBS="-lmsvcrt $LIBS" + +fi + +# Standard C++ Libray: +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmsvcprt" >&5 +$as_echo_n "checking for main in -lmsvcprt... " >&6; } +if ${ac_cv_lib_msvcprt_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmsvcprt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_msvcprt_main=yes +else + ac_cv_lib_msvcprt_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msvcprt_main" >&5 +$as_echo "$ac_cv_lib_msvcprt_main" >&6; } +if test "x$ac_cv_lib_msvcprt_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMSVCPRT 1 +_ACEOF + + LIBS="-lmsvcprt $LIBS" + +fi + +# Winsock Library +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 +$as_echo_n "checking for main in -lws2_32... " >&6; } +if ${ac_cv_lib_ws2_32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lws2_32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ws2_32_main=yes +else + ac_cv_lib_ws2_32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 +$as_echo "$ac_cv_lib_ws2_32_main" >&6; } +if test "x$ac_cv_lib_ws2_32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBWS2_32 1 +_ACEOF + + LIBS="-lws2_32 $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwsock32" >&5 +$as_echo_n "checking for main in -lwsock32... " >&6; } +if ${ac_cv_lib_wsock32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lwsock32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_wsock32_main=yes +else + ac_cv_lib_wsock32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_main" >&5 +$as_echo "$ac_cv_lib_wsock32_main" >&6; } +if test "x$ac_cv_lib_wsock32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBWSOCK32 1 +_ACEOF + + LIBS="-lwsock32 $LIBS" + +fi + + +# w32 window creating +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5 +$as_echo_n "checking for main in -lgdi32... " >&6; } +if ${ac_cv_lib_gdi32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgdi32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_gdi32_main=yes +else + ac_cv_lib_gdi32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5 +$as_echo "$ac_cv_lib_gdi32_main" >&6; } +if test "x$ac_cv_lib_gdi32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGDI32 1 +_ACEOF + + LIBS="-lgdi32 $LIBS" + +fi + + + +## on OSX X shouldn't be used by default as there are other ways +## however, if people really want it ("--with-x") they should get it +if test "x$KERN" = "xDarwin"; then + if test "x$with_x" = "x"; then + with_x="no" + fi +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 +$as_echo_n "checking for X... " >&6; } + + +@%:@ Check whether --with-x was given. +if test "${with_x+set}" = set; then : + withval=$with_x; +fi + +# $have_x is `yes', `no', `disabled', or empty when we do not yet know. +if test "x$with_x" = xno; then + # The user explicitly disabled X. + have_x=disabled +else + case $x_includes,$x_libraries in #( + *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( + *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : + $as_echo_n "(cached) " >&6 +else + # One or both of the vars are not set, and there is no cached value. +ac_x_includes=no ac_x_libraries=no +rm -f -r conftest.dir +if mkdir conftest.dir; then + cd conftest.dir + cat >Imakefile <<'_ACEOF' +incroot: + @echo incroot='${INCROOT}' +usrlibdir: + @echo usrlibdir='${USRLIBDIR}' +libdir: + @echo libdir='${LIBDIR}' +_ACEOF + if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then + # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. + for ac_var in incroot usrlibdir libdir; do + eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" + done + # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. + for ac_extension in a so sl dylib la dll; do + if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && + test -f "$ac_im_libdir/libX11.$ac_extension"; then + ac_im_usrlibdir=$ac_im_libdir; break + fi + done + # Screen out bogus values from the imake configuration. They are + # bogus both because they are the default anyway, and because + # using them would break gcc on systems where it needs fixed includes. + case $ac_im_incroot in + /usr/include) ac_x_includes= ;; + *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; + esac + case $ac_im_usrlibdir in + /usr/lib | /usr/lib64 | /lib | /lib64) ;; + *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; + esac + fi + cd .. + rm -f -r conftest.dir +fi + +# Standard set of common directories for X headers. +# Check X11 before X11Rn because it is often a symlink to the current release. +ac_x_header_dirs=' +/usr/X11/include +/usr/X11R7/include +/usr/X11R6/include +/usr/X11R5/include +/usr/X11R4/include + +/usr/include/X11 +/usr/include/X11R7 +/usr/include/X11R6 +/usr/include/X11R5 +/usr/include/X11R4 + +/usr/local/X11/include +/usr/local/X11R7/include +/usr/local/X11R6/include +/usr/local/X11R5/include +/usr/local/X11R4/include + +/usr/local/include/X11 +/usr/local/include/X11R7 +/usr/local/include/X11R6 +/usr/local/include/X11R5 +/usr/local/include/X11R4 + +/usr/X386/include +/usr/x386/include +/usr/XFree86/include/X11 + +/usr/include +/usr/local/include +/usr/unsupported/include +/usr/athena/include +/usr/local/x11r5/include +/usr/lpp/Xamples/include + +/usr/openwin/include +/usr/openwin/share/include' + +if test "$ac_x_includes" = no; then + # Guess where to find include files, by looking for Xlib.h. + # First, try using that file with no special directory specified. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # We can compile using X headers with no special include directory. +ac_x_includes= +else + for ac_dir in $ac_x_header_dirs; do + if test -r "$ac_dir/X11/Xlib.h"; then + ac_x_includes=$ac_dir + break + fi +done +fi +rm -f conftest.err conftest.i conftest.$ac_ext +fi # $ac_x_includes = no + +if test "$ac_x_libraries" = no; then + # Check for the libraries. + # See if we find them without any special options. + # Don't add to $LIBS permanently. + ac_save_LIBS=$LIBS + LIBS="-lX11 $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +int +main () +{ +XrmInitialize () + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + LIBS=$ac_save_LIBS +# We can link X programs with no special library path. +ac_x_libraries= +else + LIBS=$ac_save_LIBS +for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` +do + # Don't even attempt the hair of trying to link an X program! + for ac_extension in a so sl dylib la dll; do + if test -r "$ac_dir/libX11.$ac_extension"; then + ac_x_libraries=$ac_dir + break 2 + fi + done +done +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi # $ac_x_libraries = no + +case $ac_x_includes,$ac_x_libraries in #( + no,* | *,no | *\'*) + # Didn't find X, or a directory has "'" in its name. + ac_cv_have_x="have_x=no";; #( + *) + # Record where we found X for the cache. + ac_cv_have_x="have_x=yes\ + ac_x_includes='$ac_x_includes'\ + ac_x_libraries='$ac_x_libraries'" +esac +fi +;; #( + *) have_x=yes;; + esac + eval "$ac_cv_have_x" +fi # $with_x != no + +if test "$have_x" != yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 +$as_echo "$have_x" >&6; } + no_x=yes +else + # If each of the values was on the command line, it overrides each guess. + test "x$x_includes" = xNONE && x_includes=$ac_x_includes + test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries + # Update the cache value to reflect the command line values. + ac_cv_have_x="have_x=yes\ + ac_x_includes='$x_includes'\ + ac_x_libraries='$x_libraries'" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 +$as_echo "libraries $x_libraries, headers $x_includes" >&6; } +fi + +if test "$no_x" = yes; then + # Not all programs may use this symbol, but it does not hurt to define it. + +$as_echo "@%:@define X_DISPLAY_MISSING 1" >>confdefs.h + + X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= +else + if test -n "$x_includes"; then + X_CFLAGS="$X_CFLAGS -I$x_includes" + fi + + # It would also be nice to do this for all -L options, not just this one. + if test -n "$x_libraries"; then + X_LIBS="$X_LIBS -L$x_libraries" + # For Solaris; some versions of Sun CC require a space after -R and + # others require no space. Words are not sufficient . . . . + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 +$as_echo_n "checking whether -R must be followed by a space... " >&6; } + ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" + ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + X_LIBS="$X_LIBS -R$x_libraries" +else + LIBS="$ac_xsave_LIBS -R $x_libraries" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + X_LIBS="$X_LIBS -R $x_libraries" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 +$as_echo "neither works" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag + LIBS=$ac_xsave_LIBS + fi + + # Check for system-dependent libraries X programs must link with. + # Do this before checking for the system-independent R6 libraries + # (-lICE), since we may need -lsocket or whatever for X linking. + + if test "$ISC" = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" + else + # Martyn Johnson says this is needed for Ultrix, if the X + # libraries were built with DECnet support. And Karl Berry says + # the Alpha needs dnet_stub (dnet does not exist). + ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char XOpenDisplay (); +int +main () +{ +return XOpenDisplay (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 +$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } +if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_ntoa (); +int +main () +{ +return dnet_ntoa (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dnet_dnet_ntoa=yes +else + ac_cv_lib_dnet_dnet_ntoa=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 +$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } +if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" +fi + + if test $ac_cv_lib_dnet_dnet_ntoa = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 +$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } +if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet_stub $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_ntoa (); +int +main () +{ +return dnet_ntoa (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dnet_stub_dnet_ntoa=yes +else + ac_cv_lib_dnet_stub_dnet_ntoa=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 +$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } +if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" +fi + + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$ac_xsave_LIBS" + + # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, + # to get the SysV transport functions. + # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) + # needs -lnsl. + # The nsl library prevents programs from opening the X display + # on Irix 5.2, according to T.E. Dickey. + # The functions gethostbyname, getservbyname, and inet_addr are + # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. + ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" +if test "x$ac_cv_func_gethostbyname" = xyes; then : + +fi + + if test $ac_cv_func_gethostbyname = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_gethostbyname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_nsl_gethostbyname=yes +else + ac_cv_lib_nsl_gethostbyname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } +if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" +fi + + if test $ac_cv_lib_nsl_gethostbyname = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 +$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } +if ${ac_cv_lib_bsd_gethostbyname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbsd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_bsd_gethostbyname=yes +else + ac_cv_lib_bsd_gethostbyname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 +$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } +if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" +fi + + fi + fi + + # lieder@skyler.mavd.honeywell.com says without -lsocket, + # socket/setsockopt and other routines are undefined under SCO ODT + # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary + # on later versions), says Simon Leinen: it contains gethostby* + # variants that don't use the name server (or something). -lsocket + # must be given before -lnsl if both are needed. We assume that + # if connect needs -lnsl, so does gethostbyname. + ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" +if test "x$ac_cv_func_connect" = xyes; then : + +fi + + if test $ac_cv_func_connect = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 +$as_echo_n "checking for connect in -lsocket... " >&6; } +if ${ac_cv_lib_socket_connect+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $X_EXTRA_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char connect (); +int +main () +{ +return connect (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_socket_connect=yes +else + ac_cv_lib_socket_connect=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 +$as_echo "$ac_cv_lib_socket_connect" >&6; } +if test "x$ac_cv_lib_socket_connect" = xyes; then : + X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" +fi + + fi + + # Guillermo Gomez says -lposix is necessary on A/UX. + ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" +if test "x$ac_cv_func_remove" = xyes; then : + +fi + + if test $ac_cv_func_remove = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 +$as_echo_n "checking for remove in -lposix... " >&6; } +if ${ac_cv_lib_posix_remove+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lposix $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char remove (); +int +main () +{ +return remove (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_posix_remove=yes +else + ac_cv_lib_posix_remove=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 +$as_echo "$ac_cv_lib_posix_remove" >&6; } +if test "x$ac_cv_lib_posix_remove" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" +fi + + fi + + # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. + ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" +if test "x$ac_cv_func_shmat" = xyes; then : + +fi + + if test $ac_cv_func_shmat = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 +$as_echo_n "checking for shmat in -lipc... " >&6; } +if ${ac_cv_lib_ipc_shmat+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lipc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shmat (); +int +main () +{ +return shmat (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ipc_shmat=yes +else + ac_cv_lib_ipc_shmat=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 +$as_echo "$ac_cv_lib_ipc_shmat" >&6; } +if test "x$ac_cv_lib_ipc_shmat" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" +fi + + fi + fi + + # Check for libraries that X11R6 Xt/Xaw programs need. + ac_save_LDFLAGS=$LDFLAGS + test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" + # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to + # check for ICE first), but we must link in the order -lSM -lICE or + # we get undefined symbols. So assume we have SM if we have ICE. + # These have to be linked with before -lX11, unlike the other + # libraries we check for below, so use a different variable. + # John Interrante, Karl Berry + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 +$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } +if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lICE $X_EXTRA_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char IceConnectionNumber (); +int +main () +{ +return IceConnectionNumber (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ICE_IceConnectionNumber=yes +else + ac_cv_lib_ICE_IceConnectionNumber=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 +$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } +if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : + X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" +fi + + LDFLAGS=$ac_save_LDFLAGS + +fi + + +if test "x$with_x" != "xno"; then +# AC_CHECK_LIB([X11],[main]) +# AC_CHECK_LIB([Xext],[main]) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeGetAllModeLines in -lXxf86vm" >&5 +$as_echo_n "checking for XF86VidModeGetAllModeLines in -lXxf86vm... " >&6; } +if ${ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lXxf86vm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char XF86VidModeGetAllModeLines (); +int +main () +{ +return XF86VidModeGetAllModeLines (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines=yes +else + ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines" >&5 +$as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines" >&6; } +if test "x$ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBXXF86VM 1 +_ACEOF + + LIBS="-lXxf86vm $LIBS" + +fi + +fi + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ax_pthread_ok=no + +# We used to check for pthread.h first, but this fails if pthread.h +# requires special compiler flags (e.g. on True64 or Sequent). +# It gets checked for in the link test anyway. + +# First of all, check if the user has set any of the PTHREAD_LIBS, +# etcetera environment variables, and if threads linking works using +# them: +if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS" >&5 +$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_join (); +int +main () +{ +return pthread_join (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test x"$ax_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" +fi + +# We must check for the threads library under a number of different +# names; the ordering is very important because some systems +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the +# libraries is broken (non-POSIX). + +# Create a list of thread flags to try. Items starting with a "-" are +# C compiler flags, and other items are library names, except for "none" +# which indicates that we try without any flags at all, and "pthread-config" +# which is a program returning the flags for the Pth emulation library. + +ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads +-mthreads pthread --thread-safe -mt pthread-config" + +# The ordering *is* (sometimes) important. Some notes on the +# individual items follow: + +# pthreads: AIX (must check this before -lpthread) +# none: in case threads are in libc; should be tried before -Kthread and +# other compiler flags to prevent continual compiler warnings +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) +# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) +# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) +# -pthreads: Solaris/gcc +# -mthreads: Mingw32/gcc, Lynx/gcc +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it +# doesn't hurt to check since this sometimes defines pthreads too; +# also defines -D_REENTRANT) +# ... -mt is also the pthreads flag for HP/aCC +# pthread: Linux, etcetera +# --thread-safe: KAI C++ +# pthread-config: use pthread-config program (for GNU Pth library) + +case "${host_cpu}-${host_os}" in + *solaris*) + + # On Solaris (at least, for some versions), libc contains stubbed + # (non-functional) versions of the pthreads routines, so link-based + # tests will erroneously succeed. (We need to link with -pthreads/-mt/ + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather + # a function called by this macro, so we could check for that, but + # who knows whether they'll stub that too in a future libc.) So, + # we'll just look for -pthreads and -lpthread first: + + ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" + ;; + + *-darwin*) + acx_pthread_flags="-pthread $acx_pthread_flags" + ;; +esac + +if test x"$ax_pthread_ok" = xno; then +for flag in $ax_pthread_flags; do + + case $flag in + none) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 +$as_echo_n "checking whether pthreads work without any flags... " >&6; } + ;; + + -*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 +$as_echo_n "checking whether pthreads work with $flag... " >&6; } + PTHREAD_CFLAGS="$flag" + ;; + + pthread-config) + # Extract the first word of "pthread-config", so it can be a program name with args. +set dummy pthread-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ax_pthread_config+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ax_pthread_config"; then + ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ax_pthread_config="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" +fi +fi +ax_pthread_config=$ac_cv_prog_ax_pthread_config +if test -n "$ax_pthread_config"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 +$as_echo "$ax_pthread_config" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test x"$ax_pthread_config" = xno; then continue; fi + PTHREAD_CFLAGS="`pthread-config --cflags`" + PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config +--libs`" + ;; + + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 +$as_echo_n "checking for the pthreads library -l$flag... " >&6; } + PTHREAD_LIBS="-l$flag" + ;; + esac + + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Check for various functions. We must include pthread.h, + # since some functions may be macros. (On the Sequent, we + # need a special flag -Kthread to make this header compile.) + # We check for pthread_join because it is in -lpthread on IRIX + # while pthread_create is in libc. We check for pthread_attr_init + # due to DEC craziness with -lpthreads. We check for + # pthread_cleanup_push because it is one of the few pthread + # functions on Solaris that doesn't have a non-functional libc stub. + # We try pthread_create on general principles. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + static void routine(void* a) {a=0;} + static void* start_routine(void* a) {return a;} +int +main () +{ +pthread_t th; pthread_attr_t attr; + pthread_join(th, 0); + pthread_attr_init(&attr); + pthread_cleanup_push(routine, 0); + pthread_create(&th,0,start_routine,0); + pthread_cleanup_pop(0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test "x$ax_pthread_ok" = xyes; then + break; + fi + + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" +done +fi + +# Various other checks: +if test "x$ax_pthread_ok" = xyes; then + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 +$as_echo_n "checking for joinable pthread attribute... " >&6; } + attr_name=unknown + for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int attr=$attr; return attr; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + attr_name=$attr; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + done + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 +$as_echo "$attr_name" >&6; } + if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then + +cat >>confdefs.h <<_ACEOF +@%:@define PTHREAD_CREATE_JOINABLE $attr_name +_ACEOF + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 +$as_echo_n "checking if more special flags are required for pthreads... " >&6; } + flag=no + case "${host_cpu}-${host_os}" in + *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 +$as_echo "${flag}" >&6; } + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + # More AIX lossage: must compile with xlc_r or cc_r + if test x"$GCC" != xyes; then + for ac_prog in xlc_r cc_r +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_PTHREAD_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$PTHREAD_CC"; then + ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_PTHREAD_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +PTHREAD_CC=$ac_cv_prog_PTHREAD_CC +if test -n "$PTHREAD_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 +$as_echo "$PTHREAD_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$PTHREAD_CC" && break +done +test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" + + else + PTHREAD_CC=$CC + fi +else + PTHREAD_CC="$CC" +fi + + + + + +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: +if test x"$ax_pthread_ok" = xyes; then + +$as_echo "@%:@define HAVE_PTHREADS 1" >>confdefs.h + + : +else + ax_pthread_ok=no + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 +$as_echo_n "checking for C compiler vendor... " >&6; } +if ${ax_cv_c_compiler_vendor+:} false; then : + $as_echo_n "(cached) " >&6 +else + # note: don't check for gcc first since some other compilers define __GNUC__ + vendors="intel: __ICC,__ECC,__INTEL_COMPILER + ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ + pathscale: __PATHCC__,__PATHSCALE__ + clang: __clang__ + gnu: __GNUC__ + sun: __SUNPRO_C,__SUNPRO_CC + hp: __HP_cc,__HP_aCC + dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER + borland: __BORLANDC__,__TURBOC__ + comeau: __COMO__ + cray: _CRAYC + kai: __KCC + lcc: __LCC__ + sgi: __sgi,sgi + microsoft: _MSC_VER + metrowerks: __MWERKS__ + watcom: __WATCOMC__ + portland: __PGI + unknown: UNKNOWN" + for ventest in $vendors; do + case $ventest in + *:) vendor=$ventest; continue ;; + *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; + esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + #if !($vencpp) + thisisanerror; + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done + ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 +$as_echo "$ax_cv_c_compiler_vendor" >&6; } + +if test X$ax_cv_c_compiler_vendor != Xmicrosoft; then : + GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm" +fi + +# +# Use x_includes and x_libraries if they have been set (presumably by +# AC_PATH_X). +# +if test "X$no_x" != "Xyes"; then : + if test -n "$x_includes"; then : + GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" +fi + if test -n "$x_libraries"; then : + GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" +fi +fi + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +for ac_header in GL/gl.h OpenGL/gl.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +CPPFLAGS="${ax_save_CPPFLAGS}" + +for ac_header in windows.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" +if test "x$ac_cv_header_windows_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_WINDOWS_H 1 +_ACEOF + +fi + +done + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5 +$as_echo_n "checking for OpenGL library... " >&6; } +if ${ax_cv_check_gl_libgl+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_check_gl_libgl="no" +case $host_cpu in + x86_64) ax_check_gl_libdir=lib64 ;; + *) ax_check_gl_libdir=lib ;; +esac +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" +LIBS="" +ax_check_libs="-lopengl32 -lGL" +for ax_lib in ${ax_check_libs}; do + if test X$ax_compiler_ms = Xyes; then : + ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` +else + ax_try_lib="${ax_lib}" +fi + LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="${ax_try_lib}"; break +else + ax_check_gl_nvidia_flags="-L/usr/${ax_check_gl_libdir}/nvidia" LIBS="${ax_try_lib} ${ax_check_gl_nvidia_flags} ${GL_LIBS} ${ax_save_LIBS}" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break +else + ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' LIBS="${ax_try_lib} ${ax_check_gl_dylib_flag} ${GL_LIBS} ${ax_save_LIBS}" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +done + +if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then : + LIBS='-framework OpenGL' +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="$LIBS" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi + +LIBS=${ax_save_LIBS} +CPPFLAGS=${ax_save_CPPFLAGS} +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5 +$as_echo "$ax_cv_check_gl_libgl" >&6; } + +if test "X$ax_cv_check_gl_libgl" = Xno; then : + no_gl=yes; GL_CFLAGS=""; GL_LIBS="" +else + GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + + + + if test "x$no_gl" != "xyes"; then + HAVE_GL_TRUE= + HAVE_GL_FALSE='#' +else + HAVE_GL_TRUE='#' + HAVE_GL_FALSE= +fi + + +GLU_CFLAGS="${GL_CFLAGS}" + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +for ac_header in GL/glu.h OpenGL/glu.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +CPPFLAGS="${ax_save_CPPFLAGS}" + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5 +$as_echo_n "checking for OpenGL Utility library... " >&6; } +if ${ax_cv_check_glu_libglu+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_check_glu_libglu="no" +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" + +# +# First, check for the possibility that everything we need is already in +# GL_LIBS. +# +LIBS="${GL_LIBS} ${ax_save_LIBS}" +# +# libGLU typically links with libstdc++ on POSIX platforms. +# However, setting the language to C++ means that test program +# source is named "conftest.cc"; and Microsoft cl doesn't know what +# to do with such a file. +# +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +if test X$ax_compiler_ms = Xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLU_H +# include +# elif defined(HAVE_OPENGL_GLU_H) +# include +# else +# error no glu.h +# endif +int +main () +{ +gluBeginCurve(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glu_libglu=yes +else + LIBS="" +ax_check_libs="-lglu32 -lGLU" +for ax_lib in ${ax_check_libs}; do + if test X$ax_compiler_ms = Xyes; then : + ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` +else + ax_try_lib="${ax_lib}" +fi + LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLU_H +# include +# elif defined(HAVE_OPENGL_GLU_H) +# include +# else +# error no glu.h +# endif +int +main () +{ +gluBeginCurve(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glu_libglu="${ax_try_lib}"; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +done + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test X$ax_compiler_ms = Xyes; then : + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +LIBS=${ax_save_LIBS} +CPPFLAGS=${ax_save_CPPFLAGS} +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5 +$as_echo "$ax_cv_check_glu_libglu" >&6; } +if test "X$ax_cv_check_glu_libglu" = Xno; then : + no_glu=yes; GLU_CFLAGS=""; GLU_LIBS="" +else + if test "X$ax_cv_check_glu_libglu" = Xyes; then : + GLU_LIBS="$GL_LIBS" +else + GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" +fi +fi + + + +# +# Some versions of Mac OS X include a broken interpretation of the GLU +# tesselation callback function signature. +# +if test "X$ax_cv_check_glu_libglu" != Xno; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5 +$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; } +if ${ax_cv_varargs_glu_tesscb+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_varargs_glu_tesscb=no +ax_save_CFLAGS="$CFLAGS" +CFLAGS="$GL_CFLAGS $CFLAGS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# ifdef HAVE_GL_GLU_H +# include +# else +# include +# endif +int +main () +{ +GLvoid (*func)(...); gluTessCallback(0, 0, func) + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ax_cv_varargs_glu_tesscb=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +CFLAGS="$ax_save_CFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5 +$as_echo "$ax_cv_varargs_glu_tesscb" >&6; } +if test X$ax_cv_varargs_glu_tesscb = Xyes; then : + +$as_echo "@%:@define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h + +fi +fi + + + if test "x$no_glu" != "xyes"; then + HAVE_GLU_TRUE= + HAVE_GLU_FALSE='#' +else + HAVE_GLU_TRUE='#' + HAVE_GLU_FALSE= +fi + + + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" +for ac_header in GL/glut.h GLUT/glut.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +CPPFLAGS="${ax_save_CPPFLAGS}" + +GLUT_CFLAGS=${GLU_CFLAGS} +GLUT_LIBS=${GLU_LIBS} + + + +# +# If X is present, assume GLUT depends on it. +# +if test X$no_x != Xyes; then : + GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5 +$as_echo_n "checking for GLUT library... " >&6; } +if ${ax_cv_check_glut_libglut+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_check_glut_libglut="no" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" +LIBS="" +ax_check_libs="-lglut32 -lglut" +for ax_lib in ${ax_check_libs}; do + if test X$ax_compiler_ms = Xyes; then : + ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` +else + ax_try_lib="${ax_lib}" +fi + LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if HAVE_WINDOWS_H && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLUT_H +# include +# elif defined(HAVE_GLUT_GLUT_H) +# include +# else +# error no glut.h +# endif +int +main () +{ +glutMainLoop() + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glut_libglut="${ax_try_lib}"; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +done + +if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then : + LIBS='-framework GLUT' +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if HAVE_WINDOWS_H && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLUT_H +# include +# elif defined(HAVE_GLUT_GLUT_H) +# include +# else +# error no glut.h +# endif +int +main () +{ +glutMainLoop() + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glut_libglut="$LIBS" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi + +CPPFLAGS="${ax_save_CPPFLAGS}" +LIBS="${ax_save_LIBS}" +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5 +$as_echo "$ax_cv_check_glut_libglut" >&6; } + +if test "X$ax_cv_check_glut_libglut" = Xno; then : + no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS="" +else + GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" +fi + + + + + + if test "x$no_glut" != "xyes"; then + HAVE_GLUT_TRUE= + HAVE_GLUT_FALSE='#' +else + HAVE_GLUT_TRUE='#' + HAVE_GLUT_FALSE= +fi + + + +for ac_header in GL/glx.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default" +if test "x$ac_cv_header_GL_glx_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GL_GLX_H 1 +_ACEOF + +else + no_glx=yes +fi + +done + + if test "x$no_glx" != "xyes"; then + HAVE_GLX_TRUE= + HAVE_GLX_FALSE='#' +else + HAVE_GLX_TRUE='#' + HAVE_GLX_FALSE= +fi + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"AGL\"-framework" >&5 +$as_echo_n "checking for \"AGL\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework AGL ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_AGL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GEM_FRAMEWORK_AGL 1 +_ACEOF + + GEM_FRAMEWORK_AGL="-framework AGL" + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_AGL_TRUE= + HAVE_FRAMEWORK_AGL_FALSE='#' +else + HAVE_FRAMEWORK_AGL_TRUE='#' + HAVE_FRAMEWORK_AGL_FALSE= +fi + + + +if test "x$gem_check_ldflags_success" != "xyes"; then + no_agl="yes" +fi +AGL_CFLAGS="" +AGL_LIBS="${GEM_FRAMEWORK_AGL}" + + + if test "x$no_agl" != "xyes"; then + HAVE_AGL_TRUE= + HAVE_AGL_FALSE='#' +else + HAVE_AGL_TRUE='#' + HAVE_AGL_FALSE= +fi + + + +## use system's libGLEW + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi + +fi + + + + + + + +@%:@ Check whether --with-glew was given. +if test "${with_glew+set}" = set; then : + withval=$with_glew; +fi + + +@%:@ Check whether --with-glew-includes was given. +if test "${with_glew_includes+set}" = set; then : + withval=$with_glew_includes; +fi + + +@%:@ Check whether --with-glew-libs was given. +if test "${with_glew_libs+set}" = set; then : + withval=$with_glew_libs; +fi + + + if test "x$with_glew" = "x"; then with_glew="no"; fi + + if test "x$with_ALL" = "xyes" && test "x$with_glew" = "x"; then with_glew="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_glew" = "x"; then with_glew="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_glew = "xno"; then + have_glew="no (forced)" +else + if test -d "$with_glew_includes"; then + CFLAGS="-I$with_glew_includes $CFLAGS" + CPPFLAGS="-I$with_glew_includes $CPPFLAGS" + CXXFLAGS="-I$with_glew_includes $CXXFLAGS" + fi + if test -d "$with_glew_libs"; then + LIBS="-L$with_glew_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_GLEW_glewInit) >/dev/null 2>&1 && unset ac_cv_lib_GLEW_glewInit + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GLEW_CFLAGS" >&5 +$as_echo_n "checking for PKG_GLEW_CFLAGS... " >&6; } +if ${pkg_cv_PKG_GLEW_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GLEW_CFLAGS_set" = "xset"; then + pkg_cv_PKG_GLEW_CFLAGS=$ac_cv_env_PKG_GLEW_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"glew\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "glew" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GLEW_CFLAGS=`$PKG_CONFIG --cflags "glew" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GLEW_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_GLEW_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GLEW_LIBS" >&5 +$as_echo_n "checking for PKG_GLEW_LIBS... " >&6; } +if ${pkg_cv_PKG_GLEW_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GLEW_LIBS_set" = "xset"; then + pkg_cv_PKG_GLEW_LIBS=$ac_cv_env_PKG_GLEW_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"glew\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "glew" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GLEW_LIBS=`$PKG_CONFIG --libs "glew" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GLEW_LIBS" >&5 +$as_echo "$pkg_cv_PKG_GLEW_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_GLEW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glew"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_GLEW_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_GLEW_CFLAGS=$pkg_cv_PKG_GLEW_CFLAGS + PKG_GLEW_LIBS=$pkg_cv_PKG_GLEW_LIBS + ac_cv_lib_GLEW_glewInit=yes +fi +if test "x${PKG_GLEW_CFLAGS}" != "x"; then + + for element in "${PKG_GLEW_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_GLEW_LIBS}" != "x"; then + PKG_LIBS="${PKG_GLEW_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_GLEW_glewInit" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glew-config" >&5 +$as_echo_n "checking for glew-config... " >&6; } + gem_check_lib_pkgconfig_GLEW="" + if test "xglew" != "x"; then + gem_check_lib_pkgconfig_GLEW="glew"-config + if which -- "$gem_check_lib_pkgconfig_GLEW" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_GLEW=`which "glew"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_GLEW="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_GLEW" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_GLEW_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_GLEW --cflags >/dev/null 2>&1; then + PKG_GLEW_CFLAGS=$(${gem_check_lib_pkgconfig_GLEW} --cflags) + PKG_CFLAGS="$PKG_GLEW_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_GLEW_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_GLEW --plugin-libs >/dev/null 2>&1; then + PKG_GLEW_LIBS=$(${gem_check_lib_pkgconfig_GLEW} --plugin-libs) + else + if $gem_check_lib_pkgconfig_GLEW --libs >/dev/null 2>&1; then + PKG_GLEW_LIBS=$(${gem_check_lib_pkgconfig_GLEW} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_GLEW_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glewInit in -lGLEW" >&5 +$as_echo_n "checking for glewInit in -lGLEW... " >&6; } +if ${ac_cv_lib_GLEW_glewInit+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lGLEW $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char glewInit (); +int +main () +{ +return glewInit (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_GLEW_glewInit=yes +else + ac_cv_lib_GLEW_glewInit=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLEW_glewInit" >&5 +$as_echo "$ac_cv_lib_GLEW_glewInit" >&6; } +if test "x$ac_cv_lib_GLEW_glewInit" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGLEW 1 +_ACEOF + + LIBS="-lGLEW $LIBS" + +fi + + PKG_GLEW_LIBS="-lGLEW" + else + PKG_LIBS="${PKG_GLEW_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_GLEW_glewInit" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGLEW 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGLEW 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GLEWINIT 1 +_ACEOF + + GEM_LIB_GLEW_CFLAGS=${PKG_GLEW_CFLAGS} + GEM_LIB_GLEW_LIBS=${PKG_GLEW_LIBS} + have_glew="yes" + with_glew="no" + + +else + + have_glew="no" + + +fi + +fi + if test "x${have_glew}" = "xyes"; then + HAVE_LIB_GLEW_TRUE= + HAVE_LIB_GLEW_FALSE='#' +else + HAVE_LIB_GLEW_TRUE='#' + HAVE_LIB_GLEW_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +if test "x${have_glew}" != "xyes"; then + GEM_CPPFLAGS+=" -DGLEW_BUILD" +fi + + + + + + + + +@%:@ Check whether --with-sdl was given. +if test "${with_sdl+set}" = set; then : + withval=$with_sdl; +fi + + +@%:@ Check whether --with-sdl-includes was given. +if test "${with_sdl_includes+set}" = set; then : + withval=$with_sdl_includes; +fi + + +@%:@ Check whether --with-sdl-libs was given. +if test "${with_sdl_libs+set}" = set; then : + withval=$with_sdl_libs; +fi + + + if test "x$with_sdl" = "x"; then with_sdl="yes"; fi + + if test "x$with_ALL" = "xyes" && test "x$with_sdl" = "x"; then with_sdl="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_sdl" = "x"; then with_sdl="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_sdl = "xno"; then + have_sdl="no (forced)" +else + if test -d "$with_sdl_includes"; then + CFLAGS="-I$with_sdl_includes $CFLAGS" + CPPFLAGS="-I$with_sdl_includes $CPPFLAGS" + CXXFLAGS="-I$with_sdl_includes $CXXFLAGS" + fi + if test -d "$with_sdl_libs"; then + LIBS="-L$with_sdl_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_SDL_SDL_Quit) >/dev/null 2>&1 && unset ac_cv_lib_SDL_SDL_Quit + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_SDL_CFLAGS" >&5 +$as_echo_n "checking for PKG_SDL_CFLAGS... " >&6; } +if ${pkg_cv_PKG_SDL_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_SDL_CFLAGS_set" = "xset"; then + pkg_cv_PKG_SDL_CFLAGS=$ac_cv_env_PKG_SDL_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"sdl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "sdl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_SDL_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_SDL_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_SDL_LIBS" >&5 +$as_echo_n "checking for PKG_SDL_LIBS... " >&6; } +if ${pkg_cv_PKG_SDL_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_SDL_LIBS_set" = "xset"; then + pkg_cv_PKG_SDL_LIBS=$ac_cv_env_PKG_SDL_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"sdl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "sdl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_SDL_LIBS" >&5 +$as_echo "$pkg_cv_PKG_SDL_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_SDL_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_SDL_CFLAGS=$pkg_cv_PKG_SDL_CFLAGS + PKG_SDL_LIBS=$pkg_cv_PKG_SDL_LIBS + ac_cv_lib_SDL_SDL_Quit=yes +fi +if test "x${PKG_SDL_CFLAGS}" != "x"; then + + for element in "${PKG_SDL_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_SDL_LIBS}" != "x"; then + PKG_LIBS="${PKG_SDL_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_SDL_SDL_Quit" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl-config" >&5 +$as_echo_n "checking for sdl-config... " >&6; } + gem_check_lib_pkgconfig_SDL="" + if test "xsdl" != "x"; then + gem_check_lib_pkgconfig_SDL="sdl"-config + if which -- "$gem_check_lib_pkgconfig_SDL" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_SDL=`which "sdl"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_SDL="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_SDL" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_SDL_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_SDL --cflags >/dev/null 2>&1; then + PKG_SDL_CFLAGS=$(${gem_check_lib_pkgconfig_SDL} --cflags) + PKG_CFLAGS="$PKG_SDL_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_SDL_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_SDL --plugin-libs >/dev/null 2>&1; then + PKG_SDL_LIBS=$(${gem_check_lib_pkgconfig_SDL} --plugin-libs) + else + if $gem_check_lib_pkgconfig_SDL --libs >/dev/null 2>&1; then + PKG_SDL_LIBS=$(${gem_check_lib_pkgconfig_SDL} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_SDL_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Quit in -lSDL" >&5 +$as_echo_n "checking for SDL_Quit in -lSDL... " >&6; } +if ${ac_cv_lib_SDL_SDL_Quit+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lSDL $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SDL_Quit (); +int +main () +{ +return SDL_Quit (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_SDL_SDL_Quit=yes +else + ac_cv_lib_SDL_SDL_Quit=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Quit" >&5 +$as_echo "$ac_cv_lib_SDL_SDL_Quit" >&6; } +if test "x$ac_cv_lib_SDL_SDL_Quit" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBSDL 1 +_ACEOF + + LIBS="-lSDL $LIBS" + +fi + + PKG_SDL_LIBS="-lSDL" + else + PKG_LIBS="${PKG_SDL_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_SDL_SDL_Quit" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBSDL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBSDL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_SDL_QUIT 1 +_ACEOF + + GEM_LIB_SDL_CFLAGS=${PKG_SDL_CFLAGS} + GEM_LIB_SDL_LIBS=${PKG_SDL_LIBS} + have_sdl="yes" + with_sdl="no" + + +else + + have_sdl="no" + + +fi + +fi + if test "x${have_sdl}" = "xyes"; then + HAVE_LIB_SDL_TRUE= + HAVE_LIB_SDL_FALSE='#' +else + HAVE_LIB_SDL_TRUE='#' + HAVE_LIB_SDL_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +## http://wiki.fifengine.de/Segfault_in_cxa_allocate_exception#Workaround_.231 +### "-lstdc++" really has to be added before e.g. "-lGL" in order to avoid +### triggering the bug +### however, libtool is way to clever and eliminates duplicate LIBS entries. +### since "-lstdc++" is usually found in the postdeps, this would remove the +### entry found in LIBS; so we add it to the predeps_CXX (only) +stdcxx_LIBS=$LIBS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 +$as_echo_n "checking for main in -lstdc++... " >&6; } +if ${ac_cv_lib_stdcpp_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lstdc++ $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_stdcpp_main=yes +else + ac_cv_lib_stdcpp_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5 +$as_echo "$ac_cv_lib_stdcpp_main" >&6; } +if test "x$ac_cv_lib_stdcpp_main" = xyes; then : + predeps_CXX="$predeps_CXX -lstdc++" +fi + +LIBS=$stdcxx_LIBS + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"Cocoa\"-framework" >&5 +$as_echo_n "checking for \"Cocoa\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework Cocoa ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_COCOA 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GEM_FRAMEWORK_COCOA 1 +_ACEOF + + GEM_FRAMEWORK_COCOA="-framework Cocoa" + have_cocoa_framework="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + have_cocoa_framework="no" + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_COCOA_TRUE= + HAVE_FRAMEWORK_COCOA_FALSE='#' +else + HAVE_FRAMEWORK_COCOA_TRUE='#' + HAVE_FRAMEWORK_COCOA_FALSE= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"Carbon\"-framework" >&5 +$as_echo_n "checking for \"Carbon\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework Carbon ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_CARBON 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GEM_FRAMEWORK_CARBON 1 +_ACEOF + + GEM_FRAMEWORK_CARBON="-framework Carbon" + have_carbon_framework="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + have_carbon_framework="no" + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_CARBON_TRUE= + HAVE_FRAMEWORK_CARBON_FALSE='#' +else + HAVE_FRAMEWORK_CARBON_TRUE='#' + HAVE_FRAMEWORK_CARBON_FALSE= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"QuickTime\"-framework" >&5 +$as_echo_n "checking for \"QuickTime\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework QuickTime ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_QUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GEM_FRAMEWORK_QUICKTIME 1 +_ACEOF + + GEM_FRAMEWORK_QUICKTIME="-framework QuickTime" + have_quicktime_framework="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + have_quicktime_framework="no" + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_QUICKTIME_TRUE= + HAVE_FRAMEWORK_QUICKTIME_FALSE='#' +else + HAVE_FRAMEWORK_QUICKTIME_TRUE='#' + HAVE_FRAMEWORK_QUICKTIME_FALSE= +fi + + + + + if test "x${have_carbon_framework}" = "xyes" && test "x${have_quicktime_framework}" = "xyes"; then + VIDEODARWIN_TRUE= + VIDEODARWIN_FALSE='#' +else + VIDEODARWIN_TRUE='#' + VIDEODARWIN_FALSE= +fi + + +#fallback to imagemagick if people are too lazy to type ImageMagick +if test "x$with_ImageMagick" = "x"; then + with_ImageMagick="$with_imagemagick" +fi +if test "x$with_MagickCore" = "x"; then + with_MagickCore="$with_ImageMagick" +fi + + + + + + + + +@%:@ Check whether --with-ImageMagick was given. +if test "${with_ImageMagick+set}" = set; then : + withval=$with_ImageMagick; +fi + + +@%:@ Check whether --with-ImageMagick-includes was given. +if test "${with_ImageMagick_includes+set}" = set; then : + withval=$with_ImageMagick_includes; +fi + + +@%:@ Check whether --with-ImageMagick-libs was given. +if test "${with_ImageMagick_libs+set}" = set; then : + withval=$with_ImageMagick_libs; +fi + + + if test "x$with_ImageMagick" = "x"; then with_ImageMagick=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_ImageMagick" = "x"; then with_ImageMagick="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_ImageMagick" = "x"; then with_ImageMagick="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_ImageMagick = "xno"; then + have_ImageMagick="no (forced)" +else + if test -d "$with_ImageMagick_includes"; then + CFLAGS="-I$with_ImageMagick_includes $CFLAGS" + CPPFLAGS="-I$with_ImageMagick_includes $CPPFLAGS" + CXXFLAGS="-I$with_ImageMagick_includes $CXXFLAGS" + fi + if test -d "$with_ImageMagick_libs"; then + LIBS="-L$with_ImageMagick_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_Magickpp_main) >/dev/null 2>&1 && unset ac_cv_lib_Magickpp_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_IMAGEMAGICK___CFLAGS" >&5 +$as_echo_n "checking for PKG_IMAGEMAGICK___CFLAGS... " >&6; } +if ${pkg_cv_PKG_IMAGEMAGICK___CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_IMAGEMAGICK___CFLAGS_set" = "xset"; then + pkg_cv_PKG_IMAGEMAGICK___CFLAGS=$ac_cv_env_PKG_IMAGEMAGICK___CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ImageMagick++\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ImageMagick++" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_IMAGEMAGICK___CFLAGS=`$PKG_CONFIG --cflags "ImageMagick++" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_IMAGEMAGICK___CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_IMAGEMAGICK___CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_IMAGEMAGICK___LIBS" >&5 +$as_echo_n "checking for PKG_IMAGEMAGICK___LIBS... " >&6; } +if ${pkg_cv_PKG_IMAGEMAGICK___LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_IMAGEMAGICK___LIBS_set" = "xset"; then + pkg_cv_PKG_IMAGEMAGICK___LIBS=$ac_cv_env_PKG_IMAGEMAGICK___LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ImageMagick++\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ImageMagick++" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_IMAGEMAGICK___LIBS=`$PKG_CONFIG --libs "ImageMagick++" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_IMAGEMAGICK___LIBS" >&5 +$as_echo "$pkg_cv_PKG_IMAGEMAGICK___LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_IMAGEMAGICK___PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ImageMagick++"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_IMAGEMAGICK___PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_IMAGEMAGICK___CFLAGS=$pkg_cv_PKG_IMAGEMAGICK___CFLAGS + PKG_IMAGEMAGICK___LIBS=$pkg_cv_PKG_IMAGEMAGICK___LIBS + ac_cv_lib_Magickpp_main=yes +fi +if test "x${PKG_IMAGEMAGICK___CFLAGS}" != "x"; then + + for element in "${PKG_IMAGEMAGICK___CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_IMAGEMAGICK___LIBS}" != "x"; then + PKG_LIBS="${PKG_IMAGEMAGICK___LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_Magickpp_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick++-config" >&5 +$as_echo_n "checking for ImageMagick++-config... " >&6; } + gem_check_lib_pkgconfig_IMAGEMAGICK__="" + if test "xImageMagick++" != "x"; then + gem_check_lib_pkgconfig_IMAGEMAGICK__="ImageMagick++"-config + if which -- "$gem_check_lib_pkgconfig_IMAGEMAGICK__" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_IMAGEMAGICK__=`which "ImageMagick++"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_IMAGEMAGICK__="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_IMAGEMAGICK__" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_IMAGEMAGICK___CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_IMAGEMAGICK__ --cflags >/dev/null 2>&1; then + PKG_IMAGEMAGICK___CFLAGS=$(${gem_check_lib_pkgconfig_IMAGEMAGICK__} --cflags) + PKG_CFLAGS="$PKG_IMAGEMAGICK___CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_IMAGEMAGICK___LIBS" = "x"; then + if $gem_check_lib_pkgconfig_IMAGEMAGICK__ --plugin-libs >/dev/null 2>&1; then + PKG_IMAGEMAGICK___LIBS=$(${gem_check_lib_pkgconfig_IMAGEMAGICK__} --plugin-libs) + else + if $gem_check_lib_pkgconfig_IMAGEMAGICK__ --libs >/dev/null 2>&1; then + PKG_IMAGEMAGICK___LIBS=$(${gem_check_lib_pkgconfig_IMAGEMAGICK__} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_IMAGEMAGICK___LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lMagick++" >&5 +$as_echo_n "checking for main in -lMagick++... " >&6; } +if ${ac_cv_lib_Magickpp_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lMagick++ $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_Magickpp_main=yes +else + ac_cv_lib_Magickpp_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Magickpp_main" >&5 +$as_echo "$ac_cv_lib_Magickpp_main" >&6; } +if test "x$ac_cv_lib_Magickpp_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMAGICK__ 1 +_ACEOF + + LIBS="-lMagick++ $LIBS" + +fi + + PKG_IMAGEMAGICK___LIBS="-lMagick++" + else + PKG_LIBS="${PKG_IMAGEMAGICK___LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_Magickpp_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBIMAGEMAGICK__ 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMAGICK__ 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_IMAGEMAGICK___CFLAGS=${PKG_IMAGEMAGICK___CFLAGS} + GEM_LIB_IMAGEMAGICK___LIBS=${PKG_IMAGEMAGICK___LIBS} + have_ImageMagick="yes" + with_ImageMagick="no" + +$as_echo "@%:@define HAVE_LIBMAGICKPLUSPLUS 1" >>confdefs.h + + +else + + have_ImageMagick="no" + + +fi + +fi + if test "x${have_ImageMagick}" = "xyes"; then + HAVE_LIB_IMAGEMAGICK___TRUE= + HAVE_LIB_IMAGEMAGICK___FALSE='#' +else + HAVE_LIB_IMAGEMAGICK___TRUE='#' + HAVE_LIB_IMAGEMAGICK___FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + + +@%:@ Check whether --with-MagickCore was given. +if test "${with_MagickCore+set}" = set; then : + withval=$with_MagickCore; +fi + + +@%:@ Check whether --with-MagickCore-includes was given. +if test "${with_MagickCore_includes+set}" = set; then : + withval=$with_MagickCore_includes; +fi + + +@%:@ Check whether --with-MagickCore-libs was given. +if test "${with_MagickCore_libs+set}" = set; then : + withval=$with_MagickCore_libs; +fi + + + if test "x$with_MagickCore" = "x"; then with_MagickCore=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_MagickCore" = "x"; then with_MagickCore="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_MagickCore" = "x"; then with_MagickCore="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_MagickCore = "xno"; then + have_MagickCore="no (forced)" +else + if test -d "$with_MagickCore_includes"; then + CFLAGS="-I$with_MagickCore_includes $CFLAGS" + CPPFLAGS="-I$with_MagickCore_includes $CPPFLAGS" + CXXFLAGS="-I$with_MagickCore_includes $CXXFLAGS" + fi + if test -d "$with_MagickCore_libs"; then + LIBS="-L$with_MagickCore_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_Magick_main) >/dev/null 2>&1 && unset ac_cv_lib_Magick_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MAGICKCORE_CFLAGS" >&5 +$as_echo_n "checking for PKG_MAGICKCORE_CFLAGS... " >&6; } +if ${pkg_cv_PKG_MAGICKCORE_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MAGICKCORE_CFLAGS_set" = "xset"; then + pkg_cv_PKG_MAGICKCORE_CFLAGS=$ac_cv_env_PKG_MAGICKCORE_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"MagickCore\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "MagickCore" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MAGICKCORE_CFLAGS=`$PKG_CONFIG --cflags "MagickCore" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MAGICKCORE_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_MAGICKCORE_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MAGICKCORE_LIBS" >&5 +$as_echo_n "checking for PKG_MAGICKCORE_LIBS... " >&6; } +if ${pkg_cv_PKG_MAGICKCORE_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MAGICKCORE_LIBS_set" = "xset"; then + pkg_cv_PKG_MAGICKCORE_LIBS=$ac_cv_env_PKG_MAGICKCORE_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"MagickCore\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "MagickCore" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MAGICKCORE_LIBS=`$PKG_CONFIG --libs "MagickCore" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MAGICKCORE_LIBS" >&5 +$as_echo "$pkg_cv_PKG_MAGICKCORE_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_MAGICKCORE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "MagickCore"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_MAGICKCORE_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_MAGICKCORE_CFLAGS=$pkg_cv_PKG_MAGICKCORE_CFLAGS + PKG_MAGICKCORE_LIBS=$pkg_cv_PKG_MAGICKCORE_LIBS + ac_cv_lib_Magick_main=yes +fi +if test "x${PKG_MAGICKCORE_CFLAGS}" != "x"; then + + for element in "${PKG_MAGICKCORE_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_MAGICKCORE_LIBS}" != "x"; then + PKG_LIBS="${PKG_MAGICKCORE_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_Magick_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MagickCore-config" >&5 +$as_echo_n "checking for MagickCore-config... " >&6; } + gem_check_lib_pkgconfig_MAGICKCORE="" + if test "xMagickCore" != "x"; then + gem_check_lib_pkgconfig_MAGICKCORE="MagickCore"-config + if which -- "$gem_check_lib_pkgconfig_MAGICKCORE" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_MAGICKCORE=`which "MagickCore"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_MAGICKCORE="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_MAGICKCORE" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_MAGICKCORE_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_MAGICKCORE --cflags >/dev/null 2>&1; then + PKG_MAGICKCORE_CFLAGS=$(${gem_check_lib_pkgconfig_MAGICKCORE} --cflags) + PKG_CFLAGS="$PKG_MAGICKCORE_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_MAGICKCORE_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_MAGICKCORE --plugin-libs >/dev/null 2>&1; then + PKG_MAGICKCORE_LIBS=$(${gem_check_lib_pkgconfig_MAGICKCORE} --plugin-libs) + else + if $gem_check_lib_pkgconfig_MAGICKCORE --libs >/dev/null 2>&1; then + PKG_MAGICKCORE_LIBS=$(${gem_check_lib_pkgconfig_MAGICKCORE} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_MAGICKCORE_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lMagick" >&5 +$as_echo_n "checking for main in -lMagick... " >&6; } +if ${ac_cv_lib_Magick_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lMagick $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_Magick_main=yes +else + ac_cv_lib_Magick_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Magick_main" >&5 +$as_echo "$ac_cv_lib_Magick_main" >&6; } +if test "x$ac_cv_lib_Magick_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMAGICK 1 +_ACEOF + + LIBS="-lMagick $LIBS" + +fi + + PKG_MAGICKCORE_LIBS="-lMagick" + else + PKG_LIBS="${PKG_MAGICKCORE_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_Magick_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMAGICKCORE 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMAGICK 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_MAGICKCORE_CFLAGS=${PKG_MAGICKCORE_CFLAGS} + GEM_LIB_MAGICKCORE_LIBS=${PKG_MAGICKCORE_LIBS} + have_MagickCore="yes" + with_MagickCore="no" + +$as_echo "@%:@define HAVE_LIBMAGICK 1" >>confdefs.h + + +else + + have_MagickCore="no" + + +fi + +fi + if test "x${have_MagickCore}" = "xyes"; then + HAVE_LIB_MAGICKCORE_TRUE= + HAVE_LIB_MAGICKCORE_FALSE='#' +else + HAVE_LIB_MAGICKCORE_TRUE='#' + HAVE_LIB_MAGICKCORE_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +#if test "x${have_ImageMagick}" = "xyes" +#then +# with_tiff=no +# with_jpeg=no +#fi + + + + + + + +@%:@ Check whether --with-tiff was given. +if test "${with_tiff+set}" = set; then : + withval=$with_tiff; +fi + + +@%:@ Check whether --with-tiff-includes was given. +if test "${with_tiff_includes+set}" = set; then : + withval=$with_tiff_includes; +fi + + +@%:@ Check whether --with-tiff-libs was given. +if test "${with_tiff_libs+set}" = set; then : + withval=$with_tiff_libs; +fi + + + if test "x$with_tiff" = "x"; then with_tiff=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_tiff" = "x"; then with_tiff="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_tiff" = "x"; then with_tiff="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_tiff = "xno"; then + have_tiff="no (forced)" +else + if test -d "$with_tiff_includes"; then + CFLAGS="-I$with_tiff_includes $CFLAGS" + CPPFLAGS="-I$with_tiff_includes $CPPFLAGS" + CXXFLAGS="-I$with_tiff_includes $CXXFLAGS" + fi + if test -d "$with_tiff_libs"; then + LIBS="-L$with_tiff_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_tiff_TIFFOpen) >/dev/null 2>&1 && unset ac_cv_lib_tiff_TIFFOpen + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_TIFF_CFLAGS" >&5 +$as_echo_n "checking for PKG_TIFF_CFLAGS... " >&6; } +if ${pkg_cv_PKG_TIFF_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_TIFF_CFLAGS_set" = "xset"; then + pkg_cv_PKG_TIFF_CFLAGS=$ac_cv_env_PKG_TIFF_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"tiff\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "tiff" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_TIFF_CFLAGS=`$PKG_CONFIG --cflags "tiff" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_TIFF_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_TIFF_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_TIFF_LIBS" >&5 +$as_echo_n "checking for PKG_TIFF_LIBS... " >&6; } +if ${pkg_cv_PKG_TIFF_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_TIFF_LIBS_set" = "xset"; then + pkg_cv_PKG_TIFF_LIBS=$ac_cv_env_PKG_TIFF_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"tiff\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "tiff" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_TIFF_LIBS=`$PKG_CONFIG --libs "tiff" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_TIFF_LIBS" >&5 +$as_echo "$pkg_cv_PKG_TIFF_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_TIFF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tiff"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_TIFF_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_TIFF_CFLAGS=$pkg_cv_PKG_TIFF_CFLAGS + PKG_TIFF_LIBS=$pkg_cv_PKG_TIFF_LIBS + ac_cv_lib_tiff_TIFFOpen=yes +fi +if test "x${PKG_TIFF_CFLAGS}" != "x"; then + + for element in "${PKG_TIFF_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_TIFF_LIBS}" != "x"; then + PKG_LIBS="${PKG_TIFF_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_tiff_TIFFOpen" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tiff-config" >&5 +$as_echo_n "checking for tiff-config... " >&6; } + gem_check_lib_pkgconfig_TIFF="" + if test "xtiff" != "x"; then + gem_check_lib_pkgconfig_TIFF="tiff"-config + if which -- "$gem_check_lib_pkgconfig_TIFF" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_TIFF=`which "tiff"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_TIFF="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_TIFF" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_TIFF_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_TIFF --cflags >/dev/null 2>&1; then + PKG_TIFF_CFLAGS=$(${gem_check_lib_pkgconfig_TIFF} --cflags) + PKG_CFLAGS="$PKG_TIFF_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_TIFF_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_TIFF --plugin-libs >/dev/null 2>&1; then + PKG_TIFF_LIBS=$(${gem_check_lib_pkgconfig_TIFF} --plugin-libs) + else + if $gem_check_lib_pkgconfig_TIFF --libs >/dev/null 2>&1; then + PKG_TIFF_LIBS=$(${gem_check_lib_pkgconfig_TIFF} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_TIFF_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 +$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } +if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltiff $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char TIFFOpen (); +int +main () +{ +return TIFFOpen (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_tiff_TIFFOpen=yes +else + ac_cv_lib_tiff_TIFFOpen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 +$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } +if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBTIFF 1 +_ACEOF + + LIBS="-ltiff $LIBS" + +fi + + PKG_TIFF_LIBS="-ltiff" + else + PKG_LIBS="${PKG_TIFF_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_tiff_TIFFOpen" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBTIFF 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBTIFF 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_TIFFOPEN 1 +_ACEOF + + GEM_LIB_TIFF_CFLAGS=${PKG_TIFF_CFLAGS} + GEM_LIB_TIFF_LIBS=${PKG_TIFF_LIBS} + have_tiff="yes" + with_tiff="no" + + +else + + have_tiff="no" + + +fi + +fi + if test "x${have_tiff}" = "xyes"; then + HAVE_LIB_TIFF_TRUE= + HAVE_LIB_TIFF_FALSE='#' +else + HAVE_LIB_TIFF_TRUE='#' + HAVE_LIB_TIFF_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-jpeg was given. +if test "${with_jpeg+set}" = set; then : + withval=$with_jpeg; +fi + + +@%:@ Check whether --with-jpeg-includes was given. +if test "${with_jpeg_includes+set}" = set; then : + withval=$with_jpeg_includes; +fi + + +@%:@ Check whether --with-jpeg-libs was given. +if test "${with_jpeg_libs+set}" = set; then : + withval=$with_jpeg_libs; +fi + + + if test "x$with_jpeg" = "x"; then with_jpeg=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_jpeg" = "x"; then with_jpeg="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_jpeg" = "x"; then with_jpeg="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_jpeg = "xno"; then + have_jpeg="no (forced)" +else + if test -d "$with_jpeg_includes"; then + CFLAGS="-I$with_jpeg_includes $CFLAGS" + CPPFLAGS="-I$with_jpeg_includes $CPPFLAGS" + CXXFLAGS="-I$with_jpeg_includes $CXXFLAGS" + fi + if test -d "$with_jpeg_libs"; then + LIBS="-L$with_jpeg_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_jpeg_jpeg_read_header) >/dev/null 2>&1 && unset ac_cv_lib_jpeg_jpeg_read_header + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_JPEG_CFLAGS" >&5 +$as_echo_n "checking for PKG_JPEG_CFLAGS... " >&6; } +if ${pkg_cv_PKG_JPEG_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_JPEG_CFLAGS_set" = "xset"; then + pkg_cv_PKG_JPEG_CFLAGS=$ac_cv_env_PKG_JPEG_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"jpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "jpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_JPEG_CFLAGS=`$PKG_CONFIG --cflags "jpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_JPEG_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_JPEG_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_JPEG_LIBS" >&5 +$as_echo_n "checking for PKG_JPEG_LIBS... " >&6; } +if ${pkg_cv_PKG_JPEG_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_JPEG_LIBS_set" = "xset"; then + pkg_cv_PKG_JPEG_LIBS=$ac_cv_env_PKG_JPEG_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"jpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "jpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_JPEG_LIBS=`$PKG_CONFIG --libs "jpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_JPEG_LIBS" >&5 +$as_echo "$pkg_cv_PKG_JPEG_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_JPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jpeg"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_JPEG_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_JPEG_CFLAGS=$pkg_cv_PKG_JPEG_CFLAGS + PKG_JPEG_LIBS=$pkg_cv_PKG_JPEG_LIBS + ac_cv_lib_jpeg_jpeg_read_header=yes +fi +if test "x${PKG_JPEG_CFLAGS}" != "x"; then + + for element in "${PKG_JPEG_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_JPEG_LIBS}" != "x"; then + PKG_LIBS="${PKG_JPEG_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_jpeg_jpeg_read_header" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg-config" >&5 +$as_echo_n "checking for jpeg-config... " >&6; } + gem_check_lib_pkgconfig_JPEG="" + if test "xjpeg" != "x"; then + gem_check_lib_pkgconfig_JPEG="jpeg"-config + if which -- "$gem_check_lib_pkgconfig_JPEG" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_JPEG=`which "jpeg"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_JPEG="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_JPEG" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_JPEG_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_JPEG --cflags >/dev/null 2>&1; then + PKG_JPEG_CFLAGS=$(${gem_check_lib_pkgconfig_JPEG} --cflags) + PKG_CFLAGS="$PKG_JPEG_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_JPEG_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_JPEG --plugin-libs >/dev/null 2>&1; then + PKG_JPEG_LIBS=$(${gem_check_lib_pkgconfig_JPEG} --plugin-libs) + else + if $gem_check_lib_pkgconfig_JPEG --libs >/dev/null 2>&1; then + PKG_JPEG_LIBS=$(${gem_check_lib_pkgconfig_JPEG} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_JPEG_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 +$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } +if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ljpeg $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char jpeg_read_header (); +int +main () +{ +return jpeg_read_header (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_jpeg_jpeg_read_header=yes +else + ac_cv_lib_jpeg_jpeg_read_header=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 +$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } +if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBJPEG 1 +_ACEOF + + LIBS="-ljpeg $LIBS" + +fi + + PKG_JPEG_LIBS="-ljpeg" + else + PKG_LIBS="${PKG_JPEG_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_jpeg_jpeg_read_header" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBJPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBJPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_JPEG_READ_HEADER 1 +_ACEOF + + GEM_LIB_JPEG_CFLAGS=${PKG_JPEG_CFLAGS} + GEM_LIB_JPEG_LIBS=${PKG_JPEG_LIBS} + have_jpeg="yes" + with_jpeg="no" + + +else + + have_jpeg="no" + + +fi + +fi + if test "x${have_jpeg}" = "xyes"; then + HAVE_LIB_JPEG_TRUE= + HAVE_LIB_JPEG_FALSE='#' +else + HAVE_LIB_JPEG_TRUE='#' + HAVE_LIB_JPEG_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + + + + + +@%:@ Check whether --with-ftgl was given. +if test "${with_ftgl+set}" = set; then : + withval=$with_ftgl; +fi + + +@%:@ Check whether --with-ftgl-includes was given. +if test "${with_ftgl_includes+set}" = set; then : + withval=$with_ftgl_includes; +fi + + +@%:@ Check whether --with-ftgl-libs was given. +if test "${with_ftgl_libs+set}" = set; then : + withval=$with_ftgl_libs; +fi + + + if test "x$with_ftgl" = "x"; then with_ftgl=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_ftgl" = "x"; then with_ftgl="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_ftgl" = "x"; then with_ftgl="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_ftgl = "xno"; then + have_ftgl="no (forced)" +else + if test -d "$with_ftgl_includes"; then + CFLAGS="-I$with_ftgl_includes $CFLAGS" + CPPFLAGS="-I$with_ftgl_includes $CPPFLAGS" + CXXFLAGS="-I$with_ftgl_includes $CXXFLAGS" + fi + if test -d "$with_ftgl_libs"; then + LIBS="-L$with_ftgl_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_ftgl_main) >/dev/null 2>&1 && unset ac_cv_lib_ftgl_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FTGL_CFLAGS" >&5 +$as_echo_n "checking for PKG_FTGL_CFLAGS... " >&6; } +if ${pkg_cv_PKG_FTGL_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FTGL_CFLAGS_set" = "xset"; then + pkg_cv_PKG_FTGL_CFLAGS=$ac_cv_env_PKG_FTGL_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ftgl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ftgl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FTGL_CFLAGS=`$PKG_CONFIG --cflags "ftgl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FTGL_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_FTGL_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FTGL_LIBS" >&5 +$as_echo_n "checking for PKG_FTGL_LIBS... " >&6; } +if ${pkg_cv_PKG_FTGL_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FTGL_LIBS_set" = "xset"; then + pkg_cv_PKG_FTGL_LIBS=$ac_cv_env_PKG_FTGL_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ftgl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ftgl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FTGL_LIBS=`$PKG_CONFIG --libs "ftgl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FTGL_LIBS" >&5 +$as_echo "$pkg_cv_PKG_FTGL_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_FTGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ftgl"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_FTGL_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_FTGL_CFLAGS=$pkg_cv_PKG_FTGL_CFLAGS + PKG_FTGL_LIBS=$pkg_cv_PKG_FTGL_LIBS + ac_cv_lib_ftgl_main=yes +fi +if test "x${PKG_FTGL_CFLAGS}" != "x"; then + + for element in "${PKG_FTGL_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_FTGL_LIBS}" != "x"; then + PKG_LIBS="${PKG_FTGL_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_ftgl_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftgl-config" >&5 +$as_echo_n "checking for ftgl-config... " >&6; } + gem_check_lib_pkgconfig_FTGL="" + if test "xftgl" != "x"; then + gem_check_lib_pkgconfig_FTGL="ftgl"-config + if which -- "$gem_check_lib_pkgconfig_FTGL" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_FTGL=`which "ftgl"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_FTGL="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_FTGL" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_FTGL_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_FTGL --cflags >/dev/null 2>&1; then + PKG_FTGL_CFLAGS=$(${gem_check_lib_pkgconfig_FTGL} --cflags) + PKG_CFLAGS="$PKG_FTGL_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_FTGL_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_FTGL --plugin-libs >/dev/null 2>&1; then + PKG_FTGL_LIBS=$(${gem_check_lib_pkgconfig_FTGL} --plugin-libs) + else + if $gem_check_lib_pkgconfig_FTGL --libs >/dev/null 2>&1; then + PKG_FTGL_LIBS=$(${gem_check_lib_pkgconfig_FTGL} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_FTGL_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lftgl" >&5 +$as_echo_n "checking for main in -lftgl... " >&6; } +if ${ac_cv_lib_ftgl_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lftgl -lfreetype $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ftgl_main=yes +else + ac_cv_lib_ftgl_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftgl_main" >&5 +$as_echo "$ac_cv_lib_ftgl_main" >&6; } +if test "x$ac_cv_lib_ftgl_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFTGL 1 +_ACEOF + + LIBS="-lftgl $LIBS" + +fi + + PKG_FTGL_LIBS="-lftgl" + else + PKG_LIBS="${PKG_FTGL_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_ftgl_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFTGL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFTGL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_FTGL_CFLAGS=${PKG_FTGL_CFLAGS} + GEM_LIB_FTGL_LIBS=${PKG_FTGL_LIBS} + have_ftgl="yes" + with_ftgl="no" + + +else + + have_ftgl="no" + + +fi + +fi + if test "x${have_ftgl}" = "xyes"; then + HAVE_LIB_FTGL_TRUE= + HAVE_LIB_FTGL_FALSE='#' +else + HAVE_LIB_FTGL_TRUE='#' + HAVE_LIB_FTGL_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +tmp_gem_check_ftgl_cflags="$CFLAGS" +tmp_gem_check_ftgl_cxxflags="$CXXFLAGS" + +CFLAGS="$CFLAGS $GEM_LIB_FTGL_CFLAGS" +CXXFLAGS="$CXXFLAGS $GEM_LIB_FTGL_CFLAGS" +for ac_header in FTGL/ftgl.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "FTGL/ftgl.h" "ac_cv_header_FTGL_ftgl_h" "$ac_includes_default" +if test "x$ac_cv_header_FTGL_ftgl_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_FTGL_FTGL_H 1 +_ACEOF + +fi + +done + + +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" + + + + + + + + +@%:@ Check whether --with-fribidi was given. +if test "${with_fribidi+set}" = set; then : + withval=$with_fribidi; +fi + + +@%:@ Check whether --with-fribidi-includes was given. +if test "${with_fribidi_includes+set}" = set; then : + withval=$with_fribidi_includes; +fi + + +@%:@ Check whether --with-fribidi-libs was given. +if test "${with_fribidi_libs+set}" = set; then : + withval=$with_fribidi_libs; +fi + + + if test "x$with_fribidi" = "x"; then with_fribidi=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_fribidi" = "x"; then with_fribidi="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_fribidi" = "x"; then with_fribidi="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_fribidi = "xno"; then + have_fribidi="no (forced)" +else + if test -d "$with_fribidi_includes"; then + CFLAGS="-I$with_fribidi_includes $CFLAGS" + CPPFLAGS="-I$with_fribidi_includes $CPPFLAGS" + CXXFLAGS="-I$with_fribidi_includes $CXXFLAGS" + fi + if test -d "$with_fribidi_libs"; then + LIBS="-L$with_fribidi_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_fribidi_fribidi_log2vis) >/dev/null 2>&1 && unset ac_cv_lib_fribidi_fribidi_log2vis + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FRIBIDI_CFLAGS" >&5 +$as_echo_n "checking for PKG_FRIBIDI_CFLAGS... " >&6; } +if ${pkg_cv_PKG_FRIBIDI_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FRIBIDI_CFLAGS_set" = "xset"; then + pkg_cv_PKG_FRIBIDI_CFLAGS=$ac_cv_env_PKG_FRIBIDI_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"fribidi\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "fribidi" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FRIBIDI_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_FRIBIDI_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FRIBIDI_LIBS" >&5 +$as_echo_n "checking for PKG_FRIBIDI_LIBS... " >&6; } +if ${pkg_cv_PKG_FRIBIDI_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FRIBIDI_LIBS_set" = "xset"; then + pkg_cv_PKG_FRIBIDI_LIBS=$ac_cv_env_PKG_FRIBIDI_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"fribidi\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "fribidi" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FRIBIDI_LIBS" >&5 +$as_echo "$pkg_cv_PKG_FRIBIDI_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fribidi"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_FRIBIDI_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_FRIBIDI_CFLAGS=$pkg_cv_PKG_FRIBIDI_CFLAGS + PKG_FRIBIDI_LIBS=$pkg_cv_PKG_FRIBIDI_LIBS + ac_cv_lib_fribidi_fribidi_log2vis=yes +fi +if test "x${PKG_FRIBIDI_CFLAGS}" != "x"; then + + for element in "${PKG_FRIBIDI_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_FRIBIDI_LIBS}" != "x"; then + PKG_LIBS="${PKG_FRIBIDI_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_fribidi_fribidi_log2vis" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fribidi-config" >&5 +$as_echo_n "checking for fribidi-config... " >&6; } + gem_check_lib_pkgconfig_FRIBIDI="" + if test "xfribidi" != "x"; then + gem_check_lib_pkgconfig_FRIBIDI="fribidi"-config + if which -- "$gem_check_lib_pkgconfig_FRIBIDI" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_FRIBIDI=`which "fribidi"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_FRIBIDI="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_FRIBIDI" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_FRIBIDI_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_FRIBIDI --cflags >/dev/null 2>&1; then + PKG_FRIBIDI_CFLAGS=$(${gem_check_lib_pkgconfig_FRIBIDI} --cflags) + PKG_CFLAGS="$PKG_FRIBIDI_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_FRIBIDI_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_FRIBIDI --plugin-libs >/dev/null 2>&1; then + PKG_FRIBIDI_LIBS=$(${gem_check_lib_pkgconfig_FRIBIDI} --plugin-libs) + else + if $gem_check_lib_pkgconfig_FRIBIDI --libs >/dev/null 2>&1; then + PKG_FRIBIDI_LIBS=$(${gem_check_lib_pkgconfig_FRIBIDI} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_FRIBIDI_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fribidi_log2vis in -lfribidi" >&5 +$as_echo_n "checking for fribidi_log2vis in -lfribidi... " >&6; } +if ${ac_cv_lib_fribidi_fribidi_log2vis+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lfribidi $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char fribidi_log2vis (); +int +main () +{ +return fribidi_log2vis (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_fribidi_fribidi_log2vis=yes +else + ac_cv_lib_fribidi_fribidi_log2vis=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fribidi_fribidi_log2vis" >&5 +$as_echo "$ac_cv_lib_fribidi_fribidi_log2vis" >&6; } +if test "x$ac_cv_lib_fribidi_fribidi_log2vis" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFRIBIDI 1 +_ACEOF + + LIBS="-lfribidi $LIBS" + +fi + + PKG_FRIBIDI_LIBS="-lfribidi" + else + PKG_LIBS="${PKG_FRIBIDI_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_fribidi_fribidi_log2vis" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFRIBIDI 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFRIBIDI 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_FRIBIDI_LOG2VIS 1 +_ACEOF + + GEM_LIB_FRIBIDI_CFLAGS=${PKG_FRIBIDI_CFLAGS} + GEM_LIB_FRIBIDI_LIBS=${PKG_FRIBIDI_LIBS} + have_fribidi="yes" + with_fribidi="no" + + +else + + have_fribidi="no" + + +fi + +fi + if test "x${have_fribidi}" = "xyes"; then + HAVE_LIB_FRIBIDI_TRUE= + HAVE_LIB_FRIBIDI_FALSE='#' +else + HAVE_LIB_FRIBIDI_TRUE='#' + HAVE_LIB_FRIBIDI_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +## film en/decoders + + + + + + + +@%:@ Check whether --with-avifile was given. +if test "${with_avifile+set}" = set; then : + withval=$with_avifile; +fi + + +@%:@ Check whether --with-avifile-includes was given. +if test "${with_avifile_includes+set}" = set; then : + withval=$with_avifile_includes; +fi + + +@%:@ Check whether --with-avifile-libs was given. +if test "${with_avifile_libs+set}" = set; then : + withval=$with_avifile_libs; +fi + + + if test "x$with_avifile" = "x"; then with_avifile=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_avifile" = "x"; then with_avifile="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_avifile" = "x"; then with_avifile="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_avifile = "xno"; then + have_avifile="no (forced)" +else + if test -d "$with_avifile_includes"; then + CFLAGS="-I$with_avifile_includes $CFLAGS" + CPPFLAGS="-I$with_avifile_includes $CPPFLAGS" + CXXFLAGS="-I$with_avifile_includes $CXXFLAGS" + fi + if test -d "$with_avifile_libs"; then + LIBS="-L$with_avifile_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_aviplay_CreateIAviReadFile) >/dev/null 2>&1 && unset ac_cv_lib_aviplay_CreateIAviReadFile + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_AVIFILE_CFLAGS" >&5 +$as_echo_n "checking for PKG_AVIFILE_CFLAGS... " >&6; } +if ${pkg_cv_PKG_AVIFILE_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_AVIFILE_CFLAGS_set" = "xset"; then + pkg_cv_PKG_AVIFILE_CFLAGS=$ac_cv_env_PKG_AVIFILE_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"avifile\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "avifile" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_AVIFILE_CFLAGS=`$PKG_CONFIG --cflags "avifile" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_AVIFILE_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_AVIFILE_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_AVIFILE_LIBS" >&5 +$as_echo_n "checking for PKG_AVIFILE_LIBS... " >&6; } +if ${pkg_cv_PKG_AVIFILE_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_AVIFILE_LIBS_set" = "xset"; then + pkg_cv_PKG_AVIFILE_LIBS=$ac_cv_env_PKG_AVIFILE_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"avifile\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "avifile" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_AVIFILE_LIBS=`$PKG_CONFIG --libs "avifile" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_AVIFILE_LIBS" >&5 +$as_echo "$pkg_cv_PKG_AVIFILE_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_AVIFILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "avifile"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_AVIFILE_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_AVIFILE_CFLAGS=$pkg_cv_PKG_AVIFILE_CFLAGS + PKG_AVIFILE_LIBS=$pkg_cv_PKG_AVIFILE_LIBS + ac_cv_lib_aviplay_CreateIAviReadFile=yes +fi +if test "x${PKG_AVIFILE_CFLAGS}" != "x"; then + + for element in "${PKG_AVIFILE_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_AVIFILE_LIBS}" != "x"; then + PKG_LIBS="${PKG_AVIFILE_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_aviplay_CreateIAviReadFile" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avifile-config" >&5 +$as_echo_n "checking for avifile-config... " >&6; } + gem_check_lib_pkgconfig_AVIFILE="" + if test "xavifile" != "x"; then + gem_check_lib_pkgconfig_AVIFILE="avifile"-config + if which -- "$gem_check_lib_pkgconfig_AVIFILE" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_AVIFILE=`which "avifile"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_AVIFILE="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_AVIFILE" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_AVIFILE_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_AVIFILE --cflags >/dev/null 2>&1; then + PKG_AVIFILE_CFLAGS=$(${gem_check_lib_pkgconfig_AVIFILE} --cflags) + PKG_CFLAGS="$PKG_AVIFILE_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_AVIFILE_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_AVIFILE --plugin-libs >/dev/null 2>&1; then + PKG_AVIFILE_LIBS=$(${gem_check_lib_pkgconfig_AVIFILE} --plugin-libs) + else + if $gem_check_lib_pkgconfig_AVIFILE --libs >/dev/null 2>&1; then + PKG_AVIFILE_LIBS=$(${gem_check_lib_pkgconfig_AVIFILE} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_AVIFILE_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateIAviReadFile in -laviplay" >&5 +$as_echo_n "checking for CreateIAviReadFile in -laviplay... " >&6; } +if ${ac_cv_lib_aviplay_CreateIAviReadFile+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-laviplay $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char CreateIAviReadFile (); +int +main () +{ +return CreateIAviReadFile (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_aviplay_CreateIAviReadFile=yes +else + ac_cv_lib_aviplay_CreateIAviReadFile=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aviplay_CreateIAviReadFile" >&5 +$as_echo "$ac_cv_lib_aviplay_CreateIAviReadFile" >&6; } +if test "x$ac_cv_lib_aviplay_CreateIAviReadFile" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBAVIPLAY 1 +_ACEOF + + LIBS="-laviplay $LIBS" + +fi + + PKG_AVIFILE_LIBS="-laviplay" + else + PKG_LIBS="${PKG_AVIFILE_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_aviplay_CreateIAviReadFile" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBAVIFILE 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBAVIPLAY 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_CREATEIAVIREADFILE 1 +_ACEOF + + GEM_LIB_AVIFILE_CFLAGS=${PKG_AVIFILE_CFLAGS} + GEM_LIB_AVIFILE_LIBS=${PKG_AVIFILE_LIBS} + have_avifile="yes" + with_avifile="no" + + +else + + have_avifile="no" + + +fi + +fi + if test "x${have_avifile}" = "xyes"; then + HAVE_LIB_AVIFILE_TRUE= + HAVE_LIB_AVIFILE_FALSE='#' +else + HAVE_LIB_AVIFILE_TRUE='#' + HAVE_LIB_AVIFILE_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-gmerlin_avdec was given. +if test "${with_gmerlin_avdec+set}" = set; then : + withval=$with_gmerlin_avdec; +fi + + +@%:@ Check whether --with-gmerlin_avdec-includes was given. +if test "${with_gmerlin_avdec_includes+set}" = set; then : + withval=$with_gmerlin_avdec_includes; +fi + + +@%:@ Check whether --with-gmerlin_avdec-libs was given. +if test "${with_gmerlin_avdec_libs+set}" = set; then : + withval=$with_gmerlin_avdec_libs; +fi + + + if test "x$with_gmerlin_avdec" = "x"; then with_gmerlin_avdec=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_gmerlin_avdec" = "x"; then with_gmerlin_avdec="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_gmerlin_avdec" = "x"; then with_gmerlin_avdec="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_gmerlin_avdec = "xno"; then + have_gmerlin_avdec="no (forced)" +else + if test -d "$with_gmerlin_avdec_includes"; then + CFLAGS="-I$with_gmerlin_avdec_includes $CFLAGS" + CPPFLAGS="-I$with_gmerlin_avdec_includes $CPPFLAGS" + CXXFLAGS="-I$with_gmerlin_avdec_includes $CXXFLAGS" + fi + if test -d "$with_gmerlin_avdec_libs"; then + LIBS="-L$with_gmerlin_avdec_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_gmerlin_avdec_gavl_start) >/dev/null 2>&1 && unset ac_cv_lib_gmerlin_avdec_gavl_start + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GMERLIN_AVDEC_CFLAGS" >&5 +$as_echo_n "checking for PKG_GMERLIN_AVDEC_CFLAGS... " >&6; } +if ${pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GMERLIN_AVDEC_CFLAGS_set" = "xset"; then + pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS=$ac_cv_env_PKG_GMERLIN_AVDEC_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"gmerlin_avdec\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "gmerlin_avdec" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS=`$PKG_CONFIG --cflags "gmerlin_avdec" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GMERLIN_AVDEC_LIBS" >&5 +$as_echo_n "checking for PKG_GMERLIN_AVDEC_LIBS... " >&6; } +if ${pkg_cv_PKG_GMERLIN_AVDEC_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GMERLIN_AVDEC_LIBS_set" = "xset"; then + pkg_cv_PKG_GMERLIN_AVDEC_LIBS=$ac_cv_env_PKG_GMERLIN_AVDEC_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"gmerlin_avdec\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "gmerlin_avdec" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GMERLIN_AVDEC_LIBS=`$PKG_CONFIG --libs "gmerlin_avdec" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GMERLIN_AVDEC_LIBS" >&5 +$as_echo "$pkg_cv_PKG_GMERLIN_AVDEC_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_GMERLIN_AVDEC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gmerlin_avdec"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_GMERLIN_AVDEC_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_GMERLIN_AVDEC_CFLAGS=$pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS + PKG_GMERLIN_AVDEC_LIBS=$pkg_cv_PKG_GMERLIN_AVDEC_LIBS + ac_cv_lib_gmerlin_avdec_gavl_start=yes +fi +if test "x${PKG_GMERLIN_AVDEC_CFLAGS}" != "x"; then + + for element in "${PKG_GMERLIN_AVDEC_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_GMERLIN_AVDEC_LIBS}" != "x"; then + PKG_LIBS="${PKG_GMERLIN_AVDEC_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_gmerlin_avdec_gavl_start" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmerlin_avdec-config" >&5 +$as_echo_n "checking for gmerlin_avdec-config... " >&6; } + gem_check_lib_pkgconfig_GMERLIN_AVDEC="" + if test "xgmerlin_avdec" != "x"; then + gem_check_lib_pkgconfig_GMERLIN_AVDEC="gmerlin_avdec"-config + if which -- "$gem_check_lib_pkgconfig_GMERLIN_AVDEC" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_GMERLIN_AVDEC=`which "gmerlin_avdec"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_GMERLIN_AVDEC="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_GMERLIN_AVDEC" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_GMERLIN_AVDEC_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_GMERLIN_AVDEC --cflags >/dev/null 2>&1; then + PKG_GMERLIN_AVDEC_CFLAGS=$(${gem_check_lib_pkgconfig_GMERLIN_AVDEC} --cflags) + PKG_CFLAGS="$PKG_GMERLIN_AVDEC_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_GMERLIN_AVDEC_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_GMERLIN_AVDEC --plugin-libs >/dev/null 2>&1; then + PKG_GMERLIN_AVDEC_LIBS=$(${gem_check_lib_pkgconfig_GMERLIN_AVDEC} --plugin-libs) + else + if $gem_check_lib_pkgconfig_GMERLIN_AVDEC --libs >/dev/null 2>&1; then + PKG_GMERLIN_AVDEC_LIBS=$(${gem_check_lib_pkgconfig_GMERLIN_AVDEC} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_GMERLIN_AVDEC_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gavl_start in -lgmerlin_avdec" >&5 +$as_echo_n "checking for gavl_start in -lgmerlin_avdec... " >&6; } +if ${ac_cv_lib_gmerlin_avdec_gavl_start+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgmerlin_avdec $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gavl_start (); +int +main () +{ +return gavl_start (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_gmerlin_avdec_gavl_start=yes +else + ac_cv_lib_gmerlin_avdec_gavl_start=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmerlin_avdec_gavl_start" >&5 +$as_echo "$ac_cv_lib_gmerlin_avdec_gavl_start" >&6; } +if test "x$ac_cv_lib_gmerlin_avdec_gavl_start" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGMERLIN_AVDEC 1 +_ACEOF + + LIBS="-lgmerlin_avdec $LIBS" + +fi + + PKG_GMERLIN_AVDEC_LIBS="-lgmerlin_avdec" + else + PKG_LIBS="${PKG_GMERLIN_AVDEC_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_gmerlin_avdec_gavl_start" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGMERLIN_AVDEC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGMERLIN_AVDEC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GAVL_START 1 +_ACEOF + + GEM_LIB_GMERLIN_AVDEC_CFLAGS=${PKG_GMERLIN_AVDEC_CFLAGS} + GEM_LIB_GMERLIN_AVDEC_LIBS=${PKG_GMERLIN_AVDEC_LIBS} + have_gmerlin_avdec="yes" + with_gmerlin_avdec="no" + + +else + + have_gmerlin_avdec="no" + + +fi + +fi + if test "x${have_gmerlin_avdec}" = "xyes"; then + HAVE_LIB_GMERLIN_AVDEC_TRUE= + HAVE_LIB_GMERLIN_AVDEC_FALSE='#' +else + HAVE_LIB_GMERLIN_AVDEC_TRUE='#' + HAVE_LIB_GMERLIN_AVDEC_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-mpeg was given. +if test "${with_mpeg+set}" = set; then : + withval=$with_mpeg; +fi + + +@%:@ Check whether --with-mpeg-includes was given. +if test "${with_mpeg_includes+set}" = set; then : + withval=$with_mpeg_includes; +fi + + +@%:@ Check whether --with-mpeg-libs was given. +if test "${with_mpeg_libs+set}" = set; then : + withval=$with_mpeg_libs; +fi + + + if test "x$with_mpeg" = "x"; then with_mpeg=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_mpeg" = "x"; then with_mpeg="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_mpeg" = "x"; then with_mpeg="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_mpeg = "xno"; then + have_mpeg="no (forced)" +else + if test -d "$with_mpeg_includes"; then + CFLAGS="-I$with_mpeg_includes $CFLAGS" + CPPFLAGS="-I$with_mpeg_includes $CPPFLAGS" + CXXFLAGS="-I$with_mpeg_includes $CXXFLAGS" + fi + if test -d "$with_mpeg_libs"; then + LIBS="-L$with_mpeg_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_mpeg_OpenMPEG) >/dev/null 2>&1 && unset ac_cv_lib_mpeg_OpenMPEG + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MPEG_CFLAGS" >&5 +$as_echo_n "checking for PKG_MPEG_CFLAGS... " >&6; } +if ${pkg_cv_PKG_MPEG_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MPEG_CFLAGS_set" = "xset"; then + pkg_cv_PKG_MPEG_CFLAGS=$ac_cv_env_PKG_MPEG_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"mpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "mpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MPEG_CFLAGS=`$PKG_CONFIG --cflags "mpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MPEG_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_MPEG_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MPEG_LIBS" >&5 +$as_echo_n "checking for PKG_MPEG_LIBS... " >&6; } +if ${pkg_cv_PKG_MPEG_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MPEG_LIBS_set" = "xset"; then + pkg_cv_PKG_MPEG_LIBS=$ac_cv_env_PKG_MPEG_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"mpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "mpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MPEG_LIBS=`$PKG_CONFIG --libs "mpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MPEG_LIBS" >&5 +$as_echo "$pkg_cv_PKG_MPEG_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_MPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mpeg"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_MPEG_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_MPEG_CFLAGS=$pkg_cv_PKG_MPEG_CFLAGS + PKG_MPEG_LIBS=$pkg_cv_PKG_MPEG_LIBS + ac_cv_lib_mpeg_OpenMPEG=yes +fi +if test "x${PKG_MPEG_CFLAGS}" != "x"; then + + for element in "${PKG_MPEG_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_MPEG_LIBS}" != "x"; then + PKG_LIBS="${PKG_MPEG_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_mpeg_OpenMPEG" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpeg-config" >&5 +$as_echo_n "checking for mpeg-config... " >&6; } + gem_check_lib_pkgconfig_MPEG="" + if test "xmpeg" != "x"; then + gem_check_lib_pkgconfig_MPEG="mpeg"-config + if which -- "$gem_check_lib_pkgconfig_MPEG" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_MPEG=`which "mpeg"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_MPEG="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_MPEG" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_MPEG_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_MPEG --cflags >/dev/null 2>&1; then + PKG_MPEG_CFLAGS=$(${gem_check_lib_pkgconfig_MPEG} --cflags) + PKG_CFLAGS="$PKG_MPEG_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_MPEG_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_MPEG --plugin-libs >/dev/null 2>&1; then + PKG_MPEG_LIBS=$(${gem_check_lib_pkgconfig_MPEG} --plugin-libs) + else + if $gem_check_lib_pkgconfig_MPEG --libs >/dev/null 2>&1; then + PKG_MPEG_LIBS=$(${gem_check_lib_pkgconfig_MPEG} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_MPEG_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMPEG in -lmpeg" >&5 +$as_echo_n "checking for OpenMPEG in -lmpeg... " >&6; } +if ${ac_cv_lib_mpeg_OpenMPEG+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmpeg $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OpenMPEG (); +int +main () +{ +return OpenMPEG (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_mpeg_OpenMPEG=yes +else + ac_cv_lib_mpeg_OpenMPEG=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpeg_OpenMPEG" >&5 +$as_echo "$ac_cv_lib_mpeg_OpenMPEG" >&6; } +if test "x$ac_cv_lib_mpeg_OpenMPEG" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMPEG 1 +_ACEOF + + LIBS="-lmpeg $LIBS" + +fi + + PKG_MPEG_LIBS="-lmpeg" + else + PKG_LIBS="${PKG_MPEG_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_mpeg_OpenMPEG" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_OPENMPEG 1 +_ACEOF + + GEM_LIB_MPEG_CFLAGS=${PKG_MPEG_CFLAGS} + GEM_LIB_MPEG_LIBS=${PKG_MPEG_LIBS} + have_mpeg="yes" + with_mpeg="no" + + +else + + have_mpeg="no" + + +fi + +fi + if test "x${have_mpeg}" = "xyes"; then + HAVE_LIB_MPEG_TRUE= + HAVE_LIB_MPEG_FALSE='#' +else + HAVE_LIB_MPEG_TRUE='#' + HAVE_LIB_MPEG_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-libmpeg3 was given. +if test "${with_libmpeg3+set}" = set; then : + withval=$with_libmpeg3; +fi + + +@%:@ Check whether --with-libmpeg3-includes was given. +if test "${with_libmpeg3_includes+set}" = set; then : + withval=$with_libmpeg3_includes; +fi + + +@%:@ Check whether --with-libmpeg3-libs was given. +if test "${with_libmpeg3_libs+set}" = set; then : + withval=$with_libmpeg3_libs; +fi + + + if test "x$with_libmpeg3" = "x"; then with_libmpeg3=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libmpeg3" = "x"; then with_libmpeg3="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libmpeg3" = "x"; then with_libmpeg3="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libmpeg3 = "xno"; then + have_libmpeg3="no (forced)" +else + if test -d "$with_libmpeg3_includes"; then + CFLAGS="-I$with_libmpeg3_includes $CFLAGS" + CPPFLAGS="-I$with_libmpeg3_includes $CPPFLAGS" + CXXFLAGS="-I$with_libmpeg3_includes $CXXFLAGS" + fi + if test -d "$with_libmpeg3_libs"; then + LIBS="-L$with_libmpeg3_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_mpeg3_mpeg3_check_sig) >/dev/null 2>&1 && unset ac_cv_lib_mpeg3_mpeg3_check_sig + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBMPEG3_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBMPEG3_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBMPEG3_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBMPEG3_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBMPEG3_CFLAGS=$ac_cv_env_PKG_LIBMPEG3_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libmpeg3\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libmpeg3" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBMPEG3_CFLAGS=`$PKG_CONFIG --cflags "libmpeg3" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBMPEG3_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBMPEG3_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBMPEG3_LIBS" >&5 +$as_echo_n "checking for PKG_LIBMPEG3_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBMPEG3_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBMPEG3_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBMPEG3_LIBS=$ac_cv_env_PKG_LIBMPEG3_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libmpeg3\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libmpeg3" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBMPEG3_LIBS=`$PKG_CONFIG --libs "libmpeg3" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBMPEG3_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBMPEG3_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBMPEG3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmpeg3"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBMPEG3_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBMPEG3_CFLAGS=$pkg_cv_PKG_LIBMPEG3_CFLAGS + PKG_LIBMPEG3_LIBS=$pkg_cv_PKG_LIBMPEG3_LIBS + ac_cv_lib_mpeg3_mpeg3_check_sig=yes +fi +if test "x${PKG_LIBMPEG3_CFLAGS}" != "x"; then + + for element in "${PKG_LIBMPEG3_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBMPEG3_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBMPEG3_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_mpeg3_mpeg3_check_sig" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpeg3-config" >&5 +$as_echo_n "checking for libmpeg3-config... " >&6; } + gem_check_lib_pkgconfig_LIBMPEG3="" + if test "xlibmpeg3" != "x"; then + gem_check_lib_pkgconfig_LIBMPEG3="libmpeg3"-config + if which -- "$gem_check_lib_pkgconfig_LIBMPEG3" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBMPEG3=`which "libmpeg3"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBMPEG3="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBMPEG3" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBMPEG3_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBMPEG3 --cflags >/dev/null 2>&1; then + PKG_LIBMPEG3_CFLAGS=$(${gem_check_lib_pkgconfig_LIBMPEG3} --cflags) + PKG_CFLAGS="$PKG_LIBMPEG3_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBMPEG3_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBMPEG3 --plugin-libs >/dev/null 2>&1; then + PKG_LIBMPEG3_LIBS=$(${gem_check_lib_pkgconfig_LIBMPEG3} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBMPEG3 --libs >/dev/null 2>&1; then + PKG_LIBMPEG3_LIBS=$(${gem_check_lib_pkgconfig_LIBMPEG3} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBMPEG3_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpeg3_check_sig in -lmpeg3" >&5 +$as_echo_n "checking for mpeg3_check_sig in -lmpeg3... " >&6; } +if ${ac_cv_lib_mpeg3_mpeg3_check_sig+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmpeg3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mpeg3_check_sig (); +int +main () +{ +return mpeg3_check_sig (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_mpeg3_mpeg3_check_sig=yes +else + ac_cv_lib_mpeg3_mpeg3_check_sig=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpeg3_mpeg3_check_sig" >&5 +$as_echo "$ac_cv_lib_mpeg3_mpeg3_check_sig" >&6; } +if test "x$ac_cv_lib_mpeg3_mpeg3_check_sig" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMPEG3 1 +_ACEOF + + LIBS="-lmpeg3 $LIBS" + +fi + + PKG_LIBMPEG3_LIBS="-lmpeg3" + else + PKG_LIBS="${PKG_LIBMPEG3_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_mpeg3_mpeg3_check_sig" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBMPEG3 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMPEG3 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MPEG3_CHECK_SIG 1 +_ACEOF + + GEM_LIB_LIBMPEG3_CFLAGS=${PKG_LIBMPEG3_CFLAGS} + GEM_LIB_LIBMPEG3_LIBS=${PKG_LIBMPEG3_LIBS} + have_libmpeg3="yes" + with_libmpeg3="no" + + +else + + have_libmpeg3="no" + + +fi + +fi + if test "x${have_libmpeg3}" = "xyes"; then + HAVE_LIB_LIBMPEG3_TRUE= + HAVE_LIB_LIBMPEG3_FALSE='#' +else + HAVE_LIB_LIBMPEG3_TRUE='#' + HAVE_LIB_LIBMPEG3_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-libquicktime was given. +if test "${with_libquicktime+set}" = set; then : + withval=$with_libquicktime; +fi + + +@%:@ Check whether --with-libquicktime-includes was given. +if test "${with_libquicktime_includes+set}" = set; then : + withval=$with_libquicktime_includes; +fi + + +@%:@ Check whether --with-libquicktime-libs was given. +if test "${with_libquicktime_libs+set}" = set; then : + withval=$with_libquicktime_libs; +fi + + + if test "x$with_libquicktime" = "x"; then with_libquicktime=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libquicktime" = "x"; then with_libquicktime="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libquicktime" = "x"; then with_libquicktime="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libquicktime = "xno"; then + have_libquicktime="no (forced)" +else + if test -d "$with_libquicktime_includes"; then + CFLAGS="-I$with_libquicktime_includes $CFLAGS" + CPPFLAGS="-I$with_libquicktime_includes $CPPFLAGS" + CXXFLAGS="-I$with_libquicktime_includes $CXXFLAGS" + fi + if test -d "$with_libquicktime_libs"; then + LIBS="-L$with_libquicktime_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_quicktime_quicktime_init) >/dev/null 2>&1 && unset ac_cv_lib_quicktime_quicktime_init + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBQUICKTIME_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBQUICKTIME_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBQUICKTIME_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBQUICKTIME_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBQUICKTIME_CFLAGS=$ac_cv_env_PKG_LIBQUICKTIME_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libquicktime\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libquicktime" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBQUICKTIME_CFLAGS=`$PKG_CONFIG --cflags "libquicktime" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBQUICKTIME_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBQUICKTIME_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBQUICKTIME_LIBS" >&5 +$as_echo_n "checking for PKG_LIBQUICKTIME_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBQUICKTIME_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBQUICKTIME_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBQUICKTIME_LIBS=$ac_cv_env_PKG_LIBQUICKTIME_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libquicktime\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libquicktime" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBQUICKTIME_LIBS=`$PKG_CONFIG --libs "libquicktime" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBQUICKTIME_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBQUICKTIME_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBQUICKTIME_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libquicktime"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBQUICKTIME_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBQUICKTIME_CFLAGS=$pkg_cv_PKG_LIBQUICKTIME_CFLAGS + PKG_LIBQUICKTIME_LIBS=$pkg_cv_PKG_LIBQUICKTIME_LIBS + ac_cv_lib_quicktime_quicktime_init=yes +fi +if test "x${PKG_LIBQUICKTIME_CFLAGS}" != "x"; then + + for element in "${PKG_LIBQUICKTIME_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBQUICKTIME_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBQUICKTIME_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libquicktime-config" >&5 +$as_echo_n "checking for libquicktime-config... " >&6; } + gem_check_lib_pkgconfig_LIBQUICKTIME="" + if test "xlibquicktime" != "x"; then + gem_check_lib_pkgconfig_LIBQUICKTIME="libquicktime"-config + if which -- "$gem_check_lib_pkgconfig_LIBQUICKTIME" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBQUICKTIME=`which "libquicktime"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBQUICKTIME="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBQUICKTIME" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBQUICKTIME_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBQUICKTIME --cflags >/dev/null 2>&1; then + PKG_LIBQUICKTIME_CFLAGS=$(${gem_check_lib_pkgconfig_LIBQUICKTIME} --cflags) + PKG_CFLAGS="$PKG_LIBQUICKTIME_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBQUICKTIME_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBQUICKTIME --plugin-libs >/dev/null 2>&1; then + PKG_LIBQUICKTIME_LIBS=$(${gem_check_lib_pkgconfig_LIBQUICKTIME} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBQUICKTIME --libs >/dev/null 2>&1; then + PKG_LIBQUICKTIME_LIBS=$(${gem_check_lib_pkgconfig_LIBQUICKTIME} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBQUICKTIME_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quicktime_init in -lquicktime" >&5 +$as_echo_n "checking for quicktime_init in -lquicktime... " >&6; } +if ${ac_cv_lib_quicktime_quicktime_init+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lquicktime $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char quicktime_init (); +int +main () +{ +return quicktime_init (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_quicktime_quicktime_init=yes +else + ac_cv_lib_quicktime_quicktime_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quicktime_quicktime_init" >&5 +$as_echo "$ac_cv_lib_quicktime_quicktime_init" >&6; } +if test "x$ac_cv_lib_quicktime_quicktime_init" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBQUICKTIME 1 +_ACEOF + + LIBS="-lquicktime $LIBS" + +fi + + PKG_LIBQUICKTIME_LIBS="-lquicktime" + else + PKG_LIBS="${PKG_LIBQUICKTIME_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBQUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBQUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_QUICKTIME_INIT 1 +_ACEOF + + GEM_LIB_LIBQUICKTIME_CFLAGS=${PKG_LIBQUICKTIME_CFLAGS} + GEM_LIB_LIBQUICKTIME_LIBS=${PKG_LIBQUICKTIME_LIBS} + have_libquicktime="yes" + with_libquicktime="no" + + +else + + have_libquicktime="no" + + +fi + +fi + if test "x${have_libquicktime}" = "xyes"; then + HAVE_LIB_LIBQUICKTIME_TRUE= + HAVE_LIB_LIBQUICKTIME_FALSE='#' +else + HAVE_LIB_LIBQUICKTIME_TRUE='#' + HAVE_LIB_LIBQUICKTIME_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-lqt was given. +if test "${with_lqt+set}" = set; then : + withval=$with_lqt; +fi + + +@%:@ Check whether --with-lqt-includes was given. +if test "${with_lqt_includes+set}" = set; then : + withval=$with_lqt_includes; +fi + + +@%:@ Check whether --with-lqt-libs was given. +if test "${with_lqt_libs+set}" = set; then : + withval=$with_lqt_libs; +fi + + + if test "x$with_lqt" = "x"; then with_lqt=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_lqt" = "x"; then with_lqt="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_lqt" = "x"; then with_lqt="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_lqt = "xno"; then + have_lqt="no (forced)" +else + if test -d "$with_lqt_includes"; then + CFLAGS="-I$with_lqt_includes $CFLAGS" + CPPFLAGS="-I$with_lqt_includes $CPPFLAGS" + CXXFLAGS="-I$with_lqt_includes $CXXFLAGS" + fi + if test -d "$with_lqt_libs"; then + LIBS="-L$with_lqt_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_quicktime_quicktime_init) >/dev/null 2>&1 && unset ac_cv_lib_quicktime_quicktime_init + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LQT_CFLAGS" >&5 +$as_echo_n "checking for PKG_LQT_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LQT_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LQT_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LQT_CFLAGS=$ac_cv_env_PKG_LQT_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"lqt\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "lqt" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LQT_CFLAGS=`$PKG_CONFIG --cflags "lqt" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LQT_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LQT_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LQT_LIBS" >&5 +$as_echo_n "checking for PKG_LQT_LIBS... " >&6; } +if ${pkg_cv_PKG_LQT_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LQT_LIBS_set" = "xset"; then + pkg_cv_PKG_LQT_LIBS=$ac_cv_env_PKG_LQT_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"lqt\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "lqt" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LQT_LIBS=`$PKG_CONFIG --libs "lqt" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LQT_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LQT_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LQT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lqt"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LQT_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LQT_CFLAGS=$pkg_cv_PKG_LQT_CFLAGS + PKG_LQT_LIBS=$pkg_cv_PKG_LQT_LIBS + ac_cv_lib_quicktime_quicktime_init=yes +fi +if test "x${PKG_LQT_CFLAGS}" != "x"; then + + for element in "${PKG_LQT_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LQT_LIBS}" != "x"; then + PKG_LIBS="${PKG_LQT_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lqt-config" >&5 +$as_echo_n "checking for lqt-config... " >&6; } + gem_check_lib_pkgconfig_LQT="" + if test "xlqt" != "x"; then + gem_check_lib_pkgconfig_LQT="lqt"-config + if which -- "$gem_check_lib_pkgconfig_LQT" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LQT=`which "lqt"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LQT="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LQT" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LQT_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LQT --cflags >/dev/null 2>&1; then + PKG_LQT_CFLAGS=$(${gem_check_lib_pkgconfig_LQT} --cflags) + PKG_CFLAGS="$PKG_LQT_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LQT_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LQT --plugin-libs >/dev/null 2>&1; then + PKG_LQT_LIBS=$(${gem_check_lib_pkgconfig_LQT} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LQT --libs >/dev/null 2>&1; then + PKG_LQT_LIBS=$(${gem_check_lib_pkgconfig_LQT} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LQT_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quicktime_init in -lquicktime" >&5 +$as_echo_n "checking for quicktime_init in -lquicktime... " >&6; } +if ${ac_cv_lib_quicktime_quicktime_init+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lquicktime $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char quicktime_init (); +int +main () +{ +return quicktime_init (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_quicktime_quicktime_init=yes +else + ac_cv_lib_quicktime_quicktime_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quicktime_quicktime_init" >&5 +$as_echo "$ac_cv_lib_quicktime_quicktime_init" >&6; } +if test "x$ac_cv_lib_quicktime_quicktime_init" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBQUICKTIME 1 +_ACEOF + + LIBS="-lquicktime $LIBS" + +fi + + PKG_LQT_LIBS="-lquicktime" + else + PKG_LIBS="${PKG_LQT_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLQT 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBQUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_QUICKTIME_INIT 1 +_ACEOF + + GEM_LIB_LQT_CFLAGS=${PKG_LQT_CFLAGS} + GEM_LIB_LQT_LIBS=${PKG_LQT_LIBS} + have_lqt="yes" + with_lqt="no" + + +else + + have_lqt="no" + + +fi + +fi + if test "x${have_lqt}" = "xyes"; then + HAVE_LIB_LQT_TRUE= + HAVE_LIB_LQT_FALSE='#' +else + HAVE_LIB_LQT_TRUE='#' + HAVE_LIB_LQT_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +# special function in libquicktime +old_cflags=${CFLAGS} +old_ldflags=${LDFLAGS} +CFLAGS="${CFLAGS} $GEM_LIB_LIBQUICKTIME_CFLAGS $GEM_LIB_LQT_CFLAGS" +LDFLAGS="${LDFLAGS} $GEM_LIB_LIBQUICKTIME_LIBS $GEM_LIB_LQT_LIBS" +for ac_func in lqt_seek_video +do : + ac_fn_cxx_check_func "$LINENO" "lqt_seek_video" "ac_cv_func_lqt_seek_video" +if test "x$ac_cv_func_lqt_seek_video" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LQT_SEEK_VIDEO 1 +_ACEOF + +fi +done + +for ac_func in lqt_open_write +do : + ac_fn_cxx_check_func "$LINENO" "lqt_open_write" "ac_cv_func_lqt_open_write" +if test "x$ac_cv_func_lqt_open_write" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LQT_OPEN_WRITE 1 +_ACEOF + +fi +done + +CFLAGS=${old_cflags} +LDFLAGS=${old_ldflags} + +#video + + + + + + + +@%:@ Check whether --with-libdc1394_2 was given. +if test "${with_libdc1394_2+set}" = set; then : + withval=$with_libdc1394_2; +fi + + +@%:@ Check whether --with-libdc1394_2-includes was given. +if test "${with_libdc1394_2_includes+set}" = set; then : + withval=$with_libdc1394_2_includes; +fi + + +@%:@ Check whether --with-libdc1394_2-libs was given. +if test "${with_libdc1394_2_libs+set}" = set; then : + withval=$with_libdc1394_2_libs; +fi + + + if test "x$with_libdc1394_2" = "x"; then with_libdc1394_2=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libdc1394_2" = "x"; then with_libdc1394_2="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libdc1394_2" = "x"; then with_libdc1394_2="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libdc1394_2 = "xno"; then + have_libdc1394_2="no (forced)" +else + if test -d "$with_libdc1394_2_includes"; then + CFLAGS="-I$with_libdc1394_2_includes $CFLAGS" + CPPFLAGS="-I$with_libdc1394_2_includes $CPPFLAGS" + CXXFLAGS="-I$with_libdc1394_2_includes $CXXFLAGS" + fi + if test -d "$with_libdc1394_2_libs"; then + LIBS="-L$with_libdc1394_2_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_dc1394_main) >/dev/null 2>&1 && unset ac_cv_lib_dc1394_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDC1394_2_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBDC1394_2_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBDC1394_2_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDC1394_2_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBDC1394_2_CFLAGS=$ac_cv_env_PKG_LIBDC1394_2_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdc1394-2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdc1394-2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDC1394_2_CFLAGS=`$PKG_CONFIG --cflags "libdc1394-2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDC1394_2_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBDC1394_2_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDC1394_2_LIBS" >&5 +$as_echo_n "checking for PKG_LIBDC1394_2_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBDC1394_2_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDC1394_2_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBDC1394_2_LIBS=$ac_cv_env_PKG_LIBDC1394_2_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdc1394-2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdc1394-2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDC1394_2_LIBS=`$PKG_CONFIG --libs "libdc1394-2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDC1394_2_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBDC1394_2_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBDC1394_2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdc1394-2"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBDC1394_2_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBDC1394_2_CFLAGS=$pkg_cv_PKG_LIBDC1394_2_CFLAGS + PKG_LIBDC1394_2_LIBS=$pkg_cv_PKG_LIBDC1394_2_LIBS + ac_cv_lib_dc1394_main=yes +fi +if test "x${PKG_LIBDC1394_2_CFLAGS}" != "x"; then + + for element in "${PKG_LIBDC1394_2_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBDC1394_2_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBDC1394_2_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_dc1394_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdc1394-2-config" >&5 +$as_echo_n "checking for libdc1394-2-config... " >&6; } + gem_check_lib_pkgconfig_LIBDC1394_2="" + if test "xlibdc1394-2" != "x"; then + gem_check_lib_pkgconfig_LIBDC1394_2="libdc1394-2"-config + if which -- "$gem_check_lib_pkgconfig_LIBDC1394_2" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBDC1394_2=`which "libdc1394-2"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBDC1394_2="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBDC1394_2" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBDC1394_2_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDC1394_2 --cflags >/dev/null 2>&1; then + PKG_LIBDC1394_2_CFLAGS=$(${gem_check_lib_pkgconfig_LIBDC1394_2} --cflags) + PKG_CFLAGS="$PKG_LIBDC1394_2_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBDC1394_2_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDC1394_2 --plugin-libs >/dev/null 2>&1; then + PKG_LIBDC1394_2_LIBS=$(${gem_check_lib_pkgconfig_LIBDC1394_2} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBDC1394_2 --libs >/dev/null 2>&1; then + PKG_LIBDC1394_2_LIBS=$(${gem_check_lib_pkgconfig_LIBDC1394_2} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBDC1394_2_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldc1394" >&5 +$as_echo_n "checking for main in -ldc1394... " >&6; } +if ${ac_cv_lib_dc1394_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldc1394 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dc1394_main=yes +else + ac_cv_lib_dc1394_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dc1394_main" >&5 +$as_echo "$ac_cv_lib_dc1394_main" >&6; } +if test "x$ac_cv_lib_dc1394_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBDC1394 1 +_ACEOF + + LIBS="-ldc1394 $LIBS" + +fi + + PKG_LIBDC1394_2_LIBS="-ldc1394" + else + PKG_LIBS="${PKG_LIBDC1394_2_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_dc1394_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBDC1394_2 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBDC1394 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBDC1394_2_CFLAGS=${PKG_LIBDC1394_2_CFLAGS} + GEM_LIB_LIBDC1394_2_LIBS=${PKG_LIBDC1394_2_LIBS} + have_libdc1394_2="yes" + with_libdc1394_2="no" + + +else + + have_libdc1394_2="no" + + +fi + +fi + if test "x${have_libdc1394_2}" = "xyes"; then + HAVE_LIB_LIBDC1394_2_TRUE= + HAVE_LIB_LIBDC1394_2_FALSE='#' +else + HAVE_LIB_LIBDC1394_2_TRUE='#' + HAVE_LIB_LIBDC1394_2_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-libdv was given. +if test "${with_libdv+set}" = set; then : + withval=$with_libdv; +fi + + +@%:@ Check whether --with-libdv-includes was given. +if test "${with_libdv_includes+set}" = set; then : + withval=$with_libdv_includes; +fi + + +@%:@ Check whether --with-libdv-libs was given. +if test "${with_libdv_libs+set}" = set; then : + withval=$with_libdv_libs; +fi + + + if test "x$with_libdv" = "x"; then with_libdv=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libdv" = "x"; then with_libdv="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libdv" = "x"; then with_libdv="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libdv = "xno"; then + have_libdv="no (forced)" +else + if test -d "$with_libdv_includes"; then + CFLAGS="-I$with_libdv_includes $CFLAGS" + CPPFLAGS="-I$with_libdv_includes $CPPFLAGS" + CXXFLAGS="-I$with_libdv_includes $CXXFLAGS" + fi + if test -d "$with_libdv_libs"; then + LIBS="-L$with_libdv_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_dv_main) >/dev/null 2>&1 && unset ac_cv_lib_dv_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDV_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBDV_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBDV_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDV_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBDV_CFLAGS=$ac_cv_env_PKG_LIBDV_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdv\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdv" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDV_CFLAGS=`$PKG_CONFIG --cflags "libdv" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDV_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBDV_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDV_LIBS" >&5 +$as_echo_n "checking for PKG_LIBDV_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBDV_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDV_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBDV_LIBS=$ac_cv_env_PKG_LIBDV_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdv\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdv" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDV_LIBS=`$PKG_CONFIG --libs "libdv" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDV_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBDV_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBDV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdv"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBDV_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBDV_CFLAGS=$pkg_cv_PKG_LIBDV_CFLAGS + PKG_LIBDV_LIBS=$pkg_cv_PKG_LIBDV_LIBS + ac_cv_lib_dv_main=yes +fi +if test "x${PKG_LIBDV_CFLAGS}" != "x"; then + + for element in "${PKG_LIBDV_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBDV_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBDV_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_dv_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdv-config" >&5 +$as_echo_n "checking for libdv-config... " >&6; } + gem_check_lib_pkgconfig_LIBDV="" + if test "xlibdv" != "x"; then + gem_check_lib_pkgconfig_LIBDV="libdv"-config + if which -- "$gem_check_lib_pkgconfig_LIBDV" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBDV=`which "libdv"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBDV="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBDV" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBDV_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDV --cflags >/dev/null 2>&1; then + PKG_LIBDV_CFLAGS=$(${gem_check_lib_pkgconfig_LIBDV} --cflags) + PKG_CFLAGS="$PKG_LIBDV_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBDV_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDV --plugin-libs >/dev/null 2>&1; then + PKG_LIBDV_LIBS=$(${gem_check_lib_pkgconfig_LIBDV} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBDV --libs >/dev/null 2>&1; then + PKG_LIBDV_LIBS=$(${gem_check_lib_pkgconfig_LIBDV} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBDV_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldv" >&5 +$as_echo_n "checking for main in -ldv... " >&6; } +if ${ac_cv_lib_dv_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dv_main=yes +else + ac_cv_lib_dv_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dv_main" >&5 +$as_echo "$ac_cv_lib_dv_main" >&6; } +if test "x$ac_cv_lib_dv_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBDV 1 +_ACEOF + + LIBS="-ldv $LIBS" + +fi + + PKG_LIBDV_LIBS="-ldv" + else + PKG_LIBS="${PKG_LIBDV_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_dv_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBDV 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBDV 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBDV_CFLAGS=${PKG_LIBDV_CFLAGS} + GEM_LIB_LIBDV_LIBS=${PKG_LIBDV_LIBS} + have_libdv="yes" + with_libdv="no" + + +else + + have_libdv="no" + + +fi + +fi + if test "x${have_libdv}" = "xyes"; then + HAVE_LIB_LIBDV_TRUE= + HAVE_LIB_LIBDV_FALSE='#' +else + HAVE_LIB_LIBDV_TRUE='#' + HAVE_LIB_LIBDV_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-libraw1394 was given. +if test "${with_libraw1394+set}" = set; then : + withval=$with_libraw1394; +fi + + +@%:@ Check whether --with-libraw1394-includes was given. +if test "${with_libraw1394_includes+set}" = set; then : + withval=$with_libraw1394_includes; +fi + + +@%:@ Check whether --with-libraw1394-libs was given. +if test "${with_libraw1394_libs+set}" = set; then : + withval=$with_libraw1394_libs; +fi + + + if test "x$with_libraw1394" = "x"; then with_libraw1394=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libraw1394" = "x"; then with_libraw1394="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libraw1394" = "x"; then with_libraw1394="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libraw1394 = "xno"; then + have_libraw1394="no (forced)" +else + if test -d "$with_libraw1394_includes"; then + CFLAGS="-I$with_libraw1394_includes $CFLAGS" + CPPFLAGS="-I$with_libraw1394_includes $CPPFLAGS" + CXXFLAGS="-I$with_libraw1394_includes $CXXFLAGS" + fi + if test -d "$with_libraw1394_libs"; then + LIBS="-L$with_libraw1394_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_raw1394_main) >/dev/null 2>&1 && unset ac_cv_lib_raw1394_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBRAW1394_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBRAW1394_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBRAW1394_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBRAW1394_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBRAW1394_CFLAGS=$ac_cv_env_PKG_LIBRAW1394_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libraw1394\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libraw1394" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBRAW1394_CFLAGS=`$PKG_CONFIG --cflags "libraw1394" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBRAW1394_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBRAW1394_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBRAW1394_LIBS" >&5 +$as_echo_n "checking for PKG_LIBRAW1394_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBRAW1394_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBRAW1394_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBRAW1394_LIBS=$ac_cv_env_PKG_LIBRAW1394_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libraw1394\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libraw1394" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBRAW1394_LIBS=`$PKG_CONFIG --libs "libraw1394" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBRAW1394_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBRAW1394_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBRAW1394_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libraw1394"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBRAW1394_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBRAW1394_CFLAGS=$pkg_cv_PKG_LIBRAW1394_CFLAGS + PKG_LIBRAW1394_LIBS=$pkg_cv_PKG_LIBRAW1394_LIBS + ac_cv_lib_raw1394_main=yes +fi +if test "x${PKG_LIBRAW1394_CFLAGS}" != "x"; then + + for element in "${PKG_LIBRAW1394_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBRAW1394_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBRAW1394_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_raw1394_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraw1394-config" >&5 +$as_echo_n "checking for libraw1394-config... " >&6; } + gem_check_lib_pkgconfig_LIBRAW1394="" + if test "xlibraw1394" != "x"; then + gem_check_lib_pkgconfig_LIBRAW1394="libraw1394"-config + if which -- "$gem_check_lib_pkgconfig_LIBRAW1394" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBRAW1394=`which "libraw1394"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBRAW1394="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBRAW1394" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBRAW1394_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBRAW1394 --cflags >/dev/null 2>&1; then + PKG_LIBRAW1394_CFLAGS=$(${gem_check_lib_pkgconfig_LIBRAW1394} --cflags) + PKG_CFLAGS="$PKG_LIBRAW1394_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBRAW1394_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBRAW1394 --plugin-libs >/dev/null 2>&1; then + PKG_LIBRAW1394_LIBS=$(${gem_check_lib_pkgconfig_LIBRAW1394} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBRAW1394 --libs >/dev/null 2>&1; then + PKG_LIBRAW1394_LIBS=$(${gem_check_lib_pkgconfig_LIBRAW1394} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBRAW1394_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lraw1394" >&5 +$as_echo_n "checking for main in -lraw1394... " >&6; } +if ${ac_cv_lib_raw1394_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lraw1394 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_raw1394_main=yes +else + ac_cv_lib_raw1394_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raw1394_main" >&5 +$as_echo "$ac_cv_lib_raw1394_main" >&6; } +if test "x$ac_cv_lib_raw1394_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBRAW1394 1 +_ACEOF + + LIBS="-lraw1394 $LIBS" + +fi + + PKG_LIBRAW1394_LIBS="-lraw1394" + else + PKG_LIBS="${PKG_LIBRAW1394_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_raw1394_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBRAW1394 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBRAW1394 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBRAW1394_CFLAGS=${PKG_LIBRAW1394_CFLAGS} + GEM_LIB_LIBRAW1394_LIBS=${PKG_LIBRAW1394_LIBS} + have_libraw1394="yes" + with_libraw1394="no" + + +else + + have_libraw1394="no" + + +fi + +fi + if test "x${have_libraw1394}" = "xyes"; then + HAVE_LIB_LIBRAW1394_TRUE= + HAVE_LIB_LIBRAW1394_FALSE='#' +else + HAVE_LIB_LIBRAW1394_TRUE='#' + HAVE_LIB_LIBRAW1394_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-libiec61883 was given. +if test "${with_libiec61883+set}" = set; then : + withval=$with_libiec61883; +fi + + +@%:@ Check whether --with-libiec61883-includes was given. +if test "${with_libiec61883_includes+set}" = set; then : + withval=$with_libiec61883_includes; +fi + + +@%:@ Check whether --with-libiec61883-libs was given. +if test "${with_libiec61883_libs+set}" = set; then : + withval=$with_libiec61883_libs; +fi + + + if test "x$with_libiec61883" = "x"; then with_libiec61883=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libiec61883" = "x"; then with_libiec61883="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libiec61883" = "x"; then with_libiec61883="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libiec61883 = "xno"; then + have_libiec61883="no (forced)" +else + if test -d "$with_libiec61883_includes"; then + CFLAGS="-I$with_libiec61883_includes $CFLAGS" + CPPFLAGS="-I$with_libiec61883_includes $CPPFLAGS" + CXXFLAGS="-I$with_libiec61883_includes $CXXFLAGS" + fi + if test -d "$with_libiec61883_libs"; then + LIBS="-L$with_libiec61883_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_iec61883_main) >/dev/null 2>&1 && unset ac_cv_lib_iec61883_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBIEC61883_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBIEC61883_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBIEC61883_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBIEC61883_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBIEC61883_CFLAGS=$ac_cv_env_PKG_LIBIEC61883_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libiec61883\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libiec61883" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBIEC61883_CFLAGS=`$PKG_CONFIG --cflags "libiec61883" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBIEC61883_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBIEC61883_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBIEC61883_LIBS" >&5 +$as_echo_n "checking for PKG_LIBIEC61883_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBIEC61883_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBIEC61883_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBIEC61883_LIBS=$ac_cv_env_PKG_LIBIEC61883_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libiec61883\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libiec61883" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBIEC61883_LIBS=`$PKG_CONFIG --libs "libiec61883" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBIEC61883_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBIEC61883_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBIEC61883_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libiec61883"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBIEC61883_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBIEC61883_CFLAGS=$pkg_cv_PKG_LIBIEC61883_CFLAGS + PKG_LIBIEC61883_LIBS=$pkg_cv_PKG_LIBIEC61883_LIBS + ac_cv_lib_iec61883_main=yes +fi +if test "x${PKG_LIBIEC61883_CFLAGS}" != "x"; then + + for element in "${PKG_LIBIEC61883_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBIEC61883_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBIEC61883_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_iec61883_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiec61883-config" >&5 +$as_echo_n "checking for libiec61883-config... " >&6; } + gem_check_lib_pkgconfig_LIBIEC61883="" + if test "xlibiec61883" != "x"; then + gem_check_lib_pkgconfig_LIBIEC61883="libiec61883"-config + if which -- "$gem_check_lib_pkgconfig_LIBIEC61883" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBIEC61883=`which "libiec61883"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBIEC61883="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBIEC61883" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBIEC61883_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBIEC61883 --cflags >/dev/null 2>&1; then + PKG_LIBIEC61883_CFLAGS=$(${gem_check_lib_pkgconfig_LIBIEC61883} --cflags) + PKG_CFLAGS="$PKG_LIBIEC61883_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBIEC61883_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBIEC61883 --plugin-libs >/dev/null 2>&1; then + PKG_LIBIEC61883_LIBS=$(${gem_check_lib_pkgconfig_LIBIEC61883} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBIEC61883 --libs >/dev/null 2>&1; then + PKG_LIBIEC61883_LIBS=$(${gem_check_lib_pkgconfig_LIBIEC61883} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBIEC61883_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -liec61883" >&5 +$as_echo_n "checking for main in -liec61883... " >&6; } +if ${ac_cv_lib_iec61883_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-liec61883 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_iec61883_main=yes +else + ac_cv_lib_iec61883_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iec61883_main" >&5 +$as_echo "$ac_cv_lib_iec61883_main" >&6; } +if test "x$ac_cv_lib_iec61883_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBIEC61883 1 +_ACEOF + + LIBS="-liec61883 $LIBS" + +fi + + PKG_LIBIEC61883_LIBS="-liec61883" + else + PKG_LIBS="${PKG_LIBIEC61883_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_iec61883_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBIEC61883 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBIEC61883 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBIEC61883_CFLAGS=${PKG_LIBIEC61883_CFLAGS} + GEM_LIB_LIBIEC61883_LIBS=${PKG_LIBIEC61883_LIBS} + have_libiec61883="yes" + with_libiec61883="no" + + +else + + have_libiec61883="no" + + +fi + +fi + if test "x${have_libiec61883}" = "xyes"; then + HAVE_LIB_LIBIEC61883_TRUE= + HAVE_LIB_LIBIEC61883_FALSE='#' +else + HAVE_LIB_LIBIEC61883_TRUE='#' + HAVE_LIB_LIBIEC61883_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +for ac_header in vl/vl.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "vl/vl.h" "ac_cv_header_vl_vl_h" "$ac_includes_default" +if test "x$ac_cv_header_vl_vl_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_VL_VL_H 1 +_ACEOF + +fi + +done + + + + if test "x$with_ALL" = "xyes" && test "x${with_unicap}" = "x"; then with_unicap="yes"; fi + if test "x$with_ALL" = "xno" && test "x${with_unicap}" = "x"; then with_unicap="no"; fi + + +@%:@ Check whether --with-unicap was given. +if test "${with_unicap+set}" = set; then : + withval=$with_unicap; +else + + if test "xforce" != "x"; then with_unicap="yes"; fi + +fi + + + + + + + + + + +@%:@ Check whether --with-libunicap was given. +if test "${with_libunicap+set}" = set; then : + withval=$with_libunicap; +fi + + +@%:@ Check whether --with-libunicap-includes was given. +if test "${with_libunicap_includes+set}" = set; then : + withval=$with_libunicap_includes; +fi + + +@%:@ Check whether --with-libunicap-libs was given. +if test "${with_libunicap_libs+set}" = set; then : + withval=$with_libunicap_libs; +fi + + + if test "x$with_libunicap" = "x"; then with_libunicap=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libunicap" = "x"; then with_libunicap="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libunicap" = "x"; then with_libunicap="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libunicap = "xno"; then + have_libunicap="no (forced)" +else + if test -d "$with_libunicap_includes"; then + CFLAGS="-I$with_libunicap_includes $CFLAGS" + CPPFLAGS="-I$with_libunicap_includes $CPPFLAGS" + CXXFLAGS="-I$with_libunicap_includes $CXXFLAGS" + fi + if test -d "$with_libunicap_libs"; then + LIBS="-L$with_libunicap_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_unicap_unicap_check_version) >/dev/null 2>&1 && unset ac_cv_lib_unicap_unicap_check_version + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBUNICAP_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBUNICAP_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBUNICAP_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBUNICAP_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBUNICAP_CFLAGS=$ac_cv_env_PKG_LIBUNICAP_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libunicap\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libunicap" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBUNICAP_CFLAGS=`$PKG_CONFIG --cflags "libunicap" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBUNICAP_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBUNICAP_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBUNICAP_LIBS" >&5 +$as_echo_n "checking for PKG_LIBUNICAP_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBUNICAP_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBUNICAP_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBUNICAP_LIBS=$ac_cv_env_PKG_LIBUNICAP_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libunicap\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libunicap" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBUNICAP_LIBS=`$PKG_CONFIG --libs "libunicap" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBUNICAP_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBUNICAP_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBUNICAP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libunicap"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBUNICAP_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBUNICAP_CFLAGS=$pkg_cv_PKG_LIBUNICAP_CFLAGS + PKG_LIBUNICAP_LIBS=$pkg_cv_PKG_LIBUNICAP_LIBS + ac_cv_lib_unicap_unicap_check_version=yes +fi +if test "x${PKG_LIBUNICAP_CFLAGS}" != "x"; then + + for element in "${PKG_LIBUNICAP_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBUNICAP_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBUNICAP_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_unicap_unicap_check_version" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunicap-config" >&5 +$as_echo_n "checking for libunicap-config... " >&6; } + gem_check_lib_pkgconfig_LIBUNICAP="" + if test "xlibunicap" != "x"; then + gem_check_lib_pkgconfig_LIBUNICAP="libunicap"-config + if which -- "$gem_check_lib_pkgconfig_LIBUNICAP" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBUNICAP=`which "libunicap"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBUNICAP="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBUNICAP" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBUNICAP_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBUNICAP --cflags >/dev/null 2>&1; then + PKG_LIBUNICAP_CFLAGS=$(${gem_check_lib_pkgconfig_LIBUNICAP} --cflags) + PKG_CFLAGS="$PKG_LIBUNICAP_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBUNICAP_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBUNICAP --plugin-libs >/dev/null 2>&1; then + PKG_LIBUNICAP_LIBS=$(${gem_check_lib_pkgconfig_LIBUNICAP} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBUNICAP --libs >/dev/null 2>&1; then + PKG_LIBUNICAP_LIBS=$(${gem_check_lib_pkgconfig_LIBUNICAP} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBUNICAP_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unicap_check_version in -lunicap" >&5 +$as_echo_n "checking for unicap_check_version in -lunicap... " >&6; } +if ${ac_cv_lib_unicap_unicap_check_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lunicap $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char unicap_check_version (); +int +main () +{ +return unicap_check_version (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_unicap_unicap_check_version=yes +else + ac_cv_lib_unicap_unicap_check_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unicap_unicap_check_version" >&5 +$as_echo "$ac_cv_lib_unicap_unicap_check_version" >&6; } +if test "x$ac_cv_lib_unicap_unicap_check_version" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBUNICAP 1 +_ACEOF + + LIBS="-lunicap $LIBS" + +fi + + PKG_LIBUNICAP_LIBS="-lunicap" + else + PKG_LIBS="${PKG_LIBUNICAP_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_unicap_unicap_check_version" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBUNICAP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBUNICAP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_UNICAP_CHECK_VERSION 1 +_ACEOF + + GEM_LIB_LIBUNICAP_CFLAGS=${PKG_LIBUNICAP_CFLAGS} + GEM_LIB_LIBUNICAP_LIBS=${PKG_LIBUNICAP_LIBS} + have_libunicap="yes" + with_libunicap="no" + + +else + + have_libunicap="no" + + +fi + +fi + if test "x${have_libunicap}" = "xyes"; then + HAVE_LIB_LIBUNICAP_TRUE= + HAVE_LIB_LIBUNICAP_FALSE='#' +else + HAVE_LIB_LIBUNICAP_TRUE='#' + HAVE_LIB_LIBUNICAP_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +if test "x$have_unicap" = "xyes"; then + ac_fn_cxx_check_header_mongrel "$LINENO" "unicap/unicap.h" "ac_cv_header_unicap_unicap_h" "$ac_includes_default" +if test "x$ac_cv_header_unicap_unicap_h" = xyes; then : + + +$as_echo "@%:@define HAVE_UNICAP /**/" >>confdefs.h + + have_unicap="yes" + +else + have_unicap="no" +fi + + +fi +if test "x$have_libunicap"; then + have_unicap="yes" +fi + if test "x${have_unicap}" = "xyes"; then + HAVE_LIB_UNICAP_TRUE= + HAVE_LIB_UNICAP_FALSE='#' +else + HAVE_LIB_UNICAP_TRUE='#' + HAVE_LIB_UNICAP_FALSE= +fi + + + +have_v4l="no" + + if test "x$with_ALL" = "xyes" && test "x${with_v4l}" = "x"; then with_v4l="yes"; fi + if test "x$with_ALL" = "xno" && test "x${with_v4l}" = "x"; then with_v4l="no"; fi + + +@%:@ Check whether --with-v4l was given. +if test "${with_v4l+set}" = set; then : + withval=$with_v4l; +else + + if test "xforce" != "x"; then with_v4l="yes"; fi + +fi + + +for ac_header in linux/videodev.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default" +if test "x$ac_cv_header_linux_videodev_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LINUX_VIDEODEV_H 1 +_ACEOF + have_v4l="yes" +fi + +done + + + + + + + + +@%:@ Check whether --with-libv4l1 was given. +if test "${with_libv4l1+set}" = set; then : + withval=$with_libv4l1; +fi + + +@%:@ Check whether --with-libv4l1-includes was given. +if test "${with_libv4l1_includes+set}" = set; then : + withval=$with_libv4l1_includes; +fi + + +@%:@ Check whether --with-libv4l1-libs was given. +if test "${with_libv4l1_libs+set}" = set; then : + withval=$with_libv4l1_libs; +fi + + + if test "x$with_libv4l1" = "x"; then with_libv4l1=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libv4l1" = "x"; then with_libv4l1="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libv4l1" = "x"; then with_libv4l1="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libv4l1 = "xno"; then + have_libv4l1="no (forced)" +else + if test -d "$with_libv4l1_includes"; then + CFLAGS="-I$with_libv4l1_includes $CFLAGS" + CPPFLAGS="-I$with_libv4l1_includes $CPPFLAGS" + CXXFLAGS="-I$with_libv4l1_includes $CXXFLAGS" + fi + if test -d "$with_libv4l1_libs"; then + LIBS="-L$with_libv4l1_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_v4l1_v4l1_open) >/dev/null 2>&1 && unset ac_cv_lib_v4l1_v4l1_open + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L1_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBV4L1_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBV4L1_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L1_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBV4L1_CFLAGS=$ac_cv_env_PKG_LIBV4L1_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l1\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l1" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L1_CFLAGS=`$PKG_CONFIG --cflags "libv4l1" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L1_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L1_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L1_LIBS" >&5 +$as_echo_n "checking for PKG_LIBV4L1_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBV4L1_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L1_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBV4L1_LIBS=$ac_cv_env_PKG_LIBV4L1_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l1\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l1" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L1_LIBS=`$PKG_CONFIG --libs "libv4l1" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L1_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L1_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBV4L1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libv4l1"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBV4L1_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBV4L1_CFLAGS=$pkg_cv_PKG_LIBV4L1_CFLAGS + PKG_LIBV4L1_LIBS=$pkg_cv_PKG_LIBV4L1_LIBS + ac_cv_lib_v4l1_v4l1_open=yes +fi +if test "x${PKG_LIBV4L1_CFLAGS}" != "x"; then + + for element in "${PKG_LIBV4L1_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBV4L1_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBV4L1_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_v4l1_v4l1_open" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libv4l1-config" >&5 +$as_echo_n "checking for libv4l1-config... " >&6; } + gem_check_lib_pkgconfig_LIBV4L1="" + if test "xlibv4l1" != "x"; then + gem_check_lib_pkgconfig_LIBV4L1="libv4l1"-config + if which -- "$gem_check_lib_pkgconfig_LIBV4L1" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBV4L1=`which "libv4l1"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBV4L1="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBV4L1" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBV4L1_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L1 --cflags >/dev/null 2>&1; then + PKG_LIBV4L1_CFLAGS=$(${gem_check_lib_pkgconfig_LIBV4L1} --cflags) + PKG_CFLAGS="$PKG_LIBV4L1_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBV4L1_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L1 --plugin-libs >/dev/null 2>&1; then + PKG_LIBV4L1_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L1} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBV4L1 --libs >/dev/null 2>&1; then + PKG_LIBV4L1_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L1} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBV4L1_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l1_open in -lv4l1" >&5 +$as_echo_n "checking for v4l1_open in -lv4l1... " >&6; } +if ${ac_cv_lib_v4l1_v4l1_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lv4l1 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char v4l1_open (); +int +main () +{ +return v4l1_open (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_v4l1_v4l1_open=yes +else + ac_cv_lib_v4l1_v4l1_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l1_v4l1_open" >&5 +$as_echo "$ac_cv_lib_v4l1_v4l1_open" >&6; } +if test "x$ac_cv_lib_v4l1_v4l1_open" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBV4L1 1 +_ACEOF + + LIBS="-lv4l1 $LIBS" + +fi + + PKG_LIBV4L1_LIBS="-lv4l1" + else + PKG_LIBS="${PKG_LIBV4L1_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_v4l1_v4l1_open" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBV4L1 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBV4L1 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_V4L1_OPEN 1 +_ACEOF + + GEM_LIB_LIBV4L1_CFLAGS=${PKG_LIBV4L1_CFLAGS} + GEM_LIB_LIBV4L1_LIBS=${PKG_LIBV4L1_LIBS} + have_libv4l1="yes" + with_libv4l1="no" + + +else + + have_libv4l1="no" + + +fi + +fi + if test "x${have_libv4l1}" = "xyes"; then + HAVE_LIB_LIBV4L1_TRUE= + HAVE_LIB_LIBV4L1_FALSE='#' +else + HAVE_LIB_LIBV4L1_TRUE='#' + HAVE_LIB_LIBV4L1_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +if test "x$have_libv4l1" = "xyes"; then + have_v4l="yes (libv4l)" +fi +if test "x$with_v4l" = "xno"; then + have_v4l="no" +fi + if test "x${have_v4l}" != "xno"; then + HAVE_V4L_TRUE= + HAVE_V4L_FALSE='#' +else + HAVE_V4L_TRUE='#' + HAVE_V4L_FALSE= +fi + + + +have_v4l2="no" + + if test "x$with_ALL" = "xyes" && test "x${with_v4l2}" = "x"; then with_v4l2="yes"; fi + if test "x$with_ALL" = "xno" && test "x${with_v4l2}" = "x"; then with_v4l2="no"; fi + + +@%:@ Check whether --with-v4l2 was given. +if test "${with_v4l2+set}" = set; then : + withval=$with_v4l2; +else + + if test "xforce" != "x"; then with_v4l2="yes"; fi + +fi + + +for ac_header in linux/videodev2.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "$ac_includes_default" +if test "x$ac_cv_header_linux_videodev2_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LINUX_VIDEODEV2_H 1 +_ACEOF + +fi + +done + + + + + + + + +@%:@ Check whether --with-libv4l2 was given. +if test "${with_libv4l2+set}" = set; then : + withval=$with_libv4l2; +fi + + +@%:@ Check whether --with-libv4l2-includes was given. +if test "${with_libv4l2_includes+set}" = set; then : + withval=$with_libv4l2_includes; +fi + + +@%:@ Check whether --with-libv4l2-libs was given. +if test "${with_libv4l2_libs+set}" = set; then : + withval=$with_libv4l2_libs; +fi + + + if test "x$with_libv4l2" = "x"; then with_libv4l2=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libv4l2" = "x"; then with_libv4l2="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libv4l2" = "x"; then with_libv4l2="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libv4l2 = "xno"; then + have_libv4l2="no (forced)" +else + if test -d "$with_libv4l2_includes"; then + CFLAGS="-I$with_libv4l2_includes $CFLAGS" + CPPFLAGS="-I$with_libv4l2_includes $CPPFLAGS" + CXXFLAGS="-I$with_libv4l2_includes $CXXFLAGS" + fi + if test -d "$with_libv4l2_libs"; then + LIBS="-L$with_libv4l2_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_v4l2_v4l2_open) >/dev/null 2>&1 && unset ac_cv_lib_v4l2_v4l2_open + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L2_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBV4L2_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBV4L2_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L2_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBV4L2_CFLAGS=$ac_cv_env_PKG_LIBV4L2_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L2_CFLAGS=`$PKG_CONFIG --cflags "libv4l2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L2_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L2_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L2_LIBS" >&5 +$as_echo_n "checking for PKG_LIBV4L2_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBV4L2_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L2_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBV4L2_LIBS=$ac_cv_env_PKG_LIBV4L2_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L2_LIBS=`$PKG_CONFIG --libs "libv4l2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L2_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L2_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBV4L2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libv4l2"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBV4L2_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBV4L2_CFLAGS=$pkg_cv_PKG_LIBV4L2_CFLAGS + PKG_LIBV4L2_LIBS=$pkg_cv_PKG_LIBV4L2_LIBS + ac_cv_lib_v4l2_v4l2_open=yes +fi +if test "x${PKG_LIBV4L2_CFLAGS}" != "x"; then + + for element in "${PKG_LIBV4L2_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBV4L2_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBV4L2_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_v4l2_v4l2_open" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libv4l2-config" >&5 +$as_echo_n "checking for libv4l2-config... " >&6; } + gem_check_lib_pkgconfig_LIBV4L2="" + if test "xlibv4l2" != "x"; then + gem_check_lib_pkgconfig_LIBV4L2="libv4l2"-config + if which -- "$gem_check_lib_pkgconfig_LIBV4L2" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBV4L2=`which "libv4l2"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBV4L2="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBV4L2" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBV4L2_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L2 --cflags >/dev/null 2>&1; then + PKG_LIBV4L2_CFLAGS=$(${gem_check_lib_pkgconfig_LIBV4L2} --cflags) + PKG_CFLAGS="$PKG_LIBV4L2_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBV4L2_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L2 --plugin-libs >/dev/null 2>&1; then + PKG_LIBV4L2_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L2} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBV4L2 --libs >/dev/null 2>&1; then + PKG_LIBV4L2_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L2} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBV4L2_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5 +$as_echo_n "checking for v4l2_open in -lv4l2... " >&6; } +if ${ac_cv_lib_v4l2_v4l2_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lv4l2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char v4l2_open (); +int +main () +{ +return v4l2_open (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_v4l2_v4l2_open=yes +else + ac_cv_lib_v4l2_v4l2_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5 +$as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; } +if test "x$ac_cv_lib_v4l2_v4l2_open" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBV4L2 1 +_ACEOF + + LIBS="-lv4l2 $LIBS" + +fi + + PKG_LIBV4L2_LIBS="-lv4l2" + else + PKG_LIBS="${PKG_LIBV4L2_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_v4l2_v4l2_open" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBV4L2 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBV4L2 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_V4L2_OPEN 1 +_ACEOF + + GEM_LIB_LIBV4L2_CFLAGS=${PKG_LIBV4L2_CFLAGS} + GEM_LIB_LIBV4L2_LIBS=${PKG_LIBV4L2_LIBS} + have_libv4l2="yes" + with_libv4l2="no" + + +else + + have_libv4l2="no" + + +fi + +fi + if test "x${have_libv4l2}" = "xyes"; then + HAVE_LIB_LIBV4L2_TRUE= + HAVE_LIB_LIBV4L2_FALSE='#' +else + HAVE_LIB_LIBV4L2_TRUE='#' + HAVE_LIB_LIBV4L2_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +# AC_DEFINE([HAVE_VIDEO4LINUX2], [], [video capturing using v4l2]) + +if test "x$have_libv4l2" = "xyes"; then + have_v4l2="yes (libv4l)" +fi +if test "x$with_v4l2" = "xno"; then + have_v4l2="no" +fi + if test "x${have_v4l2}" != "xno"; then + HAVE_V4L2_TRUE= + HAVE_V4L2_FALSE='#' +else + HAVE_V4L2_TRUE='#' + HAVE_V4L2_FALSE= +fi + + + + + + + + + + +@%:@ Check whether --with-vfw32 was given. +if test "${with_vfw32+set}" = set; then : + withval=$with_vfw32; +fi + + +@%:@ Check whether --with-vfw32-includes was given. +if test "${with_vfw32_includes+set}" = set; then : + withval=$with_vfw32_includes; +fi + + +@%:@ Check whether --with-vfw32-libs was given. +if test "${with_vfw32_libs+set}" = set; then : + withval=$with_vfw32_libs; +fi + + + if test "x$with_vfw32" = "x"; then with_vfw32=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_vfw32" = "x"; then with_vfw32="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_vfw32" = "x"; then with_vfw32="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_vfw32 = "xno"; then + have_vfw32="no (forced)" +else + if test -d "$with_vfw32_includes"; then + CFLAGS="-I$with_vfw32_includes $CFLAGS" + CPPFLAGS="-I$with_vfw32_includes $CPPFLAGS" + CXXFLAGS="-I$with_vfw32_includes $CXXFLAGS" + fi + if test -d "$with_vfw32_libs"; then + LIBS="-L$with_vfw32_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_vfw32_main) >/dev/null 2>&1 && unset ac_cv_lib_vfw32_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_VFW32_CFLAGS" >&5 +$as_echo_n "checking for PKG_VFW32_CFLAGS... " >&6; } +if ${pkg_cv_PKG_VFW32_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_VFW32_CFLAGS_set" = "xset"; then + pkg_cv_PKG_VFW32_CFLAGS=$ac_cv_env_PKG_VFW32_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"vfw32\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "vfw32" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_VFW32_CFLAGS=`$PKG_CONFIG --cflags "vfw32" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_VFW32_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_VFW32_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_VFW32_LIBS" >&5 +$as_echo_n "checking for PKG_VFW32_LIBS... " >&6; } +if ${pkg_cv_PKG_VFW32_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_VFW32_LIBS_set" = "xset"; then + pkg_cv_PKG_VFW32_LIBS=$ac_cv_env_PKG_VFW32_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"vfw32\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "vfw32" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_VFW32_LIBS=`$PKG_CONFIG --libs "vfw32" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_VFW32_LIBS" >&5 +$as_echo "$pkg_cv_PKG_VFW32_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_VFW32_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vfw32"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_VFW32_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_VFW32_CFLAGS=$pkg_cv_PKG_VFW32_CFLAGS + PKG_VFW32_LIBS=$pkg_cv_PKG_VFW32_LIBS + ac_cv_lib_vfw32_main=yes +fi +if test "x${PKG_VFW32_CFLAGS}" != "x"; then + + for element in "${PKG_VFW32_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_VFW32_LIBS}" != "x"; then + PKG_LIBS="${PKG_VFW32_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_vfw32_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vfw32-config" >&5 +$as_echo_n "checking for vfw32-config... " >&6; } + gem_check_lib_pkgconfig_VFW32="" + if test "xvfw32" != "x"; then + gem_check_lib_pkgconfig_VFW32="vfw32"-config + if which -- "$gem_check_lib_pkgconfig_VFW32" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_VFW32=`which "vfw32"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_VFW32="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_VFW32" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_VFW32_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_VFW32 --cflags >/dev/null 2>&1; then + PKG_VFW32_CFLAGS=$(${gem_check_lib_pkgconfig_VFW32} --cflags) + PKG_CFLAGS="$PKG_VFW32_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_VFW32_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_VFW32 --plugin-libs >/dev/null 2>&1; then + PKG_VFW32_LIBS=$(${gem_check_lib_pkgconfig_VFW32} --plugin-libs) + else + if $gem_check_lib_pkgconfig_VFW32 --libs >/dev/null 2>&1; then + PKG_VFW32_LIBS=$(${gem_check_lib_pkgconfig_VFW32} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_VFW32_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvfw32" >&5 +$as_echo_n "checking for main in -lvfw32... " >&6; } +if ${ac_cv_lib_vfw32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lvfw32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_vfw32_main=yes +else + ac_cv_lib_vfw32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vfw32_main" >&5 +$as_echo "$ac_cv_lib_vfw32_main" >&6; } +if test "x$ac_cv_lib_vfw32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVFW32 1 +_ACEOF + + LIBS="-lvfw32 $LIBS" + +fi + + PKG_VFW32_LIBS="-lvfw32" + else + PKG_LIBS="${PKG_VFW32_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_vfw32_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVFW32 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVFW32 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_VFW32_CFLAGS=${PKG_VFW32_CFLAGS} + GEM_LIB_VFW32_LIBS=${PKG_VFW32_LIBS} + have_vfw32="yes" + with_vfw32="no" + + +else + + have_vfw32="no" + + +fi + +fi + if test "x${have_vfw32}" = "xyes"; then + HAVE_LIB_VFW32_TRUE= + HAVE_LIB_VFW32_FALSE='#' +else + HAVE_LIB_VFW32_TRUE='#' + HAVE_LIB_VFW32_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +# is this needed? + +# VLC + + + + + + + +@%:@ Check whether --with-libvlc was given. +if test "${with_libvlc+set}" = set; then : + withval=$with_libvlc; +fi + + +@%:@ Check whether --with-libvlc-includes was given. +if test "${with_libvlc_includes+set}" = set; then : + withval=$with_libvlc_includes; +fi + + +@%:@ Check whether --with-libvlc-libs was given. +if test "${with_libvlc_libs+set}" = set; then : + withval=$with_libvlc_libs; +fi + + + if test "x$with_libvlc" = "x"; then with_libvlc=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libvlc" = "x"; then with_libvlc="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libvlc" = "x"; then with_libvlc="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libvlc = "xno"; then + have_libvlc="no (forced)" +else + if test -d "$with_libvlc_includes"; then + CFLAGS="-I$with_libvlc_includes $CFLAGS" + CPPFLAGS="-I$with_libvlc_includes $CPPFLAGS" + CXXFLAGS="-I$with_libvlc_includes $CXXFLAGS" + fi + if test -d "$with_libvlc_libs"; then + LIBS="-L$with_libvlc_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_vlc_libvlc_video_set_callbacks) >/dev/null 2>&1 && unset ac_cv_lib_vlc_libvlc_video_set_callbacks + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBVLC_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBVLC_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBVLC_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBVLC_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBVLC_CFLAGS=$ac_cv_env_PKG_LIBVLC_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libvlc\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libvlc" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBVLC_CFLAGS=`$PKG_CONFIG --cflags "libvlc" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBVLC_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBVLC_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBVLC_LIBS" >&5 +$as_echo_n "checking for PKG_LIBVLC_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBVLC_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBVLC_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBVLC_LIBS=$ac_cv_env_PKG_LIBVLC_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libvlc\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libvlc" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBVLC_LIBS=`$PKG_CONFIG --libs "libvlc" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBVLC_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBVLC_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBVLC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libvlc"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBVLC_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBVLC_CFLAGS=$pkg_cv_PKG_LIBVLC_CFLAGS + PKG_LIBVLC_LIBS=$pkg_cv_PKG_LIBVLC_LIBS + ac_cv_lib_vlc_libvlc_video_set_callbacks=yes +fi +if test "x${PKG_LIBVLC_CFLAGS}" != "x"; then + + for element in "${PKG_LIBVLC_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBVLC_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBVLC_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_vlc_libvlc_video_set_callbacks" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvlc-config" >&5 +$as_echo_n "checking for libvlc-config... " >&6; } + gem_check_lib_pkgconfig_LIBVLC="" + if test "xlibvlc" != "x"; then + gem_check_lib_pkgconfig_LIBVLC="libvlc"-config + if which -- "$gem_check_lib_pkgconfig_LIBVLC" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBVLC=`which "libvlc"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBVLC="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBVLC" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBVLC_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBVLC --cflags >/dev/null 2>&1; then + PKG_LIBVLC_CFLAGS=$(${gem_check_lib_pkgconfig_LIBVLC} --cflags) + PKG_CFLAGS="$PKG_LIBVLC_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBVLC_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBVLC --plugin-libs >/dev/null 2>&1; then + PKG_LIBVLC_LIBS=$(${gem_check_lib_pkgconfig_LIBVLC} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBVLC --libs >/dev/null 2>&1; then + PKG_LIBVLC_LIBS=$(${gem_check_lib_pkgconfig_LIBVLC} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBVLC_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvlc_video_set_callbacks in -lvlc" >&5 +$as_echo_n "checking for libvlc_video_set_callbacks in -lvlc... " >&6; } +if ${ac_cv_lib_vlc_libvlc_video_set_callbacks+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lvlc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char libvlc_video_set_callbacks (); +int +main () +{ +return libvlc_video_set_callbacks (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_vlc_libvlc_video_set_callbacks=yes +else + ac_cv_lib_vlc_libvlc_video_set_callbacks=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vlc_libvlc_video_set_callbacks" >&5 +$as_echo "$ac_cv_lib_vlc_libvlc_video_set_callbacks" >&6; } +if test "x$ac_cv_lib_vlc_libvlc_video_set_callbacks" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVLC 1 +_ACEOF + + LIBS="-lvlc $LIBS" + +fi + + PKG_LIBVLC_LIBS="-lvlc" + else + PKG_LIBS="${PKG_LIBVLC_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_vlc_libvlc_video_set_callbacks" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBVLC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVLC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVLC_VIDEO_SET_CALLBACKS 1 +_ACEOF + + GEM_LIB_LIBVLC_CFLAGS=${PKG_LIBVLC_CFLAGS} + GEM_LIB_LIBVLC_LIBS=${PKG_LIBVLC_LIBS} + have_libvlc="yes" + with_libvlc="no" + + +else + + have_libvlc="no" + + +fi + +fi + if test "x${have_libvlc}" = "xyes"; then + HAVE_LIB_LIBVLC_TRUE= + HAVE_LIB_LIBVLC_FALSE='#' +else + HAVE_LIB_LIBVLC_TRUE='#' + HAVE_LIB_LIBVLC_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +# assimp + + + + + + + +@%:@ Check whether --with-assimp was given. +if test "${with_assimp+set}" = set; then : + withval=$with_assimp; +fi + + +@%:@ Check whether --with-assimp-includes was given. +if test "${with_assimp_includes+set}" = set; then : + withval=$with_assimp_includes; +fi + + +@%:@ Check whether --with-assimp-libs was given. +if test "${with_assimp_libs+set}" = set; then : + withval=$with_assimp_libs; +fi + + + if test "x$with_assimp" = "x"; then with_assimp=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_assimp" = "x"; then with_assimp="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_assimp" = "x"; then with_assimp="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_assimp = "xno"; then + have_assimp="no (forced)" +else + if test -d "$with_assimp_includes"; then + CFLAGS="-I$with_assimp_includes $CFLAGS" + CPPFLAGS="-I$with_assimp_includes $CPPFLAGS" + CXXFLAGS="-I$with_assimp_includes $CXXFLAGS" + fi + if test -d "$with_assimp_libs"; then + LIBS="-L$with_assimp_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_assimp_aiDetachAllLogStreams) >/dev/null 2>&1 && unset ac_cv_lib_assimp_aiDetachAllLogStreams + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_ASSIMP_CFLAGS" >&5 +$as_echo_n "checking for PKG_ASSIMP_CFLAGS... " >&6; } +if ${pkg_cv_PKG_ASSIMP_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_ASSIMP_CFLAGS_set" = "xset"; then + pkg_cv_PKG_ASSIMP_CFLAGS=$ac_cv_env_PKG_ASSIMP_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"assimp\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "assimp" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_ASSIMP_CFLAGS=`$PKG_CONFIG --cflags "assimp" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_ASSIMP_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_ASSIMP_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_ASSIMP_LIBS" >&5 +$as_echo_n "checking for PKG_ASSIMP_LIBS... " >&6; } +if ${pkg_cv_PKG_ASSIMP_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_ASSIMP_LIBS_set" = "xset"; then + pkg_cv_PKG_ASSIMP_LIBS=$ac_cv_env_PKG_ASSIMP_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"assimp\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "assimp" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_ASSIMP_LIBS=`$PKG_CONFIG --libs "assimp" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_ASSIMP_LIBS" >&5 +$as_echo "$pkg_cv_PKG_ASSIMP_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_ASSIMP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "assimp"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_ASSIMP_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_ASSIMP_CFLAGS=$pkg_cv_PKG_ASSIMP_CFLAGS + PKG_ASSIMP_LIBS=$pkg_cv_PKG_ASSIMP_LIBS + ac_cv_lib_assimp_aiDetachAllLogStreams=yes +fi +if test "x${PKG_ASSIMP_CFLAGS}" != "x"; then + + for element in "${PKG_ASSIMP_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_ASSIMP_LIBS}" != "x"; then + PKG_LIBS="${PKG_ASSIMP_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_assimp_aiDetachAllLogStreams" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assimp-config" >&5 +$as_echo_n "checking for assimp-config... " >&6; } + gem_check_lib_pkgconfig_ASSIMP="" + if test "xassimp" != "x"; then + gem_check_lib_pkgconfig_ASSIMP="assimp"-config + if which -- "$gem_check_lib_pkgconfig_ASSIMP" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_ASSIMP=`which "assimp"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_ASSIMP="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_ASSIMP" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_ASSIMP_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_ASSIMP --cflags >/dev/null 2>&1; then + PKG_ASSIMP_CFLAGS=$(${gem_check_lib_pkgconfig_ASSIMP} --cflags) + PKG_CFLAGS="$PKG_ASSIMP_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_ASSIMP_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_ASSIMP --plugin-libs >/dev/null 2>&1; then + PKG_ASSIMP_LIBS=$(${gem_check_lib_pkgconfig_ASSIMP} --plugin-libs) + else + if $gem_check_lib_pkgconfig_ASSIMP --libs >/dev/null 2>&1; then + PKG_ASSIMP_LIBS=$(${gem_check_lib_pkgconfig_ASSIMP} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_ASSIMP_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aiDetachAllLogStreams in -lassimp" >&5 +$as_echo_n "checking for aiDetachAllLogStreams in -lassimp... " >&6; } +if ${ac_cv_lib_assimp_aiDetachAllLogStreams+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lassimp $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char aiDetachAllLogStreams (); +int +main () +{ +return aiDetachAllLogStreams (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_assimp_aiDetachAllLogStreams=yes +else + ac_cv_lib_assimp_aiDetachAllLogStreams=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_assimp_aiDetachAllLogStreams" >&5 +$as_echo "$ac_cv_lib_assimp_aiDetachAllLogStreams" >&6; } +if test "x$ac_cv_lib_assimp_aiDetachAllLogStreams" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBASSIMP 1 +_ACEOF + + LIBS="-lassimp $LIBS" + +fi + + PKG_ASSIMP_LIBS="-lassimp" + else + PKG_LIBS="${PKG_ASSIMP_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_assimp_aiDetachAllLogStreams" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBASSIMP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBASSIMP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_AIDETACHALLLOGSTREAMS 1 +_ACEOF + + GEM_LIB_ASSIMP_CFLAGS=${PKG_ASSIMP_CFLAGS} + GEM_LIB_ASSIMP_LIBS=${PKG_ASSIMP_LIBS} + have_assimp="yes" + with_assimp="no" + + +else + + have_assimp="no" + + +fi + +fi + if test "x${have_assimp}" = "xyes"; then + HAVE_LIB_ASSIMP_TRUE= + HAVE_LIB_ASSIMP_FALSE='#' +else + HAVE_LIB_ASSIMP_TRUE='#' + HAVE_LIB_ASSIMP_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + +@%:@ Check whether --with-default-font was given. +if test "${with_default_font+set}" = set; then : + withval=$with_default_font; +fi + +if test "x$with_default_font" != "x" && \ + test "x$with_default_font" != "xno" && + test "x$with_default_font" != "xyes"; then + + +cat >>confdefs.h <<_ACEOF +@%:@define GEM_DEFAULT_FONT "${with_default_font}" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using \"${with_default_font}\" as default font" >&5 +$as_echo "using \"${with_default_font}\" as default font" >&6; } +fi + +# threading + +@%:@ Check whether --enable-threads was given. +if test "${enable_threads+set}" = set; then : + enableval=$enable_threads; +else + + if test "x" != "x"; then enable_threads="yes"; fi + +fi + + + + + + +if test "x$enable_threads" != "xno"; then + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ax_pthread_ok=no + +# We used to check for pthread.h first, but this fails if pthread.h +# requires special compiler flags (e.g. on True64 or Sequent). +# It gets checked for in the link test anyway. + +# First of all, check if the user has set any of the PTHREAD_LIBS, +# etcetera environment variables, and if threads linking works using +# them: +if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS" >&5 +$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_join (); +int +main () +{ +return pthread_join (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test x"$ax_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" +fi + +# We must check for the threads library under a number of different +# names; the ordering is very important because some systems +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the +# libraries is broken (non-POSIX). + +# Create a list of thread flags to try. Items starting with a "-" are +# C compiler flags, and other items are library names, except for "none" +# which indicates that we try without any flags at all, and "pthread-config" +# which is a program returning the flags for the Pth emulation library. + +ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads +-mthreads pthread --thread-safe -mt pthread-config" + +# The ordering *is* (sometimes) important. Some notes on the +# individual items follow: + +# pthreads: AIX (must check this before -lpthread) +# none: in case threads are in libc; should be tried before -Kthread and +# other compiler flags to prevent continual compiler warnings +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) +# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) +# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) +# -pthreads: Solaris/gcc +# -mthreads: Mingw32/gcc, Lynx/gcc +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it +# doesn't hurt to check since this sometimes defines pthreads too; +# also defines -D_REENTRANT) +# ... -mt is also the pthreads flag for HP/aCC +# pthread: Linux, etcetera +# --thread-safe: KAI C++ +# pthread-config: use pthread-config program (for GNU Pth library) + +case "${host_cpu}-${host_os}" in + *solaris*) + + # On Solaris (at least, for some versions), libc contains stubbed + # (non-functional) versions of the pthreads routines, so link-based + # tests will erroneously succeed. (We need to link with -pthreads/-mt/ + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather + # a function called by this macro, so we could check for that, but + # who knows whether they'll stub that too in a future libc.) So, + # we'll just look for -pthreads and -lpthread first: + + ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" + ;; + + *-darwin*) + acx_pthread_flags="-pthread $acx_pthread_flags" + ;; +esac + +if test x"$ax_pthread_ok" = xno; then +for flag in $ax_pthread_flags; do + + case $flag in + none) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 +$as_echo_n "checking whether pthreads work without any flags... " >&6; } + ;; + + -*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 +$as_echo_n "checking whether pthreads work with $flag... " >&6; } + PTHREAD_CFLAGS="$flag" + ;; + + pthread-config) + # Extract the first word of "pthread-config", so it can be a program name with args. +set dummy pthread-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ax_pthread_config+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ax_pthread_config"; then + ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ax_pthread_config="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" +fi +fi +ax_pthread_config=$ac_cv_prog_ax_pthread_config +if test -n "$ax_pthread_config"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 +$as_echo "$ax_pthread_config" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test x"$ax_pthread_config" = xno; then continue; fi + PTHREAD_CFLAGS="`pthread-config --cflags`" + PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config +--libs`" + ;; + + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 +$as_echo_n "checking for the pthreads library -l$flag... " >&6; } + PTHREAD_LIBS="-l$flag" + ;; + esac + + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Check for various functions. We must include pthread.h, + # since some functions may be macros. (On the Sequent, we + # need a special flag -Kthread to make this header compile.) + # We check for pthread_join because it is in -lpthread on IRIX + # while pthread_create is in libc. We check for pthread_attr_init + # due to DEC craziness with -lpthreads. We check for + # pthread_cleanup_push because it is one of the few pthread + # functions on Solaris that doesn't have a non-functional libc stub. + # We try pthread_create on general principles. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + static void routine(void* a) {a=0;} + static void* start_routine(void* a) {return a;} +int +main () +{ +pthread_t th; pthread_attr_t attr; + pthread_join(th, 0); + pthread_attr_init(&attr); + pthread_cleanup_push(routine, 0); + pthread_create(&th,0,start_routine,0); + pthread_cleanup_pop(0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test "x$ax_pthread_ok" = xyes; then + break; + fi + + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" +done +fi + +# Various other checks: +if test "x$ax_pthread_ok" = xyes; then + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 +$as_echo_n "checking for joinable pthread attribute... " >&6; } + attr_name=unknown + for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int attr=$attr; return attr; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + attr_name=$attr; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + done + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 +$as_echo "$attr_name" >&6; } + if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then + +cat >>confdefs.h <<_ACEOF +@%:@define PTHREAD_CREATE_JOINABLE $attr_name +_ACEOF + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 +$as_echo_n "checking if more special flags are required for pthreads... " >&6; } + flag=no + case "${host_cpu}-${host_os}" in + *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 +$as_echo "${flag}" >&6; } + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + # More AIX lossage: must compile with xlc_r or cc_r + if test x"$GCC" != xyes; then + for ac_prog in xlc_r cc_r +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_PTHREAD_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$PTHREAD_CC"; then + ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_PTHREAD_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +PTHREAD_CC=$ac_cv_prog_PTHREAD_CC +if test -n "$PTHREAD_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 +$as_echo "$PTHREAD_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$PTHREAD_CC" && break +done +test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" + + else + PTHREAD_CC=$CC + fi +else + PTHREAD_CC="$CC" +fi + + + + + +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: +if test x"$ax_pthread_ok" = xyes; then + +$as_echo "@%:@define HAVE_PTHREADS 1" >>confdefs.h + + : +else + ax_pthread_ok=no + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + GEM_THREADS_CFLAGS="" + + for element in "${PTHREAD_CFLAGS}"; do + haveit= + for x in $GEM_THREADS_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_THREADS_CFLAGS="${GEM_THREADS_CFLAGS}${GEM_THREADS_CFLAGS:+ }$element" + fi + done + + GEM_THREADS_LIBS="${GEM_THREADS_LIBS}${GEM_THREADS_LIBS:+ }${PTHREAD_LIBS}" +fi + + +# Checks for header files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h + +fi + +for ac_header in fcntl.h float.h memory.h stddef.h stdlib.h string.h strings.h sys/ioctl.h sys/time.h termios.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in wordexp.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "wordexp.h" "ac_cv_header_wordexp_h" "$ac_includes_default" +if test "x$ac_cv_header_wordexp_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_WORDEXP_H 1 +_ACEOF + +fi + +done + + +# Checks for typedefs, structures, and compiler characteristics. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 +$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } +if ${ac_cv_header_stdbool_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #ifndef bool + "error: bool is not defined" + #endif + #ifndef false + "error: false is not defined" + #endif + #if false + "error: false is not 0" + #endif + #ifndef true + "error: true is not defined" + #endif + #if true != 1 + "error: true is not 1" + #endif + #ifndef __bool_true_false_are_defined + "error: __bool_true_false_are_defined is not defined" + #endif + + struct s { _Bool s: 1; _Bool t; } s; + + char a[true == 1 ? 1 : -1]; + char b[false == 0 ? 1 : -1]; + char c[__bool_true_false_are_defined == 1 ? 1 : -1]; + char d[(bool) 0.5 == true ? 1 : -1]; + /* See body of main program for 'e'. */ + char f[(_Bool) 0.0 == false ? 1 : -1]; + char g[true]; + char h[sizeof (_Bool)]; + char i[sizeof s.t]; + enum { j = false, k = true, l = false * true, m = true * 256 }; + /* The following fails for + HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ + _Bool n[m]; + char o[sizeof n == m * sizeof n[0] ? 1 : -1]; + char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; + /* Catch a bug in an HP-UX C compiler. See + http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + */ + _Bool q = true; + _Bool *pq = &q; + +int +main () +{ + + bool e = &s; + *pq |= q; + *pq |= ! q; + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + + !m + !n + !o + !p + !q + !pq); + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_header_stdbool_h=yes +else + ac_cv_header_stdbool_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 +$as_echo "$ac_cv_header_stdbool_h" >&6; } + ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" +if test "x$ac_cv_type__Bool" = xyes; then : + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE__BOOL 1 +_ACEOF + + +fi + + +if test $ac_cv_header_stdbool_h = yes; then + +$as_echo "@%:@define HAVE_STDBOOL_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if ${ac_cv_c_const+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +#ifndef __cplusplus + /* Ultrix mips cc rejects this sort of thing. */ + typedef int charset[2]; + const charset cs = { 0, 0 }; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *pcpcc; + char **ppc; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + pcpcc = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++pcpcc; + ppc = (char**) pcpcc; + pcpcc = (char const *const *) ppc; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 0; + if (s) return 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + if (!foo) return 0; + } + return !cs[0] && !zero.x; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_c_const=yes +else + ac_cv_c_const=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +$as_echo "@%:@define const /**/" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + +ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +@%:@define size_t unsigned int +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } +if ${ac_cv_header_time+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include + +int +main () +{ +if ((struct tm *) 0) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_header_time=yes +else + ac_cv_header_time=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 +$as_echo "$ac_cv_header_time" >&6; } +if test $ac_cv_header_time = yes; then + +$as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h + +fi + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 +$as_echo_n "checking size of unsigned int... " >&6; } +if ${ac_cv_sizeof_unsigned_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_unsigned_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (unsigned int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_unsigned_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 +$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +@%:@define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 +$as_echo_n "checking size of void *... " >&6; } +if ${ac_cv_sizeof_void_p+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_void_p" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (void *) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_void_p=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 +$as_echo "$ac_cv_sizeof_void_p" >&6; } + + + +cat >>confdefs.h <<_ACEOF +@%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p +_ACEOF + + + +# Checks for library functions. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 +$as_echo_n "checking for error_at_line... " >&6; } +if ${ac_cv_lib_error_at_line+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +error_at_line (0, 0, "", 0, "an error occurred"); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_error_at_line=yes +else + ac_cv_lib_error_at_line=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 +$as_echo "$ac_cv_lib_error_at_line" >&6; } +if test $ac_cv_lib_error_at_line = no; then + case " $LIB@&t@OBJS " in + *" error.$ac_objext "* ) ;; + *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext" + ;; +esac + +fi + +ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" +if test "x$ac_cv_type_pid_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +@%:@define pid_t int +_ACEOF + +fi + +for ac_header in vfork.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" +if test "x$ac_cv_header_vfork_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_VFORK_H 1 +_ACEOF + +fi + +done + +for ac_func in fork vfork +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +if test "x$ac_cv_func_fork" = xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 +$as_echo_n "checking for working fork... " >&6; } +if ${ac_cv_func_fork_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_fork_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* By Ruediger Kuhlmann. */ + return fork () < 0; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_fork_works=yes +else + ac_cv_func_fork_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 +$as_echo "$ac_cv_func_fork_works" >&6; } + +else + ac_cv_func_fork_works=$ac_cv_func_fork +fi +if test "x$ac_cv_func_fork_works" = xcross; then + case $host in + *-*-amigaos* | *-*-msdosdjgpp*) + # Override, as these systems have only a dummy fork() stub + ac_cv_func_fork_works=no + ;; + *) + ac_cv_func_fork_works=yes + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 +$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} +fi +ac_cv_func_vfork_works=$ac_cv_func_vfork +if test "x$ac_cv_func_vfork" = xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 +$as_echo_n "checking for working vfork... " >&6; } +if ${ac_cv_func_vfork_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_vfork_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Thanks to Paul Eggert for this test. */ +$ac_includes_default +#include +#ifdef HAVE_VFORK_H +# include +#endif +/* On some sparc systems, changes by the child to local and incoming + argument registers are propagated back to the parent. The compiler + is told about this with #include , but some compilers + (e.g. gcc -O) don't grok . Test for this by using a + static variable whose address is put into a register that is + clobbered by the vfork. */ +static void +#ifdef __cplusplus +sparc_address_test (int arg) +# else +sparc_address_test (arg) int arg; +#endif +{ + static pid_t child; + if (!child) { + child = vfork (); + if (child < 0) { + perror ("vfork"); + _exit(2); + } + if (!child) { + arg = getpid(); + write(-1, "", 0); + _exit (arg); + } + } +} + +int +main () +{ + pid_t parent = getpid (); + pid_t child; + + sparc_address_test (0); + + child = vfork (); + + if (child == 0) { + /* Here is another test for sparc vfork register problems. This + test uses lots of local variables, at least as many local + variables as main has allocated so far including compiler + temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris + 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should + reuse the register of parent for one of the local variables, + since it will think that parent can't possibly be used any more + in this routine. Assigning to the local variable will thus + munge parent in the parent process. */ + pid_t + p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), + p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); + /* Convince the compiler that p..p7 are live; otherwise, it might + use the same hardware register for all 8 local variables. */ + if (p != p1 || p != p2 || p != p3 || p != p4 + || p != p5 || p != p6 || p != p7) + _exit(1); + + /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent + from child file descriptors. If the child closes a descriptor + before it execs or exits, this munges the parent's descriptor + as well. Test for this by closing stdout in the child. */ + _exit(close(fileno(stdout)) != 0); + } else { + int status; + struct stat st; + + while (wait(&status) != child) + ; + return ( + /* Was there some problem with vforking? */ + child < 0 + + /* Did the child fail? (This shouldn't happen.) */ + || status + + /* Did the vfork/compiler bug occur? */ + || parent != getpid() + + /* Did the file descriptor bug occur? */ + || fstat(fileno(stdout), &st) != 0 + ); + } +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_vfork_works=yes +else + ac_cv_func_vfork_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 +$as_echo "$ac_cv_func_vfork_works" >&6; } + +fi; +if test "x$ac_cv_func_fork_works" = xcross; then + ac_cv_func_vfork_works=$ac_cv_func_vfork + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 +$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} +fi + +if test "x$ac_cv_func_vfork_works" = xyes; then + +$as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h + +else + +$as_echo "@%:@define vfork fork" >>confdefs.h + +fi +if test "x$ac_cv_func_fork_works" = xyes; then + +$as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h + +fi + +for ac_header in stdlib.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +if test "x$ac_cv_header_stdlib_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_STDLIB_H 1 +_ACEOF + +fi + +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 +$as_echo_n "checking for GNU libc compatible malloc... " >&6; } +if ${ac_cv_func_malloc_0_nonnull+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_malloc_0_nonnull=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined STDC_HEADERS || defined HAVE_STDLIB_H +# include +#else +char *malloc (); +#endif + +int +main () +{ +return ! malloc (0); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_malloc_0_nonnull=yes +else + ac_cv_func_malloc_0_nonnull=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 +$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } +if test $ac_cv_func_malloc_0_nonnull = yes; then : + +$as_echo "@%:@define HAVE_MALLOC 1" >>confdefs.h + +else + $as_echo "@%:@define HAVE_MALLOC 0" >>confdefs.h + + case " $LIB@&t@OBJS " in + *" malloc.$ac_objext "* ) ;; + *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext" + ;; +esac + + +$as_echo "@%:@define malloc rpl_malloc" >>confdefs.h + +fi + + + + + + for ac_header in $ac_header_list +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + + + + +for ac_func in getpagesize +do : + ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" +if test "x$ac_cv_func_getpagesize" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GETPAGESIZE 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 +$as_echo_n "checking for working mmap... " >&6; } +if ${ac_cv_func_mmap_fixed_mapped+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_mmap_fixed_mapped=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +/* malloc might have been renamed as rpl_malloc. */ +#undef malloc + +/* Thanks to Mike Haertel and Jim Avera for this test. + Here is a matrix of mmap possibilities: + mmap private not fixed + mmap private fixed at somewhere currently unmapped + mmap private fixed at somewhere already mapped + mmap shared not fixed + mmap shared fixed at somewhere currently unmapped + mmap shared fixed at somewhere already mapped + For private mappings, we should verify that changes cannot be read() + back from the file, nor mmap's back from the file at a different + address. (There have been systems where private was not correctly + implemented like the infamous i386 svr4.0, and systems where the + VM page cache was not coherent with the file system buffer cache + like early versions of FreeBSD and possibly contemporary NetBSD.) + For shared mappings, we should conversely verify that changes get + propagated back to all the places they're supposed to be. + + Grep wants private fixed already mapped. + The main things grep needs to know about mmap are: + * does it exist and is it safe to write into the mmap'd area + * how to use it (BSD variants) */ + +#include +#include + +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H +char *malloc (); +#endif + +/* This mess was copied from the GNU getpagesize.h. */ +#ifndef HAVE_GETPAGESIZE +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# ifdef HAVE_SYS_PARAM_H +# include +# ifdef EXEC_PAGESIZE +# define getpagesize() EXEC_PAGESIZE +# else /* no EXEC_PAGESIZE */ +# ifdef NBPG +# define getpagesize() NBPG * CLSIZE +# ifndef CLSIZE +# define CLSIZE 1 +# endif /* no CLSIZE */ +# else /* no NBPG */ +# ifdef NBPC +# define getpagesize() NBPC +# else /* no NBPC */ +# ifdef PAGESIZE +# define getpagesize() PAGESIZE +# endif /* PAGESIZE */ +# endif /* no NBPC */ +# endif /* no NBPG */ +# endif /* no EXEC_PAGESIZE */ +# else /* no HAVE_SYS_PARAM_H */ +# define getpagesize() 8192 /* punt totally */ +# endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ + +#endif /* no HAVE_GETPAGESIZE */ + +int +main () +{ + char *data, *data2, *data3; + const char *cdata2; + int i, pagesize; + int fd, fd2; + + pagesize = getpagesize (); + + /* First, make a file with some known garbage in it. */ + data = (char *) malloc (pagesize); + if (!data) + return 1; + for (i = 0; i < pagesize; ++i) + *(data + i) = rand (); + umask (0); + fd = creat ("conftest.mmap", 0600); + if (fd < 0) + return 2; + if (write (fd, data, pagesize) != pagesize) + return 3; + close (fd); + + /* Next, check that the tail of a page is zero-filled. File must have + non-zero length, otherwise we risk SIGBUS for entire page. */ + fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); + if (fd2 < 0) + return 4; + cdata2 = ""; + if (write (fd2, cdata2, 1) != 1) + return 5; + data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); + if (data2 == MAP_FAILED) + return 6; + for (i = 0; i < pagesize; ++i) + if (*(data2 + i)) + return 7; + close (fd2); + if (munmap (data2, pagesize)) + return 8; + + /* Next, try to mmap the file at a fixed address which already has + something else allocated at it. If we can, also make sure that + we see the same garbage. */ + fd = open ("conftest.mmap", O_RDWR); + if (fd < 0) + return 9; + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_FIXED, fd, 0L)) + return 10; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + return 11; + + /* Finally, make sure that changes to the mapped area do not + percolate back to the file as seen by read(). (This is a bug on + some variants of i386 svr4.0.) */ + for (i = 0; i < pagesize; ++i) + *(data2 + i) = *(data2 + i) + 1; + data3 = (char *) malloc (pagesize); + if (!data3) + return 12; + if (read (fd, data3, pagesize) != pagesize) + return 13; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data3 + i)) + return 14; + close (fd); + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_mmap_fixed_mapped=yes +else + ac_cv_func_mmap_fixed_mapped=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 +$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } +if test $ac_cv_func_mmap_fixed_mapped = yes; then + +$as_echo "@%:@define HAVE_MMAP 1" >>confdefs.h + +fi +rm -f conftest.mmap conftest.txt + +for ac_func in bzero floor gettimeofday memset munmap pow sqrt strchr strdup strrchr strstr strnlen +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + +# enabling recording with quicktime4linux +gem_tmp_lqt_libs="$LIBS" +LIBS="$LIBS $PKG_LIBS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lqt_open_write" >&5 +$as_echo_n "checking for lqt_open_write... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lqt_open_write (); +int +main () +{ +return lqt_open_write (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + +$as_echo "@%:@define HAVE_LQT_OPEN_WRITE /**/" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS="$gem_tmp_lqt_libs" + +### make-depend flags +if test "x$ac_cv_c_compiler_gnu" = "xyes"; then + MAKEDEP_FLAGS="-MM" + +else + MAKEDEP_FLAGS="-M" + +fi + +# using pix_videoOS rather than pix_video + +@%:@ Check whether --with-video was given. +if test "${with_video+set}" = set; then : + withval=$with_video; +fi + + +## on OSX we still default to the olde way +#if test "x$KERN" = "xDarwin"; then +# if test "x$with_film" = "x"; then +# with_film="Darwin" +# fi +# if test "x$with_video" = "x"; then +# with_video="Darwin" +# fi +#fi + +if test "x$with_video" = "x"; then + with_video="plugins" +elif test "x$with_video" = "xyes"; then + with_video="plugins" +elif test "x$with_video" = "xno"; then +# hmm, what to do here? + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ignoring request for no video...using plugins" >&5 +$as_echo "ignoring request for no video...using plugins" >&6; } + with_video="plugins" +elif test "x$with_video" = "xplugins"; then + : +else + +cat >>confdefs.h <<_ACEOF +@%:@define GEM_VIDEOBACKEND GEM_VIDEOBACKEND_$with_video +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using deprecated video-loader $with_video" >&5 +$as_echo "using deprecated video-loader $with_video" >&6; } +fi + +# using pix_filmOS rather than pix_film + +@%:@ Check whether --with-film was given. +if test "${with_film+set}" = set; then : + withval=$with_film; +fi + + +if test "x$with_film" = "x"; then + with_film="plugins" +elif test "x$with_film" = "xyes"; then + with_film="plugins" +elif test "x$with_film" = "xno"; then +# hmm, what to do here? + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ignoring request for no film...using plugins" >&5 +$as_echo "ignoring request for no film...using plugins" >&6; } + with_film="plugins" +elif test "x$with_film" = "xplugins"; then + : +else + +cat >>confdefs.h <<_ACEOF +@%:@define GEM_FILMBACKEND GEM_FILMBACKEND_$with_film +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using deprecated film-loader $with_film" >&5 +$as_echo "using deprecated film-loader $with_film" >&6; } +fi + + + + + +# enabling "-freg-struct-return" (for FreeFrame) +# i wonder could we make this the default ??? +if test "x$enable_registerstruct" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-freg-struct-return\"" >&5 +$as_echo_n "checking whether compiler accepts \"-freg-struct-return\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -freg-struct-return > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -freg-struct-return" + enable_registerstruct="yes" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + enable_registerstruct="no" +fi + + +if test "x$enable_registerstruct" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling \"register struct return\" + allows to make use of FreeFrame-effects without recompiling them + might break things, if you are using several different compilers" >&5 +$as_echo "enabling \"register struct return\" + allows to make use of FreeFrame-effects without recompiling them + might break things, if you are using several different compilers" >&6; } +fi +fi + +if test "x$WINDOWS" = "xyes"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-mms-bitfields\"" >&5 +$as_echo_n "checking whether compiler accepts \"-mms-bitfields\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -mms-bitfields > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -mms-bitfields" + GEM_EXTERNAL_CFLAGS+="-mms-bitfields" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + +if test "x$KERN" = "xDarwin"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-Os\"" >&5 +$as_echo_n "checking whether compiler accepts \"-Os\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -Os > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -Os" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-O3\"" >&5 +$as_echo_n "checking whether compiler accepts \"-O3\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -O3 > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -O3" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + + +# shall we built FAT-binaries ? +## this needs more thinking! running just the preprocessor does not like these flags +## for now we could live with just adding these manually with GEM_EXTRA_CXXFLAGS and GEM_EXTRA_LDFLAGS + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-O3\"" >&5 +$as_echo_n "checking whether compiler accepts \"-O3\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -O3 > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -O3" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-falign-loops -falign-functions -falign-jumps -funroll-loops\"" >&5 +$as_echo_n "checking whether compiler accepts \"-falign-loops -falign-functions -falign-jumps -funroll-loops\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -falign-loops -falign-functions -falign-jumps -funroll-loops > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -falign-loops -falign-functions -falign-jumps -funroll-loops" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-falign-loops -funroll-loops\"" >&5 +$as_echo_n "checking whether compiler accepts \"-falign-loops -funroll-loops\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -falign-loops -funroll-loops > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -falign-loops -funroll-loops" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-ffast-math\"" >&5 +$as_echo_n "checking whether compiler accepts \"-ffast-math\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -ffast-math > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -ffast-math" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + + +## SIMD support +# naive approach is to just check, which SIMD-flags the compiler takes +# and use these +# drawback: while the compiler might support compilation for a specific +# SIMD instruction set, the hardware you are compiling for might not + +# proposal: +# by default the configure-task should only enable flags that are known +# to work on the machine we are compiling. +# the user can override this by explicitely stating that they want the +# flag to be enabled (if possible) +# e.g. "./configure --enable-sse2" on a pentium-3 should +# produce a binary that will only run on machines with SSE2 registers +# whereas "./configure" will make a binary with only MMX enabled. +# +# but how do we test for the CPU-caps? on linux we could just read /proc/cpuinfo +# but on other OSs? + +# we make it a bit complicated in order to allow people to enforce the +# compilation with a specific SIMD-instruction set, even on platforms +# that don't support it +# why? think cross-compilation + + +@%:@ Check whether --enable-fat-binary was given. +if test "${enable_fat_binary+set}" = set; then : + enableval=$enable_fat_binary; fat_binary=$enableval +else + fat_binary=no +fi + +if test "$fat_binary" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking target architectures" >&5 +$as_echo_n "checking target architectures... " >&6; } + + # Respect TARGET_ARCHS setting from environment if available. + if test -z "$TARGET_ARCHS"; then + # Respect ARCH given to --enable-fat-binary if present. + if test "$fat_binary" != yes; then + TARGET_ARCHS=`echo "$fat_binary" | tr ',' ' '` + else + # Choose a default set of architectures based upon platform. + TARGET_ARCHS="ppc i386" + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ARCHS" >&5 +$as_echo "$TARGET_ARCHS" >&6; } + + + # /usr/lib/arch_tool -archify_list $TARGET_ARCHS + GEM_ARCH="" + tmp_arch_count=0 + for archs in $TARGET_ARCHS + do + GEM_ARCH="$GEM_ARCH -arch $archs" + tmp_arch_count=$((tmp_arch_count+1)) + done + + if test "$tmp_arch_count" -gt 1; then + if test "x$enable_dependency_tracking" != xno; then + as_fn_error $? "when building for multiple architectures, you MUST turn off dependency-tracking" "$LINENO" 5 + fi + fi + + if test "x$GEM_ARCH" != "x"; then + tmp_arch_cflags="$CFLAGS" + tmp_arch_cxxflags="$CXXFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"$GEM_ARCH\"" >&5 +$as_echo_n "checking whether compiler accepts \"$GEM_ARCH\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ $GEM_ARCH > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} $GEM_ARCH" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + GEM_ARCH="" +fi + + GEM_ARCH_CXXFLAGS+=$GEM_ARCH + CFLAGS="$tmp_arch_cflags" + CXXFLAGS="$tmp_arch_cxxflags" + fi + + if test "x$GEM_ARCH" != "x"; then + tmp_arch_ldflags="$LDFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts \"$GEM_ARCH\"" >&5 +$as_echo_n "checking whether linker accepts \"$GEM_ARCH\"... " >&6; } + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="$GEM_ARCH ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + GEM_ARCH="" + fi + + GEM_ARCH_LDFLAGS+=$GEM_ARCH + LDFLAGS="$tmp_arch_ldflags" + fi + + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEM_ARCH" >&5 +$as_echo "$GEM_ARCH" >&6; } + + + +if test "x${ARCH}" = "xi386" || test "x${ARCH}" = "xi686" || test "x${ARCH}" = "xx86_64"; then + if test "x$enable_altivec" != "xyes"; then enable_altivec="no"; fi +fi + +if test "x${ARCH}" = "xPower Macintosh" || test "x${ARCH}" = "xpowerpc"; then + if test "x$enable_mmx" != "xyes"; then enable_mmx="no" ; fi + if test "x$enable_sse2" != "xyes"; then enable_sse2="no"; fi +fi + +if test "x$enable_mmx" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-mmmx\"" >&5 +$as_echo_n "checking whether compiler accepts \"-mmmx\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -mmmx > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -mmmx" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi +if test "x$enable_sse2" = "xyes"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-msse2\"" >&5 +$as_echo_n "checking whether compiler accepts \"-msse2\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -msse2 > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -msse2" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi +if test "x$enable_altivec" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-faltivec\"" >&5 +$as_echo_n "checking whether compiler accepts \"-faltivec\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -faltivec > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -faltivec" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi +if test "x$enable_powerpc" = "xyes"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-mpowerpc-gfxopt\"" >&5 +$as_echo_n "checking whether compiler accepts \"-mpowerpc-gfxopt\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -mpowerpc-gfxopt > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -mpowerpc-gfxopt" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + +# on os-x we might come across "pascal strings" containing "\p"... +if test "x$enable_pascalstrings" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-fpascal-strings\"" >&5 +$as_echo_n "checking whether compiler accepts \"-fpascal-strings\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -fpascal-strings > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -fpascal-strings" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + + +@%:@ Check whether --with-defaultwindow was given. +if test "${with_defaultwindow+set}" = set; then : + withval=$with_defaultwindow; +fi + + +case "$with_defaultwindow" in + gem*) + GEM_DEFAULT_WINDOW="$with_defaultwindow" + ;; + *) + GEM_DEFAULT_WINDOW="" + ;; +esac +if test "x${GEM_DEFAULT_WINDOW}" = "x"; then + if test "x$WINDOWS" = "xyes"; then + GEM_DEFAULT_WINDOW="gemw32window" + elif test "x$DARWIN" = "xyes"; then + #GEM_DEFAULT_WINDOW="gemmacwindow" + GEM_DEFAULT_WINDOW="gemcocoawindow" + elif test "x$no_glx" != "xyes"; then + GEM_DEFAULT_WINDOW="gemglxwindow" + elif test "x$no_glut" != "xyes"; then + GEM_DEFAULT_WINDOW="gemglutwindow" + fi +fi + +ac_config_files="$ac_config_files abstractions/gemdefaultwindow.pd" + + +## dummy conditionals that are always "true" (ENABLED) or "false" (DISABLED) +enabled="yes" + if test "x${enabled}" = "xyes"; then + ENABLED_TRUE= + ENABLED_FALSE='#' +else + ENABLED_TRUE='#' + ENABLED_FALSE= +fi + + if test "x${enabled}" = "xno"; then + DISABLED_TRUE= + DISABLED_FALSE='#' +else + DISABLED_TRUE='#' + DISABLED_FALSE= +fi + + + +# damned: gcc on osX seems to report that it supports "-ip -ipo_obj" although they are only icc flags + + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIB@&t@OBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then + as_fn_error $? "conditional \"LINUX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then + as_fn_error $? "conditional \"ANDROID\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then + as_fn_error $? "conditional \"MACOSX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${IPHONEOS_TRUE}" && test -z "${IPHONEOS_FALSE}"; then + as_fn_error $? "conditional \"IPHONEOS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then + as_fn_error $? "conditional \"BSD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then + as_fn_error $? "conditional \"WINDOWS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then + as_fn_error $? "conditional \"CYGWIN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then + as_fn_error $? "conditional \"MINGW\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then + as_fn_error $? "conditional \"HURD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then + as_fn_error $? "conditional \"IRIX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CONTROLS_TRUE}" && test -z "${TARGET_CONTROLS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CONTROLS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_GEOS_TRUE}" && test -z "${TARGET_GEOS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_GEOS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_MANIPS_TRUE}" && test -z "${TARGET_MANIPS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_MANIPS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_NONGEOS_TRUE}" && test -z "${TARGET_NONGEOS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_NONGEOS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_PARTICLES_TRUE}" && test -z "${TARGET_PARTICLES_FALSE}"; then + as_fn_error $? "conditional \"TARGET_PARTICLES\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_PIXES_TRUE}" && test -z "${TARGET_PIXES_FALSE}"; then + as_fn_error $? "conditional \"TARGET_PIXES\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_OPENGL_TRUE}" && test -z "${TARGET_OPENGL_FALSE}"; then + as_fn_error $? "conditional \"TARGET_OPENGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_VERTEX_TRUE}" && test -z "${TARGET_VERTEX_FALSE}"; then + as_fn_error $? "conditional \"TARGET_VERTEX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GL_TRUE}" && test -z "${HAVE_GL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GLU_TRUE}" && test -z "${HAVE_GLU_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GLU\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GLUT_TRUE}" && test -z "${HAVE_GLUT_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GLUT\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GLX_TRUE}" && test -z "${HAVE_GLX_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GLX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_AGL_TRUE}" && test -z "${HAVE_FRAMEWORK_AGL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_AGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_AGL_TRUE}" && test -z "${HAVE_AGL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_AGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_GLEW_TRUE}" && test -z "${HAVE_LIB_GLEW_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_GLEW\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_SDL_TRUE}" && test -z "${HAVE_LIB_SDL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_SDL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_COCOA_TRUE}" && test -z "${HAVE_FRAMEWORK_COCOA_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_COCOA\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_CARBON_TRUE}" && test -z "${HAVE_FRAMEWORK_CARBON_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_CARBON\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_QUICKTIME_TRUE}" && test -z "${HAVE_FRAMEWORK_QUICKTIME_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_QUICKTIME\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${VIDEODARWIN_TRUE}" && test -z "${VIDEODARWIN_FALSE}"; then + as_fn_error $? "conditional \"VIDEODARWIN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_IMAGEMAGICK___TRUE}" && test -z "${HAVE_LIB_IMAGEMAGICK___FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_IMAGEMAGICK__\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_MAGICKCORE_TRUE}" && test -z "${HAVE_LIB_MAGICKCORE_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_MAGICKCORE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_TIFF_TRUE}" && test -z "${HAVE_LIB_TIFF_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_TIFF\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_JPEG_TRUE}" && test -z "${HAVE_LIB_JPEG_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_JPEG\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_FTGL_TRUE}" && test -z "${HAVE_LIB_FTGL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_FTGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_FRIBIDI_TRUE}" && test -z "${HAVE_LIB_FRIBIDI_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_FRIBIDI\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_AVIFILE_TRUE}" && test -z "${HAVE_LIB_AVIFILE_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_AVIFILE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_GMERLIN_AVDEC_TRUE}" && test -z "${HAVE_LIB_GMERLIN_AVDEC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_GMERLIN_AVDEC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_MPEG_TRUE}" && test -z "${HAVE_LIB_MPEG_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_MPEG\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBMPEG3_TRUE}" && test -z "${HAVE_LIB_LIBMPEG3_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBMPEG3\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBQUICKTIME_TRUE}" && test -z "${HAVE_LIB_LIBQUICKTIME_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBQUICKTIME\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LQT_TRUE}" && test -z "${HAVE_LIB_LQT_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LQT\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBDC1394_2_TRUE}" && test -z "${HAVE_LIB_LIBDC1394_2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBDC1394_2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBDV_TRUE}" && test -z "${HAVE_LIB_LIBDV_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBDV\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBRAW1394_TRUE}" && test -z "${HAVE_LIB_LIBRAW1394_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBRAW1394\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBIEC61883_TRUE}" && test -z "${HAVE_LIB_LIBIEC61883_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBIEC61883\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBUNICAP_TRUE}" && test -z "${HAVE_LIB_LIBUNICAP_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBUNICAP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_UNICAP_TRUE}" && test -z "${HAVE_LIB_UNICAP_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_UNICAP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBV4L1_TRUE}" && test -z "${HAVE_LIB_LIBV4L1_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBV4L1\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_V4L_TRUE}" && test -z "${HAVE_V4L_FALSE}"; then + as_fn_error $? "conditional \"HAVE_V4L\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBV4L2_TRUE}" && test -z "${HAVE_LIB_LIBV4L2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBV4L2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_V4L2_TRUE}" && test -z "${HAVE_V4L2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_V4L2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_VFW32_TRUE}" && test -z "${HAVE_LIB_VFW32_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_VFW32\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBVLC_TRUE}" && test -z "${HAVE_LIB_LIBVLC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBVLC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_ASSIMP_TRUE}" && test -z "${HAVE_LIB_ASSIMP_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_ASSIMP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${ENABLED_TRUE}" && test -z "${ENABLED_FALSE}"; then + as_fn_error $? "conditional \"ENABLED\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${DISABLED_TRUE}" && test -z "${DISABLED_FALSE}"; then + as_fn_error $? "conditional \"DISABLED\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by Gem $as_me 0.93, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to . +Gem home page: ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +Gem config.status 0.93 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX +@%:@@%:@ Running $as_me. @%:@@%:@ +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' +PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' +predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' +postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' +predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' +postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' +LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' +reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' +reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' +GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' +inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' +link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' +always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' +exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' +predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' +postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' +predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' +postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in AS \ +DLLTOOL \ +OBJDUMP \ +SHELL \ +ECHO \ +PATH_SEPARATOR \ +SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +deplibs_check_method \ +file_magic_cmd \ +file_magic_glob \ +want_nocaseglob \ +sharedlib_from_linklib_cmd \ +AR \ +AR_FLAGS \ +archiver_list_spec \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +nm_file_list_spec \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_pic \ +lt_prog_compiler_wl \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +MANIFEST_TOOL \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_separator \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib \ +compiler_lib_search_dirs \ +predep_objects \ +postdep_objects \ +predeps \ +postdeps \ +compiler_lib_search_path \ +LD_CXX \ +reload_flag_CXX \ +compiler_CXX \ +lt_prog_compiler_no_builtin_flag_CXX \ +lt_prog_compiler_pic_CXX \ +lt_prog_compiler_wl_CXX \ +lt_prog_compiler_static_CXX \ +lt_cv_prog_compiler_c_o_CXX \ +export_dynamic_flag_spec_CXX \ +whole_archive_flag_spec_CXX \ +compiler_needs_object_CXX \ +with_gnu_ld_CXX \ +allow_undefined_flag_CXX \ +no_undefined_flag_CXX \ +hardcode_libdir_flag_spec_CXX \ +hardcode_libdir_separator_CXX \ +exclude_expsyms_CXX \ +include_expsyms_CXX \ +file_list_spec_CXX \ +compiler_lib_search_dirs_CXX \ +predep_objects_CXX \ +postdep_objects_CXX \ +predeps_CXX \ +postdeps_CXX \ +compiler_lib_search_path_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postlink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +sys_lib_dlsearch_path_spec \ +reload_cmds_CXX \ +old_archive_cmds_CXX \ +old_archive_from_new_cmds_CXX \ +old_archive_from_expsyms_cmds_CXX \ +archive_cmds_CXX \ +archive_expsym_cmds_CXX \ +module_cmds_CXX \ +module_expsym_cmds_CXX \ +export_symbols_cmds_CXX \ +prelink_cmds_CXX \ +postlink_cmds_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +ac_aux_dir='$ac_aux_dir' +xsi_shell='$xsi_shell' +lt_shell_append='$lt_shell_append' + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile' + + + + + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "abstractions/Makefile") CONFIG_FILES="$CONFIG_FILES abstractions/Makefile" ;; + "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "src/Gem/Makefile") CONFIG_FILES="$CONFIG_FILES src/Gem/Makefile" ;; + "src/Utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/Utils/Makefile" ;; + "src/RTE/Makefile") CONFIG_FILES="$CONFIG_FILES src/RTE/Makefile" ;; + "src/Base/Makefile") CONFIG_FILES="$CONFIG_FILES src/Base/Makefile" ;; + "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;; + "src/Output/Makefile") CONFIG_FILES="$CONFIG_FILES src/Output/Makefile" ;; + "src/deprecated/Makefile") CONFIG_FILES="$CONFIG_FILES src/deprecated/Makefile" ;; + "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; + "plugins/imageQT/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageQT/Makefile" ;; + "plugins/imageMAGICK/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageMAGICK/Makefile" ;; + "plugins/imageTIFF/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageTIFF/Makefile" ;; + "plugins/imageJPEG/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageJPEG/Makefile" ;; + "plugins/imageSGI/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageSGI/Makefile" ;; + "plugins/filmAVI/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmAVI/Makefile" ;; + "plugins/filmAVIPLAY/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmAVIPLAY/Makefile" ;; + "plugins/filmDS/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmDS/Makefile" ;; + "plugins/filmDarwin/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmDarwin/Makefile" ;; + "plugins/filmGMERLIN/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmGMERLIN/Makefile" ;; + "plugins/filmMPEG1/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmMPEG1/Makefile" ;; + "plugins/filmMPEG3/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmMPEG3/Makefile" ;; + "plugins/filmQT/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmQT/Makefile" ;; + "plugins/filmQT4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmQT4L/Makefile" ;; + "plugins/filmTEST/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmTEST/Makefile" ;; + "plugins/modelOBJ/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/modelOBJ/Makefile" ;; + "plugins/modelASSIMP2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/modelASSIMP2/Makefile" ;; + "plugins/recordQT/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordQT/Makefile" ;; + "plugins/recordQT4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordQT4L/Makefile" ;; + "plugins/recordV4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordV4L/Makefile" ;; + "plugins/recordV4L2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordV4L2/Makefile" ;; + "plugins/videoDC1394/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDC1394/Makefile" ;; + "plugins/videoDS/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDS/Makefile" ;; + "plugins/videoDV4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDV4L/Makefile" ;; + "plugins/videoDarwin/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDarwin/Makefile" ;; + "plugins/videoSGI/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoSGI/Makefile" ;; + "plugins/videoTEST/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoTEST/Makefile" ;; + "plugins/videoUNICAP/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoUNICAP/Makefile" ;; + "plugins/videoV4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoV4L/Makefile" ;; + "plugins/videoV4L2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoV4L2/Makefile" ;; + "plugins/videoVFW/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoVFW/Makefile" ;; + "plugins/videoVLC/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoVLC/Makefile" ;; + "extra/pix2jpg/Makefile") CONFIG_FILES="$CONFIG_FILES extra/pix2jpg/Makefile" ;; + "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; + "Gem.pc") CONFIG_FILES="$CONFIG_FILES Gem.pc" ;; + "Gem-meta.pd") CONFIG_FILES="$CONFIG_FILES Gem-meta.pd" ;; + "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "src/Controls/Makefile") CONFIG_FILES="$CONFIG_FILES src/Controls/Makefile" ;; + "src/Geos/Makefile") CONFIG_FILES="$CONFIG_FILES src/Geos/Makefile" ;; + "src/Manips/Makefile") CONFIG_FILES="$CONFIG_FILES src/Manips/Makefile" ;; + "src/Nongeos/Makefile") CONFIG_FILES="$CONFIG_FILES src/Nongeos/Makefile" ;; + "src/Particles/Makefile") CONFIG_FILES="$CONFIG_FILES src/Particles/Makefile" ;; + "src/Pixes/Makefile") CONFIG_FILES="$CONFIG_FILES src/Pixes/Makefile" ;; + "src/openGL/Makefile") CONFIG_FILES="$CONFIG_FILES src/openGL/Makefile" ;; + "src/Vertex/Makefile") CONFIG_FILES="$CONFIG_FILES src/Vertex/Makefile" ;; + "abstractions/gemdefaultwindow.pd") CONFIG_FILES="$CONFIG_FILES abstractions/gemdefaultwindow.pd" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) + + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +# The names of the tagged configurations supported by this script. +available_tags="CXX " + +# ### BEGIN LIBTOOL CONFIG + +# Assembler program. +AS=$lt_AS + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Object dumper program. +OBJDUMP=$lt_OBJDUMP + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# The PATH separator for the build system. +PATH_SEPARATOR=$lt_PATH_SEPARATOR + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method = "file_magic". +file_magic_cmd=$lt_file_magic_cmd + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + +# The archiver. +AR=$lt_AR + +# Flags to create an archive. +AR_FLAGS=$lt_AR_FLAGS + +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec + +# The root where to search for dependent libraries,and in which our libraries should be installed. +lt_sysroot=$lt_sysroot + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects +postdep_objects=$lt_postdep_objects +predeps=$lt_predeps +postdeps=$lt_postdeps + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + +ltmain="$ac_aux_dir/ltmain.sh" + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + if test x"$xsi_shell" = xyes; then + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ +func_dirname ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_basename ()$/,/^} # func_basename /c\ +func_basename ()\ +{\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ +func_dirname_and_basename ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ +func_stripname ()\ +{\ +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ +\ # positional parameters, so assign one to ordinary parameter first.\ +\ func_stripname_result=${3}\ +\ func_stripname_result=${func_stripname_result#"${1}"}\ +\ func_stripname_result=${func_stripname_result%"${2}"}\ +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ +func_split_long_opt ()\ +{\ +\ func_split_long_opt_name=${1%%=*}\ +\ func_split_long_opt_arg=${1#*=}\ +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ +func_split_short_opt ()\ +{\ +\ func_split_short_opt_arg=${1#??}\ +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ +func_lo2o ()\ +{\ +\ case ${1} in\ +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ +\ *) func_lo2o_result=${1} ;;\ +\ esac\ +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_xform ()$/,/^} # func_xform /c\ +func_xform ()\ +{\ + func_xform_result=${1%.*}.lo\ +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_arith ()$/,/^} # func_arith /c\ +func_arith ()\ +{\ + func_arith_result=$(( $* ))\ +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_len ()$/,/^} # func_len /c\ +func_len ()\ +{\ + func_len_result=${#1}\ +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + +fi + +if test x"$lt_shell_append" = xyes; then + sed -e '/^func_append ()$/,/^} # func_append /c\ +func_append ()\ +{\ + eval "${1}+=\\${2}"\ +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ +func_append_quoted ()\ +{\ +\ func_quote_for_eval "${2}"\ +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} +fi + + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + + + cat <<_LT_EOF >> "$ofile" + +# ### BEGIN LIBTOOL TAG CONFIG: CXX + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# How to create reloadable object files. +reload_flag=$lt_reload_flag_CXX +reload_cmds=$lt_reload_cmds_CXX + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_CXX + +# A language specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU compiler? +with_gcc=$GCC_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_CXX + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_CXX + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_CXX + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_CXX + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds_CXX + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_CXX + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_CXX +postdep_objects=$lt_postdep_objects_CXX +predeps=$lt_predeps_CXX +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# ### END LIBTOOL TAG CONFIG: CXX +_LT_EOF + + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi + +# +# CONFIG_SUBDIRS section. +# +if test "$no_recursion" != yes; then + + # Remove --cache-file, --srcdir, and --disable-option-checking arguments + # so they do not pile up. + ac_sub_configure_args= + ac_prev= + eval "set x $ac_configure_args" + shift + for ac_arg + do + if test -n "$ac_prev"; then + ac_prev= + continue + fi + case $ac_arg in + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ + | --c=*) + ;; + --config-cache | -C) + ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + ;; + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + ;; + --disable-option-checking) + ;; + *) + case $ac_arg in + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append ac_sub_configure_args " '$ac_arg'" ;; + esac + done + + # Always prepend --prefix to ensure using the same prefix + # in subdir configurations. + ac_arg="--prefix=$prefix" + case $ac_arg in + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" + + # Pass --silent + if test "$silent" = yes; then + ac_sub_configure_args="--silent $ac_sub_configure_args" + fi + + # Always prepend --disable-option-checking to silence warnings, since + # different subdirs can have different --enable and --with options. + ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" + + ac_popdir=`pwd` + for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue + + # Do not complain, so a configure script can configure whichever + # parts of a large source tree are present. + test -d "$srcdir/$ac_dir" || continue + + ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" + $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 + $as_echo "$ac_msg" >&6 + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + cd "$ac_dir" + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f "$ac_srcdir/configure.gnu"; then + ac_sub_configure=$ac_srcdir/configure.gnu + elif test -f "$ac_srcdir/configure"; then + ac_sub_configure=$ac_srcdir/configure + elif test -f "$ac_srcdir/configure.in"; then + # This should be Cygnus configure. + ac_sub_configure=$ac_aux_dir/configure + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 +$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} + ac_sub_configure= + fi + + # The recursion is here. + if test -n "$ac_sub_configure"; then + # Make the cache file name correct relative to the subdirectory. + case $cache_file in + [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; + *) # Relative name. + ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} + # The eval makes quoting arguments work. + eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ + --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || + as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 + fi + + cd "$ac_popdir" + done +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + + +if test "x$have_ftgl" = "xyes"; then + have_font=FTGL +fi + +if test "x$have_ImageMagick" = "xyes"; then + have_ImageMagick="yes (Magick++)" +else + if test "x$have_MagickCore" = "xyes"; then + have_ImageMagick="yes (MagickCore)" + fi +fi + +if test "x$have_quicktime_framework" = "x"; then have_quicktime_framework="no"; fi + +if test "x$have_quicktime_framework" = "xyes"; then + have_libquicktime="yes (framework)" +fi + +have_ieee1394="" +if test "x$have_libdc1394_2" = "xyes"; then + have_ieee1394="$have_ieee1394 libdc1394" +fi + +if test "x$have_ieee1394" = "x"; then + have_ieee1394="no"; +else + have_ieee1394="yes (${have_ieee1394# })" +fi + +if test "x${have_v4l}" = "x"; then have_v4l="no"; fi +if test "x${have_v4l2}" = "x"; then have_v4l2="no"; fi +if test "x${have_ieee1394}" = "x"; then have_ieee1394="no"; fi +if test "x${have_libdv}" = "x"; then have_libdv="no"; fi +if test "x${have_unicap}" = "x"; then have_unicap="no"; fi +if test "x${have_vfw32}" = "x"; then have_vfw32="no"; fi +# TODO: have_ds + +if test "x$with_film" = "xplugins"; then + use_film_plugins="yes" +else + use_film_plugins="no (using $with_film backend)" +fi + +if test "x$with_video" = "xplugins"; then + use_video_plugins="yes" +else + use_video_plugins="no (using $with_video backend)" +fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: +Result: + Target : Gem.${EXT} + Objects : ${GEM_TARGETS} + default window : ${GEM_DEFAULT_WINDOW} + +Configuration: + Compiler : ${CXX} + CXXFLAGS : ${CXXFLAGS} ${X_CFLAGS} + : ${PKG_CFLAGS} + DEFINES : ${DEFINES} + + LIBS : ${LIBS} + : ${PKG_LIBS} + LDFLAGS : ${LDFLAGS} + : ${X_LIBS} + + Install path : ${prefix} + + RTE (${GEM_RTE}): + external-extension : ${GEM_RTE_EXTENSION} + CFLAGS : ${GEM_RTE_CFLAGS} + LIBS : ${GEM_RTE_LIBS} + + used optional libraries: + + font-rendering : ${have_font} + default font : ${GEM_DEFAULT_FONT} + + image-support + use ImageMagick : ${have_ImageMagick} + use QuickTime : ${have_quicktime_framework} + use TIFF : ${have_tiff} + use JPEG : ${have_jpeg} + moviefile-support + use PLUGINS : ${use_film_plugins} + use mpeg : ${have_mpeg} + use mpeg-3 : ${have_libmpeg3} + use QuickTime : ${have_libquicktime} + use aviplay : ${have_avifile} + use gmerlin : ${have_gmerlin_avdec} + capture-support + use PLUGINS : ${use_video_plugins} + use v4l : ${have_v4l} + use v4l2 : ${have_v4l2} + use ieee1394 : ${have_ieee1394} + use DV : ${have_libdv} + use Unicap : ${have_unicap} + use Video-for-WinDOS : ${have_vfw32} + use QuickTime : ${have_quicktime_framework} +" >&5 +$as_echo " +Result: + Target : Gem.${EXT} + Objects : ${GEM_TARGETS} + default window : ${GEM_DEFAULT_WINDOW} + +Configuration: + Compiler : ${CXX} + CXXFLAGS : ${CXXFLAGS} ${X_CFLAGS} + : ${PKG_CFLAGS} + DEFINES : ${DEFINES} + + LIBS : ${LIBS} + : ${PKG_LIBS} + LDFLAGS : ${LDFLAGS} + : ${X_LIBS} + + Install path : ${prefix} + + RTE (${GEM_RTE}): + external-extension : ${GEM_RTE_EXTENSION} + CFLAGS : ${GEM_RTE_CFLAGS} + LIBS : ${GEM_RTE_LIBS} + + used optional libraries: + + font-rendering : ${have_font} + default font : ${GEM_DEFAULT_FONT} + + image-support + use ImageMagick : ${have_ImageMagick} + use QuickTime : ${have_quicktime_framework} + use TIFF : ${have_tiff} + use JPEG : ${have_jpeg} + moviefile-support + use PLUGINS : ${use_film_plugins} + use mpeg : ${have_mpeg} + use mpeg-3 : ${have_libmpeg3} + use QuickTime : ${have_libquicktime} + use aviplay : ${have_avifile} + use gmerlin : ${have_gmerlin_avdec} + capture-support + use PLUGINS : ${use_video_plugins} + use v4l : ${have_v4l} + use v4l2 : ${have_v4l2} + use ieee1394 : ${have_ieee1394} + use DV : ${have_libdv} + use Unicap : ${have_unicap} + use Video-for-WinDOS : ${have_vfw32} + use QuickTime : ${have_quicktime_framework} +" >&6; } + +if test "x$have_pd" = "xno"; then + as_fn_error $? "Pd (header) is mandatory and seems to be missing!" "$LINENO" 5 +fi + +if test "x$no_gl" = "xyes"; then + as_fn_error $? "GL (headers) not found! you need openGL!!!" "$LINENO" 5 +fi + +if test "x$no_glu" = "xyes" && test "x$no_agl" = "xyes"; then + as_fn_error $? "GLU (headers) not found! you need openGL Utility Library!!!" "$LINENO" 5 +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Now run make ..." >&5 +$as_echo "Now run make ..." >&6; } diff --git a/src/Gem/autom4te.cache/output.2 b/src/Gem/autom4te.cache/output.2 new file mode 100644 index 0000000..b8d97ee --- /dev/null +++ b/src/Gem/autom4te.cache/output.2 @@ -0,0 +1,33455 @@ +@%:@! /bin/sh +@%:@ Guess values for system-dependent variables and create Makefiles. +@%:@ Generated by GNU Autoconf 2.69 for Gem 0.93. +@%:@ +@%:@ Report bugs to . +@%:@ +@%:@ +@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +@%:@ +@%:@ +@%:@ This configure script is free software; the Free Software Foundation +@%:@ gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in @%:@( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and zmoelnig@iem.at +$0: about your system, including any error possibly output +$0: before this message. Then install a modern shell, or +$0: manually run the script under such a shell if you do +$0: have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + +SHELL=${CONFIG_SHELL-/bin/sh} + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIB@&t@OBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='Gem' +PACKAGE_TARNAME='Gem' +PACKAGE_VERSION='0.93' +PACKAGE_STRING='Gem 0.93' +PACKAGE_BUGREPORT='zmoelnig@iem.at' +PACKAGE_URL='http://gem.iem.at' + +ac_unique_file="src/Base/GemBase.h" +enable_option_checking=no +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_header_list= +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +DISABLED_FALSE +DISABLED_TRUE +ENABLED_FALSE +ENABLED_TRUE +GEM_DEFAULT_WINDOW +GEM_ARCH_LDFLAGS +GEM_ARCH_CXXFLAGS +MAKEDEP_FLAGS +LIB@&t@OBJS +GEM_PTHREAD_LIBS +GEM_PTHREAD_CFLAGS +HAVE_LIB_ASSIMP_FALSE +HAVE_LIB_ASSIMP_TRUE +PKG_ASSIMP_LIBS +PKG_ASSIMP_CFLAGS +GEM_LIB_ASSIMP_LIBS +GEM_LIB_ASSIMP_CFLAGS +HAVE_LIB_LIBVLC_FALSE +HAVE_LIB_LIBVLC_TRUE +PKG_LIBVLC_LIBS +PKG_LIBVLC_CFLAGS +GEM_LIB_LIBVLC_LIBS +GEM_LIB_LIBVLC_CFLAGS +HAVE_LIB_VFW32_FALSE +HAVE_LIB_VFW32_TRUE +PKG_VFW32_LIBS +PKG_VFW32_CFLAGS +GEM_LIB_VFW32_LIBS +GEM_LIB_VFW32_CFLAGS +HAVE_V4L2_FALSE +HAVE_V4L2_TRUE +HAVE_LIB_LIBV4L2_FALSE +HAVE_LIB_LIBV4L2_TRUE +PKG_LIBV4L2_LIBS +PKG_LIBV4L2_CFLAGS +GEM_LIB_LIBV4L2_LIBS +GEM_LIB_LIBV4L2_CFLAGS +HAVE_V4L_FALSE +HAVE_V4L_TRUE +HAVE_LIB_LIBV4L1_FALSE +HAVE_LIB_LIBV4L1_TRUE +PKG_LIBV4L1_LIBS +PKG_LIBV4L1_CFLAGS +GEM_LIB_LIBV4L1_LIBS +GEM_LIB_LIBV4L1_CFLAGS +HAVE_LIB_UNICAP_FALSE +HAVE_LIB_UNICAP_TRUE +HAVE_LIB_LIBUNICAP_FALSE +HAVE_LIB_LIBUNICAP_TRUE +PKG_LIBUNICAP_LIBS +PKG_LIBUNICAP_CFLAGS +GEM_LIB_LIBUNICAP_LIBS +GEM_LIB_LIBUNICAP_CFLAGS +HAVE_LIB_LIBIEC61883_FALSE +HAVE_LIB_LIBIEC61883_TRUE +PKG_LIBIEC61883_LIBS +PKG_LIBIEC61883_CFLAGS +GEM_LIB_LIBIEC61883_LIBS +GEM_LIB_LIBIEC61883_CFLAGS +HAVE_LIB_LIBRAW1394_FALSE +HAVE_LIB_LIBRAW1394_TRUE +PKG_LIBRAW1394_LIBS +PKG_LIBRAW1394_CFLAGS +GEM_LIB_LIBRAW1394_LIBS +GEM_LIB_LIBRAW1394_CFLAGS +HAVE_LIB_LIBDV_FALSE +HAVE_LIB_LIBDV_TRUE +PKG_LIBDV_LIBS +PKG_LIBDV_CFLAGS +GEM_LIB_LIBDV_LIBS +GEM_LIB_LIBDV_CFLAGS +HAVE_LIB_LIBDC1394_2_FALSE +HAVE_LIB_LIBDC1394_2_TRUE +PKG_LIBDC1394_2_LIBS +PKG_LIBDC1394_2_CFLAGS +GEM_LIB_LIBDC1394_2_LIBS +GEM_LIB_LIBDC1394_2_CFLAGS +HAVE_LIB_LQT_FALSE +HAVE_LIB_LQT_TRUE +PKG_LQT_LIBS +PKG_LQT_CFLAGS +GEM_LIB_LQT_LIBS +GEM_LIB_LQT_CFLAGS +HAVE_LIB_LIBQUICKTIME_FALSE +HAVE_LIB_LIBQUICKTIME_TRUE +PKG_LIBQUICKTIME_LIBS +PKG_LIBQUICKTIME_CFLAGS +GEM_LIB_LIBQUICKTIME_LIBS +GEM_LIB_LIBQUICKTIME_CFLAGS +HAVE_LIB_LIBMPEG3_FALSE +HAVE_LIB_LIBMPEG3_TRUE +PKG_LIBMPEG3_LIBS +PKG_LIBMPEG3_CFLAGS +GEM_LIB_LIBMPEG3_LIBS +GEM_LIB_LIBMPEG3_CFLAGS +HAVE_LIB_MPEG_FALSE +HAVE_LIB_MPEG_TRUE +PKG_MPEG_LIBS +PKG_MPEG_CFLAGS +GEM_LIB_MPEG_LIBS +GEM_LIB_MPEG_CFLAGS +HAVE_LIB_GMERLIN_AVDEC_FALSE +HAVE_LIB_GMERLIN_AVDEC_TRUE +PKG_GMERLIN_AVDEC_LIBS +PKG_GMERLIN_AVDEC_CFLAGS +GEM_LIB_GMERLIN_AVDEC_LIBS +GEM_LIB_GMERLIN_AVDEC_CFLAGS +HAVE_LIB_AVIFILE_FALSE +HAVE_LIB_AVIFILE_TRUE +PKG_AVIFILE_LIBS +PKG_AVIFILE_CFLAGS +GEM_LIB_AVIFILE_LIBS +GEM_LIB_AVIFILE_CFLAGS +HAVE_LIB_FRIBIDI_FALSE +HAVE_LIB_FRIBIDI_TRUE +PKG_FRIBIDI_LIBS +PKG_FRIBIDI_CFLAGS +GEM_LIB_FRIBIDI_LIBS +GEM_LIB_FRIBIDI_CFLAGS +HAVE_LIB_FTGL_FALSE +HAVE_LIB_FTGL_TRUE +PKG_FTGL_LIBS +PKG_FTGL_CFLAGS +GEM_LIB_FTGL_LIBS +GEM_LIB_FTGL_CFLAGS +HAVE_LIB_JPEG_FALSE +HAVE_LIB_JPEG_TRUE +PKG_JPEG_LIBS +PKG_JPEG_CFLAGS +GEM_LIB_JPEG_LIBS +GEM_LIB_JPEG_CFLAGS +HAVE_LIB_TIFF_FALSE +HAVE_LIB_TIFF_TRUE +PKG_TIFF_LIBS +PKG_TIFF_CFLAGS +GEM_LIB_TIFF_LIBS +GEM_LIB_TIFF_CFLAGS +HAVE_LIB_MAGICKCORE_FALSE +HAVE_LIB_MAGICKCORE_TRUE +PKG_MAGICKCORE_LIBS +PKG_MAGICKCORE_CFLAGS +GEM_LIB_MAGICKCORE_LIBS +GEM_LIB_MAGICKCORE_CFLAGS +HAVE_LIB_IMAGEMAGICK___FALSE +HAVE_LIB_IMAGEMAGICK___TRUE +PKG_IMAGEMAGICK___LIBS +PKG_IMAGEMAGICK___CFLAGS +GEM_LIB_IMAGEMAGICK___LIBS +GEM_LIB_IMAGEMAGICK___CFLAGS +VIDEODARWIN_FALSE +VIDEODARWIN_TRUE +HAVE_FRAMEWORK_QUICKTIME_FALSE +HAVE_FRAMEWORK_QUICKTIME_TRUE +GEM_FRAMEWORK_QUICKTIME +HAVE_FRAMEWORK_CARBON_FALSE +HAVE_FRAMEWORK_CARBON_TRUE +GEM_FRAMEWORK_CARBON +HAVE_FRAMEWORK_COCOA_FALSE +HAVE_FRAMEWORK_COCOA_TRUE +GEM_FRAMEWORK_COCOA +HAVE_LIB_SDL_FALSE +HAVE_LIB_SDL_TRUE +PKG_SDL_LIBS +PKG_SDL_CFLAGS +GEM_LIB_SDL_LIBS +GEM_LIB_SDL_CFLAGS +HAVE_LIB_GLEW_FALSE +HAVE_LIB_GLEW_TRUE +PKG_GLEW_LIBS +PKG_GLEW_CFLAGS +PKG_CONFIG +GEM_LIB_GLEW_LIBS +GEM_LIB_GLEW_CFLAGS +HAVE_AGL_FALSE +HAVE_AGL_TRUE +AGL_LIBS +AGL_CFLAGS +HAVE_FRAMEWORK_AGL_FALSE +HAVE_FRAMEWORK_AGL_TRUE +GEM_FRAMEWORK_AGL +GLX_LIBS +GLX_CFLAGS +HAVE_GLX_FALSE +HAVE_GLX_TRUE +HAVE_GLUT_FALSE +HAVE_GLUT_TRUE +GLUT_LIBS +GLUT_CFLAGS +HAVE_GLU_FALSE +HAVE_GLU_TRUE +GLU_LIBS +GLU_CFLAGS +HAVE_GL_FALSE +HAVE_GL_TRUE +GL_LIBS +GL_CFLAGS +PTHREAD_CFLAGS +PTHREAD_LIBS +PTHREAD_CC +ax_pthread_config +XMKMF +TARGET_VERTEX_FALSE +TARGET_VERTEX_TRUE +TARGET_OPENGL_FALSE +TARGET_OPENGL_TRUE +TARGET_PIXES_FALSE +TARGET_PIXES_TRUE +TARGET_PARTICLES_FALSE +TARGET_PARTICLES_TRUE +TARGET_NONGEOS_FALSE +TARGET_NONGEOS_TRUE +TARGET_MANIPS_FALSE +TARGET_MANIPS_TRUE +TARGET_GEOS_FALSE +TARGET_GEOS_TRUE +TARGET_CONTROLS_FALSE +TARGET_CONTROLS_TRUE +GEM_EXTERNAL_LIBS +GEM_EXTERNAL_CFLAGS +GEM_EXTERNAL_CPPFLAGS +GEM_LIBS +GEM_CXXFLAGS +GEM_CFLAGS +GEM_CPPFLAGS +GEM_RTE_EXTENSION +GEM_RTE +GEM_RTE_LIBS +GEM_RTE_CFLAGS +IRIX_FALSE +IRIX_TRUE +HURD_FALSE +HURD_TRUE +MINGW_FALSE +MINGW_TRUE +CYGWIN_FALSE +CYGWIN_TRUE +WINDOWS_FALSE +WINDOWS_TRUE +BSD_FALSE +BSD_TRUE +IPHONEOS_FALSE +IPHONEOS_TRUE +MACOSX_FALSE +MACOSX_TRUE +ANDROID_FALSE +ANDROID_TRUE +LINUX_FALSE +LINUX_TRUE +CPP +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +MANIFEST_TOOL +RANLIB +ac_ct_AR +AR +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +EGREP +GREP +SED +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +ac_ct_CC +CFLAGS +CC +LIBTOOL +OBJDUMP +DLLTOOL +AS +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +ac_ct_OBJCXX +OBJCXXFLAGS +OBJCXX +am__fastdepOBJC_FALSE +am__fastdepOBJC_TRUE +OBJCDEPMODE +ac_ct_OBJC +OBJCFLAGS +OBJC +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CXX +LDFLAGS +PKG_LIBS +PKG_CFLAGS +X_EXTRA_LIBS +X_LIBS +X_PRE_LIBS +X_CFLAGS +DEFINES +CPPFLAGS +CXXFLAGS +EXT +GEM_TARGETS +CXX +CXXCPP +subdirs +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_dependency_tracking +enable_shared +enable_static +with_pic +enable_fast_install +with_gnu_ld +with_sysroot +enable_libtool_lock +with_ALL +with_pd +with_extension +enable_mmx +enable_sse2 +enable_altivec +enable_powerpc +enable_pascalstrings +enable_registerstruct +enable_Controls +enable_Geos +enable_Manips +enable_Nongeos +enable_Particles +enable_Pixes +enable_openGL +enable_Vertex +with_x +with_glew +with_glew_includes +with_glew_libs +with_sdl +with_sdl_includes +with_sdl_libs +with_ImageMagick +with_ImageMagick_includes +with_ImageMagick_libs +with_MagickCore +with_MagickCore_includes +with_MagickCore_libs +with_tiff +with_tiff_includes +with_tiff_libs +with_jpeg +with_jpeg_includes +with_jpeg_libs +with_ftgl +with_ftgl_includes +with_ftgl_libs +with_fribidi +with_fribidi_includes +with_fribidi_libs +with_avifile +with_avifile_includes +with_avifile_libs +with_gmerlin_avdec +with_gmerlin_avdec_includes +with_gmerlin_avdec_libs +with_mpeg +with_mpeg_includes +with_mpeg_libs +with_libmpeg3 +with_libmpeg3_includes +with_libmpeg3_libs +with_libquicktime +with_libquicktime_includes +with_libquicktime_libs +with_lqt +with_lqt_includes +with_lqt_libs +with_libdc1394_2 +with_libdc1394_2_includes +with_libdc1394_2_libs +with_libdv +with_libdv_includes +with_libdv_libs +with_libraw1394 +with_libraw1394_includes +with_libraw1394_libs +with_libiec61883 +with_libiec61883_includes +with_libiec61883_libs +with_unicap +with_libunicap +with_libunicap_includes +with_libunicap_libs +with_v4l +with_libv4l1 +with_libv4l1_includes +with_libv4l1_libs +with_v4l2 +with_libv4l2 +with_libv4l2_includes +with_libv4l2_libs +with_vfw32 +with_vfw32_includes +with_vfw32_libs +with_libvlc +with_libvlc_includes +with_libvlc_libs +with_assimp +with_assimp_includes +with_assimp_libs +with_default_font +enable_threads +with_video +with_film +enable_fat_binary +with_defaultwindow +' + ac_precious_vars='build_alias +host_alias +target_alias +CXX +CXXFLAGS +LDFLAGS +LIBS +CPPFLAGS +CCC +OBJC +OBJCFLAGS +OBJCXX +OBJCXXFLAGS +CC +CFLAGS +CPP +CXXCPP +XMKMF +PKG_CONFIG +PKG_GLEW_CFLAGS +PKG_GLEW_LIBS +PKG_SDL_CFLAGS +PKG_SDL_LIBS +PKG_IMAGEMAGICK___CFLAGS +PKG_IMAGEMAGICK___LIBS +PKG_MAGICKCORE_CFLAGS +PKG_MAGICKCORE_LIBS +PKG_TIFF_CFLAGS +PKG_TIFF_LIBS +PKG_JPEG_CFLAGS +PKG_JPEG_LIBS +PKG_FTGL_CFLAGS +PKG_FTGL_LIBS +PKG_FRIBIDI_CFLAGS +PKG_FRIBIDI_LIBS +PKG_AVIFILE_CFLAGS +PKG_AVIFILE_LIBS +PKG_GMERLIN_AVDEC_CFLAGS +PKG_GMERLIN_AVDEC_LIBS +PKG_MPEG_CFLAGS +PKG_MPEG_LIBS +PKG_LIBMPEG3_CFLAGS +PKG_LIBMPEG3_LIBS +PKG_LIBQUICKTIME_CFLAGS +PKG_LIBQUICKTIME_LIBS +PKG_LQT_CFLAGS +PKG_LQT_LIBS +PKG_LIBDC1394_2_CFLAGS +PKG_LIBDC1394_2_LIBS +PKG_LIBDV_CFLAGS +PKG_LIBDV_LIBS +PKG_LIBRAW1394_CFLAGS +PKG_LIBRAW1394_LIBS +PKG_LIBIEC61883_CFLAGS +PKG_LIBIEC61883_LIBS +PKG_LIBUNICAP_CFLAGS +PKG_LIBUNICAP_LIBS +PKG_LIBV4L1_CFLAGS +PKG_LIBV4L1_LIBS +PKG_LIBV4L2_CFLAGS +PKG_LIBV4L2_LIBS +PKG_VFW32_CFLAGS +PKG_VFW32_LIBS +PKG_LIBVLC_CFLAGS +PKG_LIBVLC_LIBS +PKG_ASSIMP_CFLAGS +PKG_ASSIMP_LIBS' +ac_subdirs_all='extra +plugins/videoAVT +plugins/videoHALCON +plugins/videoPYLON' + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures Gem 0.93 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + @<:@@S|@ac_default_prefix@:>@ + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + @<:@PREFIX@:>@ + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root @<:@DATAROOTDIR/doc/Gem@:>@ + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +X features: + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of Gem 0.93:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ + --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ + --enable-fast-install@<:@=PKGS@:>@ + optimize for fast installation @<:@default=yes@:>@ + --disable-libtool-lock avoid locking (might break parallel builds) + --disable-mmx disable mmx (MMX-support) + --enable-sse2 enable sse2 (SSE2-support) + --disable-altivec disable altivec (AltiVec-support) + --enable-powerpc enable powerpc (PowerPC specific optimizations) + --disable-pascalstrings disable pascalstrings (containing '\p') + --disable-registerstruct + disable registerstruct (use \"-freg-struct-return\" + (needed for FreeFrame)) + --disable-Controls disable Controls-objects + --disable-Geos disable Geos-objects + --disable-Manips disable Manips-objects + --disable-Nongeos disable Nongeos-objects + --disable-Particles disable Particles-objects + --disable-Pixes disable Pixes-objects + --disable-openGL disable openGL-objects + --enable-Vertex enable Vertex-objects + --disable-threads disable threads (default: use threads) + --enable-fat-binary=ARCHS + build an Apple Multi Architecture Binary (MAB); + ARCHS is a comma-delimited list of architectures for + which to build; if ARCHS is omitted, then the package + will be built for all architectures supported by the + platform (e.g. "ppc,i386" for MacOS/X and Darwin); + if this option is disabled or omitted entirely, then + the package will be built only for the target + platform; when building multiple architectures, + dependency-tracking must be disabled + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use + both@:>@ + --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ + --with-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + --without-ALL en/disable ALL libraries by default + --with-pd= where to find pd-binary (./bin/pd.exe) and + pd-sources + --with-extension= enforce a certain file-extension (e.g. pd_linux) + --with-x use the X Window System + --without-glew disable glew (OpenGL Extension Wrangler library) + --with-glew-includes=/path/to/glew/include/ + include path for glew + --with-glew-libs=/path/to/glew/lib/ + library path for glew + --without-sdl disable sdl (SDL windowing) + --with-sdl-includes=/path/to/sdl/include/ + include path for sdl + --with-sdl-libs=/path/to/sdl/lib/ + library path for sdl + --without-ImageMagick disable ImageMagick (image loader) + --with-ImageMagick-includes=/path/to/ImageMagick/include/ + include path for ImageMagick + --with-ImageMagick-libs=/path/to/ImageMagick/lib/ + library path for ImageMagick + --without-MagickCore disable MagickCore (image loader) + --with-MagickCore-includes=/path/to/MagickCore/include/ + include path for MagickCore + --with-MagickCore-libs=/path/to/MagickCore/lib/ + library path for MagickCore + --without-tiff disable tiff (image loader) + --with-tiff-includes=/path/to/tiff/include/ + include path for tiff + --with-tiff-libs=/path/to/tiff/lib/ + library path for tiff + --without-jpeg disable jpeg (image loader) + --with-jpeg-includes=/path/to/jpeg/include/ + include path for jpeg + --with-jpeg-libs=/path/to/jpeg/lib/ + library path for jpeg + --without-ftgl disable ftgl (font support) + --with-ftgl-includes=/path/to/ftgl/include/ + include path for ftgl + --with-ftgl-libs=/path/to/ftgl/lib/ + library path for ftgl + --without-fribidi disable fribidi (bidrectional text rendering using + FriBidi) + --with-fribidi-includes=/path/to/fribidi/include/ + include path for fribidi + --with-fribidi-libs=/path/to/fribidi/lib/ + library path for fribidi + --without-avifile disable avifile (movie loader) + --with-avifile-includes=/path/to/avifile/include/ + include path for avifile + --with-avifile-libs=/path/to/avifile/lib/ + library path for avifile + --without-gmerlin_avdec disable gmerlin_avdec (movie loader) + --with-gmerlin_avdec-includes=/path/to/gmerlin_avdec/include/ + include path for gmerlin_avdec + --with-gmerlin_avdec-libs=/path/to/gmerlin_avdec/lib/ + library path for gmerlin_avdec + --without-mpeg disable mpeg (movie loader) + --with-mpeg-includes=/path/to/mpeg/include/ + include path for mpeg + --with-mpeg-libs=/path/to/mpeg/lib/ + library path for mpeg + --without-libmpeg3 disable libmpeg3 (movie loader) + --with-libmpeg3-includes=/path/to/libmpeg3/include/ + include path for libmpeg3 + --with-libmpeg3-libs=/path/to/libmpeg3/lib/ + library path for libmpeg3 + --without-libquicktime disable libquicktime (movie loader) + --with-libquicktime-includes=/path/to/libquicktime/include/ + include path for libquicktime + --with-libquicktime-libs=/path/to/libquicktime/lib/ + library path for libquicktime + --without-lqt disable lqt (movie loader) + --with-lqt-includes=/path/to/lqt/include/ + include path for lqt + --with-lqt-libs=/path/to/lqt/lib/ + library path for lqt + --without-libdc1394_2 disable libdc1394_2 (video input) + --with-libdc1394_2-includes=/path/to/libdc1394_2/include/ + include path for libdc1394_2 + --with-libdc1394_2-libs=/path/to/libdc1394_2/lib/ + library path for libdc1394_2 + --without-libdv disable libdv (video input) + --with-libdv-includes=/path/to/libdv/include/ + include path for libdv + --with-libdv-libs=/path/to/libdv/lib/ + library path for libdv + --without-libraw1394 disable libraw1394 (video input) + --with-libraw1394-includes=/path/to/libraw1394/include/ + include path for libraw1394 + --with-libraw1394-libs=/path/to/libraw1394/lib/ + library path for libraw1394 + --without-libiec61883 disable libiec61883 (video input) + --with-libiec61883-includes=/path/to/libiec61883/include/ + include path for libiec61883 + --with-libiec61883-libs=/path/to/libiec61883/lib/ + library path for libiec61883 + --without-unicap disable unicap-lib (video input) + --without-libunicap disable libunicap (video input) + --with-libunicap-includes=/path/to/libunicap/include/ + include path for libunicap + --with-libunicap-libs=/path/to/libunicap/lib/ + library path for libunicap + --without-v4l disable v4l-lib (video input) + --without-libv4l1 disable libv4l1 (video output) + --with-libv4l1-includes=/path/to/libv4l1/include/ + include path for libv4l1 + --with-libv4l1-libs=/path/to/libv4l1/lib/ + library path for libv4l1 + --without-v4l2 disable v4l2-lib (video input) + --without-libv4l2 disable libv4l2 (video input) + --with-libv4l2-includes=/path/to/libv4l2/include/ + include path for libv4l2 + --with-libv4l2-libs=/path/to/libv4l2/lib/ + library path for libv4l2 + --without-vfw32 disable vfw32 (video input) + --with-vfw32-includes=/path/to/vfw32/include/ + include path for vfw32 + --with-vfw32-libs=/path/to/vfw32/lib/ + library path for vfw32 + --without-libvlc disable libvlc (video input) + --with-libvlc-includes=/path/to/libvlc/include/ + include path for libvlc + --with-libvlc-libs=/path/to/libvlc/lib/ + library path for libvlc + --without-assimp disable assimp (3D model loading) + --with-assimp-includes=/path/to/assimp/include/ + include path for assimp + --with-assimp-libs=/path/to/assimp/lib/ + library path for assimp + --with-default-font=vera.ttf + specify the default font for text-rendering + + --with-video=plugins|Darwin|DS|NT + use plugins for video capture or OS-specific + "pix_video" + --with-film=plugins|Darwin + use plugins for video decoding or OS-specific + "pix_film" + --with-defaultwindow=<> specify default window backend (default: auto) + +Some influential environment variables: + CXX C++ compiler command + CXXFLAGS C++ compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + OBJC Objective C compiler command + OBJCFLAGS Objective C compiler flags + OBJCXX Objective C++ compiler command + OBJCXXFLAGS Objective C++ compiler flags + CC C compiler command + CFLAGS C compiler flags + CPP C preprocessor + CXXCPP C++ preprocessor + XMKMF Path to xmkmf, Makefile generator for X Window System + PKG_CONFIG path to pkg-config utility + PKG_GLEW_CFLAGS + C compiler flags for PKG_GLEW, overriding pkg-config + PKG_GLEW_LIBS + linker flags for PKG_GLEW, overriding pkg-config + PKG_SDL_CFLAGS + C compiler flags for PKG_SDL, overriding pkg-config + PKG_SDL_LIBS + linker flags for PKG_SDL, overriding pkg-config + PKG_IMAGEMAGICK___CFLAGS + C compiler flags for PKG_IMAGEMAGICK__, overriding pkg-config + PKG_IMAGEMAGICK___LIBS + linker flags for PKG_IMAGEMAGICK__, overriding pkg-config + PKG_MAGICKCORE_CFLAGS + C compiler flags for PKG_MAGICKCORE, overriding pkg-config + PKG_MAGICKCORE_LIBS + linker flags for PKG_MAGICKCORE, overriding pkg-config + PKG_TIFF_CFLAGS + C compiler flags for PKG_TIFF, overriding pkg-config + PKG_TIFF_LIBS + linker flags for PKG_TIFF, overriding pkg-config + PKG_JPEG_CFLAGS + C compiler flags for PKG_JPEG, overriding pkg-config + PKG_JPEG_LIBS + linker flags for PKG_JPEG, overriding pkg-config + PKG_FTGL_CFLAGS + C compiler flags for PKG_FTGL, overriding pkg-config + PKG_FTGL_LIBS + linker flags for PKG_FTGL, overriding pkg-config + PKG_FRIBIDI_CFLAGS + C compiler flags for PKG_FRIBIDI, overriding pkg-config + PKG_FRIBIDI_LIBS + linker flags for PKG_FRIBIDI, overriding pkg-config + PKG_AVIFILE_CFLAGS + C compiler flags for PKG_AVIFILE, overriding pkg-config + PKG_AVIFILE_LIBS + linker flags for PKG_AVIFILE, overriding pkg-config + PKG_GMERLIN_AVDEC_CFLAGS + C compiler flags for PKG_GMERLIN_AVDEC, overriding pkg-config + PKG_GMERLIN_AVDEC_LIBS + linker flags for PKG_GMERLIN_AVDEC, overriding pkg-config + PKG_MPEG_CFLAGS + C compiler flags for PKG_MPEG, overriding pkg-config + PKG_MPEG_LIBS + linker flags for PKG_MPEG, overriding pkg-config + PKG_LIBMPEG3_CFLAGS + C compiler flags for PKG_LIBMPEG3, overriding pkg-config + PKG_LIBMPEG3_LIBS + linker flags for PKG_LIBMPEG3, overriding pkg-config + PKG_LIBQUICKTIME_CFLAGS + C compiler flags for PKG_LIBQUICKTIME, overriding pkg-config + PKG_LIBQUICKTIME_LIBS + linker flags for PKG_LIBQUICKTIME, overriding pkg-config + PKG_LQT_CFLAGS + C compiler flags for PKG_LQT, overriding pkg-config + PKG_LQT_LIBS + linker flags for PKG_LQT, overriding pkg-config + PKG_LIBDC1394_2_CFLAGS + C compiler flags for PKG_LIBDC1394_2, overriding pkg-config + PKG_LIBDC1394_2_LIBS + linker flags for PKG_LIBDC1394_2, overriding pkg-config + PKG_LIBDV_CFLAGS + C compiler flags for PKG_LIBDV, overriding pkg-config + PKG_LIBDV_LIBS + linker flags for PKG_LIBDV, overriding pkg-config + PKG_LIBRAW1394_CFLAGS + C compiler flags for PKG_LIBRAW1394, overriding pkg-config + PKG_LIBRAW1394_LIBS + linker flags for PKG_LIBRAW1394, overriding pkg-config + PKG_LIBIEC61883_CFLAGS + C compiler flags for PKG_LIBIEC61883, overriding pkg-config + PKG_LIBIEC61883_LIBS + linker flags for PKG_LIBIEC61883, overriding pkg-config + PKG_LIBUNICAP_CFLAGS + C compiler flags for PKG_LIBUNICAP, overriding pkg-config + PKG_LIBUNICAP_LIBS + linker flags for PKG_LIBUNICAP, overriding pkg-config + PKG_LIBV4L1_CFLAGS + C compiler flags for PKG_LIBV4L1, overriding pkg-config + PKG_LIBV4L1_LIBS + linker flags for PKG_LIBV4L1, overriding pkg-config + PKG_LIBV4L2_CFLAGS + C compiler flags for PKG_LIBV4L2, overriding pkg-config + PKG_LIBV4L2_LIBS + linker flags for PKG_LIBV4L2, overriding pkg-config + PKG_VFW32_CFLAGS + C compiler flags for PKG_VFW32, overriding pkg-config + PKG_VFW32_LIBS + linker flags for PKG_VFW32, overriding pkg-config + PKG_LIBVLC_CFLAGS + C compiler flags for PKG_LIBVLC, overriding pkg-config + PKG_LIBVLC_LIBS + linker flags for PKG_LIBVLC, overriding pkg-config + PKG_ASSIMP_CFLAGS + C compiler flags for PKG_ASSIMP, overriding pkg-config + PKG_ASSIMP_LIBS + linker flags for PKG_ASSIMP, overriding pkg-config + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +Gem home page: . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +Gem configure 0.93 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +@%:@ ac_fn_cxx_try_compile LINENO +@%:@ ---------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_compile + +@%:@ ac_fn_objc_try_compile LINENO +@%:@ ----------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_objc_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_objc_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_objc_try_compile + +@%:@ ac_fn_objcxx_try_compile LINENO +@%:@ ------------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_objcxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_objcxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_objcxx_try_compile + +@%:@ ac_fn_c_try_compile LINENO +@%:@ -------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_compile + +@%:@ ac_fn_c_try_link LINENO +@%:@ ----------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_link + +@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists and can be compiled using the include files in +@%:@ INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_compile + +@%:@ ac_fn_c_try_cpp LINENO +@%:@ ---------------------- +@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_cpp + +@%:@ ac_fn_c_try_run LINENO +@%:@ ---------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes +@%:@ that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_run + +@%:@ ac_fn_c_check_func LINENO FUNC VAR +@%:@ ---------------------------------- +@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_func + +@%:@ ac_fn_cxx_try_cpp LINENO +@%:@ ------------------------ +@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_cpp + +@%:@ ac_fn_cxx_try_link LINENO +@%:@ ------------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_link + +@%:@ ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES +@%:@ --------------------------------------------------------- +@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using +@%:@ the include files in INCLUDES and setting the cache variable VAR +@%:@ accordingly. +ac_fn_cxx_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include <$2> +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ------------------------------ ## +## Report this to zmoelnig@iem.at ## +## ------------------------------ ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_cxx_check_header_mongrel + +@%:@ ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES +@%:@ --------------------------------------------------------- +@%:@ Tests whether HEADER exists and can be compiled using the include files in +@%:@ INCLUDES, setting the cache variable VAR accordingly. +ac_fn_cxx_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_cxx_check_header_compile + +@%:@ ac_fn_cxx_check_func LINENO FUNC VAR +@%:@ ------------------------------------ +@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_cxx_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_cxx_check_func + +@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using +@%:@ the include files in INCLUDES and setting the cache variable VAR +@%:@ accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ------------------------------ ## +## Report this to zmoelnig@iem.at ## +## ------------------------------ ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_mongrel + +@%:@ ac_fn_cxx_try_run LINENO +@%:@ ------------------------ +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes +@%:@ that executables *can* be run. +ac_fn_cxx_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_run + +@%:@ ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES +@%:@ --------------------------------------------- +@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache +@%:@ variable VAR accordingly. +ac_fn_cxx_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_cxx_check_type + +@%:@ ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES +@%:@ ---------------------------------------------- +@%:@ Tries to find the compile-time value of EXPR in a program that includes +@%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be +@%:@ computed +ac_fn_cxx_compute_int () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@; +test_array @<:@0@:>@ = 0; +return test_array @<:@0@:>@; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_lo=0 ac_mid=0 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@; +test_array @<:@0@:>@ = 0; +return test_array @<:@0@:>@; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_hi=$ac_mid; break +else + as_fn_arith $ac_mid + 1 && ac_lo=$as_val + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array @<:@1 - 2 * !(($2) < 0)@:>@; +test_array @<:@0@:>@ = 0; +return test_array @<:@0@:>@; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_hi=-1 ac_mid=-1 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@; +test_array @<:@0@:>@ = 0; +return test_array @<:@0@:>@; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_lo=$ac_mid; break +else + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + ac_lo= ac_hi= +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@; +test_array @<:@0@:>@ = 0; +return test_array @<:@0@:>@; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_hi=$ac_mid +else + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in @%:@(( +?*) eval "$3=\$ac_lo"; ac_retval=0 ;; +'') ac_retval=1 ;; +esac + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +static long int longval () { return $2; } +static unsigned long int ulongval () { return $2; } +@%:@include +@%:@include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (($2) < 0) + { + long int i = longval (); + if (i != ($2)) + return 1; + fprintf (f, "%ld", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ($2)) + return 1; + fprintf (f, "%lu", i); + } + /* Do not output a trailing newline, as this causes \r\n confusion + on some platforms. */ + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + echo >>conftest.val; read $3 config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by Gem $as_me 0.93, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in @%:@(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +as_fn_append ac_header_list " stdlib.h" +as_fn_append ac_header_list " unistd.h" +as_fn_append ac_header_list " sys/param.h" +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +am__api_version='1.11' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in @%:@(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='Gem' + VERSION='0.93' + + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + + + +# +ac_config_files="$ac_config_files Makefile abstractions/Makefile" + + +# documentation +ac_config_files="$ac_config_files help/Makefile doc/Makefile examples/Makefile" + + +# src +ac_config_files="$ac_config_files src/Makefile src/Gem/Makefile src/Utils/Makefile" + +ac_config_files="$ac_config_files src/RTE/Makefile src/Base/Makefile src/plugins/Makefile" + +ac_config_files="$ac_config_files src/Output/Makefile" + +ac_config_files="$ac_config_files src/deprecated/Makefile" + + +## plugins that use this autoconf instance for configuration +ac_config_files="$ac_config_files plugins/Makefile" + +ac_config_files="$ac_config_files plugins/imageQT/Makefile" + +ac_config_files="$ac_config_files plugins/imageMAGICK/Makefile" + +ac_config_files="$ac_config_files plugins/imageTIFF/Makefile" + +ac_config_files="$ac_config_files plugins/imageJPEG/Makefile" + +ac_config_files="$ac_config_files plugins/imageSGI/Makefile" + + +ac_config_files="$ac_config_files plugins/filmAVI/Makefile" + +ac_config_files="$ac_config_files plugins/filmAVIPLAY/Makefile" + +ac_config_files="$ac_config_files plugins/filmDS/Makefile" + +ac_config_files="$ac_config_files plugins/filmDarwin/Makefile" + +ac_config_files="$ac_config_files plugins/filmGMERLIN/Makefile" + +ac_config_files="$ac_config_files plugins/filmMPEG1/Makefile" + +ac_config_files="$ac_config_files plugins/filmMPEG3/Makefile" + +ac_config_files="$ac_config_files plugins/filmQT/Makefile" + +ac_config_files="$ac_config_files plugins/filmQT4L/Makefile" + +ac_config_files="$ac_config_files plugins/filmTEST/Makefile" + + +ac_config_files="$ac_config_files plugins/modelOBJ/Makefile" + +ac_config_files="$ac_config_files plugins/modelASSIMP2/Makefile" + + +ac_config_files="$ac_config_files plugins/recordQT/Makefile" + +ac_config_files="$ac_config_files plugins/recordQT4L/Makefile" + +ac_config_files="$ac_config_files plugins/recordV4L/Makefile" + +ac_config_files="$ac_config_files plugins/recordV4L2/Makefile" + + +ac_config_files="$ac_config_files plugins/videoDC1394/Makefile" + +ac_config_files="$ac_config_files plugins/videoDS/Makefile" + +ac_config_files="$ac_config_files plugins/videoDV4L/Makefile" + +ac_config_files="$ac_config_files plugins/videoDarwin/Makefile" + +ac_config_files="$ac_config_files plugins/videoSGI/Makefile" + +ac_config_files="$ac_config_files plugins/videoTEST/Makefile" + +ac_config_files="$ac_config_files plugins/videoUNICAP/Makefile" + +ac_config_files="$ac_config_files plugins/videoV4L/Makefile" + +ac_config_files="$ac_config_files plugins/videoV4L2/Makefile" + +ac_config_files="$ac_config_files plugins/videoVFW/Makefile" + +ac_config_files="$ac_config_files plugins/videoVLC/Makefile" + + +## extra holds additional objects/libraries +# some of them have their own build system +#AC_CONFIG_FILES([extra/Makefile]) +# some do not +ac_config_files="$ac_config_files extra/pix2jpg/Makefile" + + +# other stuff +ac_config_files="$ac_config_files build/Makefile Gem.pc Gem-meta.pd" + + + +########################## + + + +ac_config_headers="$ac_config_headers src/config.h" + + + + + +subdirs="$subdirs extra" + + +if test -d "$srcdir/plugins/videoAVT"; then + subdirs="$subdirs plugins/videoAVT" + +fi +if test -d "$srcdir/plugins/videoHALCON"; then + subdirs="$subdirs plugins/videoHALCON" + +fi +if test -d "$srcdir/plugins/videoPYLON"; then + subdirs="$subdirs plugins/videoPYLON" + +fi + + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +ARCH=$(uname -m) +KERN=$(uname -s) + + + + + + + + + + + + + + + + + + + + + + +# Checks for programs. +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 +$as_echo_n "checking whether the C++ compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C++ compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 +$as_echo_n "checking for C++ compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C++ compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +@%:@ Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CXX_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + +ac_ext=m +ac_cpp='$OBJCPP $CPPFLAGS' +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_objc_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in gcc objcc objc cc CC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJC"; then + ac_cv_prog_OBJC="$OBJC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJC=$ac_cv_prog_OBJC +if test -n "$OBJC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 +$as_echo "$OBJC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$OBJC" && break + done +fi +if test -z "$OBJC"; then + ac_ct_OBJC=$OBJC + for ac_prog in gcc objcc objc cc CC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJC"; then + ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC +if test -n "$ac_ct_OBJC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 +$as_echo "$ac_ct_OBJC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_OBJC" && break +done + + if test "x$ac_ct_OBJC" = x; then + OBJC="gcc" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJC=$ac_ct_OBJC + fi +fi + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 +$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } +if ${ac_cv_objc_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_objc_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 +$as_echo "$ac_cv_objc_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GOBJC=yes +else + GOBJC= +fi +ac_test_OBJCFLAGS=${OBJCFLAGS+set} +ac_save_OBJCFLAGS=$OBJCFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 +$as_echo_n "checking whether $OBJC accepts -g... " >&6; } +if ${ac_cv_prog_objc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_objc_werror_flag=$ac_objc_werror_flag + ac_objc_werror_flag=yes + ac_cv_prog_objc_g=no + OBJCFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + ac_cv_prog_objc_g=yes +else + OBJCFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + +else + ac_objc_werror_flag=$ac_save_objc_werror_flag + OBJCFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + ac_cv_prog_objc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_objc_werror_flag=$ac_save_objc_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 +$as_echo "$ac_cv_prog_objc_g" >&6; } +if test "$ac_test_OBJCFLAGS" = set; then + OBJCFLAGS=$ac_save_OBJCFLAGS +elif test $ac_cv_prog_objc_g = yes; then + if test "$GOBJC" = yes; then + OBJCFLAGS="-g -O2" + else + OBJCFLAGS="-g" + fi +else + if test "$GOBJC" = yes; then + OBJCFLAGS="-O2" + else + OBJCFLAGS= + fi +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +depcc="$OBJC" am_compiler_list='gcc3 gcc' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_OBJC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_OBJC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_OBJC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_OBJC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } +OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then + am__fastdepOBJC_TRUE= + am__fastdepOBJC_FALSE='#' +else + am__fastdepOBJC_TRUE='#' + am__fastdepOBJC_FALSE= +fi + + +ac_ext=mm +ac_cpp='$OBJCXXCPP $CPPFLAGS' +ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in g++ objc++ objcxx c++ CXX + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJCXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJCXX"; then + ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJCXX=$ac_cv_prog_OBJCXX +if test -n "$OBJCXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 +$as_echo "$OBJCXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$OBJCXX" && break + done +fi +if test -z "$OBJCXX"; then + ac_ct_OBJCXX=$OBJCXX + for ac_prog in g++ objc++ objcxx c++ CXX +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJCXX"; then + ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJCXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX +if test -n "$ac_ct_OBJCXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 +$as_echo "$ac_ct_OBJCXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_OBJCXX" && break +done + + if test "x$ac_ct_OBJCXX" = x; then + OBJCXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJCXX=$ac_ct_OBJCXX + fi +fi + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } +if ${ac_cv_objcxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 +$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GOBJCXX=yes +else + GOBJCXX= +fi +ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} +ac_save_OBJCXXFLAGS=$OBJCXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 +$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } +if ${ac_cv_prog_objcxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag + ac_objcxx_werror_flag=yes + ac_cv_prog_objcxx_g=no + OBJCXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + ac_cv_prog_objcxx_g=yes +else + OBJCXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + +else + ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag + OBJCXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + ac_cv_prog_objcxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_objcxx_werror_flag=$ac_save_objcx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 +$as_echo "$ac_cv_prog_objcxx_g" >&6; } +if test "$ac_test_OBJCXXFLAGS" = set; then + OBJCXXFLAGS=$ac_save_OBJCXXFLAGS +elif test $ac_cv_prog_objcxx_g = yes; then + if test "$GOBJCXX" = yes; then + OBJCXXFLAGS="-g -O2" + else + OBJCXXFLAGS="-g" + fi +else + if test "$GOBJCXX" = yes; then + OBJCXXFLAGS="-O2" + else + OBJCXXFLAGS= + fi +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AS="${ac_tool_prefix}as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +$as_echo "$AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AS="as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +$as_echo "$ac_ct_AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + + ;; +esac + +test -z "$AS" && AS=as + + + + + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + + +macro_version='2.4.2' +macro_revision='1.3337' + + + + + + + + + + + + + +ltmain="$ac_aux_dir/ltmain.sh" + +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +$as_echo_n "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case "$ECHO" in + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +$as_echo "printf" >&6; } ;; + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +$as_echo "print -r" >&6; } ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +$as_echo "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $@%:@ != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if ${ac_cv_path_FGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_FGREP" || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +@%:@ Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if ${lt_cv_nm_interface+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 +$as_echo "$xsi_shell" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +lt_shell_append=no +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 +$as_echo "$lt_shell_append" >&6; } + + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } +if ${lt_cv_to_host_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac + +fi + +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +$as_echo "$lt_cv_to_host_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } +if ${lt_cv_to_tool_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + #assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac + +fi + +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test "$GCC" != yes; then + reload_cmds=false + fi + ;; + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + + + + + + + + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + + + + + + + + +if test -n "$ac_tool_prefix"; then + for ac_prog in ar + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +fi + +: ${AR=ar} +: ${AR_FLAGS=cru} + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +$as_echo_n "checking for archiver @FILE support... " >&6; } +if ${lt_cv_ar_at_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ar_at_file=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +$as_echo "$lt_cv_ar_at_file" >&6; } + +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +test -z "$STRIP" && STRIP=: + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +test -z "$RANLIB" && RANLIB=: + + + + + + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT@&t@_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT@&t@_DLSYM_CONST +#else +# define LT@&t@_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT@&t@_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + +@%:@ Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then : + withval=$with_sysroot; +else + with_sysroot=no +fi + + +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +$as_echo "${with_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +$as_echo "${lt_sysroot:-no}" >&6; } + + + + + + +@%:@ Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD="${LD-ld}_sol2" + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. +set dummy ${ac_tool_prefix}mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MANIFEST_TOOL"; then + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL +if test -n "$MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +$as_echo "$MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL + # Extract the first word of "mt", so it can be a program name with args. +set dummy mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MANIFEST_TOOL"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL +if test -n "$ac_ct_MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MANIFEST_TOOL" = x; then + MANIFEST_TOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL + fi +else + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" +fi + +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if ${lt_cv_path_mainfest_tool+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&5 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +$as_echo "$lt_cv_path_mainfest_tool" >&6; } +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi + + + + + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi +else + OTOOL="$ac_cv_prog_OTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&5 + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test $_lt_result -eq 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +$as_echo_n "checking for -force_load linker flag... " >&6; } +if ${lt_cv_ld_force_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 + echo "$AR cru libconftest.a conftest.o" >&5 + $AR cru libconftest.a conftest.o 2>&5 + echo "$RANLIB libconftest.a" >&5 + $RANLIB libconftest.a 2>&5 + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&5 + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&5 + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +$as_echo "$lt_cv_ld_force_load" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + + +func_stripname_cnf () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname_cnf + + + + + +# Set options + + + + enable_dlopen=no + + + + @%:@ Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + + + + + + + + + @%:@ Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +@%:@ Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for lt_pkg in $withval; do + IFS="$lt_save_ifs" + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + pic_mode=default +fi + + +test -z "$pic_mode" && pic_mode=default + + + + + + + + @%:@ Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +cat >>confdefs.h <<_ACEOF +@%:@define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +# Use C for the default configuration in the libtool script + +lt_save_CC="$CC" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + case $cc_basename in + nvcc*) + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; + *) + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + + + + + + + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + + + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + lt_prog_compiler_wl='-Xlinker ' + if test -n "$lt_prog_compiler_pic"; then + lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + *Sun\ F* | *Sun*Fortran*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Intel*\ [CF]*Compiler*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + *Portland\ Group*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +$as_echo "$lt_cv_prog_compiler_pic" >&6; } +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi + + + + + + + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs=no + ;; + esac + + ld_shlibs=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; + *\ \(GNU\ Binutils\)\ [3-9]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + export_dynamic_flag_spec='${wl}--export-all-symbols' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs=yes + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='${wl}-f,' + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + link_all_deplibs=no + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + fi + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + always_export_symbols=yes + file_list_spec='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' + enable_shared_with_static_runtimes=yes + exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + old_postinstall_cmds='chmod 644 $oldlib' + postlink_cmds='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + enable_shared_with_static_runtimes=yes + ;; + esac + ;; + + darwin* | rhapsody*) + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec='' + fi + link_all_deplibs=yes + allow_undefined_flag="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + + else + ld_shlibs=no + fi + + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +$as_echo_n "checking if $CC understands -b... " >&6; } +if ${lt_cv_prog_compiler__b+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler__b=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -b" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler__b=yes + fi + else + lt_cv_prog_compiler__b=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +$as_echo "$lt_cv_prog_compiler__b" >&6; } + +if test x"$lt_cv_prog_compiler__b" = xyes; then + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' +else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' +fi + + ;; + esac + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if ${lt_cv_irix_exported_symbol+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (void) { return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_irix_exported_symbol=yes +else + lt_cv_irix_exported_symbol=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +$as_echo "$lt_cv_irix_exported_symbol" >&6; } + if test "$lt_cv_irix_exported_symbol" = yes; then + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='${wl}-Blargedynsym' + ;; + esac + fi + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no + +with_gnu_ld=$with_gnu_ld + + + + + + + + + + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([A-Za-z]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink || + test "$inherit_rpath" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + + + + + + + + + + + + + + + + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + + + + + + + + + + + + + # Report which library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + + + + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +CC="$lt_save_CC" + + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +else + _lt_caught_CXX_error=yes +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +compiler_needs_object_CXX=no +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_direct_absolute_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +inherit_rpath_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +reload_flag_CXX=$reload_flag +reload_cmds_CXX=$reload_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + + # save warnings/boilerplate of simple test code + ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + + ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + compiler_CXX=$CC + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' + else + lt_prog_compiler_no_builtin_flag_CXX= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + + +@%:@ Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + ld_shlibs_CXX=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + file_list_spec_CXX='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec_CXX='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + fi + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec_CXX=' ' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=yes + file_list_spec_CXX='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' + enable_shared_with_static_runtimes_CXX=yes + # Don't use ranlib + old_postinstall_cmds_CXX='chmod 644 $oldlib' + postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + + + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec_CXX='' + fi + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + + else + ld_shlibs_CXX=no + fi + + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + freebsd2.*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + ld_shlibs_CXX=no + ;; + + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + + haiku*) + archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs_CXX=yes + ;; + + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + inherit_rpath_CXX=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [1-5].* | *pgcpp\ [1-5].*) + prelink_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + old_archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object_CXX=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + ld_shlibs_CXX=yes + ;; + + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + hardcode_direct_absolute_CXX=yes + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + ld_shlibs_CXX=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + case $host in + osf3*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + ;; + *) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + ;; + esac + + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ + '"$old_archive_cmds_CXX" + reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ + '"$reload_cmds_CXX" + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } + test "$ld_shlibs_CXX" = no && can_build_shared=no + + GCC_CXX="$GXX" + LD_CXX="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + # Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= + +cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF + + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; +esac + +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case ${prev}${p} in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test "$pre_test_object_deps_done" = no; then + case ${prev} in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC* | sunCC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac + + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + compiler_lib_search_dirs_CXX= +if test -n "${compiler_lib_search_path_CXX}"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic_CXX='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-qpic' + lt_prog_compiler_static_CXX='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd* | netbsdelf*-gnu) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } +lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : +else + lt_prog_compiler_static_CXX= +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global defined + # symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) + exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + ;; + esac + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs_CXX=no + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +with_gnu_ld_CXX=$with_gnu_ld + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc_CXX=no + else + lt_cv_archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } + archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || + test -n "$runpath_var_CXX" || + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } + +if test "$hardcode_action_CXX" = relink || + test "$inherit_rpath_CXX" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + + + + + + + + + + + + + ac_config_commands="$ac_config_commands libtool" + + + + +# Only expand once: + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + + + +@%:@ Check whether --with-ALL was given. +if test "${with_ALL+set}" = set; then : + withval=$with_ALL; +fi + + + + + +ARCH=$(uname -m) +KERN=$(uname -s) + + + +LINUX=no +ANDROID=no +MACOSX=no +IPHONEOS=no +BSD=no +WINDOWS=no +MINGW=no +CYGWIN=no +HURD=no +IRIX=no + +case $host_os in +*linux*) + LINUX=yes + ;; +*darwin*) + MACOSX=yes + ;; +GNU/kFreeBSD) + BSD=yes + ;; +*mingw*) + WINDOWS=yes + MINGW=yes + ;; +*cygwin*) + WINDOWS=yes + CYGWIN=yes + ;; +GNU) + HURD=yes + ;; +esac + + + if test x$LINUX = xyes; then + LINUX_TRUE= + LINUX_FALSE='#' +else + LINUX_TRUE='#' + LINUX_FALSE= +fi + + if test x$ANDROID = xyes; then + ANDROID_TRUE= + ANDROID_FALSE='#' +else + ANDROID_TRUE='#' + ANDROID_FALSE= +fi + + if test x$MACOSX = xyes; then + MACOSX_TRUE= + MACOSX_FALSE='#' +else + MACOSX_TRUE='#' + MACOSX_FALSE= +fi + + if test x$IPHONEOS = xyes; then + IPHONEOS_TRUE= + IPHONEOS_FALSE='#' +else + IPHONEOS_TRUE='#' + IPHONEOS_FALSE= +fi + + if test x$BSD = xyes; then + BSD_TRUE= + BSD_FALSE='#' +else + BSD_TRUE='#' + BSD_FALSE= +fi + + if test x$WINDOWS = xyes; then + WINDOWS_TRUE= + WINDOWS_FALSE='#' +else + WINDOWS_TRUE='#' + WINDOWS_FALSE= +fi + + if test x$CYGWIN = xyes; then + CYGWIN_TRUE= + CYGWIN_FALSE='#' +else + CYGWIN_TRUE='#' + CYGWIN_FALSE= +fi + + if test x$MINGW = xyes; then + MINGW_TRUE= + MINGW_FALSE='#' +else + MINGW_TRUE='#' + MINGW_FALSE= +fi + + if test x$HURD = xyes; then + HURD_TRUE= + HURD_FALSE='#' +else + HURD_TRUE='#' + HURD_FALSE= +fi + + if test x$IRIX = xyes; then + IRIX_TRUE= + IRIX_FALSE='#' +else + IRIX_TRUE='#' + IRIX_FALSE= +fi + + + + + + + +if test "x${libdir}" = "x\${exec_prefix}/lib"; then + libdir='${exec_prefix}/lib/pd/extra' +fi + +tmp_rte_cppflags="$CPPFLAGS" +tmp_rte_cflags="$CFLAGS" +tmp_rte_cxxflags="$CXXFLAGS" +tmp_rte_ldflags="$LDFLAGS" +tmp_rte_libs="$LIBS" + +GEM_RTE_CFLAGS="-DPD" +GEM_RTE_LIBS="" +GEM_RTE="Pure Data" + + +@%:@ Check whether --with-pd was given. +if test "${with_pd+set}" = set; then : + withval=$with_pd; +fi + + +## some default paths +if test "x${with_pd}" = "x"; then + case $host_os in + *darwin*) + if test -d "/Applications/Pd-extended.app/Contents/Resources"; then with_pd="/Applications/Pd-extended.app/Contents/Resources"; fi + if test -d "/Applications/Pd.app/Contents/Resources"; then with_pd="/Applications/Pd.app/Contents/Resources"; fi + ;; + *mingw* | *cygwin*) + if test -d "${PROGRAMFILES}/Pd-extended"; then with_pd="${PROGRAMFILES}/Pd-extended"; fi + if test -d "${PROGRAMFILES}/pd"; then with_pd="${PROGRAMFILES}/pd"; fi + ;; + esac +fi + +if test -d "$with_pd" ; then + if test -d "${with_pd}/src" ; then + + for element in "-I${with_pd}/src"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + elif test -d "${with_pd}/include/pd" ; then + + for element in "-I${with_pd}/include/pd"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + elif test -d "${with_pd}/include" ; then + + for element in "-I${with_pd}/include"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + else + + for element in "-I${with_pd}"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + fi + if test -d "${with_pd}/bin" ; then + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-L${with_pd}/bin" + else + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-L${with_pd}" + fi + + CPPFLAGS="$CPPFLAGS ${GEM_RTE_CFLAGS}" + CFLAGS="$CFLAGS ${GEM_RTE_CFLAGS}" + CXXFLAGS="$CXXFLAGS ${GEM_RTE_CFLAGS}" + LIBS="$LIBS ${GEM_RTE_LIBS}" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nullfn in -l:pd.dll" >&5 +$as_echo_n "checking for nullfn in -l:pd.dll... " >&6; } +if ${ac_cv_lib__pd_dll_nullfn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l:pd.dll $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char nullfn (); +int +main () +{ +return nullfn (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib__pd_dll_nullfn=yes +else + ac_cv_lib__pd_dll_nullfn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib__pd_dll_nullfn" >&5 +$as_echo "$ac_cv_lib__pd_dll_nullfn" >&6; } +if test "x$ac_cv_lib__pd_dll_nullfn" = xyes; then : + have_pddll="yes" +else + have_pddll="no" +fi + +if test "x$have_pddll" = "xyes"; then + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-Xlinker -l:pd.dll" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nullfn in -lpd" >&5 +$as_echo_n "checking for nullfn in -lpd... " >&6; } +if ${ac_cv_lib_pd_nullfn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char nullfn (); +int +main () +{ +return nullfn (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_pd_nullfn=yes +else + ac_cv_lib_pd_nullfn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pd_nullfn" >&5 +$as_echo "$ac_cv_lib_pd_nullfn" >&6; } +if test "x$ac_cv_lib_pd_nullfn" = xyes; then : + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-lpd" +fi + +fi + +for ac_header in m_pd.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "m_pd.h" "ac_cv_header_m_pd_h" "$ac_includes_default" +if test "x$ac_cv_header_m_pd_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_M_PD_H 1 +_ACEOF + have_pd="yes" +else + have_pd="no" +fi + +done + + +for ac_header in s_stuff.h +do : + ac_fn_cxx_check_header_compile "$LINENO" "s_stuff.h" "ac_cv_header_s_stuff_h" "#ifdef HAVE_M_PD_H +# define PD +# include \"m_pd.h\" +#endif + +" +if test "x$ac_cv_header_s_stuff_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_S_STUFF_H 1 +_ACEOF + +fi + +done + + +### this should only be set if Pd has been found +# the extension + +@%:@ Check whether --with-extension was given. +if test "${with_extension+set}" = set; then : + withval=$with_extension; +fi + +if test "x$with_extension" != "x"; then + EXT=$with_extension +else + case x$host_os in + x*darwin*) + EXT=pd_darwin + ;; + x*mingw* | x*cygwin*) + EXT=dll + ;; + x) + EXT="pd_linux" + ;; + *) + EXT=pd_`echo $host_os | sed -e '/.*/s/-.*//' -e 's/\..*//'` + ;; + esac +fi +GEM_RTE_EXTENSION=$EXT + + +CPPFLAGS="$tmp_rte_cppflags" +CFLAGS="$tmp_rte_cflags" +CXXFLAGS="$tmp_rte_cxxflags" +LDFLAGS="$tmp_rte_ldflags" +LIBS="$tmp_rte_libs" + + + + + + + + + + + + +GEM_CPPFLAGS="-DGEM_INTERNAL" + +if test "x$have_pddll" = "xyes"; then + GEM_EXTERNAL_LIBS="${GEM_EXTERNAL_LIBS}${GEM_EXTERNAL_LIBS:+ }-Xlinker -l:Gem.dll" +fi + +@%:@ Check whether --enable-mmx was given. +if test "${enable_mmx+set}" = set; then : + enableval=$enable_mmx; +else + + if test "x" != "x"; then enable_mmx="yes"; fi + +fi + + +@%:@ Check whether --enable-sse2 was given. +if test "${enable_sse2+set}" = set; then : + enableval=$enable_sse2; +else + + if test "x" != "x"; then enable_sse2="no"; fi + +fi + + +@%:@ Check whether --enable-altivec was given. +if test "${enable_altivec+set}" = set; then : + enableval=$enable_altivec; +else + + if test "x" != "x"; then enable_altivec="yes"; fi + +fi + + +@%:@ Check whether --enable-powerpc was given. +if test "${enable_powerpc+set}" = set; then : + enableval=$enable_powerpc; +else + + if test "x" != "x"; then enable_powerpc="no"; fi + +fi + + + +@%:@ Check whether --enable-pascalstrings was given. +if test "${enable_pascalstrings+set}" = set; then : + enableval=$enable_pascalstrings; +else + + if test "x" != "x"; then enable_pascalstrings="yes"; fi + +fi + + + +@%:@ Check whether --enable-registerstruct was given. +if test "${enable_registerstruct+set}" = set; then : + enableval=$enable_registerstruct; +else + + if test "xforce" != "x"; then enable_registerstruct="yes"; fi + +fi + + + + + + +ac_config_files="$ac_config_files src/Controls/Makefile" + + +@%:@ Check whether --enable-Controls was given. +if test "${enable_Controls+set}" = set; then : + enableval=$enable_Controls; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Controls-objects" >&5 +$as_echo "building Gem with Controls-objects" >&6; } + target_CONTROLS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Controls-objects" >&5 +$as_echo "building Gem without Controls-objects" >&6; } + target_CONTROLS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Controls-objects" >&5 +$as_echo "building Gem with Controls-objects" >&6; } + target_CONTROLS="yes" + +fi + + if test "x$target_CONTROLS" != "xno"; then + TARGET_CONTROLS_TRUE= + TARGET_CONTROLS_FALSE='#' +else + TARGET_CONTROLS_TRUE='#' + TARGET_CONTROLS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Geos/Makefile" + + +@%:@ Check whether --enable-Geos was given. +if test "${enable_Geos+set}" = set; then : + enableval=$enable_Geos; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Geos-objects" >&5 +$as_echo "building Gem with Geos-objects" >&6; } + target_GEOS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Geos-objects" >&5 +$as_echo "building Gem without Geos-objects" >&6; } + target_GEOS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Geos-objects" >&5 +$as_echo "building Gem with Geos-objects" >&6; } + target_GEOS="yes" + +fi + + if test "x$target_GEOS" != "xno"; then + TARGET_GEOS_TRUE= + TARGET_GEOS_FALSE='#' +else + TARGET_GEOS_TRUE='#' + TARGET_GEOS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Manips/Makefile" + + +@%:@ Check whether --enable-Manips was given. +if test "${enable_Manips+set}" = set; then : + enableval=$enable_Manips; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Manips-objects" >&5 +$as_echo "building Gem with Manips-objects" >&6; } + target_MANIPS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Manips-objects" >&5 +$as_echo "building Gem without Manips-objects" >&6; } + target_MANIPS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Manips-objects" >&5 +$as_echo "building Gem with Manips-objects" >&6; } + target_MANIPS="yes" + +fi + + if test "x$target_MANIPS" != "xno"; then + TARGET_MANIPS_TRUE= + TARGET_MANIPS_FALSE='#' +else + TARGET_MANIPS_TRUE='#' + TARGET_MANIPS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Nongeos/Makefile" + + +@%:@ Check whether --enable-Nongeos was given. +if test "${enable_Nongeos+set}" = set; then : + enableval=$enable_Nongeos; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Nongeos-objects" >&5 +$as_echo "building Gem with Nongeos-objects" >&6; } + target_NONGEOS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Nongeos-objects" >&5 +$as_echo "building Gem without Nongeos-objects" >&6; } + target_NONGEOS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Nongeos-objects" >&5 +$as_echo "building Gem with Nongeos-objects" >&6; } + target_NONGEOS="yes" + +fi + + if test "x$target_NONGEOS" != "xno"; then + TARGET_NONGEOS_TRUE= + TARGET_NONGEOS_FALSE='#' +else + TARGET_NONGEOS_TRUE='#' + TARGET_NONGEOS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Particles/Makefile" + + +@%:@ Check whether --enable-Particles was given. +if test "${enable_Particles+set}" = set; then : + enableval=$enable_Particles; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Particles-objects" >&5 +$as_echo "building Gem with Particles-objects" >&6; } + target_PARTICLES="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Particles-objects" >&5 +$as_echo "building Gem without Particles-objects" >&6; } + target_PARTICLES="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Particles-objects" >&5 +$as_echo "building Gem with Particles-objects" >&6; } + target_PARTICLES="yes" + +fi + + if test "x$target_PARTICLES" != "xno"; then + TARGET_PARTICLES_TRUE= + TARGET_PARTICLES_FALSE='#' +else + TARGET_PARTICLES_TRUE='#' + TARGET_PARTICLES_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Pixes/Makefile" + + +@%:@ Check whether --enable-Pixes was given. +if test "${enable_Pixes+set}" = set; then : + enableval=$enable_Pixes; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Pixes-objects" >&5 +$as_echo "building Gem with Pixes-objects" >&6; } + target_PIXES="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Pixes-objects" >&5 +$as_echo "building Gem without Pixes-objects" >&6; } + target_PIXES="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Pixes-objects" >&5 +$as_echo "building Gem with Pixes-objects" >&6; } + target_PIXES="yes" + +fi + + if test "x$target_PIXES" != "xno"; then + TARGET_PIXES_TRUE= + TARGET_PIXES_FALSE='#' +else + TARGET_PIXES_TRUE='#' + TARGET_PIXES_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/openGL/Makefile" + + +@%:@ Check whether --enable-openGL was given. +if test "${enable_openGL+set}" = set; then : + enableval=$enable_openGL; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with openGL-objects" >&5 +$as_echo "building Gem with openGL-objects" >&6; } + target_OPENGL="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without openGL-objects" >&5 +$as_echo "building Gem without openGL-objects" >&6; } + target_OPENGL="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with openGL-objects" >&5 +$as_echo "building Gem with openGL-objects" >&6; } + target_OPENGL="yes" + +fi + + if test "x$target_OPENGL" != "xno"; then + TARGET_OPENGL_TRUE= + TARGET_OPENGL_FALSE='#' +else + TARGET_OPENGL_TRUE='#' + TARGET_OPENGL_FALSE= +fi + + + + + + +ac_config_files="$ac_config_files src/Vertex/Makefile" + +@%:@ Check whether --enable-Vertex was given. +if test "${enable_Vertex+set}" = set; then : + enableval=$enable_Vertex; + if test "x$enableval" != "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Vertex-objects" >&5 +$as_echo "building Gem without Vertex-objects" >&6; } + target_VERTEX="no" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Vertex-objects" >&5 +$as_echo "building Gem with Vertex-objects" >&6; } + target_VERTEX="yes" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Vertex-objects" >&5 +$as_echo "building Gem without Vertex-objects" >&6; } + target_VERTEX="no" + +fi + + if test "x$target_VERTEX" != "xno"; then + TARGET_VERTEX_TRUE= + TARGET_VERTEX_FALSE='#' +else + TARGET_VERTEX_TRUE='#' + TARGET_VERTEX_FALSE= +fi + + + + +# Checks for libraries. + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 +$as_echo_n "checking for sin in -lm... " >&6; } +if ${ac_cv_lib_m_sin+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sin (); +int +main () +{ +return sin (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_m_sin=yes +else + ac_cv_lib_m_sin=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 +$as_echo "$ac_cv_lib_m_sin" >&6; } +if test "x$ac_cv_lib_m_sin" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBM 1 +_ACEOF + + LIBS="-lm $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5 +$as_echo_n "checking for main in -lz... " >&6; } +if ${ac_cv_lib_z_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_z_main=yes +else + ac_cv_lib_z_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5 +$as_echo "$ac_cv_lib_z_main" >&6; } +if test "x$ac_cv_lib_z_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBZ 1 +_ACEOF + + LIBS="-lz $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBDL 1 +_ACEOF + + LIBS="-ldl $LIBS" + +fi + + +# w32 compatibility library +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lOLDNAMES" >&5 +$as_echo_n "checking for close in -lOLDNAMES... " >&6; } +if ${ac_cv_lib_OLDNAMES_close+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lOLDNAMES $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char close (); +int +main () +{ +return close (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_OLDNAMES_close=yes +else + ac_cv_lib_OLDNAMES_close=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OLDNAMES_close" >&5 +$as_echo "$ac_cv_lib_OLDNAMES_close" >&6; } +if test "x$ac_cv_lib_OLDNAMES_close" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBOLDNAMES 1 +_ACEOF + + LIBS="-lOLDNAMES $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lcoldname" >&5 +$as_echo_n "checking for close in -lcoldname... " >&6; } +if ${ac_cv_lib_coldname_close+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcoldname $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char close (); +int +main () +{ +return close (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_coldname_close=yes +else + ac_cv_lib_coldname_close=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_coldname_close" >&5 +$as_echo "$ac_cv_lib_coldname_close" >&6; } +if test "x$ac_cv_lib_coldname_close" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBCOLDNAME 1 +_ACEOF + + LIBS="-lcoldname $LIBS" + +fi + +# Standard C++ Libray: +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llibcpmt" >&5 +$as_echo_n "checking for main in -llibcpmt... " >&6; } +if ${ac_cv_lib_libcpmt_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-llibcpmt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_libcpmt_main=yes +else + ac_cv_lib_libcpmt_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_libcpmt_main" >&5 +$as_echo "$ac_cv_lib_libcpmt_main" >&6; } +if test "x$ac_cv_lib_libcpmt_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBCPMT 1 +_ACEOF + + LIBS="-llibcpmt $LIBS" + +fi + +# C runtime library: +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose in -lmsvcrt" >&5 +$as_echo_n "checking for fclose in -lmsvcrt... " >&6; } +if ${ac_cv_lib_msvcrt_fclose+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmsvcrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char fclose (); +int +main () +{ +return fclose (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_msvcrt_fclose=yes +else + ac_cv_lib_msvcrt_fclose=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msvcrt_fclose" >&5 +$as_echo "$ac_cv_lib_msvcrt_fclose" >&6; } +if test "x$ac_cv_lib_msvcrt_fclose" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMSVCRT 1 +_ACEOF + + LIBS="-lmsvcrt $LIBS" + +fi + +# Standard C++ Libray: +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmsvcprt" >&5 +$as_echo_n "checking for main in -lmsvcprt... " >&6; } +if ${ac_cv_lib_msvcprt_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmsvcprt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_msvcprt_main=yes +else + ac_cv_lib_msvcprt_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msvcprt_main" >&5 +$as_echo "$ac_cv_lib_msvcprt_main" >&6; } +if test "x$ac_cv_lib_msvcprt_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMSVCPRT 1 +_ACEOF + + LIBS="-lmsvcprt $LIBS" + +fi + +# Winsock Library +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 +$as_echo_n "checking for main in -lws2_32... " >&6; } +if ${ac_cv_lib_ws2_32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lws2_32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ws2_32_main=yes +else + ac_cv_lib_ws2_32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 +$as_echo "$ac_cv_lib_ws2_32_main" >&6; } +if test "x$ac_cv_lib_ws2_32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBWS2_32 1 +_ACEOF + + LIBS="-lws2_32 $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwsock32" >&5 +$as_echo_n "checking for main in -lwsock32... " >&6; } +if ${ac_cv_lib_wsock32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lwsock32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_wsock32_main=yes +else + ac_cv_lib_wsock32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_main" >&5 +$as_echo "$ac_cv_lib_wsock32_main" >&6; } +if test "x$ac_cv_lib_wsock32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBWSOCK32 1 +_ACEOF + + LIBS="-lwsock32 $LIBS" + +fi + + +# w32 window creating +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5 +$as_echo_n "checking for main in -lgdi32... " >&6; } +if ${ac_cv_lib_gdi32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgdi32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_gdi32_main=yes +else + ac_cv_lib_gdi32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5 +$as_echo "$ac_cv_lib_gdi32_main" >&6; } +if test "x$ac_cv_lib_gdi32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGDI32 1 +_ACEOF + + LIBS="-lgdi32 $LIBS" + +fi + + + +## on OSX X shouldn't be used by default as there are other ways +## however, if people really want it ("--with-x") they should get it +if test "x$KERN" = "xDarwin"; then + if test "x$with_x" = "x"; then + with_x="no" + fi +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 +$as_echo_n "checking for X... " >&6; } + + +@%:@ Check whether --with-x was given. +if test "${with_x+set}" = set; then : + withval=$with_x; +fi + +# $have_x is `yes', `no', `disabled', or empty when we do not yet know. +if test "x$with_x" = xno; then + # The user explicitly disabled X. + have_x=disabled +else + case $x_includes,$x_libraries in #( + *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( + *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : + $as_echo_n "(cached) " >&6 +else + # One or both of the vars are not set, and there is no cached value. +ac_x_includes=no ac_x_libraries=no +rm -f -r conftest.dir +if mkdir conftest.dir; then + cd conftest.dir + cat >Imakefile <<'_ACEOF' +incroot: + @echo incroot='${INCROOT}' +usrlibdir: + @echo usrlibdir='${USRLIBDIR}' +libdir: + @echo libdir='${LIBDIR}' +_ACEOF + if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then + # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. + for ac_var in incroot usrlibdir libdir; do + eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" + done + # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. + for ac_extension in a so sl dylib la dll; do + if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && + test -f "$ac_im_libdir/libX11.$ac_extension"; then + ac_im_usrlibdir=$ac_im_libdir; break + fi + done + # Screen out bogus values from the imake configuration. They are + # bogus both because they are the default anyway, and because + # using them would break gcc on systems where it needs fixed includes. + case $ac_im_incroot in + /usr/include) ac_x_includes= ;; + *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; + esac + case $ac_im_usrlibdir in + /usr/lib | /usr/lib64 | /lib | /lib64) ;; + *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; + esac + fi + cd .. + rm -f -r conftest.dir +fi + +# Standard set of common directories for X headers. +# Check X11 before X11Rn because it is often a symlink to the current release. +ac_x_header_dirs=' +/usr/X11/include +/usr/X11R7/include +/usr/X11R6/include +/usr/X11R5/include +/usr/X11R4/include + +/usr/include/X11 +/usr/include/X11R7 +/usr/include/X11R6 +/usr/include/X11R5 +/usr/include/X11R4 + +/usr/local/X11/include +/usr/local/X11R7/include +/usr/local/X11R6/include +/usr/local/X11R5/include +/usr/local/X11R4/include + +/usr/local/include/X11 +/usr/local/include/X11R7 +/usr/local/include/X11R6 +/usr/local/include/X11R5 +/usr/local/include/X11R4 + +/usr/X386/include +/usr/x386/include +/usr/XFree86/include/X11 + +/usr/include +/usr/local/include +/usr/unsupported/include +/usr/athena/include +/usr/local/x11r5/include +/usr/lpp/Xamples/include + +/usr/openwin/include +/usr/openwin/share/include' + +if test "$ac_x_includes" = no; then + # Guess where to find include files, by looking for Xlib.h. + # First, try using that file with no special directory specified. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # We can compile using X headers with no special include directory. +ac_x_includes= +else + for ac_dir in $ac_x_header_dirs; do + if test -r "$ac_dir/X11/Xlib.h"; then + ac_x_includes=$ac_dir + break + fi +done +fi +rm -f conftest.err conftest.i conftest.$ac_ext +fi # $ac_x_includes = no + +if test "$ac_x_libraries" = no; then + # Check for the libraries. + # See if we find them without any special options. + # Don't add to $LIBS permanently. + ac_save_LIBS=$LIBS + LIBS="-lX11 $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +int +main () +{ +XrmInitialize () + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + LIBS=$ac_save_LIBS +# We can link X programs with no special library path. +ac_x_libraries= +else + LIBS=$ac_save_LIBS +for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` +do + # Don't even attempt the hair of trying to link an X program! + for ac_extension in a so sl dylib la dll; do + if test -r "$ac_dir/libX11.$ac_extension"; then + ac_x_libraries=$ac_dir + break 2 + fi + done +done +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi # $ac_x_libraries = no + +case $ac_x_includes,$ac_x_libraries in #( + no,* | *,no | *\'*) + # Didn't find X, or a directory has "'" in its name. + ac_cv_have_x="have_x=no";; #( + *) + # Record where we found X for the cache. + ac_cv_have_x="have_x=yes\ + ac_x_includes='$ac_x_includes'\ + ac_x_libraries='$ac_x_libraries'" +esac +fi +;; #( + *) have_x=yes;; + esac + eval "$ac_cv_have_x" +fi # $with_x != no + +if test "$have_x" != yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 +$as_echo "$have_x" >&6; } + no_x=yes +else + # If each of the values was on the command line, it overrides each guess. + test "x$x_includes" = xNONE && x_includes=$ac_x_includes + test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries + # Update the cache value to reflect the command line values. + ac_cv_have_x="have_x=yes\ + ac_x_includes='$x_includes'\ + ac_x_libraries='$x_libraries'" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 +$as_echo "libraries $x_libraries, headers $x_includes" >&6; } +fi + +if test "$no_x" = yes; then + # Not all programs may use this symbol, but it does not hurt to define it. + +$as_echo "@%:@define X_DISPLAY_MISSING 1" >>confdefs.h + + X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= +else + if test -n "$x_includes"; then + X_CFLAGS="$X_CFLAGS -I$x_includes" + fi + + # It would also be nice to do this for all -L options, not just this one. + if test -n "$x_libraries"; then + X_LIBS="$X_LIBS -L$x_libraries" + # For Solaris; some versions of Sun CC require a space after -R and + # others require no space. Words are not sufficient . . . . + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 +$as_echo_n "checking whether -R must be followed by a space... " >&6; } + ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" + ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + X_LIBS="$X_LIBS -R$x_libraries" +else + LIBS="$ac_xsave_LIBS -R $x_libraries" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + X_LIBS="$X_LIBS -R $x_libraries" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 +$as_echo "neither works" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag + LIBS=$ac_xsave_LIBS + fi + + # Check for system-dependent libraries X programs must link with. + # Do this before checking for the system-independent R6 libraries + # (-lICE), since we may need -lsocket or whatever for X linking. + + if test "$ISC" = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" + else + # Martyn Johnson says this is needed for Ultrix, if the X + # libraries were built with DECnet support. And Karl Berry says + # the Alpha needs dnet_stub (dnet does not exist). + ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char XOpenDisplay (); +int +main () +{ +return XOpenDisplay (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 +$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } +if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_ntoa (); +int +main () +{ +return dnet_ntoa (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dnet_dnet_ntoa=yes +else + ac_cv_lib_dnet_dnet_ntoa=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 +$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } +if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" +fi + + if test $ac_cv_lib_dnet_dnet_ntoa = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 +$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } +if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet_stub $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_ntoa (); +int +main () +{ +return dnet_ntoa (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dnet_stub_dnet_ntoa=yes +else + ac_cv_lib_dnet_stub_dnet_ntoa=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 +$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } +if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" +fi + + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$ac_xsave_LIBS" + + # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, + # to get the SysV transport functions. + # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) + # needs -lnsl. + # The nsl library prevents programs from opening the X display + # on Irix 5.2, according to T.E. Dickey. + # The functions gethostbyname, getservbyname, and inet_addr are + # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. + ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" +if test "x$ac_cv_func_gethostbyname" = xyes; then : + +fi + + if test $ac_cv_func_gethostbyname = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_gethostbyname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_nsl_gethostbyname=yes +else + ac_cv_lib_nsl_gethostbyname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } +if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" +fi + + if test $ac_cv_lib_nsl_gethostbyname = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 +$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } +if ${ac_cv_lib_bsd_gethostbyname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbsd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_bsd_gethostbyname=yes +else + ac_cv_lib_bsd_gethostbyname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 +$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } +if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" +fi + + fi + fi + + # lieder@skyler.mavd.honeywell.com says without -lsocket, + # socket/setsockopt and other routines are undefined under SCO ODT + # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary + # on later versions), says Simon Leinen: it contains gethostby* + # variants that don't use the name server (or something). -lsocket + # must be given before -lnsl if both are needed. We assume that + # if connect needs -lnsl, so does gethostbyname. + ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" +if test "x$ac_cv_func_connect" = xyes; then : + +fi + + if test $ac_cv_func_connect = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 +$as_echo_n "checking for connect in -lsocket... " >&6; } +if ${ac_cv_lib_socket_connect+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $X_EXTRA_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char connect (); +int +main () +{ +return connect (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_socket_connect=yes +else + ac_cv_lib_socket_connect=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 +$as_echo "$ac_cv_lib_socket_connect" >&6; } +if test "x$ac_cv_lib_socket_connect" = xyes; then : + X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" +fi + + fi + + # Guillermo Gomez says -lposix is necessary on A/UX. + ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" +if test "x$ac_cv_func_remove" = xyes; then : + +fi + + if test $ac_cv_func_remove = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 +$as_echo_n "checking for remove in -lposix... " >&6; } +if ${ac_cv_lib_posix_remove+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lposix $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char remove (); +int +main () +{ +return remove (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_posix_remove=yes +else + ac_cv_lib_posix_remove=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 +$as_echo "$ac_cv_lib_posix_remove" >&6; } +if test "x$ac_cv_lib_posix_remove" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" +fi + + fi + + # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. + ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" +if test "x$ac_cv_func_shmat" = xyes; then : + +fi + + if test $ac_cv_func_shmat = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 +$as_echo_n "checking for shmat in -lipc... " >&6; } +if ${ac_cv_lib_ipc_shmat+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lipc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shmat (); +int +main () +{ +return shmat (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ipc_shmat=yes +else + ac_cv_lib_ipc_shmat=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 +$as_echo "$ac_cv_lib_ipc_shmat" >&6; } +if test "x$ac_cv_lib_ipc_shmat" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" +fi + + fi + fi + + # Check for libraries that X11R6 Xt/Xaw programs need. + ac_save_LDFLAGS=$LDFLAGS + test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" + # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to + # check for ICE first), but we must link in the order -lSM -lICE or + # we get undefined symbols. So assume we have SM if we have ICE. + # These have to be linked with before -lX11, unlike the other + # libraries we check for below, so use a different variable. + # John Interrante, Karl Berry + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 +$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } +if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lICE $X_EXTRA_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char IceConnectionNumber (); +int +main () +{ +return IceConnectionNumber (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ICE_IceConnectionNumber=yes +else + ac_cv_lib_ICE_IceConnectionNumber=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 +$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } +if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : + X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" +fi + + LDFLAGS=$ac_save_LDFLAGS + +fi + + +if test "x$with_x" != "xno"; then +# AC_CHECK_LIB([X11],[main]) +# AC_CHECK_LIB([Xext],[main]) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeGetAllModeLines in -lXxf86vm" >&5 +$as_echo_n "checking for XF86VidModeGetAllModeLines in -lXxf86vm... " >&6; } +if ${ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lXxf86vm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char XF86VidModeGetAllModeLines (); +int +main () +{ +return XF86VidModeGetAllModeLines (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines=yes +else + ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines" >&5 +$as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines" >&6; } +if test "x$ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBXXF86VM 1 +_ACEOF + + LIBS="-lXxf86vm $LIBS" + +fi + +fi + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ax_pthread_ok=no + +# We used to check for pthread.h first, but this fails if pthread.h +# requires special compiler flags (e.g. on True64 or Sequent). +# It gets checked for in the link test anyway. + +# First of all, check if the user has set any of the PTHREAD_LIBS, +# etcetera environment variables, and if threads linking works using +# them: +if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS" >&5 +$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_join (); +int +main () +{ +return pthread_join (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test x"$ax_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" +fi + +# We must check for the threads library under a number of different +# names; the ordering is very important because some systems +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the +# libraries is broken (non-POSIX). + +# Create a list of thread flags to try. Items starting with a "-" are +# C compiler flags, and other items are library names, except for "none" +# which indicates that we try without any flags at all, and "pthread-config" +# which is a program returning the flags for the Pth emulation library. + +ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads +-mthreads pthread --thread-safe -mt pthread-config" + +# The ordering *is* (sometimes) important. Some notes on the +# individual items follow: + +# pthreads: AIX (must check this before -lpthread) +# none: in case threads are in libc; should be tried before -Kthread and +# other compiler flags to prevent continual compiler warnings +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) +# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) +# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) +# -pthreads: Solaris/gcc +# -mthreads: Mingw32/gcc, Lynx/gcc +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it +# doesn't hurt to check since this sometimes defines pthreads too; +# also defines -D_REENTRANT) +# ... -mt is also the pthreads flag for HP/aCC +# pthread: Linux, etcetera +# --thread-safe: KAI C++ +# pthread-config: use pthread-config program (for GNU Pth library) + +case "${host_cpu}-${host_os}" in + *solaris*) + + # On Solaris (at least, for some versions), libc contains stubbed + # (non-functional) versions of the pthreads routines, so link-based + # tests will erroneously succeed. (We need to link with -pthreads/-mt/ + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather + # a function called by this macro, so we could check for that, but + # who knows whether they'll stub that too in a future libc.) So, + # we'll just look for -pthreads and -lpthread first: + + ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" + ;; + + *-darwin*) + acx_pthread_flags="-pthread $acx_pthread_flags" + ;; +esac + +if test x"$ax_pthread_ok" = xno; then +for flag in $ax_pthread_flags; do + + case $flag in + none) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 +$as_echo_n "checking whether pthreads work without any flags... " >&6; } + ;; + + -*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 +$as_echo_n "checking whether pthreads work with $flag... " >&6; } + PTHREAD_CFLAGS="$flag" + ;; + + pthread-config) + # Extract the first word of "pthread-config", so it can be a program name with args. +set dummy pthread-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ax_pthread_config+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ax_pthread_config"; then + ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ax_pthread_config="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" +fi +fi +ax_pthread_config=$ac_cv_prog_ax_pthread_config +if test -n "$ax_pthread_config"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 +$as_echo "$ax_pthread_config" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test x"$ax_pthread_config" = xno; then continue; fi + PTHREAD_CFLAGS="`pthread-config --cflags`" + PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config +--libs`" + ;; + + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 +$as_echo_n "checking for the pthreads library -l$flag... " >&6; } + PTHREAD_LIBS="-l$flag" + ;; + esac + + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Check for various functions. We must include pthread.h, + # since some functions may be macros. (On the Sequent, we + # need a special flag -Kthread to make this header compile.) + # We check for pthread_join because it is in -lpthread on IRIX + # while pthread_create is in libc. We check for pthread_attr_init + # due to DEC craziness with -lpthreads. We check for + # pthread_cleanup_push because it is one of the few pthread + # functions on Solaris that doesn't have a non-functional libc stub. + # We try pthread_create on general principles. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + static void routine(void* a) {a=0;} + static void* start_routine(void* a) {return a;} +int +main () +{ +pthread_t th; pthread_attr_t attr; + pthread_join(th, 0); + pthread_attr_init(&attr); + pthread_cleanup_push(routine, 0); + pthread_create(&th,0,start_routine,0); + pthread_cleanup_pop(0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test "x$ax_pthread_ok" = xyes; then + break; + fi + + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" +done +fi + +# Various other checks: +if test "x$ax_pthread_ok" = xyes; then + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 +$as_echo_n "checking for joinable pthread attribute... " >&6; } + attr_name=unknown + for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int attr=$attr; return attr; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + attr_name=$attr; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + done + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 +$as_echo "$attr_name" >&6; } + if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then + +cat >>confdefs.h <<_ACEOF +@%:@define PTHREAD_CREATE_JOINABLE $attr_name +_ACEOF + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 +$as_echo_n "checking if more special flags are required for pthreads... " >&6; } + flag=no + case "${host_cpu}-${host_os}" in + *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 +$as_echo "${flag}" >&6; } + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + # More AIX lossage: must compile with xlc_r or cc_r + if test x"$GCC" != xyes; then + for ac_prog in xlc_r cc_r +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_PTHREAD_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$PTHREAD_CC"; then + ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_PTHREAD_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +PTHREAD_CC=$ac_cv_prog_PTHREAD_CC +if test -n "$PTHREAD_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 +$as_echo "$PTHREAD_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$PTHREAD_CC" && break +done +test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" + + else + PTHREAD_CC=$CC + fi +else + PTHREAD_CC="$CC" +fi + + + + + +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: +if test x"$ax_pthread_ok" = xyes; then + +$as_echo "@%:@define HAVE_PTHREADS 1" >>confdefs.h + + : +else + ax_pthread_ok=no + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 +$as_echo_n "checking for C compiler vendor... " >&6; } +if ${ax_cv_c_compiler_vendor+:} false; then : + $as_echo_n "(cached) " >&6 +else + # note: don't check for gcc first since some other compilers define __GNUC__ + vendors="intel: __ICC,__ECC,__INTEL_COMPILER + ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ + pathscale: __PATHCC__,__PATHSCALE__ + clang: __clang__ + gnu: __GNUC__ + sun: __SUNPRO_C,__SUNPRO_CC + hp: __HP_cc,__HP_aCC + dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER + borland: __BORLANDC__,__TURBOC__ + comeau: __COMO__ + cray: _CRAYC + kai: __KCC + lcc: __LCC__ + sgi: __sgi,sgi + microsoft: _MSC_VER + metrowerks: __MWERKS__ + watcom: __WATCOMC__ + portland: __PGI + unknown: UNKNOWN" + for ventest in $vendors; do + case $ventest in + *:) vendor=$ventest; continue ;; + *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; + esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + #if !($vencpp) + thisisanerror; + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done + ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 +$as_echo "$ax_cv_c_compiler_vendor" >&6; } + +if test X$ax_cv_c_compiler_vendor != Xmicrosoft; then : + GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm" +fi + +# +# Use x_includes and x_libraries if they have been set (presumably by +# AC_PATH_X). +# +if test "X$no_x" != "Xyes"; then : + if test -n "$x_includes"; then : + GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" +fi + if test -n "$x_libraries"; then : + GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" +fi +fi + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +for ac_header in GL/gl.h OpenGL/gl.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +CPPFLAGS="${ax_save_CPPFLAGS}" + +for ac_header in windows.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" +if test "x$ac_cv_header_windows_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_WINDOWS_H 1 +_ACEOF + +fi + +done + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5 +$as_echo_n "checking for OpenGL library... " >&6; } +if ${ax_cv_check_gl_libgl+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_check_gl_libgl="no" +case $host_cpu in + x86_64) ax_check_gl_libdir=lib64 ;; + *) ax_check_gl_libdir=lib ;; +esac +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" +LIBS="" +ax_check_libs="-lopengl32 -lGL" +for ax_lib in ${ax_check_libs}; do + if test X$ax_compiler_ms = Xyes; then : + ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` +else + ax_try_lib="${ax_lib}" +fi + LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="${ax_try_lib}"; break +else + ax_check_gl_nvidia_flags="-L/usr/${ax_check_gl_libdir}/nvidia" LIBS="${ax_try_lib} ${ax_check_gl_nvidia_flags} ${GL_LIBS} ${ax_save_LIBS}" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break +else + ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' LIBS="${ax_try_lib} ${ax_check_gl_dylib_flag} ${GL_LIBS} ${ax_save_LIBS}" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +done + +if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then : + LIBS='-framework OpenGL' +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="$LIBS" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi + +LIBS=${ax_save_LIBS} +CPPFLAGS=${ax_save_CPPFLAGS} +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5 +$as_echo "$ax_cv_check_gl_libgl" >&6; } + +if test "X$ax_cv_check_gl_libgl" = Xno; then : + no_gl=yes; GL_CFLAGS=""; GL_LIBS="" +else + GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + + + + if test "x$no_gl" != "xyes"; then + HAVE_GL_TRUE= + HAVE_GL_FALSE='#' +else + HAVE_GL_TRUE='#' + HAVE_GL_FALSE= +fi + + +GLU_CFLAGS="${GL_CFLAGS}" + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +for ac_header in GL/glu.h OpenGL/glu.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +CPPFLAGS="${ax_save_CPPFLAGS}" + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5 +$as_echo_n "checking for OpenGL Utility library... " >&6; } +if ${ax_cv_check_glu_libglu+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_check_glu_libglu="no" +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" + +# +# First, check for the possibility that everything we need is already in +# GL_LIBS. +# +LIBS="${GL_LIBS} ${ax_save_LIBS}" +# +# libGLU typically links with libstdc++ on POSIX platforms. +# However, setting the language to C++ means that test program +# source is named "conftest.cc"; and Microsoft cl doesn't know what +# to do with such a file. +# +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +if test X$ax_compiler_ms = Xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLU_H +# include +# elif defined(HAVE_OPENGL_GLU_H) +# include +# else +# error no glu.h +# endif +int +main () +{ +gluBeginCurve(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glu_libglu=yes +else + LIBS="" +ax_check_libs="-lglu32 -lGLU" +for ax_lib in ${ax_check_libs}; do + if test X$ax_compiler_ms = Xyes; then : + ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` +else + ax_try_lib="${ax_lib}" +fi + LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLU_H +# include +# elif defined(HAVE_OPENGL_GLU_H) +# include +# else +# error no glu.h +# endif +int +main () +{ +gluBeginCurve(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glu_libglu="${ax_try_lib}"; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +done + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test X$ax_compiler_ms = Xyes; then : + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +LIBS=${ax_save_LIBS} +CPPFLAGS=${ax_save_CPPFLAGS} +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5 +$as_echo "$ax_cv_check_glu_libglu" >&6; } +if test "X$ax_cv_check_glu_libglu" = Xno; then : + no_glu=yes; GLU_CFLAGS=""; GLU_LIBS="" +else + if test "X$ax_cv_check_glu_libglu" = Xyes; then : + GLU_LIBS="$GL_LIBS" +else + GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" +fi +fi + + + +# +# Some versions of Mac OS X include a broken interpretation of the GLU +# tesselation callback function signature. +# +if test "X$ax_cv_check_glu_libglu" != Xno; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5 +$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; } +if ${ax_cv_varargs_glu_tesscb+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_varargs_glu_tesscb=no +ax_save_CFLAGS="$CFLAGS" +CFLAGS="$GL_CFLAGS $CFLAGS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# ifdef HAVE_GL_GLU_H +# include +# else +# include +# endif +int +main () +{ +GLvoid (*func)(...); gluTessCallback(0, 0, func) + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ax_cv_varargs_glu_tesscb=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +CFLAGS="$ax_save_CFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5 +$as_echo "$ax_cv_varargs_glu_tesscb" >&6; } +if test X$ax_cv_varargs_glu_tesscb = Xyes; then : + +$as_echo "@%:@define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h + +fi +fi + + + if test "x$no_glu" != "xyes"; then + HAVE_GLU_TRUE= + HAVE_GLU_FALSE='#' +else + HAVE_GLU_TRUE='#' + HAVE_GLU_FALSE= +fi + + + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" +for ac_header in GL/glut.h GLUT/glut.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +CPPFLAGS="${ax_save_CPPFLAGS}" + +GLUT_CFLAGS=${GLU_CFLAGS} +GLUT_LIBS=${GLU_LIBS} + + + +# +# If X is present, assume GLUT depends on it. +# +if test X$no_x != Xyes; then : + GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5 +$as_echo_n "checking for GLUT library... " >&6; } +if ${ax_cv_check_glut_libglut+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_check_glut_libglut="no" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" +LIBS="" +ax_check_libs="-lglut32 -lglut" +for ax_lib in ${ax_check_libs}; do + if test X$ax_compiler_ms = Xyes; then : + ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` +else + ax_try_lib="${ax_lib}" +fi + LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if HAVE_WINDOWS_H && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLUT_H +# include +# elif defined(HAVE_GLUT_GLUT_H) +# include +# else +# error no glut.h +# endif +int +main () +{ +glutMainLoop() + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glut_libglut="${ax_try_lib}"; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +done + +if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then : + LIBS='-framework GLUT' +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if HAVE_WINDOWS_H && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLUT_H +# include +# elif defined(HAVE_GLUT_GLUT_H) +# include +# else +# error no glut.h +# endif +int +main () +{ +glutMainLoop() + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glut_libglut="$LIBS" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi + +CPPFLAGS="${ax_save_CPPFLAGS}" +LIBS="${ax_save_LIBS}" +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5 +$as_echo "$ax_cv_check_glut_libglut" >&6; } + +if test "X$ax_cv_check_glut_libglut" = Xno; then : + no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS="" +else + GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" +fi + + + + + + if test "x$no_glut" != "xyes"; then + HAVE_GLUT_TRUE= + HAVE_GLUT_FALSE='#' +else + HAVE_GLUT_TRUE='#' + HAVE_GLUT_FALSE= +fi + + + +for ac_header in GL/glx.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default" +if test "x$ac_cv_header_GL_glx_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GL_GLX_H 1 +_ACEOF + +else + no_glx=yes +fi + +done + + if test "x$no_glx" != "xyes"; then + HAVE_GLX_TRUE= + HAVE_GLX_FALSE='#' +else + HAVE_GLX_TRUE='#' + HAVE_GLX_FALSE= +fi + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"AGL\"-framework" >&5 +$as_echo_n "checking for \"AGL\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework AGL ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_AGL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GEM_FRAMEWORK_AGL 1 +_ACEOF + + GEM_FRAMEWORK_AGL="-framework AGL" + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_AGL_TRUE= + HAVE_FRAMEWORK_AGL_FALSE='#' +else + HAVE_FRAMEWORK_AGL_TRUE='#' + HAVE_FRAMEWORK_AGL_FALSE= +fi + + + +if test "x$gem_check_ldflags_success" != "xyes"; then + no_agl="yes" +fi +AGL_CFLAGS="" +AGL_LIBS="${GEM_FRAMEWORK_AGL}" + + + if test "x$no_agl" != "xyes"; then + HAVE_AGL_TRUE= + HAVE_AGL_FALSE='#' +else + HAVE_AGL_TRUE='#' + HAVE_AGL_FALSE= +fi + + + +## use system's libGLEW + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi + +fi + + + + + + + +@%:@ Check whether --with-glew was given. +if test "${with_glew+set}" = set; then : + withval=$with_glew; +fi + + +@%:@ Check whether --with-glew-includes was given. +if test "${with_glew_includes+set}" = set; then : + withval=$with_glew_includes; +fi + + +@%:@ Check whether --with-glew-libs was given. +if test "${with_glew_libs+set}" = set; then : + withval=$with_glew_libs; +fi + + + if test "x$with_glew" = "x"; then with_glew="no"; fi + + if test "x$with_ALL" = "xyes" && test "x$with_glew" = "x"; then with_glew="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_glew" = "x"; then with_glew="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_glew = "xno"; then + have_glew="no (forced)" +else + if test -d "$with_glew_includes"; then + CFLAGS="-I$with_glew_includes $CFLAGS" + CPPFLAGS="-I$with_glew_includes $CPPFLAGS" + CXXFLAGS="-I$with_glew_includes $CXXFLAGS" + fi + if test -d "$with_glew_libs"; then + LIBS="-L$with_glew_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_GLEW_glewInit) >/dev/null 2>&1 && unset ac_cv_lib_GLEW_glewInit + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GLEW_CFLAGS" >&5 +$as_echo_n "checking for PKG_GLEW_CFLAGS... " >&6; } +if ${pkg_cv_PKG_GLEW_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GLEW_CFLAGS_set" = "xset"; then + pkg_cv_PKG_GLEW_CFLAGS=$ac_cv_env_PKG_GLEW_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"glew\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "glew" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GLEW_CFLAGS=`$PKG_CONFIG --cflags "glew" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GLEW_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_GLEW_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GLEW_LIBS" >&5 +$as_echo_n "checking for PKG_GLEW_LIBS... " >&6; } +if ${pkg_cv_PKG_GLEW_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GLEW_LIBS_set" = "xset"; then + pkg_cv_PKG_GLEW_LIBS=$ac_cv_env_PKG_GLEW_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"glew\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "glew" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GLEW_LIBS=`$PKG_CONFIG --libs "glew" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GLEW_LIBS" >&5 +$as_echo "$pkg_cv_PKG_GLEW_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_GLEW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glew"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_GLEW_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_GLEW_CFLAGS=$pkg_cv_PKG_GLEW_CFLAGS + PKG_GLEW_LIBS=$pkg_cv_PKG_GLEW_LIBS + ac_cv_lib_GLEW_glewInit=yes +fi +if test "x${PKG_GLEW_CFLAGS}" != "x"; then + + for element in "${PKG_GLEW_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_GLEW_LIBS}" != "x"; then + PKG_LIBS="${PKG_GLEW_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_GLEW_glewInit" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glew-config" >&5 +$as_echo_n "checking for glew-config... " >&6; } + gem_check_lib_pkgconfig_GLEW="" + if test "xglew" != "x"; then + gem_check_lib_pkgconfig_GLEW="glew"-config + if which -- "$gem_check_lib_pkgconfig_GLEW" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_GLEW=`which "glew"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_GLEW="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_GLEW" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_GLEW_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_GLEW --cflags >/dev/null 2>&1; then + PKG_GLEW_CFLAGS=$(${gem_check_lib_pkgconfig_GLEW} --cflags) + PKG_CFLAGS="$PKG_GLEW_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_GLEW_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_GLEW --plugin-libs >/dev/null 2>&1; then + PKG_GLEW_LIBS=$(${gem_check_lib_pkgconfig_GLEW} --plugin-libs) + else + if $gem_check_lib_pkgconfig_GLEW --libs >/dev/null 2>&1; then + PKG_GLEW_LIBS=$(${gem_check_lib_pkgconfig_GLEW} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_GLEW_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glewInit in -lGLEW" >&5 +$as_echo_n "checking for glewInit in -lGLEW... " >&6; } +if ${ac_cv_lib_GLEW_glewInit+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lGLEW $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char glewInit (); +int +main () +{ +return glewInit (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_GLEW_glewInit=yes +else + ac_cv_lib_GLEW_glewInit=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLEW_glewInit" >&5 +$as_echo "$ac_cv_lib_GLEW_glewInit" >&6; } +if test "x$ac_cv_lib_GLEW_glewInit" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGLEW 1 +_ACEOF + + LIBS="-lGLEW $LIBS" + +fi + + PKG_GLEW_LIBS="-lGLEW" + else + PKG_LIBS="${PKG_GLEW_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_GLEW_glewInit" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGLEW 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGLEW 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GLEWINIT 1 +_ACEOF + + GEM_LIB_GLEW_CFLAGS=${PKG_GLEW_CFLAGS} + GEM_LIB_GLEW_LIBS=${PKG_GLEW_LIBS} + have_glew="yes" + with_glew="no" + + +else + + have_glew="no" + + +fi + +fi + if test "x${have_glew}" = "xyes"; then + HAVE_LIB_GLEW_TRUE= + HAVE_LIB_GLEW_FALSE='#' +else + HAVE_LIB_GLEW_TRUE='#' + HAVE_LIB_GLEW_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +if test "x${have_glew}" != "xyes"; then + GEM_CPPFLAGS+=" -DGLEW_BUILD" +fi + + + + + + + + +@%:@ Check whether --with-sdl was given. +if test "${with_sdl+set}" = set; then : + withval=$with_sdl; +fi + + +@%:@ Check whether --with-sdl-includes was given. +if test "${with_sdl_includes+set}" = set; then : + withval=$with_sdl_includes; +fi + + +@%:@ Check whether --with-sdl-libs was given. +if test "${with_sdl_libs+set}" = set; then : + withval=$with_sdl_libs; +fi + + + if test "x$with_sdl" = "x"; then with_sdl="yes"; fi + + if test "x$with_ALL" = "xyes" && test "x$with_sdl" = "x"; then with_sdl="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_sdl" = "x"; then with_sdl="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_sdl = "xno"; then + have_sdl="no (forced)" +else + if test -d "$with_sdl_includes"; then + CFLAGS="-I$with_sdl_includes $CFLAGS" + CPPFLAGS="-I$with_sdl_includes $CPPFLAGS" + CXXFLAGS="-I$with_sdl_includes $CXXFLAGS" + fi + if test -d "$with_sdl_libs"; then + LIBS="-L$with_sdl_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_SDL_SDL_Quit) >/dev/null 2>&1 && unset ac_cv_lib_SDL_SDL_Quit + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_SDL_CFLAGS" >&5 +$as_echo_n "checking for PKG_SDL_CFLAGS... " >&6; } +if ${pkg_cv_PKG_SDL_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_SDL_CFLAGS_set" = "xset"; then + pkg_cv_PKG_SDL_CFLAGS=$ac_cv_env_PKG_SDL_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"sdl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "sdl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_SDL_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_SDL_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_SDL_LIBS" >&5 +$as_echo_n "checking for PKG_SDL_LIBS... " >&6; } +if ${pkg_cv_PKG_SDL_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_SDL_LIBS_set" = "xset"; then + pkg_cv_PKG_SDL_LIBS=$ac_cv_env_PKG_SDL_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"sdl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "sdl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_SDL_LIBS" >&5 +$as_echo "$pkg_cv_PKG_SDL_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_SDL_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_SDL_CFLAGS=$pkg_cv_PKG_SDL_CFLAGS + PKG_SDL_LIBS=$pkg_cv_PKG_SDL_LIBS + ac_cv_lib_SDL_SDL_Quit=yes +fi +if test "x${PKG_SDL_CFLAGS}" != "x"; then + + for element in "${PKG_SDL_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_SDL_LIBS}" != "x"; then + PKG_LIBS="${PKG_SDL_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_SDL_SDL_Quit" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl-config" >&5 +$as_echo_n "checking for sdl-config... " >&6; } + gem_check_lib_pkgconfig_SDL="" + if test "xsdl" != "x"; then + gem_check_lib_pkgconfig_SDL="sdl"-config + if which -- "$gem_check_lib_pkgconfig_SDL" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_SDL=`which "sdl"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_SDL="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_SDL" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_SDL_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_SDL --cflags >/dev/null 2>&1; then + PKG_SDL_CFLAGS=$(${gem_check_lib_pkgconfig_SDL} --cflags) + PKG_CFLAGS="$PKG_SDL_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_SDL_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_SDL --plugin-libs >/dev/null 2>&1; then + PKG_SDL_LIBS=$(${gem_check_lib_pkgconfig_SDL} --plugin-libs) + else + if $gem_check_lib_pkgconfig_SDL --libs >/dev/null 2>&1; then + PKG_SDL_LIBS=$(${gem_check_lib_pkgconfig_SDL} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_SDL_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Quit in -lSDL" >&5 +$as_echo_n "checking for SDL_Quit in -lSDL... " >&6; } +if ${ac_cv_lib_SDL_SDL_Quit+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lSDL $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SDL_Quit (); +int +main () +{ +return SDL_Quit (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_SDL_SDL_Quit=yes +else + ac_cv_lib_SDL_SDL_Quit=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Quit" >&5 +$as_echo "$ac_cv_lib_SDL_SDL_Quit" >&6; } +if test "x$ac_cv_lib_SDL_SDL_Quit" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBSDL 1 +_ACEOF + + LIBS="-lSDL $LIBS" + +fi + + PKG_SDL_LIBS="-lSDL" + else + PKG_LIBS="${PKG_SDL_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_SDL_SDL_Quit" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBSDL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBSDL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_SDL_QUIT 1 +_ACEOF + + GEM_LIB_SDL_CFLAGS=${PKG_SDL_CFLAGS} + GEM_LIB_SDL_LIBS=${PKG_SDL_LIBS} + have_sdl="yes" + with_sdl="no" + + +else + + have_sdl="no" + + +fi + +fi + if test "x${have_sdl}" = "xyes"; then + HAVE_LIB_SDL_TRUE= + HAVE_LIB_SDL_FALSE='#' +else + HAVE_LIB_SDL_TRUE='#' + HAVE_LIB_SDL_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +## http://wiki.fifengine.de/Segfault_in_cxa_allocate_exception#Workaround_.231 +### "-lstdc++" really has to be added before e.g. "-lGL" in order to avoid +### triggering the bug +### however, libtool is way to clever and eliminates duplicate LIBS entries. +### since "-lstdc++" is usually found in the postdeps, this would remove the +### entry found in LIBS; so we add it to the predeps_CXX (only) +stdcxx_LIBS=$LIBS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 +$as_echo_n "checking for main in -lstdc++... " >&6; } +if ${ac_cv_lib_stdcpp_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lstdc++ $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_stdcpp_main=yes +else + ac_cv_lib_stdcpp_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5 +$as_echo "$ac_cv_lib_stdcpp_main" >&6; } +if test "x$ac_cv_lib_stdcpp_main" = xyes; then : + predeps_CXX="$predeps_CXX -lstdc++" +fi + +LIBS=$stdcxx_LIBS + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"Cocoa\"-framework" >&5 +$as_echo_n "checking for \"Cocoa\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework Cocoa ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_COCOA 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GEM_FRAMEWORK_COCOA 1 +_ACEOF + + GEM_FRAMEWORK_COCOA="-framework Cocoa" + have_cocoa_framework="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + have_cocoa_framework="no" + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_COCOA_TRUE= + HAVE_FRAMEWORK_COCOA_FALSE='#' +else + HAVE_FRAMEWORK_COCOA_TRUE='#' + HAVE_FRAMEWORK_COCOA_FALSE= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"Carbon\"-framework" >&5 +$as_echo_n "checking for \"Carbon\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework Carbon ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_CARBON 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GEM_FRAMEWORK_CARBON 1 +_ACEOF + + GEM_FRAMEWORK_CARBON="-framework Carbon" + have_carbon_framework="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + have_carbon_framework="no" + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_CARBON_TRUE= + HAVE_FRAMEWORK_CARBON_FALSE='#' +else + HAVE_FRAMEWORK_CARBON_TRUE='#' + HAVE_FRAMEWORK_CARBON_FALSE= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"QuickTime\"-framework" >&5 +$as_echo_n "checking for \"QuickTime\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework QuickTime ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_QUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GEM_FRAMEWORK_QUICKTIME 1 +_ACEOF + + GEM_FRAMEWORK_QUICKTIME="-framework QuickTime" + have_quicktime_framework="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + have_quicktime_framework="no" + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_QUICKTIME_TRUE= + HAVE_FRAMEWORK_QUICKTIME_FALSE='#' +else + HAVE_FRAMEWORK_QUICKTIME_TRUE='#' + HAVE_FRAMEWORK_QUICKTIME_FALSE= +fi + + + + + if test "x${have_carbon_framework}" = "xyes" && test "x${have_quicktime_framework}" = "xyes"; then + VIDEODARWIN_TRUE= + VIDEODARWIN_FALSE='#' +else + VIDEODARWIN_TRUE='#' + VIDEODARWIN_FALSE= +fi + + +#fallback to imagemagick if people are too lazy to type ImageMagick +if test "x$with_ImageMagick" = "x"; then + with_ImageMagick="$with_imagemagick" +fi +if test "x$with_MagickCore" = "x"; then + with_MagickCore="$with_ImageMagick" +fi + + + + + + + + +@%:@ Check whether --with-ImageMagick was given. +if test "${with_ImageMagick+set}" = set; then : + withval=$with_ImageMagick; +fi + + +@%:@ Check whether --with-ImageMagick-includes was given. +if test "${with_ImageMagick_includes+set}" = set; then : + withval=$with_ImageMagick_includes; +fi + + +@%:@ Check whether --with-ImageMagick-libs was given. +if test "${with_ImageMagick_libs+set}" = set; then : + withval=$with_ImageMagick_libs; +fi + + + if test "x$with_ImageMagick" = "x"; then with_ImageMagick=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_ImageMagick" = "x"; then with_ImageMagick="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_ImageMagick" = "x"; then with_ImageMagick="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_ImageMagick = "xno"; then + have_ImageMagick="no (forced)" +else + if test -d "$with_ImageMagick_includes"; then + CFLAGS="-I$with_ImageMagick_includes $CFLAGS" + CPPFLAGS="-I$with_ImageMagick_includes $CPPFLAGS" + CXXFLAGS="-I$with_ImageMagick_includes $CXXFLAGS" + fi + if test -d "$with_ImageMagick_libs"; then + LIBS="-L$with_ImageMagick_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_Magickpp_main) >/dev/null 2>&1 && unset ac_cv_lib_Magickpp_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_IMAGEMAGICK___CFLAGS" >&5 +$as_echo_n "checking for PKG_IMAGEMAGICK___CFLAGS... " >&6; } +if ${pkg_cv_PKG_IMAGEMAGICK___CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_IMAGEMAGICK___CFLAGS_set" = "xset"; then + pkg_cv_PKG_IMAGEMAGICK___CFLAGS=$ac_cv_env_PKG_IMAGEMAGICK___CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ImageMagick++\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ImageMagick++" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_IMAGEMAGICK___CFLAGS=`$PKG_CONFIG --cflags "ImageMagick++" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_IMAGEMAGICK___CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_IMAGEMAGICK___CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_IMAGEMAGICK___LIBS" >&5 +$as_echo_n "checking for PKG_IMAGEMAGICK___LIBS... " >&6; } +if ${pkg_cv_PKG_IMAGEMAGICK___LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_IMAGEMAGICK___LIBS_set" = "xset"; then + pkg_cv_PKG_IMAGEMAGICK___LIBS=$ac_cv_env_PKG_IMAGEMAGICK___LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ImageMagick++\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ImageMagick++" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_IMAGEMAGICK___LIBS=`$PKG_CONFIG --libs "ImageMagick++" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_IMAGEMAGICK___LIBS" >&5 +$as_echo "$pkg_cv_PKG_IMAGEMAGICK___LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_IMAGEMAGICK___PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ImageMagick++"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_IMAGEMAGICK___PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_IMAGEMAGICK___CFLAGS=$pkg_cv_PKG_IMAGEMAGICK___CFLAGS + PKG_IMAGEMAGICK___LIBS=$pkg_cv_PKG_IMAGEMAGICK___LIBS + ac_cv_lib_Magickpp_main=yes +fi +if test "x${PKG_IMAGEMAGICK___CFLAGS}" != "x"; then + + for element in "${PKG_IMAGEMAGICK___CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_IMAGEMAGICK___LIBS}" != "x"; then + PKG_LIBS="${PKG_IMAGEMAGICK___LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_Magickpp_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick++-config" >&5 +$as_echo_n "checking for ImageMagick++-config... " >&6; } + gem_check_lib_pkgconfig_IMAGEMAGICK__="" + if test "xImageMagick++" != "x"; then + gem_check_lib_pkgconfig_IMAGEMAGICK__="ImageMagick++"-config + if which -- "$gem_check_lib_pkgconfig_IMAGEMAGICK__" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_IMAGEMAGICK__=`which "ImageMagick++"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_IMAGEMAGICK__="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_IMAGEMAGICK__" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_IMAGEMAGICK___CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_IMAGEMAGICK__ --cflags >/dev/null 2>&1; then + PKG_IMAGEMAGICK___CFLAGS=$(${gem_check_lib_pkgconfig_IMAGEMAGICK__} --cflags) + PKG_CFLAGS="$PKG_IMAGEMAGICK___CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_IMAGEMAGICK___LIBS" = "x"; then + if $gem_check_lib_pkgconfig_IMAGEMAGICK__ --plugin-libs >/dev/null 2>&1; then + PKG_IMAGEMAGICK___LIBS=$(${gem_check_lib_pkgconfig_IMAGEMAGICK__} --plugin-libs) + else + if $gem_check_lib_pkgconfig_IMAGEMAGICK__ --libs >/dev/null 2>&1; then + PKG_IMAGEMAGICK___LIBS=$(${gem_check_lib_pkgconfig_IMAGEMAGICK__} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_IMAGEMAGICK___LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lMagick++" >&5 +$as_echo_n "checking for main in -lMagick++... " >&6; } +if ${ac_cv_lib_Magickpp_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lMagick++ $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_Magickpp_main=yes +else + ac_cv_lib_Magickpp_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Magickpp_main" >&5 +$as_echo "$ac_cv_lib_Magickpp_main" >&6; } +if test "x$ac_cv_lib_Magickpp_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMAGICK__ 1 +_ACEOF + + LIBS="-lMagick++ $LIBS" + +fi + + PKG_IMAGEMAGICK___LIBS="-lMagick++" + else + PKG_LIBS="${PKG_IMAGEMAGICK___LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_Magickpp_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBIMAGEMAGICK__ 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMAGICK__ 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_IMAGEMAGICK___CFLAGS=${PKG_IMAGEMAGICK___CFLAGS} + GEM_LIB_IMAGEMAGICK___LIBS=${PKG_IMAGEMAGICK___LIBS} + have_ImageMagick="yes" + with_ImageMagick="no" + +$as_echo "@%:@define HAVE_LIBMAGICKPLUSPLUS 1" >>confdefs.h + + +else + + have_ImageMagick="no" + + +fi + +fi + if test "x${have_ImageMagick}" = "xyes"; then + HAVE_LIB_IMAGEMAGICK___TRUE= + HAVE_LIB_IMAGEMAGICK___FALSE='#' +else + HAVE_LIB_IMAGEMAGICK___TRUE='#' + HAVE_LIB_IMAGEMAGICK___FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + + +@%:@ Check whether --with-MagickCore was given. +if test "${with_MagickCore+set}" = set; then : + withval=$with_MagickCore; +fi + + +@%:@ Check whether --with-MagickCore-includes was given. +if test "${with_MagickCore_includes+set}" = set; then : + withval=$with_MagickCore_includes; +fi + + +@%:@ Check whether --with-MagickCore-libs was given. +if test "${with_MagickCore_libs+set}" = set; then : + withval=$with_MagickCore_libs; +fi + + + if test "x$with_MagickCore" = "x"; then with_MagickCore=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_MagickCore" = "x"; then with_MagickCore="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_MagickCore" = "x"; then with_MagickCore="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_MagickCore = "xno"; then + have_MagickCore="no (forced)" +else + if test -d "$with_MagickCore_includes"; then + CFLAGS="-I$with_MagickCore_includes $CFLAGS" + CPPFLAGS="-I$with_MagickCore_includes $CPPFLAGS" + CXXFLAGS="-I$with_MagickCore_includes $CXXFLAGS" + fi + if test -d "$with_MagickCore_libs"; then + LIBS="-L$with_MagickCore_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_Magick_main) >/dev/null 2>&1 && unset ac_cv_lib_Magick_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MAGICKCORE_CFLAGS" >&5 +$as_echo_n "checking for PKG_MAGICKCORE_CFLAGS... " >&6; } +if ${pkg_cv_PKG_MAGICKCORE_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MAGICKCORE_CFLAGS_set" = "xset"; then + pkg_cv_PKG_MAGICKCORE_CFLAGS=$ac_cv_env_PKG_MAGICKCORE_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"MagickCore\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "MagickCore" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MAGICKCORE_CFLAGS=`$PKG_CONFIG --cflags "MagickCore" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MAGICKCORE_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_MAGICKCORE_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MAGICKCORE_LIBS" >&5 +$as_echo_n "checking for PKG_MAGICKCORE_LIBS... " >&6; } +if ${pkg_cv_PKG_MAGICKCORE_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MAGICKCORE_LIBS_set" = "xset"; then + pkg_cv_PKG_MAGICKCORE_LIBS=$ac_cv_env_PKG_MAGICKCORE_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"MagickCore\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "MagickCore" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MAGICKCORE_LIBS=`$PKG_CONFIG --libs "MagickCore" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MAGICKCORE_LIBS" >&5 +$as_echo "$pkg_cv_PKG_MAGICKCORE_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_MAGICKCORE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "MagickCore"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_MAGICKCORE_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_MAGICKCORE_CFLAGS=$pkg_cv_PKG_MAGICKCORE_CFLAGS + PKG_MAGICKCORE_LIBS=$pkg_cv_PKG_MAGICKCORE_LIBS + ac_cv_lib_Magick_main=yes +fi +if test "x${PKG_MAGICKCORE_CFLAGS}" != "x"; then + + for element in "${PKG_MAGICKCORE_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_MAGICKCORE_LIBS}" != "x"; then + PKG_LIBS="${PKG_MAGICKCORE_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_Magick_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MagickCore-config" >&5 +$as_echo_n "checking for MagickCore-config... " >&6; } + gem_check_lib_pkgconfig_MAGICKCORE="" + if test "xMagickCore" != "x"; then + gem_check_lib_pkgconfig_MAGICKCORE="MagickCore"-config + if which -- "$gem_check_lib_pkgconfig_MAGICKCORE" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_MAGICKCORE=`which "MagickCore"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_MAGICKCORE="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_MAGICKCORE" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_MAGICKCORE_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_MAGICKCORE --cflags >/dev/null 2>&1; then + PKG_MAGICKCORE_CFLAGS=$(${gem_check_lib_pkgconfig_MAGICKCORE} --cflags) + PKG_CFLAGS="$PKG_MAGICKCORE_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_MAGICKCORE_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_MAGICKCORE --plugin-libs >/dev/null 2>&1; then + PKG_MAGICKCORE_LIBS=$(${gem_check_lib_pkgconfig_MAGICKCORE} --plugin-libs) + else + if $gem_check_lib_pkgconfig_MAGICKCORE --libs >/dev/null 2>&1; then + PKG_MAGICKCORE_LIBS=$(${gem_check_lib_pkgconfig_MAGICKCORE} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_MAGICKCORE_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lMagick" >&5 +$as_echo_n "checking for main in -lMagick... " >&6; } +if ${ac_cv_lib_Magick_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lMagick $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_Magick_main=yes +else + ac_cv_lib_Magick_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Magick_main" >&5 +$as_echo "$ac_cv_lib_Magick_main" >&6; } +if test "x$ac_cv_lib_Magick_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMAGICK 1 +_ACEOF + + LIBS="-lMagick $LIBS" + +fi + + PKG_MAGICKCORE_LIBS="-lMagick" + else + PKG_LIBS="${PKG_MAGICKCORE_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_Magick_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMAGICKCORE 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMAGICK 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_MAGICKCORE_CFLAGS=${PKG_MAGICKCORE_CFLAGS} + GEM_LIB_MAGICKCORE_LIBS=${PKG_MAGICKCORE_LIBS} + have_MagickCore="yes" + with_MagickCore="no" + +$as_echo "@%:@define HAVE_LIBMAGICK 1" >>confdefs.h + + +else + + have_MagickCore="no" + + +fi + +fi + if test "x${have_MagickCore}" = "xyes"; then + HAVE_LIB_MAGICKCORE_TRUE= + HAVE_LIB_MAGICKCORE_FALSE='#' +else + HAVE_LIB_MAGICKCORE_TRUE='#' + HAVE_LIB_MAGICKCORE_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +#if test "x${have_ImageMagick}" = "xyes" +#then +# with_tiff=no +# with_jpeg=no +#fi + + + + + + + +@%:@ Check whether --with-tiff was given. +if test "${with_tiff+set}" = set; then : + withval=$with_tiff; +fi + + +@%:@ Check whether --with-tiff-includes was given. +if test "${with_tiff_includes+set}" = set; then : + withval=$with_tiff_includes; +fi + + +@%:@ Check whether --with-tiff-libs was given. +if test "${with_tiff_libs+set}" = set; then : + withval=$with_tiff_libs; +fi + + + if test "x$with_tiff" = "x"; then with_tiff=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_tiff" = "x"; then with_tiff="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_tiff" = "x"; then with_tiff="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_tiff = "xno"; then + have_tiff="no (forced)" +else + if test -d "$with_tiff_includes"; then + CFLAGS="-I$with_tiff_includes $CFLAGS" + CPPFLAGS="-I$with_tiff_includes $CPPFLAGS" + CXXFLAGS="-I$with_tiff_includes $CXXFLAGS" + fi + if test -d "$with_tiff_libs"; then + LIBS="-L$with_tiff_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_tiff_TIFFOpen) >/dev/null 2>&1 && unset ac_cv_lib_tiff_TIFFOpen + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_TIFF_CFLAGS" >&5 +$as_echo_n "checking for PKG_TIFF_CFLAGS... " >&6; } +if ${pkg_cv_PKG_TIFF_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_TIFF_CFLAGS_set" = "xset"; then + pkg_cv_PKG_TIFF_CFLAGS=$ac_cv_env_PKG_TIFF_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"tiff\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "tiff" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_TIFF_CFLAGS=`$PKG_CONFIG --cflags "tiff" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_TIFF_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_TIFF_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_TIFF_LIBS" >&5 +$as_echo_n "checking for PKG_TIFF_LIBS... " >&6; } +if ${pkg_cv_PKG_TIFF_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_TIFF_LIBS_set" = "xset"; then + pkg_cv_PKG_TIFF_LIBS=$ac_cv_env_PKG_TIFF_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"tiff\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "tiff" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_TIFF_LIBS=`$PKG_CONFIG --libs "tiff" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_TIFF_LIBS" >&5 +$as_echo "$pkg_cv_PKG_TIFF_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_TIFF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tiff"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_TIFF_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_TIFF_CFLAGS=$pkg_cv_PKG_TIFF_CFLAGS + PKG_TIFF_LIBS=$pkg_cv_PKG_TIFF_LIBS + ac_cv_lib_tiff_TIFFOpen=yes +fi +if test "x${PKG_TIFF_CFLAGS}" != "x"; then + + for element in "${PKG_TIFF_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_TIFF_LIBS}" != "x"; then + PKG_LIBS="${PKG_TIFF_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_tiff_TIFFOpen" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tiff-config" >&5 +$as_echo_n "checking for tiff-config... " >&6; } + gem_check_lib_pkgconfig_TIFF="" + if test "xtiff" != "x"; then + gem_check_lib_pkgconfig_TIFF="tiff"-config + if which -- "$gem_check_lib_pkgconfig_TIFF" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_TIFF=`which "tiff"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_TIFF="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_TIFF" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_TIFF_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_TIFF --cflags >/dev/null 2>&1; then + PKG_TIFF_CFLAGS=$(${gem_check_lib_pkgconfig_TIFF} --cflags) + PKG_CFLAGS="$PKG_TIFF_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_TIFF_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_TIFF --plugin-libs >/dev/null 2>&1; then + PKG_TIFF_LIBS=$(${gem_check_lib_pkgconfig_TIFF} --plugin-libs) + else + if $gem_check_lib_pkgconfig_TIFF --libs >/dev/null 2>&1; then + PKG_TIFF_LIBS=$(${gem_check_lib_pkgconfig_TIFF} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_TIFF_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 +$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } +if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltiff $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char TIFFOpen (); +int +main () +{ +return TIFFOpen (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_tiff_TIFFOpen=yes +else + ac_cv_lib_tiff_TIFFOpen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 +$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } +if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBTIFF 1 +_ACEOF + + LIBS="-ltiff $LIBS" + +fi + + PKG_TIFF_LIBS="-ltiff" + else + PKG_LIBS="${PKG_TIFF_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_tiff_TIFFOpen" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBTIFF 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBTIFF 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_TIFFOPEN 1 +_ACEOF + + GEM_LIB_TIFF_CFLAGS=${PKG_TIFF_CFLAGS} + GEM_LIB_TIFF_LIBS=${PKG_TIFF_LIBS} + have_tiff="yes" + with_tiff="no" + + +else + + have_tiff="no" + + +fi + +fi + if test "x${have_tiff}" = "xyes"; then + HAVE_LIB_TIFF_TRUE= + HAVE_LIB_TIFF_FALSE='#' +else + HAVE_LIB_TIFF_TRUE='#' + HAVE_LIB_TIFF_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-jpeg was given. +if test "${with_jpeg+set}" = set; then : + withval=$with_jpeg; +fi + + +@%:@ Check whether --with-jpeg-includes was given. +if test "${with_jpeg_includes+set}" = set; then : + withval=$with_jpeg_includes; +fi + + +@%:@ Check whether --with-jpeg-libs was given. +if test "${with_jpeg_libs+set}" = set; then : + withval=$with_jpeg_libs; +fi + + + if test "x$with_jpeg" = "x"; then with_jpeg=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_jpeg" = "x"; then with_jpeg="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_jpeg" = "x"; then with_jpeg="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_jpeg = "xno"; then + have_jpeg="no (forced)" +else + if test -d "$with_jpeg_includes"; then + CFLAGS="-I$with_jpeg_includes $CFLAGS" + CPPFLAGS="-I$with_jpeg_includes $CPPFLAGS" + CXXFLAGS="-I$with_jpeg_includes $CXXFLAGS" + fi + if test -d "$with_jpeg_libs"; then + LIBS="-L$with_jpeg_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_jpeg_jpeg_read_header) >/dev/null 2>&1 && unset ac_cv_lib_jpeg_jpeg_read_header + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_JPEG_CFLAGS" >&5 +$as_echo_n "checking for PKG_JPEG_CFLAGS... " >&6; } +if ${pkg_cv_PKG_JPEG_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_JPEG_CFLAGS_set" = "xset"; then + pkg_cv_PKG_JPEG_CFLAGS=$ac_cv_env_PKG_JPEG_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"jpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "jpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_JPEG_CFLAGS=`$PKG_CONFIG --cflags "jpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_JPEG_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_JPEG_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_JPEG_LIBS" >&5 +$as_echo_n "checking for PKG_JPEG_LIBS... " >&6; } +if ${pkg_cv_PKG_JPEG_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_JPEG_LIBS_set" = "xset"; then + pkg_cv_PKG_JPEG_LIBS=$ac_cv_env_PKG_JPEG_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"jpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "jpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_JPEG_LIBS=`$PKG_CONFIG --libs "jpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_JPEG_LIBS" >&5 +$as_echo "$pkg_cv_PKG_JPEG_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_JPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jpeg"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_JPEG_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_JPEG_CFLAGS=$pkg_cv_PKG_JPEG_CFLAGS + PKG_JPEG_LIBS=$pkg_cv_PKG_JPEG_LIBS + ac_cv_lib_jpeg_jpeg_read_header=yes +fi +if test "x${PKG_JPEG_CFLAGS}" != "x"; then + + for element in "${PKG_JPEG_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_JPEG_LIBS}" != "x"; then + PKG_LIBS="${PKG_JPEG_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_jpeg_jpeg_read_header" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg-config" >&5 +$as_echo_n "checking for jpeg-config... " >&6; } + gem_check_lib_pkgconfig_JPEG="" + if test "xjpeg" != "x"; then + gem_check_lib_pkgconfig_JPEG="jpeg"-config + if which -- "$gem_check_lib_pkgconfig_JPEG" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_JPEG=`which "jpeg"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_JPEG="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_JPEG" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_JPEG_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_JPEG --cflags >/dev/null 2>&1; then + PKG_JPEG_CFLAGS=$(${gem_check_lib_pkgconfig_JPEG} --cflags) + PKG_CFLAGS="$PKG_JPEG_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_JPEG_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_JPEG --plugin-libs >/dev/null 2>&1; then + PKG_JPEG_LIBS=$(${gem_check_lib_pkgconfig_JPEG} --plugin-libs) + else + if $gem_check_lib_pkgconfig_JPEG --libs >/dev/null 2>&1; then + PKG_JPEG_LIBS=$(${gem_check_lib_pkgconfig_JPEG} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_JPEG_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 +$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } +if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ljpeg $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char jpeg_read_header (); +int +main () +{ +return jpeg_read_header (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_jpeg_jpeg_read_header=yes +else + ac_cv_lib_jpeg_jpeg_read_header=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 +$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } +if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBJPEG 1 +_ACEOF + + LIBS="-ljpeg $LIBS" + +fi + + PKG_JPEG_LIBS="-ljpeg" + else + PKG_LIBS="${PKG_JPEG_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_jpeg_jpeg_read_header" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBJPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBJPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_JPEG_READ_HEADER 1 +_ACEOF + + GEM_LIB_JPEG_CFLAGS=${PKG_JPEG_CFLAGS} + GEM_LIB_JPEG_LIBS=${PKG_JPEG_LIBS} + have_jpeg="yes" + with_jpeg="no" + + +else + + have_jpeg="no" + + +fi + +fi + if test "x${have_jpeg}" = "xyes"; then + HAVE_LIB_JPEG_TRUE= + HAVE_LIB_JPEG_FALSE='#' +else + HAVE_LIB_JPEG_TRUE='#' + HAVE_LIB_JPEG_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + + + + + +@%:@ Check whether --with-ftgl was given. +if test "${with_ftgl+set}" = set; then : + withval=$with_ftgl; +fi + + +@%:@ Check whether --with-ftgl-includes was given. +if test "${with_ftgl_includes+set}" = set; then : + withval=$with_ftgl_includes; +fi + + +@%:@ Check whether --with-ftgl-libs was given. +if test "${with_ftgl_libs+set}" = set; then : + withval=$with_ftgl_libs; +fi + + + if test "x$with_ftgl" = "x"; then with_ftgl=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_ftgl" = "x"; then with_ftgl="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_ftgl" = "x"; then with_ftgl="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_ftgl = "xno"; then + have_ftgl="no (forced)" +else + if test -d "$with_ftgl_includes"; then + CFLAGS="-I$with_ftgl_includes $CFLAGS" + CPPFLAGS="-I$with_ftgl_includes $CPPFLAGS" + CXXFLAGS="-I$with_ftgl_includes $CXXFLAGS" + fi + if test -d "$with_ftgl_libs"; then + LIBS="-L$with_ftgl_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_ftgl_main) >/dev/null 2>&1 && unset ac_cv_lib_ftgl_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FTGL_CFLAGS" >&5 +$as_echo_n "checking for PKG_FTGL_CFLAGS... " >&6; } +if ${pkg_cv_PKG_FTGL_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FTGL_CFLAGS_set" = "xset"; then + pkg_cv_PKG_FTGL_CFLAGS=$ac_cv_env_PKG_FTGL_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ftgl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ftgl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FTGL_CFLAGS=`$PKG_CONFIG --cflags "ftgl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FTGL_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_FTGL_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FTGL_LIBS" >&5 +$as_echo_n "checking for PKG_FTGL_LIBS... " >&6; } +if ${pkg_cv_PKG_FTGL_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FTGL_LIBS_set" = "xset"; then + pkg_cv_PKG_FTGL_LIBS=$ac_cv_env_PKG_FTGL_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ftgl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ftgl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FTGL_LIBS=`$PKG_CONFIG --libs "ftgl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FTGL_LIBS" >&5 +$as_echo "$pkg_cv_PKG_FTGL_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_FTGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ftgl"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_FTGL_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_FTGL_CFLAGS=$pkg_cv_PKG_FTGL_CFLAGS + PKG_FTGL_LIBS=$pkg_cv_PKG_FTGL_LIBS + ac_cv_lib_ftgl_main=yes +fi +if test "x${PKG_FTGL_CFLAGS}" != "x"; then + + for element in "${PKG_FTGL_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_FTGL_LIBS}" != "x"; then + PKG_LIBS="${PKG_FTGL_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_ftgl_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftgl-config" >&5 +$as_echo_n "checking for ftgl-config... " >&6; } + gem_check_lib_pkgconfig_FTGL="" + if test "xftgl" != "x"; then + gem_check_lib_pkgconfig_FTGL="ftgl"-config + if which -- "$gem_check_lib_pkgconfig_FTGL" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_FTGL=`which "ftgl"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_FTGL="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_FTGL" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_FTGL_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_FTGL --cflags >/dev/null 2>&1; then + PKG_FTGL_CFLAGS=$(${gem_check_lib_pkgconfig_FTGL} --cflags) + PKG_CFLAGS="$PKG_FTGL_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_FTGL_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_FTGL --plugin-libs >/dev/null 2>&1; then + PKG_FTGL_LIBS=$(${gem_check_lib_pkgconfig_FTGL} --plugin-libs) + else + if $gem_check_lib_pkgconfig_FTGL --libs >/dev/null 2>&1; then + PKG_FTGL_LIBS=$(${gem_check_lib_pkgconfig_FTGL} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_FTGL_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lftgl" >&5 +$as_echo_n "checking for main in -lftgl... " >&6; } +if ${ac_cv_lib_ftgl_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lftgl -lfreetype $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ftgl_main=yes +else + ac_cv_lib_ftgl_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftgl_main" >&5 +$as_echo "$ac_cv_lib_ftgl_main" >&6; } +if test "x$ac_cv_lib_ftgl_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFTGL 1 +_ACEOF + + LIBS="-lftgl $LIBS" + +fi + + PKG_FTGL_LIBS="-lftgl" + else + PKG_LIBS="${PKG_FTGL_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_ftgl_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFTGL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFTGL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_FTGL_CFLAGS=${PKG_FTGL_CFLAGS} + GEM_LIB_FTGL_LIBS=${PKG_FTGL_LIBS} + have_ftgl="yes" + with_ftgl="no" + + +else + + have_ftgl="no" + + +fi + +fi + if test "x${have_ftgl}" = "xyes"; then + HAVE_LIB_FTGL_TRUE= + HAVE_LIB_FTGL_FALSE='#' +else + HAVE_LIB_FTGL_TRUE='#' + HAVE_LIB_FTGL_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +tmp_gem_check_ftgl_cflags="$CFLAGS" +tmp_gem_check_ftgl_cxxflags="$CXXFLAGS" + +CFLAGS="$CFLAGS $GEM_LIB_FTGL_CFLAGS" +CXXFLAGS="$CXXFLAGS $GEM_LIB_FTGL_CFLAGS" +for ac_header in FTGL/ftgl.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "FTGL/ftgl.h" "ac_cv_header_FTGL_ftgl_h" "$ac_includes_default" +if test "x$ac_cv_header_FTGL_ftgl_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_FTGL_FTGL_H 1 +_ACEOF + +fi + +done + + +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" + + + + + + + + +@%:@ Check whether --with-fribidi was given. +if test "${with_fribidi+set}" = set; then : + withval=$with_fribidi; +fi + + +@%:@ Check whether --with-fribidi-includes was given. +if test "${with_fribidi_includes+set}" = set; then : + withval=$with_fribidi_includes; +fi + + +@%:@ Check whether --with-fribidi-libs was given. +if test "${with_fribidi_libs+set}" = set; then : + withval=$with_fribidi_libs; +fi + + + if test "x$with_fribidi" = "x"; then with_fribidi=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_fribidi" = "x"; then with_fribidi="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_fribidi" = "x"; then with_fribidi="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_fribidi = "xno"; then + have_fribidi="no (forced)" +else + if test -d "$with_fribidi_includes"; then + CFLAGS="-I$with_fribidi_includes $CFLAGS" + CPPFLAGS="-I$with_fribidi_includes $CPPFLAGS" + CXXFLAGS="-I$with_fribidi_includes $CXXFLAGS" + fi + if test -d "$with_fribidi_libs"; then + LIBS="-L$with_fribidi_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_fribidi_fribidi_log2vis) >/dev/null 2>&1 && unset ac_cv_lib_fribidi_fribidi_log2vis + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FRIBIDI_CFLAGS" >&5 +$as_echo_n "checking for PKG_FRIBIDI_CFLAGS... " >&6; } +if ${pkg_cv_PKG_FRIBIDI_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FRIBIDI_CFLAGS_set" = "xset"; then + pkg_cv_PKG_FRIBIDI_CFLAGS=$ac_cv_env_PKG_FRIBIDI_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"fribidi\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "fribidi" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FRIBIDI_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_FRIBIDI_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FRIBIDI_LIBS" >&5 +$as_echo_n "checking for PKG_FRIBIDI_LIBS... " >&6; } +if ${pkg_cv_PKG_FRIBIDI_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FRIBIDI_LIBS_set" = "xset"; then + pkg_cv_PKG_FRIBIDI_LIBS=$ac_cv_env_PKG_FRIBIDI_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"fribidi\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "fribidi" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FRIBIDI_LIBS" >&5 +$as_echo "$pkg_cv_PKG_FRIBIDI_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fribidi"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_FRIBIDI_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_FRIBIDI_CFLAGS=$pkg_cv_PKG_FRIBIDI_CFLAGS + PKG_FRIBIDI_LIBS=$pkg_cv_PKG_FRIBIDI_LIBS + ac_cv_lib_fribidi_fribidi_log2vis=yes +fi +if test "x${PKG_FRIBIDI_CFLAGS}" != "x"; then + + for element in "${PKG_FRIBIDI_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_FRIBIDI_LIBS}" != "x"; then + PKG_LIBS="${PKG_FRIBIDI_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_fribidi_fribidi_log2vis" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fribidi-config" >&5 +$as_echo_n "checking for fribidi-config... " >&6; } + gem_check_lib_pkgconfig_FRIBIDI="" + if test "xfribidi" != "x"; then + gem_check_lib_pkgconfig_FRIBIDI="fribidi"-config + if which -- "$gem_check_lib_pkgconfig_FRIBIDI" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_FRIBIDI=`which "fribidi"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_FRIBIDI="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_FRIBIDI" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_FRIBIDI_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_FRIBIDI --cflags >/dev/null 2>&1; then + PKG_FRIBIDI_CFLAGS=$(${gem_check_lib_pkgconfig_FRIBIDI} --cflags) + PKG_CFLAGS="$PKG_FRIBIDI_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_FRIBIDI_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_FRIBIDI --plugin-libs >/dev/null 2>&1; then + PKG_FRIBIDI_LIBS=$(${gem_check_lib_pkgconfig_FRIBIDI} --plugin-libs) + else + if $gem_check_lib_pkgconfig_FRIBIDI --libs >/dev/null 2>&1; then + PKG_FRIBIDI_LIBS=$(${gem_check_lib_pkgconfig_FRIBIDI} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_FRIBIDI_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fribidi_log2vis in -lfribidi" >&5 +$as_echo_n "checking for fribidi_log2vis in -lfribidi... " >&6; } +if ${ac_cv_lib_fribidi_fribidi_log2vis+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lfribidi $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char fribidi_log2vis (); +int +main () +{ +return fribidi_log2vis (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_fribidi_fribidi_log2vis=yes +else + ac_cv_lib_fribidi_fribidi_log2vis=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fribidi_fribidi_log2vis" >&5 +$as_echo "$ac_cv_lib_fribidi_fribidi_log2vis" >&6; } +if test "x$ac_cv_lib_fribidi_fribidi_log2vis" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFRIBIDI 1 +_ACEOF + + LIBS="-lfribidi $LIBS" + +fi + + PKG_FRIBIDI_LIBS="-lfribidi" + else + PKG_LIBS="${PKG_FRIBIDI_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_fribidi_fribidi_log2vis" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFRIBIDI 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBFRIBIDI 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_FRIBIDI_LOG2VIS 1 +_ACEOF + + GEM_LIB_FRIBIDI_CFLAGS=${PKG_FRIBIDI_CFLAGS} + GEM_LIB_FRIBIDI_LIBS=${PKG_FRIBIDI_LIBS} + have_fribidi="yes" + with_fribidi="no" + + +else + + have_fribidi="no" + + +fi + +fi + if test "x${have_fribidi}" = "xyes"; then + HAVE_LIB_FRIBIDI_TRUE= + HAVE_LIB_FRIBIDI_FALSE='#' +else + HAVE_LIB_FRIBIDI_TRUE='#' + HAVE_LIB_FRIBIDI_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +## film en/decoders + + + + + + + +@%:@ Check whether --with-avifile was given. +if test "${with_avifile+set}" = set; then : + withval=$with_avifile; +fi + + +@%:@ Check whether --with-avifile-includes was given. +if test "${with_avifile_includes+set}" = set; then : + withval=$with_avifile_includes; +fi + + +@%:@ Check whether --with-avifile-libs was given. +if test "${with_avifile_libs+set}" = set; then : + withval=$with_avifile_libs; +fi + + + if test "x$with_avifile" = "x"; then with_avifile=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_avifile" = "x"; then with_avifile="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_avifile" = "x"; then with_avifile="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_avifile = "xno"; then + have_avifile="no (forced)" +else + if test -d "$with_avifile_includes"; then + CFLAGS="-I$with_avifile_includes $CFLAGS" + CPPFLAGS="-I$with_avifile_includes $CPPFLAGS" + CXXFLAGS="-I$with_avifile_includes $CXXFLAGS" + fi + if test -d "$with_avifile_libs"; then + LIBS="-L$with_avifile_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_aviplay_CreateIAviReadFile) >/dev/null 2>&1 && unset ac_cv_lib_aviplay_CreateIAviReadFile + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_AVIFILE_CFLAGS" >&5 +$as_echo_n "checking for PKG_AVIFILE_CFLAGS... " >&6; } +if ${pkg_cv_PKG_AVIFILE_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_AVIFILE_CFLAGS_set" = "xset"; then + pkg_cv_PKG_AVIFILE_CFLAGS=$ac_cv_env_PKG_AVIFILE_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"avifile\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "avifile" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_AVIFILE_CFLAGS=`$PKG_CONFIG --cflags "avifile" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_AVIFILE_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_AVIFILE_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_AVIFILE_LIBS" >&5 +$as_echo_n "checking for PKG_AVIFILE_LIBS... " >&6; } +if ${pkg_cv_PKG_AVIFILE_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_AVIFILE_LIBS_set" = "xset"; then + pkg_cv_PKG_AVIFILE_LIBS=$ac_cv_env_PKG_AVIFILE_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"avifile\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "avifile" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_AVIFILE_LIBS=`$PKG_CONFIG --libs "avifile" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_AVIFILE_LIBS" >&5 +$as_echo "$pkg_cv_PKG_AVIFILE_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_AVIFILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "avifile"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_AVIFILE_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_AVIFILE_CFLAGS=$pkg_cv_PKG_AVIFILE_CFLAGS + PKG_AVIFILE_LIBS=$pkg_cv_PKG_AVIFILE_LIBS + ac_cv_lib_aviplay_CreateIAviReadFile=yes +fi +if test "x${PKG_AVIFILE_CFLAGS}" != "x"; then + + for element in "${PKG_AVIFILE_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_AVIFILE_LIBS}" != "x"; then + PKG_LIBS="${PKG_AVIFILE_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_aviplay_CreateIAviReadFile" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avifile-config" >&5 +$as_echo_n "checking for avifile-config... " >&6; } + gem_check_lib_pkgconfig_AVIFILE="" + if test "xavifile" != "x"; then + gem_check_lib_pkgconfig_AVIFILE="avifile"-config + if which -- "$gem_check_lib_pkgconfig_AVIFILE" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_AVIFILE=`which "avifile"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_AVIFILE="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_AVIFILE" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_AVIFILE_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_AVIFILE --cflags >/dev/null 2>&1; then + PKG_AVIFILE_CFLAGS=$(${gem_check_lib_pkgconfig_AVIFILE} --cflags) + PKG_CFLAGS="$PKG_AVIFILE_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_AVIFILE_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_AVIFILE --plugin-libs >/dev/null 2>&1; then + PKG_AVIFILE_LIBS=$(${gem_check_lib_pkgconfig_AVIFILE} --plugin-libs) + else + if $gem_check_lib_pkgconfig_AVIFILE --libs >/dev/null 2>&1; then + PKG_AVIFILE_LIBS=$(${gem_check_lib_pkgconfig_AVIFILE} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_AVIFILE_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateIAviReadFile in -laviplay" >&5 +$as_echo_n "checking for CreateIAviReadFile in -laviplay... " >&6; } +if ${ac_cv_lib_aviplay_CreateIAviReadFile+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-laviplay $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char CreateIAviReadFile (); +int +main () +{ +return CreateIAviReadFile (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_aviplay_CreateIAviReadFile=yes +else + ac_cv_lib_aviplay_CreateIAviReadFile=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aviplay_CreateIAviReadFile" >&5 +$as_echo "$ac_cv_lib_aviplay_CreateIAviReadFile" >&6; } +if test "x$ac_cv_lib_aviplay_CreateIAviReadFile" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBAVIPLAY 1 +_ACEOF + + LIBS="-laviplay $LIBS" + +fi + + PKG_AVIFILE_LIBS="-laviplay" + else + PKG_LIBS="${PKG_AVIFILE_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_aviplay_CreateIAviReadFile" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBAVIFILE 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBAVIPLAY 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_CREATEIAVIREADFILE 1 +_ACEOF + + GEM_LIB_AVIFILE_CFLAGS=${PKG_AVIFILE_CFLAGS} + GEM_LIB_AVIFILE_LIBS=${PKG_AVIFILE_LIBS} + have_avifile="yes" + with_avifile="no" + + +else + + have_avifile="no" + + +fi + +fi + if test "x${have_avifile}" = "xyes"; then + HAVE_LIB_AVIFILE_TRUE= + HAVE_LIB_AVIFILE_FALSE='#' +else + HAVE_LIB_AVIFILE_TRUE='#' + HAVE_LIB_AVIFILE_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-gmerlin_avdec was given. +if test "${with_gmerlin_avdec+set}" = set; then : + withval=$with_gmerlin_avdec; +fi + + +@%:@ Check whether --with-gmerlin_avdec-includes was given. +if test "${with_gmerlin_avdec_includes+set}" = set; then : + withval=$with_gmerlin_avdec_includes; +fi + + +@%:@ Check whether --with-gmerlin_avdec-libs was given. +if test "${with_gmerlin_avdec_libs+set}" = set; then : + withval=$with_gmerlin_avdec_libs; +fi + + + if test "x$with_gmerlin_avdec" = "x"; then with_gmerlin_avdec=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_gmerlin_avdec" = "x"; then with_gmerlin_avdec="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_gmerlin_avdec" = "x"; then with_gmerlin_avdec="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_gmerlin_avdec = "xno"; then + have_gmerlin_avdec="no (forced)" +else + if test -d "$with_gmerlin_avdec_includes"; then + CFLAGS="-I$with_gmerlin_avdec_includes $CFLAGS" + CPPFLAGS="-I$with_gmerlin_avdec_includes $CPPFLAGS" + CXXFLAGS="-I$with_gmerlin_avdec_includes $CXXFLAGS" + fi + if test -d "$with_gmerlin_avdec_libs"; then + LIBS="-L$with_gmerlin_avdec_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_gmerlin_avdec_gavl_start) >/dev/null 2>&1 && unset ac_cv_lib_gmerlin_avdec_gavl_start + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GMERLIN_AVDEC_CFLAGS" >&5 +$as_echo_n "checking for PKG_GMERLIN_AVDEC_CFLAGS... " >&6; } +if ${pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GMERLIN_AVDEC_CFLAGS_set" = "xset"; then + pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS=$ac_cv_env_PKG_GMERLIN_AVDEC_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"gmerlin_avdec\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "gmerlin_avdec" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS=`$PKG_CONFIG --cflags "gmerlin_avdec" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GMERLIN_AVDEC_LIBS" >&5 +$as_echo_n "checking for PKG_GMERLIN_AVDEC_LIBS... " >&6; } +if ${pkg_cv_PKG_GMERLIN_AVDEC_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GMERLIN_AVDEC_LIBS_set" = "xset"; then + pkg_cv_PKG_GMERLIN_AVDEC_LIBS=$ac_cv_env_PKG_GMERLIN_AVDEC_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"gmerlin_avdec\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "gmerlin_avdec" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GMERLIN_AVDEC_LIBS=`$PKG_CONFIG --libs "gmerlin_avdec" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GMERLIN_AVDEC_LIBS" >&5 +$as_echo "$pkg_cv_PKG_GMERLIN_AVDEC_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_GMERLIN_AVDEC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gmerlin_avdec"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_GMERLIN_AVDEC_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_GMERLIN_AVDEC_CFLAGS=$pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS + PKG_GMERLIN_AVDEC_LIBS=$pkg_cv_PKG_GMERLIN_AVDEC_LIBS + ac_cv_lib_gmerlin_avdec_gavl_start=yes +fi +if test "x${PKG_GMERLIN_AVDEC_CFLAGS}" != "x"; then + + for element in "${PKG_GMERLIN_AVDEC_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_GMERLIN_AVDEC_LIBS}" != "x"; then + PKG_LIBS="${PKG_GMERLIN_AVDEC_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_gmerlin_avdec_gavl_start" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmerlin_avdec-config" >&5 +$as_echo_n "checking for gmerlin_avdec-config... " >&6; } + gem_check_lib_pkgconfig_GMERLIN_AVDEC="" + if test "xgmerlin_avdec" != "x"; then + gem_check_lib_pkgconfig_GMERLIN_AVDEC="gmerlin_avdec"-config + if which -- "$gem_check_lib_pkgconfig_GMERLIN_AVDEC" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_GMERLIN_AVDEC=`which "gmerlin_avdec"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_GMERLIN_AVDEC="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_GMERLIN_AVDEC" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_GMERLIN_AVDEC_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_GMERLIN_AVDEC --cflags >/dev/null 2>&1; then + PKG_GMERLIN_AVDEC_CFLAGS=$(${gem_check_lib_pkgconfig_GMERLIN_AVDEC} --cflags) + PKG_CFLAGS="$PKG_GMERLIN_AVDEC_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_GMERLIN_AVDEC_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_GMERLIN_AVDEC --plugin-libs >/dev/null 2>&1; then + PKG_GMERLIN_AVDEC_LIBS=$(${gem_check_lib_pkgconfig_GMERLIN_AVDEC} --plugin-libs) + else + if $gem_check_lib_pkgconfig_GMERLIN_AVDEC --libs >/dev/null 2>&1; then + PKG_GMERLIN_AVDEC_LIBS=$(${gem_check_lib_pkgconfig_GMERLIN_AVDEC} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_GMERLIN_AVDEC_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gavl_start in -lgmerlin_avdec" >&5 +$as_echo_n "checking for gavl_start in -lgmerlin_avdec... " >&6; } +if ${ac_cv_lib_gmerlin_avdec_gavl_start+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgmerlin_avdec $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gavl_start (); +int +main () +{ +return gavl_start (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_gmerlin_avdec_gavl_start=yes +else + ac_cv_lib_gmerlin_avdec_gavl_start=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmerlin_avdec_gavl_start" >&5 +$as_echo "$ac_cv_lib_gmerlin_avdec_gavl_start" >&6; } +if test "x$ac_cv_lib_gmerlin_avdec_gavl_start" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGMERLIN_AVDEC 1 +_ACEOF + + LIBS="-lgmerlin_avdec $LIBS" + +fi + + PKG_GMERLIN_AVDEC_LIBS="-lgmerlin_avdec" + else + PKG_LIBS="${PKG_GMERLIN_AVDEC_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_gmerlin_avdec_gavl_start" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGMERLIN_AVDEC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGMERLIN_AVDEC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GAVL_START 1 +_ACEOF + + GEM_LIB_GMERLIN_AVDEC_CFLAGS=${PKG_GMERLIN_AVDEC_CFLAGS} + GEM_LIB_GMERLIN_AVDEC_LIBS=${PKG_GMERLIN_AVDEC_LIBS} + have_gmerlin_avdec="yes" + with_gmerlin_avdec="no" + + +else + + have_gmerlin_avdec="no" + + +fi + +fi + if test "x${have_gmerlin_avdec}" = "xyes"; then + HAVE_LIB_GMERLIN_AVDEC_TRUE= + HAVE_LIB_GMERLIN_AVDEC_FALSE='#' +else + HAVE_LIB_GMERLIN_AVDEC_TRUE='#' + HAVE_LIB_GMERLIN_AVDEC_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-mpeg was given. +if test "${with_mpeg+set}" = set; then : + withval=$with_mpeg; +fi + + +@%:@ Check whether --with-mpeg-includes was given. +if test "${with_mpeg_includes+set}" = set; then : + withval=$with_mpeg_includes; +fi + + +@%:@ Check whether --with-mpeg-libs was given. +if test "${with_mpeg_libs+set}" = set; then : + withval=$with_mpeg_libs; +fi + + + if test "x$with_mpeg" = "x"; then with_mpeg=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_mpeg" = "x"; then with_mpeg="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_mpeg" = "x"; then with_mpeg="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_mpeg = "xno"; then + have_mpeg="no (forced)" +else + if test -d "$with_mpeg_includes"; then + CFLAGS="-I$with_mpeg_includes $CFLAGS" + CPPFLAGS="-I$with_mpeg_includes $CPPFLAGS" + CXXFLAGS="-I$with_mpeg_includes $CXXFLAGS" + fi + if test -d "$with_mpeg_libs"; then + LIBS="-L$with_mpeg_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_mpeg_OpenMPEG) >/dev/null 2>&1 && unset ac_cv_lib_mpeg_OpenMPEG + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MPEG_CFLAGS" >&5 +$as_echo_n "checking for PKG_MPEG_CFLAGS... " >&6; } +if ${pkg_cv_PKG_MPEG_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MPEG_CFLAGS_set" = "xset"; then + pkg_cv_PKG_MPEG_CFLAGS=$ac_cv_env_PKG_MPEG_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"mpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "mpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MPEG_CFLAGS=`$PKG_CONFIG --cflags "mpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MPEG_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_MPEG_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MPEG_LIBS" >&5 +$as_echo_n "checking for PKG_MPEG_LIBS... " >&6; } +if ${pkg_cv_PKG_MPEG_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MPEG_LIBS_set" = "xset"; then + pkg_cv_PKG_MPEG_LIBS=$ac_cv_env_PKG_MPEG_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"mpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "mpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MPEG_LIBS=`$PKG_CONFIG --libs "mpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MPEG_LIBS" >&5 +$as_echo "$pkg_cv_PKG_MPEG_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_MPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mpeg"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_MPEG_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_MPEG_CFLAGS=$pkg_cv_PKG_MPEG_CFLAGS + PKG_MPEG_LIBS=$pkg_cv_PKG_MPEG_LIBS + ac_cv_lib_mpeg_OpenMPEG=yes +fi +if test "x${PKG_MPEG_CFLAGS}" != "x"; then + + for element in "${PKG_MPEG_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_MPEG_LIBS}" != "x"; then + PKG_LIBS="${PKG_MPEG_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_mpeg_OpenMPEG" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpeg-config" >&5 +$as_echo_n "checking for mpeg-config... " >&6; } + gem_check_lib_pkgconfig_MPEG="" + if test "xmpeg" != "x"; then + gem_check_lib_pkgconfig_MPEG="mpeg"-config + if which -- "$gem_check_lib_pkgconfig_MPEG" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_MPEG=`which "mpeg"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_MPEG="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_MPEG" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_MPEG_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_MPEG --cflags >/dev/null 2>&1; then + PKG_MPEG_CFLAGS=$(${gem_check_lib_pkgconfig_MPEG} --cflags) + PKG_CFLAGS="$PKG_MPEG_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_MPEG_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_MPEG --plugin-libs >/dev/null 2>&1; then + PKG_MPEG_LIBS=$(${gem_check_lib_pkgconfig_MPEG} --plugin-libs) + else + if $gem_check_lib_pkgconfig_MPEG --libs >/dev/null 2>&1; then + PKG_MPEG_LIBS=$(${gem_check_lib_pkgconfig_MPEG} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_MPEG_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMPEG in -lmpeg" >&5 +$as_echo_n "checking for OpenMPEG in -lmpeg... " >&6; } +if ${ac_cv_lib_mpeg_OpenMPEG+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmpeg $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OpenMPEG (); +int +main () +{ +return OpenMPEG (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_mpeg_OpenMPEG=yes +else + ac_cv_lib_mpeg_OpenMPEG=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpeg_OpenMPEG" >&5 +$as_echo "$ac_cv_lib_mpeg_OpenMPEG" >&6; } +if test "x$ac_cv_lib_mpeg_OpenMPEG" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMPEG 1 +_ACEOF + + LIBS="-lmpeg $LIBS" + +fi + + PKG_MPEG_LIBS="-lmpeg" + else + PKG_LIBS="${PKG_MPEG_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_mpeg_OpenMPEG" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_OPENMPEG 1 +_ACEOF + + GEM_LIB_MPEG_CFLAGS=${PKG_MPEG_CFLAGS} + GEM_LIB_MPEG_LIBS=${PKG_MPEG_LIBS} + have_mpeg="yes" + with_mpeg="no" + + +else + + have_mpeg="no" + + +fi + +fi + if test "x${have_mpeg}" = "xyes"; then + HAVE_LIB_MPEG_TRUE= + HAVE_LIB_MPEG_FALSE='#' +else + HAVE_LIB_MPEG_TRUE='#' + HAVE_LIB_MPEG_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-libmpeg3 was given. +if test "${with_libmpeg3+set}" = set; then : + withval=$with_libmpeg3; +fi + + +@%:@ Check whether --with-libmpeg3-includes was given. +if test "${with_libmpeg3_includes+set}" = set; then : + withval=$with_libmpeg3_includes; +fi + + +@%:@ Check whether --with-libmpeg3-libs was given. +if test "${with_libmpeg3_libs+set}" = set; then : + withval=$with_libmpeg3_libs; +fi + + + if test "x$with_libmpeg3" = "x"; then with_libmpeg3=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libmpeg3" = "x"; then with_libmpeg3="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libmpeg3" = "x"; then with_libmpeg3="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libmpeg3 = "xno"; then + have_libmpeg3="no (forced)" +else + if test -d "$with_libmpeg3_includes"; then + CFLAGS="-I$with_libmpeg3_includes $CFLAGS" + CPPFLAGS="-I$with_libmpeg3_includes $CPPFLAGS" + CXXFLAGS="-I$with_libmpeg3_includes $CXXFLAGS" + fi + if test -d "$with_libmpeg3_libs"; then + LIBS="-L$with_libmpeg3_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_mpeg3_mpeg3_check_sig) >/dev/null 2>&1 && unset ac_cv_lib_mpeg3_mpeg3_check_sig + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBMPEG3_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBMPEG3_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBMPEG3_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBMPEG3_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBMPEG3_CFLAGS=$ac_cv_env_PKG_LIBMPEG3_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libmpeg3\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libmpeg3" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBMPEG3_CFLAGS=`$PKG_CONFIG --cflags "libmpeg3" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBMPEG3_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBMPEG3_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBMPEG3_LIBS" >&5 +$as_echo_n "checking for PKG_LIBMPEG3_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBMPEG3_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBMPEG3_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBMPEG3_LIBS=$ac_cv_env_PKG_LIBMPEG3_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libmpeg3\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libmpeg3" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBMPEG3_LIBS=`$PKG_CONFIG --libs "libmpeg3" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBMPEG3_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBMPEG3_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBMPEG3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmpeg3"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBMPEG3_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBMPEG3_CFLAGS=$pkg_cv_PKG_LIBMPEG3_CFLAGS + PKG_LIBMPEG3_LIBS=$pkg_cv_PKG_LIBMPEG3_LIBS + ac_cv_lib_mpeg3_mpeg3_check_sig=yes +fi +if test "x${PKG_LIBMPEG3_CFLAGS}" != "x"; then + + for element in "${PKG_LIBMPEG3_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBMPEG3_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBMPEG3_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_mpeg3_mpeg3_check_sig" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpeg3-config" >&5 +$as_echo_n "checking for libmpeg3-config... " >&6; } + gem_check_lib_pkgconfig_LIBMPEG3="" + if test "xlibmpeg3" != "x"; then + gem_check_lib_pkgconfig_LIBMPEG3="libmpeg3"-config + if which -- "$gem_check_lib_pkgconfig_LIBMPEG3" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBMPEG3=`which "libmpeg3"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBMPEG3="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBMPEG3" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBMPEG3_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBMPEG3 --cflags >/dev/null 2>&1; then + PKG_LIBMPEG3_CFLAGS=$(${gem_check_lib_pkgconfig_LIBMPEG3} --cflags) + PKG_CFLAGS="$PKG_LIBMPEG3_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBMPEG3_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBMPEG3 --plugin-libs >/dev/null 2>&1; then + PKG_LIBMPEG3_LIBS=$(${gem_check_lib_pkgconfig_LIBMPEG3} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBMPEG3 --libs >/dev/null 2>&1; then + PKG_LIBMPEG3_LIBS=$(${gem_check_lib_pkgconfig_LIBMPEG3} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBMPEG3_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpeg3_check_sig in -lmpeg3" >&5 +$as_echo_n "checking for mpeg3_check_sig in -lmpeg3... " >&6; } +if ${ac_cv_lib_mpeg3_mpeg3_check_sig+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmpeg3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mpeg3_check_sig (); +int +main () +{ +return mpeg3_check_sig (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_mpeg3_mpeg3_check_sig=yes +else + ac_cv_lib_mpeg3_mpeg3_check_sig=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpeg3_mpeg3_check_sig" >&5 +$as_echo "$ac_cv_lib_mpeg3_mpeg3_check_sig" >&6; } +if test "x$ac_cv_lib_mpeg3_mpeg3_check_sig" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMPEG3 1 +_ACEOF + + LIBS="-lmpeg3 $LIBS" + +fi + + PKG_LIBMPEG3_LIBS="-lmpeg3" + else + PKG_LIBS="${PKG_LIBMPEG3_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_mpeg3_mpeg3_check_sig" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBMPEG3 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBMPEG3 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MPEG3_CHECK_SIG 1 +_ACEOF + + GEM_LIB_LIBMPEG3_CFLAGS=${PKG_LIBMPEG3_CFLAGS} + GEM_LIB_LIBMPEG3_LIBS=${PKG_LIBMPEG3_LIBS} + have_libmpeg3="yes" + with_libmpeg3="no" + + +else + + have_libmpeg3="no" + + +fi + +fi + if test "x${have_libmpeg3}" = "xyes"; then + HAVE_LIB_LIBMPEG3_TRUE= + HAVE_LIB_LIBMPEG3_FALSE='#' +else + HAVE_LIB_LIBMPEG3_TRUE='#' + HAVE_LIB_LIBMPEG3_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-libquicktime was given. +if test "${with_libquicktime+set}" = set; then : + withval=$with_libquicktime; +fi + + +@%:@ Check whether --with-libquicktime-includes was given. +if test "${with_libquicktime_includes+set}" = set; then : + withval=$with_libquicktime_includes; +fi + + +@%:@ Check whether --with-libquicktime-libs was given. +if test "${with_libquicktime_libs+set}" = set; then : + withval=$with_libquicktime_libs; +fi + + + if test "x$with_libquicktime" = "x"; then with_libquicktime=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libquicktime" = "x"; then with_libquicktime="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libquicktime" = "x"; then with_libquicktime="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libquicktime = "xno"; then + have_libquicktime="no (forced)" +else + if test -d "$with_libquicktime_includes"; then + CFLAGS="-I$with_libquicktime_includes $CFLAGS" + CPPFLAGS="-I$with_libquicktime_includes $CPPFLAGS" + CXXFLAGS="-I$with_libquicktime_includes $CXXFLAGS" + fi + if test -d "$with_libquicktime_libs"; then + LIBS="-L$with_libquicktime_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_quicktime_quicktime_init) >/dev/null 2>&1 && unset ac_cv_lib_quicktime_quicktime_init + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBQUICKTIME_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBQUICKTIME_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBQUICKTIME_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBQUICKTIME_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBQUICKTIME_CFLAGS=$ac_cv_env_PKG_LIBQUICKTIME_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libquicktime\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libquicktime" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBQUICKTIME_CFLAGS=`$PKG_CONFIG --cflags "libquicktime" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBQUICKTIME_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBQUICKTIME_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBQUICKTIME_LIBS" >&5 +$as_echo_n "checking for PKG_LIBQUICKTIME_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBQUICKTIME_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBQUICKTIME_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBQUICKTIME_LIBS=$ac_cv_env_PKG_LIBQUICKTIME_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libquicktime\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libquicktime" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBQUICKTIME_LIBS=`$PKG_CONFIG --libs "libquicktime" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBQUICKTIME_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBQUICKTIME_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBQUICKTIME_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libquicktime"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBQUICKTIME_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBQUICKTIME_CFLAGS=$pkg_cv_PKG_LIBQUICKTIME_CFLAGS + PKG_LIBQUICKTIME_LIBS=$pkg_cv_PKG_LIBQUICKTIME_LIBS + ac_cv_lib_quicktime_quicktime_init=yes +fi +if test "x${PKG_LIBQUICKTIME_CFLAGS}" != "x"; then + + for element in "${PKG_LIBQUICKTIME_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBQUICKTIME_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBQUICKTIME_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libquicktime-config" >&5 +$as_echo_n "checking for libquicktime-config... " >&6; } + gem_check_lib_pkgconfig_LIBQUICKTIME="" + if test "xlibquicktime" != "x"; then + gem_check_lib_pkgconfig_LIBQUICKTIME="libquicktime"-config + if which -- "$gem_check_lib_pkgconfig_LIBQUICKTIME" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBQUICKTIME=`which "libquicktime"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBQUICKTIME="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBQUICKTIME" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBQUICKTIME_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBQUICKTIME --cflags >/dev/null 2>&1; then + PKG_LIBQUICKTIME_CFLAGS=$(${gem_check_lib_pkgconfig_LIBQUICKTIME} --cflags) + PKG_CFLAGS="$PKG_LIBQUICKTIME_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBQUICKTIME_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBQUICKTIME --plugin-libs >/dev/null 2>&1; then + PKG_LIBQUICKTIME_LIBS=$(${gem_check_lib_pkgconfig_LIBQUICKTIME} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBQUICKTIME --libs >/dev/null 2>&1; then + PKG_LIBQUICKTIME_LIBS=$(${gem_check_lib_pkgconfig_LIBQUICKTIME} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBQUICKTIME_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quicktime_init in -lquicktime" >&5 +$as_echo_n "checking for quicktime_init in -lquicktime... " >&6; } +if ${ac_cv_lib_quicktime_quicktime_init+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lquicktime $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char quicktime_init (); +int +main () +{ +return quicktime_init (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_quicktime_quicktime_init=yes +else + ac_cv_lib_quicktime_quicktime_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quicktime_quicktime_init" >&5 +$as_echo "$ac_cv_lib_quicktime_quicktime_init" >&6; } +if test "x$ac_cv_lib_quicktime_quicktime_init" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBQUICKTIME 1 +_ACEOF + + LIBS="-lquicktime $LIBS" + +fi + + PKG_LIBQUICKTIME_LIBS="-lquicktime" + else + PKG_LIBS="${PKG_LIBQUICKTIME_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBQUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBQUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_QUICKTIME_INIT 1 +_ACEOF + + GEM_LIB_LIBQUICKTIME_CFLAGS=${PKG_LIBQUICKTIME_CFLAGS} + GEM_LIB_LIBQUICKTIME_LIBS=${PKG_LIBQUICKTIME_LIBS} + have_libquicktime="yes" + with_libquicktime="no" + + +else + + have_libquicktime="no" + + +fi + +fi + if test "x${have_libquicktime}" = "xyes"; then + HAVE_LIB_LIBQUICKTIME_TRUE= + HAVE_LIB_LIBQUICKTIME_FALSE='#' +else + HAVE_LIB_LIBQUICKTIME_TRUE='#' + HAVE_LIB_LIBQUICKTIME_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-lqt was given. +if test "${with_lqt+set}" = set; then : + withval=$with_lqt; +fi + + +@%:@ Check whether --with-lqt-includes was given. +if test "${with_lqt_includes+set}" = set; then : + withval=$with_lqt_includes; +fi + + +@%:@ Check whether --with-lqt-libs was given. +if test "${with_lqt_libs+set}" = set; then : + withval=$with_lqt_libs; +fi + + + if test "x$with_lqt" = "x"; then with_lqt=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_lqt" = "x"; then with_lqt="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_lqt" = "x"; then with_lqt="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_lqt = "xno"; then + have_lqt="no (forced)" +else + if test -d "$with_lqt_includes"; then + CFLAGS="-I$with_lqt_includes $CFLAGS" + CPPFLAGS="-I$with_lqt_includes $CPPFLAGS" + CXXFLAGS="-I$with_lqt_includes $CXXFLAGS" + fi + if test -d "$with_lqt_libs"; then + LIBS="-L$with_lqt_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_quicktime_quicktime_init) >/dev/null 2>&1 && unset ac_cv_lib_quicktime_quicktime_init + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LQT_CFLAGS" >&5 +$as_echo_n "checking for PKG_LQT_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LQT_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LQT_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LQT_CFLAGS=$ac_cv_env_PKG_LQT_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"lqt\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "lqt" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LQT_CFLAGS=`$PKG_CONFIG --cflags "lqt" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LQT_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LQT_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LQT_LIBS" >&5 +$as_echo_n "checking for PKG_LQT_LIBS... " >&6; } +if ${pkg_cv_PKG_LQT_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LQT_LIBS_set" = "xset"; then + pkg_cv_PKG_LQT_LIBS=$ac_cv_env_PKG_LQT_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"lqt\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "lqt" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LQT_LIBS=`$PKG_CONFIG --libs "lqt" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LQT_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LQT_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LQT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lqt"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LQT_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LQT_CFLAGS=$pkg_cv_PKG_LQT_CFLAGS + PKG_LQT_LIBS=$pkg_cv_PKG_LQT_LIBS + ac_cv_lib_quicktime_quicktime_init=yes +fi +if test "x${PKG_LQT_CFLAGS}" != "x"; then + + for element in "${PKG_LQT_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LQT_LIBS}" != "x"; then + PKG_LIBS="${PKG_LQT_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lqt-config" >&5 +$as_echo_n "checking for lqt-config... " >&6; } + gem_check_lib_pkgconfig_LQT="" + if test "xlqt" != "x"; then + gem_check_lib_pkgconfig_LQT="lqt"-config + if which -- "$gem_check_lib_pkgconfig_LQT" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LQT=`which "lqt"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LQT="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LQT" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LQT_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LQT --cflags >/dev/null 2>&1; then + PKG_LQT_CFLAGS=$(${gem_check_lib_pkgconfig_LQT} --cflags) + PKG_CFLAGS="$PKG_LQT_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LQT_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LQT --plugin-libs >/dev/null 2>&1; then + PKG_LQT_LIBS=$(${gem_check_lib_pkgconfig_LQT} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LQT --libs >/dev/null 2>&1; then + PKG_LQT_LIBS=$(${gem_check_lib_pkgconfig_LQT} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LQT_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quicktime_init in -lquicktime" >&5 +$as_echo_n "checking for quicktime_init in -lquicktime... " >&6; } +if ${ac_cv_lib_quicktime_quicktime_init+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lquicktime $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char quicktime_init (); +int +main () +{ +return quicktime_init (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_quicktime_quicktime_init=yes +else + ac_cv_lib_quicktime_quicktime_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quicktime_quicktime_init" >&5 +$as_echo "$ac_cv_lib_quicktime_quicktime_init" >&6; } +if test "x$ac_cv_lib_quicktime_quicktime_init" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBQUICKTIME 1 +_ACEOF + + LIBS="-lquicktime $LIBS" + +fi + + PKG_LQT_LIBS="-lquicktime" + else + PKG_LIBS="${PKG_LQT_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLQT 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBQUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_QUICKTIME_INIT 1 +_ACEOF + + GEM_LIB_LQT_CFLAGS=${PKG_LQT_CFLAGS} + GEM_LIB_LQT_LIBS=${PKG_LQT_LIBS} + have_lqt="yes" + with_lqt="no" + + +else + + have_lqt="no" + + +fi + +fi + if test "x${have_lqt}" = "xyes"; then + HAVE_LIB_LQT_TRUE= + HAVE_LIB_LQT_FALSE='#' +else + HAVE_LIB_LQT_TRUE='#' + HAVE_LIB_LQT_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +# special function in libquicktime +old_cflags=${CFLAGS} +old_ldflags=${LDFLAGS} +CFLAGS="${CFLAGS} $GEM_LIB_LIBQUICKTIME_CFLAGS $GEM_LIB_LQT_CFLAGS" +LDFLAGS="${LDFLAGS} $GEM_LIB_LIBQUICKTIME_LIBS $GEM_LIB_LQT_LIBS" +for ac_func in lqt_seek_video +do : + ac_fn_cxx_check_func "$LINENO" "lqt_seek_video" "ac_cv_func_lqt_seek_video" +if test "x$ac_cv_func_lqt_seek_video" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LQT_SEEK_VIDEO 1 +_ACEOF + +fi +done + +for ac_func in lqt_open_write +do : + ac_fn_cxx_check_func "$LINENO" "lqt_open_write" "ac_cv_func_lqt_open_write" +if test "x$ac_cv_func_lqt_open_write" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LQT_OPEN_WRITE 1 +_ACEOF + +fi +done + +CFLAGS=${old_cflags} +LDFLAGS=${old_ldflags} + +#video + + + + + + + +@%:@ Check whether --with-libdc1394_2 was given. +if test "${with_libdc1394_2+set}" = set; then : + withval=$with_libdc1394_2; +fi + + +@%:@ Check whether --with-libdc1394_2-includes was given. +if test "${with_libdc1394_2_includes+set}" = set; then : + withval=$with_libdc1394_2_includes; +fi + + +@%:@ Check whether --with-libdc1394_2-libs was given. +if test "${with_libdc1394_2_libs+set}" = set; then : + withval=$with_libdc1394_2_libs; +fi + + + if test "x$with_libdc1394_2" = "x"; then with_libdc1394_2=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libdc1394_2" = "x"; then with_libdc1394_2="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libdc1394_2" = "x"; then with_libdc1394_2="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libdc1394_2 = "xno"; then + have_libdc1394_2="no (forced)" +else + if test -d "$with_libdc1394_2_includes"; then + CFLAGS="-I$with_libdc1394_2_includes $CFLAGS" + CPPFLAGS="-I$with_libdc1394_2_includes $CPPFLAGS" + CXXFLAGS="-I$with_libdc1394_2_includes $CXXFLAGS" + fi + if test -d "$with_libdc1394_2_libs"; then + LIBS="-L$with_libdc1394_2_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_dc1394_main) >/dev/null 2>&1 && unset ac_cv_lib_dc1394_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDC1394_2_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBDC1394_2_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBDC1394_2_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDC1394_2_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBDC1394_2_CFLAGS=$ac_cv_env_PKG_LIBDC1394_2_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdc1394-2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdc1394-2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDC1394_2_CFLAGS=`$PKG_CONFIG --cflags "libdc1394-2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDC1394_2_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBDC1394_2_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDC1394_2_LIBS" >&5 +$as_echo_n "checking for PKG_LIBDC1394_2_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBDC1394_2_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDC1394_2_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBDC1394_2_LIBS=$ac_cv_env_PKG_LIBDC1394_2_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdc1394-2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdc1394-2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDC1394_2_LIBS=`$PKG_CONFIG --libs "libdc1394-2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDC1394_2_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBDC1394_2_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBDC1394_2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdc1394-2"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBDC1394_2_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBDC1394_2_CFLAGS=$pkg_cv_PKG_LIBDC1394_2_CFLAGS + PKG_LIBDC1394_2_LIBS=$pkg_cv_PKG_LIBDC1394_2_LIBS + ac_cv_lib_dc1394_main=yes +fi +if test "x${PKG_LIBDC1394_2_CFLAGS}" != "x"; then + + for element in "${PKG_LIBDC1394_2_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBDC1394_2_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBDC1394_2_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_dc1394_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdc1394-2-config" >&5 +$as_echo_n "checking for libdc1394-2-config... " >&6; } + gem_check_lib_pkgconfig_LIBDC1394_2="" + if test "xlibdc1394-2" != "x"; then + gem_check_lib_pkgconfig_LIBDC1394_2="libdc1394-2"-config + if which -- "$gem_check_lib_pkgconfig_LIBDC1394_2" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBDC1394_2=`which "libdc1394-2"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBDC1394_2="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBDC1394_2" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBDC1394_2_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDC1394_2 --cflags >/dev/null 2>&1; then + PKG_LIBDC1394_2_CFLAGS=$(${gem_check_lib_pkgconfig_LIBDC1394_2} --cflags) + PKG_CFLAGS="$PKG_LIBDC1394_2_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBDC1394_2_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDC1394_2 --plugin-libs >/dev/null 2>&1; then + PKG_LIBDC1394_2_LIBS=$(${gem_check_lib_pkgconfig_LIBDC1394_2} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBDC1394_2 --libs >/dev/null 2>&1; then + PKG_LIBDC1394_2_LIBS=$(${gem_check_lib_pkgconfig_LIBDC1394_2} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBDC1394_2_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldc1394" >&5 +$as_echo_n "checking for main in -ldc1394... " >&6; } +if ${ac_cv_lib_dc1394_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldc1394 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dc1394_main=yes +else + ac_cv_lib_dc1394_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dc1394_main" >&5 +$as_echo "$ac_cv_lib_dc1394_main" >&6; } +if test "x$ac_cv_lib_dc1394_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBDC1394 1 +_ACEOF + + LIBS="-ldc1394 $LIBS" + +fi + + PKG_LIBDC1394_2_LIBS="-ldc1394" + else + PKG_LIBS="${PKG_LIBDC1394_2_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_dc1394_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBDC1394_2 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBDC1394 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBDC1394_2_CFLAGS=${PKG_LIBDC1394_2_CFLAGS} + GEM_LIB_LIBDC1394_2_LIBS=${PKG_LIBDC1394_2_LIBS} + have_libdc1394_2="yes" + with_libdc1394_2="no" + + +else + + have_libdc1394_2="no" + + +fi + +fi + if test "x${have_libdc1394_2}" = "xyes"; then + HAVE_LIB_LIBDC1394_2_TRUE= + HAVE_LIB_LIBDC1394_2_FALSE='#' +else + HAVE_LIB_LIBDC1394_2_TRUE='#' + HAVE_LIB_LIBDC1394_2_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-libdv was given. +if test "${with_libdv+set}" = set; then : + withval=$with_libdv; +fi + + +@%:@ Check whether --with-libdv-includes was given. +if test "${with_libdv_includes+set}" = set; then : + withval=$with_libdv_includes; +fi + + +@%:@ Check whether --with-libdv-libs was given. +if test "${with_libdv_libs+set}" = set; then : + withval=$with_libdv_libs; +fi + + + if test "x$with_libdv" = "x"; then with_libdv=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libdv" = "x"; then with_libdv="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libdv" = "x"; then with_libdv="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libdv = "xno"; then + have_libdv="no (forced)" +else + if test -d "$with_libdv_includes"; then + CFLAGS="-I$with_libdv_includes $CFLAGS" + CPPFLAGS="-I$with_libdv_includes $CPPFLAGS" + CXXFLAGS="-I$with_libdv_includes $CXXFLAGS" + fi + if test -d "$with_libdv_libs"; then + LIBS="-L$with_libdv_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_dv_main) >/dev/null 2>&1 && unset ac_cv_lib_dv_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDV_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBDV_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBDV_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDV_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBDV_CFLAGS=$ac_cv_env_PKG_LIBDV_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdv\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdv" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDV_CFLAGS=`$PKG_CONFIG --cflags "libdv" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDV_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBDV_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDV_LIBS" >&5 +$as_echo_n "checking for PKG_LIBDV_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBDV_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDV_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBDV_LIBS=$ac_cv_env_PKG_LIBDV_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdv\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdv" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDV_LIBS=`$PKG_CONFIG --libs "libdv" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDV_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBDV_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBDV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdv"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBDV_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBDV_CFLAGS=$pkg_cv_PKG_LIBDV_CFLAGS + PKG_LIBDV_LIBS=$pkg_cv_PKG_LIBDV_LIBS + ac_cv_lib_dv_main=yes +fi +if test "x${PKG_LIBDV_CFLAGS}" != "x"; then + + for element in "${PKG_LIBDV_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBDV_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBDV_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_dv_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdv-config" >&5 +$as_echo_n "checking for libdv-config... " >&6; } + gem_check_lib_pkgconfig_LIBDV="" + if test "xlibdv" != "x"; then + gem_check_lib_pkgconfig_LIBDV="libdv"-config + if which -- "$gem_check_lib_pkgconfig_LIBDV" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBDV=`which "libdv"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBDV="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBDV" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBDV_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDV --cflags >/dev/null 2>&1; then + PKG_LIBDV_CFLAGS=$(${gem_check_lib_pkgconfig_LIBDV} --cflags) + PKG_CFLAGS="$PKG_LIBDV_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBDV_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDV --plugin-libs >/dev/null 2>&1; then + PKG_LIBDV_LIBS=$(${gem_check_lib_pkgconfig_LIBDV} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBDV --libs >/dev/null 2>&1; then + PKG_LIBDV_LIBS=$(${gem_check_lib_pkgconfig_LIBDV} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBDV_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldv" >&5 +$as_echo_n "checking for main in -ldv... " >&6; } +if ${ac_cv_lib_dv_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dv_main=yes +else + ac_cv_lib_dv_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dv_main" >&5 +$as_echo "$ac_cv_lib_dv_main" >&6; } +if test "x$ac_cv_lib_dv_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBDV 1 +_ACEOF + + LIBS="-ldv $LIBS" + +fi + + PKG_LIBDV_LIBS="-ldv" + else + PKG_LIBS="${PKG_LIBDV_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_dv_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBDV 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBDV 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBDV_CFLAGS=${PKG_LIBDV_CFLAGS} + GEM_LIB_LIBDV_LIBS=${PKG_LIBDV_LIBS} + have_libdv="yes" + with_libdv="no" + + +else + + have_libdv="no" + + +fi + +fi + if test "x${have_libdv}" = "xyes"; then + HAVE_LIB_LIBDV_TRUE= + HAVE_LIB_LIBDV_FALSE='#' +else + HAVE_LIB_LIBDV_TRUE='#' + HAVE_LIB_LIBDV_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-libraw1394 was given. +if test "${with_libraw1394+set}" = set; then : + withval=$with_libraw1394; +fi + + +@%:@ Check whether --with-libraw1394-includes was given. +if test "${with_libraw1394_includes+set}" = set; then : + withval=$with_libraw1394_includes; +fi + + +@%:@ Check whether --with-libraw1394-libs was given. +if test "${with_libraw1394_libs+set}" = set; then : + withval=$with_libraw1394_libs; +fi + + + if test "x$with_libraw1394" = "x"; then with_libraw1394=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libraw1394" = "x"; then with_libraw1394="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libraw1394" = "x"; then with_libraw1394="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libraw1394 = "xno"; then + have_libraw1394="no (forced)" +else + if test -d "$with_libraw1394_includes"; then + CFLAGS="-I$with_libraw1394_includes $CFLAGS" + CPPFLAGS="-I$with_libraw1394_includes $CPPFLAGS" + CXXFLAGS="-I$with_libraw1394_includes $CXXFLAGS" + fi + if test -d "$with_libraw1394_libs"; then + LIBS="-L$with_libraw1394_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_raw1394_main) >/dev/null 2>&1 && unset ac_cv_lib_raw1394_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBRAW1394_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBRAW1394_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBRAW1394_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBRAW1394_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBRAW1394_CFLAGS=$ac_cv_env_PKG_LIBRAW1394_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libraw1394\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libraw1394" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBRAW1394_CFLAGS=`$PKG_CONFIG --cflags "libraw1394" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBRAW1394_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBRAW1394_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBRAW1394_LIBS" >&5 +$as_echo_n "checking for PKG_LIBRAW1394_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBRAW1394_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBRAW1394_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBRAW1394_LIBS=$ac_cv_env_PKG_LIBRAW1394_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libraw1394\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libraw1394" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBRAW1394_LIBS=`$PKG_CONFIG --libs "libraw1394" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBRAW1394_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBRAW1394_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBRAW1394_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libraw1394"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBRAW1394_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBRAW1394_CFLAGS=$pkg_cv_PKG_LIBRAW1394_CFLAGS + PKG_LIBRAW1394_LIBS=$pkg_cv_PKG_LIBRAW1394_LIBS + ac_cv_lib_raw1394_main=yes +fi +if test "x${PKG_LIBRAW1394_CFLAGS}" != "x"; then + + for element in "${PKG_LIBRAW1394_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBRAW1394_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBRAW1394_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_raw1394_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraw1394-config" >&5 +$as_echo_n "checking for libraw1394-config... " >&6; } + gem_check_lib_pkgconfig_LIBRAW1394="" + if test "xlibraw1394" != "x"; then + gem_check_lib_pkgconfig_LIBRAW1394="libraw1394"-config + if which -- "$gem_check_lib_pkgconfig_LIBRAW1394" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBRAW1394=`which "libraw1394"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBRAW1394="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBRAW1394" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBRAW1394_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBRAW1394 --cflags >/dev/null 2>&1; then + PKG_LIBRAW1394_CFLAGS=$(${gem_check_lib_pkgconfig_LIBRAW1394} --cflags) + PKG_CFLAGS="$PKG_LIBRAW1394_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBRAW1394_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBRAW1394 --plugin-libs >/dev/null 2>&1; then + PKG_LIBRAW1394_LIBS=$(${gem_check_lib_pkgconfig_LIBRAW1394} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBRAW1394 --libs >/dev/null 2>&1; then + PKG_LIBRAW1394_LIBS=$(${gem_check_lib_pkgconfig_LIBRAW1394} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBRAW1394_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lraw1394" >&5 +$as_echo_n "checking for main in -lraw1394... " >&6; } +if ${ac_cv_lib_raw1394_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lraw1394 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_raw1394_main=yes +else + ac_cv_lib_raw1394_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raw1394_main" >&5 +$as_echo "$ac_cv_lib_raw1394_main" >&6; } +if test "x$ac_cv_lib_raw1394_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBRAW1394 1 +_ACEOF + + LIBS="-lraw1394 $LIBS" + +fi + + PKG_LIBRAW1394_LIBS="-lraw1394" + else + PKG_LIBS="${PKG_LIBRAW1394_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_raw1394_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBRAW1394 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBRAW1394 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBRAW1394_CFLAGS=${PKG_LIBRAW1394_CFLAGS} + GEM_LIB_LIBRAW1394_LIBS=${PKG_LIBRAW1394_LIBS} + have_libraw1394="yes" + with_libraw1394="no" + + +else + + have_libraw1394="no" + + +fi + +fi + if test "x${have_libraw1394}" = "xyes"; then + HAVE_LIB_LIBRAW1394_TRUE= + HAVE_LIB_LIBRAW1394_FALSE='#' +else + HAVE_LIB_LIBRAW1394_TRUE='#' + HAVE_LIB_LIBRAW1394_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +@%:@ Check whether --with-libiec61883 was given. +if test "${with_libiec61883+set}" = set; then : + withval=$with_libiec61883; +fi + + +@%:@ Check whether --with-libiec61883-includes was given. +if test "${with_libiec61883_includes+set}" = set; then : + withval=$with_libiec61883_includes; +fi + + +@%:@ Check whether --with-libiec61883-libs was given. +if test "${with_libiec61883_libs+set}" = set; then : + withval=$with_libiec61883_libs; +fi + + + if test "x$with_libiec61883" = "x"; then with_libiec61883=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libiec61883" = "x"; then with_libiec61883="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libiec61883" = "x"; then with_libiec61883="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libiec61883 = "xno"; then + have_libiec61883="no (forced)" +else + if test -d "$with_libiec61883_includes"; then + CFLAGS="-I$with_libiec61883_includes $CFLAGS" + CPPFLAGS="-I$with_libiec61883_includes $CPPFLAGS" + CXXFLAGS="-I$with_libiec61883_includes $CXXFLAGS" + fi + if test -d "$with_libiec61883_libs"; then + LIBS="-L$with_libiec61883_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_iec61883_main) >/dev/null 2>&1 && unset ac_cv_lib_iec61883_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBIEC61883_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBIEC61883_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBIEC61883_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBIEC61883_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBIEC61883_CFLAGS=$ac_cv_env_PKG_LIBIEC61883_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libiec61883\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libiec61883" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBIEC61883_CFLAGS=`$PKG_CONFIG --cflags "libiec61883" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBIEC61883_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBIEC61883_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBIEC61883_LIBS" >&5 +$as_echo_n "checking for PKG_LIBIEC61883_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBIEC61883_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBIEC61883_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBIEC61883_LIBS=$ac_cv_env_PKG_LIBIEC61883_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libiec61883\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libiec61883" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBIEC61883_LIBS=`$PKG_CONFIG --libs "libiec61883" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBIEC61883_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBIEC61883_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBIEC61883_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libiec61883"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBIEC61883_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBIEC61883_CFLAGS=$pkg_cv_PKG_LIBIEC61883_CFLAGS + PKG_LIBIEC61883_LIBS=$pkg_cv_PKG_LIBIEC61883_LIBS + ac_cv_lib_iec61883_main=yes +fi +if test "x${PKG_LIBIEC61883_CFLAGS}" != "x"; then + + for element in "${PKG_LIBIEC61883_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBIEC61883_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBIEC61883_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_iec61883_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiec61883-config" >&5 +$as_echo_n "checking for libiec61883-config... " >&6; } + gem_check_lib_pkgconfig_LIBIEC61883="" + if test "xlibiec61883" != "x"; then + gem_check_lib_pkgconfig_LIBIEC61883="libiec61883"-config + if which -- "$gem_check_lib_pkgconfig_LIBIEC61883" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBIEC61883=`which "libiec61883"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBIEC61883="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBIEC61883" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBIEC61883_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBIEC61883 --cflags >/dev/null 2>&1; then + PKG_LIBIEC61883_CFLAGS=$(${gem_check_lib_pkgconfig_LIBIEC61883} --cflags) + PKG_CFLAGS="$PKG_LIBIEC61883_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBIEC61883_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBIEC61883 --plugin-libs >/dev/null 2>&1; then + PKG_LIBIEC61883_LIBS=$(${gem_check_lib_pkgconfig_LIBIEC61883} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBIEC61883 --libs >/dev/null 2>&1; then + PKG_LIBIEC61883_LIBS=$(${gem_check_lib_pkgconfig_LIBIEC61883} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBIEC61883_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -liec61883" >&5 +$as_echo_n "checking for main in -liec61883... " >&6; } +if ${ac_cv_lib_iec61883_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-liec61883 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_iec61883_main=yes +else + ac_cv_lib_iec61883_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iec61883_main" >&5 +$as_echo "$ac_cv_lib_iec61883_main" >&6; } +if test "x$ac_cv_lib_iec61883_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBIEC61883 1 +_ACEOF + + LIBS="-liec61883 $LIBS" + +fi + + PKG_LIBIEC61883_LIBS="-liec61883" + else + PKG_LIBS="${PKG_LIBIEC61883_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_iec61883_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBIEC61883 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBIEC61883 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBIEC61883_CFLAGS=${PKG_LIBIEC61883_CFLAGS} + GEM_LIB_LIBIEC61883_LIBS=${PKG_LIBIEC61883_LIBS} + have_libiec61883="yes" + with_libiec61883="no" + + +else + + have_libiec61883="no" + + +fi + +fi + if test "x${have_libiec61883}" = "xyes"; then + HAVE_LIB_LIBIEC61883_TRUE= + HAVE_LIB_LIBIEC61883_FALSE='#' +else + HAVE_LIB_LIBIEC61883_TRUE='#' + HAVE_LIB_LIBIEC61883_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +for ac_header in vl/vl.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "vl/vl.h" "ac_cv_header_vl_vl_h" "$ac_includes_default" +if test "x$ac_cv_header_vl_vl_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_VL_VL_H 1 +_ACEOF + +fi + +done + + + + if test "x$with_ALL" = "xyes" && test "x${with_unicap}" = "x"; then with_unicap="yes"; fi + if test "x$with_ALL" = "xno" && test "x${with_unicap}" = "x"; then with_unicap="no"; fi + + +@%:@ Check whether --with-unicap was given. +if test "${with_unicap+set}" = set; then : + withval=$with_unicap; +else + + if test "xforce" != "x"; then with_unicap="yes"; fi + +fi + + + + + + + + + + +@%:@ Check whether --with-libunicap was given. +if test "${with_libunicap+set}" = set; then : + withval=$with_libunicap; +fi + + +@%:@ Check whether --with-libunicap-includes was given. +if test "${with_libunicap_includes+set}" = set; then : + withval=$with_libunicap_includes; +fi + + +@%:@ Check whether --with-libunicap-libs was given. +if test "${with_libunicap_libs+set}" = set; then : + withval=$with_libunicap_libs; +fi + + + if test "x$with_libunicap" = "x"; then with_libunicap=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libunicap" = "x"; then with_libunicap="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libunicap" = "x"; then with_libunicap="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libunicap = "xno"; then + have_libunicap="no (forced)" +else + if test -d "$with_libunicap_includes"; then + CFLAGS="-I$with_libunicap_includes $CFLAGS" + CPPFLAGS="-I$with_libunicap_includes $CPPFLAGS" + CXXFLAGS="-I$with_libunicap_includes $CXXFLAGS" + fi + if test -d "$with_libunicap_libs"; then + LIBS="-L$with_libunicap_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_unicap_unicap_check_version) >/dev/null 2>&1 && unset ac_cv_lib_unicap_unicap_check_version + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBUNICAP_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBUNICAP_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBUNICAP_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBUNICAP_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBUNICAP_CFLAGS=$ac_cv_env_PKG_LIBUNICAP_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libunicap\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libunicap" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBUNICAP_CFLAGS=`$PKG_CONFIG --cflags "libunicap" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBUNICAP_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBUNICAP_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBUNICAP_LIBS" >&5 +$as_echo_n "checking for PKG_LIBUNICAP_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBUNICAP_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBUNICAP_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBUNICAP_LIBS=$ac_cv_env_PKG_LIBUNICAP_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libunicap\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libunicap" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBUNICAP_LIBS=`$PKG_CONFIG --libs "libunicap" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBUNICAP_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBUNICAP_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBUNICAP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libunicap"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBUNICAP_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBUNICAP_CFLAGS=$pkg_cv_PKG_LIBUNICAP_CFLAGS + PKG_LIBUNICAP_LIBS=$pkg_cv_PKG_LIBUNICAP_LIBS + ac_cv_lib_unicap_unicap_check_version=yes +fi +if test "x${PKG_LIBUNICAP_CFLAGS}" != "x"; then + + for element in "${PKG_LIBUNICAP_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBUNICAP_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBUNICAP_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_unicap_unicap_check_version" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunicap-config" >&5 +$as_echo_n "checking for libunicap-config... " >&6; } + gem_check_lib_pkgconfig_LIBUNICAP="" + if test "xlibunicap" != "x"; then + gem_check_lib_pkgconfig_LIBUNICAP="libunicap"-config + if which -- "$gem_check_lib_pkgconfig_LIBUNICAP" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBUNICAP=`which "libunicap"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBUNICAP="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBUNICAP" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBUNICAP_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBUNICAP --cflags >/dev/null 2>&1; then + PKG_LIBUNICAP_CFLAGS=$(${gem_check_lib_pkgconfig_LIBUNICAP} --cflags) + PKG_CFLAGS="$PKG_LIBUNICAP_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBUNICAP_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBUNICAP --plugin-libs >/dev/null 2>&1; then + PKG_LIBUNICAP_LIBS=$(${gem_check_lib_pkgconfig_LIBUNICAP} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBUNICAP --libs >/dev/null 2>&1; then + PKG_LIBUNICAP_LIBS=$(${gem_check_lib_pkgconfig_LIBUNICAP} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBUNICAP_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unicap_check_version in -lunicap" >&5 +$as_echo_n "checking for unicap_check_version in -lunicap... " >&6; } +if ${ac_cv_lib_unicap_unicap_check_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lunicap $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char unicap_check_version (); +int +main () +{ +return unicap_check_version (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_unicap_unicap_check_version=yes +else + ac_cv_lib_unicap_unicap_check_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unicap_unicap_check_version" >&5 +$as_echo "$ac_cv_lib_unicap_unicap_check_version" >&6; } +if test "x$ac_cv_lib_unicap_unicap_check_version" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBUNICAP 1 +_ACEOF + + LIBS="-lunicap $LIBS" + +fi + + PKG_LIBUNICAP_LIBS="-lunicap" + else + PKG_LIBS="${PKG_LIBUNICAP_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_unicap_unicap_check_version" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBUNICAP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBUNICAP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_UNICAP_CHECK_VERSION 1 +_ACEOF + + GEM_LIB_LIBUNICAP_CFLAGS=${PKG_LIBUNICAP_CFLAGS} + GEM_LIB_LIBUNICAP_LIBS=${PKG_LIBUNICAP_LIBS} + have_libunicap="yes" + with_libunicap="no" + + +else + + have_libunicap="no" + + +fi + +fi + if test "x${have_libunicap}" = "xyes"; then + HAVE_LIB_LIBUNICAP_TRUE= + HAVE_LIB_LIBUNICAP_FALSE='#' +else + HAVE_LIB_LIBUNICAP_TRUE='#' + HAVE_LIB_LIBUNICAP_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +if test "x$have_unicap" = "xyes"; then + ac_fn_cxx_check_header_mongrel "$LINENO" "unicap/unicap.h" "ac_cv_header_unicap_unicap_h" "$ac_includes_default" +if test "x$ac_cv_header_unicap_unicap_h" = xyes; then : + + +$as_echo "@%:@define HAVE_UNICAP /**/" >>confdefs.h + + have_unicap="yes" + +else + have_unicap="no" +fi + + +fi +if test "x$have_libunicap"; then + have_unicap="yes" +fi + if test "x${have_unicap}" = "xyes"; then + HAVE_LIB_UNICAP_TRUE= + HAVE_LIB_UNICAP_FALSE='#' +else + HAVE_LIB_UNICAP_TRUE='#' + HAVE_LIB_UNICAP_FALSE= +fi + + + +have_v4l="no" + + if test "x$with_ALL" = "xyes" && test "x${with_v4l}" = "x"; then with_v4l="yes"; fi + if test "x$with_ALL" = "xno" && test "x${with_v4l}" = "x"; then with_v4l="no"; fi + + +@%:@ Check whether --with-v4l was given. +if test "${with_v4l+set}" = set; then : + withval=$with_v4l; +else + + if test "xforce" != "x"; then with_v4l="yes"; fi + +fi + + +for ac_header in linux/videodev.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default" +if test "x$ac_cv_header_linux_videodev_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LINUX_VIDEODEV_H 1 +_ACEOF + have_v4l="yes" +fi + +done + + + + + + + + +@%:@ Check whether --with-libv4l1 was given. +if test "${with_libv4l1+set}" = set; then : + withval=$with_libv4l1; +fi + + +@%:@ Check whether --with-libv4l1-includes was given. +if test "${with_libv4l1_includes+set}" = set; then : + withval=$with_libv4l1_includes; +fi + + +@%:@ Check whether --with-libv4l1-libs was given. +if test "${with_libv4l1_libs+set}" = set; then : + withval=$with_libv4l1_libs; +fi + + + if test "x$with_libv4l1" = "x"; then with_libv4l1=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libv4l1" = "x"; then with_libv4l1="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libv4l1" = "x"; then with_libv4l1="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libv4l1 = "xno"; then + have_libv4l1="no (forced)" +else + if test -d "$with_libv4l1_includes"; then + CFLAGS="-I$with_libv4l1_includes $CFLAGS" + CPPFLAGS="-I$with_libv4l1_includes $CPPFLAGS" + CXXFLAGS="-I$with_libv4l1_includes $CXXFLAGS" + fi + if test -d "$with_libv4l1_libs"; then + LIBS="-L$with_libv4l1_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_v4l1_v4l1_open) >/dev/null 2>&1 && unset ac_cv_lib_v4l1_v4l1_open + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L1_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBV4L1_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBV4L1_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L1_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBV4L1_CFLAGS=$ac_cv_env_PKG_LIBV4L1_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l1\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l1" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L1_CFLAGS=`$PKG_CONFIG --cflags "libv4l1" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L1_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L1_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L1_LIBS" >&5 +$as_echo_n "checking for PKG_LIBV4L1_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBV4L1_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L1_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBV4L1_LIBS=$ac_cv_env_PKG_LIBV4L1_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l1\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l1" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L1_LIBS=`$PKG_CONFIG --libs "libv4l1" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L1_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L1_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBV4L1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libv4l1"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBV4L1_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBV4L1_CFLAGS=$pkg_cv_PKG_LIBV4L1_CFLAGS + PKG_LIBV4L1_LIBS=$pkg_cv_PKG_LIBV4L1_LIBS + ac_cv_lib_v4l1_v4l1_open=yes +fi +if test "x${PKG_LIBV4L1_CFLAGS}" != "x"; then + + for element in "${PKG_LIBV4L1_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBV4L1_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBV4L1_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_v4l1_v4l1_open" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libv4l1-config" >&5 +$as_echo_n "checking for libv4l1-config... " >&6; } + gem_check_lib_pkgconfig_LIBV4L1="" + if test "xlibv4l1" != "x"; then + gem_check_lib_pkgconfig_LIBV4L1="libv4l1"-config + if which -- "$gem_check_lib_pkgconfig_LIBV4L1" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBV4L1=`which "libv4l1"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBV4L1="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBV4L1" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBV4L1_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L1 --cflags >/dev/null 2>&1; then + PKG_LIBV4L1_CFLAGS=$(${gem_check_lib_pkgconfig_LIBV4L1} --cflags) + PKG_CFLAGS="$PKG_LIBV4L1_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBV4L1_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L1 --plugin-libs >/dev/null 2>&1; then + PKG_LIBV4L1_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L1} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBV4L1 --libs >/dev/null 2>&1; then + PKG_LIBV4L1_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L1} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBV4L1_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l1_open in -lv4l1" >&5 +$as_echo_n "checking for v4l1_open in -lv4l1... " >&6; } +if ${ac_cv_lib_v4l1_v4l1_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lv4l1 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char v4l1_open (); +int +main () +{ +return v4l1_open (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_v4l1_v4l1_open=yes +else + ac_cv_lib_v4l1_v4l1_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l1_v4l1_open" >&5 +$as_echo "$ac_cv_lib_v4l1_v4l1_open" >&6; } +if test "x$ac_cv_lib_v4l1_v4l1_open" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBV4L1 1 +_ACEOF + + LIBS="-lv4l1 $LIBS" + +fi + + PKG_LIBV4L1_LIBS="-lv4l1" + else + PKG_LIBS="${PKG_LIBV4L1_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_v4l1_v4l1_open" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBV4L1 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBV4L1 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_V4L1_OPEN 1 +_ACEOF + + GEM_LIB_LIBV4L1_CFLAGS=${PKG_LIBV4L1_CFLAGS} + GEM_LIB_LIBV4L1_LIBS=${PKG_LIBV4L1_LIBS} + have_libv4l1="yes" + with_libv4l1="no" + + +else + + have_libv4l1="no" + + +fi + +fi + if test "x${have_libv4l1}" = "xyes"; then + HAVE_LIB_LIBV4L1_TRUE= + HAVE_LIB_LIBV4L1_FALSE='#' +else + HAVE_LIB_LIBV4L1_TRUE='#' + HAVE_LIB_LIBV4L1_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +if test "x$have_libv4l1" = "xyes"; then + have_v4l="yes (libv4l)" +fi +if test "x$with_v4l" = "xno"; then + have_v4l="no" +fi + if test "x${have_v4l}" != "xno"; then + HAVE_V4L_TRUE= + HAVE_V4L_FALSE='#' +else + HAVE_V4L_TRUE='#' + HAVE_V4L_FALSE= +fi + + + +have_v4l2="no" + + if test "x$with_ALL" = "xyes" && test "x${with_v4l2}" = "x"; then with_v4l2="yes"; fi + if test "x$with_ALL" = "xno" && test "x${with_v4l2}" = "x"; then with_v4l2="no"; fi + + +@%:@ Check whether --with-v4l2 was given. +if test "${with_v4l2+set}" = set; then : + withval=$with_v4l2; +else + + if test "xforce" != "x"; then with_v4l2="yes"; fi + +fi + + +for ac_header in linux/videodev2.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "$ac_includes_default" +if test "x$ac_cv_header_linux_videodev2_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LINUX_VIDEODEV2_H 1 +_ACEOF + +fi + +done + + + + + + + + +@%:@ Check whether --with-libv4l2 was given. +if test "${with_libv4l2+set}" = set; then : + withval=$with_libv4l2; +fi + + +@%:@ Check whether --with-libv4l2-includes was given. +if test "${with_libv4l2_includes+set}" = set; then : + withval=$with_libv4l2_includes; +fi + + +@%:@ Check whether --with-libv4l2-libs was given. +if test "${with_libv4l2_libs+set}" = set; then : + withval=$with_libv4l2_libs; +fi + + + if test "x$with_libv4l2" = "x"; then with_libv4l2=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libv4l2" = "x"; then with_libv4l2="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libv4l2" = "x"; then with_libv4l2="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libv4l2 = "xno"; then + have_libv4l2="no (forced)" +else + if test -d "$with_libv4l2_includes"; then + CFLAGS="-I$with_libv4l2_includes $CFLAGS" + CPPFLAGS="-I$with_libv4l2_includes $CPPFLAGS" + CXXFLAGS="-I$with_libv4l2_includes $CXXFLAGS" + fi + if test -d "$with_libv4l2_libs"; then + LIBS="-L$with_libv4l2_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_v4l2_v4l2_open) >/dev/null 2>&1 && unset ac_cv_lib_v4l2_v4l2_open + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L2_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBV4L2_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBV4L2_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L2_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBV4L2_CFLAGS=$ac_cv_env_PKG_LIBV4L2_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L2_CFLAGS=`$PKG_CONFIG --cflags "libv4l2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L2_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L2_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L2_LIBS" >&5 +$as_echo_n "checking for PKG_LIBV4L2_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBV4L2_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L2_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBV4L2_LIBS=$ac_cv_env_PKG_LIBV4L2_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L2_LIBS=`$PKG_CONFIG --libs "libv4l2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L2_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L2_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBV4L2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libv4l2"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBV4L2_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBV4L2_CFLAGS=$pkg_cv_PKG_LIBV4L2_CFLAGS + PKG_LIBV4L2_LIBS=$pkg_cv_PKG_LIBV4L2_LIBS + ac_cv_lib_v4l2_v4l2_open=yes +fi +if test "x${PKG_LIBV4L2_CFLAGS}" != "x"; then + + for element in "${PKG_LIBV4L2_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBV4L2_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBV4L2_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_v4l2_v4l2_open" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libv4l2-config" >&5 +$as_echo_n "checking for libv4l2-config... " >&6; } + gem_check_lib_pkgconfig_LIBV4L2="" + if test "xlibv4l2" != "x"; then + gem_check_lib_pkgconfig_LIBV4L2="libv4l2"-config + if which -- "$gem_check_lib_pkgconfig_LIBV4L2" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBV4L2=`which "libv4l2"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBV4L2="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBV4L2" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBV4L2_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L2 --cflags >/dev/null 2>&1; then + PKG_LIBV4L2_CFLAGS=$(${gem_check_lib_pkgconfig_LIBV4L2} --cflags) + PKG_CFLAGS="$PKG_LIBV4L2_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBV4L2_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L2 --plugin-libs >/dev/null 2>&1; then + PKG_LIBV4L2_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L2} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBV4L2 --libs >/dev/null 2>&1; then + PKG_LIBV4L2_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L2} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBV4L2_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5 +$as_echo_n "checking for v4l2_open in -lv4l2... " >&6; } +if ${ac_cv_lib_v4l2_v4l2_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lv4l2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char v4l2_open (); +int +main () +{ +return v4l2_open (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_v4l2_v4l2_open=yes +else + ac_cv_lib_v4l2_v4l2_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5 +$as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; } +if test "x$ac_cv_lib_v4l2_v4l2_open" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBV4L2 1 +_ACEOF + + LIBS="-lv4l2 $LIBS" + +fi + + PKG_LIBV4L2_LIBS="-lv4l2" + else + PKG_LIBS="${PKG_LIBV4L2_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_v4l2_v4l2_open" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBV4L2 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBV4L2 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_V4L2_OPEN 1 +_ACEOF + + GEM_LIB_LIBV4L2_CFLAGS=${PKG_LIBV4L2_CFLAGS} + GEM_LIB_LIBV4L2_LIBS=${PKG_LIBV4L2_LIBS} + have_libv4l2="yes" + with_libv4l2="no" + + +else + + have_libv4l2="no" + + +fi + +fi + if test "x${have_libv4l2}" = "xyes"; then + HAVE_LIB_LIBV4L2_TRUE= + HAVE_LIB_LIBV4L2_FALSE='#' +else + HAVE_LIB_LIBV4L2_TRUE='#' + HAVE_LIB_LIBV4L2_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +# AC_DEFINE([HAVE_VIDEO4LINUX2], [], [video capturing using v4l2]) + +if test "x$have_libv4l2" = "xyes"; then + have_v4l2="yes (libv4l)" +fi +if test "x$with_v4l2" = "xno"; then + have_v4l2="no" +fi + if test "x${have_v4l2}" != "xno"; then + HAVE_V4L2_TRUE= + HAVE_V4L2_FALSE='#' +else + HAVE_V4L2_TRUE='#' + HAVE_V4L2_FALSE= +fi + + + + + + + + + + +@%:@ Check whether --with-vfw32 was given. +if test "${with_vfw32+set}" = set; then : + withval=$with_vfw32; +fi + + +@%:@ Check whether --with-vfw32-includes was given. +if test "${with_vfw32_includes+set}" = set; then : + withval=$with_vfw32_includes; +fi + + +@%:@ Check whether --with-vfw32-libs was given. +if test "${with_vfw32_libs+set}" = set; then : + withval=$with_vfw32_libs; +fi + + + if test "x$with_vfw32" = "x"; then with_vfw32=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_vfw32" = "x"; then with_vfw32="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_vfw32" = "x"; then with_vfw32="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_vfw32 = "xno"; then + have_vfw32="no (forced)" +else + if test -d "$with_vfw32_includes"; then + CFLAGS="-I$with_vfw32_includes $CFLAGS" + CPPFLAGS="-I$with_vfw32_includes $CPPFLAGS" + CXXFLAGS="-I$with_vfw32_includes $CXXFLAGS" + fi + if test -d "$with_vfw32_libs"; then + LIBS="-L$with_vfw32_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_vfw32_main) >/dev/null 2>&1 && unset ac_cv_lib_vfw32_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_VFW32_CFLAGS" >&5 +$as_echo_n "checking for PKG_VFW32_CFLAGS... " >&6; } +if ${pkg_cv_PKG_VFW32_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_VFW32_CFLAGS_set" = "xset"; then + pkg_cv_PKG_VFW32_CFLAGS=$ac_cv_env_PKG_VFW32_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"vfw32\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "vfw32" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_VFW32_CFLAGS=`$PKG_CONFIG --cflags "vfw32" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_VFW32_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_VFW32_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_VFW32_LIBS" >&5 +$as_echo_n "checking for PKG_VFW32_LIBS... " >&6; } +if ${pkg_cv_PKG_VFW32_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_VFW32_LIBS_set" = "xset"; then + pkg_cv_PKG_VFW32_LIBS=$ac_cv_env_PKG_VFW32_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"vfw32\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "vfw32" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_VFW32_LIBS=`$PKG_CONFIG --libs "vfw32" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_VFW32_LIBS" >&5 +$as_echo "$pkg_cv_PKG_VFW32_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_VFW32_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vfw32"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_VFW32_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_VFW32_CFLAGS=$pkg_cv_PKG_VFW32_CFLAGS + PKG_VFW32_LIBS=$pkg_cv_PKG_VFW32_LIBS + ac_cv_lib_vfw32_main=yes +fi +if test "x${PKG_VFW32_CFLAGS}" != "x"; then + + for element in "${PKG_VFW32_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_VFW32_LIBS}" != "x"; then + PKG_LIBS="${PKG_VFW32_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_vfw32_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vfw32-config" >&5 +$as_echo_n "checking for vfw32-config... " >&6; } + gem_check_lib_pkgconfig_VFW32="" + if test "xvfw32" != "x"; then + gem_check_lib_pkgconfig_VFW32="vfw32"-config + if which -- "$gem_check_lib_pkgconfig_VFW32" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_VFW32=`which "vfw32"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_VFW32="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_VFW32" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_VFW32_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_VFW32 --cflags >/dev/null 2>&1; then + PKG_VFW32_CFLAGS=$(${gem_check_lib_pkgconfig_VFW32} --cflags) + PKG_CFLAGS="$PKG_VFW32_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_VFW32_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_VFW32 --plugin-libs >/dev/null 2>&1; then + PKG_VFW32_LIBS=$(${gem_check_lib_pkgconfig_VFW32} --plugin-libs) + else + if $gem_check_lib_pkgconfig_VFW32 --libs >/dev/null 2>&1; then + PKG_VFW32_LIBS=$(${gem_check_lib_pkgconfig_VFW32} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_VFW32_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvfw32" >&5 +$as_echo_n "checking for main in -lvfw32... " >&6; } +if ${ac_cv_lib_vfw32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lvfw32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_vfw32_main=yes +else + ac_cv_lib_vfw32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vfw32_main" >&5 +$as_echo "$ac_cv_lib_vfw32_main" >&6; } +if test "x$ac_cv_lib_vfw32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVFW32 1 +_ACEOF + + LIBS="-lvfw32 $LIBS" + +fi + + PKG_VFW32_LIBS="-lvfw32" + else + PKG_LIBS="${PKG_VFW32_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_vfw32_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVFW32 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVFW32 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_VFW32_CFLAGS=${PKG_VFW32_CFLAGS} + GEM_LIB_VFW32_LIBS=${PKG_VFW32_LIBS} + have_vfw32="yes" + with_vfw32="no" + + +else + + have_vfw32="no" + + +fi + +fi + if test "x${have_vfw32}" = "xyes"; then + HAVE_LIB_VFW32_TRUE= + HAVE_LIB_VFW32_FALSE='#' +else + HAVE_LIB_VFW32_TRUE='#' + HAVE_LIB_VFW32_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +# is this needed? + +# VLC + + + + + + + +@%:@ Check whether --with-libvlc was given. +if test "${with_libvlc+set}" = set; then : + withval=$with_libvlc; +fi + + +@%:@ Check whether --with-libvlc-includes was given. +if test "${with_libvlc_includes+set}" = set; then : + withval=$with_libvlc_includes; +fi + + +@%:@ Check whether --with-libvlc-libs was given. +if test "${with_libvlc_libs+set}" = set; then : + withval=$with_libvlc_libs; +fi + + + if test "x$with_libvlc" = "x"; then with_libvlc=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libvlc" = "x"; then with_libvlc="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libvlc" = "x"; then with_libvlc="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libvlc = "xno"; then + have_libvlc="no (forced)" +else + if test -d "$with_libvlc_includes"; then + CFLAGS="-I$with_libvlc_includes $CFLAGS" + CPPFLAGS="-I$with_libvlc_includes $CPPFLAGS" + CXXFLAGS="-I$with_libvlc_includes $CXXFLAGS" + fi + if test -d "$with_libvlc_libs"; then + LIBS="-L$with_libvlc_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_vlc_libvlc_video_set_callbacks) >/dev/null 2>&1 && unset ac_cv_lib_vlc_libvlc_video_set_callbacks + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBVLC_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBVLC_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBVLC_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBVLC_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBVLC_CFLAGS=$ac_cv_env_PKG_LIBVLC_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libvlc\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libvlc" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBVLC_CFLAGS=`$PKG_CONFIG --cflags "libvlc" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBVLC_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBVLC_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBVLC_LIBS" >&5 +$as_echo_n "checking for PKG_LIBVLC_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBVLC_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBVLC_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBVLC_LIBS=$ac_cv_env_PKG_LIBVLC_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libvlc\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libvlc" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBVLC_LIBS=`$PKG_CONFIG --libs "libvlc" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBVLC_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBVLC_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBVLC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libvlc"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBVLC_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBVLC_CFLAGS=$pkg_cv_PKG_LIBVLC_CFLAGS + PKG_LIBVLC_LIBS=$pkg_cv_PKG_LIBVLC_LIBS + ac_cv_lib_vlc_libvlc_video_set_callbacks=yes +fi +if test "x${PKG_LIBVLC_CFLAGS}" != "x"; then + + for element in "${PKG_LIBVLC_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBVLC_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBVLC_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_vlc_libvlc_video_set_callbacks" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvlc-config" >&5 +$as_echo_n "checking for libvlc-config... " >&6; } + gem_check_lib_pkgconfig_LIBVLC="" + if test "xlibvlc" != "x"; then + gem_check_lib_pkgconfig_LIBVLC="libvlc"-config + if which -- "$gem_check_lib_pkgconfig_LIBVLC" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBVLC=`which "libvlc"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBVLC="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBVLC" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBVLC_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBVLC --cflags >/dev/null 2>&1; then + PKG_LIBVLC_CFLAGS=$(${gem_check_lib_pkgconfig_LIBVLC} --cflags) + PKG_CFLAGS="$PKG_LIBVLC_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBVLC_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBVLC --plugin-libs >/dev/null 2>&1; then + PKG_LIBVLC_LIBS=$(${gem_check_lib_pkgconfig_LIBVLC} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBVLC --libs >/dev/null 2>&1; then + PKG_LIBVLC_LIBS=$(${gem_check_lib_pkgconfig_LIBVLC} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBVLC_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvlc_video_set_callbacks in -lvlc" >&5 +$as_echo_n "checking for libvlc_video_set_callbacks in -lvlc... " >&6; } +if ${ac_cv_lib_vlc_libvlc_video_set_callbacks+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lvlc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char libvlc_video_set_callbacks (); +int +main () +{ +return libvlc_video_set_callbacks (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_vlc_libvlc_video_set_callbacks=yes +else + ac_cv_lib_vlc_libvlc_video_set_callbacks=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vlc_libvlc_video_set_callbacks" >&5 +$as_echo "$ac_cv_lib_vlc_libvlc_video_set_callbacks" >&6; } +if test "x$ac_cv_lib_vlc_libvlc_video_set_callbacks" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVLC 1 +_ACEOF + + LIBS="-lvlc $LIBS" + +fi + + PKG_LIBVLC_LIBS="-lvlc" + else + PKG_LIBS="${PKG_LIBVLC_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_vlc_libvlc_video_set_callbacks" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBLIBVLC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVLC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBVLC_VIDEO_SET_CALLBACKS 1 +_ACEOF + + GEM_LIB_LIBVLC_CFLAGS=${PKG_LIBVLC_CFLAGS} + GEM_LIB_LIBVLC_LIBS=${PKG_LIBVLC_LIBS} + have_libvlc="yes" + with_libvlc="no" + + +else + + have_libvlc="no" + + +fi + +fi + if test "x${have_libvlc}" = "xyes"; then + HAVE_LIB_LIBVLC_TRUE= + HAVE_LIB_LIBVLC_FALSE='#' +else + HAVE_LIB_LIBVLC_TRUE='#' + HAVE_LIB_LIBVLC_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +# assimp + + + + + + + +@%:@ Check whether --with-assimp was given. +if test "${with_assimp+set}" = set; then : + withval=$with_assimp; +fi + + +@%:@ Check whether --with-assimp-includes was given. +if test "${with_assimp_includes+set}" = set; then : + withval=$with_assimp_includes; +fi + + +@%:@ Check whether --with-assimp-libs was given. +if test "${with_assimp_libs+set}" = set; then : + withval=$with_assimp_libs; +fi + + + if test "x$with_assimp" = "x"; then with_assimp=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_assimp" = "x"; then with_assimp="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_assimp" = "x"; then with_assimp="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_assimp = "xno"; then + have_assimp="no (forced)" +else + if test -d "$with_assimp_includes"; then + CFLAGS="-I$with_assimp_includes $CFLAGS" + CPPFLAGS="-I$with_assimp_includes $CPPFLAGS" + CXXFLAGS="-I$with_assimp_includes $CXXFLAGS" + fi + if test -d "$with_assimp_libs"; then + LIBS="-L$with_assimp_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_assimp_aiDetachAllLogStreams) >/dev/null 2>&1 && unset ac_cv_lib_assimp_aiDetachAllLogStreams + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_ASSIMP_CFLAGS" >&5 +$as_echo_n "checking for PKG_ASSIMP_CFLAGS... " >&6; } +if ${pkg_cv_PKG_ASSIMP_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_ASSIMP_CFLAGS_set" = "xset"; then + pkg_cv_PKG_ASSIMP_CFLAGS=$ac_cv_env_PKG_ASSIMP_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"assimp\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "assimp" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_ASSIMP_CFLAGS=`$PKG_CONFIG --cflags "assimp" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_ASSIMP_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_ASSIMP_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_ASSIMP_LIBS" >&5 +$as_echo_n "checking for PKG_ASSIMP_LIBS... " >&6; } +if ${pkg_cv_PKG_ASSIMP_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_ASSIMP_LIBS_set" = "xset"; then + pkg_cv_PKG_ASSIMP_LIBS=$ac_cv_env_PKG_ASSIMP_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"assimp\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "assimp" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_ASSIMP_LIBS=`$PKG_CONFIG --libs "assimp" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_ASSIMP_LIBS" >&5 +$as_echo "$pkg_cv_PKG_ASSIMP_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_ASSIMP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "assimp"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_ASSIMP_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_ASSIMP_CFLAGS=$pkg_cv_PKG_ASSIMP_CFLAGS + PKG_ASSIMP_LIBS=$pkg_cv_PKG_ASSIMP_LIBS + ac_cv_lib_assimp_aiDetachAllLogStreams=yes +fi +if test "x${PKG_ASSIMP_CFLAGS}" != "x"; then + + for element in "${PKG_ASSIMP_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_ASSIMP_LIBS}" != "x"; then + PKG_LIBS="${PKG_ASSIMP_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_assimp_aiDetachAllLogStreams" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assimp-config" >&5 +$as_echo_n "checking for assimp-config... " >&6; } + gem_check_lib_pkgconfig_ASSIMP="" + if test "xassimp" != "x"; then + gem_check_lib_pkgconfig_ASSIMP="assimp"-config + if which -- "$gem_check_lib_pkgconfig_ASSIMP" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_ASSIMP=`which "assimp"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_ASSIMP="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_ASSIMP" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_ASSIMP_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_ASSIMP --cflags >/dev/null 2>&1; then + PKG_ASSIMP_CFLAGS=$(${gem_check_lib_pkgconfig_ASSIMP} --cflags) + PKG_CFLAGS="$PKG_ASSIMP_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_ASSIMP_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_ASSIMP --plugin-libs >/dev/null 2>&1; then + PKG_ASSIMP_LIBS=$(${gem_check_lib_pkgconfig_ASSIMP} --plugin-libs) + else + if $gem_check_lib_pkgconfig_ASSIMP --libs >/dev/null 2>&1; then + PKG_ASSIMP_LIBS=$(${gem_check_lib_pkgconfig_ASSIMP} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_ASSIMP_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aiDetachAllLogStreams in -lassimp" >&5 +$as_echo_n "checking for aiDetachAllLogStreams in -lassimp... " >&6; } +if ${ac_cv_lib_assimp_aiDetachAllLogStreams+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lassimp $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char aiDetachAllLogStreams (); +int +main () +{ +return aiDetachAllLogStreams (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_assimp_aiDetachAllLogStreams=yes +else + ac_cv_lib_assimp_aiDetachAllLogStreams=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_assimp_aiDetachAllLogStreams" >&5 +$as_echo "$ac_cv_lib_assimp_aiDetachAllLogStreams" >&6; } +if test "x$ac_cv_lib_assimp_aiDetachAllLogStreams" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBASSIMP 1 +_ACEOF + + LIBS="-lassimp $LIBS" + +fi + + PKG_ASSIMP_LIBS="-lassimp" + else + PKG_LIBS="${PKG_ASSIMP_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_assimp_aiDetachAllLogStreams" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBASSIMP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBASSIMP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_AIDETACHALLLOGSTREAMS 1 +_ACEOF + + GEM_LIB_ASSIMP_CFLAGS=${PKG_ASSIMP_CFLAGS} + GEM_LIB_ASSIMP_LIBS=${PKG_ASSIMP_LIBS} + have_assimp="yes" + with_assimp="no" + + +else + + have_assimp="no" + + +fi + +fi + if test "x${have_assimp}" = "xyes"; then + HAVE_LIB_ASSIMP_TRUE= + HAVE_LIB_ASSIMP_FALSE='#' +else + HAVE_LIB_ASSIMP_TRUE='#' + HAVE_LIB_ASSIMP_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + +@%:@ Check whether --with-default-font was given. +if test "${with_default_font+set}" = set; then : + withval=$with_default_font; +fi + +if test "x$with_default_font" != "x" && \ + test "x$with_default_font" != "xno" && + test "x$with_default_font" != "xyes"; then + + +cat >>confdefs.h <<_ACEOF +@%:@define GEM_DEFAULT_FONT "${with_default_font}" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using \"${with_default_font}\" as default font" >&5 +$as_echo "using \"${with_default_font}\" as default font" >&6; } +fi + +# threading + +@%:@ Check whether --enable-threads was given. +if test "${enable_threads+set}" = set; then : + enableval=$enable_threads; +else + + if test "x" != "x"; then enable_threads="yes"; fi + +fi + + + + + + +if test "x$enable_threads" != "xno"; then + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ax_pthread_ok=no + +# We used to check for pthread.h first, but this fails if pthread.h +# requires special compiler flags (e.g. on True64 or Sequent). +# It gets checked for in the link test anyway. + +# First of all, check if the user has set any of the PTHREAD_LIBS, +# etcetera environment variables, and if threads linking works using +# them: +if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS" >&5 +$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_join (); +int +main () +{ +return pthread_join (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test x"$ax_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" +fi + +# We must check for the threads library under a number of different +# names; the ordering is very important because some systems +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the +# libraries is broken (non-POSIX). + +# Create a list of thread flags to try. Items starting with a "-" are +# C compiler flags, and other items are library names, except for "none" +# which indicates that we try without any flags at all, and "pthread-config" +# which is a program returning the flags for the Pth emulation library. + +ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads +-mthreads pthread --thread-safe -mt pthread-config" + +# The ordering *is* (sometimes) important. Some notes on the +# individual items follow: + +# pthreads: AIX (must check this before -lpthread) +# none: in case threads are in libc; should be tried before -Kthread and +# other compiler flags to prevent continual compiler warnings +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) +# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) +# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) +# -pthreads: Solaris/gcc +# -mthreads: Mingw32/gcc, Lynx/gcc +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it +# doesn't hurt to check since this sometimes defines pthreads too; +# also defines -D_REENTRANT) +# ... -mt is also the pthreads flag for HP/aCC +# pthread: Linux, etcetera +# --thread-safe: KAI C++ +# pthread-config: use pthread-config program (for GNU Pth library) + +case "${host_cpu}-${host_os}" in + *solaris*) + + # On Solaris (at least, for some versions), libc contains stubbed + # (non-functional) versions of the pthreads routines, so link-based + # tests will erroneously succeed. (We need to link with -pthreads/-mt/ + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather + # a function called by this macro, so we could check for that, but + # who knows whether they'll stub that too in a future libc.) So, + # we'll just look for -pthreads and -lpthread first: + + ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" + ;; + + *-darwin*) + acx_pthread_flags="-pthread $acx_pthread_flags" + ;; +esac + +if test x"$ax_pthread_ok" = xno; then +for flag in $ax_pthread_flags; do + + case $flag in + none) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 +$as_echo_n "checking whether pthreads work without any flags... " >&6; } + ;; + + -*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 +$as_echo_n "checking whether pthreads work with $flag... " >&6; } + PTHREAD_CFLAGS="$flag" + ;; + + pthread-config) + # Extract the first word of "pthread-config", so it can be a program name with args. +set dummy pthread-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ax_pthread_config+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ax_pthread_config"; then + ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ax_pthread_config="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" +fi +fi +ax_pthread_config=$ac_cv_prog_ax_pthread_config +if test -n "$ax_pthread_config"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 +$as_echo "$ax_pthread_config" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test x"$ax_pthread_config" = xno; then continue; fi + PTHREAD_CFLAGS="`pthread-config --cflags`" + PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config +--libs`" + ;; + + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 +$as_echo_n "checking for the pthreads library -l$flag... " >&6; } + PTHREAD_LIBS="-l$flag" + ;; + esac + + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Check for various functions. We must include pthread.h, + # since some functions may be macros. (On the Sequent, we + # need a special flag -Kthread to make this header compile.) + # We check for pthread_join because it is in -lpthread on IRIX + # while pthread_create is in libc. We check for pthread_attr_init + # due to DEC craziness with -lpthreads. We check for + # pthread_cleanup_push because it is one of the few pthread + # functions on Solaris that doesn't have a non-functional libc stub. + # We try pthread_create on general principles. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + static void routine(void* a) {a=0;} + static void* start_routine(void* a) {return a;} +int +main () +{ +pthread_t th; pthread_attr_t attr; + pthread_join(th, 0); + pthread_attr_init(&attr); + pthread_cleanup_push(routine, 0); + pthread_create(&th,0,start_routine,0); + pthread_cleanup_pop(0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test "x$ax_pthread_ok" = xyes; then + break; + fi + + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" +done +fi + +# Various other checks: +if test "x$ax_pthread_ok" = xyes; then + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 +$as_echo_n "checking for joinable pthread attribute... " >&6; } + attr_name=unknown + for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int attr=$attr; return attr; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + attr_name=$attr; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + done + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 +$as_echo "$attr_name" >&6; } + if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then + +cat >>confdefs.h <<_ACEOF +@%:@define PTHREAD_CREATE_JOINABLE $attr_name +_ACEOF + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 +$as_echo_n "checking if more special flags are required for pthreads... " >&6; } + flag=no + case "${host_cpu}-${host_os}" in + *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 +$as_echo "${flag}" >&6; } + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + # More AIX lossage: must compile with xlc_r or cc_r + if test x"$GCC" != xyes; then + for ac_prog in xlc_r cc_r +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_PTHREAD_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$PTHREAD_CC"; then + ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_PTHREAD_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +PTHREAD_CC=$ac_cv_prog_PTHREAD_CC +if test -n "$PTHREAD_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 +$as_echo "$PTHREAD_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$PTHREAD_CC" && break +done +test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" + + else + PTHREAD_CC=$CC + fi +else + PTHREAD_CC="$CC" +fi + + + + + +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: +if test x"$ax_pthread_ok" = xyes; then + +$as_echo "@%:@define HAVE_PTHREADS 1" >>confdefs.h + + : +else + ax_pthread_ok=no + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + GEM_THREADS_CFLAGS="" + + for element in "${PTHREAD_CFLAGS}"; do + haveit= + for x in $GEM_THREADS_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_THREADS_CFLAGS="${GEM_THREADS_CFLAGS}${GEM_THREADS_CFLAGS:+ }$element" + fi + done + + GEM_THREADS_LIBS="${GEM_THREADS_LIBS}${GEM_THREADS_LIBS:+ }${PTHREAD_LIBS}" +fi + + +# Checks for header files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h + +fi + +for ac_header in fcntl.h float.h memory.h stddef.h stdlib.h string.h strings.h sys/ioctl.h sys/time.h termios.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in wordexp.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "wordexp.h" "ac_cv_header_wordexp_h" "$ac_includes_default" +if test "x$ac_cv_header_wordexp_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_WORDEXP_H 1 +_ACEOF + +fi + +done + + +# Checks for typedefs, structures, and compiler characteristics. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 +$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } +if ${ac_cv_header_stdbool_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #ifndef bool + "error: bool is not defined" + #endif + #ifndef false + "error: false is not defined" + #endif + #if false + "error: false is not 0" + #endif + #ifndef true + "error: true is not defined" + #endif + #if true != 1 + "error: true is not 1" + #endif + #ifndef __bool_true_false_are_defined + "error: __bool_true_false_are_defined is not defined" + #endif + + struct s { _Bool s: 1; _Bool t; } s; + + char a[true == 1 ? 1 : -1]; + char b[false == 0 ? 1 : -1]; + char c[__bool_true_false_are_defined == 1 ? 1 : -1]; + char d[(bool) 0.5 == true ? 1 : -1]; + /* See body of main program for 'e'. */ + char f[(_Bool) 0.0 == false ? 1 : -1]; + char g[true]; + char h[sizeof (_Bool)]; + char i[sizeof s.t]; + enum { j = false, k = true, l = false * true, m = true * 256 }; + /* The following fails for + HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ + _Bool n[m]; + char o[sizeof n == m * sizeof n[0] ? 1 : -1]; + char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; + /* Catch a bug in an HP-UX C compiler. See + http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + */ + _Bool q = true; + _Bool *pq = &q; + +int +main () +{ + + bool e = &s; + *pq |= q; + *pq |= ! q; + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + + !m + !n + !o + !p + !q + !pq); + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_header_stdbool_h=yes +else + ac_cv_header_stdbool_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 +$as_echo "$ac_cv_header_stdbool_h" >&6; } + ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" +if test "x$ac_cv_type__Bool" = xyes; then : + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE__BOOL 1 +_ACEOF + + +fi + + +if test $ac_cv_header_stdbool_h = yes; then + +$as_echo "@%:@define HAVE_STDBOOL_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if ${ac_cv_c_const+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +#ifndef __cplusplus + /* Ultrix mips cc rejects this sort of thing. */ + typedef int charset[2]; + const charset cs = { 0, 0 }; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *pcpcc; + char **ppc; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + pcpcc = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++pcpcc; + ppc = (char**) pcpcc; + pcpcc = (char const *const *) ppc; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 0; + if (s) return 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + if (!foo) return 0; + } + return !cs[0] && !zero.x; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_c_const=yes +else + ac_cv_c_const=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +$as_echo "@%:@define const /**/" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + +ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +@%:@define size_t unsigned int +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } +if ${ac_cv_header_time+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include + +int +main () +{ +if ((struct tm *) 0) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_header_time=yes +else + ac_cv_header_time=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 +$as_echo "$ac_cv_header_time" >&6; } +if test $ac_cv_header_time = yes; then + +$as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h + +fi + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 +$as_echo_n "checking size of unsigned int... " >&6; } +if ${ac_cv_sizeof_unsigned_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_unsigned_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (unsigned int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_unsigned_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 +$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +@%:@define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 +$as_echo_n "checking size of void *... " >&6; } +if ${ac_cv_sizeof_void_p+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_void_p" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (void *) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_void_p=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 +$as_echo "$ac_cv_sizeof_void_p" >&6; } + + + +cat >>confdefs.h <<_ACEOF +@%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p +_ACEOF + + + +# Checks for library functions. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 +$as_echo_n "checking for error_at_line... " >&6; } +if ${ac_cv_lib_error_at_line+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +error_at_line (0, 0, "", 0, "an error occurred"); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_error_at_line=yes +else + ac_cv_lib_error_at_line=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 +$as_echo "$ac_cv_lib_error_at_line" >&6; } +if test $ac_cv_lib_error_at_line = no; then + case " $LIB@&t@OBJS " in + *" error.$ac_objext "* ) ;; + *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext" + ;; +esac + +fi + +ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" +if test "x$ac_cv_type_pid_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +@%:@define pid_t int +_ACEOF + +fi + +for ac_header in vfork.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" +if test "x$ac_cv_header_vfork_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_VFORK_H 1 +_ACEOF + +fi + +done + +for ac_func in fork vfork +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +if test "x$ac_cv_func_fork" = xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 +$as_echo_n "checking for working fork... " >&6; } +if ${ac_cv_func_fork_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_fork_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* By Ruediger Kuhlmann. */ + return fork () < 0; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_fork_works=yes +else + ac_cv_func_fork_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 +$as_echo "$ac_cv_func_fork_works" >&6; } + +else + ac_cv_func_fork_works=$ac_cv_func_fork +fi +if test "x$ac_cv_func_fork_works" = xcross; then + case $host in + *-*-amigaos* | *-*-msdosdjgpp*) + # Override, as these systems have only a dummy fork() stub + ac_cv_func_fork_works=no + ;; + *) + ac_cv_func_fork_works=yes + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 +$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} +fi +ac_cv_func_vfork_works=$ac_cv_func_vfork +if test "x$ac_cv_func_vfork" = xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 +$as_echo_n "checking for working vfork... " >&6; } +if ${ac_cv_func_vfork_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_vfork_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Thanks to Paul Eggert for this test. */ +$ac_includes_default +#include +#ifdef HAVE_VFORK_H +# include +#endif +/* On some sparc systems, changes by the child to local and incoming + argument registers are propagated back to the parent. The compiler + is told about this with #include , but some compilers + (e.g. gcc -O) don't grok . Test for this by using a + static variable whose address is put into a register that is + clobbered by the vfork. */ +static void +#ifdef __cplusplus +sparc_address_test (int arg) +# else +sparc_address_test (arg) int arg; +#endif +{ + static pid_t child; + if (!child) { + child = vfork (); + if (child < 0) { + perror ("vfork"); + _exit(2); + } + if (!child) { + arg = getpid(); + write(-1, "", 0); + _exit (arg); + } + } +} + +int +main () +{ + pid_t parent = getpid (); + pid_t child; + + sparc_address_test (0); + + child = vfork (); + + if (child == 0) { + /* Here is another test for sparc vfork register problems. This + test uses lots of local variables, at least as many local + variables as main has allocated so far including compiler + temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris + 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should + reuse the register of parent for one of the local variables, + since it will think that parent can't possibly be used any more + in this routine. Assigning to the local variable will thus + munge parent in the parent process. */ + pid_t + p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), + p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); + /* Convince the compiler that p..p7 are live; otherwise, it might + use the same hardware register for all 8 local variables. */ + if (p != p1 || p != p2 || p != p3 || p != p4 + || p != p5 || p != p6 || p != p7) + _exit(1); + + /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent + from child file descriptors. If the child closes a descriptor + before it execs or exits, this munges the parent's descriptor + as well. Test for this by closing stdout in the child. */ + _exit(close(fileno(stdout)) != 0); + } else { + int status; + struct stat st; + + while (wait(&status) != child) + ; + return ( + /* Was there some problem with vforking? */ + child < 0 + + /* Did the child fail? (This shouldn't happen.) */ + || status + + /* Did the vfork/compiler bug occur? */ + || parent != getpid() + + /* Did the file descriptor bug occur? */ + || fstat(fileno(stdout), &st) != 0 + ); + } +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_vfork_works=yes +else + ac_cv_func_vfork_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 +$as_echo "$ac_cv_func_vfork_works" >&6; } + +fi; +if test "x$ac_cv_func_fork_works" = xcross; then + ac_cv_func_vfork_works=$ac_cv_func_vfork + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 +$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} +fi + +if test "x$ac_cv_func_vfork_works" = xyes; then + +$as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h + +else + +$as_echo "@%:@define vfork fork" >>confdefs.h + +fi +if test "x$ac_cv_func_fork_works" = xyes; then + +$as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h + +fi + +for ac_header in stdlib.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +if test "x$ac_cv_header_stdlib_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_STDLIB_H 1 +_ACEOF + +fi + +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 +$as_echo_n "checking for GNU libc compatible malloc... " >&6; } +if ${ac_cv_func_malloc_0_nonnull+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_malloc_0_nonnull=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined STDC_HEADERS || defined HAVE_STDLIB_H +# include +#else +char *malloc (); +#endif + +int +main () +{ +return ! malloc (0); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_malloc_0_nonnull=yes +else + ac_cv_func_malloc_0_nonnull=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 +$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } +if test $ac_cv_func_malloc_0_nonnull = yes; then : + +$as_echo "@%:@define HAVE_MALLOC 1" >>confdefs.h + +else + $as_echo "@%:@define HAVE_MALLOC 0" >>confdefs.h + + case " $LIB@&t@OBJS " in + *" malloc.$ac_objext "* ) ;; + *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext" + ;; +esac + + +$as_echo "@%:@define malloc rpl_malloc" >>confdefs.h + +fi + + + + + + for ac_header in $ac_header_list +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + + + + +for ac_func in getpagesize +do : + ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" +if test "x$ac_cv_func_getpagesize" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GETPAGESIZE 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 +$as_echo_n "checking for working mmap... " >&6; } +if ${ac_cv_func_mmap_fixed_mapped+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_mmap_fixed_mapped=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +/* malloc might have been renamed as rpl_malloc. */ +#undef malloc + +/* Thanks to Mike Haertel and Jim Avera for this test. + Here is a matrix of mmap possibilities: + mmap private not fixed + mmap private fixed at somewhere currently unmapped + mmap private fixed at somewhere already mapped + mmap shared not fixed + mmap shared fixed at somewhere currently unmapped + mmap shared fixed at somewhere already mapped + For private mappings, we should verify that changes cannot be read() + back from the file, nor mmap's back from the file at a different + address. (There have been systems where private was not correctly + implemented like the infamous i386 svr4.0, and systems where the + VM page cache was not coherent with the file system buffer cache + like early versions of FreeBSD and possibly contemporary NetBSD.) + For shared mappings, we should conversely verify that changes get + propagated back to all the places they're supposed to be. + + Grep wants private fixed already mapped. + The main things grep needs to know about mmap are: + * does it exist and is it safe to write into the mmap'd area + * how to use it (BSD variants) */ + +#include +#include + +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H +char *malloc (); +#endif + +/* This mess was copied from the GNU getpagesize.h. */ +#ifndef HAVE_GETPAGESIZE +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# ifdef HAVE_SYS_PARAM_H +# include +# ifdef EXEC_PAGESIZE +# define getpagesize() EXEC_PAGESIZE +# else /* no EXEC_PAGESIZE */ +# ifdef NBPG +# define getpagesize() NBPG * CLSIZE +# ifndef CLSIZE +# define CLSIZE 1 +# endif /* no CLSIZE */ +# else /* no NBPG */ +# ifdef NBPC +# define getpagesize() NBPC +# else /* no NBPC */ +# ifdef PAGESIZE +# define getpagesize() PAGESIZE +# endif /* PAGESIZE */ +# endif /* no NBPC */ +# endif /* no NBPG */ +# endif /* no EXEC_PAGESIZE */ +# else /* no HAVE_SYS_PARAM_H */ +# define getpagesize() 8192 /* punt totally */ +# endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ + +#endif /* no HAVE_GETPAGESIZE */ + +int +main () +{ + char *data, *data2, *data3; + const char *cdata2; + int i, pagesize; + int fd, fd2; + + pagesize = getpagesize (); + + /* First, make a file with some known garbage in it. */ + data = (char *) malloc (pagesize); + if (!data) + return 1; + for (i = 0; i < pagesize; ++i) + *(data + i) = rand (); + umask (0); + fd = creat ("conftest.mmap", 0600); + if (fd < 0) + return 2; + if (write (fd, data, pagesize) != pagesize) + return 3; + close (fd); + + /* Next, check that the tail of a page is zero-filled. File must have + non-zero length, otherwise we risk SIGBUS for entire page. */ + fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); + if (fd2 < 0) + return 4; + cdata2 = ""; + if (write (fd2, cdata2, 1) != 1) + return 5; + data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); + if (data2 == MAP_FAILED) + return 6; + for (i = 0; i < pagesize; ++i) + if (*(data2 + i)) + return 7; + close (fd2); + if (munmap (data2, pagesize)) + return 8; + + /* Next, try to mmap the file at a fixed address which already has + something else allocated at it. If we can, also make sure that + we see the same garbage. */ + fd = open ("conftest.mmap", O_RDWR); + if (fd < 0) + return 9; + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_FIXED, fd, 0L)) + return 10; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + return 11; + + /* Finally, make sure that changes to the mapped area do not + percolate back to the file as seen by read(). (This is a bug on + some variants of i386 svr4.0.) */ + for (i = 0; i < pagesize; ++i) + *(data2 + i) = *(data2 + i) + 1; + data3 = (char *) malloc (pagesize); + if (!data3) + return 12; + if (read (fd, data3, pagesize) != pagesize) + return 13; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data3 + i)) + return 14; + close (fd); + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_mmap_fixed_mapped=yes +else + ac_cv_func_mmap_fixed_mapped=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 +$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } +if test $ac_cv_func_mmap_fixed_mapped = yes; then + +$as_echo "@%:@define HAVE_MMAP 1" >>confdefs.h + +fi +rm -f conftest.mmap conftest.txt + +for ac_func in bzero floor gettimeofday memset munmap pow sqrt strchr strdup strrchr strstr strnlen +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + +# enabling recording with quicktime4linux +gem_tmp_lqt_libs="$LIBS" +LIBS="$LIBS $PKG_LIBS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lqt_open_write" >&5 +$as_echo_n "checking for lqt_open_write... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lqt_open_write (); +int +main () +{ +return lqt_open_write (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + +$as_echo "@%:@define HAVE_LQT_OPEN_WRITE /**/" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS="$gem_tmp_lqt_libs" + +### make-depend flags +if test "x$ac_cv_c_compiler_gnu" = "xyes"; then + MAKEDEP_FLAGS="-MM" + +else + MAKEDEP_FLAGS="-M" + +fi + +# using pix_videoOS rather than pix_video + +@%:@ Check whether --with-video was given. +if test "${with_video+set}" = set; then : + withval=$with_video; +fi + + +## on OSX we still default to the olde way +#if test "x$KERN" = "xDarwin"; then +# if test "x$with_film" = "x"; then +# with_film="Darwin" +# fi +# if test "x$with_video" = "x"; then +# with_video="Darwin" +# fi +#fi + +if test "x$with_video" = "x"; then + with_video="plugins" +elif test "x$with_video" = "xyes"; then + with_video="plugins" +elif test "x$with_video" = "xno"; then +# hmm, what to do here? + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ignoring request for no video...using plugins" >&5 +$as_echo "ignoring request for no video...using plugins" >&6; } + with_video="plugins" +elif test "x$with_video" = "xplugins"; then + : +else + +cat >>confdefs.h <<_ACEOF +@%:@define GEM_VIDEOBACKEND GEM_VIDEOBACKEND_$with_video +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using deprecated video-loader $with_video" >&5 +$as_echo "using deprecated video-loader $with_video" >&6; } +fi + +# using pix_filmOS rather than pix_film + +@%:@ Check whether --with-film was given. +if test "${with_film+set}" = set; then : + withval=$with_film; +fi + + +if test "x$with_film" = "x"; then + with_film="plugins" +elif test "x$with_film" = "xyes"; then + with_film="plugins" +elif test "x$with_film" = "xno"; then +# hmm, what to do here? + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ignoring request for no film...using plugins" >&5 +$as_echo "ignoring request for no film...using plugins" >&6; } + with_film="plugins" +elif test "x$with_film" = "xplugins"; then + : +else + +cat >>confdefs.h <<_ACEOF +@%:@define GEM_FILMBACKEND GEM_FILMBACKEND_$with_film +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using deprecated film-loader $with_film" >&5 +$as_echo "using deprecated film-loader $with_film" >&6; } +fi + + + + + +# enabling "-freg-struct-return" (for FreeFrame) +# i wonder could we make this the default ??? +if test "x$enable_registerstruct" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-freg-struct-return\"" >&5 +$as_echo_n "checking whether compiler accepts \"-freg-struct-return\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -freg-struct-return > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -freg-struct-return" + enable_registerstruct="yes" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + enable_registerstruct="no" +fi + + +if test "x$enable_registerstruct" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling \"register struct return\" + allows to make use of FreeFrame-effects without recompiling them + might break things, if you are using several different compilers" >&5 +$as_echo "enabling \"register struct return\" + allows to make use of FreeFrame-effects without recompiling them + might break things, if you are using several different compilers" >&6; } +fi +fi + +if test "x$WINDOWS" = "xyes"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-mms-bitfields\"" >&5 +$as_echo_n "checking whether compiler accepts \"-mms-bitfields\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -mms-bitfields > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -mms-bitfields" + GEM_EXTERNAL_CFLAGS+="-mms-bitfields" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + +if test "x$KERN" = "xDarwin"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-Os\"" >&5 +$as_echo_n "checking whether compiler accepts \"-Os\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -Os > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -Os" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-O3\"" >&5 +$as_echo_n "checking whether compiler accepts \"-O3\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -O3 > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -O3" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + + +# shall we built FAT-binaries ? +## this needs more thinking! running just the preprocessor does not like these flags +## for now we could live with just adding these manually with GEM_EXTRA_CXXFLAGS and GEM_EXTRA_LDFLAGS + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-O3\"" >&5 +$as_echo_n "checking whether compiler accepts \"-O3\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -O3 > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -O3" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-falign-loops -falign-functions -falign-jumps -funroll-loops\"" >&5 +$as_echo_n "checking whether compiler accepts \"-falign-loops -falign-functions -falign-jumps -funroll-loops\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -falign-loops -falign-functions -falign-jumps -funroll-loops > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -falign-loops -falign-functions -falign-jumps -funroll-loops" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-falign-loops -funroll-loops\"" >&5 +$as_echo_n "checking whether compiler accepts \"-falign-loops -funroll-loops\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -falign-loops -funroll-loops > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -falign-loops -funroll-loops" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-ffast-math\"" >&5 +$as_echo_n "checking whether compiler accepts \"-ffast-math\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -ffast-math > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -ffast-math" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + + +## SIMD support +# naive approach is to just check, which SIMD-flags the compiler takes +# and use these +# drawback: while the compiler might support compilation for a specific +# SIMD instruction set, the hardware you are compiling for might not + +# proposal: +# by default the configure-task should only enable flags that are known +# to work on the machine we are compiling. +# the user can override this by explicitely stating that they want the +# flag to be enabled (if possible) +# e.g. "./configure --enable-sse2" on a pentium-3 should +# produce a binary that will only run on machines with SSE2 registers +# whereas "./configure" will make a binary with only MMX enabled. +# +# but how do we test for the CPU-caps? on linux we could just read /proc/cpuinfo +# but on other OSs? + +# we make it a bit complicated in order to allow people to enforce the +# compilation with a specific SIMD-instruction set, even on platforms +# that don't support it +# why? think cross-compilation + + +@%:@ Check whether --enable-fat-binary was given. +if test "${enable_fat_binary+set}" = set; then : + enableval=$enable_fat_binary; fat_binary=$enableval +else + fat_binary=no +fi + +if test "$fat_binary" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking target architectures" >&5 +$as_echo_n "checking target architectures... " >&6; } + + # Respect TARGET_ARCHS setting from environment if available. + if test -z "$TARGET_ARCHS"; then + # Respect ARCH given to --enable-fat-binary if present. + if test "$fat_binary" != yes; then + TARGET_ARCHS=`echo "$fat_binary" | tr ',' ' '` + else + # Choose a default set of architectures based upon platform. + TARGET_ARCHS="ppc i386" + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ARCHS" >&5 +$as_echo "$TARGET_ARCHS" >&6; } + + + # /usr/lib/arch_tool -archify_list $TARGET_ARCHS + GEM_ARCH="" + tmp_arch_count=0 + for archs in $TARGET_ARCHS + do + GEM_ARCH="$GEM_ARCH -arch $archs" + tmp_arch_count=$((tmp_arch_count+1)) + done + + if test "$tmp_arch_count" -gt 1; then + if test "x$enable_dependency_tracking" != xno; then + as_fn_error $? "when building for multiple architectures, you MUST turn off dependency-tracking" "$LINENO" 5 + fi + fi + + if test "x$GEM_ARCH" != "x"; then + tmp_arch_cflags="$CFLAGS" + tmp_arch_cxxflags="$CXXFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"$GEM_ARCH\"" >&5 +$as_echo_n "checking whether compiler accepts \"$GEM_ARCH\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ $GEM_ARCH > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} $GEM_ARCH" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + GEM_ARCH="" +fi + + GEM_ARCH_CXXFLAGS+=$GEM_ARCH + CFLAGS="$tmp_arch_cflags" + CXXFLAGS="$tmp_arch_cxxflags" + fi + + if test "x$GEM_ARCH" != "x"; then + tmp_arch_ldflags="$LDFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts \"$GEM_ARCH\"" >&5 +$as_echo_n "checking whether linker accepts \"$GEM_ARCH\"... " >&6; } + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="$GEM_ARCH ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + GEM_ARCH="" + fi + + GEM_ARCH_LDFLAGS+=$GEM_ARCH + LDFLAGS="$tmp_arch_ldflags" + fi + + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEM_ARCH" >&5 +$as_echo "$GEM_ARCH" >&6; } + + + +if test "x${ARCH}" = "xi386" || test "x${ARCH}" = "xi686" || test "x${ARCH}" = "xx86_64"; then + if test "x$enable_altivec" != "xyes"; then enable_altivec="no"; fi +fi + +if test "x${ARCH}" = "xPower Macintosh" || test "x${ARCH}" = "xpowerpc"; then + if test "x$enable_mmx" != "xyes"; then enable_mmx="no" ; fi + if test "x$enable_sse2" != "xyes"; then enable_sse2="no"; fi +fi + +if test "x$enable_mmx" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-mmmx\"" >&5 +$as_echo_n "checking whether compiler accepts \"-mmmx\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -mmmx > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -mmmx" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi +if test "x$enable_sse2" = "xyes"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-msse2\"" >&5 +$as_echo_n "checking whether compiler accepts \"-msse2\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -msse2 > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -msse2" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi +if test "x$enable_altivec" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-faltivec\"" >&5 +$as_echo_n "checking whether compiler accepts \"-faltivec\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -faltivec > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -faltivec" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi +if test "x$enable_powerpc" = "xyes"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-mpowerpc-gfxopt\"" >&5 +$as_echo_n "checking whether compiler accepts \"-mpowerpc-gfxopt\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -mpowerpc-gfxopt > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -mpowerpc-gfxopt" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + +# on os-x we might come across "pascal strings" containing "\p"... +if test "x$enable_pascalstrings" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-fpascal-strings\"" >&5 +$as_echo_n "checking whether compiler accepts \"-fpascal-strings\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -fpascal-strings > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -fpascal-strings" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + + +@%:@ Check whether --with-defaultwindow was given. +if test "${with_defaultwindow+set}" = set; then : + withval=$with_defaultwindow; +fi + + +case "$with_defaultwindow" in + gem*) + GEM_DEFAULT_WINDOW="$with_defaultwindow" + ;; + *) + GEM_DEFAULT_WINDOW="" + ;; +esac +if test "x${GEM_DEFAULT_WINDOW}" = "x"; then + if test "x$WINDOWS" = "xyes"; then + GEM_DEFAULT_WINDOW="gemw32window" + elif test "x$DARWIN" = "xyes"; then + #GEM_DEFAULT_WINDOW="gemmacwindow" + GEM_DEFAULT_WINDOW="gemcocoawindow" + elif test "x$no_glx" != "xyes"; then + GEM_DEFAULT_WINDOW="gemglxwindow" + elif test "x$no_glut" != "xyes"; then + GEM_DEFAULT_WINDOW="gemglutwindow" + fi +fi + +ac_config_files="$ac_config_files abstractions/gemdefaultwindow.pd" + + +## dummy conditionals that are always "true" (ENABLED) or "false" (DISABLED) +enabled="yes" + if test "x${enabled}" = "xyes"; then + ENABLED_TRUE= + ENABLED_FALSE='#' +else + ENABLED_TRUE='#' + ENABLED_FALSE= +fi + + if test "x${enabled}" = "xno"; then + DISABLED_TRUE= + DISABLED_FALSE='#' +else + DISABLED_TRUE='#' + DISABLED_FALSE= +fi + + + +# damned: gcc on osX seems to report that it supports "-ip -ipo_obj" although they are only icc flags + + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIB@&t@OBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then + as_fn_error $? "conditional \"LINUX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then + as_fn_error $? "conditional \"ANDROID\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then + as_fn_error $? "conditional \"MACOSX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${IPHONEOS_TRUE}" && test -z "${IPHONEOS_FALSE}"; then + as_fn_error $? "conditional \"IPHONEOS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then + as_fn_error $? "conditional \"BSD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then + as_fn_error $? "conditional \"WINDOWS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then + as_fn_error $? "conditional \"CYGWIN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then + as_fn_error $? "conditional \"MINGW\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then + as_fn_error $? "conditional \"HURD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then + as_fn_error $? "conditional \"IRIX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CONTROLS_TRUE}" && test -z "${TARGET_CONTROLS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CONTROLS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_GEOS_TRUE}" && test -z "${TARGET_GEOS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_GEOS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_MANIPS_TRUE}" && test -z "${TARGET_MANIPS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_MANIPS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_NONGEOS_TRUE}" && test -z "${TARGET_NONGEOS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_NONGEOS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_PARTICLES_TRUE}" && test -z "${TARGET_PARTICLES_FALSE}"; then + as_fn_error $? "conditional \"TARGET_PARTICLES\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_PIXES_TRUE}" && test -z "${TARGET_PIXES_FALSE}"; then + as_fn_error $? "conditional \"TARGET_PIXES\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_OPENGL_TRUE}" && test -z "${TARGET_OPENGL_FALSE}"; then + as_fn_error $? "conditional \"TARGET_OPENGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_VERTEX_TRUE}" && test -z "${TARGET_VERTEX_FALSE}"; then + as_fn_error $? "conditional \"TARGET_VERTEX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GL_TRUE}" && test -z "${HAVE_GL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GLU_TRUE}" && test -z "${HAVE_GLU_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GLU\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GLUT_TRUE}" && test -z "${HAVE_GLUT_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GLUT\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GLX_TRUE}" && test -z "${HAVE_GLX_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GLX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_AGL_TRUE}" && test -z "${HAVE_FRAMEWORK_AGL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_AGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_AGL_TRUE}" && test -z "${HAVE_AGL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_AGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_GLEW_TRUE}" && test -z "${HAVE_LIB_GLEW_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_GLEW\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_SDL_TRUE}" && test -z "${HAVE_LIB_SDL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_SDL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_COCOA_TRUE}" && test -z "${HAVE_FRAMEWORK_COCOA_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_COCOA\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_CARBON_TRUE}" && test -z "${HAVE_FRAMEWORK_CARBON_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_CARBON\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_QUICKTIME_TRUE}" && test -z "${HAVE_FRAMEWORK_QUICKTIME_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_QUICKTIME\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${VIDEODARWIN_TRUE}" && test -z "${VIDEODARWIN_FALSE}"; then + as_fn_error $? "conditional \"VIDEODARWIN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_IMAGEMAGICK___TRUE}" && test -z "${HAVE_LIB_IMAGEMAGICK___FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_IMAGEMAGICK__\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_MAGICKCORE_TRUE}" && test -z "${HAVE_LIB_MAGICKCORE_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_MAGICKCORE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_TIFF_TRUE}" && test -z "${HAVE_LIB_TIFF_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_TIFF\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_JPEG_TRUE}" && test -z "${HAVE_LIB_JPEG_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_JPEG\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_FTGL_TRUE}" && test -z "${HAVE_LIB_FTGL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_FTGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_FRIBIDI_TRUE}" && test -z "${HAVE_LIB_FRIBIDI_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_FRIBIDI\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_AVIFILE_TRUE}" && test -z "${HAVE_LIB_AVIFILE_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_AVIFILE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_GMERLIN_AVDEC_TRUE}" && test -z "${HAVE_LIB_GMERLIN_AVDEC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_GMERLIN_AVDEC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_MPEG_TRUE}" && test -z "${HAVE_LIB_MPEG_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_MPEG\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBMPEG3_TRUE}" && test -z "${HAVE_LIB_LIBMPEG3_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBMPEG3\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBQUICKTIME_TRUE}" && test -z "${HAVE_LIB_LIBQUICKTIME_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBQUICKTIME\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LQT_TRUE}" && test -z "${HAVE_LIB_LQT_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LQT\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBDC1394_2_TRUE}" && test -z "${HAVE_LIB_LIBDC1394_2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBDC1394_2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBDV_TRUE}" && test -z "${HAVE_LIB_LIBDV_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBDV\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBRAW1394_TRUE}" && test -z "${HAVE_LIB_LIBRAW1394_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBRAW1394\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBIEC61883_TRUE}" && test -z "${HAVE_LIB_LIBIEC61883_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBIEC61883\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBUNICAP_TRUE}" && test -z "${HAVE_LIB_LIBUNICAP_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBUNICAP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_UNICAP_TRUE}" && test -z "${HAVE_LIB_UNICAP_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_UNICAP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBV4L1_TRUE}" && test -z "${HAVE_LIB_LIBV4L1_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBV4L1\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_V4L_TRUE}" && test -z "${HAVE_V4L_FALSE}"; then + as_fn_error $? "conditional \"HAVE_V4L\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBV4L2_TRUE}" && test -z "${HAVE_LIB_LIBV4L2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBV4L2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_V4L2_TRUE}" && test -z "${HAVE_V4L2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_V4L2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_VFW32_TRUE}" && test -z "${HAVE_LIB_VFW32_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_VFW32\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBVLC_TRUE}" && test -z "${HAVE_LIB_LIBVLC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBVLC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_ASSIMP_TRUE}" && test -z "${HAVE_LIB_ASSIMP_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_ASSIMP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${ENABLED_TRUE}" && test -z "${ENABLED_FALSE}"; then + as_fn_error $? "conditional \"ENABLED\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${DISABLED_TRUE}" && test -z "${DISABLED_FALSE}"; then + as_fn_error $? "conditional \"DISABLED\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by Gem $as_me 0.93, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to . +Gem home page: ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +Gem config.status 0.93 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX +@%:@@%:@ Running $as_me. @%:@@%:@ +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' +PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' +predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' +postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' +predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' +postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' +LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' +reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' +reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' +GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' +inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' +link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' +always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' +exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' +predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' +postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' +predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' +postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in AS \ +DLLTOOL \ +OBJDUMP \ +SHELL \ +ECHO \ +PATH_SEPARATOR \ +SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +deplibs_check_method \ +file_magic_cmd \ +file_magic_glob \ +want_nocaseglob \ +sharedlib_from_linklib_cmd \ +AR \ +AR_FLAGS \ +archiver_list_spec \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +nm_file_list_spec \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_pic \ +lt_prog_compiler_wl \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +MANIFEST_TOOL \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_separator \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib \ +compiler_lib_search_dirs \ +predep_objects \ +postdep_objects \ +predeps \ +postdeps \ +compiler_lib_search_path \ +LD_CXX \ +reload_flag_CXX \ +compiler_CXX \ +lt_prog_compiler_no_builtin_flag_CXX \ +lt_prog_compiler_pic_CXX \ +lt_prog_compiler_wl_CXX \ +lt_prog_compiler_static_CXX \ +lt_cv_prog_compiler_c_o_CXX \ +export_dynamic_flag_spec_CXX \ +whole_archive_flag_spec_CXX \ +compiler_needs_object_CXX \ +with_gnu_ld_CXX \ +allow_undefined_flag_CXX \ +no_undefined_flag_CXX \ +hardcode_libdir_flag_spec_CXX \ +hardcode_libdir_separator_CXX \ +exclude_expsyms_CXX \ +include_expsyms_CXX \ +file_list_spec_CXX \ +compiler_lib_search_dirs_CXX \ +predep_objects_CXX \ +postdep_objects_CXX \ +predeps_CXX \ +postdeps_CXX \ +compiler_lib_search_path_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postlink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +sys_lib_dlsearch_path_spec \ +reload_cmds_CXX \ +old_archive_cmds_CXX \ +old_archive_from_new_cmds_CXX \ +old_archive_from_expsyms_cmds_CXX \ +archive_cmds_CXX \ +archive_expsym_cmds_CXX \ +module_cmds_CXX \ +module_expsym_cmds_CXX \ +export_symbols_cmds_CXX \ +prelink_cmds_CXX \ +postlink_cmds_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +ac_aux_dir='$ac_aux_dir' +xsi_shell='$xsi_shell' +lt_shell_append='$lt_shell_append' + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile' + + + + + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "abstractions/Makefile") CONFIG_FILES="$CONFIG_FILES abstractions/Makefile" ;; + "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "src/Gem/Makefile") CONFIG_FILES="$CONFIG_FILES src/Gem/Makefile" ;; + "src/Utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/Utils/Makefile" ;; + "src/RTE/Makefile") CONFIG_FILES="$CONFIG_FILES src/RTE/Makefile" ;; + "src/Base/Makefile") CONFIG_FILES="$CONFIG_FILES src/Base/Makefile" ;; + "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;; + "src/Output/Makefile") CONFIG_FILES="$CONFIG_FILES src/Output/Makefile" ;; + "src/deprecated/Makefile") CONFIG_FILES="$CONFIG_FILES src/deprecated/Makefile" ;; + "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; + "plugins/imageQT/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageQT/Makefile" ;; + "plugins/imageMAGICK/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageMAGICK/Makefile" ;; + "plugins/imageTIFF/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageTIFF/Makefile" ;; + "plugins/imageJPEG/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageJPEG/Makefile" ;; + "plugins/imageSGI/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageSGI/Makefile" ;; + "plugins/filmAVI/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmAVI/Makefile" ;; + "plugins/filmAVIPLAY/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmAVIPLAY/Makefile" ;; + "plugins/filmDS/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmDS/Makefile" ;; + "plugins/filmDarwin/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmDarwin/Makefile" ;; + "plugins/filmGMERLIN/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmGMERLIN/Makefile" ;; + "plugins/filmMPEG1/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmMPEG1/Makefile" ;; + "plugins/filmMPEG3/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmMPEG3/Makefile" ;; + "plugins/filmQT/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmQT/Makefile" ;; + "plugins/filmQT4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmQT4L/Makefile" ;; + "plugins/filmTEST/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmTEST/Makefile" ;; + "plugins/modelOBJ/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/modelOBJ/Makefile" ;; + "plugins/modelASSIMP2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/modelASSIMP2/Makefile" ;; + "plugins/recordQT/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordQT/Makefile" ;; + "plugins/recordQT4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordQT4L/Makefile" ;; + "plugins/recordV4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordV4L/Makefile" ;; + "plugins/recordV4L2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordV4L2/Makefile" ;; + "plugins/videoDC1394/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDC1394/Makefile" ;; + "plugins/videoDS/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDS/Makefile" ;; + "plugins/videoDV4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDV4L/Makefile" ;; + "plugins/videoDarwin/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDarwin/Makefile" ;; + "plugins/videoSGI/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoSGI/Makefile" ;; + "plugins/videoTEST/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoTEST/Makefile" ;; + "plugins/videoUNICAP/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoUNICAP/Makefile" ;; + "plugins/videoV4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoV4L/Makefile" ;; + "plugins/videoV4L2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoV4L2/Makefile" ;; + "plugins/videoVFW/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoVFW/Makefile" ;; + "plugins/videoVLC/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoVLC/Makefile" ;; + "extra/pix2jpg/Makefile") CONFIG_FILES="$CONFIG_FILES extra/pix2jpg/Makefile" ;; + "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; + "Gem.pc") CONFIG_FILES="$CONFIG_FILES Gem.pc" ;; + "Gem-meta.pd") CONFIG_FILES="$CONFIG_FILES Gem-meta.pd" ;; + "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "src/Controls/Makefile") CONFIG_FILES="$CONFIG_FILES src/Controls/Makefile" ;; + "src/Geos/Makefile") CONFIG_FILES="$CONFIG_FILES src/Geos/Makefile" ;; + "src/Manips/Makefile") CONFIG_FILES="$CONFIG_FILES src/Manips/Makefile" ;; + "src/Nongeos/Makefile") CONFIG_FILES="$CONFIG_FILES src/Nongeos/Makefile" ;; + "src/Particles/Makefile") CONFIG_FILES="$CONFIG_FILES src/Particles/Makefile" ;; + "src/Pixes/Makefile") CONFIG_FILES="$CONFIG_FILES src/Pixes/Makefile" ;; + "src/openGL/Makefile") CONFIG_FILES="$CONFIG_FILES src/openGL/Makefile" ;; + "src/Vertex/Makefile") CONFIG_FILES="$CONFIG_FILES src/Vertex/Makefile" ;; + "abstractions/gemdefaultwindow.pd") CONFIG_FILES="$CONFIG_FILES abstractions/gemdefaultwindow.pd" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) + + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +# The names of the tagged configurations supported by this script. +available_tags="CXX " + +# ### BEGIN LIBTOOL CONFIG + +# Assembler program. +AS=$lt_AS + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Object dumper program. +OBJDUMP=$lt_OBJDUMP + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# The PATH separator for the build system. +PATH_SEPARATOR=$lt_PATH_SEPARATOR + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method = "file_magic". +file_magic_cmd=$lt_file_magic_cmd + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + +# The archiver. +AR=$lt_AR + +# Flags to create an archive. +AR_FLAGS=$lt_AR_FLAGS + +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec + +# The root where to search for dependent libraries,and in which our libraries should be installed. +lt_sysroot=$lt_sysroot + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects +postdep_objects=$lt_postdep_objects +predeps=$lt_predeps +postdeps=$lt_postdeps + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + +ltmain="$ac_aux_dir/ltmain.sh" + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + if test x"$xsi_shell" = xyes; then + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ +func_dirname ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_basename ()$/,/^} # func_basename /c\ +func_basename ()\ +{\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ +func_dirname_and_basename ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ +func_stripname ()\ +{\ +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ +\ # positional parameters, so assign one to ordinary parameter first.\ +\ func_stripname_result=${3}\ +\ func_stripname_result=${func_stripname_result#"${1}"}\ +\ func_stripname_result=${func_stripname_result%"${2}"}\ +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ +func_split_long_opt ()\ +{\ +\ func_split_long_opt_name=${1%%=*}\ +\ func_split_long_opt_arg=${1#*=}\ +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ +func_split_short_opt ()\ +{\ +\ func_split_short_opt_arg=${1#??}\ +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ +func_lo2o ()\ +{\ +\ case ${1} in\ +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ +\ *) func_lo2o_result=${1} ;;\ +\ esac\ +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_xform ()$/,/^} # func_xform /c\ +func_xform ()\ +{\ + func_xform_result=${1%.*}.lo\ +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_arith ()$/,/^} # func_arith /c\ +func_arith ()\ +{\ + func_arith_result=$(( $* ))\ +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_len ()$/,/^} # func_len /c\ +func_len ()\ +{\ + func_len_result=${#1}\ +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + +fi + +if test x"$lt_shell_append" = xyes; then + sed -e '/^func_append ()$/,/^} # func_append /c\ +func_append ()\ +{\ + eval "${1}+=\\${2}"\ +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ +func_append_quoted ()\ +{\ +\ func_quote_for_eval "${2}"\ +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} +fi + + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + + + cat <<_LT_EOF >> "$ofile" + +# ### BEGIN LIBTOOL TAG CONFIG: CXX + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# How to create reloadable object files. +reload_flag=$lt_reload_flag_CXX +reload_cmds=$lt_reload_cmds_CXX + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_CXX + +# A language specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU compiler? +with_gcc=$GCC_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_CXX + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_CXX + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_CXX + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_CXX + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds_CXX + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_CXX + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_CXX +postdep_objects=$lt_postdep_objects_CXX +predeps=$lt_predeps_CXX +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# ### END LIBTOOL TAG CONFIG: CXX +_LT_EOF + + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi + +# +# CONFIG_SUBDIRS section. +# +if test "$no_recursion" != yes; then + + # Remove --cache-file, --srcdir, and --disable-option-checking arguments + # so they do not pile up. + ac_sub_configure_args= + ac_prev= + eval "set x $ac_configure_args" + shift + for ac_arg + do + if test -n "$ac_prev"; then + ac_prev= + continue + fi + case $ac_arg in + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ + | --c=*) + ;; + --config-cache | -C) + ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + ;; + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + ;; + --disable-option-checking) + ;; + *) + case $ac_arg in + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append ac_sub_configure_args " '$ac_arg'" ;; + esac + done + + # Always prepend --prefix to ensure using the same prefix + # in subdir configurations. + ac_arg="--prefix=$prefix" + case $ac_arg in + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" + + # Pass --silent + if test "$silent" = yes; then + ac_sub_configure_args="--silent $ac_sub_configure_args" + fi + + # Always prepend --disable-option-checking to silence warnings, since + # different subdirs can have different --enable and --with options. + ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" + + ac_popdir=`pwd` + for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue + + # Do not complain, so a configure script can configure whichever + # parts of a large source tree are present. + test -d "$srcdir/$ac_dir" || continue + + ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" + $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 + $as_echo "$ac_msg" >&6 + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + cd "$ac_dir" + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f "$ac_srcdir/configure.gnu"; then + ac_sub_configure=$ac_srcdir/configure.gnu + elif test -f "$ac_srcdir/configure"; then + ac_sub_configure=$ac_srcdir/configure + elif test -f "$ac_srcdir/configure.in"; then + # This should be Cygnus configure. + ac_sub_configure=$ac_aux_dir/configure + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 +$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} + ac_sub_configure= + fi + + # The recursion is here. + if test -n "$ac_sub_configure"; then + # Make the cache file name correct relative to the subdirectory. + case $cache_file in + [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; + *) # Relative name. + ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} + # The eval makes quoting arguments work. + eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ + --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || + as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 + fi + + cd "$ac_popdir" + done +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + + +if test "x$have_ftgl" = "xyes"; then + have_font=FTGL +fi + +if test "x$have_ImageMagick" = "xyes"; then + have_ImageMagick="yes (Magick++)" +else + if test "x$have_MagickCore" = "xyes"; then + have_ImageMagick="yes (MagickCore)" + fi +fi + +if test "x$have_quicktime_framework" = "x"; then have_quicktime_framework="no"; fi + +if test "x$have_quicktime_framework" = "xyes"; then + have_libquicktime="yes (framework)" +fi + +have_ieee1394="" +if test "x$have_libdc1394_2" = "xyes"; then + have_ieee1394="$have_ieee1394 libdc1394" +fi + +if test "x$have_ieee1394" = "x"; then + have_ieee1394="no"; +else + have_ieee1394="yes (${have_ieee1394# })" +fi + +if test "x${have_v4l}" = "x"; then have_v4l="no"; fi +if test "x${have_v4l2}" = "x"; then have_v4l2="no"; fi +if test "x${have_ieee1394}" = "x"; then have_ieee1394="no"; fi +if test "x${have_libdv}" = "x"; then have_libdv="no"; fi +if test "x${have_unicap}" = "x"; then have_unicap="no"; fi +if test "x${have_vfw32}" = "x"; then have_vfw32="no"; fi +# TODO: have_ds + +if test "x$with_film" = "xplugins"; then + use_film_plugins="yes" +else + use_film_plugins="no (using $with_film backend)" +fi + +if test "x$with_video" = "xplugins"; then + use_video_plugins="yes" +else + use_video_plugins="no (using $with_video backend)" +fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: +Result: + Target : Gem.${EXT} + Objects : ${GEM_TARGETS} + default window : ${GEM_DEFAULT_WINDOW} + +Configuration: + Compiler : ${CXX} + CXXFLAGS : ${CXXFLAGS} ${X_CFLAGS} + : ${PKG_CFLAGS} + DEFINES : ${DEFINES} + + LIBS : ${LIBS} + : ${PKG_LIBS} + LDFLAGS : ${LDFLAGS} + : ${X_LIBS} + + Install path : ${prefix} + + RTE (${GEM_RTE}): + external-extension : ${GEM_RTE_EXTENSION} + CFLAGS : ${GEM_RTE_CFLAGS} + LIBS : ${GEM_RTE_LIBS} + + used optional libraries: + + font-rendering : ${have_font} + default font : ${GEM_DEFAULT_FONT} + + image-support + use ImageMagick : ${have_ImageMagick} + use QuickTime : ${have_quicktime_framework} + use TIFF : ${have_tiff} + use JPEG : ${have_jpeg} + moviefile-support + use PLUGINS : ${use_film_plugins} + use mpeg : ${have_mpeg} + use mpeg-3 : ${have_libmpeg3} + use QuickTime : ${have_libquicktime} + use aviplay : ${have_avifile} + use gmerlin : ${have_gmerlin_avdec} + capture-support + use PLUGINS : ${use_video_plugins} + use v4l : ${have_v4l} + use v4l2 : ${have_v4l2} + use ieee1394 : ${have_ieee1394} + use DV : ${have_libdv} + use Unicap : ${have_unicap} + use Video-for-WinDOS : ${have_vfw32} + use QuickTime : ${have_quicktime_framework} +" >&5 +$as_echo " +Result: + Target : Gem.${EXT} + Objects : ${GEM_TARGETS} + default window : ${GEM_DEFAULT_WINDOW} + +Configuration: + Compiler : ${CXX} + CXXFLAGS : ${CXXFLAGS} ${X_CFLAGS} + : ${PKG_CFLAGS} + DEFINES : ${DEFINES} + + LIBS : ${LIBS} + : ${PKG_LIBS} + LDFLAGS : ${LDFLAGS} + : ${X_LIBS} + + Install path : ${prefix} + + RTE (${GEM_RTE}): + external-extension : ${GEM_RTE_EXTENSION} + CFLAGS : ${GEM_RTE_CFLAGS} + LIBS : ${GEM_RTE_LIBS} + + used optional libraries: + + font-rendering : ${have_font} + default font : ${GEM_DEFAULT_FONT} + + image-support + use ImageMagick : ${have_ImageMagick} + use QuickTime : ${have_quicktime_framework} + use TIFF : ${have_tiff} + use JPEG : ${have_jpeg} + moviefile-support + use PLUGINS : ${use_film_plugins} + use mpeg : ${have_mpeg} + use mpeg-3 : ${have_libmpeg3} + use QuickTime : ${have_libquicktime} + use aviplay : ${have_avifile} + use gmerlin : ${have_gmerlin_avdec} + capture-support + use PLUGINS : ${use_video_plugins} + use v4l : ${have_v4l} + use v4l2 : ${have_v4l2} + use ieee1394 : ${have_ieee1394} + use DV : ${have_libdv} + use Unicap : ${have_unicap} + use Video-for-WinDOS : ${have_vfw32} + use QuickTime : ${have_quicktime_framework} +" >&6; } + +if test "x$have_pd" = "xno"; then + as_fn_error $? "Pd (header) is mandatory and seems to be missing!" "$LINENO" 5 +fi + +if test "x$no_gl" = "xyes"; then + as_fn_error $? "GL (headers) not found! you need openGL!!!" "$LINENO" 5 +fi + +if test "x$no_glu" = "xyes" && test "x$no_agl" = "xyes"; then + as_fn_error $? "GLU (headers) not found! you need openGL Utility Library!!!" "$LINENO" 5 +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Now run make ..." >&5 +$as_echo "Now run make ..." >&6; } diff --git a/src/Gem/autom4te.cache/requests b/src/Gem/autom4te.cache/requests new file mode 100644 index 0000000..73279da --- /dev/null +++ b/src/Gem/autom4te.cache/requests @@ -0,0 +1,608 @@ +# This file was generated by Autom4te Sun Apr 29 21:48:16 UTC 2012. +# It contains the lists of macros which have been traced. +# It can be safely removed. + +@request = ( + bless( [ + '0', + 1, + [ + '/usr/share/autoconf' + ], + [ + '/usr/share/autoconf/autoconf/autoconf.m4f', + '/usr/share/aclocal/argz.m4', + '/usr/share/aclocal/libtool.m4', + '/usr/share/aclocal/ltdl.m4', + '/usr/share/aclocal/ltoptions.m4', + '/usr/share/aclocal/ltsugar.m4', + '/usr/share/aclocal/ltversion.m4', + '/usr/share/aclocal/lt~obsolete.m4', + '/usr/share/aclocal-1.11/amversion.m4', + '/usr/share/aclocal-1.11/auxdir.m4', + '/usr/share/aclocal-1.11/cond.m4', + '/usr/share/aclocal-1.11/depend.m4', + '/usr/share/aclocal-1.11/depout.m4', + '/usr/share/aclocal-1.11/init.m4', + '/usr/share/aclocal-1.11/install-sh.m4', + '/usr/share/aclocal-1.11/lead-dot.m4', + '/usr/share/aclocal-1.11/make.m4', + '/usr/share/aclocal-1.11/missing.m4', + '/usr/share/aclocal-1.11/mkdirp.m4', + '/usr/share/aclocal-1.11/options.m4', + '/usr/share/aclocal-1.11/runlog.m4', + '/usr/share/aclocal-1.11/sanity.m4', + '/usr/share/aclocal-1.11/silent.m4', + '/usr/share/aclocal-1.11/strip.m4', + '/usr/share/aclocal-1.11/substnot.m4', + '/usr/share/aclocal-1.11/tar.m4', + 'm4/ax_check_gl.m4', + 'm4/ax_check_glu.m4', + 'm4/ax_check_glut.m4', + 'm4/ax_compiler_vendor.m4', + 'm4/ax_pthread.m4', + 'm4/gem.m4', + 'm4/iem_ftgl.m4', + 'm4/iem_opengl.m4', + 'm4/iem_operatingsystem.m4', + 'm4/lib-prefix.m4', + 'm4/pkg.m4', + 'configure.ac' + ], + { + 'AM_ENABLE_STATIC' => 1, + 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, + '_LT_AC_SHELL_INIT' => 1, + 'AC_DEFUN' => 1, + '_LT_AC_LANG_CXX_CONFIG' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AM_PROG_MKDIR_P' => 1, + 'GEM_CHECK_FAT' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'AC_LIB_RPATH' => 1, + 'AM_SUBST_NOTMAKE' => 1, + 'AM_MISSING_PROG' => 1, + 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, + '_LT_AC_LANG_C_CONFIG' => 1, + 'AM_PROG_INSTALL_STRIP' => 1, + '_m4_warn' => 1, + 'AC_LIBTOOL_OBJDIR' => 1, + 'gl_FUNC_ARGZ' => 1, + 'IEM_CHECK_GLU' => 1, + 'AM_SANITY_CHECK' => 1, + 'LTOBSOLETE_VERSION' => 1, + 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1, + 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, + 'LT_LIB_M' => 1, + '_LT_AC_CHECK_DLFCN' => 1, + 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1, + 'LTSUGAR_VERSION' => 1, + '_LT_PROG_LTMAIN' => 1, + 'LT_SYS_SYMBOL_USCORE' => 1, + '_AM_PROG_TAR' => 1, + 'AC_LIBTOOL_GCJ' => 1, + '_LT_WITH_SYSROOT' => 1, + 'LT_FUNC_DLSYM_USCORE' => 1, + 'LT_SYS_DLOPEN_DEPLIBS' => 1, + '_LT_AC_LANG_F77' => 1, + 'AC_LIBTOOL_CONFIG' => 1, + 'AC_LIB_ARG_WITH' => 1, + '_AM_SUBST_NOTMAKE' => 1, + 'AC_LTDL_DLLIB' => 1, + '_AM_AUTOCONF_VERSION' => 1, + 'AM_DISABLE_SHARED' => 1, + '_LT_PROG_ECHO_BACKSLASH' => 1, + '_LTDL_SETUP' => 1, + '_LT_AC_LANG_CXX' => 1, + 'AM_PROG_LIBTOOL' => 1, + 'AC_LIB_LTDL' => 1, + '_LT_AC_FILE_LTDLL_C' => 1, + 'AM_PROG_LD' => 1, + 'GEM_TARGET_DISABLED' => 1, + 'GEM_CHECK_RTE' => 1, + 'AU_DEFUN' => 1, + 'AC_PROG_NM' => 1, + 'AC_LIBTOOL_DLOPEN' => 1, + 'AC_PROG_LD' => 1, + 'AC_ENABLE_FAST_INSTALL' => 1, + 'AC_PROG_LD_GNU' => 1, + 'AC_LIB_HAVE_LINKFLAGS' => 1, + 'AC_LIBTOOL_FC' => 1, + 'IEM_CHECK_GLEW' => 1, + 'IEM_CHECK_AGL' => 1, + 'LTDL_CONVENIENCE' => 1, + 'GEM_CHECK_CXXFLAGS' => 1, + '_AM_SET_OPTION' => 1, + 'AC_LTDL_PREOPEN' => 1, + '_LT_LINKER_BOILERPLATE' => 1, + 'AC_LIBTOOL_PROG_CC_C_O' => 1, + 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, + '_LT_PREPARE_SED_QUOTE_VARS' => 1, + 'gl_PREREQ_ARGZ' => 1, + 'AC_LIB_PREFIX' => 1, + 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'LT_SUPPORTED_TAG' => 1, + 'LT_SYS_MODULE_EXT' => 1, + 'LT_PROG_RC' => 1, + 'AC_DEFUN_ONCE' => 1, + '_LT_AC_LANG_GCJ' => 1, + 'GEM_ARG_DISABLE' => 1, + 'AC_' => 1, + 'AC_LTDL_OBJDIR' => 1, + '_LT_PATH_TOOL_PREFIX' => 1, + 'GEM_ARG_WITH' => 1, + 'AC_LIBTOOL_RC' => 1, + 'AM_SILENT_RULES' => 1, + '_LT_AC_PROG_ECHO_BACKSLASH' => 1, + 'AC_DISABLE_FAST_INSTALL' => 1, + '_LT_AC_SYS_LIBPATH_AIX' => 1, + '_LT_AC_TRY_DLOPEN_SELF' => 1, + 'include' => 1, + 'LT_AC_PROG_SED' => 1, + 'AM_ENABLE_SHARED' => 1, + 'AC_LIB_APPENDTOVAR' => 1, + 'LTDL_INSTALLABLE' => 1, + '_LT_AC_LANG_GCJ_CONFIG' => 1, + 'AC_ENABLE_SHARED' => 1, + 'IEM_CHECK_FTGL' => 1, + 'AC_LIB_WITH_FINAL_PREFIX' => 1, + 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, + '_LT_REQUIRED_DARWIN_CHECKS' => 1, + 'AC_ENABLE_STATIC' => 1, + '_LT_AC_TAGVAR' => 1, + 'AC_LIBTOOL_LANG_F77_CONFIG' => 1, + 'AM_CONDITIONAL' => 1, + 'LT_LIB_DLLOAD' => 1, + 'LTVERSION_VERSION' => 1, + 'LTDL_INIT' => 1, + '_LT_PROG_F77' => 1, + '_LT_PROG_CXX' => 1, + 'AM_PROG_INSTALL_SH' => 1, + 'm4_include' => 1, + 'AC_PROG_EGREP' => 1, + '_AC_AM_CONFIG_HEADER_HOOK' => 1, + 'AC_PATH_MAGIC' => 1, + 'AC_LTDL_SYSSEARCHPATH' => 1, + 'AM_MAKE_INCLUDE' => 1, + '_LT_AC_TAGCONFIG' => 1, + 'LT_CMD_MAX_LEN' => 1, + 'm4_pattern_forbid' => 1, + 'IEM_CHECK_GL' => 1, + 'AC_LIB_PREPARE_PREFIX' => 1, + '_LT_LINKER_OPTION' => 1, + 'AC_LIBTOOL_COMPILER_OPTION' => 1, + 'GEM_ARG_WITHOUT' => 1, + 'AC_DISABLE_SHARED' => 1, + '_LT_COMPILER_BOILERPLATE' => 1, + 'AC_LIBTOOL_WIN32_DLL' => 1, + 'AC_LIBTOOL_SETUP' => 1, + 'AC_PROG_LD_RELOAD_FLAG' => 1, + 'AC_LTDL_DLSYM_USCORE' => 1, + 'LT_LANG' => 1, + 'AM_MISSING_HAS_RUN' => 1, + 'LT_SYS_DLSEARCH_PATH' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'LT_OUTPUT' => 1, + 'AC_LIBTOOL_DLOPEN_SELF' => 1, + 'GEM_CHECK_LDFLAGS' => 1, + 'AC_LIB_PROG_LD_GNU' => 1, + 'IEM_CHECK_GLUT' => 1, + 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1, + 'AC_LIBTOOL_LINKER_OPTION' => 1, + 'AC_WITH_LTDL' => 1, + 'AC_LIBTOOL_CXX' => 1, + 'LT_AC_PROG_RC' => 1, + 'LT_INIT' => 1, + 'LT_SYS_DLOPEN_SELF' => 1, + 'LT_AC_PROG_GCJ' => 1, + '_LT_AC_PROG_CXXCPP' => 1, + 'AM_DEP_TRACK' => 1, + 'AM_DISABLE_STATIC' => 1, + '_AC_PROG_LIBTOOL' => 1, + '_AM_IF_OPTION' => 1, + 'AC_PATH_TOOL_PREFIX' => 1, + 'AC_LIBTOOL_F77' => 1, + 'm4_pattern_allow' => 1, + 'AM_SET_LEADING_DOT' => 1, + 'GEM_CHECK_FRAMEWORK' => 1, + '_LT_PROG_FC' => 1, + 'LT_AC_PROG_EGREP' => 1, + '_AM_DEPENDENCIES' => 1, + 'AC_LIBTOOL_LANG_C_CONFIG' => 1, + 'LTOPTIONS_VERSION' => 1, + '_LT_AC_SYS_COMPILER' => 1, + 'AC_LIB_LINKFLAGS' => 1, + 'AM_PROG_NM' => 1, + 'GEM_CHECK_LIB' => 1, + 'PKG_CHECK_MODULES' => 1, + 'AX_CHECK_GLUT' => 1, + 'AC_LIBLTDL_CONVENIENCE' => 1, + 'AC_DEPLIBS_CHECK_METHOD' => 1, + 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, + 'AC_LIBLTDL_INSTALLABLE' => 1, + 'AC_LTDL_ENABLE_INSTALL' => 1, + 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, + 'LT_PROG_GCJ' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AX_CHECK_GL' => 1, + 'AC_DISABLE_STATIC' => 1, + 'LT_PATH_NM' => 1, + 'AX_CHECK_GLU' => 1, + 'AC_LTDL_SHLIBEXT' => 1, + '_LT_AC_LOCK' => 1, + '_LT_AC_LANG_RC_CONFIG' => 1, + 'GEM_ARG_ENABLE' => 1, + 'IEM_CHECK_GLX' => 1, + 'LT_PROG_GO' => 1, + 'AX_COMPILER_VENDOR' => 1, + 'LT_SYS_MODULE_PATH' => 1, + 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, + 'LT_WITH_LTDL' => 1, + 'AC_LTDL_SHLIBPATH' => 1, + 'AM_AUX_DIR_EXPAND' => 1, + 'GEM_TARGET' => 1, + '_LT_AC_LANG_F77_CONFIG' => 1, + 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1, + '_AM_SET_OPTIONS' => 1, + '_LT_COMPILER_OPTION' => 1, + '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'AM_RUN_LOG' => 1, + 'IEM_OPERATING_SYSTEM' => 1, + 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, + 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, + 'AC_LIBTOOL_PICMODE' => 1, + 'AC_LIB_LINKFLAGS_BODY' => 1, + 'LT_PATH_LD' => 1, + 'AC_CHECK_LIBM' => 1, + 'AX_PTHREAD' => 1, + 'ACX_PTHREAD' => 1, + 'AC_LIBTOOL_SYS_LIB_STRIP' => 1, + '_AM_MANGLE_OPTION' => 1, + 'AC_LTDL_SYMBOL_USCORE' => 1, + 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, + 'AM_SET_DEPDIR' => 1, + '_LT_CC_BASENAME' => 1, + 'PKG_PROG_PKG_CONFIG' => 1, + 'GEM_CHECK_THREADS' => 1, + '_LT_LIBOBJ' => 1, + 'AC_LIB_PROG_LD' => 1 + } + ], 'Autom4te::Request' ), + bless( [ + '1', + 1, + [ + '/usr/share/autoconf' + ], + [ + '/usr/share/autoconf/autoconf/autoconf.m4f', + 'aclocal.m4', + 'configure.ac' + ], + { + '_LT_AC_TAGCONFIG' => 1, + 'AM_PROG_F77_C_O' => 1, + 'm4_pattern_forbid' => 1, + 'AC_INIT' => 1, + '_AM_COND_IF' => 1, + 'AC_CANONICAL_TARGET' => 1, + 'AC_SUBST' => 1, + 'AC_CONFIG_LIBOBJ_DIR' => 1, + 'AC_FC_SRCEXT' => 1, + 'AC_CANONICAL_HOST' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AM_PATH_GUILE' => 1, + 'AC_CONFIG_SUBDIRS' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'AC_REQUIRE_AUX_FILE' => 1, + 'AC_CONFIG_LINKS' => 1, + 'm4_sinclude' => 1, + 'LT_SUPPORTED_TAG' => 1, + 'AM_MAINTAINER_MODE' => 1, + 'AM_NLS' => 1, + 'AC_FC_PP_DEFINE' => 1, + 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + 'AM_MAKEFILE_INCLUDE' => 1, + '_m4_warn' => 1, + 'AM_PROG_CXX_C_O' => 1, + '_AM_COND_ENDIF' => 1, + '_AM_MAKEFILE_INCLUDE' => 1, + 'AM_ENABLE_MULTILIB' => 1, + 'AM_SILENT_RULES' => 1, + 'AM_PROG_MOC' => 1, + 'AC_CONFIG_FILES' => 1, + 'LT_INIT' => 1, + 'include' => 1, + 'AM_PROG_AR' => 1, + 'AM_GNU_GETTEXT' => 1, + 'AC_LIBSOURCE' => 1, + 'AM_PROG_FC_C_O' => 1, + 'AC_CANONICAL_BUILD' => 1, + 'AC_FC_FREEFORM' => 1, + 'AH_OUTPUT' => 1, + 'AC_FC_PP_SRCEXT' => 1, + '_AM_SUBST_NOTMAKE' => 1, + 'AC_CONFIG_AUX_DIR' => 1, + 'sinclude' => 1, + 'AM_PROG_CC_C_O' => 1, + 'm4_pattern_allow' => 1, + 'AM_XGETTEXT_OPTION' => 1, + 'AC_CANONICAL_SYSTEM' => 1, + 'AM_CONDITIONAL' => 1, + 'AC_CONFIG_HEADERS' => 1, + 'AC_DEFINE_TRACE_LITERAL' => 1, + 'AM_POT_TOOLS' => 1, + 'm4_include' => 1, + '_AM_COND_ELSE' => 1, + 'AC_SUBST_TRACE' => 1 + } + ], 'Autom4te::Request' ), + bless( [ + '2', + 1, + [ + '/usr/share/autoconf' + ], + [ + '/usr/share/autoconf/autoconf/autoconf.m4f', + '/usr/share/aclocal/argz.m4', + '/usr/share/aclocal/ltdl.m4', + '/usr/share/aclocal-1.11/amversion.m4', + '/usr/share/aclocal-1.11/auxdir.m4', + '/usr/share/aclocal-1.11/cond.m4', + '/usr/share/aclocal-1.11/depend.m4', + '/usr/share/aclocal-1.11/depout.m4', + '/usr/share/aclocal-1.11/init.m4', + '/usr/share/aclocal-1.11/install-sh.m4', + '/usr/share/aclocal-1.11/lead-dot.m4', + '/usr/share/aclocal-1.11/make.m4', + '/usr/share/aclocal-1.11/missing.m4', + '/usr/share/aclocal-1.11/mkdirp.m4', + '/usr/share/aclocal-1.11/options.m4', + '/usr/share/aclocal-1.11/runlog.m4', + '/usr/share/aclocal-1.11/sanity.m4', + '/usr/share/aclocal-1.11/silent.m4', + '/usr/share/aclocal-1.11/strip.m4', + '/usr/share/aclocal-1.11/substnot.m4', + '/usr/share/aclocal-1.11/tar.m4', + 'm4/ax_check_gl.m4', + 'm4/ax_check_glu.m4', + 'm4/ax_check_glut.m4', + 'm4/ax_compiler_vendor.m4', + 'm4/ax_pthread.m4', + 'm4/gem.m4', + 'm4/iem_ftgl.m4', + 'm4/iem_opengl.m4', + 'm4/iem_operatingsystem.m4', + 'm4/lib-prefix.m4', + 'm4/libtool.m4', + 'm4/ltoptions.m4', + 'm4/ltsugar.m4', + 'm4/ltversion.m4', + 'm4/lt~obsolete.m4', + 'm4/pkg.m4', + 'configure.ac' + ], + { + 'AM_ENABLE_STATIC' => 1, + 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, + '_LT_AC_SHELL_INIT' => 1, + 'AC_DEFUN' => 1, + '_LT_AC_LANG_CXX_CONFIG' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AM_PROG_MKDIR_P' => 1, + 'GEM_CHECK_FAT' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'AC_LIB_RPATH' => 1, + 'AM_SUBST_NOTMAKE' => 1, + 'AM_MISSING_PROG' => 1, + 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, + '_LT_AC_LANG_C_CONFIG' => 1, + 'AM_PROG_INSTALL_STRIP' => 1, + '_m4_warn' => 1, + 'AC_LIBTOOL_OBJDIR' => 1, + 'gl_FUNC_ARGZ' => 1, + 'IEM_CHECK_GLU' => 1, + 'AM_SANITY_CHECK' => 1, + 'LTOBSOLETE_VERSION' => 1, + 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1, + 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, + 'LT_LIB_M' => 1, + '_LT_AC_CHECK_DLFCN' => 1, + 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1, + 'LTSUGAR_VERSION' => 1, + '_LT_PROG_LTMAIN' => 1, + 'LT_SYS_SYMBOL_USCORE' => 1, + '_AM_PROG_TAR' => 1, + 'AC_LIBTOOL_GCJ' => 1, + '_LT_WITH_SYSROOT' => 1, + 'LT_FUNC_DLSYM_USCORE' => 1, + 'LT_SYS_DLOPEN_DEPLIBS' => 1, + '_LT_AC_LANG_F77' => 1, + 'AC_LIBTOOL_CONFIG' => 1, + 'AC_LIB_ARG_WITH' => 1, + '_AM_SUBST_NOTMAKE' => 1, + 'AC_LTDL_DLLIB' => 1, + '_AM_AUTOCONF_VERSION' => 1, + 'AM_DISABLE_SHARED' => 1, + '_LT_PROG_ECHO_BACKSLASH' => 1, + '_LTDL_SETUP' => 1, + '_LT_AC_LANG_CXX' => 1, + 'AM_PROG_LIBTOOL' => 1, + 'AC_LIB_LTDL' => 1, + '_LT_AC_FILE_LTDLL_C' => 1, + 'AM_PROG_LD' => 1, + 'GEM_TARGET_DISABLED' => 1, + 'GEM_CHECK_RTE' => 1, + 'AU_DEFUN' => 1, + 'AC_PROG_NM' => 1, + 'AC_LIBTOOL_DLOPEN' => 1, + 'AC_PROG_LD' => 1, + 'AC_ENABLE_FAST_INSTALL' => 1, + 'AC_PROG_LD_GNU' => 1, + 'AC_LIB_HAVE_LINKFLAGS' => 1, + 'AC_LIBTOOL_FC' => 1, + 'IEM_CHECK_GLEW' => 1, + 'IEM_CHECK_AGL' => 1, + 'LTDL_CONVENIENCE' => 1, + 'GEM_CHECK_CXXFLAGS' => 1, + '_AM_SET_OPTION' => 1, + 'AC_LTDL_PREOPEN' => 1, + '_LT_LINKER_BOILERPLATE' => 1, + 'AC_LIBTOOL_PROG_CC_C_O' => 1, + 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, + '_LT_PREPARE_SED_QUOTE_VARS' => 1, + 'gl_PREREQ_ARGZ' => 1, + 'AC_LIB_PREFIX' => 1, + 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'LT_SUPPORTED_TAG' => 1, + 'LT_SYS_MODULE_EXT' => 1, + 'LT_PROG_RC' => 1, + 'AC_DEFUN_ONCE' => 1, + '_LT_AC_LANG_GCJ' => 1, + 'GEM_ARG_DISABLE' => 1, + 'AC_' => 1, + 'AC_LTDL_OBJDIR' => 1, + '_LT_PATH_TOOL_PREFIX' => 1, + 'GEM_ARG_WITH' => 1, + 'AC_LIBTOOL_RC' => 1, + 'AM_SILENT_RULES' => 1, + '_LT_AC_PROG_ECHO_BACKSLASH' => 1, + 'AC_DISABLE_FAST_INSTALL' => 1, + '_LT_AC_SYS_LIBPATH_AIX' => 1, + '_LT_AC_TRY_DLOPEN_SELF' => 1, + 'include' => 1, + 'LT_AC_PROG_SED' => 1, + 'AM_ENABLE_SHARED' => 1, + 'AC_LIB_APPENDTOVAR' => 1, + 'LTDL_INSTALLABLE' => 1, + '_LT_AC_LANG_GCJ_CONFIG' => 1, + 'AC_ENABLE_SHARED' => 1, + 'IEM_CHECK_FTGL' => 1, + 'AC_LIB_WITH_FINAL_PREFIX' => 1, + 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, + '_LT_REQUIRED_DARWIN_CHECKS' => 1, + 'AC_ENABLE_STATIC' => 1, + '_LT_AC_TAGVAR' => 1, + 'AC_LIBTOOL_LANG_F77_CONFIG' => 1, + 'AM_CONDITIONAL' => 1, + 'LT_LIB_DLLOAD' => 1, + 'LTVERSION_VERSION' => 1, + 'LTDL_INIT' => 1, + '_LT_PROG_F77' => 1, + '_LT_PROG_CXX' => 1, + 'AM_PROG_INSTALL_SH' => 1, + 'm4_include' => 1, + 'AC_PROG_EGREP' => 1, + '_AC_AM_CONFIG_HEADER_HOOK' => 1, + 'AC_PATH_MAGIC' => 1, + 'AC_LTDL_SYSSEARCHPATH' => 1, + 'AM_MAKE_INCLUDE' => 1, + '_LT_AC_TAGCONFIG' => 1, + 'LT_CMD_MAX_LEN' => 1, + 'm4_pattern_forbid' => 1, + 'IEM_CHECK_GL' => 1, + 'AC_LIB_PREPARE_PREFIX' => 1, + '_LT_LINKER_OPTION' => 1, + 'AC_LIBTOOL_COMPILER_OPTION' => 1, + 'GEM_ARG_WITHOUT' => 1, + 'AC_DISABLE_SHARED' => 1, + '_LT_COMPILER_BOILERPLATE' => 1, + 'AC_LIBTOOL_WIN32_DLL' => 1, + 'AC_LIBTOOL_SETUP' => 1, + 'AC_PROG_LD_RELOAD_FLAG' => 1, + 'AC_LTDL_DLSYM_USCORE' => 1, + 'LT_LANG' => 1, + 'AM_MISSING_HAS_RUN' => 1, + 'LT_SYS_DLSEARCH_PATH' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'LT_OUTPUT' => 1, + 'AC_LIBTOOL_DLOPEN_SELF' => 1, + 'GEM_CHECK_LDFLAGS' => 1, + 'AC_LIB_PROG_LD_GNU' => 1, + 'IEM_CHECK_GLUT' => 1, + 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1, + 'AC_LIBTOOL_LINKER_OPTION' => 1, + 'AC_WITH_LTDL' => 1, + 'AC_LIBTOOL_CXX' => 1, + 'LT_AC_PROG_RC' => 1, + 'LT_INIT' => 1, + 'LT_SYS_DLOPEN_SELF' => 1, + 'LT_AC_PROG_GCJ' => 1, + '_LT_AC_PROG_CXXCPP' => 1, + 'AM_DEP_TRACK' => 1, + 'AM_DISABLE_STATIC' => 1, + '_AC_PROG_LIBTOOL' => 1, + '_AM_IF_OPTION' => 1, + 'AC_PATH_TOOL_PREFIX' => 1, + 'AC_LIBTOOL_F77' => 1, + 'm4_pattern_allow' => 1, + 'AM_SET_LEADING_DOT' => 1, + 'GEM_CHECK_FRAMEWORK' => 1, + '_LT_PROG_FC' => 1, + 'LT_AC_PROG_EGREP' => 1, + '_AM_DEPENDENCIES' => 1, + 'AC_LIBTOOL_LANG_C_CONFIG' => 1, + 'LTOPTIONS_VERSION' => 1, + '_LT_AC_SYS_COMPILER' => 1, + 'AC_LIB_LINKFLAGS' => 1, + 'AM_PROG_NM' => 1, + 'GEM_CHECK_LIB' => 1, + 'PKG_CHECK_MODULES' => 1, + 'AX_CHECK_GLUT' => 1, + 'AC_LIBLTDL_CONVENIENCE' => 1, + 'AC_DEPLIBS_CHECK_METHOD' => 1, + 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, + 'AC_LIBLTDL_INSTALLABLE' => 1, + 'AC_LTDL_ENABLE_INSTALL' => 1, + 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, + 'LT_PROG_GCJ' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AX_CHECK_GL' => 1, + 'AC_DISABLE_STATIC' => 1, + 'LT_PATH_NM' => 1, + 'AX_CHECK_GLU' => 1, + 'AC_LTDL_SHLIBEXT' => 1, + '_LT_AC_LOCK' => 1, + '_LT_AC_LANG_RC_CONFIG' => 1, + 'GEM_ARG_ENABLE' => 1, + 'IEM_CHECK_GLX' => 1, + 'LT_PROG_GO' => 1, + 'AX_COMPILER_VENDOR' => 1, + 'LT_SYS_MODULE_PATH' => 1, + 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, + 'LT_WITH_LTDL' => 1, + 'AC_LTDL_SHLIBPATH' => 1, + 'AM_AUX_DIR_EXPAND' => 1, + 'GEM_TARGET' => 1, + '_LT_AC_LANG_F77_CONFIG' => 1, + 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1, + '_AM_SET_OPTIONS' => 1, + '_LT_COMPILER_OPTION' => 1, + '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'AM_RUN_LOG' => 1, + 'IEM_OPERATING_SYSTEM' => 1, + 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, + 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, + 'AC_LIBTOOL_PICMODE' => 1, + 'AC_LIB_LINKFLAGS_BODY' => 1, + 'LT_PATH_LD' => 1, + 'AC_CHECK_LIBM' => 1, + 'AX_PTHREAD' => 1, + 'ACX_PTHREAD' => 1, + 'AC_LIBTOOL_SYS_LIB_STRIP' => 1, + '_AM_MANGLE_OPTION' => 1, + 'AC_LTDL_SYMBOL_USCORE' => 1, + 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, + 'AM_SET_DEPDIR' => 1, + '_LT_CC_BASENAME' => 1, + 'PKG_PROG_PKG_CONFIG' => 1, + 'GEM_CHECK_THREADS' => 1, + '_LT_LIBOBJ' => 1, + 'AC_LIB_PROG_LD' => 1 + } + ], 'Autom4te::Request' ) + ); + diff --git a/src/Gem/autom4te.cache/traces.0 b/src/Gem/autom4te.cache/traces.0 new file mode 100644 index 0000000..0754be3 --- /dev/null +++ b/src/Gem/autom4te.cache/traces.0 @@ -0,0 +1,5667 @@ +m4trace:/usr/share/aclocal/argz.m4:12: -1- AC_DEFUN([gl_FUNC_ARGZ], [gl_PREREQ_ARGZ + +AC_CHECK_HEADERS([argz.h], [], [], [AC_INCLUDES_DEFAULT]) + +AC_CHECK_TYPES([error_t], + [], + [AC_DEFINE([error_t], [int], + [Define to a type to use for `error_t' if it is not otherwise available.]) + AC_DEFINE([__error_t_defined], [1], [Define so that glibc/gnulib argp.h + does not typedef error_t.])], + [#if defined(HAVE_ARGZ_H) +# include +#endif]) + +ARGZ_H= +AC_CHECK_FUNCS([argz_add argz_append argz_count argz_create_sep argz_insert \ + argz_next argz_stringify], [], [ARGZ_H=argz.h; AC_LIBOBJ([argz])]) + +dnl if have system argz functions, allow forced use of +dnl libltdl-supplied implementation (and default to do so +dnl on "known bad" systems). Could use a runtime check, but +dnl (a) detecting malloc issues is notoriously unreliable +dnl (b) only known system that declares argz functions, +dnl provides them, yet they are broken, is cygwin +dnl releases prior to 16-Mar-2007 (1.5.24 and earlier) +dnl So, it's more straightforward simply to special case +dnl this for known bad systems. +AS_IF([test -z "$ARGZ_H"], + [AC_CACHE_CHECK( + [if argz actually works], + [lt_cv_sys_argz_works], + [[case $host_os in #( + *cygwin*) + lt_cv_sys_argz_works=no + if test "$cross_compiling" != no; then + lt_cv_sys_argz_works="guessing no" + else + lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' + save_IFS=$IFS + IFS=-. + set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` + IFS=$save_IFS + lt_os_major=${2-0} + lt_os_minor=${3-0} + lt_os_micro=${4-0} + if test "$lt_os_major" -gt 1 \ + || { test "$lt_os_major" -eq 1 \ + && { test "$lt_os_minor" -gt 5 \ + || { test "$lt_os_minor" -eq 5 \ + && test "$lt_os_micro" -gt 24; }; }; }; then + lt_cv_sys_argz_works=yes + fi + fi + ;; #( + *) lt_cv_sys_argz_works=yes ;; + esac]]) + AS_IF([test "$lt_cv_sys_argz_works" = yes], + [AC_DEFINE([HAVE_WORKING_ARGZ], 1, + [This value is set to 1 to indicate that the system argz facility works])], + [ARGZ_H=argz.h + AC_LIBOBJ([argz])])]) + +AC_SUBST([ARGZ_H]) +]) +m4trace:/usr/share/aclocal/argz.m4:79: -1- AC_DEFUN([gl_PREREQ_ARGZ], [:]) +m4trace:/usr/share/aclocal/libtool.m4:69: -1- AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_BEFORE([$0], [LT_LANG])dnl +AC_BEFORE([$0], [LT_OUTPUT])dnl +AC_BEFORE([$0], [LTDL_INIT])dnl +m4_require([_LT_CHECK_BUILDDIR])dnl + +dnl Autoconf doesn't catch unexpanded LT_ macros by default: +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 +dnl unless we require an AC_DEFUNed macro: +AC_REQUIRE([LTOPTIONS_VERSION])dnl +AC_REQUIRE([LTSUGAR_VERSION])dnl +AC_REQUIRE([LTVERSION_VERSION])dnl +AC_REQUIRE([LTOBSOLETE_VERSION])dnl +m4_require([_LT_PROG_LTMAIN])dnl + +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) + +dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +_LT_SETUP + +# Only expand once: +m4_define([LT_INIT]) +]) +m4trace:/usr/share/aclocal/libtool.m4:107: -1- AU_DEFUN([AC_PROG_LIBTOOL], [m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:107: -1- AC_DEFUN([AC_PROG_LIBTOOL], [AC_DIAGNOSE([obsolete], [The macro `AC_PROG_LIBTOOL' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:108: -1- AU_DEFUN([AM_PROG_LIBTOOL], [m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:108: -1- AC_DEFUN([AM_PROG_LIBTOOL], [AC_DIAGNOSE([obsolete], [The macro `AM_PROG_LIBTOOL' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:609: -1- AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} +AC_MSG_NOTICE([creating $CONFIG_LT]) +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], +[# Run this file to recreate a libtool stub with the current configuration.]) + +cat >>"$CONFIG_LT" <<\_LTEOF +lt_cl_silent=false +exec AS_MESSAGE_LOG_FD>>config.log +{ + echo + AS_BOX([Running $as_me.]) +} >&AS_MESSAGE_LOG_FD + +lt_cl_help="\ +\`$as_me' creates a local libtool stub from the current configuration, +for use in further configure time tests before the real libtool is +generated. + +Usage: $[0] [[OPTIONS]] + + -h, --help print this help, then exit + -V, --version print version number, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + +Report bugs to ." + +lt_cl_version="\ +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) +configured by $[0], generated by m4_PACKAGE_STRING. + +Copyright (C) 2011 Free Software Foundation, Inc. +This config.lt script is free software; the Free Software Foundation +gives unlimited permision to copy, distribute and modify it." + +while test $[#] != 0 +do + case $[1] in + --version | --v* | -V ) + echo "$lt_cl_version"; exit 0 ;; + --help | --h* | -h ) + echo "$lt_cl_help"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --quiet | --q* | --silent | --s* | -q ) + lt_cl_silent=: ;; + + -*) AC_MSG_ERROR([unrecognized option: $[1] +Try \`$[0] --help' for more information.]) ;; + + *) AC_MSG_ERROR([unrecognized argument: $[1] +Try \`$[0] --help' for more information.]) ;; + esac + shift +done + +if $lt_cl_silent; then + exec AS_MESSAGE_FD>/dev/null +fi +_LTEOF + +cat >>"$CONFIG_LT" <<_LTEOF +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT +_LTEOF + +cat >>"$CONFIG_LT" <<\_LTEOF +AC_MSG_NOTICE([creating $ofile]) +_LT_OUTPUT_LIBTOOL_COMMANDS +AS_EXIT(0) +_LTEOF +chmod +x "$CONFIG_LT" + +# configure is writing to config.log, but config.lt does its own redirection, +# appending to config.log, which fails on DOS, as config.log is still kept +# open by configure. Here we exec the FD to /dev/null, effectively closing +# config.log, so it can be properly (re)opened and appended to by config.lt. +lt_cl_success=: +test "$silent" = yes && + lt_config_lt_args="$lt_config_lt_args --quiet" +exec AS_MESSAGE_LOG_FD>/dev/null +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false +exec AS_MESSAGE_LOG_FD>>config.log +$lt_cl_success || AS_EXIT(1) +]) +m4trace:/usr/share/aclocal/libtool.m4:790: -1- AC_DEFUN([LT_SUPPORTED_TAG], []) +m4trace:/usr/share/aclocal/libtool.m4:801: -1- AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl +m4_case([$1], + [C], [_LT_LANG(C)], + [C++], [_LT_LANG(CXX)], + [Go], [_LT_LANG(GO)], + [Java], [_LT_LANG(GCJ)], + [Fortran 77], [_LT_LANG(F77)], + [Fortran], [_LT_LANG(FC)], + [Windows Resource], [_LT_LANG(RC)], + [m4_ifdef([_LT_LANG_]$1[_CONFIG], + [_LT_LANG($1)], + [m4_fatal([$0: unsupported language: "$1"])])])dnl +]) +m4trace:/usr/share/aclocal/libtool.m4:893: -1- AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) +m4trace:/usr/share/aclocal/libtool.m4:893: -1- AC_DEFUN([AC_LIBTOOL_CXX], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_CXX' is obsolete. +You should run autoupdate.])dnl +LT_LANG(C++)]) +m4trace:/usr/share/aclocal/libtool.m4:894: -1- AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) +m4trace:/usr/share/aclocal/libtool.m4:894: -1- AC_DEFUN([AC_LIBTOOL_F77], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_F77' is obsolete. +You should run autoupdate.])dnl +LT_LANG(Fortran 77)]) +m4trace:/usr/share/aclocal/libtool.m4:895: -1- AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) +m4trace:/usr/share/aclocal/libtool.m4:895: -1- AC_DEFUN([AC_LIBTOOL_FC], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_FC' is obsolete. +You should run autoupdate.])dnl +LT_LANG(Fortran)]) +m4trace:/usr/share/aclocal/libtool.m4:896: -1- AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) +m4trace:/usr/share/aclocal/libtool.m4:896: -1- AC_DEFUN([AC_LIBTOOL_GCJ], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_GCJ' is obsolete. +You should run autoupdate.])dnl +LT_LANG(Java)]) +m4trace:/usr/share/aclocal/libtool.m4:897: -1- AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) +m4trace:/usr/share/aclocal/libtool.m4:897: -1- AC_DEFUN([AC_LIBTOOL_RC], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_RC' is obsolete. +You should run autoupdate.])dnl +LT_LANG(Windows Resource)]) +m4trace:/usr/share/aclocal/libtool.m4:1225: -1- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) +AC_ARG_WITH([sysroot], +[ --with-sysroot[=DIR] Search for dependent libraries within DIR + (or the compiler's sysroot if not specified).], +[], [with_sysroot=no]) + +dnl lt_sysroot will always be passed unquoted. We quote it here +dnl in case the user passed a directory name. +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + AC_MSG_RESULT([${with_sysroot}]) + AC_MSG_ERROR([The sysroot must be an absolute path.]) + ;; +esac + + AC_MSG_RESULT([${lt_sysroot:-no}]) +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl +[dependent libraries, and in which our libraries should be installed.])]) +m4trace:/usr/share/aclocal/libtool.m4:1502: -1- AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $RM conftest* +]) + +if test x"[$]$2" = xyes; then + m4_if([$5], , :, [$5]) +else + m4_if([$6], , :, [$6]) +fi +]) +m4trace:/usr/share/aclocal/libtool.m4:1544: -1- AU_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [m4_if($#, 0, [_LT_COMPILER_OPTION], [_LT_COMPILER_OPTION($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:1544: -1- AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_COMPILER_OPTION' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [_LT_COMPILER_OPTION], [_LT_COMPILER_OPTION($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:1553: -1- AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $3" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" +]) + +if test x"[$]$2" = xyes; then + m4_if([$4], , :, [$4]) +else + m4_if([$5], , :, [$5]) +fi +]) +m4trace:/usr/share/aclocal/libtool.m4:1588: -1- AU_DEFUN([AC_LIBTOOL_LINKER_OPTION], [m4_if($#, 0, [_LT_LINKER_OPTION], [_LT_LINKER_OPTION($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:1588: -1- AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_LINKER_OPTION' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [_LT_LINKER_OPTION], [_LT_LINKER_OPTION($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:1595: -1- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl +# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac +]) +if test -n $lt_cv_sys_max_cmd_len ; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +max_cmd_len=$lt_cv_sys_max_cmd_len +_LT_DECL([], [max_cmd_len], [0], + [What is the maximum length of a command?]) +]) +m4trace:/usr/share/aclocal/libtool.m4:1733: -1- AU_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [m4_if($#, 0, [LT_CMD_MAX_LEN], [LT_CMD_MAX_LEN($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:1733: -1- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_SYS_MAX_CMD_LEN' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_CMD_MAX_LEN], [LT_CMD_MAX_LEN($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:1844: -1- AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +_LT_DECL([dlopen_support], [enable_dlopen], [0], + [Whether dlopen is supported]) +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], + [Whether dlopen of programs is supported]) +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], + [Whether dlopen of statically linked programs is supported]) +]) +m4trace:/usr/share/aclocal/libtool.m4:1961: -1- AU_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [m4_if($#, 0, [LT_SYS_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:1961: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_DLOPEN_SELF' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:2931: -1- AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="m4_if([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +_LT_DECL([], [MAGIC_CMD], [0], + [Used to examine libraries when file_magic_cmd begins with "file"])dnl +]) +m4trace:/usr/share/aclocal/libtool.m4:2993: -1- AU_DEFUN([AC_PATH_TOOL_PREFIX], [m4_if($#, 0, [_LT_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:2993: -1- AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_DIAGNOSE([obsolete], [The macro `AC_PATH_TOOL_PREFIX' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [_LT_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:3016: -1- AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl + +AC_ARG_WITH([gnu-ld], + [AS_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test "$withval" = no || with_gnu_ld=yes], + [with_gnu_ld=no])dnl + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi]) +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + AC_SUBST([DUMPBIN]) + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm +AC_SUBST([NM]) +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl + +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], + [lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) + cat conftest.out >&AS_MESSAGE_LOG_FD + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest*]) +]) +m4trace:/usr/share/aclocal/libtool.m4:3486: -1- AU_DEFUN([AM_PROG_NM], [m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:3486: -1- AC_DEFUN([AM_PROG_NM], [AC_DIAGNOSE([obsolete], [The macro `AM_PROG_NM' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:3487: -1- AU_DEFUN([AC_PROG_NM], [m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:3487: -1- AC_DEFUN([AC_PROG_NM], [AC_DIAGNOSE([obsolete], [The macro `AC_PROG_NM' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:3557: -1- AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM="-lm") + ;; +esac +AC_SUBST([LIBM]) +]) +m4trace:/usr/share/aclocal/libtool.m4:3576: -1- AU_DEFUN([AC_CHECK_LIBM], [m4_if($#, 0, [LT_LIB_M], [LT_LIB_M($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:3576: -1- AC_DEFUN([AC_CHECK_LIBM], [AC_DIAGNOSE([obsolete], [The macro `AC_CHECK_LIBM' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_LIB_M], [LT_LIB_M($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:7623: -1- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], + [AC_CHECK_TOOL(GCJ, gcj,) + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS)])])[]dnl +]) +m4trace:/usr/share/aclocal/libtool.m4:7632: -1- AU_DEFUN([LT_AC_PROG_GCJ], [m4_if($#, 0, [LT_PROG_GCJ], [LT_PROG_GCJ($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:7632: -1- AC_DEFUN([LT_AC_PROG_GCJ], [AC_DIAGNOSE([obsolete], [The macro `LT_AC_PROG_GCJ' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_PROG_GCJ], [LT_PROG_GCJ($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:7639: -1- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) +]) +m4trace:/usr/share/aclocal/libtool.m4:7646: -1- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) +]) +m4trace:/usr/share/aclocal/libtool.m4:7651: -1- AU_DEFUN([LT_AC_PROG_RC], [m4_if($#, 0, [LT_PROG_RC], [LT_PROG_RC($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:7651: -1- AC_DEFUN([LT_AC_PROG_RC], [AC_DIAGNOSE([obsolete], [The macro `LT_AC_PROG_RC' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_PROG_RC], [LT_PROG_RC($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:7771: -1- AU_DEFUN([LT_AC_PROG_SED], [m4_if($#, 0, [AC_PROG_SED], [AC_PROG_SED($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:7771: -1- AC_DEFUN([LT_AC_PROG_SED], [AC_DIAGNOSE([obsolete], [The macro `LT_AC_PROG_SED' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [AC_PROG_SED], [AC_PROG_SED($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:16: -1- AC_DEFUN([LT_CONFIG_LTDL_DIR], [AC_BEFORE([$0], [LTDL_INIT]) +_$0($*) +]) +m4trace:/usr/share/aclocal/ltdl.m4:68: -1- AC_DEFUN([LTDL_CONVENIENCE], [AC_BEFORE([$0], [LTDL_INIT])dnl +dnl Although the argument is deprecated and no longer documented, +dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one +dnl here make sure it is the same as any other declaration of libltdl's +dnl location! This also ensures lt_ltdl_dir is set when configure.ac is +dnl not yet using an explicit LT_CONFIG_LTDL_DIR. +m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl +_$0() +]) +m4trace:/usr/share/aclocal/ltdl.m4:81: -1- AU_DEFUN([AC_LIBLTDL_CONVENIENCE], [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) +_LTDL_CONVENIENCE]) +m4trace:/usr/share/aclocal/ltdl.m4:81: -1- AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBLTDL_CONVENIENCE' is obsolete. +You should run autoupdate.])dnl +_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) +_LTDL_CONVENIENCE]) +m4trace:/usr/share/aclocal/ltdl.m4:124: -1- AC_DEFUN([LTDL_INSTALLABLE], [AC_BEFORE([$0], [LTDL_INIT])dnl +dnl Although the argument is deprecated and no longer documented, +dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one +dnl here make sure it is the same as any other declaration of libltdl's +dnl location! This also ensures lt_ltdl_dir is set when configure.ac is +dnl not yet using an explicit LT_CONFIG_LTDL_DIR. +m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl +_$0() +]) +m4trace:/usr/share/aclocal/ltdl.m4:137: -1- AU_DEFUN([AC_LIBLTDL_INSTALLABLE], [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) +_LTDL_INSTALLABLE]) +m4trace:/usr/share/aclocal/ltdl.m4:137: -1- AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBLTDL_INSTALLABLE' is obsolete. +You should run autoupdate.])dnl +_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) +_LTDL_INSTALLABLE]) +m4trace:/usr/share/aclocal/ltdl.m4:213: -1- AC_DEFUN([_LT_LIBOBJ], [ + m4_pattern_allow([^_LT_LIBOBJS$]) + _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext" +]) +m4trace:/usr/share/aclocal/ltdl.m4:226: -1- AC_DEFUN([LTDL_INIT], [dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +dnl We need to keep our own list of libobjs separate from our parent project, +dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while +dnl we look for our own LIBOBJs. +m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ])) +m4_pushdef([AC_LIBSOURCES]) + +dnl If not otherwise defined, default to the 1.5.x compatible subproject mode: +m4_if(_LTDL_MODE, [], + [m4_define([_LTDL_MODE], m4_default([$2], [subproject])) + m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])], + [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])]) + +AC_ARG_WITH([included_ltdl], + [AS_HELP_STRING([--with-included-ltdl], + [use the GNU ltdl sources included here])]) + +if test "x$with_included_ltdl" != xyes; then + # We are not being forced to use the included libltdl sources, so + # decide whether there is a useful installed version we can use. + AC_CHECK_HEADER([ltdl.h], + [AC_CHECK_DECL([lt_dlinterface_register], + [AC_CHECK_LIB([ltdl], [lt_dladvise_preload], + [with_included_ltdl=no], + [with_included_ltdl=yes])], + [with_included_ltdl=yes], + [AC_INCLUDES_DEFAULT + #include ])], + [with_included_ltdl=yes], + [AC_INCLUDES_DEFAULT] + ) +fi + +dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE +dnl was called yet, then for old times' sake, we assume libltdl is in an +dnl eponymous directory: +AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])]) + +AC_ARG_WITH([ltdl_include], + [AS_HELP_STRING([--with-ltdl-include=DIR], + [use the ltdl headers installed in DIR])]) + +if test -n "$with_ltdl_include"; then + if test -f "$with_ltdl_include/ltdl.h"; then : + else + AC_MSG_ERROR([invalid ltdl include directory: `$with_ltdl_include']) + fi +else + with_ltdl_include=no +fi + +AC_ARG_WITH([ltdl_lib], + [AS_HELP_STRING([--with-ltdl-lib=DIR], + [use the libltdl.la installed in DIR])]) + +if test -n "$with_ltdl_lib"; then + if test -f "$with_ltdl_lib/libltdl.la"; then : + else + AC_MSG_ERROR([invalid ltdl library directory: `$with_ltdl_lib']) + fi +else + with_ltdl_lib=no +fi + +case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in + ,yes,no,no,) + m4_case(m4_default(_LTDL_TYPE, [convenience]), + [convenience], [_LTDL_CONVENIENCE], + [installable], [_LTDL_INSTALLABLE], + [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)]) + ;; + ,no,no,no,) + # If the included ltdl is not to be used, then use the + # preinstalled libltdl we found. + AC_DEFINE([HAVE_LTDL], [1], + [Define this if a modern libltdl is already installed]) + LIBLTDL=-lltdl + LTDLDEPS= + LTDLINCL= + ;; + ,no*,no,*) + AC_MSG_ERROR([`--with-ltdl-include' and `--with-ltdl-lib' options must be used together]) + ;; + *) with_included_ltdl=no + LIBLTDL="-L$with_ltdl_lib -lltdl" + LTDLDEPS= + LTDLINCL="-I$with_ltdl_include" + ;; +esac +INCLTDL="$LTDLINCL" + +# Report our decision... +AC_MSG_CHECKING([where to find libltdl headers]) +AC_MSG_RESULT([$LTDLINCL]) +AC_MSG_CHECKING([where to find libltdl library]) +AC_MSG_RESULT([$LIBLTDL]) + +_LTDL_SETUP + +dnl restore autoconf definition. +m4_popdef([AC_LIBOBJ]) +m4_popdef([AC_LIBSOURCES]) + +AC_CONFIG_COMMANDS_PRE([ + _ltdl_libobjs= + _ltdl_ltlibobjs= + if test -n "$_LT_LIBOBJS"; then + # Remove the extension. + _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do + _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" + _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" + done + fi + AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs]) + AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs]) +]) + +# Only expand once: +m4_define([LTDL_INIT]) +]) +m4trace:/usr/share/aclocal/ltdl.m4:352: -1- AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:352: -1- AC_DEFUN([AC_LIB_LTDL], [AC_DIAGNOSE([obsolete], [The macro `AC_LIB_LTDL' is obsolete. +You should run autoupdate.])dnl +LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:353: -1- AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:353: -1- AC_DEFUN([AC_WITH_LTDL], [AC_DIAGNOSE([obsolete], [The macro `AC_WITH_LTDL' is obsolete. +You should run autoupdate.])dnl +LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:354: -1- AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:354: -1- AC_DEFUN([LT_WITH_LTDL], [AC_DIAGNOSE([obsolete], [The macro `LT_WITH_LTDL' is obsolete. +You should run autoupdate.])dnl +LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:367: -1- AC_DEFUN([_LTDL_SETUP], [AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([LT_SYS_MODULE_EXT])dnl +AC_REQUIRE([LT_SYS_MODULE_PATH])dnl +AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl +AC_REQUIRE([LT_LIB_DLLOAD])dnl +AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl +AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl +AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl +AC_REQUIRE([gl_FUNC_ARGZ])dnl + +m4_require([_LT_CHECK_OBJDIR])dnl +m4_require([_LT_HEADER_DLFCN])dnl +m4_require([_LT_CHECK_DLPREOPEN])dnl +m4_require([_LT_DECL_SED])dnl + +dnl Don't require this, or it will be expanded earlier than the code +dnl that sets the variables it relies on: +_LT_ENABLE_INSTALL + +dnl _LTDL_MODE specific code must be called at least once: +_LTDL_MODE_DISPATCH + +# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS +# the user used. This is so that ltdl.h can pick up the parent projects +# config.h file, The first file in AC_CONFIG_HEADERS must contain the +# definitions required by ltdl.c. +# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). +AC_CONFIG_COMMANDS_PRE([dnl +m4_pattern_allow([^LT_CONFIG_H$])dnl +m4_ifset([AH_HEADER], + [LT_CONFIG_H=AH_HEADER], + [m4_ifset([AC_LIST_HEADERS], + [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[ ]]*,,;s,[[ :]].*$,,'`], + [])])]) +AC_SUBST([LT_CONFIG_H]) + +AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h], + [], [], [AC_INCLUDES_DEFAULT]) + +AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])]) +AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])]) + +m4_pattern_allow([LT_LIBEXT])dnl +AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension]) + +name= +eval "lt_libprefix=\"$libname_spec\"" +m4_pattern_allow([LT_LIBPREFIX])dnl +AC_DEFINE_UNQUOTED([LT_LIBPREFIX],["$lt_libprefix"],[The archive prefix]) + +name=ltdl +eval "LTDLOPEN=\"$libname_spec\"" +AC_SUBST([LTDLOPEN]) +]) +m4trace:/usr/share/aclocal/ltdl.m4:443: -1- AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_CACHE_CHECK([whether deplibs are loaded by dlopen], + [lt_cv_sys_dlopen_deplibs], + [# PORTME does your system automatically load deplibs for dlopen? + # or its logical equivalent (e.g. shl_load for HP-UX < 11) + # For now, we just catch OSes we know something about -- in the + # future, we'll try test this programmatically. + lt_cv_sys_dlopen_deplibs=unknown + case $host_os in + aix3*|aix4.1.*|aix4.2.*) + # Unknown whether this is true for these versions of AIX, but + # we want this `case' here to explicitly catch those versions. + lt_cv_sys_dlopen_deplibs=unknown + ;; + aix[[4-9]]*) + lt_cv_sys_dlopen_deplibs=yes + ;; + amigaos*) + case $host_cpu in + powerpc) + lt_cv_sys_dlopen_deplibs=no + ;; + esac + ;; + darwin*) + # Assuming the user has installed a libdl from somewhere, this is true + # If you are looking for one http://www.opendarwin.org/projects/dlcompat + lt_cv_sys_dlopen_deplibs=yes + ;; + freebsd* | dragonfly*) + lt_cv_sys_dlopen_deplibs=yes + ;; + gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) + # GNU and its variants, using gnu ld.so (Glibc) + lt_cv_sys_dlopen_deplibs=yes + ;; + hpux10*|hpux11*) + lt_cv_sys_dlopen_deplibs=yes + ;; + interix*) + lt_cv_sys_dlopen_deplibs=yes + ;; + irix[[12345]]*|irix6.[[01]]*) + # Catch all versions of IRIX before 6.2, and indicate that we don't + # know how it worked for any of those versions. + lt_cv_sys_dlopen_deplibs=unknown + ;; + irix*) + # The case above catches anything before 6.2, and it's known that + # at 6.2 and later dlopen does load deplibs. + lt_cv_sys_dlopen_deplibs=yes + ;; + netbsd* | netbsdelf*-gnu) + lt_cv_sys_dlopen_deplibs=yes + ;; + openbsd*) + lt_cv_sys_dlopen_deplibs=yes + ;; + osf[[1234]]*) + # dlopen did load deplibs (at least at 4.x), but until the 5.x series, + # it did *not* use an RPATH in a shared library to find objects the + # library depends on, so we explicitly say `no'. + lt_cv_sys_dlopen_deplibs=no + ;; + osf5.0|osf5.0a|osf5.1) + # dlopen *does* load deplibs and with the right loader patch applied + # it even uses RPATH in a shared library to search for shared objects + # that the library depends on, but there's no easy way to know if that + # patch is installed. Since this is the case, all we can really + # say is unknown -- it depends on the patch being installed. If + # it is, this changes to `yes'. Without it, it would be `no'. + lt_cv_sys_dlopen_deplibs=unknown + ;; + osf*) + # the two cases above should catch all versions of osf <= 5.1. Read + # the comments above for what we know about them. + # At > 5.1, deplibs are loaded *and* any RPATH in a shared library + # is used to find them so we can finally say `yes'. + lt_cv_sys_dlopen_deplibs=yes + ;; + qnx*) + lt_cv_sys_dlopen_deplibs=yes + ;; + solaris*) + lt_cv_sys_dlopen_deplibs=yes + ;; + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + libltdl_cv_sys_dlopen_deplibs=yes + ;; + esac + ]) +if test "$lt_cv_sys_dlopen_deplibs" != yes; then + AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1], + [Define if the OS needs help to load dependent libraries for dlopen().]) +fi +]) +m4trace:/usr/share/aclocal/ltdl.m4:542: -1- AU_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [m4_if($#, 0, [LT_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:542: -1- AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SYS_DLOPEN_DEPLIBS' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:549: -1- AC_DEFUN([LT_SYS_MODULE_EXT], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl +AC_CACHE_CHECK([which extension is used for runtime loadable modules], + [libltdl_cv_shlibext], +[ +module=yes +eval libltdl_cv_shlibext=$shrext_cmds +module=no +eval libltdl_cv_shrext=$shrext_cmds + ]) +if test -n "$libltdl_cv_shlibext"; then + m4_pattern_allow([LT_MODULE_EXT])dnl + AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"], + [Define to the extension used for runtime loadable modules, say, ".so".]) +fi +if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then + m4_pattern_allow([LT_SHARED_EXT])dnl + AC_DEFINE_UNQUOTED([LT_SHARED_EXT], ["$libltdl_cv_shrext"], + [Define to the shared library suffix, say, ".dylib".]) +fi +]) +m4trace:/usr/share/aclocal/ltdl.m4:572: -1- AU_DEFUN([AC_LTDL_SHLIBEXT], [m4_if($#, 0, [LT_SYS_MODULE_EXT], [LT_SYS_MODULE_EXT($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:572: -1- AC_DEFUN([AC_LTDL_SHLIBEXT], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SHLIBEXT' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_MODULE_EXT], [LT_SYS_MODULE_EXT($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:579: -1- AC_DEFUN([LT_SYS_MODULE_PATH], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl +AC_CACHE_CHECK([which variable specifies run-time module search path], + [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"]) +if test -n "$lt_cv_module_path_var"; then + m4_pattern_allow([LT_MODULE_PATH_VAR])dnl + AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"], + [Define to the name of the environment variable that determines the run-time module search path.]) +fi +]) +m4trace:/usr/share/aclocal/ltdl.m4:591: -1- AU_DEFUN([AC_LTDL_SHLIBPATH], [m4_if($#, 0, [LT_SYS_MODULE_PATH], [LT_SYS_MODULE_PATH($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:591: -1- AC_DEFUN([AC_LTDL_SHLIBPATH], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SHLIBPATH' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_MODULE_PATH], [LT_SYS_MODULE_PATH($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:598: -1- AC_DEFUN([LT_SYS_DLSEARCH_PATH], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl +AC_CACHE_CHECK([for the default library search path], + [lt_cv_sys_dlsearch_path], + [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"]) +if test -n "$lt_cv_sys_dlsearch_path"; then + sys_dlsearch_path= + for dir in $lt_cv_sys_dlsearch_path; do + if test -z "$sys_dlsearch_path"; then + sys_dlsearch_path="$dir" + else + sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" + fi + done + m4_pattern_allow([LT_DLSEARCH_PATH])dnl + AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"], + [Define to the system default library search path.]) +fi +]) +m4trace:/usr/share/aclocal/ltdl.m4:619: -1- AU_DEFUN([AC_LTDL_SYSSEARCHPATH], [m4_if($#, 0, [LT_SYS_DLSEARCH_PATH], [LT_SYS_DLSEARCH_PATH($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:619: -1- AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SYSSEARCHPATH' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_DLSEARCH_PATH], [LT_SYS_DLSEARCH_PATH($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:645: -1- AC_DEFUN([LT_LIB_DLLOAD], [m4_pattern_allow([^LT_DLLOADERS$]) +LT_DLLOADERS= +AC_SUBST([LT_DLLOADERS]) + +AC_LANG_PUSH([C]) + +LIBADD_DLOPEN= +AC_SEARCH_LIBS([dlopen], [dl], + [AC_DEFINE([HAVE_LIBDL], [1], + [Define if you have the libdl library or equivalent.]) + if test "$ac_cv_search_dlopen" != "none required" ; then + LIBADD_DLOPEN="-ldl" + fi + libltdl_cv_lib_dl_dlopen="yes" + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], + [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H +# include +#endif + ]], [[dlopen(0, 0);]])], + [AC_DEFINE([HAVE_LIBDL], [1], + [Define if you have the libdl library or equivalent.]) + libltdl_cv_func_dlopen="yes" + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], + [AC_CHECK_LIB([svld], [dlopen], + [AC_DEFINE([HAVE_LIBDL], [1], + [Define if you have the libdl library or equivalent.]) + LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])]) +if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes +then + lt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBADD_DLOPEN" + AC_CHECK_FUNCS([dlerror]) + LIBS="$lt_save_LIBS" +fi +AC_SUBST([LIBADD_DLOPEN]) + +LIBADD_SHL_LOAD= +AC_CHECK_FUNC([shl_load], + [AC_DEFINE([HAVE_SHL_LOAD], [1], + [Define if you have the shl_load function.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"], + [AC_CHECK_LIB([dld], [shl_load], + [AC_DEFINE([HAVE_SHL_LOAD], [1], + [Define if you have the shl_load function.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" + LIBADD_SHL_LOAD="-ldld"])]) +AC_SUBST([LIBADD_SHL_LOAD]) + +case $host_os in +darwin[[1567]].*) +# We only want this for pre-Mac OS X 10.4. + AC_CHECK_FUNC([_dyld_func_lookup], + [AC_DEFINE([HAVE_DYLD], [1], + [Define if you have the _dyld_func_lookup function.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"]) + ;; +beos*) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" + ;; +cygwin* | mingw* | os2* | pw32*) + AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include ]]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" + ;; +esac + +AC_CHECK_LIB([dld], [dld_link], + [AC_DEFINE([HAVE_DLD], [1], + [Define if you have the GNU dld library.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"]) +AC_SUBST([LIBADD_DLD_LINK]) + +m4_pattern_allow([^LT_DLPREOPEN$]) +LT_DLPREOPEN= +if test -n "$LT_DLLOADERS" +then + for lt_loader in $LT_DLLOADERS; do + LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " + done + AC_DEFINE([HAVE_LIBDLLOADER], [1], + [Define if libdlloader will be built on this platform]) +fi +AC_SUBST([LT_DLPREOPEN]) + +dnl This isn't used anymore, but set it for backwards compatibility +LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" +AC_SUBST([LIBADD_DL]) + +AC_LANG_POP +]) +m4trace:/usr/share/aclocal/ltdl.m4:738: -1- AU_DEFUN([AC_LTDL_DLLIB], [m4_if($#, 0, [LT_LIB_DLLOAD], [LT_LIB_DLLOAD($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:738: -1- AC_DEFUN([AC_LTDL_DLLIB], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_DLLIB' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_LIB_DLLOAD], [LT_LIB_DLLOAD($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:746: -1- AC_DEFUN([LT_SYS_SYMBOL_USCORE], [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +AC_CACHE_CHECK([for _ prefix in compiled symbols], + [lt_cv_sys_symbol_underscore], + [lt_cv_sys_symbol_underscore=no + cat > conftest.$ac_ext <<_LT_EOF +void nm_test_func(){} +int main(){nm_test_func;return 0;} +_LT_EOF + if AC_TRY_EVAL(ac_compile); then + # Now try to grab the symbols. + ac_nlist=conftest.nm + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then + # See whether the symbols have a leading underscore. + if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then + lt_cv_sys_symbol_underscore=yes + else + if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then + : + else + echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD + fi + fi + else + echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.c >&AS_MESSAGE_LOG_FD + fi + rm -rf conftest* + ]) + sys_symbol_underscore=$lt_cv_sys_symbol_underscore + AC_SUBST([sys_symbol_underscore]) +]) +m4trace:/usr/share/aclocal/ltdl.m4:783: -1- AU_DEFUN([AC_LTDL_SYMBOL_USCORE], [m4_if($#, 0, [LT_SYS_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:783: -1- AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SYMBOL_USCORE' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:790: -1- AC_DEFUN([LT_FUNC_DLSYM_USCORE], [AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl +if test x"$lt_cv_sys_symbol_underscore" = xyes; then + if test x"$libltdl_cv_func_dlopen" = xyes || + test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then + AC_CACHE_CHECK([whether we have to add an underscore for dlsym], + [libltdl_cv_need_uscore], + [libltdl_cv_need_uscore=unknown + save_LIBS="$LIBS" + LIBS="$LIBS $LIBADD_DLOPEN" + _LT_TRY_DLOPEN_SELF( + [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes], + [], [libltdl_cv_need_uscore=cross]) + LIBS="$save_LIBS" + ]) + fi +fi + +if test x"$libltdl_cv_need_uscore" = xyes; then + AC_DEFINE([NEED_USCORE], [1], + [Define if dlsym() requires a leading underscore in symbol names.]) +fi +]) +m4trace:/usr/share/aclocal/ltdl.m4:815: -1- AU_DEFUN([AC_LTDL_DLSYM_USCORE], [m4_if($#, 0, [LT_FUNC_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:815: -1- AC_DEFUN([AC_LTDL_DLSYM_USCORE], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_DLSYM_USCORE' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_FUNC_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE($@)])]) +m4trace:/usr/share/aclocal/ltoptions.m4:14: -1- AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) +m4trace:/usr/share/aclocal/ltoptions.m4:111: -1- AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `dlopen' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:111: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_DLOPEN' is obsolete. +You should run autoupdate.])dnl +_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `dlopen' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:146: -1- AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:146: -1- AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. +You should run autoupdate.])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:195: -1- AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:199: -1- AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:203: -1- AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:203: -1- AC_DEFUN([AM_ENABLE_SHARED], [AC_DIAGNOSE([obsolete], [The macro `AM_ENABLE_SHARED' is obsolete. +You should run autoupdate.])dnl +AC_ENABLE_SHARED($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:204: -1- AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:204: -1- AC_DEFUN([AM_DISABLE_SHARED], [AC_DIAGNOSE([obsolete], [The macro `AM_DISABLE_SHARED' is obsolete. +You should run autoupdate.])dnl +AC_DISABLE_SHARED($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:249: -1- AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:253: -1- AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:257: -1- AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:257: -1- AC_DEFUN([AM_ENABLE_STATIC], [AC_DIAGNOSE([obsolete], [The macro `AM_ENABLE_STATIC' is obsolete. +You should run autoupdate.])dnl +AC_ENABLE_STATIC($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:258: -1- AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:258: -1- AC_DEFUN([AM_DISABLE_STATIC], [AC_DIAGNOSE([obsolete], [The macro `AM_DISABLE_STATIC' is obsolete. +You should run autoupdate.])dnl +AC_DISABLE_STATIC($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:303: -1- AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `fast-install' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:303: -1- AC_DEFUN([AC_ENABLE_FAST_INSTALL], [AC_DIAGNOSE([obsolete], [The macro `AC_ENABLE_FAST_INSTALL' is obsolete. +You should run autoupdate.])dnl +_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `fast-install' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:310: -1- AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `disable-fast-install' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:310: -1- AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_DIAGNOSE([obsolete], [The macro `AC_DISABLE_FAST_INSTALL' is obsolete. +You should run autoupdate.])dnl +_LT_SET_OPTION([LT_INIT], [disable-fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `disable-fast-install' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:358: -1- AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `pic-only' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:358: -1- AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_PICMODE' is obsolete. +You should run autoupdate.])dnl +_LT_SET_OPTION([LT_INIT], [pic-only]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `pic-only' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltsugar.m4:13: -1- AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) +m4trace:/usr/share/aclocal/ltversion.m4:18: -1- AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.2' +macro_revision='1.3337' +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) +_LT_DECL(, macro_revision, 0) +]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:36: -1- AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:40: -1- AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:41: -1- AC_DEFUN([_LT_AC_SHELL_INIT]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:42: -1- AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:44: -1- AC_DEFUN([_LT_AC_TAGVAR]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:45: -1- AC_DEFUN([AC_LTDL_ENABLE_INSTALL]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:46: -1- AC_DEFUN([AC_LTDL_PREOPEN]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:47: -1- AC_DEFUN([_LT_AC_SYS_COMPILER]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:48: -1- AC_DEFUN([_LT_AC_LOCK]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:49: -1- AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:50: -1- AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:51: -1- AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:52: -1- AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:53: -1- AC_DEFUN([AC_LIBTOOL_OBJDIR]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:54: -1- AC_DEFUN([AC_LTDL_OBJDIR]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:55: -1- AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:56: -1- AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:57: -1- AC_DEFUN([AC_PATH_MAGIC]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:58: -1- AC_DEFUN([AC_PROG_LD_GNU]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:59: -1- AC_DEFUN([AC_PROG_LD_RELOAD_FLAG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:60: -1- AC_DEFUN([AC_DEPLIBS_CHECK_METHOD]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:61: -1- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:62: -1- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:63: -1- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:64: -1- AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:65: -1- AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:66: -1- AC_DEFUN([LT_AC_PROG_EGREP]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:71: -1- AC_DEFUN([_AC_PROG_LIBTOOL]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:72: -1- AC_DEFUN([AC_LIBTOOL_SETUP]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:73: -1- AC_DEFUN([_LT_AC_CHECK_DLFCN]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:74: -1- AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:75: -1- AC_DEFUN([_LT_AC_TAGCONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:77: -1- AC_DEFUN([_LT_AC_LANG_CXX]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:78: -1- AC_DEFUN([_LT_AC_LANG_F77]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:79: -1- AC_DEFUN([_LT_AC_LANG_GCJ]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:80: -1- AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:81: -1- AC_DEFUN([_LT_AC_LANG_C_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:82: -1- AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:83: -1- AC_DEFUN([_LT_AC_LANG_CXX_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:84: -1- AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:85: -1- AC_DEFUN([_LT_AC_LANG_F77_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:86: -1- AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:87: -1- AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:88: -1- AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:89: -1- AC_DEFUN([_LT_AC_LANG_RC_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:90: -1- AC_DEFUN([AC_LIBTOOL_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:91: -1- AC_DEFUN([_LT_AC_FILE_LTDLL_C]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:93: -1- AC_DEFUN([_LT_AC_PROG_CXXCPP]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:96: -1- AC_DEFUN([_LT_PROG_F77]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:97: -1- AC_DEFUN([_LT_PROG_FC]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:98: -1- AC_DEFUN([_LT_PROG_CXX]) +m4trace:/usr/share/aclocal-1.11/amversion.m4:17: -1- AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.11.6], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) +m4trace:/usr/share/aclocal-1.11/amversion.m4:36: -1- AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11.6])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) +m4trace:/usr/share/aclocal-1.11/auxdir.m4:49: -1- AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) +m4trace:/usr/share/aclocal-1.11/cond.m4:15: -1- AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) +m4trace:/usr/share/aclocal-1.11/depend.m4:28: -1- AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], UPC, [depcc="$UPC" am_compiler_list=], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) +m4trace:/usr/share/aclocal-1.11/depend.m4:164: -1- AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) +m4trace:/usr/share/aclocal-1.11/depend.m4:172: -1- AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl +]) +m4trace:/usr/share/aclocal-1.11/depout.m4:14: -1- AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +]) +m4trace:/usr/share/aclocal-1.11/depout.m4:75: -1- AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) +m4trace:/usr/share/aclocal-1.11/init.m4:26: -1- AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl +]) +m4trace:/usr/share/aclocal-1.11/init.m4:126: -1- AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) +m4trace:/usr/share/aclocal-1.11/install-sh.m4:14: -1- AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST(install_sh)]) +m4trace:/usr/share/aclocal-1.11/lead-dot.m4:12: -1- AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) +m4trace:/usr/share/aclocal-1.11/make.m4:14: -1- AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) +m4trace:/usr/share/aclocal-1.11/missing.m4:14: -1- AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) +m4trace:/usr/share/aclocal-1.11/missing.m4:24: -1- AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) +m4trace:/usr/share/aclocal-1.11/mkdirp.m4:14: -1- AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) +m4trace:/usr/share/aclocal-1.11/options.m4:14: -1- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) +m4trace:/usr/share/aclocal-1.11/options.m4:20: -1- AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) +m4trace:/usr/share/aclocal-1.11/options.m4:26: -1- AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) +m4trace:/usr/share/aclocal-1.11/options.m4:32: -1- AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) +m4trace:/usr/share/aclocal-1.11/runlog.m4:14: -1- AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + (exit $ac_status); }]) +m4trace:/usr/share/aclocal-1.11/sanity.m4:14: -1- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) +m4trace:/usr/share/aclocal-1.11/silent.m4:14: -1- AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], +[ --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0')]) +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +dnl +dnl A few `make' implementations (e.g., NonStop OS and NextStep) +dnl do not support nested variable expansions. +dnl See automake bug#9928 and bug#10237. +am_make=${MAKE-make} +AC_CACHE_CHECK([whether $am_make supports nested variables], + [am_cv_make_support_nested_variables], + [if AS_ECHO([['TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi]) +if test $am_cv_make_support_nested_variables = yes; then + dnl Using `$V' instead of `$(V)' breaks IRIX make. + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AC_SUBST([AM_V])dnl +AM_SUBST_NOTMAKE([AM_V])dnl +AC_SUBST([AM_DEFAULT_V])dnl +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) +m4trace:/usr/share/aclocal-1.11/strip.m4:19: -1- AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) +m4trace:/usr/share/aclocal-1.11/substnot.m4:14: -1- AC_DEFUN([_AM_SUBST_NOTMAKE]) +m4trace:/usr/share/aclocal-1.11/substnot.m4:19: -1- AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) +m4trace:/usr/share/aclocal-1.11/tar.m4:24: -1- AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) +m4trace:m4/ax_check_gl.m4:52: -1- AC_DEFUN([AX_CHECK_GL], [AC_REQUIRE([AC_CANONICAL_HOST]) +AC_REQUIRE([AC_PATH_X])dnl +AC_REQUIRE([AX_PTHREAD])dnl + +AC_LANG_PUSH([C]) +AX_COMPILER_VENDOR +AS_IF([test X$ax_cv_c_compiler_vendor != Xmicrosoft], + [GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm"]) + +# +# Use x_includes and x_libraries if they have been set (presumably by +# AC_PATH_X). +# +AS_IF([test "X$no_x" != "Xyes"], + [AS_IF([test -n "$x_includes"], + [GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"])] + AS_IF([test -n "$x_libraries"], + [GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"])) + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +AC_CHECK_HEADERS([GL/gl.h OpenGL/gl.h]) +CPPFLAGS="${ax_save_CPPFLAGS}" + +AC_CHECK_HEADERS([windows.h]) + +m4_define([AX_CHECK_GL_PROGRAM], + [AC_LANG_PROGRAM([[ +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif]], + [[glBegin(0)]])]) + +AC_CACHE_CHECK([for OpenGL library], [ax_cv_check_gl_libgl], +[ax_cv_check_gl_libgl="no" +case $host_cpu in + x86_64) ax_check_gl_libdir=lib64 ;; + *) ax_check_gl_libdir=lib ;; +esac +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" +LIBS="" +ax_check_libs="-lopengl32 -lGL" +for ax_lib in ${ax_check_libs}; do + AS_IF([test X$ax_compiler_ms = Xyes], + [ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`], + [ax_try_lib="${ax_lib}"]) + LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" +AC_LINK_IFELSE([AX_CHECK_GL_PROGRAM], + [ax_cv_check_gl_libgl="${ax_try_lib}"; break], + [ax_check_gl_nvidia_flags="-L/usr/${ax_check_gl_libdir}/nvidia" LIBS="${ax_try_lib} ${ax_check_gl_nvidia_flags} ${GL_LIBS} ${ax_save_LIBS}" +AC_LINK_IFELSE([AX_CHECK_GL_PROGRAM], + [ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break], + [ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' LIBS="${ax_try_lib} ${ax_check_gl_dylib_flag} ${GL_LIBS} ${ax_save_LIBS}" +AC_LINK_IFELSE([AX_CHECK_GL_PROGRAM], + [ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break])])]) +done + +AS_IF([test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes], +[LIBS='-framework OpenGL' +AC_LINK_IFELSE([AX_CHECK_GL_PROGRAM], + [ax_cv_check_gl_libgl="$LIBS"])]) + +LIBS=${ax_save_LIBS} +CPPFLAGS=${ax_save_CPPFLAGS}]) + +AS_IF([test "X$ax_cv_check_gl_libgl" = Xno], + [no_gl=yes; GL_CFLAGS=""; GL_LIBS=""], + [GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"]) +AC_LANG_POP([C]) + +AC_SUBST([GL_CFLAGS]) +AC_SUBST([GL_LIBS]) +]) +m4trace:m4/ax_check_glu.m4:57: -1- AC_DEFUN([AX_CHECK_GLU], [AC_REQUIRE([AX_CHECK_GL])dnl +AC_REQUIRE([AC_PROG_CXX])dnl +GLU_CFLAGS="${GL_CFLAGS}" + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +AC_CHECK_HEADERS([GL/glu.h OpenGL/glu.h]) +CPPFLAGS="${ax_save_CPPFLAGS}" + +m4_define([AX_CHECK_GLU_PROGRAM], + [AC_LANG_PROGRAM([[ +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLU_H +# include +# elif defined(HAVE_OPENGL_GLU_H) +# include +# else +# error no glu.h +# endif]], + [[gluBeginCurve(0)]])]) + +AC_CACHE_CHECK([for OpenGL Utility library], [ax_cv_check_glu_libglu], +[ax_cv_check_glu_libglu="no" +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" + +# +# First, check for the possibility that everything we need is already in +# GL_LIBS. +# +LIBS="${GL_LIBS} ${ax_save_LIBS}" +# +# libGLU typically links with libstdc++ on POSIX platforms. +# However, setting the language to C++ means that test program +# source is named "conftest.cc"; and Microsoft cl doesn't know what +# to do with such a file. +# +AC_LANG_PUSH([C++]) +AS_IF([test X$ax_compiler_ms = Xyes], + [AC_LANG_PUSH([C])]) +AC_LINK_IFELSE( +[AX_CHECK_GLU_PROGRAM], +[ax_cv_check_glu_libglu=yes], +[LIBS="" +ax_check_libs="-lglu32 -lGLU" +for ax_lib in ${ax_check_libs}; do + AS_IF([test X$ax_compiler_ms = Xyes], + [ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`], + [ax_try_lib="${ax_lib}"]) + LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" + AC_LINK_IFELSE([AX_CHECK_GLU_PROGRAM], + [ax_cv_check_glu_libglu="${ax_try_lib}"; break]) +done +]) +AS_IF([test X$ax_compiler_ms = Xyes], + [AC_LANG_POP([C])]) +AC_LANG_POP([C++]) + +LIBS=${ax_save_LIBS} +CPPFLAGS=${ax_save_CPPFLAGS}]) +AS_IF([test "X$ax_cv_check_glu_libglu" = Xno], + [no_glu=yes; GLU_CFLAGS=""; GLU_LIBS=""], + [AS_IF([test "X$ax_cv_check_glu_libglu" = Xyes], + [GLU_LIBS="$GL_LIBS"], + [GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"])]) +AC_SUBST([GLU_CFLAGS]) +AC_SUBST([GLU_LIBS]) + +# +# Some versions of Mac OS X include a broken interpretation of the GLU +# tesselation callback function signature. +# +AS_IF([test "X$ax_cv_check_glu_libglu" != Xno], +[AC_CACHE_CHECK([for varargs GLU tesselator callback function type], + [ax_cv_varargs_glu_tesscb], +[ax_cv_varargs_glu_tesscb=no +ax_save_CFLAGS="$CFLAGS" +CFLAGS="$GL_CFLAGS $CFLAGS" +AC_COMPILE_IFELSE( +[AC_LANG_PROGRAM([[ +# ifdef HAVE_GL_GLU_H +# include +# else +# include +# endif]], + [[GLvoid (*func)(...); gluTessCallback(0, 0, func)]])], +[ax_cv_varargs_glu_tesscb=yes]) +CFLAGS="$ax_save_CFLAGS"]) +AS_IF([test X$ax_cv_varargs_glu_tesscb = Xyes], + [AC_DEFINE([HAVE_VARARGS_GLU_TESSCB], [1], + [Use nonstandard varargs form for the GLU tesselator callback])])]) +]) +m4trace:m4/ax_check_glut.m4:51: -1- AC_DEFUN([AX_CHECK_GLUT], [AC_REQUIRE([AX_CHECK_GLU])dnl +AC_REQUIRE([AC_PATH_XTRA])dnl + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" +AC_CHECK_HEADERS([GL/glut.h GLUT/glut.h]) +CPPFLAGS="${ax_save_CPPFLAGS}" + +GLUT_CFLAGS=${GLU_CFLAGS} +GLUT_LIBS=${GLU_LIBS} + +m4_define([AX_CHECK_GLUT_PROGRAM], + [AC_LANG_PROGRAM([[ +# if HAVE_WINDOWS_H && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLUT_H +# include +# elif defined(HAVE_GLUT_GLUT_H) +# include +# else +# error no glut.h +# endif]], + [[glutMainLoop()]])]) + +# +# If X is present, assume GLUT depends on it. +# +AS_IF([test X$no_x != Xyes], + [GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"]) + +AC_CACHE_CHECK([for GLUT library], [ax_cv_check_glut_libglut], +[ax_cv_check_glut_libglut="no" +AC_LANG_PUSH(C) +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" +LIBS="" +ax_check_libs="-lglut32 -lglut" +for ax_lib in ${ax_check_libs}; do + AS_IF([test X$ax_compiler_ms = Xyes], + [ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`], + [ax_try_lib="${ax_lib}"]) + LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" + AC_LINK_IFELSE([AX_CHECK_GLUT_PROGRAM], + [ax_cv_check_glut_libglut="${ax_try_lib}"; break]) +done + +AS_IF([test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes], +[LIBS='-framework GLUT' +AC_LINK_IFELSE([AX_CHECK_GLUT_PROGRAM], + [ax_cv_check_glut_libglut="$LIBS"])]) + +CPPFLAGS="${ax_save_CPPFLAGS}" +LIBS="${ax_save_LIBS}" +AC_LANG_POP(C)]) + +AS_IF([test "X$ax_cv_check_glut_libglut" = Xno], + [no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS=""], + [GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"]) + +AC_SUBST([GLUT_CFLAGS]) +AC_SUBST([GLUT_LIBS]) +]) +m4trace:m4/ax_compiler_vendor.m4:49: -1- AC_DEFUN([AX_COMPILER_VENDOR], [AC_CACHE_CHECK([for _AC_LANG compiler vendor], ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor, + [# note: don't check for gcc first since some other compilers define __GNUC__ + vendors="intel: __ICC,__ECC,__INTEL_COMPILER + ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ + pathscale: __PATHCC__,__PATHSCALE__ + clang: __clang__ + gnu: __GNUC__ + sun: __SUNPRO_C,__SUNPRO_CC + hp: __HP_cc,__HP_aCC + dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER + borland: __BORLANDC__,__TURBOC__ + comeau: __COMO__ + cray: _CRAYC + kai: __KCC + lcc: __LCC__ + sgi: __sgi,sgi + microsoft: _MSC_VER + metrowerks: __MWERKS__ + watcom: __WATCOMC__ + portland: __PGI + unknown: UNKNOWN" + for ventest in $vendors; do + case $ventest in + *:) vendor=$ventest; continue ;; + *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; + esac + AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[ + #if !($vencpp) + thisisanerror; + #endif + ])], [break]) + done + ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor=`echo $vendor | cut -d: -f1` + ]) +]) +m4trace:m4/ax_pthread.m4:80: -1- AU_DEFUN([ACX_PTHREAD], [m4_if($#, 0, [AX_PTHREAD], [AX_PTHREAD($@)])]) +m4trace:m4/ax_pthread.m4:80: -1- AC_DEFUN([ACX_PTHREAD], [AC_DIAGNOSE([obsolete], [The macro `ACX_PTHREAD' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [AX_PTHREAD], [AX_PTHREAD($@)])]) +m4trace:m4/ax_pthread.m4:81: -1- AC_DEFUN([AX_PTHREAD], [ +AC_REQUIRE([AC_CANONICAL_HOST]) +AC_LANG_SAVE +AC_LANG_C +ax_pthread_ok=no + +# We used to check for pthread.h first, but this fails if pthread.h +# requires special compiler flags (e.g. on True64 or Sequent). +# It gets checked for in the link test anyway. + +# First of all, check if the user has set any of the PTHREAD_LIBS, +# etcetera environment variables, and if threads linking works using +# them: +if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS]) + AC_TRY_LINK_FUNC(pthread_join, ax_pthread_ok=yes) + AC_MSG_RESULT($ax_pthread_ok) + if test x"$ax_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" +fi + +# We must check for the threads library under a number of different +# names; the ordering is very important because some systems +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the +# libraries is broken (non-POSIX). + +# Create a list of thread flags to try. Items starting with a "-" are +# C compiler flags, and other items are library names, except for "none" +# which indicates that we try without any flags at all, and "pthread-config" +# which is a program returning the flags for the Pth emulation library. + +ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads +-mthreads pthread --thread-safe -mt pthread-config" + +# The ordering *is* (sometimes) important. Some notes on the +# individual items follow: + +# pthreads: AIX (must check this before -lpthread) +# none: in case threads are in libc; should be tried before -Kthread and +# other compiler flags to prevent continual compiler warnings +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) +# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) +# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) +# -pthreads: Solaris/gcc +# -mthreads: Mingw32/gcc, Lynx/gcc +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it +# doesn't hurt to check since this sometimes defines pthreads too; +# also defines -D_REENTRANT) +# ... -mt is also the pthreads flag for HP/aCC +# pthread: Linux, etcetera +# --thread-safe: KAI C++ +# pthread-config: use pthread-config program (for GNU Pth library) + +case "${host_cpu}-${host_os}" in + *solaris*) + + # On Solaris (at least, for some versions), libc contains stubbed + # (non-functional) versions of the pthreads routines, so link-based + # tests will erroneously succeed. (We need to link with -pthreads/-mt/ + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather + # a function called by this macro, so we could check for that, but + # who knows whether they'll stub that too in a future libc.) So, + # we'll just look for -pthreads and -lpthread first: + + ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" + ;; + + *-darwin*) + acx_pthread_flags="-pthread $acx_pthread_flags" + ;; +esac + +if test x"$ax_pthread_ok" = xno; then +for flag in $ax_pthread_flags; do + + case $flag in + none) + AC_MSG_CHECKING([whether pthreads work without any flags]) + ;; + + -*) + AC_MSG_CHECKING([whether pthreads work with $flag]) + PTHREAD_CFLAGS="$flag" + ;; + + pthread-config) + AC_CHECK_PROG(ax_pthread_config, pthread-config, yes, no) + if test x"$ax_pthread_config" = xno; then continue; fi + PTHREAD_CFLAGS="`pthread-config --cflags`" + PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config +--libs`" + ;; + + *) + AC_MSG_CHECKING([for the pthreads library -l$flag]) + PTHREAD_LIBS="-l$flag" + ;; + esac + + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Check for various functions. We must include pthread.h, + # since some functions may be macros. (On the Sequent, we + # need a special flag -Kthread to make this header compile.) + # We check for pthread_join because it is in -lpthread on IRIX + # while pthread_create is in libc. We check for pthread_attr_init + # due to DEC craziness with -lpthreads. We check for + # pthread_cleanup_push because it is one of the few pthread + # functions on Solaris that doesn't have a non-functional libc stub. + # We try pthread_create on general principles. + AC_TRY_LINK([#include + static void routine(void* a) {a=0;} + static void* start_routine(void* a) {return a;}], + [pthread_t th; pthread_attr_t attr; + pthread_join(th, 0); + pthread_attr_init(&attr); + pthread_cleanup_push(routine, 0); + pthread_create(&th,0,start_routine,0); + pthread_cleanup_pop(0); ], + [ax_pthread_ok=yes]) + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + AC_MSG_RESULT($ax_pthread_ok) + if test "x$ax_pthread_ok" = xyes; then + break; + fi + + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" +done +fi + +# Various other checks: +if test "x$ax_pthread_ok" = xyes; then + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. + AC_MSG_CHECKING([for joinable pthread attribute]) + attr_name=unknown + for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do + AC_TRY_LINK([#include ], [int attr=$attr; return attr;], + [attr_name=$attr; break]) + done + AC_MSG_RESULT($attr_name) + if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then + AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name, + [Define to necessary symbol if this constant + uses a non-standard name on your system.]) + fi + + AC_MSG_CHECKING([if more special flags are required for pthreads]) + flag=no + case "${host_cpu}-${host_os}" in + *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + esac + AC_MSG_RESULT(${flag}) + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + # More AIX lossage: must compile with xlc_r or cc_r + if test x"$GCC" != xyes; then + AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC}) + else + PTHREAD_CC=$CC + fi +else + PTHREAD_CC="$CC" +fi + +AC_SUBST(PTHREAD_LIBS) +AC_SUBST(PTHREAD_CFLAGS) +AC_SUBST(PTHREAD_CC) + +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: +if test x"$ax_pthread_ok" = xyes; then + ifelse([$1],,AC_DEFINE(HAVE_PTHREADS,1,[Define if you have POSIX threads +libraries and header files.]),[$1]) + : +else + ax_pthread_ok=no + $2 +fi +AC_LANG_RESTORE +]) +m4trace:m4/gem.m4:9: -1- AC_DEFUN([GEM_ARG_WITH], [ + if test "x$with_ALL" = "xyes" && test "x${with_$1}" = "x"; then with_$1="yes"; fi + if test "x$with_ALL" = "xno" && test "x${with_$1}" = "x"; then with_$1="no"; fi + + AC_ARG_WITH([$1], + AC_HELP_STRING([--without-$1], [disable $1-lib ($2)]),,[ + if test "x$3" != "x"; then with_$1="yes"; fi + ]) +]) +m4trace:m4/gem.m4:20: -1- AC_DEFUN([GEM_ARG_WITHOUT], [AC_ARG_WITH([$1], + AC_HELP_STRING([--with-$1], [enable $1-lib ($2)]),,[ + if test "x$3" = "xforce"; then with_$1="no"; fi + ]) +]) +m4trace:m4/gem.m4:28: -1- AC_DEFUN([GEM_ARG_ENABLE], [AC_ARG_ENABLE([$1], + AC_HELP_STRING([--disable-$1], [disable $1 ($2)]),,[ + if test "x$3" != "x"; then enable_$1="yes"; fi + ]) +]) +m4trace:m4/gem.m4:36: -1- AC_DEFUN([GEM_ARG_DISABLE], [AC_ARG_ENABLE([$1], + AC_HELP_STRING([--enable-$1], [enable $1 ($2)]),,[ + if test "x$3" != "x"; then enable_$1="no"; fi + ]) +]) +m4trace:m4/gem.m4:44: -1- AC_DEFUN([GEM_TARGET], [ +define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) +AC_CONFIG_FILES([src/$1/Makefile]) + +AC_ARG_ENABLE([$1], + AC_HELP_STRING([--disable-$1], [disable $1-objects]), + [ + if test "x$enableval" != "xno"; then + AC_MSG_RESULT([building Gem with $1-objects]) + target_[]NAME="yes" + else + AC_MSG_RESULT([building Gem without $1-objects]) + target_[]NAME="no" + fi + ], + [ + AC_MSG_RESULT([building Gem with $1-objects]) + target_[]NAME="yes" + ]) +AM_CONDITIONAL(TARGET_[]NAME, [test "x$target_[]NAME" != "xno"]) +undefine([NAME]) +]) +m4trace:m4/gem.m4:68: -1- AC_DEFUN([GEM_TARGET_DISABLED], [ +define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) + +AC_CONFIG_FILES([src/$1/Makefile]) +AC_ARG_ENABLE([$1], + AC_HELP_STRING([--enable-$1], [enable $1-objects]), + [ + if test "x$enableval" != "xyes"; then + AC_MSG_RESULT([building Gem without $1-objects]) + target_[]NAME="no" + else + AC_MSG_RESULT([building Gem with $1-objects]) + target_[]NAME="yes" + fi + ], + [ + AC_MSG_RESULT([building Gem without $1-objects]) + target_[]NAME="no" + ]) +AM_CONDITIONAL(TARGET_[]NAME, [test "x$target_[]NAME" != "xno"]) +undefine([NAME]) +]) +m4trace:m4/gem.m4:100: -1- AC_DEFUN([GEM_CHECK_LIB], [ + define([Name],[translit([$1],[./-+], [____])]) + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) +AC_SUBST(GEM_LIB_[]NAME[]_CFLAGS) +AC_SUBST(GEM_LIB_[]NAME[]_LIBS) + +AC_ARG_WITH([Name], + AC_HELP_STRING([--without-[]Name], [disable Name ($7)])) +AC_ARG_WITH([]Name-includes, + AC_HELP_STRING([--with-[]Name-includes=/path/to/[]Name/include/], [include path for Name])) +AC_ARG_WITH([]Name-libs, + AC_HELP_STRING([--with-[]Name-libs=/path/to/[]Name/lib/], [library path for Name])) + + if test "x$with_[]Name" = "x"; then with_[]Name="$8"; fi + + if test "x$with_ALL" = "xyes" && test "x$with_[]Name" = "x"; then with_[]Name="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_[]Name" = "x"; then with_[]Name="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_[]Name = "xno"; then + have_[]Name="no (forced)" +else + if test -d "$with_[]Name[]_includes"; then + CFLAGS="-I$with_[]Name[]_includes $CFLAGS" + CPPFLAGS="-I$with_[]Name[]_includes $CPPFLAGS" + CXXFLAGS="-I$with_[]Name[]_includes $CXXFLAGS" + fi + if test -d "$with_[]Name[]_libs"; then + LIBS="-L$with_[]Name[]_libs $LIBS" + fi + AS_LITERAL_IF([$2], + [AS_VAR_PUSHDEF([ac_Lib], [ac_cv_lib_$2_$3])], + [AS_VAR_PUSHDEF([ac_Lib], [ac_cv_lib_$2''_$3])])dnl + +## unset ac_Lib is possible + (unset ac_Lib) >/dev/null 2>&1 && unset ac_Lib + +## 1st we check, whether pkg-config knows something about this package +dnl PKG_CHECK_MODULES(AS_TR_CPP(PKG_$1), $1,AS_VAR_SET(acLib)yes, AC_CHECK_LIB([$2],[$3],,,[$6])) + PKG_CHECK_MODULES(AS_TR_CPP(PKG_$1), $1,AS_VAR_SET(ac_Lib)yes,:) + + if test "x$ac_Lib" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + AC_MSG_CHECKING([for $1-config]) + gem_check_lib_pkgconfig_[]NAME="" + if test "x$1" != "x"; then + gem_check_lib_pkgconfig_[]NAME="$1"-config + if which -- "$gem_check_lib_pkgconfig_[]NAME" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_[]NAME=`which "$1"-config` + AC_MSG_RESULT([yes]) + else + gem_check_lib_pkgconfig_[]NAME="" + AC_MSG_RESULT([no]) + fi + fi + + if test "x$gem_check_lib_pkgconfig_[]NAME" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_[]NAME[]_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_[]NAME --cflags >/dev/null 2>&1; then + PKG_[]NAME[]_CFLAGS=$(${gem_check_lib_pkgconfig_[]NAME} --cflags) + PKG_CFLAGS="$PKG_[]NAME[]_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_[]NAME[]_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_[]NAME --plugin-libs >/dev/null 2>&1; then + PKG_[]NAME[]_LIBS=$(${gem_check_lib_pkgconfig_[]NAME} --plugin-libs) + else + if $gem_check_lib_pkgconfig_[]NAME --libs >/dev/null 2>&1; then + PKG_[]NAME[]_LIBS=$(${gem_check_lib_pkgconfig_[]NAME} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_[]NAME[]_LIBS}" = "x"; then + AC_CHECK_LIB([$2],[$3],,,[$6]) + PKG_[]NAME[]_LIBS="-l$2" + else + PKG_LIBS="${PKG_[]NAME[]_LIBS} ${PKG_LIBS}" + fi + fi + + AS_IF([test "x$ac_Lib" != "xno"], + [ + AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_LIB$1),[1], [$7]) + AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_LIB$2),[1], [$7]) + AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_$3),[1], [Define to 1 if you have the `$3' function.]) + GEM_LIB_[]NAME[]_CFLAGS=${PKG_[]NAME[]_CFLAGS} + GEM_LIB_[]NAME[]_LIBS=${PKG_[]NAME[]_LIBS} +dnl PKG_LIBS="$6 ${PKG_LIBS}" + have_[]Name="yes" +dnl turn of further checking for this package + with_[]Name="no" + [$4] + ],[ + have_[]Name="no" + [$5] + ]) + AS_VAR_POPDEF([ac_Lib])dnl + +fi[]dnl + +AM_CONDITIONAL(HAVE_LIB_[]NAME, [test "x${have_[]Name}" = "xyes"]) +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + +undefine([Name]) +undefine([NAME]) +]) +m4trace:m4/gem.m4:236: -1- AC_DEFUN([GEM_CHECK_CXXFLAGS], [ + AC_MSG_CHECKING([whether compiler accepts "$1"]) +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ [$1] > /dev/null 2>&1 +then + AC_MSG_RESULT([yes]) + CXXFLAGS="${CXXFLAGS} [$1]" + [$2] +else + AC_MSG_RESULT([no]) + [$3] +fi +]) +m4trace:m4/gem.m4:258: -1- AC_DEFUN([GEM_CHECK_FRAMEWORK], [ + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) + AC_SUBST(GEM_FRAMEWORK_[]NAME[]) + + AC_MSG_CHECKING([for "$1"-framework]) + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework [$1] ${LDFLAGS}" + + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [gem_check_ldflags_success="yes"],[gem_check_ldflags_success="no"]) + + if test "x$gem_check_ldflags_success" = "xyes"; then + AC_MSG_RESULT([yes]) + AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_$1), [1], [framework $1]) + AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_GEM_FRAMEWORK_$1), [1], [framework $1]) + GEM_FRAMEWORK_[]NAME[]="-framework [$1]" + [$2] + else + AC_MSG_RESULT([no]) + LDFLAGS="$gem_check_ldflags_org" + [$3] + fi +AM_CONDITIONAL(HAVE_FRAMEWORK_[]NAME, [test "x$gem_check_ldflags_success" = "xyes"]) +undefine([NAME]) +]) +m4trace:m4/gem.m4:290: -1- AC_DEFUN([GEM_CHECK_LDFLAGS], [ + AC_MSG_CHECKING([whether linker accepts "$1"]) + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="$1 ${LDFLAGS}" + + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [gem_check_ldflags_success="yes"],[gem_check_ldflags_success="no"]) + + if test "x$gem_check_ldflags_success" = "xyes"; then + AC_MSG_RESULT([yes]) + [$2] + else + AC_MSG_RESULT([no]) + LDFLAGS="$gem_check_ldflags_org" + [$3] + fi +]) +m4trace:m4/gem.m4:309: -1- AC_DEFUN([GEM_CHECK_FAT], [ +AC_ARG_ENABLE(fat-binary, + [ --enable-fat-binary=ARCHS + build an Apple Multi Architecture Binary (MAB); + ARCHS is a comma-delimited list of architectures for + which to build; if ARCHS is omitted, then the package + will be built for all architectures supported by the + platform (e.g. "ppc,i386" for MacOS/X and Darwin); + if this option is disabled or omitted entirely, then + the package will be built only for the target + platform; when building multiple architectures, + dependency-tracking must be disabled], + [fat_binary=$enableval], [fat_binary=no]) +if test "$fat_binary" != no; then + AC_MSG_CHECKING([target architectures]) + + # Respect TARGET_ARCHS setting from environment if available. + if test -z "$TARGET_ARCHS"; then + # Respect ARCH given to --enable-fat-binary if present. + if test "$fat_binary" != yes; then + TARGET_ARCHS=`echo "$fat_binary" | tr ',' ' '` + else + # Choose a default set of architectures based upon platform. + TARGET_ARCHS="ppc i386" + fi + fi + AC_MSG_RESULT([$TARGET_ARCHS]) + + define([Name],[translit([$1],[./-], [___])]) + # /usr/lib/arch_tool -archify_list $TARGET_ARCHS + []Name="" + tmp_arch_count=0 + for archs in $TARGET_ARCHS + do + []Name="$[]Name -arch $archs" + tmp_arch_count=$((tmp_arch_count+1)) + done + + if test "$tmp_arch_count" -gt 1; then + if test "x$enable_dependency_tracking" != xno; then + AC_MSG_ERROR([when building for multiple architectures, you MUST turn off dependency-tracking]) + fi + fi + + if test "x$[]Name" != "x"; then + tmp_arch_cflags="$CFLAGS" + tmp_arch_cxxflags="$CXXFLAGS" + GEM_CHECK_CXXFLAGS($[]Name,,[]Name="") + []Name[]_CXXFLAGS+=$[]Name + CFLAGS="$tmp_arch_cflags" + CXXFLAGS="$tmp_arch_cxxflags" + fi + + if test "x$[]Name" != "x"; then + tmp_arch_ldflags="$LDFLAGS" + GEM_CHECK_LDFLAGS($[]Name,,[]Name="") + []Name[]_LDFLAGS+=$[]Name + LDFLAGS="$tmp_arch_ldflags" + fi + + undefine([Name]) +fi +]) +m4trace:m4/gem.m4:378: -1- AC_DEFUN([GEM_CHECK_RTE], [ +ARCH=$(uname -m) +KERN=$(uname -s) +IEM_OPERATING_SYSTEM + +AC_SUBST(GEM_RTE_CFLAGS) +AC_SUBST(GEM_RTE_LIBS) +AC_SUBST(GEM_RTE) + +if test "x${libdir}" = "x\${exec_prefix}/lib"; then + libdir='${exec_prefix}/lib/pd/extra' +fi + +tmp_rte_cppflags="$CPPFLAGS" +tmp_rte_cflags="$CFLAGS" +tmp_rte_cxxflags="$CXXFLAGS" +tmp_rte_ldflags="$LDFLAGS" +tmp_rte_libs="$LIBS" + +GEM_RTE_CFLAGS="-DPD" +GEM_RTE_LIBS="" +GEM_RTE="Pure Data" + +AC_ARG_WITH([pd], + AS_HELP_STRING([--with-pd=],[where to find pd-binary (./bin/pd.exe) and pd-sources])) + +## some default paths +if test "x${with_pd}" = "x"; then + case $host_os in + *darwin*) + if test -d "/Applications/Pd-extended.app/Contents/Resources"; then with_pd="/Applications/Pd-extended.app/Contents/Resources"; fi + if test -d "/Applications/Pd.app/Contents/Resources"; then with_pd="/Applications/Pd.app/Contents/Resources"; fi + ;; + *mingw* | *cygwin*) + if test -d "${PROGRAMFILES}/Pd-extended"; then with_pd="${PROGRAMFILES}/Pd-extended"; fi + if test -d "${PROGRAMFILES}/pd"; then with_pd="${PROGRAMFILES}/pd"; fi + ;; + esac +fi + +if test -d "$with_pd" ; then + if test -d "${with_pd}/src" ; then + AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS],"-I${with_pd}/src") + elif test -d "${with_pd}/include/pd" ; then + AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS],"-I${with_pd}/include/pd") + elif test -d "${with_pd}/include" ; then + AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS],"-I${with_pd}/include") + else + AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS],"-I${with_pd}") + fi + if test -d "${with_pd}/bin" ; then + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-L${with_pd}/bin" + else + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-L${with_pd}" + fi + + CPPFLAGS="$CPPFLAGS ${GEM_RTE_CFLAGS}" + CFLAGS="$CFLAGS ${GEM_RTE_CFLAGS}" + CXXFLAGS="$CXXFLAGS ${GEM_RTE_CFLAGS}" + LIBS="$LIBS ${GEM_RTE_LIBS}" +fi + +AC_CHECK_LIB([:pd.dll], [nullfn], [have_pddll="yes"], [have_pddll="no"]) +if test "x$have_pddll" = "xyes"; then + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-Xlinker -l:pd.dll" +else + AC_CHECK_LIB([pd], [nullfn], [GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-lpd"]) +fi + +AC_CHECK_HEADERS([m_pd.h], [have_pd="yes"], [have_pd="no"]) + +dnl LATER check why this doesn't use the --with-pd includes +dnl for now it will basically disable anything that needs s_stuff.h if it cannot be found in /usr[/local]/include +AC_CHECK_HEADERS([s_stuff.h], [], [], +[#ifdef HAVE_M_PD_H +# define PD +# include "m_pd.h" +#endif +]) + +### this should only be set if Pd has been found +# the extension +AC_ARG_WITH([extension], + AS_HELP_STRING([--with-extension=],[enforce a certain file-extension (e.g. pd_linux)])) +if test "x$with_extension" != "x"; then + EXT=$with_extension +else + case x$host_os in + x*darwin*) + EXT=pd_darwin + ;; + x*mingw* | x*cygwin*) + EXT=dll + ;; + x) + dnl just assuming that it is still linux (e.g. x86_64) + EXT="pd_linux" + ;; + *) + EXT=pd_`echo $host_os | sed -e '/.*/s/-.*//' -e 's/\[.].*//'` + ;; + esac +fi +GEM_RTE_EXTENSION=$EXT +AC_SUBST(GEM_RTE_EXTENSION) + +CPPFLAGS="$tmp_rte_cppflags" +CFLAGS="$tmp_rte_cflags" +CXXFLAGS="$tmp_rte_cxxflags" +LDFLAGS="$tmp_rte_ldflags" +LIBS="$tmp_rte_libs" +]) +m4trace:m4/gem.m4:493: -1- AC_DEFUN([GEM_CHECK_THREADS], [ +GEM_ARG_ENABLE([threads], [default: use threads]) + +AC_SUBST(GEM_PTHREAD_CFLAGS) +AC_SUBST(GEM_PTHREAD_LIBS) + +if test "x$enable_threads" != "xno"; then + AX_PTHREAD + GEM_THREADS_CFLAGS="" + AC_LIB_APPENDTOVAR([GEM_THREADS_CFLAGS], "${PTHREAD_CFLAGS}") + GEM_THREADS_LIBS="${GEM_THREADS_LIBS}${GEM_THREADS_LIBS:+ }${PTHREAD_LIBS}" +fi +]) +m4trace:m4/iem_ftgl.m4:6: -1- AC_DEFUN([IEM_CHECK_FTGL], [ +dnl PKG_CHECK_MODULES(PKG_FT2,freetype2) + + +GEM_CHECK_LIB([ftgl], [ftgl], [main],,,[-lfreetype],[font support]) + +tmp_gem_check_ftgl_cflags="$CFLAGS" +tmp_gem_check_ftgl_cxxflags="$CXXFLAGS" + +CFLAGS="$CFLAGS $GEM_LIB_FTGL_CFLAGS" +CXXFLAGS="$CXXFLAGS $GEM_LIB_FTGL_CFLAGS" +AC_CHECK_HEADERS([FTGL/ftgl.h]) + +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +]) +m4trace:m4/iem_opengl.m4:42: -1- AC_DEFUN([IEM_CHECK_GL], [AC_REQUIRE([AX_CHECK_GL]) +AM_CONDITIONAL(HAVE_GL, [test "x$no_gl" != "xyes"]) +]) +m4trace:m4/iem_opengl.m4:47: -1- AC_DEFUN([IEM_CHECK_GLU], [AC_REQUIRE([AX_CHECK_GLU]) +AM_CONDITIONAL(HAVE_GLU, [test "x$no_glu" != "xyes"]) +]) +m4trace:m4/iem_opengl.m4:53: -1- AC_DEFUN([IEM_CHECK_GLUT], [AC_REQUIRE([AX_CHECK_GLUT]) +AM_CONDITIONAL(HAVE_GLUT, [test "x$no_glut" != "xyes"]) +]) +m4trace:m4/iem_opengl.m4:59: -1- AC_DEFUN([IEM_CHECK_GLX], [ +AC_CHECK_HEADERS([GL/glx.h],,no_glx=yes) +AM_CONDITIONAL(HAVE_GLX, [test "x$no_glx" != "xyes"]) +AC_SUBST([GLX_CFLAGS]) +AC_SUBST([GLX_LIBS]) +]) +m4trace:m4/iem_opengl.m4:69: -1- AC_DEFUN([IEM_CHECK_AGL], [ +GEM_CHECK_FRAMEWORK(AGL) +if test "x$gem_check_ldflags_success" != "xyes"; then + no_agl="yes" +fi +AGL_CFLAGS="" +AGL_LIBS="${GEM_FRAMEWORK_AGL}" +AC_SUBST([AGL_CFLAGS]) +AC_SUBST([AGL_LIBS]) +AM_CONDITIONAL(HAVE_AGL, [test "x$no_agl" != "xyes"]) +]) +m4trace:m4/iem_opengl.m4:84: -1- AC_DEFUN([IEM_CHECK_GLEW], [ +GEM_CHECK_LIB(glew, GLEW, glewInit,,no_glew=yes,,[OpenGL Extension Wrangler library], [no]) +AM_CONDITIONAL(HAVE_GLEW, [test "x$no_glew" != "xyes"]) +]) +m4trace:m4/iem_operatingsystem.m4:6: -1- AC_DEFUN([IEM_OPERATING_SYSTEM], [ +AC_CANONICAL_HOST + +LINUX=no +ANDROID=no +MACOSX=no +IPHONEOS=no +BSD=no +WINDOWS=no +MINGW=no +CYGWIN=no +HURD=no +IRIX=no + +case $host_os in +*linux*) + LINUX=yes + ;; +*darwin*) + MACOSX=yes + ;; +GNU/kFreeBSD) + BSD=yes + ;; +*mingw*) + WINDOWS=yes + MINGW=yes + ;; +*cygwin*) + WINDOWS=yes + CYGWIN=yes + ;; +GNU) + HURD=yes + ;; +esac + + +AM_CONDITIONAL(LINUX, test x$LINUX = xyes) +AM_CONDITIONAL(ANDROID, test x$ANDROID = xyes) +AM_CONDITIONAL(MACOSX, test x$MACOSX = xyes) +AM_CONDITIONAL(IPHONEOS, test x$IPHONEOS = xyes) +AM_CONDITIONAL(BSD, test x$BSD = xyes) +AM_CONDITIONAL(WINDOWS, test x$WINDOWS = xyes) +AM_CONDITIONAL(CYGWIN, test x$CYGWIN = xyes) +AM_CONDITIONAL(MINGW, test x$MINGW = xyes) +AM_CONDITIONAL(HURD, test x$HURD = xyes) +AM_CONDITIONAL(IRIX, test x$IRIX = xyes) +]) +m4trace:m4/lib-prefix.m4:12: -1- AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])]) +m4trace:m4/lib-prefix.m4:22: -1- AC_DEFUN([AC_LIB_PREFIX], [ + AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_LIB_ARG_WITH([lib-prefix], +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib + --without-lib-prefix don't search for libraries in includedir and libdir], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/lib" + fi + fi +]) + if test $use_additional = yes; then + dnl Potentially add $additional_includedir to $CPPFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's already present in $CPPFLAGS, + dnl 3. if it's /usr/local/include and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + for x in $CPPFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $CPPFLAGS. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" + fi + fi + fi + fi + dnl Potentially add $additional_libdir to $LDFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's already present in $LDFLAGS, + dnl 3. if it's /usr/local/lib and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/lib"; then + haveit= + for x in $LDFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_libdir" = "X/usr/local/lib"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LDFLAGS. + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" + fi + fi + fi + fi + fi +]) +m4trace:m4/lib-prefix.m4:121: -1- AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ + dnl Unfortunately, prefix and exec_prefix get only finally determined + dnl at the end of configure. + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" +]) +m4trace:m4/lib-prefix.m4:144: -1- AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + $1 + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" +]) +m4trace:m4/lib-prefix.m4:169: -1- AC_DEFUN([AC_LIB_LINKFLAGS], [ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + define([Name],[translit([$1],[./-], [___])]) + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + ac_cv_lib[]Name[]_libs="$LIB[]NAME" + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" + ac_cv_lib[]Name[]_cppflags="$INC[]NAME" + ]) + LIB[]NAME="$ac_cv_lib[]Name[]_libs" + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" + INC[]NAME="$ac_cv_lib[]Name[]_cppflags" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the + dnl results of this search when this library appears as a dependency. + HAVE_LIB[]NAME=yes + undefine([Name]) + undefine([NAME]) +]) +m4trace:m4/lib-prefix.m4:203: -1- AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + define([Name],[translit([$1],[./-], [___])]) + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, + dnl because if the user has installed lib[]Name and not disabled its use + dnl via --without-lib[]Name-prefix, he wants to use it. + ac_save_CPPFLAGS="$CPPFLAGS" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ + ac_save_LIBS="$LIBS" + LIBS="$LIBS $LIB[]NAME" + AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) + LIBS="$ac_save_LIBS" + ]) + if test "$ac_cv_lib[]Name" = yes; then + HAVE_LIB[]NAME=yes + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) + AC_MSG_CHECKING([how to link with lib[]$1]) + AC_MSG_RESULT([$LIB[]NAME]) + else + HAVE_LIB[]NAME=no + dnl If $LIB[]NAME didn't lead to a usable library, we don't need + dnl $INC[]NAME either. + CPPFLAGS="$ac_save_CPPFLAGS" + LIB[]NAME= + LTLIB[]NAME= + fi + AC_SUBST([HAVE_LIB]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + undefine([Name]) + undefine([NAME]) +]) +m4trace:m4/lib-prefix.m4:250: -1- AC_DEFUN([AC_LIB_RPATH], [ + dnl Tell automake >= 1.10 to complain if config.rpath is missing. + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir + AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_rpath=done + ]) + wl="$acl_cv_wl" + libext="$acl_cv_libext" + shlibext="$acl_cv_shlibext" + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" + hardcode_direct="$acl_cv_hardcode_direct" + hardcode_minus_L="$acl_cv_hardcode_minus_L" + dnl Determine whether the user wants rpath handling at all. + AC_ARG_ENABLE(rpath, + [ --disable-rpath do not hardcode runtime library paths], + :, enable_rpath=yes) +]) +m4trace:m4/lib-prefix.m4:281: -1- AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_LIB_ARG_WITH([lib$1-prefix], +[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib + --without-lib$1-prefix don't search for lib$1 in includedir and libdir], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/lib" + fi + fi +]) + dnl Search the library and its dependencies in $additional_libdir and + dnl $LDFLAGS. Using breadth-first-seach. + LIB[]NAME= + LTLIB[]NAME= + INC[]NAME= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='$1 $2' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS + dnl or AC_LIB_HAVE_LINKFLAGS call. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" + else + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined + dnl that this library doesn't exist. So just drop it. + : + fi + else + dnl Search the library lib$name in $additional_libdir and $LDFLAGS + dnl and the already constructed $LIBNAME/$LTLIBNAME. + found_dir= + found_la= + found_so= + found_a= + if test $use_additional = yes; then + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then + found_dir="$additional_libdir" + found_so="$additional_libdir/lib$name.$shlibext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + else + if test -f "$additional_libdir/lib$name.$libext"; then + found_dir="$additional_libdir" + found_a="$additional_libdir/lib$name.$libext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then + found_dir="$dir" + found_so="$dir/lib$name.$shlibext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + else + if test -f "$dir/lib$name.$libext"; then + found_dir="$dir" + found_a="$dir/lib$name.$libext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + dnl Found the library. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + dnl Linking with a shared library. We attempt to hardcode its + dnl directory into the executable's runpath, unless it's the + dnl standard /usr/lib. + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then + dnl No hardcoding is needed. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + dnl The hardcoding into $LIBNAME is system dependent. + if test "$hardcode_direct" = yes; then + dnl Using DIR/libNAME.so during linking hardcodes DIR into the + dnl resulting binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + dnl Rely on "-L$found_dir". + dnl But don't add it if it's already contained in the LDFLAGS + dnl or the already constructed $LIBNAME + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" + fi + if test "$hardcode_minus_L" != no; then + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH + dnl here, because this doesn't fit in flags passed to the + dnl compiler. So give up. No hardcoding. This affects only + dnl very old systems. + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + dnl Linking with a static library. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" + else + dnl We shouldn't come here, but anyway it's good to have a + dnl fallback. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" + fi + fi + dnl Assume the include files are nearby. + additional_includedir= + case "$found_dir" in + */lib | */lib/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + dnl Potentially add $additional_includedir to $INCNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's /usr/local/include and we are using GCC on Linux, + dnl 3. if it's already present in $CPPFLAGS or the already + dnl constructed $INCNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INC[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $INCNAME. + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + dnl Look for dependencies. + if test -n "$found_la"; then + dnl Read the .la file. It defines the variables + dnl dlname, library_names, old_library, dependency_libs, current, + dnl age, revision, installed, dlopen, dlpreopen, libdir. + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + dnl We use only dependency_libs. + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's /usr/local/lib and we are using GCC on Linux, + dnl 3. if it's already present in $LDFLAGS or the already + dnl constructed $LIBNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/lib"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/lib"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LIBNAME. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LTLIBNAME. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + dnl Handle this in the next round. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + dnl Handle this in the next round. Throw away the .la's + dnl directory; it is already contained in a preceding -L + dnl option. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + dnl Most likely an immediate library name. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" + ;; + esac + done + fi + else + dnl Didn't find the library; assume it is in the system directories + dnl known to the linker and runtime loader. (All the system + dnl directories known to the linker should also be known to the + dnl runtime loader, otherwise the system is severely misconfigured.) + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$hardcode_libdir_separator"; then + dnl Weird platform: only the last -rpath option counts, the user must + dnl pass all path elements in one option. We can arrange that for a + dnl single library, but not when more than one $LIBNAMEs are used. + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" + done + dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + else + dnl The -rpath options are cumulative. + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + dnl When using libtool, the option that works for both libraries and + dnl executables is -R. The -R options are cumulative. + for found_dir in $ltrpathdirs; do + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" + done + fi +]) +m4trace:m4/lib-prefix.m4:692: -1- AC_DEFUN([AC_LIB_APPENDTOVAR], [ + for element in [$2]; do + haveit= + for x in $[$1]; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + [$1]="${[$1]}${[$1]:+ }$element" + fi + done +]) +m4trace:m4/lib-prefix.m4:720: -1- AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, +[# I'd rather use --version here, but apparently some GNU ld's only accept -v. +case `$LD -v 2>&1 conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by GCC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]* | [A-Za-z]:[\\/]*)] + [re_direlt='/[^/][^/]*/\.\./'] + # Canonicalize the path of ld + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(acl_cv_path_LD, +[if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in + *GNU* | *'with BFD'*) + test "$with_gnu_ld" != no && break ;; + *) + test "$with_gnu_ld" != yes && break ;; + esac + fi + done + IFS="$ac_save_ifs" +else + acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi]) +LD="$acl_cv_path_LD" +if test -n "$LD"; then + AC_MSG_RESULT($LD) +else + AC_MSG_RESULT(no) +fi +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) +AC_LIB_PROG_LD_GNU +]) +m4trace:m4/pkg.m4:26: -1- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) +m4_pattern_allow(PKG_CFLAGS) +m4_pattern_allow(PKG_LIBS) +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=m4_ifval([$1], [$1], [0.9.0]) + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + PKG_CONFIG="" + fi + +fi[]dnl +]) +m4trace:m4/pkg.m4:74: -1- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +m4_pattern_allow([$1]_CFLAGS) +m4_pattern_allow([$1]_LIBS) +m4_pattern_allow([$1]) +m4_pattern_allow([$1]_PKG_ERRORS) +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl + +pkg_failed=no +AC_CACHE_CHECK([for $1][_CFLAGS], [pkg_cv_][$1][_CFLAGS], + [_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])]) +AC_CACHE_CHECK([for $1][_LIBS], [pkg_cv_][$1][_LIBS], + [_PKG_CONFIG([$1][_LIBS], [libs], [$2])]) + +if test $pkg_failed = yes; then + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` + # Put the nasty error message in config.log where it belongs + echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD + + ifelse([$4], , [AC_MSG_ERROR(dnl +[Package requirements ($2) were not met. +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables +to avoid the need to call pkg-config. See the pkg-config man page for +more details.])], + [$4]) +elif test $pkg_failed = untried; then + ifelse([$4], , [AC_MSG_FAILURE(dnl +[The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables +to avoid the need to call pkg-config. See the pkg-config man page for +more details. + +To get pkg-config, see .])], + [$4]) +else + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS + ifelse([$3], , :, [$3]) +fi[] +if test "x${$1[]_CFLAGS}" != "x"; then + AC_LIB_APPENDTOVAR([PKG_CFLAGS], "${$1_CFLAGS}") +fi +if test "x${$1[]_LIBS}" != "x"; then + PKG_LIBS="${$1[]_LIBS} ${PKG_LIBS}" +fi +]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?A[CHUM]_]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([_AC_]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) +m4trace:configure.ac:5: -1- m4_pattern_allow([^AS_FLAGS$]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?m4_]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^dnl$]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?AS_]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^SHELL$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PATH_SEPARATOR$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^exec_prefix$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^prefix$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^program_transform_name$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^bindir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^sbindir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^libexecdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^datarootdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^datadir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^sysconfdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^sharedstatedir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^localstatedir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^includedir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^oldincludedir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^docdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^infodir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^htmldir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^dvidir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^pdfdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^psdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^libdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^localedir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^mandir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^DEFS$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^ECHO_C$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^ECHO_N$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^ECHO_T$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^build_alias$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^host_alias$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^target_alias$]) +m4trace:configure.ac:7: -1- AM_INIT_AUTOMAKE([1.10 foreign]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) +m4trace:configure.ac:7: -1- AM_SET_CURRENT_AUTOMAKE_VERSION +m4trace:configure.ac:7: -1- AM_AUTOMAKE_VERSION([1.11.6]) +m4trace:configure.ac:7: -1- _AM_AUTOCONF_VERSION([2.69]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_DATA$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__isrc$]) +m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([am__isrc]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^CYGPATH_W$]) +m4trace:configure.ac:7: -1- _AM_SET_OPTIONS([1.10 foreign]) +m4trace:configure.ac:7: -1- _AM_SET_OPTION([1.10]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([1.10]) +m4trace:configure.ac:7: -1- _AM_SET_OPTION([foreign]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([foreign]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:7: -1- _AM_IF_OPTION([no-define], [], [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([no-define]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:7: -1- AM_SANITY_CHECK +m4trace:configure.ac:7: -1- AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +m4trace:configure.ac:7: -1- AM_MISSING_HAS_RUN +m4trace:configure.ac:7: -1- AM_AUX_DIR_EXPAND +m4trace:configure.ac:7: -1- m4_pattern_allow([^ACLOCAL$]) +m4trace:configure.ac:7: -1- AM_MISSING_PROG([AUTOCONF], [autoconf]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOCONF$]) +m4trace:configure.ac:7: -1- AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOMAKE$]) +m4trace:configure.ac:7: -1- AM_MISSING_PROG([AUTOHEADER], [autoheader]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOHEADER$]) +m4trace:configure.ac:7: -1- AM_MISSING_PROG([MAKEINFO], [makeinfo]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^MAKEINFO$]) +m4trace:configure.ac:7: -1- AM_PROG_INSTALL_SH +m4trace:configure.ac:7: -1- m4_pattern_allow([^install_sh$]) +m4trace:configure.ac:7: -1- AM_PROG_INSTALL_STRIP +m4trace:configure.ac:7: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) +m4trace:configure.ac:7: -1- AM_PROG_MKDIR_P +m4trace:configure.ac:7: -1- m4_pattern_allow([^MKDIR_P$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^mkdir_p$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^SET_MAKE$]) +m4trace:configure.ac:7: -1- AM_SET_LEADING_DOT +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__leading_dot$]) +m4trace:configure.ac:7: -1- _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([tar-ustar]) +m4trace:configure.ac:7: -1- _AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([tar-pax]) +m4trace:configure.ac:7: -1- _AM_PROG_TAR([v7]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AMTAR$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__tar$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__untar$]) +m4trace:configure.ac:7: -1- _AM_IF_OPTION([no-dependencies], [], [AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([no-dependencies]) +m4trace:configure.ac:7: -1- _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([silent-rules]) +m4trace:configure.ac:78: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:81: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:87: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:98: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:99: -1- m4_pattern_allow([^GEM_TARGETS$]) +m4trace:configure.ac:100: -1- m4_pattern_allow([^EXT$]) +m4trace:configure.ac:101: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:103: -1- m4_pattern_allow([^CXXFLAGS$]) +m4trace:configure.ac:104: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:105: -1- m4_pattern_allow([^DEFS$]) +m4trace:configure.ac:106: -1- m4_pattern_allow([^DEFINES$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^X_CFLAGS$]) +m4trace:configure.ac:109: -1- m4_pattern_allow([^X_PRE_LIBS$]) +m4trace:configure.ac:110: -1- m4_pattern_allow([^X_LIBS$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^X_EXTRA_LIBS$]) +m4trace:configure.ac:113: -1- m4_pattern_allow([^PKG_CFLAGS$]) +m4trace:configure.ac:114: -1- m4_pattern_allow([^PKG_LIBS$]) +m4trace:configure.ac:115: -1- m4_pattern_allow([^prefix$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^CXXFLAGS$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^ac_ct_CXX$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^EXEEXT$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^OBJEXT$]) +m4trace:configure.ac:118: -1- _AM_DEPENDENCIES([CXX]) +m4trace:configure.ac:118: -1- AM_SET_DEPDIR +m4trace:configure.ac:118: -1- m4_pattern_allow([^DEPDIR$]) +m4trace:configure.ac:118: -1- AM_OUTPUT_DEPENDENCY_COMMANDS +m4trace:configure.ac:118: -1- AM_MAKE_INCLUDE +m4trace:configure.ac:118: -1- m4_pattern_allow([^am__include$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^am__quote$]) +m4trace:configure.ac:118: -1- AM_DEP_TRACK +m4trace:configure.ac:118: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^AMDEP_TRUE$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^AMDEP_FALSE$]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^am__nodep$]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([am__nodep]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^CXXDEPMODE$]) +m4trace:configure.ac:118: -1- AM_CONDITIONAL([am__fastdepCXX], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^OBJC$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^OBJCFLAGS$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^OBJC$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^ac_ct_OBJC$]) +m4trace:configure.ac:119: -1- _AM_DEPENDENCIES([OBJC]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^OBJCDEPMODE$]) +m4trace:configure.ac:119: -1- AM_CONDITIONAL([am__fastdepOBJC], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^am__fastdepOBJC_TRUE$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^am__fastdepOBJC_FALSE$]) +m4trace:configure.ac:119: -1- _AM_SUBST_NOTMAKE([am__fastdepOBJC_TRUE]) +m4trace:configure.ac:119: -1- _AM_SUBST_NOTMAKE([am__fastdepOBJC_FALSE]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^OBJCXX$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^OBJCXXFLAGS$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^OBJCXX$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^ac_ct_OBJCXX$]) +m4trace:configure.ac:122: -1- AC_LIBTOOL_WIN32_DLL +m4trace:configure.ac:122: -1- _m4_warn([obsolete], [The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. +You should run autoupdate.], [/usr/share/aclocal/ltoptions.m4:146: AC_LIBTOOL_WIN32_DLL is expanded from... +configure.ac:122: the top level]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^build$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^build_cpu$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^build_vendor$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^build_os$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^host$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^host_cpu$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^host_vendor$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^host_os$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^AS$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:122: -1- _m4_warn([obsolete], [AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.], [/usr/share/aclocal/ltoptions.m4:146: AC_LIBTOOL_WIN32_DLL is expanded from... +configure.ac:122: the top level]) +m4trace:configure.ac:123: -1- AC_PROG_LIBTOOL +m4trace:configure.ac:123: -1- _m4_warn([obsolete], [The macro `AC_PROG_LIBTOOL' is obsolete. +You should run autoupdate.], [/usr/share/aclocal/libtool.m4:107: AC_PROG_LIBTOOL is expanded from... +configure.ac:123: the top level]) +m4trace:configure.ac:123: -1- LT_INIT +m4trace:configure.ac:123: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$]) +m4trace:configure.ac:123: -1- LTOPTIONS_VERSION +m4trace:configure.ac:123: -1- LTSUGAR_VERSION +m4trace:configure.ac:123: -1- LTVERSION_VERSION +m4trace:configure.ac:123: -1- LTOBSOLETE_VERSION +m4trace:configure.ac:123: -1- _LT_PROG_LTMAIN +m4trace:configure.ac:123: -1- m4_pattern_allow([^LIBTOOL$]) +m4trace:configure.ac:123: -1- _LT_PREPARE_SED_QUOTE_VARS +m4trace:configure.ac:123: -1- _LT_PROG_ECHO_BACKSLASH +m4trace:configure.ac:123: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CFLAGS$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^ac_ct_CC$]) +m4trace:configure.ac:123: -1- _AM_DEPENDENCIES([CC]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CCDEPMODE$]) +m4trace:configure.ac:123: -1- AM_CONDITIONAL([am__fastdepCC], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) +m4trace:configure.ac:123: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) +m4trace:configure.ac:123: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) +m4trace:configure.ac:123: -1- LT_PATH_LD +m4trace:configure.ac:123: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:123: -1- AC_PROG_EGREP +m4trace:configure.ac:123: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^EGREP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^FGREP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:123: -1- LT_PATH_NM +m4trace:configure.ac:123: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^ac_ct_DUMPBIN$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^NM$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LN_S$]) +m4trace:configure.ac:123: -1- LT_CMD_MAX_LEN +m4trace:configure.ac:123: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^ac_ct_AR$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^RANLIB$]) +m4trace:configure.ac:123: -1- _LT_WITH_SYSROOT +m4trace:configure.ac:123: -1- m4_pattern_allow([LT_OBJDIR]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LT_OBJDIR$]) +m4trace:configure.ac:123: -1- _LT_CC_BASENAME([$compiler]) +m4trace:configure.ac:123: -1- _LT_PATH_TOOL_PREFIX([${ac_tool_prefix}file], [/usr/bin$PATH_SEPARATOR$PATH]) +m4trace:configure.ac:123: -1- _LT_PATH_TOOL_PREFIX([file], [/usr/bin$PATH_SEPARATOR$PATH]) +m4trace:configure.ac:123: -1- LT_SUPPORTED_TAG([CC]) +m4trace:configure.ac:123: -1- _LT_COMPILER_BOILERPLATE +m4trace:configure.ac:123: -1- _LT_LINKER_BOILERPLATE +m4trace:configure.ac:123: -1- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], [lt_cv_prog_compiler_rtti_exceptions], [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, )="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, ) -fno-rtti -fno-exceptions"]) +m4trace:configure.ac:123: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, ) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, )], [$_LT_TAGVAR(lt_prog_compiler_pic, )@&t@m4_if([],[],[ -DPIC],[m4_if([],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, ) in + "" | " "*) ;; + *) _LT_TAGVAR(lt_prog_compiler_pic, )=" $_LT_TAGVAR(lt_prog_compiler_pic, )" ;; + esac], [_LT_TAGVAR(lt_prog_compiler_pic, )= + _LT_TAGVAR(lt_prog_compiler_can_build_shared, )=no]) +m4trace:configure.ac:123: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, )=]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^MANIFEST_TOOL$]) +m4trace:configure.ac:123: -1- _LT_REQUIRED_DARWIN_CHECKS +m4trace:configure.ac:123: -1- m4_pattern_allow([^DSYMUTIL$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^NMEDIT$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LIPO$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^OTOOL$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^OTOOL64$]) +m4trace:configure.ac:123: -1- _LT_LINKER_OPTION([if $CC understands -b], [lt_cv_prog_compiler__b], [-b], [_LT_TAGVAR(archive_cmds, )='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, )='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags']) +m4trace:configure.ac:123: -1- LT_SYS_DLOPEN_SELF +m4trace:configure.ac:123: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^HAVE_DLFCN_H$]) +m4trace:configure.ac:123: -1- LT_LANG([CXX]) +m4trace:configure.ac:123: -1- LT_SUPPORTED_TAG([CXX]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:123: -1- _LT_COMPILER_BOILERPLATE +m4trace:configure.ac:123: -1- _LT_LINKER_BOILERPLATE +m4trace:configure.ac:123: -1- _LT_CC_BASENAME([$compiler]) +m4trace:configure.ac:123: -1- LT_PATH_LD +m4trace:configure.ac:123: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:123: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, CXX) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, CXX)], [$_LT_TAGVAR(lt_prog_compiler_pic, CXX)@&t@m4_if([CXX],[],[ -DPIC],[m4_if([CXX],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, CXX) in + "" | " "*) ;; + *) _LT_TAGVAR(lt_prog_compiler_pic, CXX)=" $_LT_TAGVAR(lt_prog_compiler_pic, CXX)" ;; + esac], [_LT_TAGVAR(lt_prog_compiler_pic, CXX)= + _LT_TAGVAR(lt_prog_compiler_can_build_shared, CXX)=no]) +m4trace:configure.ac:123: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works_CXX], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, CXX)=]) +m4trace:configure.ac:126: -1- m4_pattern_allow([^LN_S$]) +m4trace:configure.ac:127: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:133: -1- GEM_CHECK_RTE([]) +m4trace:configure.ac:133: -1- IEM_OPERATING_SYSTEM +m4trace:configure.ac:133: -1- AM_CONDITIONAL([LINUX], [test x$LINUX = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^LINUX_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^LINUX_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([LINUX_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([LINUX_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([ANDROID], [test x$ANDROID = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^ANDROID_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^ANDROID_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([ANDROID_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([ANDROID_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([MACOSX], [test x$MACOSX = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^MACOSX_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^MACOSX_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([MACOSX_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([MACOSX_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([IPHONEOS], [test x$IPHONEOS = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^IPHONEOS_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^IPHONEOS_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([IPHONEOS_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([IPHONEOS_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([BSD], [test x$BSD = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^BSD_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^BSD_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([BSD_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([BSD_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([WINDOWS], [test x$WINDOWS = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^WINDOWS_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^WINDOWS_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([WINDOWS_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([WINDOWS_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([CYGWIN], [test x$CYGWIN = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^CYGWIN_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^CYGWIN_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([CYGWIN_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([CYGWIN_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([MINGW], [test x$MINGW = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^MINGW_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^MINGW_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([MINGW_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([MINGW_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([HURD], [test x$HURD = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^HURD_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^HURD_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([HURD_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([HURD_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([IRIX], [test x$IRIX = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^IRIX_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^IRIX_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([IRIX_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([IRIX_FALSE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^GEM_RTE_CFLAGS$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^GEM_RTE_LIBS$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^GEM_RTE$]) +m4trace:configure.ac:133: -1- AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS], ["-I${with_pd}/src"]) +m4trace:configure.ac:133: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:133: -1- AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS], ["-I${with_pd}/include/pd"]) +m4trace:configure.ac:133: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:133: -1- AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS], ["-I${with_pd}/include"]) +m4trace:configure.ac:133: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:133: -1- AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS], ["-I${with_pd}"]) +m4trace:configure.ac:133: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^HAVE_M_PD_H$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^HAVE_S_STUFF_H$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^GEM_RTE_EXTENSION$]) +m4trace:configure.ac:135: -1- m4_pattern_allow([^GEM_CPPFLAGS$]) +m4trace:configure.ac:136: -1- m4_pattern_allow([^GEM_CFLAGS$]) +m4trace:configure.ac:137: -1- m4_pattern_allow([^GEM_CXXFLAGS$]) +m4trace:configure.ac:138: -1- m4_pattern_allow([^GEM_LIBS$]) +m4trace:configure.ac:140: -1- m4_pattern_allow([^GEM_EXTERNAL_CPPFLAGS$]) +m4trace:configure.ac:141: -1- m4_pattern_allow([^GEM_EXTERNAL_CFLAGS$]) +m4trace:configure.ac:142: -1- m4_pattern_allow([^GEM_EXTERNAL_LIBS$]) +m4trace:configure.ac:151: -1- GEM_ARG_ENABLE([mmx], [MMX-support]) +m4trace:configure.ac:151: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:28: GEM_ARG_ENABLE is expanded from... +configure.ac:151: the top level]) +m4trace:configure.ac:154: -1- GEM_ARG_DISABLE([sse2], [SSE2-support]) +m4trace:configure.ac:154: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:36: GEM_ARG_DISABLE is expanded from... +configure.ac:154: the top level]) +m4trace:configure.ac:155: -1- GEM_ARG_ENABLE([altivec], [AltiVec-support]) +m4trace:configure.ac:155: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:28: GEM_ARG_ENABLE is expanded from... +configure.ac:155: the top level]) +m4trace:configure.ac:156: -1- GEM_ARG_DISABLE([powerpc], [PowerPC specific optimizations]) +m4trace:configure.ac:156: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:36: GEM_ARG_DISABLE is expanded from... +configure.ac:156: the top level]) +m4trace:configure.ac:158: -1- GEM_ARG_ENABLE([pascalstrings], [containing '\p']) +m4trace:configure.ac:158: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:28: GEM_ARG_ENABLE is expanded from... +configure.ac:158: the top level]) +m4trace:configure.ac:160: -1- GEM_ARG_ENABLE([registerstruct], [use \"-freg-struct-return\" (needed for FreeFrame)], [force]) +m4trace:configure.ac:160: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:28: GEM_ARG_ENABLE is expanded from... +configure.ac:160: the top level]) +m4trace:configure.ac:163: -1- GEM_TARGET([Controls]) +m4trace:configure.ac:163: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:163: the top level]) +m4trace:configure.ac:163: -1- AM_CONDITIONAL([TARGET_CONTROLS], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:163: -1- m4_pattern_allow([^TARGET_CONTROLS_TRUE$]) +m4trace:configure.ac:163: -1- m4_pattern_allow([^TARGET_CONTROLS_FALSE$]) +m4trace:configure.ac:163: -1- _AM_SUBST_NOTMAKE([TARGET_CONTROLS_TRUE]) +m4trace:configure.ac:163: -1- _AM_SUBST_NOTMAKE([TARGET_CONTROLS_FALSE]) +m4trace:configure.ac:164: -1- GEM_TARGET([Geos]) +m4trace:configure.ac:164: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:164: the top level]) +m4trace:configure.ac:164: -1- AM_CONDITIONAL([TARGET_GEOS], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:164: -1- m4_pattern_allow([^TARGET_GEOS_TRUE$]) +m4trace:configure.ac:164: -1- m4_pattern_allow([^TARGET_GEOS_FALSE$]) +m4trace:configure.ac:164: -1- _AM_SUBST_NOTMAKE([TARGET_GEOS_TRUE]) +m4trace:configure.ac:164: -1- _AM_SUBST_NOTMAKE([TARGET_GEOS_FALSE]) +m4trace:configure.ac:165: -1- GEM_TARGET([Manips]) +m4trace:configure.ac:165: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:165: the top level]) +m4trace:configure.ac:165: -1- AM_CONDITIONAL([TARGET_MANIPS], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:165: -1- m4_pattern_allow([^TARGET_MANIPS_TRUE$]) +m4trace:configure.ac:165: -1- m4_pattern_allow([^TARGET_MANIPS_FALSE$]) +m4trace:configure.ac:165: -1- _AM_SUBST_NOTMAKE([TARGET_MANIPS_TRUE]) +m4trace:configure.ac:165: -1- _AM_SUBST_NOTMAKE([TARGET_MANIPS_FALSE]) +m4trace:configure.ac:166: -1- GEM_TARGET([Nongeos]) +m4trace:configure.ac:166: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:166: the top level]) +m4trace:configure.ac:166: -1- AM_CONDITIONAL([TARGET_NONGEOS], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:166: -1- m4_pattern_allow([^TARGET_NONGEOS_TRUE$]) +m4trace:configure.ac:166: -1- m4_pattern_allow([^TARGET_NONGEOS_FALSE$]) +m4trace:configure.ac:166: -1- _AM_SUBST_NOTMAKE([TARGET_NONGEOS_TRUE]) +m4trace:configure.ac:166: -1- _AM_SUBST_NOTMAKE([TARGET_NONGEOS_FALSE]) +m4trace:configure.ac:167: -1- GEM_TARGET([Particles]) +m4trace:configure.ac:167: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:167: the top level]) +m4trace:configure.ac:167: -1- AM_CONDITIONAL([TARGET_PARTICLES], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:167: -1- m4_pattern_allow([^TARGET_PARTICLES_TRUE$]) +m4trace:configure.ac:167: -1- m4_pattern_allow([^TARGET_PARTICLES_FALSE$]) +m4trace:configure.ac:167: -1- _AM_SUBST_NOTMAKE([TARGET_PARTICLES_TRUE]) +m4trace:configure.ac:167: -1- _AM_SUBST_NOTMAKE([TARGET_PARTICLES_FALSE]) +m4trace:configure.ac:168: -1- GEM_TARGET([Pixes]) +m4trace:configure.ac:168: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:168: the top level]) +m4trace:configure.ac:168: -1- AM_CONDITIONAL([TARGET_PIXES], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:168: -1- m4_pattern_allow([^TARGET_PIXES_TRUE$]) +m4trace:configure.ac:168: -1- m4_pattern_allow([^TARGET_PIXES_FALSE$]) +m4trace:configure.ac:168: -1- _AM_SUBST_NOTMAKE([TARGET_PIXES_TRUE]) +m4trace:configure.ac:168: -1- _AM_SUBST_NOTMAKE([TARGET_PIXES_FALSE]) +m4trace:configure.ac:169: -1- GEM_TARGET([openGL]) +m4trace:configure.ac:169: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:169: the top level]) +m4trace:configure.ac:169: -1- AM_CONDITIONAL([TARGET_OPENGL], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:169: -1- m4_pattern_allow([^TARGET_OPENGL_TRUE$]) +m4trace:configure.ac:169: -1- m4_pattern_allow([^TARGET_OPENGL_FALSE$]) +m4trace:configure.ac:169: -1- _AM_SUBST_NOTMAKE([TARGET_OPENGL_TRUE]) +m4trace:configure.ac:169: -1- _AM_SUBST_NOTMAKE([TARGET_OPENGL_FALSE]) +m4trace:configure.ac:170: -1- GEM_TARGET_DISABLED([Vertex]) +m4trace:configure.ac:170: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:68: GEM_TARGET_DISABLED is expanded from... +configure.ac:170: the top level]) +m4trace:configure.ac:170: -1- AM_CONDITIONAL([TARGET_VERTEX], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:170: -1- m4_pattern_allow([^TARGET_VERTEX_TRUE$]) +m4trace:configure.ac:170: -1- m4_pattern_allow([^TARGET_VERTEX_FALSE$]) +m4trace:configure.ac:170: -1- _AM_SUBST_NOTMAKE([TARGET_VERTEX_TRUE]) +m4trace:configure.ac:170: -1- _AM_SUBST_NOTMAKE([TARGET_VERTEX_FALSE]) +m4trace:configure.ac:174: -1- m4_pattern_allow([^HAVE_LIBM$]) +m4trace:configure.ac:175: -1- m4_pattern_allow([^HAVE_LIBZ$]) +m4trace:configure.ac:176: -1- m4_pattern_allow([^HAVE_LIBDL$]) +m4trace:configure.ac:179: -1- m4_pattern_allow([^HAVE_LIBOLDNAMES$]) +m4trace:configure.ac:180: -1- m4_pattern_allow([^HAVE_LIBCOLDNAME$]) +m4trace:configure.ac:182: -1- m4_pattern_allow([^HAVE_LIBLIBCPMT$]) +m4trace:configure.ac:184: -1- m4_pattern_allow([^HAVE_LIBMSVCRT$]) +m4trace:configure.ac:186: -1- m4_pattern_allow([^HAVE_LIBMSVCPRT$]) +m4trace:configure.ac:188: -1- m4_pattern_allow([^HAVE_LIBWS2_32$]) +m4trace:configure.ac:189: -1- m4_pattern_allow([^HAVE_LIBWSOCK32$]) +m4trace:configure.ac:192: -1- m4_pattern_allow([^HAVE_LIBGDI32$]) +m4trace:configure.ac:203: -1- m4_pattern_allow([^XMKMF$]) +m4trace:configure.ac:204: -1- m4_pattern_allow([^X_DISPLAY_MISSING$]) +m4trace:configure.ac:204: -1- m4_pattern_allow([^X_CFLAGS$]) +m4trace:configure.ac:204: -1- m4_pattern_allow([^X_PRE_LIBS$]) +m4trace:configure.ac:204: -1- m4_pattern_allow([^X_LIBS$]) +m4trace:configure.ac:204: -1- m4_pattern_allow([^X_EXTRA_LIBS$]) +m4trace:configure.ac:209: -1- m4_pattern_allow([^HAVE_LIBXXF86VM$]) +m4trace:configure.ac:212: -1- IEM_CHECK_GL +m4trace:configure.ac:212: -1- AX_CHECK_GL +m4trace:configure.ac:212: -1- AX_PTHREAD +m4trace:configure.ac:212: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete. +You should run autoupdate.], [../../lib/autoconf/lang.m4:125: AC_LANG_SAVE is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/ax_check_gl.m4:52: AX_CHECK_GL is expanded from... +m4/iem_opengl.m4:42: IEM_CHECK_GL is expanded from... +configure.ac:212: the top level]) +m4trace:configure.ac:212: -1- _m4_warn([obsolete], [The macro `AC_LANG_C' is obsolete. +You should run autoupdate.], [../../lib/autoconf/c.m4:72: AC_LANG_C is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/ax_check_gl.m4:52: AX_CHECK_GL is expanded from... +m4/iem_opengl.m4:42: IEM_CHECK_GL is expanded from... +configure.ac:212: the top level]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^ax_pthread_config$]) +m4trace:configure.ac:212: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/ax_check_gl.m4:52: AX_CHECK_GL is expanded from... +m4/iem_opengl.m4:42: IEM_CHECK_GL is expanded from... +configure.ac:212: the top level]) +m4trace:configure.ac:212: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/ax_check_gl.m4:52: AX_CHECK_GL is expanded from... +m4/iem_opengl.m4:42: IEM_CHECK_GL is expanded from... +configure.ac:212: the top level]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^PTHREAD_CREATE_JOINABLE$]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^PTHREAD_LIBS$]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^PTHREAD_CFLAGS$]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:212: -2- m4_pattern_allow([^HAVE_PTHREADS$]) +m4trace:configure.ac:212: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete. +You should run autoupdate.], [../../lib/autoconf/lang.m4:134: AC_LANG_RESTORE is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/ax_check_gl.m4:52: AX_CHECK_GL is expanded from... +m4/iem_opengl.m4:42: IEM_CHECK_GL is expanded from... +configure.ac:212: the top level]) +m4trace:configure.ac:212: -1- AX_COMPILER_VENDOR +m4trace:configure.ac:212: -1- m4_pattern_allow([^HAVE_WINDOWS_H$]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^GL_CFLAGS$]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^GL_LIBS$]) +m4trace:configure.ac:212: -1- AM_CONDITIONAL([HAVE_GL], [test "x$no_gl" != "xyes"]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^HAVE_GL_TRUE$]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^HAVE_GL_FALSE$]) +m4trace:configure.ac:212: -1- _AM_SUBST_NOTMAKE([HAVE_GL_TRUE]) +m4trace:configure.ac:212: -1- _AM_SUBST_NOTMAKE([HAVE_GL_FALSE]) +m4trace:configure.ac:213: -1- IEM_CHECK_GLU +m4trace:configure.ac:213: -1- AX_CHECK_GLU +m4trace:configure.ac:213: -1- m4_pattern_allow([^GLU_CFLAGS$]) +m4trace:configure.ac:213: -1- m4_pattern_allow([^GLU_LIBS$]) +m4trace:configure.ac:213: -1- m4_pattern_allow([^HAVE_VARARGS_GLU_TESSCB$]) +m4trace:configure.ac:213: -1- AM_CONDITIONAL([HAVE_GLU], [test "x$no_glu" != "xyes"]) +m4trace:configure.ac:213: -1- m4_pattern_allow([^HAVE_GLU_TRUE$]) +m4trace:configure.ac:213: -1- m4_pattern_allow([^HAVE_GLU_FALSE$]) +m4trace:configure.ac:213: -1- _AM_SUBST_NOTMAKE([HAVE_GLU_TRUE]) +m4trace:configure.ac:213: -1- _AM_SUBST_NOTMAKE([HAVE_GLU_FALSE]) +m4trace:configure.ac:214: -1- IEM_CHECK_GLUT +m4trace:configure.ac:214: -1- AX_CHECK_GLUT +m4trace:configure.ac:214: -1- m4_pattern_allow([^GLUT_CFLAGS$]) +m4trace:configure.ac:214: -1- m4_pattern_allow([^GLUT_LIBS$]) +m4trace:configure.ac:214: -1- AM_CONDITIONAL([HAVE_GLUT], [test "x$no_glut" != "xyes"]) +m4trace:configure.ac:214: -1- m4_pattern_allow([^HAVE_GLUT_TRUE$]) +m4trace:configure.ac:214: -1- m4_pattern_allow([^HAVE_GLUT_FALSE$]) +m4trace:configure.ac:214: -1- _AM_SUBST_NOTMAKE([HAVE_GLUT_TRUE]) +m4trace:configure.ac:214: -1- _AM_SUBST_NOTMAKE([HAVE_GLUT_FALSE]) +m4trace:configure.ac:215: -1- IEM_CHECK_GLX +m4trace:configure.ac:215: -1- m4_pattern_allow([^HAVE_GL_GLX_H$]) +m4trace:configure.ac:215: -1- AM_CONDITIONAL([HAVE_GLX], [test "x$no_glx" != "xyes"]) +m4trace:configure.ac:215: -1- m4_pattern_allow([^HAVE_GLX_TRUE$]) +m4trace:configure.ac:215: -1- m4_pattern_allow([^HAVE_GLX_FALSE$]) +m4trace:configure.ac:215: -1- _AM_SUBST_NOTMAKE([HAVE_GLX_TRUE]) +m4trace:configure.ac:215: -1- _AM_SUBST_NOTMAKE([HAVE_GLX_FALSE]) +m4trace:configure.ac:215: -1- m4_pattern_allow([^GLX_CFLAGS$]) +m4trace:configure.ac:215: -1- m4_pattern_allow([^GLX_LIBS$]) +m4trace:configure.ac:216: -1- IEM_CHECK_AGL +m4trace:configure.ac:216: -1- GEM_CHECK_FRAMEWORK([AGL]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^GEM_FRAMEWORK_AGL$]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_AGL$]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_GEM_FRAMEWORK_AGL$]) +m4trace:configure.ac:216: -1- AM_CONDITIONAL([HAVE_FRAMEWORK_AGL], [test "x$gem_check_ldflags_success" = "xyes"]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_FRAMEWORK_AGL_TRUE$]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_FRAMEWORK_AGL_FALSE$]) +m4trace:configure.ac:216: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_AGL_TRUE]) +m4trace:configure.ac:216: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_AGL_FALSE]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^AGL_CFLAGS$]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^AGL_LIBS$]) +m4trace:configure.ac:216: -1- AM_CONDITIONAL([HAVE_AGL], [test "x$no_agl" != "xyes"]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_AGL_TRUE$]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_AGL_FALSE$]) +m4trace:configure.ac:216: -1- _AM_SUBST_NOTMAKE([HAVE_AGL_TRUE]) +m4trace:configure.ac:216: -1- _AM_SUBST_NOTMAKE([HAVE_AGL_FALSE]) +m4trace:configure.ac:219: -1- GEM_CHECK_LIB([glew], [GLEW], [glewInit], [], [], [], [OpenGL Extension Wrangler library], [no]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^GEM_LIB_GLEW_CFLAGS$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^GEM_LIB_GLEW_LIBS$]) +m4trace:configure.ac:219: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:219: the top level]) +m4trace:configure.ac:219: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:219: the top level]) +m4trace:configure.ac:219: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:219: the top level]) +m4trace:configure.ac:219: -1- PKG_CHECK_MODULES([PKG_GLEW], [glew], [ac_cv_lib_GLEW_glewInit=yes], [:]) +m4trace:configure.ac:219: -1- PKG_PROG_PKG_CONFIG +m4trace:configure.ac:219: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_CFLAGS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_LIBS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_GLEW_CFLAGS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_GLEW_LIBS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_GLEW]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_GLEW_PKG_ERRORS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^PKG_GLEW_CFLAGS$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^PKG_GLEW_LIBS$]) +m4trace:configure.ac:219: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_GLEW_CFLAGS}"]) +m4trace:configure.ac:219: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_LIBGLEW$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_LIBGLEW$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_LIBGLEW$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_GLEWINIT$]) +m4trace:configure.ac:219: -1- AM_CONDITIONAL([HAVE_LIB_GLEW], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_LIB_GLEW_TRUE$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_LIB_GLEW_FALSE$]) +m4trace:configure.ac:219: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_GLEW_TRUE]) +m4trace:configure.ac:219: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_GLEW_FALSE]) +m4trace:configure.ac:224: -1- GEM_CHECK_LIB([sdl], [SDL], [SDL_Quit], [], [], [], [SDL windowing], [yes]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^GEM_LIB_SDL_CFLAGS$]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^GEM_LIB_SDL_LIBS$]) +m4trace:configure.ac:224: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:224: the top level]) +m4trace:configure.ac:224: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:224: the top level]) +m4trace:configure.ac:224: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:224: the top level]) +m4trace:configure.ac:224: -1- PKG_CHECK_MODULES([PKG_SDL], [sdl], [ac_cv_lib_SDL_SDL_Quit=yes], [:]) +m4trace:configure.ac:224: -1- m4_pattern_allow([PKG_SDL_CFLAGS]) +m4trace:configure.ac:224: -1- m4_pattern_allow([PKG_SDL_LIBS]) +m4trace:configure.ac:224: -1- m4_pattern_allow([PKG_SDL]) +m4trace:configure.ac:224: -1- m4_pattern_allow([PKG_SDL_PKG_ERRORS]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^PKG_SDL_CFLAGS$]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^PKG_SDL_LIBS$]) +m4trace:configure.ac:224: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_SDL_CFLAGS}"]) +m4trace:configure.ac:224: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_LIBSDL$]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_LIBSDL$]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_LIBSDL$]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_SDL_QUIT$]) +m4trace:configure.ac:224: -1- AM_CONDITIONAL([HAVE_LIB_SDL], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_LIB_SDL_TRUE$]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_LIB_SDL_FALSE$]) +m4trace:configure.ac:224: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_SDL_TRUE]) +m4trace:configure.ac:224: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_SDL_FALSE]) +m4trace:configure.ac:237: -1- GEM_CHECK_FRAMEWORK([Cocoa], [have_cocoa_framework="yes"], [have_cocoa_framework="no"]) +m4trace:configure.ac:237: -1- m4_pattern_allow([^GEM_FRAMEWORK_COCOA$]) +m4trace:configure.ac:237: -1- m4_pattern_allow([^HAVE_COCOA$]) +m4trace:configure.ac:237: -1- m4_pattern_allow([^HAVE_GEM_FRAMEWORK_COCOA$]) +m4trace:configure.ac:237: -1- AM_CONDITIONAL([HAVE_FRAMEWORK_COCOA], [test "x$gem_check_ldflags_success" = "xyes"]) +m4trace:configure.ac:237: -1- m4_pattern_allow([^HAVE_FRAMEWORK_COCOA_TRUE$]) +m4trace:configure.ac:237: -1- m4_pattern_allow([^HAVE_FRAMEWORK_COCOA_FALSE$]) +m4trace:configure.ac:237: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_COCOA_TRUE]) +m4trace:configure.ac:237: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_COCOA_FALSE]) +m4trace:configure.ac:240: -1- GEM_CHECK_FRAMEWORK([Carbon], [have_carbon_framework="yes"], [have_carbon_framework="no"]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^GEM_FRAMEWORK_CARBON$]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_CARBON$]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_GEM_FRAMEWORK_CARBON$]) +m4trace:configure.ac:240: -1- AM_CONDITIONAL([HAVE_FRAMEWORK_CARBON], [test "x$gem_check_ldflags_success" = "xyes"]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_FRAMEWORK_CARBON_TRUE$]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_FRAMEWORK_CARBON_FALSE$]) +m4trace:configure.ac:240: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_CARBON_TRUE]) +m4trace:configure.ac:240: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_CARBON_FALSE]) +m4trace:configure.ac:243: -1- GEM_CHECK_FRAMEWORK([QuickTime], [have_quicktime_framework="yes"], [have_quicktime_framework="no"]) +m4trace:configure.ac:243: -1- m4_pattern_allow([^GEM_FRAMEWORK_QUICKTIME$]) +m4trace:configure.ac:243: -1- m4_pattern_allow([^HAVE_QUICKTIME$]) +m4trace:configure.ac:243: -1- m4_pattern_allow([^HAVE_GEM_FRAMEWORK_QUICKTIME$]) +m4trace:configure.ac:243: -1- AM_CONDITIONAL([HAVE_FRAMEWORK_QUICKTIME], [test "x$gem_check_ldflags_success" = "xyes"]) +m4trace:configure.ac:243: -1- m4_pattern_allow([^HAVE_FRAMEWORK_QUICKTIME_TRUE$]) +m4trace:configure.ac:243: -1- m4_pattern_allow([^HAVE_FRAMEWORK_QUICKTIME_FALSE$]) +m4trace:configure.ac:243: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_QUICKTIME_TRUE]) +m4trace:configure.ac:243: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_QUICKTIME_FALSE]) +m4trace:configure.ac:247: -1- AM_CONDITIONAL([VIDEODARWIN], [test "x${have_carbon_framework}" = "xyes" && test "x${have_quicktime_framework}" = "xyes"]) +m4trace:configure.ac:247: -1- m4_pattern_allow([^VIDEODARWIN_TRUE$]) +m4trace:configure.ac:247: -1- m4_pattern_allow([^VIDEODARWIN_FALSE$]) +m4trace:configure.ac:247: -1- _AM_SUBST_NOTMAKE([VIDEODARWIN_TRUE]) +m4trace:configure.ac:247: -1- _AM_SUBST_NOTMAKE([VIDEODARWIN_FALSE]) +m4trace:configure.ac:260: -2- m4_pattern_allow([^HAVE_LIBMAGICKPLUSPLUS$]) +m4trace:configure.ac:257: -1- GEM_CHECK_LIB([ImageMagick++], [Magick++], [main], [ +$as_echo "@%:@define HAVE_LIBMAGICKPLUSPLUS 1" >>confdefs.h +], [], [], [image loader]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^GEM_LIB_IMAGEMAGICK___CFLAGS$]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^GEM_LIB_IMAGEMAGICK___LIBS$]) +m4trace:configure.ac:257: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:257: the top level]) +m4trace:configure.ac:257: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:257: the top level]) +m4trace:configure.ac:257: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:257: the top level]) +m4trace:configure.ac:257: -1- PKG_CHECK_MODULES([PKG_IMAGEMAGICK__], [ImageMagick++], [ac_cv_lib_Magickpp_main=yes], [:]) +m4trace:configure.ac:257: -1- m4_pattern_allow([PKG_IMAGEMAGICK___CFLAGS]) +m4trace:configure.ac:257: -1- m4_pattern_allow([PKG_IMAGEMAGICK___LIBS]) +m4trace:configure.ac:257: -1- m4_pattern_allow([PKG_IMAGEMAGICK__]) +m4trace:configure.ac:257: -1- m4_pattern_allow([PKG_IMAGEMAGICK___PKG_ERRORS]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^PKG_IMAGEMAGICK___CFLAGS$]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^PKG_IMAGEMAGICK___LIBS$]) +m4trace:configure.ac:257: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_IMAGEMAGICK___CFLAGS}"]) +m4trace:configure.ac:257: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIBMAGICK__$]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIBIMAGEMAGICK__$]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIBMAGICK__$]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:257: -1- AM_CONDITIONAL([HAVE_LIB_IMAGEMAGICK__], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIB_IMAGEMAGICK___TRUE$]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIB_IMAGEMAGICK___FALSE$]) +m4trace:configure.ac:257: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_IMAGEMAGICK___TRUE]) +m4trace:configure.ac:257: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_IMAGEMAGICK___FALSE]) +m4trace:configure.ac:266: -2- m4_pattern_allow([^HAVE_LIBMAGICK$]) +m4trace:configure.ac:263: -1- GEM_CHECK_LIB([MagickCore], [Magick], [main], [ +$as_echo "@%:@define HAVE_LIBMAGICK 1" >>confdefs.h +], [], [], [image loader]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^GEM_LIB_MAGICKCORE_CFLAGS$]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^GEM_LIB_MAGICKCORE_LIBS$]) +m4trace:configure.ac:263: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:263: the top level]) +m4trace:configure.ac:263: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:263: the top level]) +m4trace:configure.ac:263: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:263: the top level]) +m4trace:configure.ac:263: -1- PKG_CHECK_MODULES([PKG_MAGICKCORE], [MagickCore], [ac_cv_lib_Magick_main=yes], [:]) +m4trace:configure.ac:263: -1- m4_pattern_allow([PKG_MAGICKCORE_CFLAGS]) +m4trace:configure.ac:263: -1- m4_pattern_allow([PKG_MAGICKCORE_LIBS]) +m4trace:configure.ac:263: -1- m4_pattern_allow([PKG_MAGICKCORE]) +m4trace:configure.ac:263: -1- m4_pattern_allow([PKG_MAGICKCORE_PKG_ERRORS]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^PKG_MAGICKCORE_CFLAGS$]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^PKG_MAGICKCORE_LIBS$]) +m4trace:configure.ac:263: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_MAGICKCORE_CFLAGS}"]) +m4trace:configure.ac:263: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_LIBMAGICK$]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_LIBMAGICKCORE$]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_LIBMAGICK$]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:263: -1- AM_CONDITIONAL([HAVE_LIB_MAGICKCORE], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_LIB_MAGICKCORE_TRUE$]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_LIB_MAGICKCORE_FALSE$]) +m4trace:configure.ac:263: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_MAGICKCORE_TRUE]) +m4trace:configure.ac:263: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_MAGICKCORE_FALSE]) +m4trace:configure.ac:274: -1- GEM_CHECK_LIB([tiff], [tiff], [TIFFOpen], [], [], [], [image loader]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^GEM_LIB_TIFF_CFLAGS$]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^GEM_LIB_TIFF_LIBS$]) +m4trace:configure.ac:274: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:274: the top level]) +m4trace:configure.ac:274: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:274: the top level]) +m4trace:configure.ac:274: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:274: the top level]) +m4trace:configure.ac:274: -1- PKG_CHECK_MODULES([PKG_TIFF], [tiff], [ac_cv_lib_tiff_TIFFOpen=yes], [:]) +m4trace:configure.ac:274: -1- m4_pattern_allow([PKG_TIFF_CFLAGS]) +m4trace:configure.ac:274: -1- m4_pattern_allow([PKG_TIFF_LIBS]) +m4trace:configure.ac:274: -1- m4_pattern_allow([PKG_TIFF]) +m4trace:configure.ac:274: -1- m4_pattern_allow([PKG_TIFF_PKG_ERRORS]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^PKG_TIFF_CFLAGS$]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^PKG_TIFF_LIBS$]) +m4trace:configure.ac:274: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_TIFF_CFLAGS}"]) +m4trace:configure.ac:274: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_LIBTIFF$]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_LIBTIFF$]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_LIBTIFF$]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_TIFFOPEN$]) +m4trace:configure.ac:274: -1- AM_CONDITIONAL([HAVE_LIB_TIFF], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_LIB_TIFF_TRUE$]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_LIB_TIFF_FALSE$]) +m4trace:configure.ac:274: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_TIFF_TRUE]) +m4trace:configure.ac:274: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_TIFF_FALSE]) +m4trace:configure.ac:275: -1- GEM_CHECK_LIB([jpeg], [jpeg], [jpeg_read_header], [], [], [], [image loader]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^GEM_LIB_JPEG_CFLAGS$]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^GEM_LIB_JPEG_LIBS$]) +m4trace:configure.ac:275: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:275: the top level]) +m4trace:configure.ac:275: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:275: the top level]) +m4trace:configure.ac:275: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:275: the top level]) +m4trace:configure.ac:275: -1- PKG_CHECK_MODULES([PKG_JPEG], [jpeg], [ac_cv_lib_jpeg_jpeg_read_header=yes], [:]) +m4trace:configure.ac:275: -1- m4_pattern_allow([PKG_JPEG_CFLAGS]) +m4trace:configure.ac:275: -1- m4_pattern_allow([PKG_JPEG_LIBS]) +m4trace:configure.ac:275: -1- m4_pattern_allow([PKG_JPEG]) +m4trace:configure.ac:275: -1- m4_pattern_allow([PKG_JPEG_PKG_ERRORS]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^PKG_JPEG_CFLAGS$]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^PKG_JPEG_LIBS$]) +m4trace:configure.ac:275: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_JPEG_CFLAGS}"]) +m4trace:configure.ac:275: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_LIBJPEG$]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_LIBJPEG$]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_LIBJPEG$]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_JPEG_READ_HEADER$]) +m4trace:configure.ac:275: -1- AM_CONDITIONAL([HAVE_LIB_JPEG], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_LIB_JPEG_TRUE$]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_LIB_JPEG_FALSE$]) +m4trace:configure.ac:275: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_JPEG_TRUE]) +m4trace:configure.ac:275: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_JPEG_FALSE]) +m4trace:configure.ac:277: -1- IEM_CHECK_FTGL([]) +m4trace:configure.ac:277: -1- GEM_CHECK_LIB([ftgl], [ftgl], [main], [], [], [-lfreetype], [font support]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^GEM_LIB_FTGL_CFLAGS$]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^GEM_LIB_FTGL_LIBS$]) +m4trace:configure.ac:277: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +m4/iem_ftgl.m4:6: IEM_CHECK_FTGL is expanded from... +configure.ac:277: the top level]) +m4trace:configure.ac:277: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +m4/iem_ftgl.m4:6: IEM_CHECK_FTGL is expanded from... +configure.ac:277: the top level]) +m4trace:configure.ac:277: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +m4/iem_ftgl.m4:6: IEM_CHECK_FTGL is expanded from... +configure.ac:277: the top level]) +m4trace:configure.ac:277: -1- PKG_CHECK_MODULES([PKG_FTGL], [ftgl], [ac_cv_lib_ftgl_main=yes], [:]) +m4trace:configure.ac:277: -1- m4_pattern_allow([PKG_FTGL_CFLAGS]) +m4trace:configure.ac:277: -1- m4_pattern_allow([PKG_FTGL_LIBS]) +m4trace:configure.ac:277: -1- m4_pattern_allow([PKG_FTGL]) +m4trace:configure.ac:277: -1- m4_pattern_allow([PKG_FTGL_PKG_ERRORS]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^PKG_FTGL_CFLAGS$]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^PKG_FTGL_LIBS$]) +m4trace:configure.ac:277: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_FTGL_CFLAGS}"]) +m4trace:configure.ac:277: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_LIBFTGL$]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_LIBFTGL$]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_LIBFTGL$]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:277: -1- AM_CONDITIONAL([HAVE_LIB_FTGL], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_LIB_FTGL_TRUE$]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_LIB_FTGL_FALSE$]) +m4trace:configure.ac:277: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_FTGL_TRUE]) +m4trace:configure.ac:277: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_FTGL_FALSE]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_FTGL_FTGL_H$]) +m4trace:configure.ac:278: -1- GEM_CHECK_LIB([fribidi], [fribidi], [fribidi_log2vis], [], [], [], [bidrectional text rendering using FriBidi]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^GEM_LIB_FRIBIDI_CFLAGS$]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^GEM_LIB_FRIBIDI_LIBS$]) +m4trace:configure.ac:278: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:278: the top level]) +m4trace:configure.ac:278: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:278: the top level]) +m4trace:configure.ac:278: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:278: the top level]) +m4trace:configure.ac:278: -1- PKG_CHECK_MODULES([PKG_FRIBIDI], [fribidi], [ac_cv_lib_fribidi_fribidi_log2vis=yes], [:]) +m4trace:configure.ac:278: -1- m4_pattern_allow([PKG_FRIBIDI_CFLAGS]) +m4trace:configure.ac:278: -1- m4_pattern_allow([PKG_FRIBIDI_LIBS]) +m4trace:configure.ac:278: -1- m4_pattern_allow([PKG_FRIBIDI]) +m4trace:configure.ac:278: -1- m4_pattern_allow([PKG_FRIBIDI_PKG_ERRORS]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^PKG_FRIBIDI_CFLAGS$]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^PKG_FRIBIDI_LIBS$]) +m4trace:configure.ac:278: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_FRIBIDI_CFLAGS}"]) +m4trace:configure.ac:278: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_LIBFRIBIDI$]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_LIBFRIBIDI$]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_LIBFRIBIDI$]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_FRIBIDI_LOG2VIS$]) +m4trace:configure.ac:278: -1- AM_CONDITIONAL([HAVE_LIB_FRIBIDI], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_LIB_FRIBIDI_TRUE$]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_LIB_FRIBIDI_FALSE$]) +m4trace:configure.ac:278: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_FRIBIDI_TRUE]) +m4trace:configure.ac:278: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_FRIBIDI_FALSE]) +m4trace:configure.ac:281: -1- GEM_CHECK_LIB([avifile], [aviplay], [CreateIAviReadFile], [], [], [], [movie loader]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^GEM_LIB_AVIFILE_CFLAGS$]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^GEM_LIB_AVIFILE_LIBS$]) +m4trace:configure.ac:281: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:281: the top level]) +m4trace:configure.ac:281: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:281: the top level]) +m4trace:configure.ac:281: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:281: the top level]) +m4trace:configure.ac:281: -1- PKG_CHECK_MODULES([PKG_AVIFILE], [avifile], [ac_cv_lib_aviplay_CreateIAviReadFile=yes], [:]) +m4trace:configure.ac:281: -1- m4_pattern_allow([PKG_AVIFILE_CFLAGS]) +m4trace:configure.ac:281: -1- m4_pattern_allow([PKG_AVIFILE_LIBS]) +m4trace:configure.ac:281: -1- m4_pattern_allow([PKG_AVIFILE]) +m4trace:configure.ac:281: -1- m4_pattern_allow([PKG_AVIFILE_PKG_ERRORS]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^PKG_AVIFILE_CFLAGS$]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^PKG_AVIFILE_LIBS$]) +m4trace:configure.ac:281: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_AVIFILE_CFLAGS}"]) +m4trace:configure.ac:281: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_LIBAVIPLAY$]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_LIBAVIFILE$]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_LIBAVIPLAY$]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_CREATEIAVIREADFILE$]) +m4trace:configure.ac:281: -1- AM_CONDITIONAL([HAVE_LIB_AVIFILE], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_LIB_AVIFILE_TRUE$]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_LIB_AVIFILE_FALSE$]) +m4trace:configure.ac:281: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_AVIFILE_TRUE]) +m4trace:configure.ac:281: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_AVIFILE_FALSE]) +m4trace:configure.ac:282: -1- GEM_CHECK_LIB([gmerlin_avdec], [gmerlin_avdec], [gavl_start], [], [], [], [movie loader]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^GEM_LIB_GMERLIN_AVDEC_CFLAGS$]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^GEM_LIB_GMERLIN_AVDEC_LIBS$]) +m4trace:configure.ac:282: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:282: the top level]) +m4trace:configure.ac:282: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:282: the top level]) +m4trace:configure.ac:282: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:282: the top level]) +m4trace:configure.ac:282: -1- PKG_CHECK_MODULES([PKG_GMERLIN_AVDEC], [gmerlin_avdec], [ac_cv_lib_gmerlin_avdec_gavl_start=yes], [:]) +m4trace:configure.ac:282: -1- m4_pattern_allow([PKG_GMERLIN_AVDEC_CFLAGS]) +m4trace:configure.ac:282: -1- m4_pattern_allow([PKG_GMERLIN_AVDEC_LIBS]) +m4trace:configure.ac:282: -1- m4_pattern_allow([PKG_GMERLIN_AVDEC]) +m4trace:configure.ac:282: -1- m4_pattern_allow([PKG_GMERLIN_AVDEC_PKG_ERRORS]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^PKG_GMERLIN_AVDEC_CFLAGS$]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^PKG_GMERLIN_AVDEC_LIBS$]) +m4trace:configure.ac:282: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_GMERLIN_AVDEC_CFLAGS}"]) +m4trace:configure.ac:282: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_LIBGMERLIN_AVDEC$]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_LIBGMERLIN_AVDEC$]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_LIBGMERLIN_AVDEC$]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_GAVL_START$]) +m4trace:configure.ac:282: -1- AM_CONDITIONAL([HAVE_LIB_GMERLIN_AVDEC], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_LIB_GMERLIN_AVDEC_TRUE$]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_LIB_GMERLIN_AVDEC_FALSE$]) +m4trace:configure.ac:282: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_GMERLIN_AVDEC_TRUE]) +m4trace:configure.ac:282: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_GMERLIN_AVDEC_FALSE]) +m4trace:configure.ac:283: -1- GEM_CHECK_LIB([mpeg], [mpeg], [OpenMPEG], [], [], [], [movie loader]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^GEM_LIB_MPEG_CFLAGS$]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^GEM_LIB_MPEG_LIBS$]) +m4trace:configure.ac:283: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:283: the top level]) +m4trace:configure.ac:283: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:283: the top level]) +m4trace:configure.ac:283: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:283: the top level]) +m4trace:configure.ac:283: -1- PKG_CHECK_MODULES([PKG_MPEG], [mpeg], [ac_cv_lib_mpeg_OpenMPEG=yes], [:]) +m4trace:configure.ac:283: -1- m4_pattern_allow([PKG_MPEG_CFLAGS]) +m4trace:configure.ac:283: -1- m4_pattern_allow([PKG_MPEG_LIBS]) +m4trace:configure.ac:283: -1- m4_pattern_allow([PKG_MPEG]) +m4trace:configure.ac:283: -1- m4_pattern_allow([PKG_MPEG_PKG_ERRORS]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^PKG_MPEG_CFLAGS$]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^PKG_MPEG_LIBS$]) +m4trace:configure.ac:283: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_MPEG_CFLAGS}"]) +m4trace:configure.ac:283: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_LIBMPEG$]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_LIBMPEG$]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_LIBMPEG$]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_OPENMPEG$]) +m4trace:configure.ac:283: -1- AM_CONDITIONAL([HAVE_LIB_MPEG], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_LIB_MPEG_TRUE$]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_LIB_MPEG_FALSE$]) +m4trace:configure.ac:283: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_MPEG_TRUE]) +m4trace:configure.ac:283: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_MPEG_FALSE]) +m4trace:configure.ac:284: -1- GEM_CHECK_LIB([libmpeg3], [mpeg3], [mpeg3_check_sig], [], [], [], [movie loader]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^GEM_LIB_LIBMPEG3_CFLAGS$]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^GEM_LIB_LIBMPEG3_LIBS$]) +m4trace:configure.ac:284: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:284: the top level]) +m4trace:configure.ac:284: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:284: the top level]) +m4trace:configure.ac:284: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:284: the top level]) +m4trace:configure.ac:284: -1- PKG_CHECK_MODULES([PKG_LIBMPEG3], [libmpeg3], [ac_cv_lib_mpeg3_mpeg3_check_sig=yes], [:]) +m4trace:configure.ac:284: -1- m4_pattern_allow([PKG_LIBMPEG3_CFLAGS]) +m4trace:configure.ac:284: -1- m4_pattern_allow([PKG_LIBMPEG3_LIBS]) +m4trace:configure.ac:284: -1- m4_pattern_allow([PKG_LIBMPEG3]) +m4trace:configure.ac:284: -1- m4_pattern_allow([PKG_LIBMPEG3_PKG_ERRORS]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^PKG_LIBMPEG3_CFLAGS$]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^PKG_LIBMPEG3_LIBS$]) +m4trace:configure.ac:284: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBMPEG3_CFLAGS}"]) +m4trace:configure.ac:284: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_LIBMPEG3$]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_LIBLIBMPEG3$]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_LIBMPEG3$]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_MPEG3_CHECK_SIG$]) +m4trace:configure.ac:284: -1- AM_CONDITIONAL([HAVE_LIB_LIBMPEG3], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_LIB_LIBMPEG3_TRUE$]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_LIB_LIBMPEG3_FALSE$]) +m4trace:configure.ac:284: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBMPEG3_TRUE]) +m4trace:configure.ac:284: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBMPEG3_FALSE]) +m4trace:configure.ac:285: -1- GEM_CHECK_LIB([libquicktime], [quicktime], [quicktime_init], [], [], [], [movie loader]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^GEM_LIB_LIBQUICKTIME_CFLAGS$]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^GEM_LIB_LIBQUICKTIME_LIBS$]) +m4trace:configure.ac:285: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:285: the top level]) +m4trace:configure.ac:285: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:285: the top level]) +m4trace:configure.ac:285: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:285: the top level]) +m4trace:configure.ac:285: -1- PKG_CHECK_MODULES([PKG_LIBQUICKTIME], [libquicktime], [ac_cv_lib_quicktime_quicktime_init=yes], [:]) +m4trace:configure.ac:285: -1- m4_pattern_allow([PKG_LIBQUICKTIME_CFLAGS]) +m4trace:configure.ac:285: -1- m4_pattern_allow([PKG_LIBQUICKTIME_LIBS]) +m4trace:configure.ac:285: -1- m4_pattern_allow([PKG_LIBQUICKTIME]) +m4trace:configure.ac:285: -1- m4_pattern_allow([PKG_LIBQUICKTIME_PKG_ERRORS]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^PKG_LIBQUICKTIME_CFLAGS$]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^PKG_LIBQUICKTIME_LIBS$]) +m4trace:configure.ac:285: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBQUICKTIME_CFLAGS}"]) +m4trace:configure.ac:285: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIBQUICKTIME$]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIBLIBQUICKTIME$]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIBQUICKTIME$]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_QUICKTIME_INIT$]) +m4trace:configure.ac:285: -1- AM_CONDITIONAL([HAVE_LIB_LIBQUICKTIME], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIB_LIBQUICKTIME_TRUE$]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIB_LIBQUICKTIME_FALSE$]) +m4trace:configure.ac:285: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBQUICKTIME_TRUE]) +m4trace:configure.ac:285: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBQUICKTIME_FALSE]) +m4trace:configure.ac:286: -1- GEM_CHECK_LIB([lqt], [quicktime], [quicktime_init], [], [], [], [movie loader]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^GEM_LIB_LQT_CFLAGS$]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^GEM_LIB_LQT_LIBS$]) +m4trace:configure.ac:286: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:286: the top level]) +m4trace:configure.ac:286: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:286: the top level]) +m4trace:configure.ac:286: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:286: the top level]) +m4trace:configure.ac:286: -1- PKG_CHECK_MODULES([PKG_LQT], [lqt], [ac_cv_lib_quicktime_quicktime_init=yes], [:]) +m4trace:configure.ac:286: -1- m4_pattern_allow([PKG_LQT_CFLAGS]) +m4trace:configure.ac:286: -1- m4_pattern_allow([PKG_LQT_LIBS]) +m4trace:configure.ac:286: -1- m4_pattern_allow([PKG_LQT]) +m4trace:configure.ac:286: -1- m4_pattern_allow([PKG_LQT_PKG_ERRORS]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^PKG_LQT_CFLAGS$]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^PKG_LQT_LIBS$]) +m4trace:configure.ac:286: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LQT_CFLAGS}"]) +m4trace:configure.ac:286: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_LIBQUICKTIME$]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_LIBLQT$]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_LIBQUICKTIME$]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_QUICKTIME_INIT$]) +m4trace:configure.ac:286: -1- AM_CONDITIONAL([HAVE_LIB_LQT], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_LIB_LQT_TRUE$]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_LIB_LQT_FALSE$]) +m4trace:configure.ac:286: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LQT_TRUE]) +m4trace:configure.ac:286: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LQT_FALSE]) +m4trace:configure.ac:293: -1- m4_pattern_allow([^HAVE_LQT_SEEK_VIDEO$]) +m4trace:configure.ac:294: -1- m4_pattern_allow([^HAVE_LQT_OPEN_WRITE$]) +m4trace:configure.ac:299: -1- GEM_CHECK_LIB([libdc1394-2], [dc1394], [main], [], [], [], [video input]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^GEM_LIB_LIBDC1394_2_CFLAGS$]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^GEM_LIB_LIBDC1394_2_LIBS$]) +m4trace:configure.ac:299: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:299: the top level]) +m4trace:configure.ac:299: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:299: the top level]) +m4trace:configure.ac:299: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:299: the top level]) +m4trace:configure.ac:299: -1- PKG_CHECK_MODULES([PKG_LIBDC1394_2], [libdc1394-2], [ac_cv_lib_dc1394_main=yes], [:]) +m4trace:configure.ac:299: -1- m4_pattern_allow([PKG_LIBDC1394_2_CFLAGS]) +m4trace:configure.ac:299: -1- m4_pattern_allow([PKG_LIBDC1394_2_LIBS]) +m4trace:configure.ac:299: -1- m4_pattern_allow([PKG_LIBDC1394_2]) +m4trace:configure.ac:299: -1- m4_pattern_allow([PKG_LIBDC1394_2_PKG_ERRORS]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^PKG_LIBDC1394_2_CFLAGS$]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^PKG_LIBDC1394_2_LIBS$]) +m4trace:configure.ac:299: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBDC1394_2_CFLAGS}"]) +m4trace:configure.ac:299: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_LIBDC1394$]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_LIBLIBDC1394_2$]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_LIBDC1394$]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:299: -1- AM_CONDITIONAL([HAVE_LIB_LIBDC1394_2], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_LIB_LIBDC1394_2_TRUE$]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_LIB_LIBDC1394_2_FALSE$]) +m4trace:configure.ac:299: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBDC1394_2_TRUE]) +m4trace:configure.ac:299: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBDC1394_2_FALSE]) +m4trace:configure.ac:300: -1- GEM_CHECK_LIB([libdv], [dv], [main], [], [], [], [video input]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^GEM_LIB_LIBDV_CFLAGS$]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^GEM_LIB_LIBDV_LIBS$]) +m4trace:configure.ac:300: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:300: the top level]) +m4trace:configure.ac:300: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:300: the top level]) +m4trace:configure.ac:300: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:300: the top level]) +m4trace:configure.ac:300: -1- PKG_CHECK_MODULES([PKG_LIBDV], [libdv], [ac_cv_lib_dv_main=yes], [:]) +m4trace:configure.ac:300: -1- m4_pattern_allow([PKG_LIBDV_CFLAGS]) +m4trace:configure.ac:300: -1- m4_pattern_allow([PKG_LIBDV_LIBS]) +m4trace:configure.ac:300: -1- m4_pattern_allow([PKG_LIBDV]) +m4trace:configure.ac:300: -1- m4_pattern_allow([PKG_LIBDV_PKG_ERRORS]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^PKG_LIBDV_CFLAGS$]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^PKG_LIBDV_LIBS$]) +m4trace:configure.ac:300: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBDV_CFLAGS}"]) +m4trace:configure.ac:300: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_LIBDV$]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_LIBLIBDV$]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_LIBDV$]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:300: -1- AM_CONDITIONAL([HAVE_LIB_LIBDV], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_LIB_LIBDV_TRUE$]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_LIB_LIBDV_FALSE$]) +m4trace:configure.ac:300: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBDV_TRUE]) +m4trace:configure.ac:300: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBDV_FALSE]) +m4trace:configure.ac:301: -1- GEM_CHECK_LIB([libraw1394], [raw1394], [main], [], [], [], [video input]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^GEM_LIB_LIBRAW1394_CFLAGS$]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^GEM_LIB_LIBRAW1394_LIBS$]) +m4trace:configure.ac:301: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:301: the top level]) +m4trace:configure.ac:301: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:301: the top level]) +m4trace:configure.ac:301: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:301: the top level]) +m4trace:configure.ac:301: -1- PKG_CHECK_MODULES([PKG_LIBRAW1394], [libraw1394], [ac_cv_lib_raw1394_main=yes], [:]) +m4trace:configure.ac:301: -1- m4_pattern_allow([PKG_LIBRAW1394_CFLAGS]) +m4trace:configure.ac:301: -1- m4_pattern_allow([PKG_LIBRAW1394_LIBS]) +m4trace:configure.ac:301: -1- m4_pattern_allow([PKG_LIBRAW1394]) +m4trace:configure.ac:301: -1- m4_pattern_allow([PKG_LIBRAW1394_PKG_ERRORS]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^PKG_LIBRAW1394_CFLAGS$]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^PKG_LIBRAW1394_LIBS$]) +m4trace:configure.ac:301: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBRAW1394_CFLAGS}"]) +m4trace:configure.ac:301: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_LIBRAW1394$]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_LIBLIBRAW1394$]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_LIBRAW1394$]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:301: -1- AM_CONDITIONAL([HAVE_LIB_LIBRAW1394], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_LIB_LIBRAW1394_TRUE$]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_LIB_LIBRAW1394_FALSE$]) +m4trace:configure.ac:301: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBRAW1394_TRUE]) +m4trace:configure.ac:301: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBRAW1394_FALSE]) +m4trace:configure.ac:302: -1- GEM_CHECK_LIB([libiec61883], [iec61883], [main], [], [], [], [video input]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^GEM_LIB_LIBIEC61883_CFLAGS$]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^GEM_LIB_LIBIEC61883_LIBS$]) +m4trace:configure.ac:302: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:302: the top level]) +m4trace:configure.ac:302: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:302: the top level]) +m4trace:configure.ac:302: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:302: the top level]) +m4trace:configure.ac:302: -1- PKG_CHECK_MODULES([PKG_LIBIEC61883], [libiec61883], [ac_cv_lib_iec61883_main=yes], [:]) +m4trace:configure.ac:302: -1- m4_pattern_allow([PKG_LIBIEC61883_CFLAGS]) +m4trace:configure.ac:302: -1- m4_pattern_allow([PKG_LIBIEC61883_LIBS]) +m4trace:configure.ac:302: -1- m4_pattern_allow([PKG_LIBIEC61883]) +m4trace:configure.ac:302: -1- m4_pattern_allow([PKG_LIBIEC61883_PKG_ERRORS]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^PKG_LIBIEC61883_CFLAGS$]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^PKG_LIBIEC61883_LIBS$]) +m4trace:configure.ac:302: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBIEC61883_CFLAGS}"]) +m4trace:configure.ac:302: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_LIBIEC61883$]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_LIBLIBIEC61883$]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_LIBIEC61883$]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:302: -1- AM_CONDITIONAL([HAVE_LIB_LIBIEC61883], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_LIB_LIBIEC61883_TRUE$]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_LIB_LIBIEC61883_FALSE$]) +m4trace:configure.ac:302: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBIEC61883_TRUE]) +m4trace:configure.ac:302: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBIEC61883_FALSE]) +m4trace:configure.ac:303: -1- m4_pattern_allow([^HAVE_VL_VL_H$]) +m4trace:configure.ac:305: -1- GEM_ARG_WITH([unicap], [video input], [force]) +m4trace:configure.ac:305: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:9: GEM_ARG_WITH is expanded from... +configure.ac:305: the top level]) +m4trace:configure.ac:307: -1- GEM_CHECK_LIB([libunicap], [unicap], [unicap_check_version], [], [], [], [video input]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^GEM_LIB_LIBUNICAP_CFLAGS$]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^GEM_LIB_LIBUNICAP_LIBS$]) +m4trace:configure.ac:307: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:307: the top level]) +m4trace:configure.ac:307: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:307: the top level]) +m4trace:configure.ac:307: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:307: the top level]) +m4trace:configure.ac:307: -1- PKG_CHECK_MODULES([PKG_LIBUNICAP], [libunicap], [ac_cv_lib_unicap_unicap_check_version=yes], [:]) +m4trace:configure.ac:307: -1- m4_pattern_allow([PKG_LIBUNICAP_CFLAGS]) +m4trace:configure.ac:307: -1- m4_pattern_allow([PKG_LIBUNICAP_LIBS]) +m4trace:configure.ac:307: -1- m4_pattern_allow([PKG_LIBUNICAP]) +m4trace:configure.ac:307: -1- m4_pattern_allow([PKG_LIBUNICAP_PKG_ERRORS]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^PKG_LIBUNICAP_CFLAGS$]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^PKG_LIBUNICAP_LIBS$]) +m4trace:configure.ac:307: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBUNICAP_CFLAGS}"]) +m4trace:configure.ac:307: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_LIBUNICAP$]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_LIBLIBUNICAP$]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_LIBUNICAP$]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_UNICAP_CHECK_VERSION$]) +m4trace:configure.ac:307: -1- AM_CONDITIONAL([HAVE_LIB_LIBUNICAP], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_LIB_LIBUNICAP_TRUE$]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_LIB_LIBUNICAP_FALSE$]) +m4trace:configure.ac:307: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBUNICAP_TRUE]) +m4trace:configure.ac:307: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBUNICAP_FALSE]) +m4trace:configure.ac:310: -1- m4_pattern_allow([^HAVE_UNICAP$]) +m4trace:configure.ac:319: -1- AM_CONDITIONAL([HAVE_LIB_UNICAP], [test "x${have_unicap}" = "xyes"]) +m4trace:configure.ac:319: -1- m4_pattern_allow([^HAVE_LIB_UNICAP_TRUE$]) +m4trace:configure.ac:319: -1- m4_pattern_allow([^HAVE_LIB_UNICAP_FALSE$]) +m4trace:configure.ac:319: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_UNICAP_TRUE]) +m4trace:configure.ac:319: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_UNICAP_FALSE]) +m4trace:configure.ac:323: -1- GEM_ARG_WITH([v4l], [video input], [force]) +m4trace:configure.ac:323: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:9: GEM_ARG_WITH is expanded from... +configure.ac:323: the top level]) +m4trace:configure.ac:324: -1- m4_pattern_allow([^HAVE_LINUX_VIDEODEV_H$]) +m4trace:configure.ac:325: -1- GEM_CHECK_LIB([libv4l1], [v4l1], [v4l1_open], [], [], [], [video output]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^GEM_LIB_LIBV4L1_CFLAGS$]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^GEM_LIB_LIBV4L1_LIBS$]) +m4trace:configure.ac:325: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:325: the top level]) +m4trace:configure.ac:325: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:325: the top level]) +m4trace:configure.ac:325: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:325: the top level]) +m4trace:configure.ac:325: -1- PKG_CHECK_MODULES([PKG_LIBV4L1], [libv4l1], [ac_cv_lib_v4l1_v4l1_open=yes], [:]) +m4trace:configure.ac:325: -1- m4_pattern_allow([PKG_LIBV4L1_CFLAGS]) +m4trace:configure.ac:325: -1- m4_pattern_allow([PKG_LIBV4L1_LIBS]) +m4trace:configure.ac:325: -1- m4_pattern_allow([PKG_LIBV4L1]) +m4trace:configure.ac:325: -1- m4_pattern_allow([PKG_LIBV4L1_PKG_ERRORS]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^PKG_LIBV4L1_CFLAGS$]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^PKG_LIBV4L1_LIBS$]) +m4trace:configure.ac:325: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBV4L1_CFLAGS}"]) +m4trace:configure.ac:325: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_LIBV4L1$]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_LIBLIBV4L1$]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_LIBV4L1$]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_V4L1_OPEN$]) +m4trace:configure.ac:325: -1- AM_CONDITIONAL([HAVE_LIB_LIBV4L1], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_LIB_LIBV4L1_TRUE$]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_LIB_LIBV4L1_FALSE$]) +m4trace:configure.ac:325: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBV4L1_TRUE]) +m4trace:configure.ac:325: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBV4L1_FALSE]) +m4trace:configure.ac:332: -1- AM_CONDITIONAL([HAVE_V4L], [test "x${have_v4l}" != "xno"]) +m4trace:configure.ac:332: -1- m4_pattern_allow([^HAVE_V4L_TRUE$]) +m4trace:configure.ac:332: -1- m4_pattern_allow([^HAVE_V4L_FALSE$]) +m4trace:configure.ac:332: -1- _AM_SUBST_NOTMAKE([HAVE_V4L_TRUE]) +m4trace:configure.ac:332: -1- _AM_SUBST_NOTMAKE([HAVE_V4L_FALSE]) +m4trace:configure.ac:336: -1- GEM_ARG_WITH([v4l2], [video input], [force]) +m4trace:configure.ac:336: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:9: GEM_ARG_WITH is expanded from... +configure.ac:336: the top level]) +m4trace:configure.ac:337: -1- m4_pattern_allow([^HAVE_LINUX_VIDEODEV2_H$]) +m4trace:configure.ac:338: -1- GEM_CHECK_LIB([libv4l2], [v4l2], [v4l2_open], [], [], [], [video input]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^GEM_LIB_LIBV4L2_CFLAGS$]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^GEM_LIB_LIBV4L2_LIBS$]) +m4trace:configure.ac:338: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:338: the top level]) +m4trace:configure.ac:338: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:338: the top level]) +m4trace:configure.ac:338: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:338: the top level]) +m4trace:configure.ac:338: -1- PKG_CHECK_MODULES([PKG_LIBV4L2], [libv4l2], [ac_cv_lib_v4l2_v4l2_open=yes], [:]) +m4trace:configure.ac:338: -1- m4_pattern_allow([PKG_LIBV4L2_CFLAGS]) +m4trace:configure.ac:338: -1- m4_pattern_allow([PKG_LIBV4L2_LIBS]) +m4trace:configure.ac:338: -1- m4_pattern_allow([PKG_LIBV4L2]) +m4trace:configure.ac:338: -1- m4_pattern_allow([PKG_LIBV4L2_PKG_ERRORS]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^PKG_LIBV4L2_CFLAGS$]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^PKG_LIBV4L2_LIBS$]) +m4trace:configure.ac:338: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBV4L2_CFLAGS}"]) +m4trace:configure.ac:338: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_LIBV4L2$]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_LIBLIBV4L2$]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_LIBV4L2$]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_V4L2_OPEN$]) +m4trace:configure.ac:338: -1- AM_CONDITIONAL([HAVE_LIB_LIBV4L2], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_LIB_LIBV4L2_TRUE$]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_LIB_LIBV4L2_FALSE$]) +m4trace:configure.ac:338: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBV4L2_TRUE]) +m4trace:configure.ac:338: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBV4L2_FALSE]) +m4trace:configure.ac:347: -1- AM_CONDITIONAL([HAVE_V4L2], [test "x${have_v4l2}" != "xno"]) +m4trace:configure.ac:347: -1- m4_pattern_allow([^HAVE_V4L2_TRUE$]) +m4trace:configure.ac:347: -1- m4_pattern_allow([^HAVE_V4L2_FALSE$]) +m4trace:configure.ac:347: -1- _AM_SUBST_NOTMAKE([HAVE_V4L2_TRUE]) +m4trace:configure.ac:347: -1- _AM_SUBST_NOTMAKE([HAVE_V4L2_FALSE]) +m4trace:configure.ac:351: -1- GEM_CHECK_LIB([vfw32], [vfw32], [main], [], [], [], [video input]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^GEM_LIB_VFW32_CFLAGS$]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^GEM_LIB_VFW32_LIBS$]) +m4trace:configure.ac:351: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:351: the top level]) +m4trace:configure.ac:351: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:351: the top level]) +m4trace:configure.ac:351: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:351: the top level]) +m4trace:configure.ac:351: -1- PKG_CHECK_MODULES([PKG_VFW32], [vfw32], [ac_cv_lib_vfw32_main=yes], [:]) +m4trace:configure.ac:351: -1- m4_pattern_allow([PKG_VFW32_CFLAGS]) +m4trace:configure.ac:351: -1- m4_pattern_allow([PKG_VFW32_LIBS]) +m4trace:configure.ac:351: -1- m4_pattern_allow([PKG_VFW32]) +m4trace:configure.ac:351: -1- m4_pattern_allow([PKG_VFW32_PKG_ERRORS]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^PKG_VFW32_CFLAGS$]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^PKG_VFW32_LIBS$]) +m4trace:configure.ac:351: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_VFW32_CFLAGS}"]) +m4trace:configure.ac:351: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_LIBVFW32$]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_LIBVFW32$]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_LIBVFW32$]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:351: -1- AM_CONDITIONAL([HAVE_LIB_VFW32], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_LIB_VFW32_TRUE$]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_LIB_VFW32_FALSE$]) +m4trace:configure.ac:351: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_VFW32_TRUE]) +m4trace:configure.ac:351: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_VFW32_FALSE]) +m4trace:configure.ac:356: -1- GEM_CHECK_LIB([libvlc], [vlc], [libvlc_video_set_callbacks], [], [], [], [video input]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^GEM_LIB_LIBVLC_CFLAGS$]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^GEM_LIB_LIBVLC_LIBS$]) +m4trace:configure.ac:356: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:356: the top level]) +m4trace:configure.ac:356: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:356: the top level]) +m4trace:configure.ac:356: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:356: the top level]) +m4trace:configure.ac:356: -1- PKG_CHECK_MODULES([PKG_LIBVLC], [libvlc], [ac_cv_lib_vlc_libvlc_video_set_callbacks=yes], [:]) +m4trace:configure.ac:356: -1- m4_pattern_allow([PKG_LIBVLC_CFLAGS]) +m4trace:configure.ac:356: -1- m4_pattern_allow([PKG_LIBVLC_LIBS]) +m4trace:configure.ac:356: -1- m4_pattern_allow([PKG_LIBVLC]) +m4trace:configure.ac:356: -1- m4_pattern_allow([PKG_LIBVLC_PKG_ERRORS]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^PKG_LIBVLC_CFLAGS$]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^PKG_LIBVLC_LIBS$]) +m4trace:configure.ac:356: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBVLC_CFLAGS}"]) +m4trace:configure.ac:356: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIBVLC$]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIBLIBVLC$]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIBVLC$]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIBVLC_VIDEO_SET_CALLBACKS$]) +m4trace:configure.ac:356: -1- AM_CONDITIONAL([HAVE_LIB_LIBVLC], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIB_LIBVLC_TRUE$]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIB_LIBVLC_FALSE$]) +m4trace:configure.ac:356: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBVLC_TRUE]) +m4trace:configure.ac:356: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBVLC_FALSE]) +m4trace:configure.ac:359: -1- GEM_CHECK_LIB([assimp], [assimp], [aiDetachAllLogStreams], [], [], [], [3D model loading]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^GEM_LIB_ASSIMP_CFLAGS$]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^GEM_LIB_ASSIMP_LIBS$]) +m4trace:configure.ac:359: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:359: the top level]) +m4trace:configure.ac:359: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:359: the top level]) +m4trace:configure.ac:359: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:359: the top level]) +m4trace:configure.ac:359: -1- PKG_CHECK_MODULES([PKG_ASSIMP], [assimp], [ac_cv_lib_assimp_aiDetachAllLogStreams=yes], [:]) +m4trace:configure.ac:359: -1- m4_pattern_allow([PKG_ASSIMP_CFLAGS]) +m4trace:configure.ac:359: -1- m4_pattern_allow([PKG_ASSIMP_LIBS]) +m4trace:configure.ac:359: -1- m4_pattern_allow([PKG_ASSIMP]) +m4trace:configure.ac:359: -1- m4_pattern_allow([PKG_ASSIMP_PKG_ERRORS]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^PKG_ASSIMP_CFLAGS$]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^PKG_ASSIMP_LIBS$]) +m4trace:configure.ac:359: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_ASSIMP_CFLAGS}"]) +m4trace:configure.ac:359: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_LIBASSIMP$]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_LIBASSIMP$]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_LIBASSIMP$]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_AIDETACHALLLOGSTREAMS$]) +m4trace:configure.ac:359: -1- AM_CONDITIONAL([HAVE_LIB_ASSIMP], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_LIB_ASSIMP_TRUE$]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_LIB_ASSIMP_FALSE$]) +m4trace:configure.ac:359: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_ASSIMP_TRUE]) +m4trace:configure.ac:359: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_ASSIMP_FALSE]) +m4trace:configure.ac:371: -1- m4_pattern_allow([^GEM_DEFAULT_FONT$]) +m4trace:configure.ac:376: -1- GEM_CHECK_THREADS +m4trace:configure.ac:376: -1- GEM_ARG_ENABLE([threads], [default: use threads]) +m4trace:configure.ac:376: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:28: GEM_ARG_ENABLE is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^GEM_PTHREAD_CFLAGS$]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^GEM_PTHREAD_LIBS$]) +m4trace:configure.ac:376: -1- AX_PTHREAD +m4trace:configure.ac:376: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete. +You should run autoupdate.], [../../lib/autoconf/lang.m4:125: AC_LANG_SAVE is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- _m4_warn([obsolete], [The macro `AC_LANG_C' is obsolete. +You should run autoupdate.], [../../lib/autoconf/c.m4:72: AC_LANG_C is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^ax_pthread_config$]) +m4trace:configure.ac:376: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^PTHREAD_CREATE_JOINABLE$]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^PTHREAD_LIBS$]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^PTHREAD_CFLAGS$]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:376: -2- m4_pattern_allow([^HAVE_PTHREADS$]) +m4trace:configure.ac:376: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete. +You should run autoupdate.], [../../lib/autoconf/lang.m4:134: AC_LANG_RESTORE is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- AC_LIB_APPENDTOVAR([GEM_THREADS_CFLAGS], ["${PTHREAD_CFLAGS}"]) +m4trace:configure.ac:376: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:379: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:382: -1- m4_pattern_allow([^HAVE_WORDEXP_H$]) +m4trace:configure.ac:385: -1- m4_pattern_allow([^HAVE__BOOL$]) +m4trace:configure.ac:385: -1- m4_pattern_allow([^HAVE_STDBOOL_H$]) +m4trace:configure.ac:386: -1- m4_pattern_allow([^const$]) +m4trace:configure.ac:388: -1- m4_pattern_allow([^size_t$]) +m4trace:configure.ac:389: -1- m4_pattern_allow([^TIME_WITH_SYS_TIME$]) +m4trace:configure.ac:391: -1- m4_pattern_allow([^SIZEOF_UNSIGNED_INT$]) +m4trace:configure.ac:392: -1- m4_pattern_allow([^SIZEOF_VOID_P$]) +m4trace:configure.ac:395: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^pid_t$]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^HAVE_VFORK_H$]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^HAVE_WORKING_VFORK$]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^vfork$]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^HAVE_WORKING_FORK$]) +m4trace:configure.ac:397: -1- m4_pattern_allow([^HAVE_STDLIB_H$]) +m4trace:configure.ac:397: -1- m4_pattern_allow([^HAVE_MALLOC$]) +m4trace:configure.ac:397: -1- m4_pattern_allow([^HAVE_MALLOC$]) +m4trace:configure.ac:397: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:397: -1- m4_pattern_allow([^malloc$]) +m4trace:configure.ac:398: -1- AC_DEFUN([_AC_Header_stdlib_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_list], [" stdlib.h"])]) +_AC_HEADERS_EXPANSION]) +m4trace:configure.ac:398: -1- AC_DEFUN([_AC_Header_unistd_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_list], [" unistd.h"])]) +_AC_HEADERS_EXPANSION]) +m4trace:configure.ac:398: -1- AC_DEFUN([_AC_Header_sys_param_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_list], [" sys/param.h"])]) +_AC_HEADERS_EXPANSION]) +m4trace:configure.ac:398: -1- m4_pattern_allow([^HAVE_GETPAGESIZE$]) +m4trace:configure.ac:398: -1- m4_pattern_allow([^HAVE_MMAP$]) +m4trace:configure.ac:406: -2- m4_pattern_allow([^HAVE_LQT_OPEN_WRITE$]) +m4trace:configure.ac:413: -1- m4_pattern_allow([^MAKEDEP_FLAGS$]) +m4trace:configure.ac:415: -1- m4_pattern_allow([^MAKEDEP_FLAGS$]) +m4trace:configure.ac:442: -1- m4_pattern_allow([^GEM_VIDEOBACKEND$]) +m4trace:configure.ac:460: -1- m4_pattern_allow([^GEM_FILMBACKEND$]) +m4trace:configure.ac:471: -1- GEM_CHECK_CXXFLAGS([-freg-struct-return], [enable_registerstruct="yes"], [enable_registerstruct="no"]) +m4trace:configure.ac:482: -1- GEM_CHECK_CXXFLAGS([-mms-bitfields], [GEM_EXTERNAL_CFLAGS+="-mms-bitfields"]) +m4trace:configure.ac:486: -2- GEM_CHECK_CXXFLAGS([-O3]) +m4trace:configure.ac:486: -1- GEM_CHECK_CXXFLAGS([-Os], [], [ + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-O3\"" >&5 +$as_echo_n "checking whether compiler accepts \"-O3\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -O3 > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -O3" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +]) +m4trace:configure.ac:494: -1- GEM_CHECK_CXXFLAGS([-O3]) +m4trace:configure.ac:501: -2- GEM_CHECK_CXXFLAGS([-falign-loops -funroll-loops]) +m4trace:configure.ac:500: -1- GEM_CHECK_CXXFLAGS([-falign-loops -falign-functions -falign-jumps -funroll-loops], [], [ + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-falign-loops -funroll-loops\"" >&5 +$as_echo_n "checking whether compiler accepts \"-falign-loops -funroll-loops\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -falign-loops -funroll-loops > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -falign-loops -funroll-loops" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + + ]) +m4trace:configure.ac:503: -1- GEM_CHECK_CXXFLAGS([-ffast-math]) +m4trace:configure.ac:528: -1- GEM_CHECK_FAT([GEM_ARCH]) +m4trace:configure.ac:528: -1- GEM_CHECK_CXXFLAGS([$GEM_ARCH], [], [GEM_ARCH=""]) +m4trace:configure.ac:528: -1- GEM_CHECK_LDFLAGS([$GEM_ARCH], [], [GEM_ARCH=""]) +m4trace:configure.ac:530: -1- m4_pattern_allow([^GEM_ARCH_CXXFLAGS$]) +m4trace:configure.ac:531: -1- m4_pattern_allow([^GEM_ARCH_LDFLAGS$]) +m4trace:configure.ac:543: -1- GEM_CHECK_CXXFLAGS([-mmmx]) +m4trace:configure.ac:546: -1- GEM_CHECK_CXXFLAGS([-msse2]) +m4trace:configure.ac:549: -1- GEM_CHECK_CXXFLAGS([-faltivec]) +m4trace:configure.ac:552: -1- GEM_CHECK_CXXFLAGS([-mpowerpc-gfxopt]) +m4trace:configure.ac:557: -1- GEM_CHECK_CXXFLAGS([-fpascal-strings]) +m4trace:configure.ac:583: -1- m4_pattern_allow([^GEM_DEFAULT_WINDOW$]) +m4trace:configure.ac:588: -1- AM_CONDITIONAL([ENABLED], [test "x${enabled}" = "xyes"]) +m4trace:configure.ac:588: -1- m4_pattern_allow([^ENABLED_TRUE$]) +m4trace:configure.ac:588: -1- m4_pattern_allow([^ENABLED_FALSE$]) +m4trace:configure.ac:588: -1- _AM_SUBST_NOTMAKE([ENABLED_TRUE]) +m4trace:configure.ac:588: -1- _AM_SUBST_NOTMAKE([ENABLED_FALSE]) +m4trace:configure.ac:589: -1- AM_CONDITIONAL([DISABLED], [test "x${enabled}" = "xno"]) +m4trace:configure.ac:589: -1- m4_pattern_allow([^DISABLED_TRUE$]) +m4trace:configure.ac:589: -1- m4_pattern_allow([^DISABLED_FALSE$]) +m4trace:configure.ac:589: -1- _AM_SUBST_NOTMAKE([DISABLED_TRUE]) +m4trace:configure.ac:589: -1- _AM_SUBST_NOTMAKE([DISABLED_FALSE]) +m4trace:configure.ac:598: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:598: -1- m4_pattern_allow([^LTLIBOBJS$]) +m4trace:configure.ac:598: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) +m4trace:configure.ac:598: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) +m4trace:configure.ac:598: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) +m4trace:configure.ac:598: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) +m4trace:configure.ac:598: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) +m4trace:configure.ac:598: -1- _AC_AM_CONFIG_HEADER_HOOK(["$ac_file"]) +m4trace:configure.ac:598: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS +m4trace:configure.ac:598: -1- _LT_PROG_LTMAIN diff --git a/src/Gem/autom4te.cache/traces.1 b/src/Gem/autom4te.cache/traces.1 new file mode 100644 index 0000000..643dd4a --- /dev/null +++ b/src/Gem/autom4te.cache/traces.1 @@ -0,0 +1,2935 @@ +m4trace:aclocal.m4:972: -1- m4_include([m4/ax_check_gl.m4]) +m4trace:aclocal.m4:973: -1- m4_include([m4/ax_check_glu.m4]) +m4trace:aclocal.m4:974: -1- m4_include([m4/ax_check_glut.m4]) +m4trace:aclocal.m4:975: -1- m4_include([m4/ax_compiler_vendor.m4]) +m4trace:aclocal.m4:976: -1- m4_include([m4/ax_pthread.m4]) +m4trace:aclocal.m4:977: -1- m4_include([m4/gem.m4]) +m4trace:aclocal.m4:978: -1- m4_include([m4/iem_ftgl.m4]) +m4trace:aclocal.m4:979: -1- m4_include([m4/iem_opengl.m4]) +m4trace:aclocal.m4:980: -1- m4_include([m4/iem_operatingsystem.m4]) +m4trace:aclocal.m4:981: -1- m4_include([m4/lib-prefix.m4]) +m4trace:aclocal.m4:982: -1- m4_include([m4/libtool.m4]) +m4trace:aclocal.m4:983: -1- m4_include([m4/ltoptions.m4]) +m4trace:aclocal.m4:984: -1- m4_include([m4/ltsugar.m4]) +m4trace:aclocal.m4:985: -1- m4_include([m4/ltversion.m4]) +m4trace:aclocal.m4:986: -1- m4_include([m4/lt~obsolete.m4]) +m4trace:aclocal.m4:987: -1- m4_include([m4/pkg.m4]) +m4trace:configure.ac:5: -1- AC_INIT([Gem], [0.93], [zmoelnig@iem.at], [Gem], [http://gem.iem.at]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?A[CHUM]_]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([_AC_]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) +m4trace:configure.ac:5: -1- m4_pattern_allow([^AS_FLAGS$]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?m4_]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^dnl$]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?AS_]) +m4trace:configure.ac:5: -1- AC_SUBST([SHELL]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([SHELL]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^SHELL$]) +m4trace:configure.ac:5: -1- AC_SUBST([PATH_SEPARATOR]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([PATH_SEPARATOR]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PATH_SEPARATOR$]) +m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([PACKAGE_NAME]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([PACKAGE_TARNAME]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([PACKAGE_VERSION]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([PACKAGE_STRING]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_URL], [m4_ifdef([AC_PACKAGE_URL], ['AC_PACKAGE_URL'])]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([PACKAGE_URL]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:5: -1- AC_SUBST([exec_prefix], [NONE]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([exec_prefix]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^exec_prefix$]) +m4trace:configure.ac:5: -1- AC_SUBST([prefix], [NONE]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([prefix]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^prefix$]) +m4trace:configure.ac:5: -1- AC_SUBST([program_transform_name], [s,x,x,]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([program_transform_name]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^program_transform_name$]) +m4trace:configure.ac:5: -1- AC_SUBST([bindir], ['${exec_prefix}/bin']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([bindir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^bindir$]) +m4trace:configure.ac:5: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([sbindir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^sbindir$]) +m4trace:configure.ac:5: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([libexecdir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^libexecdir$]) +m4trace:configure.ac:5: -1- AC_SUBST([datarootdir], ['${prefix}/share']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([datarootdir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^datarootdir$]) +m4trace:configure.ac:5: -1- AC_SUBST([datadir], ['${datarootdir}']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([datadir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^datadir$]) +m4trace:configure.ac:5: -1- AC_SUBST([sysconfdir], ['${prefix}/etc']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([sysconfdir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^sysconfdir$]) +m4trace:configure.ac:5: -1- AC_SUBST([sharedstatedir], ['${prefix}/com']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([sharedstatedir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^sharedstatedir$]) +m4trace:configure.ac:5: -1- AC_SUBST([localstatedir], ['${prefix}/var']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([localstatedir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^localstatedir$]) +m4trace:configure.ac:5: -1- AC_SUBST([includedir], ['${prefix}/include']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([includedir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^includedir$]) +m4trace:configure.ac:5: -1- AC_SUBST([oldincludedir], ['/usr/include']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([oldincludedir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^oldincludedir$]) +m4trace:configure.ac:5: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME], + ['${datarootdir}/doc/${PACKAGE_TARNAME}'], + ['${datarootdir}/doc/${PACKAGE}'])]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([docdir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^docdir$]) +m4trace:configure.ac:5: -1- AC_SUBST([infodir], ['${datarootdir}/info']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([infodir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^infodir$]) +m4trace:configure.ac:5: -1- AC_SUBST([htmldir], ['${docdir}']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([htmldir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^htmldir$]) +m4trace:configure.ac:5: -1- AC_SUBST([dvidir], ['${docdir}']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([dvidir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^dvidir$]) +m4trace:configure.ac:5: -1- AC_SUBST([pdfdir], ['${docdir}']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([pdfdir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^pdfdir$]) +m4trace:configure.ac:5: -1- AC_SUBST([psdir], ['${docdir}']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([psdir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^psdir$]) +m4trace:configure.ac:5: -1- AC_SUBST([libdir], ['${exec_prefix}/lib']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([libdir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^libdir$]) +m4trace:configure.ac:5: -1- AC_SUBST([localedir], ['${datarootdir}/locale']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([localedir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^localedir$]) +m4trace:configure.ac:5: -1- AC_SUBST([mandir], ['${datarootdir}/man']) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([mandir]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^mandir$]) +m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */ +@%:@undef PACKAGE_NAME]) +m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */ +@%:@undef PACKAGE_TARNAME]) +m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */ +@%:@undef PACKAGE_VERSION]) +m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */ +@%:@undef PACKAGE_STRING]) +m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */ +@%:@undef PACKAGE_BUGREPORT]) +m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_URL]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_URL], [/* Define to the home page for this package. */ +@%:@undef PACKAGE_URL]) +m4trace:configure.ac:5: -1- AC_SUBST([DEFS]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([DEFS]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^DEFS$]) +m4trace:configure.ac:5: -1- AC_SUBST([ECHO_C]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([ECHO_C]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^ECHO_C$]) +m4trace:configure.ac:5: -1- AC_SUBST([ECHO_N]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([ECHO_N]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^ECHO_N$]) +m4trace:configure.ac:5: -1- AC_SUBST([ECHO_T]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([ECHO_T]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^ECHO_T$]) +m4trace:configure.ac:5: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:5: -1- AC_SUBST([build_alias]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([build_alias]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^build_alias$]) +m4trace:configure.ac:5: -1- AC_SUBST([host_alias]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([host_alias]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^host_alias$]) +m4trace:configure.ac:5: -1- AC_SUBST([target_alias]) +m4trace:configure.ac:5: -1- AC_SUBST_TRACE([target_alias]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^target_alias$]) +m4trace:configure.ac:7: -1- AM_INIT_AUTOMAKE([1.10 foreign]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) +m4trace:configure.ac:7: -1- AM_AUTOMAKE_VERSION([1.11.6]) +m4trace:configure.ac:7: -1- AC_REQUIRE_AUX_FILE([install-sh]) +m4trace:configure.ac:7: -1- AC_SUBST([INSTALL_PROGRAM]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([INSTALL_PROGRAM]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) +m4trace:configure.ac:7: -1- AC_SUBST([INSTALL_SCRIPT]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([INSTALL_SCRIPT]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) +m4trace:configure.ac:7: -1- AC_SUBST([INSTALL_DATA]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([INSTALL_DATA]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_DATA$]) +m4trace:configure.ac:7: -1- AC_SUBST([am__isrc], [' -I$(srcdir)']) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__isrc]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__isrc$]) +m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([am__isrc]) +m4trace:configure.ac:7: -1- AC_SUBST([CYGPATH_W]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([CYGPATH_W]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^CYGPATH_W$]) +m4trace:configure.ac:7: -1- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME']) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([PACKAGE]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:7: -1- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION']) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([VERSION]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:7: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:7: -1- AH_OUTPUT([PACKAGE], [/* Name of package */ +@%:@undef PACKAGE]) +m4trace:configure.ac:7: -1- AC_DEFINE_TRACE_LITERAL([VERSION]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:7: -1- AH_OUTPUT([VERSION], [/* Version number of package */ +@%:@undef VERSION]) +m4trace:configure.ac:7: -1- AC_REQUIRE_AUX_FILE([missing]) +m4trace:configure.ac:7: -1- AC_SUBST([ACLOCAL]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([ACLOCAL]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^ACLOCAL$]) +m4trace:configure.ac:7: -1- AC_SUBST([AUTOCONF]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AUTOCONF]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOCONF$]) +m4trace:configure.ac:7: -1- AC_SUBST([AUTOMAKE]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AUTOMAKE]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOMAKE$]) +m4trace:configure.ac:7: -1- AC_SUBST([AUTOHEADER]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AUTOHEADER]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOHEADER$]) +m4trace:configure.ac:7: -1- AC_SUBST([MAKEINFO]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([MAKEINFO]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^MAKEINFO$]) +m4trace:configure.ac:7: -1- AC_SUBST([install_sh]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([install_sh]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^install_sh$]) +m4trace:configure.ac:7: -1- AC_SUBST([STRIP]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([STRIP]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:7: -1- AC_SUBST([INSTALL_STRIP_PROGRAM]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([INSTALL_STRIP_PROGRAM]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) +m4trace:configure.ac:7: -1- AC_REQUIRE_AUX_FILE([install-sh]) +m4trace:configure.ac:7: -1- AC_SUBST([MKDIR_P]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([MKDIR_P]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^MKDIR_P$]) +m4trace:configure.ac:7: -1- AC_SUBST([mkdir_p], ["$MKDIR_P"]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([mkdir_p]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^mkdir_p$]) +m4trace:configure.ac:7: -1- AC_SUBST([AWK]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AWK]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:7: -1- AC_SUBST([SET_MAKE]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([SET_MAKE]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^SET_MAKE$]) +m4trace:configure.ac:7: -1- AC_SUBST([am__leading_dot]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__leading_dot]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__leading_dot$]) +m4trace:configure.ac:7: -1- AC_SUBST([AMTAR], ['$${TAR-tar}']) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AMTAR]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AMTAR$]) +m4trace:configure.ac:7: -1- AC_SUBST([am__tar]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__tar]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__tar$]) +m4trace:configure.ac:7: -1- AC_SUBST([am__untar]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__untar]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__untar$]) +m4trace:configure.ac:11: -1- AC_CONFIG_FILES([Makefile abstractions/Makefile]) +m4trace:configure.ac:14: -1- AC_CONFIG_FILES([help/Makefile doc/Makefile examples/Makefile]) +m4trace:configure.ac:17: -1- AC_CONFIG_FILES([src/Makefile src/Gem/Makefile src/Utils/Makefile]) +m4trace:configure.ac:18: -1- AC_CONFIG_FILES([src/RTE/Makefile src/Base/Makefile src/plugins/Makefile ]) +m4trace:configure.ac:19: -1- AC_CONFIG_FILES([src/Output/Makefile ]) +m4trace:configure.ac:20: -1- AC_CONFIG_FILES([src/deprecated/Makefile ]) +m4trace:configure.ac:23: -1- AC_CONFIG_FILES([plugins/Makefile]) +m4trace:configure.ac:24: -1- AC_CONFIG_FILES([plugins/imageQT/Makefile]) +m4trace:configure.ac:25: -1- AC_CONFIG_FILES([plugins/imageMAGICK/Makefile]) +m4trace:configure.ac:26: -1- AC_CONFIG_FILES([plugins/imageTIFF/Makefile]) +m4trace:configure.ac:27: -1- AC_CONFIG_FILES([plugins/imageJPEG/Makefile]) +m4trace:configure.ac:28: -1- AC_CONFIG_FILES([plugins/imageSGI/Makefile]) +m4trace:configure.ac:30: -1- AC_CONFIG_FILES([plugins/filmAVI/Makefile]) +m4trace:configure.ac:31: -1- AC_CONFIG_FILES([plugins/filmAVIPLAY/Makefile]) +m4trace:configure.ac:32: -1- AC_CONFIG_FILES([plugins/filmDS/Makefile]) +m4trace:configure.ac:33: -1- AC_CONFIG_FILES([plugins/filmDarwin/Makefile]) +m4trace:configure.ac:34: -1- AC_CONFIG_FILES([plugins/filmGMERLIN/Makefile]) +m4trace:configure.ac:35: -1- AC_CONFIG_FILES([plugins/filmMPEG1/Makefile]) +m4trace:configure.ac:36: -1- AC_CONFIG_FILES([plugins/filmMPEG3/Makefile]) +m4trace:configure.ac:37: -1- AC_CONFIG_FILES([plugins/filmQT/Makefile]) +m4trace:configure.ac:38: -1- AC_CONFIG_FILES([plugins/filmQT4L/Makefile]) +m4trace:configure.ac:39: -1- AC_CONFIG_FILES([plugins/filmTEST/Makefile]) +m4trace:configure.ac:41: -1- AC_CONFIG_FILES([plugins/modelOBJ/Makefile]) +m4trace:configure.ac:42: -1- AC_CONFIG_FILES([plugins/modelASSIMP2/Makefile]) +m4trace:configure.ac:44: -1- AC_CONFIG_FILES([plugins/recordQT/Makefile]) +m4trace:configure.ac:45: -1- AC_CONFIG_FILES([plugins/recordQT4L/Makefile]) +m4trace:configure.ac:46: -1- AC_CONFIG_FILES([plugins/recordV4L/Makefile]) +m4trace:configure.ac:47: -1- AC_CONFIG_FILES([plugins/recordV4L2/Makefile]) +m4trace:configure.ac:49: -1- AC_CONFIG_FILES([plugins/videoDC1394/Makefile]) +m4trace:configure.ac:50: -1- AC_CONFIG_FILES([plugins/videoDS/Makefile]) +m4trace:configure.ac:51: -1- AC_CONFIG_FILES([plugins/videoDV4L/Makefile]) +m4trace:configure.ac:52: -1- AC_CONFIG_FILES([plugins/videoDarwin/Makefile]) +m4trace:configure.ac:53: -1- AC_CONFIG_FILES([plugins/videoSGI/Makefile]) +m4trace:configure.ac:54: -1- AC_CONFIG_FILES([plugins/videoTEST/Makefile]) +m4trace:configure.ac:55: -1- AC_CONFIG_FILES([plugins/videoUNICAP/Makefile]) +m4trace:configure.ac:56: -1- AC_CONFIG_FILES([plugins/videoV4L/Makefile]) +m4trace:configure.ac:57: -1- AC_CONFIG_FILES([plugins/videoV4L2/Makefile]) +m4trace:configure.ac:58: -1- AC_CONFIG_FILES([plugins/videoVFW/Makefile]) +m4trace:configure.ac:59: -1- AC_CONFIG_FILES([plugins/videoVLC/Makefile]) +m4trace:configure.ac:65: -1- AC_CONFIG_FILES([extra/pix2jpg/Makefile]) +m4trace:configure.ac:68: -1- AC_CONFIG_FILES([build/Makefile Gem.pc Gem-meta.pd]) +m4trace:configure.ac:75: -1- AC_CONFIG_HEADERS([src/config.h]) +m4trace:configure.ac:78: -1- AC_CONFIG_SUBDIRS([extra]) +m4trace:configure.ac:78: -1- AC_SUBST([subdirs], ["$subdirs m4_normalize([extra])"]) +m4trace:configure.ac:78: -1- AC_SUBST_TRACE([subdirs]) +m4trace:configure.ac:78: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:81: -1- AC_CONFIG_SUBDIRS([plugins/videoAVT]) +m4trace:configure.ac:81: -1- AC_SUBST([subdirs], ["$subdirs m4_normalize([plugins/videoAVT])"]) +m4trace:configure.ac:81: -1- AC_SUBST_TRACE([subdirs]) +m4trace:configure.ac:81: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:84: -1- AC_CONFIG_SUBDIRS([plugins/videoHALCON]) +m4trace:configure.ac:84: -1- AC_SUBST([subdirs], ["$subdirs m4_normalize([plugins/videoHALCON])"]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([subdirs]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:87: -1- AC_CONFIG_SUBDIRS([plugins/videoPYLON]) +m4trace:configure.ac:87: -1- AC_SUBST([subdirs], ["$subdirs m4_normalize([plugins/videoPYLON])"]) +m4trace:configure.ac:87: -1- AC_SUBST_TRACE([subdirs]) +m4trace:configure.ac:87: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:97: -1- AC_SUBST([CXXCPP]) +m4trace:configure.ac:97: -1- AC_SUBST_TRACE([CXXCPP]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:98: -1- AC_SUBST([CXX]) +m4trace:configure.ac:98: -1- AC_SUBST_TRACE([CXX]) +m4trace:configure.ac:98: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:99: -1- AC_SUBST([GEM_TARGETS]) +m4trace:configure.ac:99: -1- AC_SUBST_TRACE([GEM_TARGETS]) +m4trace:configure.ac:99: -1- m4_pattern_allow([^GEM_TARGETS$]) +m4trace:configure.ac:100: -1- AC_SUBST([EXT]) +m4trace:configure.ac:100: -1- AC_SUBST_TRACE([EXT]) +m4trace:configure.ac:100: -1- m4_pattern_allow([^EXT$]) +m4trace:configure.ac:101: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:101: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:101: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:103: -1- AC_SUBST([CXXFLAGS]) +m4trace:configure.ac:103: -1- AC_SUBST_TRACE([CXXFLAGS]) +m4trace:configure.ac:103: -1- m4_pattern_allow([^CXXFLAGS$]) +m4trace:configure.ac:104: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:104: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:104: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:105: -1- AC_SUBST([DEFS]) +m4trace:configure.ac:105: -1- AC_SUBST_TRACE([DEFS]) +m4trace:configure.ac:105: -1- m4_pattern_allow([^DEFS$]) +m4trace:configure.ac:106: -1- AC_SUBST([DEFINES]) +m4trace:configure.ac:106: -1- AC_SUBST_TRACE([DEFINES]) +m4trace:configure.ac:106: -1- m4_pattern_allow([^DEFINES$]) +m4trace:configure.ac:108: -1- AC_SUBST([X_CFLAGS]) +m4trace:configure.ac:108: -1- AC_SUBST_TRACE([X_CFLAGS]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^X_CFLAGS$]) +m4trace:configure.ac:109: -1- AC_SUBST([X_PRE_LIBS]) +m4trace:configure.ac:109: -1- AC_SUBST_TRACE([X_PRE_LIBS]) +m4trace:configure.ac:109: -1- m4_pattern_allow([^X_PRE_LIBS$]) +m4trace:configure.ac:110: -1- AC_SUBST([X_LIBS]) +m4trace:configure.ac:110: -1- AC_SUBST_TRACE([X_LIBS]) +m4trace:configure.ac:110: -1- m4_pattern_allow([^X_LIBS$]) +m4trace:configure.ac:111: -1- AC_SUBST([X_EXTRA_LIBS]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([X_EXTRA_LIBS]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^X_EXTRA_LIBS$]) +m4trace:configure.ac:113: -1- AC_SUBST([PKG_CFLAGS]) +m4trace:configure.ac:113: -1- AC_SUBST_TRACE([PKG_CFLAGS]) +m4trace:configure.ac:113: -1- m4_pattern_allow([^PKG_CFLAGS$]) +m4trace:configure.ac:114: -1- AC_SUBST([PKG_LIBS]) +m4trace:configure.ac:114: -1- AC_SUBST_TRACE([PKG_LIBS]) +m4trace:configure.ac:114: -1- m4_pattern_allow([^PKG_LIBS$]) +m4trace:configure.ac:115: -1- AC_SUBST([prefix]) +m4trace:configure.ac:115: -1- AC_SUBST_TRACE([prefix]) +m4trace:configure.ac:115: -1- m4_pattern_allow([^prefix$]) +m4trace:configure.ac:118: -1- AC_SUBST([CXX]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([CXX]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:118: -1- AC_SUBST([CXXFLAGS]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([CXXFLAGS]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^CXXFLAGS$]) +m4trace:configure.ac:118: -1- AC_SUBST([LDFLAGS]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([LDFLAGS]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:118: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:118: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:118: -1- AC_SUBST([CXX]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([CXX]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:118: -1- AC_SUBST([ac_ct_CXX]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([ac_ct_CXX]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^ac_ct_CXX$]) +m4trace:configure.ac:118: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([EXEEXT]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^EXEEXT$]) +m4trace:configure.ac:118: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([OBJEXT]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^OBJEXT$]) +m4trace:configure.ac:118: -1- AC_SUBST([DEPDIR], ["${am__leading_dot}deps"]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([DEPDIR]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^DEPDIR$]) +m4trace:configure.ac:118: -1- AC_SUBST([am__include]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([am__include]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^am__include$]) +m4trace:configure.ac:118: -1- AC_SUBST([am__quote]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([am__quote]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^am__quote$]) +m4trace:configure.ac:118: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +m4trace:configure.ac:118: -1- AC_SUBST([AMDEP_TRUE]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([AMDEP_TRUE]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^AMDEP_TRUE$]) +m4trace:configure.ac:118: -1- AC_SUBST([AMDEP_FALSE]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([AMDEP_FALSE]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^AMDEP_FALSE$]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) +m4trace:configure.ac:118: -1- AC_SUBST([AMDEPBACKSLASH]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([AMDEPBACKSLASH]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) +m4trace:configure.ac:118: -1- AC_SUBST([am__nodep]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([am__nodep]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^am__nodep$]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([am__nodep]) +m4trace:configure.ac:118: -1- AC_SUBST([CXXDEPMODE], [depmode=$am_cv_CXX_dependencies_compiler_type]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([CXXDEPMODE]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^CXXDEPMODE$]) +m4trace:configure.ac:118: -1- AM_CONDITIONAL([am__fastdepCXX], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:118: -1- AC_SUBST([am__fastdepCXX_TRUE]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) +m4trace:configure.ac:118: -1- AC_SUBST([am__fastdepCXX_FALSE]) +m4trace:configure.ac:118: -1- AC_SUBST_TRACE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:119: -1- AC_SUBST([OBJC]) +m4trace:configure.ac:119: -1- AC_SUBST_TRACE([OBJC]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^OBJC$]) +m4trace:configure.ac:119: -1- AC_SUBST([OBJCFLAGS]) +m4trace:configure.ac:119: -1- AC_SUBST_TRACE([OBJCFLAGS]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^OBJCFLAGS$]) +m4trace:configure.ac:119: -1- AC_SUBST([LDFLAGS]) +m4trace:configure.ac:119: -1- AC_SUBST_TRACE([LDFLAGS]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:119: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:119: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:119: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:119: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:119: -1- AC_SUBST([OBJC]) +m4trace:configure.ac:119: -1- AC_SUBST_TRACE([OBJC]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^OBJC$]) +m4trace:configure.ac:119: -1- AC_SUBST([ac_ct_OBJC]) +m4trace:configure.ac:119: -1- AC_SUBST_TRACE([ac_ct_OBJC]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^ac_ct_OBJC$]) +m4trace:configure.ac:119: -1- AC_SUBST([OBJCDEPMODE], [depmode=$am_cv_OBJC_dependencies_compiler_type]) +m4trace:configure.ac:119: -1- AC_SUBST_TRACE([OBJCDEPMODE]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^OBJCDEPMODE$]) +m4trace:configure.ac:119: -1- AM_CONDITIONAL([am__fastdepOBJC], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:119: -1- AC_SUBST([am__fastdepOBJC_TRUE]) +m4trace:configure.ac:119: -1- AC_SUBST_TRACE([am__fastdepOBJC_TRUE]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^am__fastdepOBJC_TRUE$]) +m4trace:configure.ac:119: -1- AC_SUBST([am__fastdepOBJC_FALSE]) +m4trace:configure.ac:119: -1- AC_SUBST_TRACE([am__fastdepOBJC_FALSE]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^am__fastdepOBJC_FALSE$]) +m4trace:configure.ac:119: -1- _AM_SUBST_NOTMAKE([am__fastdepOBJC_TRUE]) +m4trace:configure.ac:119: -1- _AM_SUBST_NOTMAKE([am__fastdepOBJC_FALSE]) +m4trace:configure.ac:120: -1- AC_SUBST([OBJCXX]) +m4trace:configure.ac:120: -1- AC_SUBST_TRACE([OBJCXX]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^OBJCXX$]) +m4trace:configure.ac:120: -1- AC_SUBST([OBJCXXFLAGS]) +m4trace:configure.ac:120: -1- AC_SUBST_TRACE([OBJCXXFLAGS]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^OBJCXXFLAGS$]) +m4trace:configure.ac:120: -1- AC_SUBST([LDFLAGS]) +m4trace:configure.ac:120: -1- AC_SUBST_TRACE([LDFLAGS]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:120: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:120: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:120: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:120: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:120: -1- AC_SUBST([OBJCXX]) +m4trace:configure.ac:120: -1- AC_SUBST_TRACE([OBJCXX]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^OBJCXX$]) +m4trace:configure.ac:120: -1- AC_SUBST([ac_ct_OBJCXX]) +m4trace:configure.ac:120: -1- AC_SUBST_TRACE([ac_ct_OBJCXX]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^ac_ct_OBJCXX$]) +m4trace:configure.ac:122: -1- _m4_warn([obsolete], [The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. +You should run autoupdate.], [m4/ltoptions.m4:146: AC_LIBTOOL_WIN32_DLL is expanded from... +configure.ac:122: the top level]) +m4trace:configure.ac:122: -1- AC_CANONICAL_HOST +m4trace:configure.ac:122: -1- AC_CANONICAL_BUILD +m4trace:configure.ac:122: -1- AC_REQUIRE_AUX_FILE([config.sub]) +m4trace:configure.ac:122: -1- AC_REQUIRE_AUX_FILE([config.guess]) +m4trace:configure.ac:122: -1- AC_SUBST([build], [$ac_cv_build]) +m4trace:configure.ac:122: -1- AC_SUBST_TRACE([build]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^build$]) +m4trace:configure.ac:122: -1- AC_SUBST([build_cpu], [$[1]]) +m4trace:configure.ac:122: -1- AC_SUBST_TRACE([build_cpu]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^build_cpu$]) +m4trace:configure.ac:122: -1- AC_SUBST([build_vendor], [$[2]]) +m4trace:configure.ac:122: -1- AC_SUBST_TRACE([build_vendor]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^build_vendor$]) +m4trace:configure.ac:122: -1- AC_SUBST([build_os]) +m4trace:configure.ac:122: -1- AC_SUBST_TRACE([build_os]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^build_os$]) +m4trace:configure.ac:122: -1- AC_SUBST([host], [$ac_cv_host]) +m4trace:configure.ac:122: -1- AC_SUBST_TRACE([host]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^host$]) +m4trace:configure.ac:122: -1- AC_SUBST([host_cpu], [$[1]]) +m4trace:configure.ac:122: -1- AC_SUBST_TRACE([host_cpu]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^host_cpu$]) +m4trace:configure.ac:122: -1- AC_SUBST([host_vendor], [$[2]]) +m4trace:configure.ac:122: -1- AC_SUBST_TRACE([host_vendor]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^host_vendor$]) +m4trace:configure.ac:122: -1- AC_SUBST([host_os]) +m4trace:configure.ac:122: -1- AC_SUBST_TRACE([host_os]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^host_os$]) +m4trace:configure.ac:122: -1- AC_SUBST([AS]) +m4trace:configure.ac:122: -1- AC_SUBST_TRACE([AS]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^AS$]) +m4trace:configure.ac:122: -1- AC_SUBST([DLLTOOL]) +m4trace:configure.ac:122: -1- AC_SUBST_TRACE([DLLTOOL]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:122: -1- AC_SUBST([OBJDUMP]) +m4trace:configure.ac:122: -1- AC_SUBST_TRACE([OBJDUMP]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:122: -1- _m4_warn([obsolete], [AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.], [m4/ltoptions.m4:146: AC_LIBTOOL_WIN32_DLL is expanded from... +configure.ac:122: the top level]) +m4trace:configure.ac:123: -1- AC_PROG_LIBTOOL +m4trace:configure.ac:123: -1- _m4_warn([obsolete], [The macro `AC_PROG_LIBTOOL' is obsolete. +You should run autoupdate.], [m4/libtool.m4:107: AC_PROG_LIBTOOL is expanded from... +configure.ac:123: the top level]) +m4trace:configure.ac:123: -1- LT_INIT +m4trace:configure.ac:123: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$]) +m4trace:configure.ac:123: -1- AC_REQUIRE_AUX_FILE([ltmain.sh]) +m4trace:configure.ac:123: -1- AC_SUBST([LIBTOOL]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([LIBTOOL]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LIBTOOL$]) +m4trace:configure.ac:123: -1- AC_SUBST([CC]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:123: -1- AC_SUBST([CFLAGS]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([CFLAGS]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CFLAGS$]) +m4trace:configure.ac:123: -1- AC_SUBST([LDFLAGS]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([LDFLAGS]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:123: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:123: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:123: -1- AC_SUBST([CC]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:123: -1- AC_SUBST([CC]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:123: -1- AC_SUBST([CC]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:123: -1- AC_SUBST([CC]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:123: -1- AC_SUBST([ac_ct_CC]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([ac_ct_CC]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^ac_ct_CC$]) +m4trace:configure.ac:123: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([CCDEPMODE]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CCDEPMODE$]) +m4trace:configure.ac:123: -1- AM_CONDITIONAL([am__fastdepCC], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:123: -1- AC_SUBST([am__fastdepCC_TRUE]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([am__fastdepCC_TRUE]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) +m4trace:configure.ac:123: -1- AC_SUBST([am__fastdepCC_FALSE]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([am__fastdepCC_FALSE]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) +m4trace:configure.ac:123: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) +m4trace:configure.ac:123: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) +m4trace:configure.ac:123: -1- AC_SUBST([SED]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([SED]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:123: -1- AC_SUBST([GREP]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([GREP]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:123: -1- AC_SUBST([EGREP]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([EGREP]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^EGREP$]) +m4trace:configure.ac:123: -1- AC_SUBST([FGREP]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([FGREP]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^FGREP$]) +m4trace:configure.ac:123: -1- AC_SUBST([GREP]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([GREP]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:123: -1- AC_SUBST([LD]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([LD]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:123: -1- AC_SUBST([DUMPBIN]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([DUMPBIN]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:123: -1- AC_SUBST([ac_ct_DUMPBIN]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([ac_ct_DUMPBIN]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^ac_ct_DUMPBIN$]) +m4trace:configure.ac:123: -1- AC_SUBST([DUMPBIN]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([DUMPBIN]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:123: -1- AC_SUBST([NM]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([NM]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^NM$]) +m4trace:configure.ac:123: -1- AC_SUBST([LN_S], [$as_ln_s]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([LN_S]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LN_S$]) +m4trace:configure.ac:123: -1- AC_SUBST([OBJDUMP]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([OBJDUMP]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:123: -1- AC_SUBST([OBJDUMP]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([OBJDUMP]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:123: -1- AC_SUBST([DLLTOOL]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([DLLTOOL]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:123: -1- AC_SUBST([DLLTOOL]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([DLLTOOL]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:123: -1- AC_SUBST([AR]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([AR]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:123: -1- AC_SUBST([ac_ct_AR]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([ac_ct_AR]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^ac_ct_AR$]) +m4trace:configure.ac:123: -1- AC_SUBST([STRIP]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([STRIP]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:123: -1- AC_SUBST([RANLIB]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([RANLIB]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^RANLIB$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([LT_OBJDIR]) +m4trace:configure.ac:123: -1- AC_DEFINE_TRACE_LITERAL([LT_OBJDIR]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LT_OBJDIR$]) +m4trace:configure.ac:123: -1- AH_OUTPUT([LT_OBJDIR], [/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +@%:@undef LT_OBJDIR]) +m4trace:configure.ac:123: -1- LT_SUPPORTED_TAG([CC]) +m4trace:configure.ac:123: -1- AC_SUBST([MANIFEST_TOOL]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([MANIFEST_TOOL]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^MANIFEST_TOOL$]) +m4trace:configure.ac:123: -1- AC_SUBST([DSYMUTIL]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([DSYMUTIL]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^DSYMUTIL$]) +m4trace:configure.ac:123: -1- AC_SUBST([NMEDIT]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([NMEDIT]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^NMEDIT$]) +m4trace:configure.ac:123: -1- AC_SUBST([LIPO]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([LIPO]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LIPO$]) +m4trace:configure.ac:123: -1- AC_SUBST([OTOOL]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([OTOOL]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^OTOOL$]) +m4trace:configure.ac:123: -1- AC_SUBST([OTOOL64]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([OTOOL64]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^OTOOL64$]) +m4trace:configure.ac:123: -1- AH_OUTPUT([HAVE_DLFCN_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_DLFCN_H]) +m4trace:configure.ac:123: -1- AC_SUBST([CPP]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([CPP]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:123: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:123: -1- AC_SUBST([CPP]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([CPP]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:123: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:123: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */ +@%:@undef STDC_HEADERS]) +m4trace:configure.ac:123: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_TYPES_H]) +m4trace:configure.ac:123: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_STAT_H]) +m4trace:configure.ac:123: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDLIB_H]) +m4trace:configure.ac:123: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STRING_H]) +m4trace:configure.ac:123: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_MEMORY_H]) +m4trace:configure.ac:123: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STRINGS_H]) +m4trace:configure.ac:123: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_INTTYPES_H]) +m4trace:configure.ac:123: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDINT_H]) +m4trace:configure.ac:123: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_UNISTD_H]) +m4trace:configure.ac:123: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DLFCN_H]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^HAVE_DLFCN_H$]) +m4trace:configure.ac:123: -1- LT_SUPPORTED_TAG([CXX]) +m4trace:configure.ac:123: -1- AC_SUBST([CXXCPP]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([CXXCPP]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:123: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:123: -1- AC_SUBST([CXXCPP]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([CXXCPP]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:123: -1- AC_SUBST([LD]) +m4trace:configure.ac:123: -1- AC_SUBST_TRACE([LD]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:126: -1- AC_SUBST([LN_S], [$as_ln_s]) +m4trace:configure.ac:126: -1- AC_SUBST_TRACE([LN_S]) +m4trace:configure.ac:126: -1- m4_pattern_allow([^LN_S$]) +m4trace:configure.ac:127: -1- AC_SUBST([SED]) +m4trace:configure.ac:127: -1- AC_SUBST_TRACE([SED]) +m4trace:configure.ac:127: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:133: -1- AC_CANONICAL_HOST +m4trace:configure.ac:133: -1- AM_CONDITIONAL([LINUX], [test x$LINUX = xyes]) +m4trace:configure.ac:133: -1- AC_SUBST([LINUX_TRUE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([LINUX_TRUE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^LINUX_TRUE$]) +m4trace:configure.ac:133: -1- AC_SUBST([LINUX_FALSE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([LINUX_FALSE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^LINUX_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([LINUX_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([LINUX_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([ANDROID], [test x$ANDROID = xyes]) +m4trace:configure.ac:133: -1- AC_SUBST([ANDROID_TRUE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([ANDROID_TRUE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^ANDROID_TRUE$]) +m4trace:configure.ac:133: -1- AC_SUBST([ANDROID_FALSE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([ANDROID_FALSE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^ANDROID_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([ANDROID_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([ANDROID_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([MACOSX], [test x$MACOSX = xyes]) +m4trace:configure.ac:133: -1- AC_SUBST([MACOSX_TRUE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([MACOSX_TRUE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^MACOSX_TRUE$]) +m4trace:configure.ac:133: -1- AC_SUBST([MACOSX_FALSE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([MACOSX_FALSE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^MACOSX_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([MACOSX_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([MACOSX_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([IPHONEOS], [test x$IPHONEOS = xyes]) +m4trace:configure.ac:133: -1- AC_SUBST([IPHONEOS_TRUE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([IPHONEOS_TRUE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^IPHONEOS_TRUE$]) +m4trace:configure.ac:133: -1- AC_SUBST([IPHONEOS_FALSE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([IPHONEOS_FALSE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^IPHONEOS_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([IPHONEOS_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([IPHONEOS_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([BSD], [test x$BSD = xyes]) +m4trace:configure.ac:133: -1- AC_SUBST([BSD_TRUE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([BSD_TRUE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^BSD_TRUE$]) +m4trace:configure.ac:133: -1- AC_SUBST([BSD_FALSE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([BSD_FALSE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^BSD_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([BSD_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([BSD_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([WINDOWS], [test x$WINDOWS = xyes]) +m4trace:configure.ac:133: -1- AC_SUBST([WINDOWS_TRUE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([WINDOWS_TRUE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^WINDOWS_TRUE$]) +m4trace:configure.ac:133: -1- AC_SUBST([WINDOWS_FALSE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([WINDOWS_FALSE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^WINDOWS_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([WINDOWS_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([WINDOWS_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([CYGWIN], [test x$CYGWIN = xyes]) +m4trace:configure.ac:133: -1- AC_SUBST([CYGWIN_TRUE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([CYGWIN_TRUE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^CYGWIN_TRUE$]) +m4trace:configure.ac:133: -1- AC_SUBST([CYGWIN_FALSE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([CYGWIN_FALSE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^CYGWIN_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([CYGWIN_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([CYGWIN_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([MINGW], [test x$MINGW = xyes]) +m4trace:configure.ac:133: -1- AC_SUBST([MINGW_TRUE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([MINGW_TRUE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^MINGW_TRUE$]) +m4trace:configure.ac:133: -1- AC_SUBST([MINGW_FALSE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([MINGW_FALSE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^MINGW_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([MINGW_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([MINGW_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([HURD], [test x$HURD = xyes]) +m4trace:configure.ac:133: -1- AC_SUBST([HURD_TRUE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([HURD_TRUE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^HURD_TRUE$]) +m4trace:configure.ac:133: -1- AC_SUBST([HURD_FALSE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([HURD_FALSE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^HURD_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([HURD_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([HURD_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([IRIX], [test x$IRIX = xyes]) +m4trace:configure.ac:133: -1- AC_SUBST([IRIX_TRUE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([IRIX_TRUE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^IRIX_TRUE$]) +m4trace:configure.ac:133: -1- AC_SUBST([IRIX_FALSE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([IRIX_FALSE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^IRIX_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([IRIX_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([IRIX_FALSE]) +m4trace:configure.ac:133: -1- AC_SUBST([GEM_RTE_CFLAGS]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([GEM_RTE_CFLAGS]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^GEM_RTE_CFLAGS$]) +m4trace:configure.ac:133: -1- AC_SUBST([GEM_RTE_LIBS]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([GEM_RTE_LIBS]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^GEM_RTE_LIBS$]) +m4trace:configure.ac:133: -1- AC_SUBST([GEM_RTE]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([GEM_RTE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^GEM_RTE$]) +m4trace:configure.ac:133: -1- AH_OUTPUT([HAVE_M_PD_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_M_PD_H]) +m4trace:configure.ac:133: -1- AC_DEFINE_TRACE_LITERAL([HAVE_M_PD_H]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^HAVE_M_PD_H$]) +m4trace:configure.ac:133: -1- AH_OUTPUT([HAVE_S_STUFF_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_S_STUFF_H]) +m4trace:configure.ac:133: -1- AC_DEFINE_TRACE_LITERAL([HAVE_S_STUFF_H]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^HAVE_S_STUFF_H$]) +m4trace:configure.ac:133: -1- AC_SUBST([GEM_RTE_EXTENSION]) +m4trace:configure.ac:133: -1- AC_SUBST_TRACE([GEM_RTE_EXTENSION]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^GEM_RTE_EXTENSION$]) +m4trace:configure.ac:135: -1- AC_SUBST([GEM_CPPFLAGS]) +m4trace:configure.ac:135: -1- AC_SUBST_TRACE([GEM_CPPFLAGS]) +m4trace:configure.ac:135: -1- m4_pattern_allow([^GEM_CPPFLAGS$]) +m4trace:configure.ac:136: -1- AC_SUBST([GEM_CFLAGS]) +m4trace:configure.ac:136: -1- AC_SUBST_TRACE([GEM_CFLAGS]) +m4trace:configure.ac:136: -1- m4_pattern_allow([^GEM_CFLAGS$]) +m4trace:configure.ac:137: -1- AC_SUBST([GEM_CXXFLAGS]) +m4trace:configure.ac:137: -1- AC_SUBST_TRACE([GEM_CXXFLAGS]) +m4trace:configure.ac:137: -1- m4_pattern_allow([^GEM_CXXFLAGS$]) +m4trace:configure.ac:138: -1- AC_SUBST([GEM_LIBS]) +m4trace:configure.ac:138: -1- AC_SUBST_TRACE([GEM_LIBS]) +m4trace:configure.ac:138: -1- m4_pattern_allow([^GEM_LIBS$]) +m4trace:configure.ac:140: -1- AC_SUBST([GEM_EXTERNAL_CPPFLAGS]) +m4trace:configure.ac:140: -1- AC_SUBST_TRACE([GEM_EXTERNAL_CPPFLAGS]) +m4trace:configure.ac:140: -1- m4_pattern_allow([^GEM_EXTERNAL_CPPFLAGS$]) +m4trace:configure.ac:141: -1- AC_SUBST([GEM_EXTERNAL_CFLAGS]) +m4trace:configure.ac:141: -1- AC_SUBST_TRACE([GEM_EXTERNAL_CFLAGS]) +m4trace:configure.ac:141: -1- m4_pattern_allow([^GEM_EXTERNAL_CFLAGS$]) +m4trace:configure.ac:142: -1- AC_SUBST([GEM_EXTERNAL_LIBS]) +m4trace:configure.ac:142: -1- AC_SUBST_TRACE([GEM_EXTERNAL_LIBS]) +m4trace:configure.ac:142: -1- m4_pattern_allow([^GEM_EXTERNAL_LIBS$]) +m4trace:configure.ac:151: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:28: GEM_ARG_ENABLE is expanded from... +configure.ac:151: the top level]) +m4trace:configure.ac:154: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:36: GEM_ARG_DISABLE is expanded from... +configure.ac:154: the top level]) +m4trace:configure.ac:155: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:28: GEM_ARG_ENABLE is expanded from... +configure.ac:155: the top level]) +m4trace:configure.ac:156: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:36: GEM_ARG_DISABLE is expanded from... +configure.ac:156: the top level]) +m4trace:configure.ac:158: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:28: GEM_ARG_ENABLE is expanded from... +configure.ac:158: the top level]) +m4trace:configure.ac:160: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:28: GEM_ARG_ENABLE is expanded from... +configure.ac:160: the top level]) +m4trace:configure.ac:163: -1- AC_CONFIG_FILES([src/Controls/Makefile]) +m4trace:configure.ac:163: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:163: the top level]) +m4trace:configure.ac:163: -1- AM_CONDITIONAL([TARGET_CONTROLS], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:163: -1- AC_SUBST([TARGET_CONTROLS_TRUE]) +m4trace:configure.ac:163: -1- AC_SUBST_TRACE([TARGET_CONTROLS_TRUE]) +m4trace:configure.ac:163: -1- m4_pattern_allow([^TARGET_CONTROLS_TRUE$]) +m4trace:configure.ac:163: -1- AC_SUBST([TARGET_CONTROLS_FALSE]) +m4trace:configure.ac:163: -1- AC_SUBST_TRACE([TARGET_CONTROLS_FALSE]) +m4trace:configure.ac:163: -1- m4_pattern_allow([^TARGET_CONTROLS_FALSE$]) +m4trace:configure.ac:163: -1- _AM_SUBST_NOTMAKE([TARGET_CONTROLS_TRUE]) +m4trace:configure.ac:163: -1- _AM_SUBST_NOTMAKE([TARGET_CONTROLS_FALSE]) +m4trace:configure.ac:164: -1- AC_CONFIG_FILES([src/Geos/Makefile]) +m4trace:configure.ac:164: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:164: the top level]) +m4trace:configure.ac:164: -1- AM_CONDITIONAL([TARGET_GEOS], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:164: -1- AC_SUBST([TARGET_GEOS_TRUE]) +m4trace:configure.ac:164: -1- AC_SUBST_TRACE([TARGET_GEOS_TRUE]) +m4trace:configure.ac:164: -1- m4_pattern_allow([^TARGET_GEOS_TRUE$]) +m4trace:configure.ac:164: -1- AC_SUBST([TARGET_GEOS_FALSE]) +m4trace:configure.ac:164: -1- AC_SUBST_TRACE([TARGET_GEOS_FALSE]) +m4trace:configure.ac:164: -1- m4_pattern_allow([^TARGET_GEOS_FALSE$]) +m4trace:configure.ac:164: -1- _AM_SUBST_NOTMAKE([TARGET_GEOS_TRUE]) +m4trace:configure.ac:164: -1- _AM_SUBST_NOTMAKE([TARGET_GEOS_FALSE]) +m4trace:configure.ac:165: -1- AC_CONFIG_FILES([src/Manips/Makefile]) +m4trace:configure.ac:165: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:165: the top level]) +m4trace:configure.ac:165: -1- AM_CONDITIONAL([TARGET_MANIPS], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:165: -1- AC_SUBST([TARGET_MANIPS_TRUE]) +m4trace:configure.ac:165: -1- AC_SUBST_TRACE([TARGET_MANIPS_TRUE]) +m4trace:configure.ac:165: -1- m4_pattern_allow([^TARGET_MANIPS_TRUE$]) +m4trace:configure.ac:165: -1- AC_SUBST([TARGET_MANIPS_FALSE]) +m4trace:configure.ac:165: -1- AC_SUBST_TRACE([TARGET_MANIPS_FALSE]) +m4trace:configure.ac:165: -1- m4_pattern_allow([^TARGET_MANIPS_FALSE$]) +m4trace:configure.ac:165: -1- _AM_SUBST_NOTMAKE([TARGET_MANIPS_TRUE]) +m4trace:configure.ac:165: -1- _AM_SUBST_NOTMAKE([TARGET_MANIPS_FALSE]) +m4trace:configure.ac:166: -1- AC_CONFIG_FILES([src/Nongeos/Makefile]) +m4trace:configure.ac:166: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:166: the top level]) +m4trace:configure.ac:166: -1- AM_CONDITIONAL([TARGET_NONGEOS], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:166: -1- AC_SUBST([TARGET_NONGEOS_TRUE]) +m4trace:configure.ac:166: -1- AC_SUBST_TRACE([TARGET_NONGEOS_TRUE]) +m4trace:configure.ac:166: -1- m4_pattern_allow([^TARGET_NONGEOS_TRUE$]) +m4trace:configure.ac:166: -1- AC_SUBST([TARGET_NONGEOS_FALSE]) +m4trace:configure.ac:166: -1- AC_SUBST_TRACE([TARGET_NONGEOS_FALSE]) +m4trace:configure.ac:166: -1- m4_pattern_allow([^TARGET_NONGEOS_FALSE$]) +m4trace:configure.ac:166: -1- _AM_SUBST_NOTMAKE([TARGET_NONGEOS_TRUE]) +m4trace:configure.ac:166: -1- _AM_SUBST_NOTMAKE([TARGET_NONGEOS_FALSE]) +m4trace:configure.ac:167: -1- AC_CONFIG_FILES([src/Particles/Makefile]) +m4trace:configure.ac:167: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:167: the top level]) +m4trace:configure.ac:167: -1- AM_CONDITIONAL([TARGET_PARTICLES], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:167: -1- AC_SUBST([TARGET_PARTICLES_TRUE]) +m4trace:configure.ac:167: -1- AC_SUBST_TRACE([TARGET_PARTICLES_TRUE]) +m4trace:configure.ac:167: -1- m4_pattern_allow([^TARGET_PARTICLES_TRUE$]) +m4trace:configure.ac:167: -1- AC_SUBST([TARGET_PARTICLES_FALSE]) +m4trace:configure.ac:167: -1- AC_SUBST_TRACE([TARGET_PARTICLES_FALSE]) +m4trace:configure.ac:167: -1- m4_pattern_allow([^TARGET_PARTICLES_FALSE$]) +m4trace:configure.ac:167: -1- _AM_SUBST_NOTMAKE([TARGET_PARTICLES_TRUE]) +m4trace:configure.ac:167: -1- _AM_SUBST_NOTMAKE([TARGET_PARTICLES_FALSE]) +m4trace:configure.ac:168: -1- AC_CONFIG_FILES([src/Pixes/Makefile]) +m4trace:configure.ac:168: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:168: the top level]) +m4trace:configure.ac:168: -1- AM_CONDITIONAL([TARGET_PIXES], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:168: -1- AC_SUBST([TARGET_PIXES_TRUE]) +m4trace:configure.ac:168: -1- AC_SUBST_TRACE([TARGET_PIXES_TRUE]) +m4trace:configure.ac:168: -1- m4_pattern_allow([^TARGET_PIXES_TRUE$]) +m4trace:configure.ac:168: -1- AC_SUBST([TARGET_PIXES_FALSE]) +m4trace:configure.ac:168: -1- AC_SUBST_TRACE([TARGET_PIXES_FALSE]) +m4trace:configure.ac:168: -1- m4_pattern_allow([^TARGET_PIXES_FALSE$]) +m4trace:configure.ac:168: -1- _AM_SUBST_NOTMAKE([TARGET_PIXES_TRUE]) +m4trace:configure.ac:168: -1- _AM_SUBST_NOTMAKE([TARGET_PIXES_FALSE]) +m4trace:configure.ac:169: -1- AC_CONFIG_FILES([src/openGL/Makefile]) +m4trace:configure.ac:169: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:169: the top level]) +m4trace:configure.ac:169: -1- AM_CONDITIONAL([TARGET_OPENGL], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:169: -1- AC_SUBST([TARGET_OPENGL_TRUE]) +m4trace:configure.ac:169: -1- AC_SUBST_TRACE([TARGET_OPENGL_TRUE]) +m4trace:configure.ac:169: -1- m4_pattern_allow([^TARGET_OPENGL_TRUE$]) +m4trace:configure.ac:169: -1- AC_SUBST([TARGET_OPENGL_FALSE]) +m4trace:configure.ac:169: -1- AC_SUBST_TRACE([TARGET_OPENGL_FALSE]) +m4trace:configure.ac:169: -1- m4_pattern_allow([^TARGET_OPENGL_FALSE$]) +m4trace:configure.ac:169: -1- _AM_SUBST_NOTMAKE([TARGET_OPENGL_TRUE]) +m4trace:configure.ac:169: -1- _AM_SUBST_NOTMAKE([TARGET_OPENGL_FALSE]) +m4trace:configure.ac:170: -1- AC_CONFIG_FILES([src/Vertex/Makefile]) +m4trace:configure.ac:170: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:68: GEM_TARGET_DISABLED is expanded from... +configure.ac:170: the top level]) +m4trace:configure.ac:170: -1- AM_CONDITIONAL([TARGET_VERTEX], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:170: -1- AC_SUBST([TARGET_VERTEX_TRUE]) +m4trace:configure.ac:170: -1- AC_SUBST_TRACE([TARGET_VERTEX_TRUE]) +m4trace:configure.ac:170: -1- m4_pattern_allow([^TARGET_VERTEX_TRUE$]) +m4trace:configure.ac:170: -1- AC_SUBST([TARGET_VERTEX_FALSE]) +m4trace:configure.ac:170: -1- AC_SUBST_TRACE([TARGET_VERTEX_FALSE]) +m4trace:configure.ac:170: -1- m4_pattern_allow([^TARGET_VERTEX_FALSE$]) +m4trace:configure.ac:170: -1- _AM_SUBST_NOTMAKE([TARGET_VERTEX_TRUE]) +m4trace:configure.ac:170: -1- _AM_SUBST_NOTMAKE([TARGET_VERTEX_FALSE]) +m4trace:configure.ac:174: -1- AH_OUTPUT([HAVE_LIBM], [/* Define to 1 if you have the `m\' library (-lm). */ +@%:@undef HAVE_LIBM]) +m4trace:configure.ac:174: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBM]) +m4trace:configure.ac:174: -1- m4_pattern_allow([^HAVE_LIBM$]) +m4trace:configure.ac:175: -1- AH_OUTPUT([HAVE_LIBZ], [/* Define to 1 if you have the `z\' library (-lz). */ +@%:@undef HAVE_LIBZ]) +m4trace:configure.ac:175: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBZ]) +m4trace:configure.ac:175: -1- m4_pattern_allow([^HAVE_LIBZ$]) +m4trace:configure.ac:176: -1- AH_OUTPUT([HAVE_LIBDL], [/* Define to 1 if you have the `dl\' library (-ldl). */ +@%:@undef HAVE_LIBDL]) +m4trace:configure.ac:176: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDL]) +m4trace:configure.ac:176: -1- m4_pattern_allow([^HAVE_LIBDL$]) +m4trace:configure.ac:179: -1- AH_OUTPUT([HAVE_LIBOLDNAMES], [/* Define to 1 if you have the `OLDNAMES\' library (-lOLDNAMES). */ +@%:@undef HAVE_LIBOLDNAMES]) +m4trace:configure.ac:179: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBOLDNAMES]) +m4trace:configure.ac:179: -1- m4_pattern_allow([^HAVE_LIBOLDNAMES$]) +m4trace:configure.ac:180: -1- AH_OUTPUT([HAVE_LIBCOLDNAME], [/* Define to 1 if you have the `coldname\' library (-lcoldname). */ +@%:@undef HAVE_LIBCOLDNAME]) +m4trace:configure.ac:180: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBCOLDNAME]) +m4trace:configure.ac:180: -1- m4_pattern_allow([^HAVE_LIBCOLDNAME$]) +m4trace:configure.ac:182: -1- AH_OUTPUT([HAVE_LIBLIBCPMT], [/* Define to 1 if you have the `libcpmt\' library (-llibcpmt). */ +@%:@undef HAVE_LIBLIBCPMT]) +m4trace:configure.ac:182: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBLIBCPMT]) +m4trace:configure.ac:182: -1- m4_pattern_allow([^HAVE_LIBLIBCPMT$]) +m4trace:configure.ac:184: -1- AH_OUTPUT([HAVE_LIBMSVCRT], [/* Define to 1 if you have the `msvcrt\' library (-lmsvcrt). */ +@%:@undef HAVE_LIBMSVCRT]) +m4trace:configure.ac:184: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMSVCRT]) +m4trace:configure.ac:184: -1- m4_pattern_allow([^HAVE_LIBMSVCRT$]) +m4trace:configure.ac:186: -1- AH_OUTPUT([HAVE_LIBMSVCPRT], [/* Define to 1 if you have the `msvcprt\' library (-lmsvcprt). */ +@%:@undef HAVE_LIBMSVCPRT]) +m4trace:configure.ac:186: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMSVCPRT]) +m4trace:configure.ac:186: -1- m4_pattern_allow([^HAVE_LIBMSVCPRT$]) +m4trace:configure.ac:188: -1- AH_OUTPUT([HAVE_LIBWS2_32], [/* Define to 1 if you have the `ws2_32\' library (-lws2_32). */ +@%:@undef HAVE_LIBWS2_32]) +m4trace:configure.ac:188: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBWS2_32]) +m4trace:configure.ac:188: -1- m4_pattern_allow([^HAVE_LIBWS2_32$]) +m4trace:configure.ac:189: -1- AH_OUTPUT([HAVE_LIBWSOCK32], [/* Define to 1 if you have the `wsock32\' library (-lwsock32). */ +@%:@undef HAVE_LIBWSOCK32]) +m4trace:configure.ac:189: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBWSOCK32]) +m4trace:configure.ac:189: -1- m4_pattern_allow([^HAVE_LIBWSOCK32$]) +m4trace:configure.ac:192: -1- AH_OUTPUT([HAVE_LIBGDI32], [/* Define to 1 if you have the `gdi32\' library (-lgdi32). */ +@%:@undef HAVE_LIBGDI32]) +m4trace:configure.ac:192: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBGDI32]) +m4trace:configure.ac:192: -1- m4_pattern_allow([^HAVE_LIBGDI32$]) +m4trace:configure.ac:203: -1- AC_SUBST([XMKMF]) +m4trace:configure.ac:203: -1- AC_SUBST_TRACE([XMKMF]) +m4trace:configure.ac:203: -1- m4_pattern_allow([^XMKMF$]) +m4trace:configure.ac:204: -1- AC_DEFINE_TRACE_LITERAL([X_DISPLAY_MISSING]) +m4trace:configure.ac:204: -1- m4_pattern_allow([^X_DISPLAY_MISSING$]) +m4trace:configure.ac:204: -1- AH_OUTPUT([X_DISPLAY_MISSING], [/* Define to 1 if the X Window System is missing or not being used. */ +@%:@undef X_DISPLAY_MISSING]) +m4trace:configure.ac:204: -1- AC_SUBST([X_CFLAGS]) +m4trace:configure.ac:204: -1- AC_SUBST_TRACE([X_CFLAGS]) +m4trace:configure.ac:204: -1- m4_pattern_allow([^X_CFLAGS$]) +m4trace:configure.ac:204: -1- AC_SUBST([X_PRE_LIBS]) +m4trace:configure.ac:204: -1- AC_SUBST_TRACE([X_PRE_LIBS]) +m4trace:configure.ac:204: -1- m4_pattern_allow([^X_PRE_LIBS$]) +m4trace:configure.ac:204: -1- AC_SUBST([X_LIBS]) +m4trace:configure.ac:204: -1- AC_SUBST_TRACE([X_LIBS]) +m4trace:configure.ac:204: -1- m4_pattern_allow([^X_LIBS$]) +m4trace:configure.ac:204: -1- AC_SUBST([X_EXTRA_LIBS]) +m4trace:configure.ac:204: -1- AC_SUBST_TRACE([X_EXTRA_LIBS]) +m4trace:configure.ac:204: -1- m4_pattern_allow([^X_EXTRA_LIBS$]) +m4trace:configure.ac:209: -1- AH_OUTPUT([HAVE_LIBXXF86VM], [/* Define to 1 if you have the `Xxf86vm\' library (-lXxf86vm). */ +@%:@undef HAVE_LIBXXF86VM]) +m4trace:configure.ac:209: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBXXF86VM]) +m4trace:configure.ac:209: -1- m4_pattern_allow([^HAVE_LIBXXF86VM$]) +m4trace:configure.ac:212: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete. +You should run autoupdate.], [../../lib/autoconf/lang.m4:125: AC_LANG_SAVE is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/ax_check_gl.m4:52: AX_CHECK_GL is expanded from... +m4/iem_opengl.m4:42: IEM_CHECK_GL is expanded from... +configure.ac:212: the top level]) +m4trace:configure.ac:212: -1- _m4_warn([obsolete], [The macro `AC_LANG_C' is obsolete. +You should run autoupdate.], [../../lib/autoconf/c.m4:72: AC_LANG_C is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/ax_check_gl.m4:52: AX_CHECK_GL is expanded from... +m4/iem_opengl.m4:42: IEM_CHECK_GL is expanded from... +configure.ac:212: the top level]) +m4trace:configure.ac:212: -1- AC_SUBST([ax_pthread_config]) +m4trace:configure.ac:212: -1- AC_SUBST_TRACE([ax_pthread_config]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^ax_pthread_config$]) +m4trace:configure.ac:212: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/ax_check_gl.m4:52: AX_CHECK_GL is expanded from... +m4/iem_opengl.m4:42: IEM_CHECK_GL is expanded from... +configure.ac:212: the top level]) +m4trace:configure.ac:212: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/ax_check_gl.m4:52: AX_CHECK_GL is expanded from... +m4/iem_opengl.m4:42: IEM_CHECK_GL is expanded from... +configure.ac:212: the top level]) +m4trace:configure.ac:212: -1- AC_DEFINE_TRACE_LITERAL([PTHREAD_CREATE_JOINABLE]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^PTHREAD_CREATE_JOINABLE$]) +m4trace:configure.ac:212: -1- AH_OUTPUT([PTHREAD_CREATE_JOINABLE], [/* Define to necessary symbol if this constant uses a non-standard name on + your system. */ +@%:@undef PTHREAD_CREATE_JOINABLE]) +m4trace:configure.ac:212: -1- AC_SUBST([PTHREAD_CC]) +m4trace:configure.ac:212: -1- AC_SUBST_TRACE([PTHREAD_CC]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:212: -1- AC_SUBST([PTHREAD_LIBS]) +m4trace:configure.ac:212: -1- AC_SUBST_TRACE([PTHREAD_LIBS]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^PTHREAD_LIBS$]) +m4trace:configure.ac:212: -1- AC_SUBST([PTHREAD_CFLAGS]) +m4trace:configure.ac:212: -1- AC_SUBST_TRACE([PTHREAD_CFLAGS]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^PTHREAD_CFLAGS$]) +m4trace:configure.ac:212: -1- AC_SUBST([PTHREAD_CC]) +m4trace:configure.ac:212: -1- AC_SUBST_TRACE([PTHREAD_CC]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:212: -2- AC_DEFINE_TRACE_LITERAL([HAVE_PTHREADS]) +m4trace:configure.ac:212: -2- m4_pattern_allow([^HAVE_PTHREADS$]) +m4trace:configure.ac:212: -2- AH_OUTPUT([HAVE_PTHREADS], [/* Define if you have POSIX threads libraries and header files. */ +@%:@undef HAVE_PTHREADS]) +m4trace:configure.ac:212: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete. +You should run autoupdate.], [../../lib/autoconf/lang.m4:134: AC_LANG_RESTORE is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/ax_check_gl.m4:52: AX_CHECK_GL is expanded from... +m4/iem_opengl.m4:42: IEM_CHECK_GL is expanded from... +configure.ac:212: the top level]) +m4trace:configure.ac:212: -1- AH_OUTPUT([HAVE_GL_GL_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_GL_GL_H]) +m4trace:configure.ac:212: -1- AH_OUTPUT([HAVE_OPENGL_GL_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_OPENGL_GL_H]) +m4trace:configure.ac:212: -1- AH_OUTPUT([HAVE_WINDOWS_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_WINDOWS_H]) +m4trace:configure.ac:212: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WINDOWS_H]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^HAVE_WINDOWS_H$]) +m4trace:configure.ac:212: -1- AC_SUBST([GL_CFLAGS]) +m4trace:configure.ac:212: -1- AC_SUBST_TRACE([GL_CFLAGS]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^GL_CFLAGS$]) +m4trace:configure.ac:212: -1- AC_SUBST([GL_LIBS]) +m4trace:configure.ac:212: -1- AC_SUBST_TRACE([GL_LIBS]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^GL_LIBS$]) +m4trace:configure.ac:212: -1- AM_CONDITIONAL([HAVE_GL], [test "x$no_gl" != "xyes"]) +m4trace:configure.ac:212: -1- AC_SUBST([HAVE_GL_TRUE]) +m4trace:configure.ac:212: -1- AC_SUBST_TRACE([HAVE_GL_TRUE]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^HAVE_GL_TRUE$]) +m4trace:configure.ac:212: -1- AC_SUBST([HAVE_GL_FALSE]) +m4trace:configure.ac:212: -1- AC_SUBST_TRACE([HAVE_GL_FALSE]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^HAVE_GL_FALSE$]) +m4trace:configure.ac:212: -1- _AM_SUBST_NOTMAKE([HAVE_GL_TRUE]) +m4trace:configure.ac:212: -1- _AM_SUBST_NOTMAKE([HAVE_GL_FALSE]) +m4trace:configure.ac:213: -1- AH_OUTPUT([HAVE_GL_GLU_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_GL_GLU_H]) +m4trace:configure.ac:213: -1- AH_OUTPUT([HAVE_OPENGL_GLU_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_OPENGL_GLU_H]) +m4trace:configure.ac:213: -1- AC_SUBST([GLU_CFLAGS]) +m4trace:configure.ac:213: -1- AC_SUBST_TRACE([GLU_CFLAGS]) +m4trace:configure.ac:213: -1- m4_pattern_allow([^GLU_CFLAGS$]) +m4trace:configure.ac:213: -1- AC_SUBST([GLU_LIBS]) +m4trace:configure.ac:213: -1- AC_SUBST_TRACE([GLU_LIBS]) +m4trace:configure.ac:213: -1- m4_pattern_allow([^GLU_LIBS$]) +m4trace:configure.ac:213: -1- AC_DEFINE_TRACE_LITERAL([HAVE_VARARGS_GLU_TESSCB]) +m4trace:configure.ac:213: -1- m4_pattern_allow([^HAVE_VARARGS_GLU_TESSCB$]) +m4trace:configure.ac:213: -1- AH_OUTPUT([HAVE_VARARGS_GLU_TESSCB], [/* Use nonstandard varargs form for the GLU tesselator callback */ +@%:@undef HAVE_VARARGS_GLU_TESSCB]) +m4trace:configure.ac:213: -1- AM_CONDITIONAL([HAVE_GLU], [test "x$no_glu" != "xyes"]) +m4trace:configure.ac:213: -1- AC_SUBST([HAVE_GLU_TRUE]) +m4trace:configure.ac:213: -1- AC_SUBST_TRACE([HAVE_GLU_TRUE]) +m4trace:configure.ac:213: -1- m4_pattern_allow([^HAVE_GLU_TRUE$]) +m4trace:configure.ac:213: -1- AC_SUBST([HAVE_GLU_FALSE]) +m4trace:configure.ac:213: -1- AC_SUBST_TRACE([HAVE_GLU_FALSE]) +m4trace:configure.ac:213: -1- m4_pattern_allow([^HAVE_GLU_FALSE$]) +m4trace:configure.ac:213: -1- _AM_SUBST_NOTMAKE([HAVE_GLU_TRUE]) +m4trace:configure.ac:213: -1- _AM_SUBST_NOTMAKE([HAVE_GLU_FALSE]) +m4trace:configure.ac:214: -1- AH_OUTPUT([HAVE_GL_GLUT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_GL_GLUT_H]) +m4trace:configure.ac:214: -1- AH_OUTPUT([HAVE_GLUT_GLUT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_GLUT_GLUT_H]) +m4trace:configure.ac:214: -1- AC_SUBST([GLUT_CFLAGS]) +m4trace:configure.ac:214: -1- AC_SUBST_TRACE([GLUT_CFLAGS]) +m4trace:configure.ac:214: -1- m4_pattern_allow([^GLUT_CFLAGS$]) +m4trace:configure.ac:214: -1- AC_SUBST([GLUT_LIBS]) +m4trace:configure.ac:214: -1- AC_SUBST_TRACE([GLUT_LIBS]) +m4trace:configure.ac:214: -1- m4_pattern_allow([^GLUT_LIBS$]) +m4trace:configure.ac:214: -1- AM_CONDITIONAL([HAVE_GLUT], [test "x$no_glut" != "xyes"]) +m4trace:configure.ac:214: -1- AC_SUBST([HAVE_GLUT_TRUE]) +m4trace:configure.ac:214: -1- AC_SUBST_TRACE([HAVE_GLUT_TRUE]) +m4trace:configure.ac:214: -1- m4_pattern_allow([^HAVE_GLUT_TRUE$]) +m4trace:configure.ac:214: -1- AC_SUBST([HAVE_GLUT_FALSE]) +m4trace:configure.ac:214: -1- AC_SUBST_TRACE([HAVE_GLUT_FALSE]) +m4trace:configure.ac:214: -1- m4_pattern_allow([^HAVE_GLUT_FALSE$]) +m4trace:configure.ac:214: -1- _AM_SUBST_NOTMAKE([HAVE_GLUT_TRUE]) +m4trace:configure.ac:214: -1- _AM_SUBST_NOTMAKE([HAVE_GLUT_FALSE]) +m4trace:configure.ac:215: -1- AH_OUTPUT([HAVE_GL_GLX_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_GL_GLX_H]) +m4trace:configure.ac:215: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GL_GLX_H]) +m4trace:configure.ac:215: -1- m4_pattern_allow([^HAVE_GL_GLX_H$]) +m4trace:configure.ac:215: -1- AM_CONDITIONAL([HAVE_GLX], [test "x$no_glx" != "xyes"]) +m4trace:configure.ac:215: -1- AC_SUBST([HAVE_GLX_TRUE]) +m4trace:configure.ac:215: -1- AC_SUBST_TRACE([HAVE_GLX_TRUE]) +m4trace:configure.ac:215: -1- m4_pattern_allow([^HAVE_GLX_TRUE$]) +m4trace:configure.ac:215: -1- AC_SUBST([HAVE_GLX_FALSE]) +m4trace:configure.ac:215: -1- AC_SUBST_TRACE([HAVE_GLX_FALSE]) +m4trace:configure.ac:215: -1- m4_pattern_allow([^HAVE_GLX_FALSE$]) +m4trace:configure.ac:215: -1- _AM_SUBST_NOTMAKE([HAVE_GLX_TRUE]) +m4trace:configure.ac:215: -1- _AM_SUBST_NOTMAKE([HAVE_GLX_FALSE]) +m4trace:configure.ac:215: -1- AC_SUBST([GLX_CFLAGS]) +m4trace:configure.ac:215: -1- AC_SUBST_TRACE([GLX_CFLAGS]) +m4trace:configure.ac:215: -1- m4_pattern_allow([^GLX_CFLAGS$]) +m4trace:configure.ac:215: -1- AC_SUBST([GLX_LIBS]) +m4trace:configure.ac:215: -1- AC_SUBST_TRACE([GLX_LIBS]) +m4trace:configure.ac:215: -1- m4_pattern_allow([^GLX_LIBS$]) +m4trace:configure.ac:216: -1- AC_SUBST([GEM_FRAMEWORK_AGL]) +m4trace:configure.ac:216: -1- AC_SUBST_TRACE([GEM_FRAMEWORK_AGL]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^GEM_FRAMEWORK_AGL$]) +m4trace:configure.ac:216: -1- AC_DEFINE_TRACE_LITERAL([HAVE_AGL]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_AGL$]) +m4trace:configure.ac:216: -1- AH_OUTPUT([HAVE_AGL], [/* framework AGL */ +@%:@undef HAVE_AGL]) +m4trace:configure.ac:216: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GEM_FRAMEWORK_AGL]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_GEM_FRAMEWORK_AGL$]) +m4trace:configure.ac:216: -1- AH_OUTPUT([HAVE_GEM_FRAMEWORK_AGL], [/* framework AGL */ +@%:@undef HAVE_GEM_FRAMEWORK_AGL]) +m4trace:configure.ac:216: -1- AM_CONDITIONAL([HAVE_FRAMEWORK_AGL], [test "x$gem_check_ldflags_success" = "xyes"]) +m4trace:configure.ac:216: -1- AC_SUBST([HAVE_FRAMEWORK_AGL_TRUE]) +m4trace:configure.ac:216: -1- AC_SUBST_TRACE([HAVE_FRAMEWORK_AGL_TRUE]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_FRAMEWORK_AGL_TRUE$]) +m4trace:configure.ac:216: -1- AC_SUBST([HAVE_FRAMEWORK_AGL_FALSE]) +m4trace:configure.ac:216: -1- AC_SUBST_TRACE([HAVE_FRAMEWORK_AGL_FALSE]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_FRAMEWORK_AGL_FALSE$]) +m4trace:configure.ac:216: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_AGL_TRUE]) +m4trace:configure.ac:216: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_AGL_FALSE]) +m4trace:configure.ac:216: -1- AC_SUBST([AGL_CFLAGS]) +m4trace:configure.ac:216: -1- AC_SUBST_TRACE([AGL_CFLAGS]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^AGL_CFLAGS$]) +m4trace:configure.ac:216: -1- AC_SUBST([AGL_LIBS]) +m4trace:configure.ac:216: -1- AC_SUBST_TRACE([AGL_LIBS]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^AGL_LIBS$]) +m4trace:configure.ac:216: -1- AM_CONDITIONAL([HAVE_AGL], [test "x$no_agl" != "xyes"]) +m4trace:configure.ac:216: -1- AC_SUBST([HAVE_AGL_TRUE]) +m4trace:configure.ac:216: -1- AC_SUBST_TRACE([HAVE_AGL_TRUE]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_AGL_TRUE$]) +m4trace:configure.ac:216: -1- AC_SUBST([HAVE_AGL_FALSE]) +m4trace:configure.ac:216: -1- AC_SUBST_TRACE([HAVE_AGL_FALSE]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_AGL_FALSE$]) +m4trace:configure.ac:216: -1- _AM_SUBST_NOTMAKE([HAVE_AGL_TRUE]) +m4trace:configure.ac:216: -1- _AM_SUBST_NOTMAKE([HAVE_AGL_FALSE]) +m4trace:configure.ac:219: -1- AC_SUBST([GEM_LIB_GLEW_CFLAGS]) +m4trace:configure.ac:219: -1- AC_SUBST_TRACE([GEM_LIB_GLEW_CFLAGS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^GEM_LIB_GLEW_CFLAGS$]) +m4trace:configure.ac:219: -1- AC_SUBST([GEM_LIB_GLEW_LIBS]) +m4trace:configure.ac:219: -1- AC_SUBST_TRACE([GEM_LIB_GLEW_LIBS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^GEM_LIB_GLEW_LIBS$]) +m4trace:configure.ac:219: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:219: the top level]) +m4trace:configure.ac:219: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:219: the top level]) +m4trace:configure.ac:219: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:219: the top level]) +m4trace:configure.ac:219: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_CFLAGS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_LIBS]) +m4trace:configure.ac:219: -1- AC_SUBST([PKG_CONFIG]) +m4trace:configure.ac:219: -1- AC_SUBST_TRACE([PKG_CONFIG]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:219: -1- AC_SUBST([PKG_CONFIG]) +m4trace:configure.ac:219: -1- AC_SUBST_TRACE([PKG_CONFIG]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_GLEW_CFLAGS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_GLEW_LIBS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_GLEW]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_GLEW_PKG_ERRORS]) +m4trace:configure.ac:219: -1- AC_SUBST([PKG_GLEW_CFLAGS]) +m4trace:configure.ac:219: -1- AC_SUBST_TRACE([PKG_GLEW_CFLAGS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^PKG_GLEW_CFLAGS$]) +m4trace:configure.ac:219: -1- AC_SUBST([PKG_GLEW_LIBS]) +m4trace:configure.ac:219: -1- AC_SUBST_TRACE([PKG_GLEW_LIBS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^PKG_GLEW_LIBS$]) +m4trace:configure.ac:219: -1- AH_OUTPUT([HAVE_LIBGLEW], [/* Define to 1 if you have the `GLEW\' library (-lGLEW). */ +@%:@undef HAVE_LIBGLEW]) +m4trace:configure.ac:219: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBGLEW]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_LIBGLEW$]) +m4trace:configure.ac:219: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBGLEW]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_LIBGLEW$]) +m4trace:configure.ac:219: -1- AH_OUTPUT([HAVE_LIBGLEW], [/* OpenGL Extension Wrangler library */ +@%:@undef HAVE_LIBGLEW]) +m4trace:configure.ac:219: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBGLEW]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_LIBGLEW$]) +m4trace:configure.ac:219: -1- AH_OUTPUT([HAVE_LIBGLEW], [/* OpenGL Extension Wrangler library */ +@%:@undef HAVE_LIBGLEW]) +m4trace:configure.ac:219: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GLEWINIT]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_GLEWINIT$]) +m4trace:configure.ac:219: -1- AH_OUTPUT([HAVE_GLEWINIT], [/* Define to 1 if you have the `glewInit\' function. */ +@%:@undef HAVE_GLEWINIT]) +m4trace:configure.ac:219: -1- AM_CONDITIONAL([HAVE_LIB_GLEW], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:219: -1- AC_SUBST([HAVE_LIB_GLEW_TRUE]) +m4trace:configure.ac:219: -1- AC_SUBST_TRACE([HAVE_LIB_GLEW_TRUE]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_LIB_GLEW_TRUE$]) +m4trace:configure.ac:219: -1- AC_SUBST([HAVE_LIB_GLEW_FALSE]) +m4trace:configure.ac:219: -1- AC_SUBST_TRACE([HAVE_LIB_GLEW_FALSE]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_LIB_GLEW_FALSE$]) +m4trace:configure.ac:219: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_GLEW_TRUE]) +m4trace:configure.ac:219: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_GLEW_FALSE]) +m4trace:configure.ac:224: -1- AC_SUBST([GEM_LIB_SDL_CFLAGS]) +m4trace:configure.ac:224: -1- AC_SUBST_TRACE([GEM_LIB_SDL_CFLAGS]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^GEM_LIB_SDL_CFLAGS$]) +m4trace:configure.ac:224: -1- AC_SUBST([GEM_LIB_SDL_LIBS]) +m4trace:configure.ac:224: -1- AC_SUBST_TRACE([GEM_LIB_SDL_LIBS]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^GEM_LIB_SDL_LIBS$]) +m4trace:configure.ac:224: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:224: the top level]) +m4trace:configure.ac:224: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:224: the top level]) +m4trace:configure.ac:224: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:224: the top level]) +m4trace:configure.ac:224: -1- m4_pattern_allow([PKG_SDL_CFLAGS]) +m4trace:configure.ac:224: -1- m4_pattern_allow([PKG_SDL_LIBS]) +m4trace:configure.ac:224: -1- m4_pattern_allow([PKG_SDL]) +m4trace:configure.ac:224: -1- m4_pattern_allow([PKG_SDL_PKG_ERRORS]) +m4trace:configure.ac:224: -1- AC_SUBST([PKG_SDL_CFLAGS]) +m4trace:configure.ac:224: -1- AC_SUBST_TRACE([PKG_SDL_CFLAGS]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^PKG_SDL_CFLAGS$]) +m4trace:configure.ac:224: -1- AC_SUBST([PKG_SDL_LIBS]) +m4trace:configure.ac:224: -1- AC_SUBST_TRACE([PKG_SDL_LIBS]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^PKG_SDL_LIBS$]) +m4trace:configure.ac:224: -1- AH_OUTPUT([HAVE_LIBSDL], [/* Define to 1 if you have the `SDL\' library (-lSDL). */ +@%:@undef HAVE_LIBSDL]) +m4trace:configure.ac:224: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSDL]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_LIBSDL$]) +m4trace:configure.ac:224: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSDL]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_LIBSDL$]) +m4trace:configure.ac:224: -1- AH_OUTPUT([HAVE_LIBSDL], [/* SDL windowing */ +@%:@undef HAVE_LIBSDL]) +m4trace:configure.ac:224: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSDL]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_LIBSDL$]) +m4trace:configure.ac:224: -1- AH_OUTPUT([HAVE_LIBSDL], [/* SDL windowing */ +@%:@undef HAVE_LIBSDL]) +m4trace:configure.ac:224: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SDL_QUIT]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_SDL_QUIT$]) +m4trace:configure.ac:224: -1- AH_OUTPUT([HAVE_SDL_QUIT], [/* Define to 1 if you have the `SDL_Quit\' function. */ +@%:@undef HAVE_SDL_QUIT]) +m4trace:configure.ac:224: -1- AM_CONDITIONAL([HAVE_LIB_SDL], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:224: -1- AC_SUBST([HAVE_LIB_SDL_TRUE]) +m4trace:configure.ac:224: -1- AC_SUBST_TRACE([HAVE_LIB_SDL_TRUE]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_LIB_SDL_TRUE$]) +m4trace:configure.ac:224: -1- AC_SUBST([HAVE_LIB_SDL_FALSE]) +m4trace:configure.ac:224: -1- AC_SUBST_TRACE([HAVE_LIB_SDL_FALSE]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_LIB_SDL_FALSE$]) +m4trace:configure.ac:224: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_SDL_TRUE]) +m4trace:configure.ac:224: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_SDL_FALSE]) +m4trace:configure.ac:237: -1- AC_SUBST([GEM_FRAMEWORK_COCOA]) +m4trace:configure.ac:237: -1- AC_SUBST_TRACE([GEM_FRAMEWORK_COCOA]) +m4trace:configure.ac:237: -1- m4_pattern_allow([^GEM_FRAMEWORK_COCOA$]) +m4trace:configure.ac:237: -1- AC_DEFINE_TRACE_LITERAL([HAVE_COCOA]) +m4trace:configure.ac:237: -1- m4_pattern_allow([^HAVE_COCOA$]) +m4trace:configure.ac:237: -1- AH_OUTPUT([HAVE_COCOA], [/* framework Cocoa */ +@%:@undef HAVE_COCOA]) +m4trace:configure.ac:237: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GEM_FRAMEWORK_COCOA]) +m4trace:configure.ac:237: -1- m4_pattern_allow([^HAVE_GEM_FRAMEWORK_COCOA$]) +m4trace:configure.ac:237: -1- AH_OUTPUT([HAVE_GEM_FRAMEWORK_COCOA], [/* framework Cocoa */ +@%:@undef HAVE_GEM_FRAMEWORK_COCOA]) +m4trace:configure.ac:237: -1- AM_CONDITIONAL([HAVE_FRAMEWORK_COCOA], [test "x$gem_check_ldflags_success" = "xyes"]) +m4trace:configure.ac:237: -1- AC_SUBST([HAVE_FRAMEWORK_COCOA_TRUE]) +m4trace:configure.ac:237: -1- AC_SUBST_TRACE([HAVE_FRAMEWORK_COCOA_TRUE]) +m4trace:configure.ac:237: -1- m4_pattern_allow([^HAVE_FRAMEWORK_COCOA_TRUE$]) +m4trace:configure.ac:237: -1- AC_SUBST([HAVE_FRAMEWORK_COCOA_FALSE]) +m4trace:configure.ac:237: -1- AC_SUBST_TRACE([HAVE_FRAMEWORK_COCOA_FALSE]) +m4trace:configure.ac:237: -1- m4_pattern_allow([^HAVE_FRAMEWORK_COCOA_FALSE$]) +m4trace:configure.ac:237: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_COCOA_TRUE]) +m4trace:configure.ac:237: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_COCOA_FALSE]) +m4trace:configure.ac:240: -1- AC_SUBST([GEM_FRAMEWORK_CARBON]) +m4trace:configure.ac:240: -1- AC_SUBST_TRACE([GEM_FRAMEWORK_CARBON]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^GEM_FRAMEWORK_CARBON$]) +m4trace:configure.ac:240: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CARBON]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_CARBON$]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_CARBON], [/* framework Carbon */ +@%:@undef HAVE_CARBON]) +m4trace:configure.ac:240: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GEM_FRAMEWORK_CARBON]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_GEM_FRAMEWORK_CARBON$]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_GEM_FRAMEWORK_CARBON], [/* framework Carbon */ +@%:@undef HAVE_GEM_FRAMEWORK_CARBON]) +m4trace:configure.ac:240: -1- AM_CONDITIONAL([HAVE_FRAMEWORK_CARBON], [test "x$gem_check_ldflags_success" = "xyes"]) +m4trace:configure.ac:240: -1- AC_SUBST([HAVE_FRAMEWORK_CARBON_TRUE]) +m4trace:configure.ac:240: -1- AC_SUBST_TRACE([HAVE_FRAMEWORK_CARBON_TRUE]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_FRAMEWORK_CARBON_TRUE$]) +m4trace:configure.ac:240: -1- AC_SUBST([HAVE_FRAMEWORK_CARBON_FALSE]) +m4trace:configure.ac:240: -1- AC_SUBST_TRACE([HAVE_FRAMEWORK_CARBON_FALSE]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_FRAMEWORK_CARBON_FALSE$]) +m4trace:configure.ac:240: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_CARBON_TRUE]) +m4trace:configure.ac:240: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_CARBON_FALSE]) +m4trace:configure.ac:243: -1- AC_SUBST([GEM_FRAMEWORK_QUICKTIME]) +m4trace:configure.ac:243: -1- AC_SUBST_TRACE([GEM_FRAMEWORK_QUICKTIME]) +m4trace:configure.ac:243: -1- m4_pattern_allow([^GEM_FRAMEWORK_QUICKTIME$]) +m4trace:configure.ac:243: -1- AC_DEFINE_TRACE_LITERAL([HAVE_QUICKTIME]) +m4trace:configure.ac:243: -1- m4_pattern_allow([^HAVE_QUICKTIME$]) +m4trace:configure.ac:243: -1- AH_OUTPUT([HAVE_QUICKTIME], [/* framework QuickTime */ +@%:@undef HAVE_QUICKTIME]) +m4trace:configure.ac:243: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GEM_FRAMEWORK_QUICKTIME]) +m4trace:configure.ac:243: -1- m4_pattern_allow([^HAVE_GEM_FRAMEWORK_QUICKTIME$]) +m4trace:configure.ac:243: -1- AH_OUTPUT([HAVE_GEM_FRAMEWORK_QUICKTIME], [/* framework QuickTime */ +@%:@undef HAVE_GEM_FRAMEWORK_QUICKTIME]) +m4trace:configure.ac:243: -1- AM_CONDITIONAL([HAVE_FRAMEWORK_QUICKTIME], [test "x$gem_check_ldflags_success" = "xyes"]) +m4trace:configure.ac:243: -1- AC_SUBST([HAVE_FRAMEWORK_QUICKTIME_TRUE]) +m4trace:configure.ac:243: -1- AC_SUBST_TRACE([HAVE_FRAMEWORK_QUICKTIME_TRUE]) +m4trace:configure.ac:243: -1- m4_pattern_allow([^HAVE_FRAMEWORK_QUICKTIME_TRUE$]) +m4trace:configure.ac:243: -1- AC_SUBST([HAVE_FRAMEWORK_QUICKTIME_FALSE]) +m4trace:configure.ac:243: -1- AC_SUBST_TRACE([HAVE_FRAMEWORK_QUICKTIME_FALSE]) +m4trace:configure.ac:243: -1- m4_pattern_allow([^HAVE_FRAMEWORK_QUICKTIME_FALSE$]) +m4trace:configure.ac:243: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_QUICKTIME_TRUE]) +m4trace:configure.ac:243: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_QUICKTIME_FALSE]) +m4trace:configure.ac:247: -1- AM_CONDITIONAL([VIDEODARWIN], [test "x${have_carbon_framework}" = "xyes" && test "x${have_quicktime_framework}" = "xyes"]) +m4trace:configure.ac:247: -1- AC_SUBST([VIDEODARWIN_TRUE]) +m4trace:configure.ac:247: -1- AC_SUBST_TRACE([VIDEODARWIN_TRUE]) +m4trace:configure.ac:247: -1- m4_pattern_allow([^VIDEODARWIN_TRUE$]) +m4trace:configure.ac:247: -1- AC_SUBST([VIDEODARWIN_FALSE]) +m4trace:configure.ac:247: -1- AC_SUBST_TRACE([VIDEODARWIN_FALSE]) +m4trace:configure.ac:247: -1- m4_pattern_allow([^VIDEODARWIN_FALSE$]) +m4trace:configure.ac:247: -1- _AM_SUBST_NOTMAKE([VIDEODARWIN_TRUE]) +m4trace:configure.ac:247: -1- _AM_SUBST_NOTMAKE([VIDEODARWIN_FALSE]) +m4trace:configure.ac:260: -2- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMAGICKPLUSPLUS]) +m4trace:configure.ac:260: -2- m4_pattern_allow([^HAVE_LIBMAGICKPLUSPLUS$]) +m4trace:configure.ac:260: -2- AH_OUTPUT([HAVE_LIBMAGICKPLUSPLUS], [/* image loading/saving with ImageMagick++ */ +@%:@undef HAVE_LIBMAGICKPLUSPLUS]) +m4trace:configure.ac:257: -1- AC_SUBST([GEM_LIB_IMAGEMAGICK___CFLAGS]) +m4trace:configure.ac:257: -1- AC_SUBST_TRACE([GEM_LIB_IMAGEMAGICK___CFLAGS]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^GEM_LIB_IMAGEMAGICK___CFLAGS$]) +m4trace:configure.ac:257: -1- AC_SUBST([GEM_LIB_IMAGEMAGICK___LIBS]) +m4trace:configure.ac:257: -1- AC_SUBST_TRACE([GEM_LIB_IMAGEMAGICK___LIBS]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^GEM_LIB_IMAGEMAGICK___LIBS$]) +m4trace:configure.ac:257: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:257: the top level]) +m4trace:configure.ac:257: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:257: the top level]) +m4trace:configure.ac:257: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:257: the top level]) +m4trace:configure.ac:257: -1- m4_pattern_allow([PKG_IMAGEMAGICK___CFLAGS]) +m4trace:configure.ac:257: -1- m4_pattern_allow([PKG_IMAGEMAGICK___LIBS]) +m4trace:configure.ac:257: -1- m4_pattern_allow([PKG_IMAGEMAGICK__]) +m4trace:configure.ac:257: -1- m4_pattern_allow([PKG_IMAGEMAGICK___PKG_ERRORS]) +m4trace:configure.ac:257: -1- AC_SUBST([PKG_IMAGEMAGICK___CFLAGS]) +m4trace:configure.ac:257: -1- AC_SUBST_TRACE([PKG_IMAGEMAGICK___CFLAGS]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^PKG_IMAGEMAGICK___CFLAGS$]) +m4trace:configure.ac:257: -1- AC_SUBST([PKG_IMAGEMAGICK___LIBS]) +m4trace:configure.ac:257: -1- AC_SUBST_TRACE([PKG_IMAGEMAGICK___LIBS]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^PKG_IMAGEMAGICK___LIBS$]) +m4trace:configure.ac:257: -1- AH_OUTPUT([HAVE_LIBMAGICK__], [/* Define to 1 if you have the `Magick++\' library (-lMagick++). */ +@%:@undef HAVE_LIBMAGICK__]) +m4trace:configure.ac:257: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMAGICK__]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIBMAGICK__$]) +m4trace:configure.ac:257: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBIMAGEMAGICK__]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIBIMAGEMAGICK__$]) +m4trace:configure.ac:257: -1- AH_OUTPUT([HAVE_LIBIMAGEMAGICK__], [/* image loader */ +@%:@undef HAVE_LIBIMAGEMAGICK__]) +m4trace:configure.ac:257: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMAGICK__]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIBMAGICK__$]) +m4trace:configure.ac:257: -1- AH_OUTPUT([HAVE_LIBMAGICK__], [/* image loader */ +@%:@undef HAVE_LIBMAGICK__]) +m4trace:configure.ac:257: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MAIN]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:257: -1- AH_OUTPUT([HAVE_MAIN], [/* Define to 1 if you have the `main\' function. */ +@%:@undef HAVE_MAIN]) +m4trace:configure.ac:257: -1- AM_CONDITIONAL([HAVE_LIB_IMAGEMAGICK__], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:257: -1- AC_SUBST([HAVE_LIB_IMAGEMAGICK___TRUE]) +m4trace:configure.ac:257: -1- AC_SUBST_TRACE([HAVE_LIB_IMAGEMAGICK___TRUE]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIB_IMAGEMAGICK___TRUE$]) +m4trace:configure.ac:257: -1- AC_SUBST([HAVE_LIB_IMAGEMAGICK___FALSE]) +m4trace:configure.ac:257: -1- AC_SUBST_TRACE([HAVE_LIB_IMAGEMAGICK___FALSE]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIB_IMAGEMAGICK___FALSE$]) +m4trace:configure.ac:257: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_IMAGEMAGICK___TRUE]) +m4trace:configure.ac:257: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_IMAGEMAGICK___FALSE]) +m4trace:configure.ac:266: -2- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMAGICK]) +m4trace:configure.ac:266: -2- m4_pattern_allow([^HAVE_LIBMAGICK$]) +m4trace:configure.ac:266: -2- AH_OUTPUT([HAVE_LIBMAGICK], [/* image loading/saving with ImageMagick (Core) */ +@%:@undef HAVE_LIBMAGICK]) +m4trace:configure.ac:263: -1- AC_SUBST([GEM_LIB_MAGICKCORE_CFLAGS]) +m4trace:configure.ac:263: -1- AC_SUBST_TRACE([GEM_LIB_MAGICKCORE_CFLAGS]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^GEM_LIB_MAGICKCORE_CFLAGS$]) +m4trace:configure.ac:263: -1- AC_SUBST([GEM_LIB_MAGICKCORE_LIBS]) +m4trace:configure.ac:263: -1- AC_SUBST_TRACE([GEM_LIB_MAGICKCORE_LIBS]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^GEM_LIB_MAGICKCORE_LIBS$]) +m4trace:configure.ac:263: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:263: the top level]) +m4trace:configure.ac:263: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:263: the top level]) +m4trace:configure.ac:263: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:263: the top level]) +m4trace:configure.ac:263: -1- m4_pattern_allow([PKG_MAGICKCORE_CFLAGS]) +m4trace:configure.ac:263: -1- m4_pattern_allow([PKG_MAGICKCORE_LIBS]) +m4trace:configure.ac:263: -1- m4_pattern_allow([PKG_MAGICKCORE]) +m4trace:configure.ac:263: -1- m4_pattern_allow([PKG_MAGICKCORE_PKG_ERRORS]) +m4trace:configure.ac:263: -1- AC_SUBST([PKG_MAGICKCORE_CFLAGS]) +m4trace:configure.ac:263: -1- AC_SUBST_TRACE([PKG_MAGICKCORE_CFLAGS]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^PKG_MAGICKCORE_CFLAGS$]) +m4trace:configure.ac:263: -1- AC_SUBST([PKG_MAGICKCORE_LIBS]) +m4trace:configure.ac:263: -1- AC_SUBST_TRACE([PKG_MAGICKCORE_LIBS]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^PKG_MAGICKCORE_LIBS$]) +m4trace:configure.ac:263: -1- AH_OUTPUT([HAVE_LIBMAGICK], [/* Define to 1 if you have the `Magick\' library (-lMagick). */ +@%:@undef HAVE_LIBMAGICK]) +m4trace:configure.ac:263: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMAGICK]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_LIBMAGICK$]) +m4trace:configure.ac:263: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMAGICKCORE]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_LIBMAGICKCORE$]) +m4trace:configure.ac:263: -1- AH_OUTPUT([HAVE_LIBMAGICKCORE], [/* image loader */ +@%:@undef HAVE_LIBMAGICKCORE]) +m4trace:configure.ac:263: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMAGICK]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_LIBMAGICK$]) +m4trace:configure.ac:263: -1- AH_OUTPUT([HAVE_LIBMAGICK], [/* image loader */ +@%:@undef HAVE_LIBMAGICK]) +m4trace:configure.ac:263: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MAIN]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:263: -1- AH_OUTPUT([HAVE_MAIN], [/* Define to 1 if you have the `main\' function. */ +@%:@undef HAVE_MAIN]) +m4trace:configure.ac:263: -1- AM_CONDITIONAL([HAVE_LIB_MAGICKCORE], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:263: -1- AC_SUBST([HAVE_LIB_MAGICKCORE_TRUE]) +m4trace:configure.ac:263: -1- AC_SUBST_TRACE([HAVE_LIB_MAGICKCORE_TRUE]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_LIB_MAGICKCORE_TRUE$]) +m4trace:configure.ac:263: -1- AC_SUBST([HAVE_LIB_MAGICKCORE_FALSE]) +m4trace:configure.ac:263: -1- AC_SUBST_TRACE([HAVE_LIB_MAGICKCORE_FALSE]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_LIB_MAGICKCORE_FALSE$]) +m4trace:configure.ac:263: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_MAGICKCORE_TRUE]) +m4trace:configure.ac:263: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_MAGICKCORE_FALSE]) +m4trace:configure.ac:274: -1- AC_SUBST([GEM_LIB_TIFF_CFLAGS]) +m4trace:configure.ac:274: -1- AC_SUBST_TRACE([GEM_LIB_TIFF_CFLAGS]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^GEM_LIB_TIFF_CFLAGS$]) +m4trace:configure.ac:274: -1- AC_SUBST([GEM_LIB_TIFF_LIBS]) +m4trace:configure.ac:274: -1- AC_SUBST_TRACE([GEM_LIB_TIFF_LIBS]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^GEM_LIB_TIFF_LIBS$]) +m4trace:configure.ac:274: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:274: the top level]) +m4trace:configure.ac:274: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:274: the top level]) +m4trace:configure.ac:274: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:274: the top level]) +m4trace:configure.ac:274: -1- m4_pattern_allow([PKG_TIFF_CFLAGS]) +m4trace:configure.ac:274: -1- m4_pattern_allow([PKG_TIFF_LIBS]) +m4trace:configure.ac:274: -1- m4_pattern_allow([PKG_TIFF]) +m4trace:configure.ac:274: -1- m4_pattern_allow([PKG_TIFF_PKG_ERRORS]) +m4trace:configure.ac:274: -1- AC_SUBST([PKG_TIFF_CFLAGS]) +m4trace:configure.ac:274: -1- AC_SUBST_TRACE([PKG_TIFF_CFLAGS]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^PKG_TIFF_CFLAGS$]) +m4trace:configure.ac:274: -1- AC_SUBST([PKG_TIFF_LIBS]) +m4trace:configure.ac:274: -1- AC_SUBST_TRACE([PKG_TIFF_LIBS]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^PKG_TIFF_LIBS$]) +m4trace:configure.ac:274: -1- AH_OUTPUT([HAVE_LIBTIFF], [/* Define to 1 if you have the `tiff\' library (-ltiff). */ +@%:@undef HAVE_LIBTIFF]) +m4trace:configure.ac:274: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBTIFF]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_LIBTIFF$]) +m4trace:configure.ac:274: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBTIFF]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_LIBTIFF$]) +m4trace:configure.ac:274: -1- AH_OUTPUT([HAVE_LIBTIFF], [/* image loader */ +@%:@undef HAVE_LIBTIFF]) +m4trace:configure.ac:274: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBTIFF]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_LIBTIFF$]) +m4trace:configure.ac:274: -1- AH_OUTPUT([HAVE_LIBTIFF], [/* image loader */ +@%:@undef HAVE_LIBTIFF]) +m4trace:configure.ac:274: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TIFFOPEN]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_TIFFOPEN$]) +m4trace:configure.ac:274: -1- AH_OUTPUT([HAVE_TIFFOPEN], [/* Define to 1 if you have the `TIFFOpen\' function. */ +@%:@undef HAVE_TIFFOPEN]) +m4trace:configure.ac:274: -1- AM_CONDITIONAL([HAVE_LIB_TIFF], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:274: -1- AC_SUBST([HAVE_LIB_TIFF_TRUE]) +m4trace:configure.ac:274: -1- AC_SUBST_TRACE([HAVE_LIB_TIFF_TRUE]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_LIB_TIFF_TRUE$]) +m4trace:configure.ac:274: -1- AC_SUBST([HAVE_LIB_TIFF_FALSE]) +m4trace:configure.ac:274: -1- AC_SUBST_TRACE([HAVE_LIB_TIFF_FALSE]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_LIB_TIFF_FALSE$]) +m4trace:configure.ac:274: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_TIFF_TRUE]) +m4trace:configure.ac:274: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_TIFF_FALSE]) +m4trace:configure.ac:275: -1- AC_SUBST([GEM_LIB_JPEG_CFLAGS]) +m4trace:configure.ac:275: -1- AC_SUBST_TRACE([GEM_LIB_JPEG_CFLAGS]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^GEM_LIB_JPEG_CFLAGS$]) +m4trace:configure.ac:275: -1- AC_SUBST([GEM_LIB_JPEG_LIBS]) +m4trace:configure.ac:275: -1- AC_SUBST_TRACE([GEM_LIB_JPEG_LIBS]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^GEM_LIB_JPEG_LIBS$]) +m4trace:configure.ac:275: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:275: the top level]) +m4trace:configure.ac:275: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:275: the top level]) +m4trace:configure.ac:275: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:275: the top level]) +m4trace:configure.ac:275: -1- m4_pattern_allow([PKG_JPEG_CFLAGS]) +m4trace:configure.ac:275: -1- m4_pattern_allow([PKG_JPEG_LIBS]) +m4trace:configure.ac:275: -1- m4_pattern_allow([PKG_JPEG]) +m4trace:configure.ac:275: -1- m4_pattern_allow([PKG_JPEG_PKG_ERRORS]) +m4trace:configure.ac:275: -1- AC_SUBST([PKG_JPEG_CFLAGS]) +m4trace:configure.ac:275: -1- AC_SUBST_TRACE([PKG_JPEG_CFLAGS]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^PKG_JPEG_CFLAGS$]) +m4trace:configure.ac:275: -1- AC_SUBST([PKG_JPEG_LIBS]) +m4trace:configure.ac:275: -1- AC_SUBST_TRACE([PKG_JPEG_LIBS]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^PKG_JPEG_LIBS$]) +m4trace:configure.ac:275: -1- AH_OUTPUT([HAVE_LIBJPEG], [/* Define to 1 if you have the `jpeg\' library (-ljpeg). */ +@%:@undef HAVE_LIBJPEG]) +m4trace:configure.ac:275: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBJPEG]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_LIBJPEG$]) +m4trace:configure.ac:275: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBJPEG]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_LIBJPEG$]) +m4trace:configure.ac:275: -1- AH_OUTPUT([HAVE_LIBJPEG], [/* image loader */ +@%:@undef HAVE_LIBJPEG]) +m4trace:configure.ac:275: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBJPEG]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_LIBJPEG$]) +m4trace:configure.ac:275: -1- AH_OUTPUT([HAVE_LIBJPEG], [/* image loader */ +@%:@undef HAVE_LIBJPEG]) +m4trace:configure.ac:275: -1- AC_DEFINE_TRACE_LITERAL([HAVE_JPEG_READ_HEADER]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_JPEG_READ_HEADER$]) +m4trace:configure.ac:275: -1- AH_OUTPUT([HAVE_JPEG_READ_HEADER], [/* Define to 1 if you have the `jpeg_read_header\' function. */ +@%:@undef HAVE_JPEG_READ_HEADER]) +m4trace:configure.ac:275: -1- AM_CONDITIONAL([HAVE_LIB_JPEG], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:275: -1- AC_SUBST([HAVE_LIB_JPEG_TRUE]) +m4trace:configure.ac:275: -1- AC_SUBST_TRACE([HAVE_LIB_JPEG_TRUE]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_LIB_JPEG_TRUE$]) +m4trace:configure.ac:275: -1- AC_SUBST([HAVE_LIB_JPEG_FALSE]) +m4trace:configure.ac:275: -1- AC_SUBST_TRACE([HAVE_LIB_JPEG_FALSE]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_LIB_JPEG_FALSE$]) +m4trace:configure.ac:275: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_JPEG_TRUE]) +m4trace:configure.ac:275: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_JPEG_FALSE]) +m4trace:configure.ac:277: -1- AC_SUBST([GEM_LIB_FTGL_CFLAGS]) +m4trace:configure.ac:277: -1- AC_SUBST_TRACE([GEM_LIB_FTGL_CFLAGS]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^GEM_LIB_FTGL_CFLAGS$]) +m4trace:configure.ac:277: -1- AC_SUBST([GEM_LIB_FTGL_LIBS]) +m4trace:configure.ac:277: -1- AC_SUBST_TRACE([GEM_LIB_FTGL_LIBS]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^GEM_LIB_FTGL_LIBS$]) +m4trace:configure.ac:277: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +m4/iem_ftgl.m4:6: IEM_CHECK_FTGL is expanded from... +configure.ac:277: the top level]) +m4trace:configure.ac:277: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +m4/iem_ftgl.m4:6: IEM_CHECK_FTGL is expanded from... +configure.ac:277: the top level]) +m4trace:configure.ac:277: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +m4/iem_ftgl.m4:6: IEM_CHECK_FTGL is expanded from... +configure.ac:277: the top level]) +m4trace:configure.ac:277: -1- m4_pattern_allow([PKG_FTGL_CFLAGS]) +m4trace:configure.ac:277: -1- m4_pattern_allow([PKG_FTGL_LIBS]) +m4trace:configure.ac:277: -1- m4_pattern_allow([PKG_FTGL]) +m4trace:configure.ac:277: -1- m4_pattern_allow([PKG_FTGL_PKG_ERRORS]) +m4trace:configure.ac:277: -1- AC_SUBST([PKG_FTGL_CFLAGS]) +m4trace:configure.ac:277: -1- AC_SUBST_TRACE([PKG_FTGL_CFLAGS]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^PKG_FTGL_CFLAGS$]) +m4trace:configure.ac:277: -1- AC_SUBST([PKG_FTGL_LIBS]) +m4trace:configure.ac:277: -1- AC_SUBST_TRACE([PKG_FTGL_LIBS]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^PKG_FTGL_LIBS$]) +m4trace:configure.ac:277: -1- AH_OUTPUT([HAVE_LIBFTGL], [/* Define to 1 if you have the `ftgl\' library (-lftgl). */ +@%:@undef HAVE_LIBFTGL]) +m4trace:configure.ac:277: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBFTGL]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_LIBFTGL$]) +m4trace:configure.ac:277: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBFTGL]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_LIBFTGL$]) +m4trace:configure.ac:277: -1- AH_OUTPUT([HAVE_LIBFTGL], [/* font support */ +@%:@undef HAVE_LIBFTGL]) +m4trace:configure.ac:277: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBFTGL]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_LIBFTGL$]) +m4trace:configure.ac:277: -1- AH_OUTPUT([HAVE_LIBFTGL], [/* font support */ +@%:@undef HAVE_LIBFTGL]) +m4trace:configure.ac:277: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MAIN]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:277: -1- AH_OUTPUT([HAVE_MAIN], [/* Define to 1 if you have the `main\' function. */ +@%:@undef HAVE_MAIN]) +m4trace:configure.ac:277: -1- AM_CONDITIONAL([HAVE_LIB_FTGL], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:277: -1- AC_SUBST([HAVE_LIB_FTGL_TRUE]) +m4trace:configure.ac:277: -1- AC_SUBST_TRACE([HAVE_LIB_FTGL_TRUE]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_LIB_FTGL_TRUE$]) +m4trace:configure.ac:277: -1- AC_SUBST([HAVE_LIB_FTGL_FALSE]) +m4trace:configure.ac:277: -1- AC_SUBST_TRACE([HAVE_LIB_FTGL_FALSE]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_LIB_FTGL_FALSE$]) +m4trace:configure.ac:277: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_FTGL_TRUE]) +m4trace:configure.ac:277: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_FTGL_FALSE]) +m4trace:configure.ac:277: -1- AH_OUTPUT([HAVE_FTGL_FTGL_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_FTGL_FTGL_H]) +m4trace:configure.ac:277: -1- AC_DEFINE_TRACE_LITERAL([HAVE_FTGL_FTGL_H]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_FTGL_FTGL_H$]) +m4trace:configure.ac:278: -1- AC_SUBST([GEM_LIB_FRIBIDI_CFLAGS]) +m4trace:configure.ac:278: -1- AC_SUBST_TRACE([GEM_LIB_FRIBIDI_CFLAGS]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^GEM_LIB_FRIBIDI_CFLAGS$]) +m4trace:configure.ac:278: -1- AC_SUBST([GEM_LIB_FRIBIDI_LIBS]) +m4trace:configure.ac:278: -1- AC_SUBST_TRACE([GEM_LIB_FRIBIDI_LIBS]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^GEM_LIB_FRIBIDI_LIBS$]) +m4trace:configure.ac:278: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:278: the top level]) +m4trace:configure.ac:278: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:278: the top level]) +m4trace:configure.ac:278: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:278: the top level]) +m4trace:configure.ac:278: -1- m4_pattern_allow([PKG_FRIBIDI_CFLAGS]) +m4trace:configure.ac:278: -1- m4_pattern_allow([PKG_FRIBIDI_LIBS]) +m4trace:configure.ac:278: -1- m4_pattern_allow([PKG_FRIBIDI]) +m4trace:configure.ac:278: -1- m4_pattern_allow([PKG_FRIBIDI_PKG_ERRORS]) +m4trace:configure.ac:278: -1- AC_SUBST([PKG_FRIBIDI_CFLAGS]) +m4trace:configure.ac:278: -1- AC_SUBST_TRACE([PKG_FRIBIDI_CFLAGS]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^PKG_FRIBIDI_CFLAGS$]) +m4trace:configure.ac:278: -1- AC_SUBST([PKG_FRIBIDI_LIBS]) +m4trace:configure.ac:278: -1- AC_SUBST_TRACE([PKG_FRIBIDI_LIBS]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^PKG_FRIBIDI_LIBS$]) +m4trace:configure.ac:278: -1- AH_OUTPUT([HAVE_LIBFRIBIDI], [/* Define to 1 if you have the `fribidi\' library (-lfribidi). */ +@%:@undef HAVE_LIBFRIBIDI]) +m4trace:configure.ac:278: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBFRIBIDI]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_LIBFRIBIDI$]) +m4trace:configure.ac:278: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBFRIBIDI]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_LIBFRIBIDI$]) +m4trace:configure.ac:278: -1- AH_OUTPUT([HAVE_LIBFRIBIDI], [/* bidrectional text rendering using FriBidi */ +@%:@undef HAVE_LIBFRIBIDI]) +m4trace:configure.ac:278: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBFRIBIDI]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_LIBFRIBIDI$]) +m4trace:configure.ac:278: -1- AH_OUTPUT([HAVE_LIBFRIBIDI], [/* bidrectional text rendering using FriBidi */ +@%:@undef HAVE_LIBFRIBIDI]) +m4trace:configure.ac:278: -1- AC_DEFINE_TRACE_LITERAL([HAVE_FRIBIDI_LOG2VIS]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_FRIBIDI_LOG2VIS$]) +m4trace:configure.ac:278: -1- AH_OUTPUT([HAVE_FRIBIDI_LOG2VIS], [/* Define to 1 if you have the `fribidi_log2vis\' function. */ +@%:@undef HAVE_FRIBIDI_LOG2VIS]) +m4trace:configure.ac:278: -1- AM_CONDITIONAL([HAVE_LIB_FRIBIDI], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:278: -1- AC_SUBST([HAVE_LIB_FRIBIDI_TRUE]) +m4trace:configure.ac:278: -1- AC_SUBST_TRACE([HAVE_LIB_FRIBIDI_TRUE]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_LIB_FRIBIDI_TRUE$]) +m4trace:configure.ac:278: -1- AC_SUBST([HAVE_LIB_FRIBIDI_FALSE]) +m4trace:configure.ac:278: -1- AC_SUBST_TRACE([HAVE_LIB_FRIBIDI_FALSE]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_LIB_FRIBIDI_FALSE$]) +m4trace:configure.ac:278: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_FRIBIDI_TRUE]) +m4trace:configure.ac:278: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_FRIBIDI_FALSE]) +m4trace:configure.ac:281: -1- AC_SUBST([GEM_LIB_AVIFILE_CFLAGS]) +m4trace:configure.ac:281: -1- AC_SUBST_TRACE([GEM_LIB_AVIFILE_CFLAGS]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^GEM_LIB_AVIFILE_CFLAGS$]) +m4trace:configure.ac:281: -1- AC_SUBST([GEM_LIB_AVIFILE_LIBS]) +m4trace:configure.ac:281: -1- AC_SUBST_TRACE([GEM_LIB_AVIFILE_LIBS]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^GEM_LIB_AVIFILE_LIBS$]) +m4trace:configure.ac:281: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:281: the top level]) +m4trace:configure.ac:281: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:281: the top level]) +m4trace:configure.ac:281: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:281: the top level]) +m4trace:configure.ac:281: -1- m4_pattern_allow([PKG_AVIFILE_CFLAGS]) +m4trace:configure.ac:281: -1- m4_pattern_allow([PKG_AVIFILE_LIBS]) +m4trace:configure.ac:281: -1- m4_pattern_allow([PKG_AVIFILE]) +m4trace:configure.ac:281: -1- m4_pattern_allow([PKG_AVIFILE_PKG_ERRORS]) +m4trace:configure.ac:281: -1- AC_SUBST([PKG_AVIFILE_CFLAGS]) +m4trace:configure.ac:281: -1- AC_SUBST_TRACE([PKG_AVIFILE_CFLAGS]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^PKG_AVIFILE_CFLAGS$]) +m4trace:configure.ac:281: -1- AC_SUBST([PKG_AVIFILE_LIBS]) +m4trace:configure.ac:281: -1- AC_SUBST_TRACE([PKG_AVIFILE_LIBS]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^PKG_AVIFILE_LIBS$]) +m4trace:configure.ac:281: -1- AH_OUTPUT([HAVE_LIBAVIPLAY], [/* Define to 1 if you have the `aviplay\' library (-laviplay). */ +@%:@undef HAVE_LIBAVIPLAY]) +m4trace:configure.ac:281: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBAVIPLAY]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_LIBAVIPLAY$]) +m4trace:configure.ac:281: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBAVIFILE]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_LIBAVIFILE$]) +m4trace:configure.ac:281: -1- AH_OUTPUT([HAVE_LIBAVIFILE], [/* movie loader */ +@%:@undef HAVE_LIBAVIFILE]) +m4trace:configure.ac:281: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBAVIPLAY]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_LIBAVIPLAY$]) +m4trace:configure.ac:281: -1- AH_OUTPUT([HAVE_LIBAVIPLAY], [/* movie loader */ +@%:@undef HAVE_LIBAVIPLAY]) +m4trace:configure.ac:281: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CREATEIAVIREADFILE]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_CREATEIAVIREADFILE$]) +m4trace:configure.ac:281: -1- AH_OUTPUT([HAVE_CREATEIAVIREADFILE], [/* Define to 1 if you have the `CreateIAviReadFile\' function. */ +@%:@undef HAVE_CREATEIAVIREADFILE]) +m4trace:configure.ac:281: -1- AM_CONDITIONAL([HAVE_LIB_AVIFILE], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:281: -1- AC_SUBST([HAVE_LIB_AVIFILE_TRUE]) +m4trace:configure.ac:281: -1- AC_SUBST_TRACE([HAVE_LIB_AVIFILE_TRUE]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_LIB_AVIFILE_TRUE$]) +m4trace:configure.ac:281: -1- AC_SUBST([HAVE_LIB_AVIFILE_FALSE]) +m4trace:configure.ac:281: -1- AC_SUBST_TRACE([HAVE_LIB_AVIFILE_FALSE]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_LIB_AVIFILE_FALSE$]) +m4trace:configure.ac:281: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_AVIFILE_TRUE]) +m4trace:configure.ac:281: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_AVIFILE_FALSE]) +m4trace:configure.ac:282: -1- AC_SUBST([GEM_LIB_GMERLIN_AVDEC_CFLAGS]) +m4trace:configure.ac:282: -1- AC_SUBST_TRACE([GEM_LIB_GMERLIN_AVDEC_CFLAGS]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^GEM_LIB_GMERLIN_AVDEC_CFLAGS$]) +m4trace:configure.ac:282: -1- AC_SUBST([GEM_LIB_GMERLIN_AVDEC_LIBS]) +m4trace:configure.ac:282: -1- AC_SUBST_TRACE([GEM_LIB_GMERLIN_AVDEC_LIBS]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^GEM_LIB_GMERLIN_AVDEC_LIBS$]) +m4trace:configure.ac:282: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:282: the top level]) +m4trace:configure.ac:282: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:282: the top level]) +m4trace:configure.ac:282: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:282: the top level]) +m4trace:configure.ac:282: -1- m4_pattern_allow([PKG_GMERLIN_AVDEC_CFLAGS]) +m4trace:configure.ac:282: -1- m4_pattern_allow([PKG_GMERLIN_AVDEC_LIBS]) +m4trace:configure.ac:282: -1- m4_pattern_allow([PKG_GMERLIN_AVDEC]) +m4trace:configure.ac:282: -1- m4_pattern_allow([PKG_GMERLIN_AVDEC_PKG_ERRORS]) +m4trace:configure.ac:282: -1- AC_SUBST([PKG_GMERLIN_AVDEC_CFLAGS]) +m4trace:configure.ac:282: -1- AC_SUBST_TRACE([PKG_GMERLIN_AVDEC_CFLAGS]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^PKG_GMERLIN_AVDEC_CFLAGS$]) +m4trace:configure.ac:282: -1- AC_SUBST([PKG_GMERLIN_AVDEC_LIBS]) +m4trace:configure.ac:282: -1- AC_SUBST_TRACE([PKG_GMERLIN_AVDEC_LIBS]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^PKG_GMERLIN_AVDEC_LIBS$]) +m4trace:configure.ac:282: -1- AH_OUTPUT([HAVE_LIBGMERLIN_AVDEC], [/* Define to 1 if you have the `gmerlin_avdec\' library (-lgmerlin_avdec). */ +@%:@undef HAVE_LIBGMERLIN_AVDEC]) +m4trace:configure.ac:282: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBGMERLIN_AVDEC]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_LIBGMERLIN_AVDEC$]) +m4trace:configure.ac:282: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBGMERLIN_AVDEC]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_LIBGMERLIN_AVDEC$]) +m4trace:configure.ac:282: -1- AH_OUTPUT([HAVE_LIBGMERLIN_AVDEC], [/* movie loader */ +@%:@undef HAVE_LIBGMERLIN_AVDEC]) +m4trace:configure.ac:282: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBGMERLIN_AVDEC]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_LIBGMERLIN_AVDEC$]) +m4trace:configure.ac:282: -1- AH_OUTPUT([HAVE_LIBGMERLIN_AVDEC], [/* movie loader */ +@%:@undef HAVE_LIBGMERLIN_AVDEC]) +m4trace:configure.ac:282: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GAVL_START]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_GAVL_START$]) +m4trace:configure.ac:282: -1- AH_OUTPUT([HAVE_GAVL_START], [/* Define to 1 if you have the `gavl_start\' function. */ +@%:@undef HAVE_GAVL_START]) +m4trace:configure.ac:282: -1- AM_CONDITIONAL([HAVE_LIB_GMERLIN_AVDEC], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:282: -1- AC_SUBST([HAVE_LIB_GMERLIN_AVDEC_TRUE]) +m4trace:configure.ac:282: -1- AC_SUBST_TRACE([HAVE_LIB_GMERLIN_AVDEC_TRUE]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_LIB_GMERLIN_AVDEC_TRUE$]) +m4trace:configure.ac:282: -1- AC_SUBST([HAVE_LIB_GMERLIN_AVDEC_FALSE]) +m4trace:configure.ac:282: -1- AC_SUBST_TRACE([HAVE_LIB_GMERLIN_AVDEC_FALSE]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_LIB_GMERLIN_AVDEC_FALSE$]) +m4trace:configure.ac:282: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_GMERLIN_AVDEC_TRUE]) +m4trace:configure.ac:282: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_GMERLIN_AVDEC_FALSE]) +m4trace:configure.ac:283: -1- AC_SUBST([GEM_LIB_MPEG_CFLAGS]) +m4trace:configure.ac:283: -1- AC_SUBST_TRACE([GEM_LIB_MPEG_CFLAGS]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^GEM_LIB_MPEG_CFLAGS$]) +m4trace:configure.ac:283: -1- AC_SUBST([GEM_LIB_MPEG_LIBS]) +m4trace:configure.ac:283: -1- AC_SUBST_TRACE([GEM_LIB_MPEG_LIBS]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^GEM_LIB_MPEG_LIBS$]) +m4trace:configure.ac:283: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:283: the top level]) +m4trace:configure.ac:283: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:283: the top level]) +m4trace:configure.ac:283: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:283: the top level]) +m4trace:configure.ac:283: -1- m4_pattern_allow([PKG_MPEG_CFLAGS]) +m4trace:configure.ac:283: -1- m4_pattern_allow([PKG_MPEG_LIBS]) +m4trace:configure.ac:283: -1- m4_pattern_allow([PKG_MPEG]) +m4trace:configure.ac:283: -1- m4_pattern_allow([PKG_MPEG_PKG_ERRORS]) +m4trace:configure.ac:283: -1- AC_SUBST([PKG_MPEG_CFLAGS]) +m4trace:configure.ac:283: -1- AC_SUBST_TRACE([PKG_MPEG_CFLAGS]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^PKG_MPEG_CFLAGS$]) +m4trace:configure.ac:283: -1- AC_SUBST([PKG_MPEG_LIBS]) +m4trace:configure.ac:283: -1- AC_SUBST_TRACE([PKG_MPEG_LIBS]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^PKG_MPEG_LIBS$]) +m4trace:configure.ac:283: -1- AH_OUTPUT([HAVE_LIBMPEG], [/* Define to 1 if you have the `mpeg\' library (-lmpeg). */ +@%:@undef HAVE_LIBMPEG]) +m4trace:configure.ac:283: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMPEG]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_LIBMPEG$]) +m4trace:configure.ac:283: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMPEG]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_LIBMPEG$]) +m4trace:configure.ac:283: -1- AH_OUTPUT([HAVE_LIBMPEG], [/* movie loader */ +@%:@undef HAVE_LIBMPEG]) +m4trace:configure.ac:283: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMPEG]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_LIBMPEG$]) +m4trace:configure.ac:283: -1- AH_OUTPUT([HAVE_LIBMPEG], [/* movie loader */ +@%:@undef HAVE_LIBMPEG]) +m4trace:configure.ac:283: -1- AC_DEFINE_TRACE_LITERAL([HAVE_OPENMPEG]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_OPENMPEG$]) +m4trace:configure.ac:283: -1- AH_OUTPUT([HAVE_OPENMPEG], [/* Define to 1 if you have the `OpenMPEG\' function. */ +@%:@undef HAVE_OPENMPEG]) +m4trace:configure.ac:283: -1- AM_CONDITIONAL([HAVE_LIB_MPEG], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:283: -1- AC_SUBST([HAVE_LIB_MPEG_TRUE]) +m4trace:configure.ac:283: -1- AC_SUBST_TRACE([HAVE_LIB_MPEG_TRUE]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_LIB_MPEG_TRUE$]) +m4trace:configure.ac:283: -1- AC_SUBST([HAVE_LIB_MPEG_FALSE]) +m4trace:configure.ac:283: -1- AC_SUBST_TRACE([HAVE_LIB_MPEG_FALSE]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_LIB_MPEG_FALSE$]) +m4trace:configure.ac:283: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_MPEG_TRUE]) +m4trace:configure.ac:283: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_MPEG_FALSE]) +m4trace:configure.ac:284: -1- AC_SUBST([GEM_LIB_LIBMPEG3_CFLAGS]) +m4trace:configure.ac:284: -1- AC_SUBST_TRACE([GEM_LIB_LIBMPEG3_CFLAGS]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^GEM_LIB_LIBMPEG3_CFLAGS$]) +m4trace:configure.ac:284: -1- AC_SUBST([GEM_LIB_LIBMPEG3_LIBS]) +m4trace:configure.ac:284: -1- AC_SUBST_TRACE([GEM_LIB_LIBMPEG3_LIBS]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^GEM_LIB_LIBMPEG3_LIBS$]) +m4trace:configure.ac:284: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:284: the top level]) +m4trace:configure.ac:284: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:284: the top level]) +m4trace:configure.ac:284: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:284: the top level]) +m4trace:configure.ac:284: -1- m4_pattern_allow([PKG_LIBMPEG3_CFLAGS]) +m4trace:configure.ac:284: -1- m4_pattern_allow([PKG_LIBMPEG3_LIBS]) +m4trace:configure.ac:284: -1- m4_pattern_allow([PKG_LIBMPEG3]) +m4trace:configure.ac:284: -1- m4_pattern_allow([PKG_LIBMPEG3_PKG_ERRORS]) +m4trace:configure.ac:284: -1- AC_SUBST([PKG_LIBMPEG3_CFLAGS]) +m4trace:configure.ac:284: -1- AC_SUBST_TRACE([PKG_LIBMPEG3_CFLAGS]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^PKG_LIBMPEG3_CFLAGS$]) +m4trace:configure.ac:284: -1- AC_SUBST([PKG_LIBMPEG3_LIBS]) +m4trace:configure.ac:284: -1- AC_SUBST_TRACE([PKG_LIBMPEG3_LIBS]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^PKG_LIBMPEG3_LIBS$]) +m4trace:configure.ac:284: -1- AH_OUTPUT([HAVE_LIBMPEG3], [/* Define to 1 if you have the `mpeg3\' library (-lmpeg3). */ +@%:@undef HAVE_LIBMPEG3]) +m4trace:configure.ac:284: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMPEG3]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_LIBMPEG3$]) +m4trace:configure.ac:284: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBLIBMPEG3]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_LIBLIBMPEG3$]) +m4trace:configure.ac:284: -1- AH_OUTPUT([HAVE_LIBLIBMPEG3], [/* movie loader */ +@%:@undef HAVE_LIBLIBMPEG3]) +m4trace:configure.ac:284: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMPEG3]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_LIBMPEG3$]) +m4trace:configure.ac:284: -1- AH_OUTPUT([HAVE_LIBMPEG3], [/* movie loader */ +@%:@undef HAVE_LIBMPEG3]) +m4trace:configure.ac:284: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MPEG3_CHECK_SIG]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_MPEG3_CHECK_SIG$]) +m4trace:configure.ac:284: -1- AH_OUTPUT([HAVE_MPEG3_CHECK_SIG], [/* Define to 1 if you have the `mpeg3_check_sig\' function. */ +@%:@undef HAVE_MPEG3_CHECK_SIG]) +m4trace:configure.ac:284: -1- AM_CONDITIONAL([HAVE_LIB_LIBMPEG3], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:284: -1- AC_SUBST([HAVE_LIB_LIBMPEG3_TRUE]) +m4trace:configure.ac:284: -1- AC_SUBST_TRACE([HAVE_LIB_LIBMPEG3_TRUE]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_LIB_LIBMPEG3_TRUE$]) +m4trace:configure.ac:284: -1- AC_SUBST([HAVE_LIB_LIBMPEG3_FALSE]) +m4trace:configure.ac:284: -1- AC_SUBST_TRACE([HAVE_LIB_LIBMPEG3_FALSE]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_LIB_LIBMPEG3_FALSE$]) +m4trace:configure.ac:284: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBMPEG3_TRUE]) +m4trace:configure.ac:284: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBMPEG3_FALSE]) +m4trace:configure.ac:285: -1- AC_SUBST([GEM_LIB_LIBQUICKTIME_CFLAGS]) +m4trace:configure.ac:285: -1- AC_SUBST_TRACE([GEM_LIB_LIBQUICKTIME_CFLAGS]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^GEM_LIB_LIBQUICKTIME_CFLAGS$]) +m4trace:configure.ac:285: -1- AC_SUBST([GEM_LIB_LIBQUICKTIME_LIBS]) +m4trace:configure.ac:285: -1- AC_SUBST_TRACE([GEM_LIB_LIBQUICKTIME_LIBS]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^GEM_LIB_LIBQUICKTIME_LIBS$]) +m4trace:configure.ac:285: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:285: the top level]) +m4trace:configure.ac:285: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:285: the top level]) +m4trace:configure.ac:285: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:285: the top level]) +m4trace:configure.ac:285: -1- m4_pattern_allow([PKG_LIBQUICKTIME_CFLAGS]) +m4trace:configure.ac:285: -1- m4_pattern_allow([PKG_LIBQUICKTIME_LIBS]) +m4trace:configure.ac:285: -1- m4_pattern_allow([PKG_LIBQUICKTIME]) +m4trace:configure.ac:285: -1- m4_pattern_allow([PKG_LIBQUICKTIME_PKG_ERRORS]) +m4trace:configure.ac:285: -1- AC_SUBST([PKG_LIBQUICKTIME_CFLAGS]) +m4trace:configure.ac:285: -1- AC_SUBST_TRACE([PKG_LIBQUICKTIME_CFLAGS]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^PKG_LIBQUICKTIME_CFLAGS$]) +m4trace:configure.ac:285: -1- AC_SUBST([PKG_LIBQUICKTIME_LIBS]) +m4trace:configure.ac:285: -1- AC_SUBST_TRACE([PKG_LIBQUICKTIME_LIBS]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^PKG_LIBQUICKTIME_LIBS$]) +m4trace:configure.ac:285: -1- AH_OUTPUT([HAVE_LIBQUICKTIME], [/* Define to 1 if you have the `quicktime\' library (-lquicktime). */ +@%:@undef HAVE_LIBQUICKTIME]) +m4trace:configure.ac:285: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBQUICKTIME]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIBQUICKTIME$]) +m4trace:configure.ac:285: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBLIBQUICKTIME]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIBLIBQUICKTIME$]) +m4trace:configure.ac:285: -1- AH_OUTPUT([HAVE_LIBLIBQUICKTIME], [/* movie loader */ +@%:@undef HAVE_LIBLIBQUICKTIME]) +m4trace:configure.ac:285: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBQUICKTIME]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIBQUICKTIME$]) +m4trace:configure.ac:285: -1- AH_OUTPUT([HAVE_LIBQUICKTIME], [/* movie loader */ +@%:@undef HAVE_LIBQUICKTIME]) +m4trace:configure.ac:285: -1- AC_DEFINE_TRACE_LITERAL([HAVE_QUICKTIME_INIT]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_QUICKTIME_INIT$]) +m4trace:configure.ac:285: -1- AH_OUTPUT([HAVE_QUICKTIME_INIT], [/* Define to 1 if you have the `quicktime_init\' function. */ +@%:@undef HAVE_QUICKTIME_INIT]) +m4trace:configure.ac:285: -1- AM_CONDITIONAL([HAVE_LIB_LIBQUICKTIME], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:285: -1- AC_SUBST([HAVE_LIB_LIBQUICKTIME_TRUE]) +m4trace:configure.ac:285: -1- AC_SUBST_TRACE([HAVE_LIB_LIBQUICKTIME_TRUE]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIB_LIBQUICKTIME_TRUE$]) +m4trace:configure.ac:285: -1- AC_SUBST([HAVE_LIB_LIBQUICKTIME_FALSE]) +m4trace:configure.ac:285: -1- AC_SUBST_TRACE([HAVE_LIB_LIBQUICKTIME_FALSE]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIB_LIBQUICKTIME_FALSE$]) +m4trace:configure.ac:285: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBQUICKTIME_TRUE]) +m4trace:configure.ac:285: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBQUICKTIME_FALSE]) +m4trace:configure.ac:286: -1- AC_SUBST([GEM_LIB_LQT_CFLAGS]) +m4trace:configure.ac:286: -1- AC_SUBST_TRACE([GEM_LIB_LQT_CFLAGS]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^GEM_LIB_LQT_CFLAGS$]) +m4trace:configure.ac:286: -1- AC_SUBST([GEM_LIB_LQT_LIBS]) +m4trace:configure.ac:286: -1- AC_SUBST_TRACE([GEM_LIB_LQT_LIBS]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^GEM_LIB_LQT_LIBS$]) +m4trace:configure.ac:286: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:286: the top level]) +m4trace:configure.ac:286: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:286: the top level]) +m4trace:configure.ac:286: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:286: the top level]) +m4trace:configure.ac:286: -1- m4_pattern_allow([PKG_LQT_CFLAGS]) +m4trace:configure.ac:286: -1- m4_pattern_allow([PKG_LQT_LIBS]) +m4trace:configure.ac:286: -1- m4_pattern_allow([PKG_LQT]) +m4trace:configure.ac:286: -1- m4_pattern_allow([PKG_LQT_PKG_ERRORS]) +m4trace:configure.ac:286: -1- AC_SUBST([PKG_LQT_CFLAGS]) +m4trace:configure.ac:286: -1- AC_SUBST_TRACE([PKG_LQT_CFLAGS]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^PKG_LQT_CFLAGS$]) +m4trace:configure.ac:286: -1- AC_SUBST([PKG_LQT_LIBS]) +m4trace:configure.ac:286: -1- AC_SUBST_TRACE([PKG_LQT_LIBS]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^PKG_LQT_LIBS$]) +m4trace:configure.ac:286: -1- AH_OUTPUT([HAVE_LIBQUICKTIME], [/* Define to 1 if you have the `quicktime\' library (-lquicktime). */ +@%:@undef HAVE_LIBQUICKTIME]) +m4trace:configure.ac:286: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBQUICKTIME]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_LIBQUICKTIME$]) +m4trace:configure.ac:286: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBLQT]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_LIBLQT$]) +m4trace:configure.ac:286: -1- AH_OUTPUT([HAVE_LIBLQT], [/* movie loader */ +@%:@undef HAVE_LIBLQT]) +m4trace:configure.ac:286: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBQUICKTIME]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_LIBQUICKTIME$]) +m4trace:configure.ac:286: -1- AH_OUTPUT([HAVE_LIBQUICKTIME], [/* movie loader */ +@%:@undef HAVE_LIBQUICKTIME]) +m4trace:configure.ac:286: -1- AC_DEFINE_TRACE_LITERAL([HAVE_QUICKTIME_INIT]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_QUICKTIME_INIT$]) +m4trace:configure.ac:286: -1- AH_OUTPUT([HAVE_QUICKTIME_INIT], [/* Define to 1 if you have the `quicktime_init\' function. */ +@%:@undef HAVE_QUICKTIME_INIT]) +m4trace:configure.ac:286: -1- AM_CONDITIONAL([HAVE_LIB_LQT], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:286: -1- AC_SUBST([HAVE_LIB_LQT_TRUE]) +m4trace:configure.ac:286: -1- AC_SUBST_TRACE([HAVE_LIB_LQT_TRUE]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_LIB_LQT_TRUE$]) +m4trace:configure.ac:286: -1- AC_SUBST([HAVE_LIB_LQT_FALSE]) +m4trace:configure.ac:286: -1- AC_SUBST_TRACE([HAVE_LIB_LQT_FALSE]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_LIB_LQT_FALSE$]) +m4trace:configure.ac:286: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LQT_TRUE]) +m4trace:configure.ac:286: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LQT_FALSE]) +m4trace:configure.ac:293: -1- AH_OUTPUT([HAVE_LQT_SEEK_VIDEO], [/* Define to 1 if you have the `lqt_seek_video\' function. */ +@%:@undef HAVE_LQT_SEEK_VIDEO]) +m4trace:configure.ac:293: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LQT_SEEK_VIDEO]) +m4trace:configure.ac:293: -1- m4_pattern_allow([^HAVE_LQT_SEEK_VIDEO$]) +m4trace:configure.ac:294: -1- AH_OUTPUT([HAVE_LQT_OPEN_WRITE], [/* Define to 1 if you have the `lqt_open_write\' function. */ +@%:@undef HAVE_LQT_OPEN_WRITE]) +m4trace:configure.ac:294: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LQT_OPEN_WRITE]) +m4trace:configure.ac:294: -1- m4_pattern_allow([^HAVE_LQT_OPEN_WRITE$]) +m4trace:configure.ac:299: -1- AC_SUBST([GEM_LIB_LIBDC1394_2_CFLAGS]) +m4trace:configure.ac:299: -1- AC_SUBST_TRACE([GEM_LIB_LIBDC1394_2_CFLAGS]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^GEM_LIB_LIBDC1394_2_CFLAGS$]) +m4trace:configure.ac:299: -1- AC_SUBST([GEM_LIB_LIBDC1394_2_LIBS]) +m4trace:configure.ac:299: -1- AC_SUBST_TRACE([GEM_LIB_LIBDC1394_2_LIBS]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^GEM_LIB_LIBDC1394_2_LIBS$]) +m4trace:configure.ac:299: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:299: the top level]) +m4trace:configure.ac:299: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:299: the top level]) +m4trace:configure.ac:299: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:299: the top level]) +m4trace:configure.ac:299: -1- m4_pattern_allow([PKG_LIBDC1394_2_CFLAGS]) +m4trace:configure.ac:299: -1- m4_pattern_allow([PKG_LIBDC1394_2_LIBS]) +m4trace:configure.ac:299: -1- m4_pattern_allow([PKG_LIBDC1394_2]) +m4trace:configure.ac:299: -1- m4_pattern_allow([PKG_LIBDC1394_2_PKG_ERRORS]) +m4trace:configure.ac:299: -1- AC_SUBST([PKG_LIBDC1394_2_CFLAGS]) +m4trace:configure.ac:299: -1- AC_SUBST_TRACE([PKG_LIBDC1394_2_CFLAGS]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^PKG_LIBDC1394_2_CFLAGS$]) +m4trace:configure.ac:299: -1- AC_SUBST([PKG_LIBDC1394_2_LIBS]) +m4trace:configure.ac:299: -1- AC_SUBST_TRACE([PKG_LIBDC1394_2_LIBS]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^PKG_LIBDC1394_2_LIBS$]) +m4trace:configure.ac:299: -1- AH_OUTPUT([HAVE_LIBDC1394], [/* Define to 1 if you have the `dc1394\' library (-ldc1394). */ +@%:@undef HAVE_LIBDC1394]) +m4trace:configure.ac:299: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDC1394]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_LIBDC1394$]) +m4trace:configure.ac:299: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBLIBDC1394_2]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_LIBLIBDC1394_2$]) +m4trace:configure.ac:299: -1- AH_OUTPUT([HAVE_LIBLIBDC1394_2], [/* video input */ +@%:@undef HAVE_LIBLIBDC1394_2]) +m4trace:configure.ac:299: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDC1394]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_LIBDC1394$]) +m4trace:configure.ac:299: -1- AH_OUTPUT([HAVE_LIBDC1394], [/* video input */ +@%:@undef HAVE_LIBDC1394]) +m4trace:configure.ac:299: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MAIN]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:299: -1- AH_OUTPUT([HAVE_MAIN], [/* Define to 1 if you have the `main\' function. */ +@%:@undef HAVE_MAIN]) +m4trace:configure.ac:299: -1- AM_CONDITIONAL([HAVE_LIB_LIBDC1394_2], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:299: -1- AC_SUBST([HAVE_LIB_LIBDC1394_2_TRUE]) +m4trace:configure.ac:299: -1- AC_SUBST_TRACE([HAVE_LIB_LIBDC1394_2_TRUE]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_LIB_LIBDC1394_2_TRUE$]) +m4trace:configure.ac:299: -1- AC_SUBST([HAVE_LIB_LIBDC1394_2_FALSE]) +m4trace:configure.ac:299: -1- AC_SUBST_TRACE([HAVE_LIB_LIBDC1394_2_FALSE]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_LIB_LIBDC1394_2_FALSE$]) +m4trace:configure.ac:299: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBDC1394_2_TRUE]) +m4trace:configure.ac:299: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBDC1394_2_FALSE]) +m4trace:configure.ac:300: -1- AC_SUBST([GEM_LIB_LIBDV_CFLAGS]) +m4trace:configure.ac:300: -1- AC_SUBST_TRACE([GEM_LIB_LIBDV_CFLAGS]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^GEM_LIB_LIBDV_CFLAGS$]) +m4trace:configure.ac:300: -1- AC_SUBST([GEM_LIB_LIBDV_LIBS]) +m4trace:configure.ac:300: -1- AC_SUBST_TRACE([GEM_LIB_LIBDV_LIBS]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^GEM_LIB_LIBDV_LIBS$]) +m4trace:configure.ac:300: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:300: the top level]) +m4trace:configure.ac:300: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:300: the top level]) +m4trace:configure.ac:300: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:300: the top level]) +m4trace:configure.ac:300: -1- m4_pattern_allow([PKG_LIBDV_CFLAGS]) +m4trace:configure.ac:300: -1- m4_pattern_allow([PKG_LIBDV_LIBS]) +m4trace:configure.ac:300: -1- m4_pattern_allow([PKG_LIBDV]) +m4trace:configure.ac:300: -1- m4_pattern_allow([PKG_LIBDV_PKG_ERRORS]) +m4trace:configure.ac:300: -1- AC_SUBST([PKG_LIBDV_CFLAGS]) +m4trace:configure.ac:300: -1- AC_SUBST_TRACE([PKG_LIBDV_CFLAGS]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^PKG_LIBDV_CFLAGS$]) +m4trace:configure.ac:300: -1- AC_SUBST([PKG_LIBDV_LIBS]) +m4trace:configure.ac:300: -1- AC_SUBST_TRACE([PKG_LIBDV_LIBS]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^PKG_LIBDV_LIBS$]) +m4trace:configure.ac:300: -1- AH_OUTPUT([HAVE_LIBDV], [/* Define to 1 if you have the `dv\' library (-ldv). */ +@%:@undef HAVE_LIBDV]) +m4trace:configure.ac:300: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDV]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_LIBDV$]) +m4trace:configure.ac:300: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBLIBDV]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_LIBLIBDV$]) +m4trace:configure.ac:300: -1- AH_OUTPUT([HAVE_LIBLIBDV], [/* video input */ +@%:@undef HAVE_LIBLIBDV]) +m4trace:configure.ac:300: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDV]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_LIBDV$]) +m4trace:configure.ac:300: -1- AH_OUTPUT([HAVE_LIBDV], [/* video input */ +@%:@undef HAVE_LIBDV]) +m4trace:configure.ac:300: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MAIN]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:300: -1- AH_OUTPUT([HAVE_MAIN], [/* Define to 1 if you have the `main\' function. */ +@%:@undef HAVE_MAIN]) +m4trace:configure.ac:300: -1- AM_CONDITIONAL([HAVE_LIB_LIBDV], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:300: -1- AC_SUBST([HAVE_LIB_LIBDV_TRUE]) +m4trace:configure.ac:300: -1- AC_SUBST_TRACE([HAVE_LIB_LIBDV_TRUE]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_LIB_LIBDV_TRUE$]) +m4trace:configure.ac:300: -1- AC_SUBST([HAVE_LIB_LIBDV_FALSE]) +m4trace:configure.ac:300: -1- AC_SUBST_TRACE([HAVE_LIB_LIBDV_FALSE]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_LIB_LIBDV_FALSE$]) +m4trace:configure.ac:300: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBDV_TRUE]) +m4trace:configure.ac:300: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBDV_FALSE]) +m4trace:configure.ac:301: -1- AC_SUBST([GEM_LIB_LIBRAW1394_CFLAGS]) +m4trace:configure.ac:301: -1- AC_SUBST_TRACE([GEM_LIB_LIBRAW1394_CFLAGS]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^GEM_LIB_LIBRAW1394_CFLAGS$]) +m4trace:configure.ac:301: -1- AC_SUBST([GEM_LIB_LIBRAW1394_LIBS]) +m4trace:configure.ac:301: -1- AC_SUBST_TRACE([GEM_LIB_LIBRAW1394_LIBS]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^GEM_LIB_LIBRAW1394_LIBS$]) +m4trace:configure.ac:301: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:301: the top level]) +m4trace:configure.ac:301: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:301: the top level]) +m4trace:configure.ac:301: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:301: the top level]) +m4trace:configure.ac:301: -1- m4_pattern_allow([PKG_LIBRAW1394_CFLAGS]) +m4trace:configure.ac:301: -1- m4_pattern_allow([PKG_LIBRAW1394_LIBS]) +m4trace:configure.ac:301: -1- m4_pattern_allow([PKG_LIBRAW1394]) +m4trace:configure.ac:301: -1- m4_pattern_allow([PKG_LIBRAW1394_PKG_ERRORS]) +m4trace:configure.ac:301: -1- AC_SUBST([PKG_LIBRAW1394_CFLAGS]) +m4trace:configure.ac:301: -1- AC_SUBST_TRACE([PKG_LIBRAW1394_CFLAGS]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^PKG_LIBRAW1394_CFLAGS$]) +m4trace:configure.ac:301: -1- AC_SUBST([PKG_LIBRAW1394_LIBS]) +m4trace:configure.ac:301: -1- AC_SUBST_TRACE([PKG_LIBRAW1394_LIBS]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^PKG_LIBRAW1394_LIBS$]) +m4trace:configure.ac:301: -1- AH_OUTPUT([HAVE_LIBRAW1394], [/* Define to 1 if you have the `raw1394\' library (-lraw1394). */ +@%:@undef HAVE_LIBRAW1394]) +m4trace:configure.ac:301: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBRAW1394]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_LIBRAW1394$]) +m4trace:configure.ac:301: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBLIBRAW1394]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_LIBLIBRAW1394$]) +m4trace:configure.ac:301: -1- AH_OUTPUT([HAVE_LIBLIBRAW1394], [/* video input */ +@%:@undef HAVE_LIBLIBRAW1394]) +m4trace:configure.ac:301: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBRAW1394]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_LIBRAW1394$]) +m4trace:configure.ac:301: -1- AH_OUTPUT([HAVE_LIBRAW1394], [/* video input */ +@%:@undef HAVE_LIBRAW1394]) +m4trace:configure.ac:301: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MAIN]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:301: -1- AH_OUTPUT([HAVE_MAIN], [/* Define to 1 if you have the `main\' function. */ +@%:@undef HAVE_MAIN]) +m4trace:configure.ac:301: -1- AM_CONDITIONAL([HAVE_LIB_LIBRAW1394], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:301: -1- AC_SUBST([HAVE_LIB_LIBRAW1394_TRUE]) +m4trace:configure.ac:301: -1- AC_SUBST_TRACE([HAVE_LIB_LIBRAW1394_TRUE]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_LIB_LIBRAW1394_TRUE$]) +m4trace:configure.ac:301: -1- AC_SUBST([HAVE_LIB_LIBRAW1394_FALSE]) +m4trace:configure.ac:301: -1- AC_SUBST_TRACE([HAVE_LIB_LIBRAW1394_FALSE]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_LIB_LIBRAW1394_FALSE$]) +m4trace:configure.ac:301: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBRAW1394_TRUE]) +m4trace:configure.ac:301: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBRAW1394_FALSE]) +m4trace:configure.ac:302: -1- AC_SUBST([GEM_LIB_LIBIEC61883_CFLAGS]) +m4trace:configure.ac:302: -1- AC_SUBST_TRACE([GEM_LIB_LIBIEC61883_CFLAGS]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^GEM_LIB_LIBIEC61883_CFLAGS$]) +m4trace:configure.ac:302: -1- AC_SUBST([GEM_LIB_LIBIEC61883_LIBS]) +m4trace:configure.ac:302: -1- AC_SUBST_TRACE([GEM_LIB_LIBIEC61883_LIBS]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^GEM_LIB_LIBIEC61883_LIBS$]) +m4trace:configure.ac:302: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:302: the top level]) +m4trace:configure.ac:302: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:302: the top level]) +m4trace:configure.ac:302: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:302: the top level]) +m4trace:configure.ac:302: -1- m4_pattern_allow([PKG_LIBIEC61883_CFLAGS]) +m4trace:configure.ac:302: -1- m4_pattern_allow([PKG_LIBIEC61883_LIBS]) +m4trace:configure.ac:302: -1- m4_pattern_allow([PKG_LIBIEC61883]) +m4trace:configure.ac:302: -1- m4_pattern_allow([PKG_LIBIEC61883_PKG_ERRORS]) +m4trace:configure.ac:302: -1- AC_SUBST([PKG_LIBIEC61883_CFLAGS]) +m4trace:configure.ac:302: -1- AC_SUBST_TRACE([PKG_LIBIEC61883_CFLAGS]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^PKG_LIBIEC61883_CFLAGS$]) +m4trace:configure.ac:302: -1- AC_SUBST([PKG_LIBIEC61883_LIBS]) +m4trace:configure.ac:302: -1- AC_SUBST_TRACE([PKG_LIBIEC61883_LIBS]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^PKG_LIBIEC61883_LIBS$]) +m4trace:configure.ac:302: -1- AH_OUTPUT([HAVE_LIBIEC61883], [/* Define to 1 if you have the `iec61883\' library (-liec61883). */ +@%:@undef HAVE_LIBIEC61883]) +m4trace:configure.ac:302: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBIEC61883]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_LIBIEC61883$]) +m4trace:configure.ac:302: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBLIBIEC61883]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_LIBLIBIEC61883$]) +m4trace:configure.ac:302: -1- AH_OUTPUT([HAVE_LIBLIBIEC61883], [/* video input */ +@%:@undef HAVE_LIBLIBIEC61883]) +m4trace:configure.ac:302: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBIEC61883]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_LIBIEC61883$]) +m4trace:configure.ac:302: -1- AH_OUTPUT([HAVE_LIBIEC61883], [/* video input */ +@%:@undef HAVE_LIBIEC61883]) +m4trace:configure.ac:302: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MAIN]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:302: -1- AH_OUTPUT([HAVE_MAIN], [/* Define to 1 if you have the `main\' function. */ +@%:@undef HAVE_MAIN]) +m4trace:configure.ac:302: -1- AM_CONDITIONAL([HAVE_LIB_LIBIEC61883], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:302: -1- AC_SUBST([HAVE_LIB_LIBIEC61883_TRUE]) +m4trace:configure.ac:302: -1- AC_SUBST_TRACE([HAVE_LIB_LIBIEC61883_TRUE]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_LIB_LIBIEC61883_TRUE$]) +m4trace:configure.ac:302: -1- AC_SUBST([HAVE_LIB_LIBIEC61883_FALSE]) +m4trace:configure.ac:302: -1- AC_SUBST_TRACE([HAVE_LIB_LIBIEC61883_FALSE]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_LIB_LIBIEC61883_FALSE$]) +m4trace:configure.ac:302: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBIEC61883_TRUE]) +m4trace:configure.ac:302: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBIEC61883_FALSE]) +m4trace:configure.ac:303: -1- AH_OUTPUT([HAVE_VL_VL_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_VL_VL_H]) +m4trace:configure.ac:303: -1- AC_DEFINE_TRACE_LITERAL([HAVE_VL_VL_H]) +m4trace:configure.ac:303: -1- m4_pattern_allow([^HAVE_VL_VL_H$]) +m4trace:configure.ac:305: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:9: GEM_ARG_WITH is expanded from... +configure.ac:305: the top level]) +m4trace:configure.ac:307: -1- AC_SUBST([GEM_LIB_LIBUNICAP_CFLAGS]) +m4trace:configure.ac:307: -1- AC_SUBST_TRACE([GEM_LIB_LIBUNICAP_CFLAGS]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^GEM_LIB_LIBUNICAP_CFLAGS$]) +m4trace:configure.ac:307: -1- AC_SUBST([GEM_LIB_LIBUNICAP_LIBS]) +m4trace:configure.ac:307: -1- AC_SUBST_TRACE([GEM_LIB_LIBUNICAP_LIBS]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^GEM_LIB_LIBUNICAP_LIBS$]) +m4trace:configure.ac:307: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:307: the top level]) +m4trace:configure.ac:307: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:307: the top level]) +m4trace:configure.ac:307: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:307: the top level]) +m4trace:configure.ac:307: -1- m4_pattern_allow([PKG_LIBUNICAP_CFLAGS]) +m4trace:configure.ac:307: -1- m4_pattern_allow([PKG_LIBUNICAP_LIBS]) +m4trace:configure.ac:307: -1- m4_pattern_allow([PKG_LIBUNICAP]) +m4trace:configure.ac:307: -1- m4_pattern_allow([PKG_LIBUNICAP_PKG_ERRORS]) +m4trace:configure.ac:307: -1- AC_SUBST([PKG_LIBUNICAP_CFLAGS]) +m4trace:configure.ac:307: -1- AC_SUBST_TRACE([PKG_LIBUNICAP_CFLAGS]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^PKG_LIBUNICAP_CFLAGS$]) +m4trace:configure.ac:307: -1- AC_SUBST([PKG_LIBUNICAP_LIBS]) +m4trace:configure.ac:307: -1- AC_SUBST_TRACE([PKG_LIBUNICAP_LIBS]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^PKG_LIBUNICAP_LIBS$]) +m4trace:configure.ac:307: -1- AH_OUTPUT([HAVE_LIBUNICAP], [/* Define to 1 if you have the `unicap\' library (-lunicap). */ +@%:@undef HAVE_LIBUNICAP]) +m4trace:configure.ac:307: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBUNICAP]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_LIBUNICAP$]) +m4trace:configure.ac:307: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBLIBUNICAP]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_LIBLIBUNICAP$]) +m4trace:configure.ac:307: -1- AH_OUTPUT([HAVE_LIBLIBUNICAP], [/* video input */ +@%:@undef HAVE_LIBLIBUNICAP]) +m4trace:configure.ac:307: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBUNICAP]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_LIBUNICAP$]) +m4trace:configure.ac:307: -1- AH_OUTPUT([HAVE_LIBUNICAP], [/* video input */ +@%:@undef HAVE_LIBUNICAP]) +m4trace:configure.ac:307: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UNICAP_CHECK_VERSION]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_UNICAP_CHECK_VERSION$]) +m4trace:configure.ac:307: -1- AH_OUTPUT([HAVE_UNICAP_CHECK_VERSION], [/* Define to 1 if you have the `unicap_check_version\' function. */ +@%:@undef HAVE_UNICAP_CHECK_VERSION]) +m4trace:configure.ac:307: -1- AM_CONDITIONAL([HAVE_LIB_LIBUNICAP], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:307: -1- AC_SUBST([HAVE_LIB_LIBUNICAP_TRUE]) +m4trace:configure.ac:307: -1- AC_SUBST_TRACE([HAVE_LIB_LIBUNICAP_TRUE]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_LIB_LIBUNICAP_TRUE$]) +m4trace:configure.ac:307: -1- AC_SUBST([HAVE_LIB_LIBUNICAP_FALSE]) +m4trace:configure.ac:307: -1- AC_SUBST_TRACE([HAVE_LIB_LIBUNICAP_FALSE]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_LIB_LIBUNICAP_FALSE$]) +m4trace:configure.ac:307: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBUNICAP_TRUE]) +m4trace:configure.ac:307: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBUNICAP_FALSE]) +m4trace:configure.ac:310: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UNICAP]) +m4trace:configure.ac:310: -1- m4_pattern_allow([^HAVE_UNICAP$]) +m4trace:configure.ac:310: -1- AH_OUTPUT([HAVE_UNICAP], [/* video capturing using UNICAP */ +@%:@undef HAVE_UNICAP]) +m4trace:configure.ac:319: -1- AM_CONDITIONAL([HAVE_LIB_UNICAP], [test "x${have_unicap}" = "xyes"]) +m4trace:configure.ac:319: -1- AC_SUBST([HAVE_LIB_UNICAP_TRUE]) +m4trace:configure.ac:319: -1- AC_SUBST_TRACE([HAVE_LIB_UNICAP_TRUE]) +m4trace:configure.ac:319: -1- m4_pattern_allow([^HAVE_LIB_UNICAP_TRUE$]) +m4trace:configure.ac:319: -1- AC_SUBST([HAVE_LIB_UNICAP_FALSE]) +m4trace:configure.ac:319: -1- AC_SUBST_TRACE([HAVE_LIB_UNICAP_FALSE]) +m4trace:configure.ac:319: -1- m4_pattern_allow([^HAVE_LIB_UNICAP_FALSE$]) +m4trace:configure.ac:319: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_UNICAP_TRUE]) +m4trace:configure.ac:319: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_UNICAP_FALSE]) +m4trace:configure.ac:323: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:9: GEM_ARG_WITH is expanded from... +configure.ac:323: the top level]) +m4trace:configure.ac:324: -1- AH_OUTPUT([HAVE_LINUX_VIDEODEV_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_LINUX_VIDEODEV_H]) +m4trace:configure.ac:324: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LINUX_VIDEODEV_H]) +m4trace:configure.ac:324: -1- m4_pattern_allow([^HAVE_LINUX_VIDEODEV_H$]) +m4trace:configure.ac:325: -1- AC_SUBST([GEM_LIB_LIBV4L1_CFLAGS]) +m4trace:configure.ac:325: -1- AC_SUBST_TRACE([GEM_LIB_LIBV4L1_CFLAGS]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^GEM_LIB_LIBV4L1_CFLAGS$]) +m4trace:configure.ac:325: -1- AC_SUBST([GEM_LIB_LIBV4L1_LIBS]) +m4trace:configure.ac:325: -1- AC_SUBST_TRACE([GEM_LIB_LIBV4L1_LIBS]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^GEM_LIB_LIBV4L1_LIBS$]) +m4trace:configure.ac:325: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:325: the top level]) +m4trace:configure.ac:325: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:325: the top level]) +m4trace:configure.ac:325: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:325: the top level]) +m4trace:configure.ac:325: -1- m4_pattern_allow([PKG_LIBV4L1_CFLAGS]) +m4trace:configure.ac:325: -1- m4_pattern_allow([PKG_LIBV4L1_LIBS]) +m4trace:configure.ac:325: -1- m4_pattern_allow([PKG_LIBV4L1]) +m4trace:configure.ac:325: -1- m4_pattern_allow([PKG_LIBV4L1_PKG_ERRORS]) +m4trace:configure.ac:325: -1- AC_SUBST([PKG_LIBV4L1_CFLAGS]) +m4trace:configure.ac:325: -1- AC_SUBST_TRACE([PKG_LIBV4L1_CFLAGS]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^PKG_LIBV4L1_CFLAGS$]) +m4trace:configure.ac:325: -1- AC_SUBST([PKG_LIBV4L1_LIBS]) +m4trace:configure.ac:325: -1- AC_SUBST_TRACE([PKG_LIBV4L1_LIBS]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^PKG_LIBV4L1_LIBS$]) +m4trace:configure.ac:325: -1- AH_OUTPUT([HAVE_LIBV4L1], [/* Define to 1 if you have the `v4l1\' library (-lv4l1). */ +@%:@undef HAVE_LIBV4L1]) +m4trace:configure.ac:325: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBV4L1]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_LIBV4L1$]) +m4trace:configure.ac:325: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBLIBV4L1]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_LIBLIBV4L1$]) +m4trace:configure.ac:325: -1- AH_OUTPUT([HAVE_LIBLIBV4L1], [/* video output */ +@%:@undef HAVE_LIBLIBV4L1]) +m4trace:configure.ac:325: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBV4L1]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_LIBV4L1$]) +m4trace:configure.ac:325: -1- AH_OUTPUT([HAVE_LIBV4L1], [/* video output */ +@%:@undef HAVE_LIBV4L1]) +m4trace:configure.ac:325: -1- AC_DEFINE_TRACE_LITERAL([HAVE_V4L1_OPEN]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_V4L1_OPEN$]) +m4trace:configure.ac:325: -1- AH_OUTPUT([HAVE_V4L1_OPEN], [/* Define to 1 if you have the `v4l1_open\' function. */ +@%:@undef HAVE_V4L1_OPEN]) +m4trace:configure.ac:325: -1- AM_CONDITIONAL([HAVE_LIB_LIBV4L1], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:325: -1- AC_SUBST([HAVE_LIB_LIBV4L1_TRUE]) +m4trace:configure.ac:325: -1- AC_SUBST_TRACE([HAVE_LIB_LIBV4L1_TRUE]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_LIB_LIBV4L1_TRUE$]) +m4trace:configure.ac:325: -1- AC_SUBST([HAVE_LIB_LIBV4L1_FALSE]) +m4trace:configure.ac:325: -1- AC_SUBST_TRACE([HAVE_LIB_LIBV4L1_FALSE]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_LIB_LIBV4L1_FALSE$]) +m4trace:configure.ac:325: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBV4L1_TRUE]) +m4trace:configure.ac:325: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBV4L1_FALSE]) +m4trace:configure.ac:332: -1- AM_CONDITIONAL([HAVE_V4L], [test "x${have_v4l}" != "xno"]) +m4trace:configure.ac:332: -1- AC_SUBST([HAVE_V4L_TRUE]) +m4trace:configure.ac:332: -1- AC_SUBST_TRACE([HAVE_V4L_TRUE]) +m4trace:configure.ac:332: -1- m4_pattern_allow([^HAVE_V4L_TRUE$]) +m4trace:configure.ac:332: -1- AC_SUBST([HAVE_V4L_FALSE]) +m4trace:configure.ac:332: -1- AC_SUBST_TRACE([HAVE_V4L_FALSE]) +m4trace:configure.ac:332: -1- m4_pattern_allow([^HAVE_V4L_FALSE$]) +m4trace:configure.ac:332: -1- _AM_SUBST_NOTMAKE([HAVE_V4L_TRUE]) +m4trace:configure.ac:332: -1- _AM_SUBST_NOTMAKE([HAVE_V4L_FALSE]) +m4trace:configure.ac:336: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:9: GEM_ARG_WITH is expanded from... +configure.ac:336: the top level]) +m4trace:configure.ac:337: -1- AH_OUTPUT([HAVE_LINUX_VIDEODEV2_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_LINUX_VIDEODEV2_H]) +m4trace:configure.ac:337: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LINUX_VIDEODEV2_H]) +m4trace:configure.ac:337: -1- m4_pattern_allow([^HAVE_LINUX_VIDEODEV2_H$]) +m4trace:configure.ac:338: -1- AC_SUBST([GEM_LIB_LIBV4L2_CFLAGS]) +m4trace:configure.ac:338: -1- AC_SUBST_TRACE([GEM_LIB_LIBV4L2_CFLAGS]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^GEM_LIB_LIBV4L2_CFLAGS$]) +m4trace:configure.ac:338: -1- AC_SUBST([GEM_LIB_LIBV4L2_LIBS]) +m4trace:configure.ac:338: -1- AC_SUBST_TRACE([GEM_LIB_LIBV4L2_LIBS]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^GEM_LIB_LIBV4L2_LIBS$]) +m4trace:configure.ac:338: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:338: the top level]) +m4trace:configure.ac:338: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:338: the top level]) +m4trace:configure.ac:338: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:338: the top level]) +m4trace:configure.ac:338: -1- m4_pattern_allow([PKG_LIBV4L2_CFLAGS]) +m4trace:configure.ac:338: -1- m4_pattern_allow([PKG_LIBV4L2_LIBS]) +m4trace:configure.ac:338: -1- m4_pattern_allow([PKG_LIBV4L2]) +m4trace:configure.ac:338: -1- m4_pattern_allow([PKG_LIBV4L2_PKG_ERRORS]) +m4trace:configure.ac:338: -1- AC_SUBST([PKG_LIBV4L2_CFLAGS]) +m4trace:configure.ac:338: -1- AC_SUBST_TRACE([PKG_LIBV4L2_CFLAGS]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^PKG_LIBV4L2_CFLAGS$]) +m4trace:configure.ac:338: -1- AC_SUBST([PKG_LIBV4L2_LIBS]) +m4trace:configure.ac:338: -1- AC_SUBST_TRACE([PKG_LIBV4L2_LIBS]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^PKG_LIBV4L2_LIBS$]) +m4trace:configure.ac:338: -1- AH_OUTPUT([HAVE_LIBV4L2], [/* Define to 1 if you have the `v4l2\' library (-lv4l2). */ +@%:@undef HAVE_LIBV4L2]) +m4trace:configure.ac:338: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBV4L2]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_LIBV4L2$]) +m4trace:configure.ac:338: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBLIBV4L2]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_LIBLIBV4L2$]) +m4trace:configure.ac:338: -1- AH_OUTPUT([HAVE_LIBLIBV4L2], [/* video input */ +@%:@undef HAVE_LIBLIBV4L2]) +m4trace:configure.ac:338: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBV4L2]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_LIBV4L2$]) +m4trace:configure.ac:338: -1- AH_OUTPUT([HAVE_LIBV4L2], [/* video input */ +@%:@undef HAVE_LIBV4L2]) +m4trace:configure.ac:338: -1- AC_DEFINE_TRACE_LITERAL([HAVE_V4L2_OPEN]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_V4L2_OPEN$]) +m4trace:configure.ac:338: -1- AH_OUTPUT([HAVE_V4L2_OPEN], [/* Define to 1 if you have the `v4l2_open\' function. */ +@%:@undef HAVE_V4L2_OPEN]) +m4trace:configure.ac:338: -1- AM_CONDITIONAL([HAVE_LIB_LIBV4L2], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:338: -1- AC_SUBST([HAVE_LIB_LIBV4L2_TRUE]) +m4trace:configure.ac:338: -1- AC_SUBST_TRACE([HAVE_LIB_LIBV4L2_TRUE]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_LIB_LIBV4L2_TRUE$]) +m4trace:configure.ac:338: -1- AC_SUBST([HAVE_LIB_LIBV4L2_FALSE]) +m4trace:configure.ac:338: -1- AC_SUBST_TRACE([HAVE_LIB_LIBV4L2_FALSE]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_LIB_LIBV4L2_FALSE$]) +m4trace:configure.ac:338: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBV4L2_TRUE]) +m4trace:configure.ac:338: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBV4L2_FALSE]) +m4trace:configure.ac:347: -1- AM_CONDITIONAL([HAVE_V4L2], [test "x${have_v4l2}" != "xno"]) +m4trace:configure.ac:347: -1- AC_SUBST([HAVE_V4L2_TRUE]) +m4trace:configure.ac:347: -1- AC_SUBST_TRACE([HAVE_V4L2_TRUE]) +m4trace:configure.ac:347: -1- m4_pattern_allow([^HAVE_V4L2_TRUE$]) +m4trace:configure.ac:347: -1- AC_SUBST([HAVE_V4L2_FALSE]) +m4trace:configure.ac:347: -1- AC_SUBST_TRACE([HAVE_V4L2_FALSE]) +m4trace:configure.ac:347: -1- m4_pattern_allow([^HAVE_V4L2_FALSE$]) +m4trace:configure.ac:347: -1- _AM_SUBST_NOTMAKE([HAVE_V4L2_TRUE]) +m4trace:configure.ac:347: -1- _AM_SUBST_NOTMAKE([HAVE_V4L2_FALSE]) +m4trace:configure.ac:351: -1- AC_SUBST([GEM_LIB_VFW32_CFLAGS]) +m4trace:configure.ac:351: -1- AC_SUBST_TRACE([GEM_LIB_VFW32_CFLAGS]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^GEM_LIB_VFW32_CFLAGS$]) +m4trace:configure.ac:351: -1- AC_SUBST([GEM_LIB_VFW32_LIBS]) +m4trace:configure.ac:351: -1- AC_SUBST_TRACE([GEM_LIB_VFW32_LIBS]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^GEM_LIB_VFW32_LIBS$]) +m4trace:configure.ac:351: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:351: the top level]) +m4trace:configure.ac:351: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:351: the top level]) +m4trace:configure.ac:351: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:351: the top level]) +m4trace:configure.ac:351: -1- m4_pattern_allow([PKG_VFW32_CFLAGS]) +m4trace:configure.ac:351: -1- m4_pattern_allow([PKG_VFW32_LIBS]) +m4trace:configure.ac:351: -1- m4_pattern_allow([PKG_VFW32]) +m4trace:configure.ac:351: -1- m4_pattern_allow([PKG_VFW32_PKG_ERRORS]) +m4trace:configure.ac:351: -1- AC_SUBST([PKG_VFW32_CFLAGS]) +m4trace:configure.ac:351: -1- AC_SUBST_TRACE([PKG_VFW32_CFLAGS]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^PKG_VFW32_CFLAGS$]) +m4trace:configure.ac:351: -1- AC_SUBST([PKG_VFW32_LIBS]) +m4trace:configure.ac:351: -1- AC_SUBST_TRACE([PKG_VFW32_LIBS]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^PKG_VFW32_LIBS$]) +m4trace:configure.ac:351: -1- AH_OUTPUT([HAVE_LIBVFW32], [/* Define to 1 if you have the `vfw32\' library (-lvfw32). */ +@%:@undef HAVE_LIBVFW32]) +m4trace:configure.ac:351: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBVFW32]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_LIBVFW32$]) +m4trace:configure.ac:351: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBVFW32]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_LIBVFW32$]) +m4trace:configure.ac:351: -1- AH_OUTPUT([HAVE_LIBVFW32], [/* video input */ +@%:@undef HAVE_LIBVFW32]) +m4trace:configure.ac:351: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBVFW32]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_LIBVFW32$]) +m4trace:configure.ac:351: -1- AH_OUTPUT([HAVE_LIBVFW32], [/* video input */ +@%:@undef HAVE_LIBVFW32]) +m4trace:configure.ac:351: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MAIN]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:351: -1- AH_OUTPUT([HAVE_MAIN], [/* Define to 1 if you have the `main\' function. */ +@%:@undef HAVE_MAIN]) +m4trace:configure.ac:351: -1- AM_CONDITIONAL([HAVE_LIB_VFW32], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:351: -1- AC_SUBST([HAVE_LIB_VFW32_TRUE]) +m4trace:configure.ac:351: -1- AC_SUBST_TRACE([HAVE_LIB_VFW32_TRUE]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_LIB_VFW32_TRUE$]) +m4trace:configure.ac:351: -1- AC_SUBST([HAVE_LIB_VFW32_FALSE]) +m4trace:configure.ac:351: -1- AC_SUBST_TRACE([HAVE_LIB_VFW32_FALSE]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_LIB_VFW32_FALSE$]) +m4trace:configure.ac:351: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_VFW32_TRUE]) +m4trace:configure.ac:351: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_VFW32_FALSE]) +m4trace:configure.ac:356: -1- AC_SUBST([GEM_LIB_LIBVLC_CFLAGS]) +m4trace:configure.ac:356: -1- AC_SUBST_TRACE([GEM_LIB_LIBVLC_CFLAGS]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^GEM_LIB_LIBVLC_CFLAGS$]) +m4trace:configure.ac:356: -1- AC_SUBST([GEM_LIB_LIBVLC_LIBS]) +m4trace:configure.ac:356: -1- AC_SUBST_TRACE([GEM_LIB_LIBVLC_LIBS]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^GEM_LIB_LIBVLC_LIBS$]) +m4trace:configure.ac:356: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:356: the top level]) +m4trace:configure.ac:356: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:356: the top level]) +m4trace:configure.ac:356: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:356: the top level]) +m4trace:configure.ac:356: -1- m4_pattern_allow([PKG_LIBVLC_CFLAGS]) +m4trace:configure.ac:356: -1- m4_pattern_allow([PKG_LIBVLC_LIBS]) +m4trace:configure.ac:356: -1- m4_pattern_allow([PKG_LIBVLC]) +m4trace:configure.ac:356: -1- m4_pattern_allow([PKG_LIBVLC_PKG_ERRORS]) +m4trace:configure.ac:356: -1- AC_SUBST([PKG_LIBVLC_CFLAGS]) +m4trace:configure.ac:356: -1- AC_SUBST_TRACE([PKG_LIBVLC_CFLAGS]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^PKG_LIBVLC_CFLAGS$]) +m4trace:configure.ac:356: -1- AC_SUBST([PKG_LIBVLC_LIBS]) +m4trace:configure.ac:356: -1- AC_SUBST_TRACE([PKG_LIBVLC_LIBS]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^PKG_LIBVLC_LIBS$]) +m4trace:configure.ac:356: -1- AH_OUTPUT([HAVE_LIBVLC], [/* Define to 1 if you have the `vlc\' library (-lvlc). */ +@%:@undef HAVE_LIBVLC]) +m4trace:configure.ac:356: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBVLC]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIBVLC$]) +m4trace:configure.ac:356: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBLIBVLC]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIBLIBVLC$]) +m4trace:configure.ac:356: -1- AH_OUTPUT([HAVE_LIBLIBVLC], [/* video input */ +@%:@undef HAVE_LIBLIBVLC]) +m4trace:configure.ac:356: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBVLC]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIBVLC$]) +m4trace:configure.ac:356: -1- AH_OUTPUT([HAVE_LIBVLC], [/* video input */ +@%:@undef HAVE_LIBVLC]) +m4trace:configure.ac:356: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBVLC_VIDEO_SET_CALLBACKS]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIBVLC_VIDEO_SET_CALLBACKS$]) +m4trace:configure.ac:356: -1- AH_OUTPUT([HAVE_LIBVLC_VIDEO_SET_CALLBACKS], [/* Define to 1 if you have the `libvlc_video_set_callbacks\' function. */ +@%:@undef HAVE_LIBVLC_VIDEO_SET_CALLBACKS]) +m4trace:configure.ac:356: -1- AM_CONDITIONAL([HAVE_LIB_LIBVLC], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:356: -1- AC_SUBST([HAVE_LIB_LIBVLC_TRUE]) +m4trace:configure.ac:356: -1- AC_SUBST_TRACE([HAVE_LIB_LIBVLC_TRUE]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIB_LIBVLC_TRUE$]) +m4trace:configure.ac:356: -1- AC_SUBST([HAVE_LIB_LIBVLC_FALSE]) +m4trace:configure.ac:356: -1- AC_SUBST_TRACE([HAVE_LIB_LIBVLC_FALSE]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIB_LIBVLC_FALSE$]) +m4trace:configure.ac:356: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBVLC_TRUE]) +m4trace:configure.ac:356: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBVLC_FALSE]) +m4trace:configure.ac:359: -1- AC_SUBST([GEM_LIB_ASSIMP_CFLAGS]) +m4trace:configure.ac:359: -1- AC_SUBST_TRACE([GEM_LIB_ASSIMP_CFLAGS]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^GEM_LIB_ASSIMP_CFLAGS$]) +m4trace:configure.ac:359: -1- AC_SUBST([GEM_LIB_ASSIMP_LIBS]) +m4trace:configure.ac:359: -1- AC_SUBST_TRACE([GEM_LIB_ASSIMP_LIBS]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^GEM_LIB_ASSIMP_LIBS$]) +m4trace:configure.ac:359: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:359: the top level]) +m4trace:configure.ac:359: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:359: the top level]) +m4trace:configure.ac:359: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:359: the top level]) +m4trace:configure.ac:359: -1- m4_pattern_allow([PKG_ASSIMP_CFLAGS]) +m4trace:configure.ac:359: -1- m4_pattern_allow([PKG_ASSIMP_LIBS]) +m4trace:configure.ac:359: -1- m4_pattern_allow([PKG_ASSIMP]) +m4trace:configure.ac:359: -1- m4_pattern_allow([PKG_ASSIMP_PKG_ERRORS]) +m4trace:configure.ac:359: -1- AC_SUBST([PKG_ASSIMP_CFLAGS]) +m4trace:configure.ac:359: -1- AC_SUBST_TRACE([PKG_ASSIMP_CFLAGS]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^PKG_ASSIMP_CFLAGS$]) +m4trace:configure.ac:359: -1- AC_SUBST([PKG_ASSIMP_LIBS]) +m4trace:configure.ac:359: -1- AC_SUBST_TRACE([PKG_ASSIMP_LIBS]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^PKG_ASSIMP_LIBS$]) +m4trace:configure.ac:359: -1- AH_OUTPUT([HAVE_LIBASSIMP], [/* Define to 1 if you have the `assimp\' library (-lassimp). */ +@%:@undef HAVE_LIBASSIMP]) +m4trace:configure.ac:359: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBASSIMP]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_LIBASSIMP$]) +m4trace:configure.ac:359: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBASSIMP]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_LIBASSIMP$]) +m4trace:configure.ac:359: -1- AH_OUTPUT([HAVE_LIBASSIMP], [/* 3D model loading */ +@%:@undef HAVE_LIBASSIMP]) +m4trace:configure.ac:359: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBASSIMP]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_LIBASSIMP$]) +m4trace:configure.ac:359: -1- AH_OUTPUT([HAVE_LIBASSIMP], [/* 3D model loading */ +@%:@undef HAVE_LIBASSIMP]) +m4trace:configure.ac:359: -1- AC_DEFINE_TRACE_LITERAL([HAVE_AIDETACHALLLOGSTREAMS]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_AIDETACHALLLOGSTREAMS$]) +m4trace:configure.ac:359: -1- AH_OUTPUT([HAVE_AIDETACHALLLOGSTREAMS], [/* Define to 1 if you have the `aiDetachAllLogStreams\' function. */ +@%:@undef HAVE_AIDETACHALLLOGSTREAMS]) +m4trace:configure.ac:359: -1- AM_CONDITIONAL([HAVE_LIB_ASSIMP], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:359: -1- AC_SUBST([HAVE_LIB_ASSIMP_TRUE]) +m4trace:configure.ac:359: -1- AC_SUBST_TRACE([HAVE_LIB_ASSIMP_TRUE]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_LIB_ASSIMP_TRUE$]) +m4trace:configure.ac:359: -1- AC_SUBST([HAVE_LIB_ASSIMP_FALSE]) +m4trace:configure.ac:359: -1- AC_SUBST_TRACE([HAVE_LIB_ASSIMP_FALSE]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_LIB_ASSIMP_FALSE$]) +m4trace:configure.ac:359: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_ASSIMP_TRUE]) +m4trace:configure.ac:359: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_ASSIMP_FALSE]) +m4trace:configure.ac:371: -1- AC_DEFINE_TRACE_LITERAL([GEM_DEFAULT_FONT]) +m4trace:configure.ac:371: -1- m4_pattern_allow([^GEM_DEFAULT_FONT$]) +m4trace:configure.ac:371: -1- AH_OUTPUT([GEM_DEFAULT_FONT], [/* default font for text rendering */ +@%:@undef GEM_DEFAULT_FONT]) +m4trace:configure.ac:376: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:28: GEM_ARG_ENABLE is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- AC_SUBST([GEM_PTHREAD_CFLAGS]) +m4trace:configure.ac:376: -1- AC_SUBST_TRACE([GEM_PTHREAD_CFLAGS]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^GEM_PTHREAD_CFLAGS$]) +m4trace:configure.ac:376: -1- AC_SUBST([GEM_PTHREAD_LIBS]) +m4trace:configure.ac:376: -1- AC_SUBST_TRACE([GEM_PTHREAD_LIBS]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^GEM_PTHREAD_LIBS$]) +m4trace:configure.ac:376: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete. +You should run autoupdate.], [../../lib/autoconf/lang.m4:125: AC_LANG_SAVE is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- _m4_warn([obsolete], [The macro `AC_LANG_C' is obsolete. +You should run autoupdate.], [../../lib/autoconf/c.m4:72: AC_LANG_C is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- AC_SUBST([ax_pthread_config]) +m4trace:configure.ac:376: -1- AC_SUBST_TRACE([ax_pthread_config]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^ax_pthread_config$]) +m4trace:configure.ac:376: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- AC_DEFINE_TRACE_LITERAL([PTHREAD_CREATE_JOINABLE]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^PTHREAD_CREATE_JOINABLE$]) +m4trace:configure.ac:376: -1- AH_OUTPUT([PTHREAD_CREATE_JOINABLE], [/* Define to necessary symbol if this constant uses a non-standard name on + your system. */ +@%:@undef PTHREAD_CREATE_JOINABLE]) +m4trace:configure.ac:376: -1- AC_SUBST([PTHREAD_CC]) +m4trace:configure.ac:376: -1- AC_SUBST_TRACE([PTHREAD_CC]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:376: -1- AC_SUBST([PTHREAD_LIBS]) +m4trace:configure.ac:376: -1- AC_SUBST_TRACE([PTHREAD_LIBS]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^PTHREAD_LIBS$]) +m4trace:configure.ac:376: -1- AC_SUBST([PTHREAD_CFLAGS]) +m4trace:configure.ac:376: -1- AC_SUBST_TRACE([PTHREAD_CFLAGS]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^PTHREAD_CFLAGS$]) +m4trace:configure.ac:376: -1- AC_SUBST([PTHREAD_CC]) +m4trace:configure.ac:376: -1- AC_SUBST_TRACE([PTHREAD_CC]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:376: -2- AC_DEFINE_TRACE_LITERAL([HAVE_PTHREADS]) +m4trace:configure.ac:376: -2- m4_pattern_allow([^HAVE_PTHREADS$]) +m4trace:configure.ac:376: -2- AH_OUTPUT([HAVE_PTHREADS], [/* Define if you have POSIX threads libraries and header files. */ +@%:@undef HAVE_PTHREADS]) +m4trace:configure.ac:376: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete. +You should run autoupdate.], [../../lib/autoconf/lang.m4:134: AC_LANG_RESTORE is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:379: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) +m4trace:configure.ac:379: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:379: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */ +@%:@undef STDC_HEADERS]) +m4trace:configure.ac:380: -1- AH_OUTPUT([HAVE_FCNTL_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_FCNTL_H]) +m4trace:configure.ac:380: -1- AH_OUTPUT([HAVE_FLOAT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_FLOAT_H]) +m4trace:configure.ac:380: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_MEMORY_H]) +m4trace:configure.ac:380: -1- AH_OUTPUT([HAVE_STDDEF_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDDEF_H]) +m4trace:configure.ac:380: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDLIB_H]) +m4trace:configure.ac:380: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STRING_H]) +m4trace:configure.ac:380: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STRINGS_H]) +m4trace:configure.ac:380: -1- AH_OUTPUT([HAVE_SYS_IOCTL_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_IOCTL_H]) +m4trace:configure.ac:380: -1- AH_OUTPUT([HAVE_SYS_TIME_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_TIME_H]) +m4trace:configure.ac:380: -1- AH_OUTPUT([HAVE_TERMIOS_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_TERMIOS_H]) +m4trace:configure.ac:380: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_UNISTD_H]) +m4trace:configure.ac:382: -1- AH_OUTPUT([HAVE_WORDEXP_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_WORDEXP_H]) +m4trace:configure.ac:382: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WORDEXP_H]) +m4trace:configure.ac:382: -1- m4_pattern_allow([^HAVE_WORDEXP_H$]) +m4trace:configure.ac:385: -1- AC_DEFINE_TRACE_LITERAL([HAVE__BOOL]) +m4trace:configure.ac:385: -1- m4_pattern_allow([^HAVE__BOOL$]) +m4trace:configure.ac:385: -1- AH_OUTPUT([HAVE__BOOL], [/* Define to 1 if the system has the type `_Bool\'. */ +@%:@undef HAVE__BOOL]) +m4trace:configure.ac:385: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STDBOOL_H]) +m4trace:configure.ac:385: -1- m4_pattern_allow([^HAVE_STDBOOL_H$]) +m4trace:configure.ac:385: -1- AH_OUTPUT([HAVE_STDBOOL_H], [/* Define to 1 if stdbool.h conforms to C99. */ +@%:@undef HAVE_STDBOOL_H]) +m4trace:configure.ac:386: -1- AC_DEFINE_TRACE_LITERAL([const]) +m4trace:configure.ac:386: -1- m4_pattern_allow([^const$]) +m4trace:configure.ac:386: -1- AH_OUTPUT([const], [/* Define to empty if `const\' does not conform to ANSI C. */ +@%:@undef const]) +m4trace:configure.ac:387: -1- AH_OUTPUT([inline], [/* Define to `__inline__\' or `__inline\' if that\'s what the C compiler + calls it, or to nothing if \'inline\' is not supported under any name. */ +#ifndef __cplusplus +#undef inline +#endif]) +m4trace:configure.ac:388: -1- AC_DEFINE_TRACE_LITERAL([size_t]) +m4trace:configure.ac:388: -1- m4_pattern_allow([^size_t$]) +m4trace:configure.ac:388: -1- AH_OUTPUT([size_t], [/* Define to `unsigned int\' if does not define. */ +@%:@undef size_t]) +m4trace:configure.ac:389: -1- AC_DEFINE_TRACE_LITERAL([TIME_WITH_SYS_TIME]) +m4trace:configure.ac:389: -1- m4_pattern_allow([^TIME_WITH_SYS_TIME$]) +m4trace:configure.ac:389: -1- AH_OUTPUT([TIME_WITH_SYS_TIME], [/* Define to 1 if you can safely include both and . */ +@%:@undef TIME_WITH_SYS_TIME]) +m4trace:configure.ac:391: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_UNSIGNED_INT]) +m4trace:configure.ac:391: -1- m4_pattern_allow([^SIZEOF_UNSIGNED_INT$]) +m4trace:configure.ac:391: -1- AH_OUTPUT([SIZEOF_UNSIGNED_INT], [/* The size of `unsigned int\', as computed by sizeof. */ +@%:@undef SIZEOF_UNSIGNED_INT]) +m4trace:configure.ac:392: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_VOID_P]) +m4trace:configure.ac:392: -1- m4_pattern_allow([^SIZEOF_VOID_P$]) +m4trace:configure.ac:392: -1- AH_OUTPUT([SIZEOF_VOID_P], [/* The size of `void *\', as computed by sizeof. */ +@%:@undef SIZEOF_VOID_P]) +m4trace:configure.ac:395: -1- AC_LIBSOURCE([error.h]) +m4trace:configure.ac:395: -1- AC_LIBSOURCE([error.c]) +m4trace:configure.ac:395: -1- AC_SUBST([LIB@&t@OBJS], ["$LIB@&t@OBJS error.$ac_objext"]) +m4trace:configure.ac:395: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:395: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:395: -1- AC_LIBSOURCE([error.c]) +m4trace:configure.ac:396: -1- AC_DEFINE_TRACE_LITERAL([pid_t]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^pid_t$]) +m4trace:configure.ac:396: -1- AH_OUTPUT([pid_t], [/* Define to `int\' if does not define. */ +@%:@undef pid_t]) +m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_VFORK_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_VFORK_H]) +m4trace:configure.ac:396: -1- AC_DEFINE_TRACE_LITERAL([HAVE_VFORK_H]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^HAVE_VFORK_H$]) +m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_FORK], [/* Define to 1 if you have the `fork\' function. */ +@%:@undef HAVE_FORK]) +m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_VFORK], [/* Define to 1 if you have the `vfork\' function. */ +@%:@undef HAVE_VFORK]) +m4trace:configure.ac:396: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WORKING_VFORK]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^HAVE_WORKING_VFORK$]) +m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_WORKING_VFORK], [/* Define to 1 if `vfork\' works. */ +@%:@undef HAVE_WORKING_VFORK]) +m4trace:configure.ac:396: -1- AC_DEFINE_TRACE_LITERAL([vfork]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^vfork$]) +m4trace:configure.ac:396: -1- AH_OUTPUT([vfork], [/* Define as `fork\' if `vfork\' does not work. */ +@%:@undef vfork]) +m4trace:configure.ac:396: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WORKING_FORK]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^HAVE_WORKING_FORK$]) +m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_WORKING_FORK], [/* Define to 1 if `fork\' works. */ +@%:@undef HAVE_WORKING_FORK]) +m4trace:configure.ac:397: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDLIB_H]) +m4trace:configure.ac:397: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STDLIB_H]) +m4trace:configure.ac:397: -1- m4_pattern_allow([^HAVE_STDLIB_H$]) +m4trace:configure.ac:397: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MALLOC]) +m4trace:configure.ac:397: -1- m4_pattern_allow([^HAVE_MALLOC$]) +m4trace:configure.ac:397: -1- AH_OUTPUT([HAVE_MALLOC], [/* Define to 1 if your system has a GNU libc compatible `malloc\' function, and + to 0 otherwise. */ +@%:@undef HAVE_MALLOC]) +m4trace:configure.ac:397: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MALLOC]) +m4trace:configure.ac:397: -1- m4_pattern_allow([^HAVE_MALLOC$]) +m4trace:configure.ac:397: -1- AC_SUBST([LIB@&t@OBJS], ["$LIB@&t@OBJS malloc.$ac_objext"]) +m4trace:configure.ac:397: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:397: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:397: -1- AC_LIBSOURCE([malloc.c]) +m4trace:configure.ac:397: -1- AC_DEFINE_TRACE_LITERAL([malloc]) +m4trace:configure.ac:397: -1- m4_pattern_allow([^malloc$]) +m4trace:configure.ac:397: -1- AH_OUTPUT([malloc], [/* Define to rpl_malloc if the replacement function should be used. */ +@%:@undef malloc]) +m4trace:configure.ac:398: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDLIB_H]) +m4trace:configure.ac:398: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_UNISTD_H]) +m4trace:configure.ac:398: -1- AH_OUTPUT([HAVE_SYS_PARAM_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_PARAM_H]) +m4trace:configure.ac:398: -1- AH_OUTPUT([HAVE_GETPAGESIZE], [/* Define to 1 if you have the `getpagesize\' function. */ +@%:@undef HAVE_GETPAGESIZE]) +m4trace:configure.ac:398: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETPAGESIZE]) +m4trace:configure.ac:398: -1- m4_pattern_allow([^HAVE_GETPAGESIZE$]) +m4trace:configure.ac:398: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MMAP]) +m4trace:configure.ac:398: -1- m4_pattern_allow([^HAVE_MMAP$]) +m4trace:configure.ac:398: -1- AH_OUTPUT([HAVE_MMAP], [/* Define to 1 if you have a working `mmap\' system call. */ +@%:@undef HAVE_MMAP]) +m4trace:configure.ac:399: -1- AH_OUTPUT([HAVE_BZERO], [/* Define to 1 if you have the `bzero\' function. */ +@%:@undef HAVE_BZERO]) +m4trace:configure.ac:399: -1- AH_OUTPUT([HAVE_FLOOR], [/* Define to 1 if you have the `floor\' function. */ +@%:@undef HAVE_FLOOR]) +m4trace:configure.ac:399: -1- AH_OUTPUT([HAVE_GETTIMEOFDAY], [/* Define to 1 if you have the `gettimeofday\' function. */ +@%:@undef HAVE_GETTIMEOFDAY]) +m4trace:configure.ac:399: -1- AH_OUTPUT([HAVE_MEMSET], [/* Define to 1 if you have the `memset\' function. */ +@%:@undef HAVE_MEMSET]) +m4trace:configure.ac:399: -1- AH_OUTPUT([HAVE_MUNMAP], [/* Define to 1 if you have the `munmap\' function. */ +@%:@undef HAVE_MUNMAP]) +m4trace:configure.ac:399: -1- AH_OUTPUT([HAVE_POW], [/* Define to 1 if you have the `pow\' function. */ +@%:@undef HAVE_POW]) +m4trace:configure.ac:399: -1- AH_OUTPUT([HAVE_SQRT], [/* Define to 1 if you have the `sqrt\' function. */ +@%:@undef HAVE_SQRT]) +m4trace:configure.ac:399: -1- AH_OUTPUT([HAVE_STRCHR], [/* Define to 1 if you have the `strchr\' function. */ +@%:@undef HAVE_STRCHR]) +m4trace:configure.ac:399: -1- AH_OUTPUT([HAVE_STRDUP], [/* Define to 1 if you have the `strdup\' function. */ +@%:@undef HAVE_STRDUP]) +m4trace:configure.ac:399: -1- AH_OUTPUT([HAVE_STRRCHR], [/* Define to 1 if you have the `strrchr\' function. */ +@%:@undef HAVE_STRRCHR]) +m4trace:configure.ac:399: -1- AH_OUTPUT([HAVE_STRSTR], [/* Define to 1 if you have the `strstr\' function. */ +@%:@undef HAVE_STRSTR]) +m4trace:configure.ac:399: -1- AH_OUTPUT([HAVE_STRNLEN], [/* Define to 1 if you have the `strnlen\' function. */ +@%:@undef HAVE_STRNLEN]) +m4trace:configure.ac:406: -2- AC_DEFINE_TRACE_LITERAL([HAVE_LQT_OPEN_WRITE]) +m4trace:configure.ac:406: -2- m4_pattern_allow([^HAVE_LQT_OPEN_WRITE$]) +m4trace:configure.ac:406: -2- AH_OUTPUT([HAVE_LQT_OPEN_WRITE], [/* film recording using quicktime4linux */ +@%:@undef HAVE_LQT_OPEN_WRITE]) +m4trace:configure.ac:413: -1- AC_SUBST([MAKEDEP_FLAGS], ["-MM"]) +m4trace:configure.ac:413: -1- AC_SUBST_TRACE([MAKEDEP_FLAGS]) +m4trace:configure.ac:413: -1- m4_pattern_allow([^MAKEDEP_FLAGS$]) +m4trace:configure.ac:415: -1- AC_SUBST([MAKEDEP_FLAGS], ["-M"]) +m4trace:configure.ac:415: -1- AC_SUBST_TRACE([MAKEDEP_FLAGS]) +m4trace:configure.ac:415: -1- m4_pattern_allow([^MAKEDEP_FLAGS$]) +m4trace:configure.ac:442: -1- AC_DEFINE_TRACE_LITERAL([GEM_VIDEOBACKEND]) +m4trace:configure.ac:442: -1- m4_pattern_allow([^GEM_VIDEOBACKEND$]) +m4trace:configure.ac:442: -1- AH_OUTPUT([GEM_VIDEOBACKEND], [/* backend for deprecated video-capture objects */ +@%:@undef GEM_VIDEOBACKEND]) +m4trace:configure.ac:460: -1- AC_DEFINE_TRACE_LITERAL([GEM_FILMBACKEND]) +m4trace:configure.ac:460: -1- m4_pattern_allow([^GEM_FILMBACKEND$]) +m4trace:configure.ac:460: -1- AH_OUTPUT([GEM_FILMBACKEND], [/* backend for deprecated film-decoding objects */ +@%:@undef GEM_FILMBACKEND]) +m4trace:configure.ac:530: -1- AC_SUBST([GEM_ARCH_CXXFLAGS]) +m4trace:configure.ac:530: -1- AC_SUBST_TRACE([GEM_ARCH_CXXFLAGS]) +m4trace:configure.ac:530: -1- m4_pattern_allow([^GEM_ARCH_CXXFLAGS$]) +m4trace:configure.ac:531: -1- AC_SUBST([GEM_ARCH_LDFLAGS]) +m4trace:configure.ac:531: -1- AC_SUBST_TRACE([GEM_ARCH_LDFLAGS]) +m4trace:configure.ac:531: -1- m4_pattern_allow([^GEM_ARCH_LDFLAGS$]) +m4trace:configure.ac:583: -1- AC_SUBST([GEM_DEFAULT_WINDOW]) +m4trace:configure.ac:583: -1- AC_SUBST_TRACE([GEM_DEFAULT_WINDOW]) +m4trace:configure.ac:583: -1- m4_pattern_allow([^GEM_DEFAULT_WINDOW$]) +m4trace:configure.ac:584: -1- AC_CONFIG_FILES([abstractions/gemdefaultwindow.pd]) +m4trace:configure.ac:588: -1- AM_CONDITIONAL([ENABLED], [test "x${enabled}" = "xyes"]) +m4trace:configure.ac:588: -1- AC_SUBST([ENABLED_TRUE]) +m4trace:configure.ac:588: -1- AC_SUBST_TRACE([ENABLED_TRUE]) +m4trace:configure.ac:588: -1- m4_pattern_allow([^ENABLED_TRUE$]) +m4trace:configure.ac:588: -1- AC_SUBST([ENABLED_FALSE]) +m4trace:configure.ac:588: -1- AC_SUBST_TRACE([ENABLED_FALSE]) +m4trace:configure.ac:588: -1- m4_pattern_allow([^ENABLED_FALSE$]) +m4trace:configure.ac:588: -1- _AM_SUBST_NOTMAKE([ENABLED_TRUE]) +m4trace:configure.ac:588: -1- _AM_SUBST_NOTMAKE([ENABLED_FALSE]) +m4trace:configure.ac:589: -1- AM_CONDITIONAL([DISABLED], [test "x${enabled}" = "xno"]) +m4trace:configure.ac:589: -1- AC_SUBST([DISABLED_TRUE]) +m4trace:configure.ac:589: -1- AC_SUBST_TRACE([DISABLED_TRUE]) +m4trace:configure.ac:589: -1- m4_pattern_allow([^DISABLED_TRUE$]) +m4trace:configure.ac:589: -1- AC_SUBST([DISABLED_FALSE]) +m4trace:configure.ac:589: -1- AC_SUBST_TRACE([DISABLED_FALSE]) +m4trace:configure.ac:589: -1- m4_pattern_allow([^DISABLED_FALSE$]) +m4trace:configure.ac:589: -1- _AM_SUBST_NOTMAKE([DISABLED_TRUE]) +m4trace:configure.ac:589: -1- _AM_SUBST_NOTMAKE([DISABLED_FALSE]) +m4trace:configure.ac:598: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) +m4trace:configure.ac:598: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:598: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:598: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) +m4trace:configure.ac:598: -1- AC_SUBST_TRACE([LTLIBOBJS]) +m4trace:configure.ac:598: -1- m4_pattern_allow([^LTLIBOBJS$]) +m4trace:configure.ac:598: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) +m4trace:configure.ac:598: -1- AC_SUBST([am__EXEEXT_TRUE]) +m4trace:configure.ac:598: -1- AC_SUBST_TRACE([am__EXEEXT_TRUE]) +m4trace:configure.ac:598: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) +m4trace:configure.ac:598: -1- AC_SUBST([am__EXEEXT_FALSE]) +m4trace:configure.ac:598: -1- AC_SUBST_TRACE([am__EXEEXT_FALSE]) +m4trace:configure.ac:598: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) +m4trace:configure.ac:598: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) +m4trace:configure.ac:598: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) +m4trace:configure.ac:598: -1- AC_SUBST_TRACE([top_builddir]) +m4trace:configure.ac:598: -1- AC_SUBST_TRACE([top_build_prefix]) +m4trace:configure.ac:598: -1- AC_SUBST_TRACE([srcdir]) +m4trace:configure.ac:598: -1- AC_SUBST_TRACE([abs_srcdir]) +m4trace:configure.ac:598: -1- AC_SUBST_TRACE([top_srcdir]) +m4trace:configure.ac:598: -1- AC_SUBST_TRACE([abs_top_srcdir]) +m4trace:configure.ac:598: -1- AC_SUBST_TRACE([builddir]) +m4trace:configure.ac:598: -1- AC_SUBST_TRACE([abs_builddir]) +m4trace:configure.ac:598: -1- AC_SUBST_TRACE([abs_top_builddir]) +m4trace:configure.ac:598: -1- AC_SUBST_TRACE([INSTALL]) +m4trace:configure.ac:598: -1- AC_SUBST_TRACE([MKDIR_P]) +m4trace:configure.ac:598: -1- AC_REQUIRE_AUX_FILE([ltmain.sh]) diff --git a/src/Gem/autom4te.cache/traces.2 b/src/Gem/autom4te.cache/traces.2 new file mode 100644 index 0000000..fc82f40 --- /dev/null +++ b/src/Gem/autom4te.cache/traces.2 @@ -0,0 +1,5667 @@ +m4trace:/usr/share/aclocal/argz.m4:12: -1- AC_DEFUN([gl_FUNC_ARGZ], [gl_PREREQ_ARGZ + +AC_CHECK_HEADERS([argz.h], [], [], [AC_INCLUDES_DEFAULT]) + +AC_CHECK_TYPES([error_t], + [], + [AC_DEFINE([error_t], [int], + [Define to a type to use for `error_t' if it is not otherwise available.]) + AC_DEFINE([__error_t_defined], [1], [Define so that glibc/gnulib argp.h + does not typedef error_t.])], + [#if defined(HAVE_ARGZ_H) +# include +#endif]) + +ARGZ_H= +AC_CHECK_FUNCS([argz_add argz_append argz_count argz_create_sep argz_insert \ + argz_next argz_stringify], [], [ARGZ_H=argz.h; AC_LIBOBJ([argz])]) + +dnl if have system argz functions, allow forced use of +dnl libltdl-supplied implementation (and default to do so +dnl on "known bad" systems). Could use a runtime check, but +dnl (a) detecting malloc issues is notoriously unreliable +dnl (b) only known system that declares argz functions, +dnl provides them, yet they are broken, is cygwin +dnl releases prior to 16-Mar-2007 (1.5.24 and earlier) +dnl So, it's more straightforward simply to special case +dnl this for known bad systems. +AS_IF([test -z "$ARGZ_H"], + [AC_CACHE_CHECK( + [if argz actually works], + [lt_cv_sys_argz_works], + [[case $host_os in #( + *cygwin*) + lt_cv_sys_argz_works=no + if test "$cross_compiling" != no; then + lt_cv_sys_argz_works="guessing no" + else + lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' + save_IFS=$IFS + IFS=-. + set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` + IFS=$save_IFS + lt_os_major=${2-0} + lt_os_minor=${3-0} + lt_os_micro=${4-0} + if test "$lt_os_major" -gt 1 \ + || { test "$lt_os_major" -eq 1 \ + && { test "$lt_os_minor" -gt 5 \ + || { test "$lt_os_minor" -eq 5 \ + && test "$lt_os_micro" -gt 24; }; }; }; then + lt_cv_sys_argz_works=yes + fi + fi + ;; #( + *) lt_cv_sys_argz_works=yes ;; + esac]]) + AS_IF([test "$lt_cv_sys_argz_works" = yes], + [AC_DEFINE([HAVE_WORKING_ARGZ], 1, + [This value is set to 1 to indicate that the system argz facility works])], + [ARGZ_H=argz.h + AC_LIBOBJ([argz])])]) + +AC_SUBST([ARGZ_H]) +]) +m4trace:/usr/share/aclocal/argz.m4:79: -1- AC_DEFUN([gl_PREREQ_ARGZ], [:]) +m4trace:/usr/share/aclocal/ltdl.m4:16: -1- AC_DEFUN([LT_CONFIG_LTDL_DIR], [AC_BEFORE([$0], [LTDL_INIT]) +_$0($*) +]) +m4trace:/usr/share/aclocal/ltdl.m4:68: -1- AC_DEFUN([LTDL_CONVENIENCE], [AC_BEFORE([$0], [LTDL_INIT])dnl +dnl Although the argument is deprecated and no longer documented, +dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one +dnl here make sure it is the same as any other declaration of libltdl's +dnl location! This also ensures lt_ltdl_dir is set when configure.ac is +dnl not yet using an explicit LT_CONFIG_LTDL_DIR. +m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl +_$0() +]) +m4trace:/usr/share/aclocal/ltdl.m4:81: -1- AU_DEFUN([AC_LIBLTDL_CONVENIENCE], [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) +_LTDL_CONVENIENCE]) +m4trace:/usr/share/aclocal/ltdl.m4:81: -1- AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBLTDL_CONVENIENCE' is obsolete. +You should run autoupdate.])dnl +_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) +_LTDL_CONVENIENCE]) +m4trace:/usr/share/aclocal/ltdl.m4:124: -1- AC_DEFUN([LTDL_INSTALLABLE], [AC_BEFORE([$0], [LTDL_INIT])dnl +dnl Although the argument is deprecated and no longer documented, +dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one +dnl here make sure it is the same as any other declaration of libltdl's +dnl location! This also ensures lt_ltdl_dir is set when configure.ac is +dnl not yet using an explicit LT_CONFIG_LTDL_DIR. +m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl +_$0() +]) +m4trace:/usr/share/aclocal/ltdl.m4:137: -1- AU_DEFUN([AC_LIBLTDL_INSTALLABLE], [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) +_LTDL_INSTALLABLE]) +m4trace:/usr/share/aclocal/ltdl.m4:137: -1- AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBLTDL_INSTALLABLE' is obsolete. +You should run autoupdate.])dnl +_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) +_LTDL_INSTALLABLE]) +m4trace:/usr/share/aclocal/ltdl.m4:213: -1- AC_DEFUN([_LT_LIBOBJ], [ + m4_pattern_allow([^_LT_LIBOBJS$]) + _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext" +]) +m4trace:/usr/share/aclocal/ltdl.m4:226: -1- AC_DEFUN([LTDL_INIT], [dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +dnl We need to keep our own list of libobjs separate from our parent project, +dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while +dnl we look for our own LIBOBJs. +m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ])) +m4_pushdef([AC_LIBSOURCES]) + +dnl If not otherwise defined, default to the 1.5.x compatible subproject mode: +m4_if(_LTDL_MODE, [], + [m4_define([_LTDL_MODE], m4_default([$2], [subproject])) + m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])], + [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])]) + +AC_ARG_WITH([included_ltdl], + [AS_HELP_STRING([--with-included-ltdl], + [use the GNU ltdl sources included here])]) + +if test "x$with_included_ltdl" != xyes; then + # We are not being forced to use the included libltdl sources, so + # decide whether there is a useful installed version we can use. + AC_CHECK_HEADER([ltdl.h], + [AC_CHECK_DECL([lt_dlinterface_register], + [AC_CHECK_LIB([ltdl], [lt_dladvise_preload], + [with_included_ltdl=no], + [with_included_ltdl=yes])], + [with_included_ltdl=yes], + [AC_INCLUDES_DEFAULT + #include ])], + [with_included_ltdl=yes], + [AC_INCLUDES_DEFAULT] + ) +fi + +dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE +dnl was called yet, then for old times' sake, we assume libltdl is in an +dnl eponymous directory: +AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])]) + +AC_ARG_WITH([ltdl_include], + [AS_HELP_STRING([--with-ltdl-include=DIR], + [use the ltdl headers installed in DIR])]) + +if test -n "$with_ltdl_include"; then + if test -f "$with_ltdl_include/ltdl.h"; then : + else + AC_MSG_ERROR([invalid ltdl include directory: `$with_ltdl_include']) + fi +else + with_ltdl_include=no +fi + +AC_ARG_WITH([ltdl_lib], + [AS_HELP_STRING([--with-ltdl-lib=DIR], + [use the libltdl.la installed in DIR])]) + +if test -n "$with_ltdl_lib"; then + if test -f "$with_ltdl_lib/libltdl.la"; then : + else + AC_MSG_ERROR([invalid ltdl library directory: `$with_ltdl_lib']) + fi +else + with_ltdl_lib=no +fi + +case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in + ,yes,no,no,) + m4_case(m4_default(_LTDL_TYPE, [convenience]), + [convenience], [_LTDL_CONVENIENCE], + [installable], [_LTDL_INSTALLABLE], + [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)]) + ;; + ,no,no,no,) + # If the included ltdl is not to be used, then use the + # preinstalled libltdl we found. + AC_DEFINE([HAVE_LTDL], [1], + [Define this if a modern libltdl is already installed]) + LIBLTDL=-lltdl + LTDLDEPS= + LTDLINCL= + ;; + ,no*,no,*) + AC_MSG_ERROR([`--with-ltdl-include' and `--with-ltdl-lib' options must be used together]) + ;; + *) with_included_ltdl=no + LIBLTDL="-L$with_ltdl_lib -lltdl" + LTDLDEPS= + LTDLINCL="-I$with_ltdl_include" + ;; +esac +INCLTDL="$LTDLINCL" + +# Report our decision... +AC_MSG_CHECKING([where to find libltdl headers]) +AC_MSG_RESULT([$LTDLINCL]) +AC_MSG_CHECKING([where to find libltdl library]) +AC_MSG_RESULT([$LIBLTDL]) + +_LTDL_SETUP + +dnl restore autoconf definition. +m4_popdef([AC_LIBOBJ]) +m4_popdef([AC_LIBSOURCES]) + +AC_CONFIG_COMMANDS_PRE([ + _ltdl_libobjs= + _ltdl_ltlibobjs= + if test -n "$_LT_LIBOBJS"; then + # Remove the extension. + _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do + _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" + _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" + done + fi + AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs]) + AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs]) +]) + +# Only expand once: +m4_define([LTDL_INIT]) +]) +m4trace:/usr/share/aclocal/ltdl.m4:352: -1- AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:352: -1- AC_DEFUN([AC_LIB_LTDL], [AC_DIAGNOSE([obsolete], [The macro `AC_LIB_LTDL' is obsolete. +You should run autoupdate.])dnl +LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:353: -1- AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:353: -1- AC_DEFUN([AC_WITH_LTDL], [AC_DIAGNOSE([obsolete], [The macro `AC_WITH_LTDL' is obsolete. +You should run autoupdate.])dnl +LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:354: -1- AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:354: -1- AC_DEFUN([LT_WITH_LTDL], [AC_DIAGNOSE([obsolete], [The macro `LT_WITH_LTDL' is obsolete. +You should run autoupdate.])dnl +LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:367: -1- AC_DEFUN([_LTDL_SETUP], [AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([LT_SYS_MODULE_EXT])dnl +AC_REQUIRE([LT_SYS_MODULE_PATH])dnl +AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl +AC_REQUIRE([LT_LIB_DLLOAD])dnl +AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl +AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl +AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl +AC_REQUIRE([gl_FUNC_ARGZ])dnl + +m4_require([_LT_CHECK_OBJDIR])dnl +m4_require([_LT_HEADER_DLFCN])dnl +m4_require([_LT_CHECK_DLPREOPEN])dnl +m4_require([_LT_DECL_SED])dnl + +dnl Don't require this, or it will be expanded earlier than the code +dnl that sets the variables it relies on: +_LT_ENABLE_INSTALL + +dnl _LTDL_MODE specific code must be called at least once: +_LTDL_MODE_DISPATCH + +# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS +# the user used. This is so that ltdl.h can pick up the parent projects +# config.h file, The first file in AC_CONFIG_HEADERS must contain the +# definitions required by ltdl.c. +# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). +AC_CONFIG_COMMANDS_PRE([dnl +m4_pattern_allow([^LT_CONFIG_H$])dnl +m4_ifset([AH_HEADER], + [LT_CONFIG_H=AH_HEADER], + [m4_ifset([AC_LIST_HEADERS], + [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[ ]]*,,;s,[[ :]].*$,,'`], + [])])]) +AC_SUBST([LT_CONFIG_H]) + +AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h], + [], [], [AC_INCLUDES_DEFAULT]) + +AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])]) +AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])]) + +m4_pattern_allow([LT_LIBEXT])dnl +AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension]) + +name= +eval "lt_libprefix=\"$libname_spec\"" +m4_pattern_allow([LT_LIBPREFIX])dnl +AC_DEFINE_UNQUOTED([LT_LIBPREFIX],["$lt_libprefix"],[The archive prefix]) + +name=ltdl +eval "LTDLOPEN=\"$libname_spec\"" +AC_SUBST([LTDLOPEN]) +]) +m4trace:/usr/share/aclocal/ltdl.m4:443: -1- AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_CACHE_CHECK([whether deplibs are loaded by dlopen], + [lt_cv_sys_dlopen_deplibs], + [# PORTME does your system automatically load deplibs for dlopen? + # or its logical equivalent (e.g. shl_load for HP-UX < 11) + # For now, we just catch OSes we know something about -- in the + # future, we'll try test this programmatically. + lt_cv_sys_dlopen_deplibs=unknown + case $host_os in + aix3*|aix4.1.*|aix4.2.*) + # Unknown whether this is true for these versions of AIX, but + # we want this `case' here to explicitly catch those versions. + lt_cv_sys_dlopen_deplibs=unknown + ;; + aix[[4-9]]*) + lt_cv_sys_dlopen_deplibs=yes + ;; + amigaos*) + case $host_cpu in + powerpc) + lt_cv_sys_dlopen_deplibs=no + ;; + esac + ;; + darwin*) + # Assuming the user has installed a libdl from somewhere, this is true + # If you are looking for one http://www.opendarwin.org/projects/dlcompat + lt_cv_sys_dlopen_deplibs=yes + ;; + freebsd* | dragonfly*) + lt_cv_sys_dlopen_deplibs=yes + ;; + gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) + # GNU and its variants, using gnu ld.so (Glibc) + lt_cv_sys_dlopen_deplibs=yes + ;; + hpux10*|hpux11*) + lt_cv_sys_dlopen_deplibs=yes + ;; + interix*) + lt_cv_sys_dlopen_deplibs=yes + ;; + irix[[12345]]*|irix6.[[01]]*) + # Catch all versions of IRIX before 6.2, and indicate that we don't + # know how it worked for any of those versions. + lt_cv_sys_dlopen_deplibs=unknown + ;; + irix*) + # The case above catches anything before 6.2, and it's known that + # at 6.2 and later dlopen does load deplibs. + lt_cv_sys_dlopen_deplibs=yes + ;; + netbsd* | netbsdelf*-gnu) + lt_cv_sys_dlopen_deplibs=yes + ;; + openbsd*) + lt_cv_sys_dlopen_deplibs=yes + ;; + osf[[1234]]*) + # dlopen did load deplibs (at least at 4.x), but until the 5.x series, + # it did *not* use an RPATH in a shared library to find objects the + # library depends on, so we explicitly say `no'. + lt_cv_sys_dlopen_deplibs=no + ;; + osf5.0|osf5.0a|osf5.1) + # dlopen *does* load deplibs and with the right loader patch applied + # it even uses RPATH in a shared library to search for shared objects + # that the library depends on, but there's no easy way to know if that + # patch is installed. Since this is the case, all we can really + # say is unknown -- it depends on the patch being installed. If + # it is, this changes to `yes'. Without it, it would be `no'. + lt_cv_sys_dlopen_deplibs=unknown + ;; + osf*) + # the two cases above should catch all versions of osf <= 5.1. Read + # the comments above for what we know about them. + # At > 5.1, deplibs are loaded *and* any RPATH in a shared library + # is used to find them so we can finally say `yes'. + lt_cv_sys_dlopen_deplibs=yes + ;; + qnx*) + lt_cv_sys_dlopen_deplibs=yes + ;; + solaris*) + lt_cv_sys_dlopen_deplibs=yes + ;; + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + libltdl_cv_sys_dlopen_deplibs=yes + ;; + esac + ]) +if test "$lt_cv_sys_dlopen_deplibs" != yes; then + AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1], + [Define if the OS needs help to load dependent libraries for dlopen().]) +fi +]) +m4trace:/usr/share/aclocal/ltdl.m4:542: -1- AU_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [m4_if($#, 0, [LT_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:542: -1- AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SYS_DLOPEN_DEPLIBS' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:549: -1- AC_DEFUN([LT_SYS_MODULE_EXT], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl +AC_CACHE_CHECK([which extension is used for runtime loadable modules], + [libltdl_cv_shlibext], +[ +module=yes +eval libltdl_cv_shlibext=$shrext_cmds +module=no +eval libltdl_cv_shrext=$shrext_cmds + ]) +if test -n "$libltdl_cv_shlibext"; then + m4_pattern_allow([LT_MODULE_EXT])dnl + AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"], + [Define to the extension used for runtime loadable modules, say, ".so".]) +fi +if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then + m4_pattern_allow([LT_SHARED_EXT])dnl + AC_DEFINE_UNQUOTED([LT_SHARED_EXT], ["$libltdl_cv_shrext"], + [Define to the shared library suffix, say, ".dylib".]) +fi +]) +m4trace:/usr/share/aclocal/ltdl.m4:572: -1- AU_DEFUN([AC_LTDL_SHLIBEXT], [m4_if($#, 0, [LT_SYS_MODULE_EXT], [LT_SYS_MODULE_EXT($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:572: -1- AC_DEFUN([AC_LTDL_SHLIBEXT], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SHLIBEXT' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_MODULE_EXT], [LT_SYS_MODULE_EXT($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:579: -1- AC_DEFUN([LT_SYS_MODULE_PATH], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl +AC_CACHE_CHECK([which variable specifies run-time module search path], + [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"]) +if test -n "$lt_cv_module_path_var"; then + m4_pattern_allow([LT_MODULE_PATH_VAR])dnl + AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"], + [Define to the name of the environment variable that determines the run-time module search path.]) +fi +]) +m4trace:/usr/share/aclocal/ltdl.m4:591: -1- AU_DEFUN([AC_LTDL_SHLIBPATH], [m4_if($#, 0, [LT_SYS_MODULE_PATH], [LT_SYS_MODULE_PATH($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:591: -1- AC_DEFUN([AC_LTDL_SHLIBPATH], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SHLIBPATH' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_MODULE_PATH], [LT_SYS_MODULE_PATH($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:598: -1- AC_DEFUN([LT_SYS_DLSEARCH_PATH], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl +AC_CACHE_CHECK([for the default library search path], + [lt_cv_sys_dlsearch_path], + [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"]) +if test -n "$lt_cv_sys_dlsearch_path"; then + sys_dlsearch_path= + for dir in $lt_cv_sys_dlsearch_path; do + if test -z "$sys_dlsearch_path"; then + sys_dlsearch_path="$dir" + else + sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" + fi + done + m4_pattern_allow([LT_DLSEARCH_PATH])dnl + AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"], + [Define to the system default library search path.]) +fi +]) +m4trace:/usr/share/aclocal/ltdl.m4:619: -1- AU_DEFUN([AC_LTDL_SYSSEARCHPATH], [m4_if($#, 0, [LT_SYS_DLSEARCH_PATH], [LT_SYS_DLSEARCH_PATH($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:619: -1- AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SYSSEARCHPATH' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_DLSEARCH_PATH], [LT_SYS_DLSEARCH_PATH($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:645: -1- AC_DEFUN([LT_LIB_DLLOAD], [m4_pattern_allow([^LT_DLLOADERS$]) +LT_DLLOADERS= +AC_SUBST([LT_DLLOADERS]) + +AC_LANG_PUSH([C]) + +LIBADD_DLOPEN= +AC_SEARCH_LIBS([dlopen], [dl], + [AC_DEFINE([HAVE_LIBDL], [1], + [Define if you have the libdl library or equivalent.]) + if test "$ac_cv_search_dlopen" != "none required" ; then + LIBADD_DLOPEN="-ldl" + fi + libltdl_cv_lib_dl_dlopen="yes" + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], + [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H +# include +#endif + ]], [[dlopen(0, 0);]])], + [AC_DEFINE([HAVE_LIBDL], [1], + [Define if you have the libdl library or equivalent.]) + libltdl_cv_func_dlopen="yes" + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], + [AC_CHECK_LIB([svld], [dlopen], + [AC_DEFINE([HAVE_LIBDL], [1], + [Define if you have the libdl library or equivalent.]) + LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])]) +if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes +then + lt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBADD_DLOPEN" + AC_CHECK_FUNCS([dlerror]) + LIBS="$lt_save_LIBS" +fi +AC_SUBST([LIBADD_DLOPEN]) + +LIBADD_SHL_LOAD= +AC_CHECK_FUNC([shl_load], + [AC_DEFINE([HAVE_SHL_LOAD], [1], + [Define if you have the shl_load function.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"], + [AC_CHECK_LIB([dld], [shl_load], + [AC_DEFINE([HAVE_SHL_LOAD], [1], + [Define if you have the shl_load function.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" + LIBADD_SHL_LOAD="-ldld"])]) +AC_SUBST([LIBADD_SHL_LOAD]) + +case $host_os in +darwin[[1567]].*) +# We only want this for pre-Mac OS X 10.4. + AC_CHECK_FUNC([_dyld_func_lookup], + [AC_DEFINE([HAVE_DYLD], [1], + [Define if you have the _dyld_func_lookup function.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"]) + ;; +beos*) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" + ;; +cygwin* | mingw* | os2* | pw32*) + AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include ]]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" + ;; +esac + +AC_CHECK_LIB([dld], [dld_link], + [AC_DEFINE([HAVE_DLD], [1], + [Define if you have the GNU dld library.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"]) +AC_SUBST([LIBADD_DLD_LINK]) + +m4_pattern_allow([^LT_DLPREOPEN$]) +LT_DLPREOPEN= +if test -n "$LT_DLLOADERS" +then + for lt_loader in $LT_DLLOADERS; do + LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " + done + AC_DEFINE([HAVE_LIBDLLOADER], [1], + [Define if libdlloader will be built on this platform]) +fi +AC_SUBST([LT_DLPREOPEN]) + +dnl This isn't used anymore, but set it for backwards compatibility +LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" +AC_SUBST([LIBADD_DL]) + +AC_LANG_POP +]) +m4trace:/usr/share/aclocal/ltdl.m4:738: -1- AU_DEFUN([AC_LTDL_DLLIB], [m4_if($#, 0, [LT_LIB_DLLOAD], [LT_LIB_DLLOAD($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:738: -1- AC_DEFUN([AC_LTDL_DLLIB], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_DLLIB' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_LIB_DLLOAD], [LT_LIB_DLLOAD($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:746: -1- AC_DEFUN([LT_SYS_SYMBOL_USCORE], [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +AC_CACHE_CHECK([for _ prefix in compiled symbols], + [lt_cv_sys_symbol_underscore], + [lt_cv_sys_symbol_underscore=no + cat > conftest.$ac_ext <<_LT_EOF +void nm_test_func(){} +int main(){nm_test_func;return 0;} +_LT_EOF + if AC_TRY_EVAL(ac_compile); then + # Now try to grab the symbols. + ac_nlist=conftest.nm + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then + # See whether the symbols have a leading underscore. + if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then + lt_cv_sys_symbol_underscore=yes + else + if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then + : + else + echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD + fi + fi + else + echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.c >&AS_MESSAGE_LOG_FD + fi + rm -rf conftest* + ]) + sys_symbol_underscore=$lt_cv_sys_symbol_underscore + AC_SUBST([sys_symbol_underscore]) +]) +m4trace:/usr/share/aclocal/ltdl.m4:783: -1- AU_DEFUN([AC_LTDL_SYMBOL_USCORE], [m4_if($#, 0, [LT_SYS_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:783: -1- AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SYMBOL_USCORE' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:790: -1- AC_DEFUN([LT_FUNC_DLSYM_USCORE], [AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl +if test x"$lt_cv_sys_symbol_underscore" = xyes; then + if test x"$libltdl_cv_func_dlopen" = xyes || + test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then + AC_CACHE_CHECK([whether we have to add an underscore for dlsym], + [libltdl_cv_need_uscore], + [libltdl_cv_need_uscore=unknown + save_LIBS="$LIBS" + LIBS="$LIBS $LIBADD_DLOPEN" + _LT_TRY_DLOPEN_SELF( + [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes], + [], [libltdl_cv_need_uscore=cross]) + LIBS="$save_LIBS" + ]) + fi +fi + +if test x"$libltdl_cv_need_uscore" = xyes; then + AC_DEFINE([NEED_USCORE], [1], + [Define if dlsym() requires a leading underscore in symbol names.]) +fi +]) +m4trace:/usr/share/aclocal/ltdl.m4:815: -1- AU_DEFUN([AC_LTDL_DLSYM_USCORE], [m4_if($#, 0, [LT_FUNC_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:815: -1- AC_DEFUN([AC_LTDL_DLSYM_USCORE], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_DLSYM_USCORE' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_FUNC_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE($@)])]) +m4trace:/usr/share/aclocal-1.11/amversion.m4:17: -1- AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.11.6], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) +m4trace:/usr/share/aclocal-1.11/amversion.m4:36: -1- AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11.6])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) +m4trace:/usr/share/aclocal-1.11/auxdir.m4:49: -1- AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) +m4trace:/usr/share/aclocal-1.11/cond.m4:15: -1- AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) +m4trace:/usr/share/aclocal-1.11/depend.m4:28: -1- AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], UPC, [depcc="$UPC" am_compiler_list=], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) +m4trace:/usr/share/aclocal-1.11/depend.m4:164: -1- AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) +m4trace:/usr/share/aclocal-1.11/depend.m4:172: -1- AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl +]) +m4trace:/usr/share/aclocal-1.11/depout.m4:14: -1- AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +]) +m4trace:/usr/share/aclocal-1.11/depout.m4:75: -1- AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) +m4trace:/usr/share/aclocal-1.11/init.m4:26: -1- AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl +]) +m4trace:/usr/share/aclocal-1.11/init.m4:126: -1- AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) +m4trace:/usr/share/aclocal-1.11/install-sh.m4:14: -1- AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST(install_sh)]) +m4trace:/usr/share/aclocal-1.11/lead-dot.m4:12: -1- AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) +m4trace:/usr/share/aclocal-1.11/make.m4:14: -1- AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) +m4trace:/usr/share/aclocal-1.11/missing.m4:14: -1- AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) +m4trace:/usr/share/aclocal-1.11/missing.m4:24: -1- AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) +m4trace:/usr/share/aclocal-1.11/mkdirp.m4:14: -1- AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) +m4trace:/usr/share/aclocal-1.11/options.m4:14: -1- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) +m4trace:/usr/share/aclocal-1.11/options.m4:20: -1- AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) +m4trace:/usr/share/aclocal-1.11/options.m4:26: -1- AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) +m4trace:/usr/share/aclocal-1.11/options.m4:32: -1- AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) +m4trace:/usr/share/aclocal-1.11/runlog.m4:14: -1- AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + (exit $ac_status); }]) +m4trace:/usr/share/aclocal-1.11/sanity.m4:14: -1- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) +m4trace:/usr/share/aclocal-1.11/silent.m4:14: -1- AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], +[ --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0')]) +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +dnl +dnl A few `make' implementations (e.g., NonStop OS and NextStep) +dnl do not support nested variable expansions. +dnl See automake bug#9928 and bug#10237. +am_make=${MAKE-make} +AC_CACHE_CHECK([whether $am_make supports nested variables], + [am_cv_make_support_nested_variables], + [if AS_ECHO([['TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi]) +if test $am_cv_make_support_nested_variables = yes; then + dnl Using `$V' instead of `$(V)' breaks IRIX make. + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AC_SUBST([AM_V])dnl +AM_SUBST_NOTMAKE([AM_V])dnl +AC_SUBST([AM_DEFAULT_V])dnl +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) +m4trace:/usr/share/aclocal-1.11/strip.m4:19: -1- AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) +m4trace:/usr/share/aclocal-1.11/substnot.m4:14: -1- AC_DEFUN([_AM_SUBST_NOTMAKE]) +m4trace:/usr/share/aclocal-1.11/substnot.m4:19: -1- AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) +m4trace:/usr/share/aclocal-1.11/tar.m4:24: -1- AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) +m4trace:m4/ax_check_gl.m4:52: -1- AC_DEFUN([AX_CHECK_GL], [AC_REQUIRE([AC_CANONICAL_HOST]) +AC_REQUIRE([AC_PATH_X])dnl +AC_REQUIRE([AX_PTHREAD])dnl + +AC_LANG_PUSH([C]) +AX_COMPILER_VENDOR +AS_IF([test X$ax_cv_c_compiler_vendor != Xmicrosoft], + [GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm"]) + +# +# Use x_includes and x_libraries if they have been set (presumably by +# AC_PATH_X). +# +AS_IF([test "X$no_x" != "Xyes"], + [AS_IF([test -n "$x_includes"], + [GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"])] + AS_IF([test -n "$x_libraries"], + [GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"])) + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +AC_CHECK_HEADERS([GL/gl.h OpenGL/gl.h]) +CPPFLAGS="${ax_save_CPPFLAGS}" + +AC_CHECK_HEADERS([windows.h]) + +m4_define([AX_CHECK_GL_PROGRAM], + [AC_LANG_PROGRAM([[ +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif]], + [[glBegin(0)]])]) + +AC_CACHE_CHECK([for OpenGL library], [ax_cv_check_gl_libgl], +[ax_cv_check_gl_libgl="no" +case $host_cpu in + x86_64) ax_check_gl_libdir=lib64 ;; + *) ax_check_gl_libdir=lib ;; +esac +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" +LIBS="" +ax_check_libs="-lopengl32 -lGL" +for ax_lib in ${ax_check_libs}; do + AS_IF([test X$ax_compiler_ms = Xyes], + [ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`], + [ax_try_lib="${ax_lib}"]) + LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" +AC_LINK_IFELSE([AX_CHECK_GL_PROGRAM], + [ax_cv_check_gl_libgl="${ax_try_lib}"; break], + [ax_check_gl_nvidia_flags="-L/usr/${ax_check_gl_libdir}/nvidia" LIBS="${ax_try_lib} ${ax_check_gl_nvidia_flags} ${GL_LIBS} ${ax_save_LIBS}" +AC_LINK_IFELSE([AX_CHECK_GL_PROGRAM], + [ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break], + [ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' LIBS="${ax_try_lib} ${ax_check_gl_dylib_flag} ${GL_LIBS} ${ax_save_LIBS}" +AC_LINK_IFELSE([AX_CHECK_GL_PROGRAM], + [ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break])])]) +done + +AS_IF([test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes], +[LIBS='-framework OpenGL' +AC_LINK_IFELSE([AX_CHECK_GL_PROGRAM], + [ax_cv_check_gl_libgl="$LIBS"])]) + +LIBS=${ax_save_LIBS} +CPPFLAGS=${ax_save_CPPFLAGS}]) + +AS_IF([test "X$ax_cv_check_gl_libgl" = Xno], + [no_gl=yes; GL_CFLAGS=""; GL_LIBS=""], + [GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"]) +AC_LANG_POP([C]) + +AC_SUBST([GL_CFLAGS]) +AC_SUBST([GL_LIBS]) +]) +m4trace:m4/ax_check_glu.m4:57: -1- AC_DEFUN([AX_CHECK_GLU], [AC_REQUIRE([AX_CHECK_GL])dnl +AC_REQUIRE([AC_PROG_CXX])dnl +GLU_CFLAGS="${GL_CFLAGS}" + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +AC_CHECK_HEADERS([GL/glu.h OpenGL/glu.h]) +CPPFLAGS="${ax_save_CPPFLAGS}" + +m4_define([AX_CHECK_GLU_PROGRAM], + [AC_LANG_PROGRAM([[ +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLU_H +# include +# elif defined(HAVE_OPENGL_GLU_H) +# include +# else +# error no glu.h +# endif]], + [[gluBeginCurve(0)]])]) + +AC_CACHE_CHECK([for OpenGL Utility library], [ax_cv_check_glu_libglu], +[ax_cv_check_glu_libglu="no" +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" + +# +# First, check for the possibility that everything we need is already in +# GL_LIBS. +# +LIBS="${GL_LIBS} ${ax_save_LIBS}" +# +# libGLU typically links with libstdc++ on POSIX platforms. +# However, setting the language to C++ means that test program +# source is named "conftest.cc"; and Microsoft cl doesn't know what +# to do with such a file. +# +AC_LANG_PUSH([C++]) +AS_IF([test X$ax_compiler_ms = Xyes], + [AC_LANG_PUSH([C])]) +AC_LINK_IFELSE( +[AX_CHECK_GLU_PROGRAM], +[ax_cv_check_glu_libglu=yes], +[LIBS="" +ax_check_libs="-lglu32 -lGLU" +for ax_lib in ${ax_check_libs}; do + AS_IF([test X$ax_compiler_ms = Xyes], + [ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`], + [ax_try_lib="${ax_lib}"]) + LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" + AC_LINK_IFELSE([AX_CHECK_GLU_PROGRAM], + [ax_cv_check_glu_libglu="${ax_try_lib}"; break]) +done +]) +AS_IF([test X$ax_compiler_ms = Xyes], + [AC_LANG_POP([C])]) +AC_LANG_POP([C++]) + +LIBS=${ax_save_LIBS} +CPPFLAGS=${ax_save_CPPFLAGS}]) +AS_IF([test "X$ax_cv_check_glu_libglu" = Xno], + [no_glu=yes; GLU_CFLAGS=""; GLU_LIBS=""], + [AS_IF([test "X$ax_cv_check_glu_libglu" = Xyes], + [GLU_LIBS="$GL_LIBS"], + [GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"])]) +AC_SUBST([GLU_CFLAGS]) +AC_SUBST([GLU_LIBS]) + +# +# Some versions of Mac OS X include a broken interpretation of the GLU +# tesselation callback function signature. +# +AS_IF([test "X$ax_cv_check_glu_libglu" != Xno], +[AC_CACHE_CHECK([for varargs GLU tesselator callback function type], + [ax_cv_varargs_glu_tesscb], +[ax_cv_varargs_glu_tesscb=no +ax_save_CFLAGS="$CFLAGS" +CFLAGS="$GL_CFLAGS $CFLAGS" +AC_COMPILE_IFELSE( +[AC_LANG_PROGRAM([[ +# ifdef HAVE_GL_GLU_H +# include +# else +# include +# endif]], + [[GLvoid (*func)(...); gluTessCallback(0, 0, func)]])], +[ax_cv_varargs_glu_tesscb=yes]) +CFLAGS="$ax_save_CFLAGS"]) +AS_IF([test X$ax_cv_varargs_glu_tesscb = Xyes], + [AC_DEFINE([HAVE_VARARGS_GLU_TESSCB], [1], + [Use nonstandard varargs form for the GLU tesselator callback])])]) +]) +m4trace:m4/ax_check_glut.m4:51: -1- AC_DEFUN([AX_CHECK_GLUT], [AC_REQUIRE([AX_CHECK_GLU])dnl +AC_REQUIRE([AC_PATH_XTRA])dnl + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" +AC_CHECK_HEADERS([GL/glut.h GLUT/glut.h]) +CPPFLAGS="${ax_save_CPPFLAGS}" + +GLUT_CFLAGS=${GLU_CFLAGS} +GLUT_LIBS=${GLU_LIBS} + +m4_define([AX_CHECK_GLUT_PROGRAM], + [AC_LANG_PROGRAM([[ +# if HAVE_WINDOWS_H && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLUT_H +# include +# elif defined(HAVE_GLUT_GLUT_H) +# include +# else +# error no glut.h +# endif]], + [[glutMainLoop()]])]) + +# +# If X is present, assume GLUT depends on it. +# +AS_IF([test X$no_x != Xyes], + [GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"]) + +AC_CACHE_CHECK([for GLUT library], [ax_cv_check_glut_libglut], +[ax_cv_check_glut_libglut="no" +AC_LANG_PUSH(C) +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" +LIBS="" +ax_check_libs="-lglut32 -lglut" +for ax_lib in ${ax_check_libs}; do + AS_IF([test X$ax_compiler_ms = Xyes], + [ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`], + [ax_try_lib="${ax_lib}"]) + LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" + AC_LINK_IFELSE([AX_CHECK_GLUT_PROGRAM], + [ax_cv_check_glut_libglut="${ax_try_lib}"; break]) +done + +AS_IF([test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes], +[LIBS='-framework GLUT' +AC_LINK_IFELSE([AX_CHECK_GLUT_PROGRAM], + [ax_cv_check_glut_libglut="$LIBS"])]) + +CPPFLAGS="${ax_save_CPPFLAGS}" +LIBS="${ax_save_LIBS}" +AC_LANG_POP(C)]) + +AS_IF([test "X$ax_cv_check_glut_libglut" = Xno], + [no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS=""], + [GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"]) + +AC_SUBST([GLUT_CFLAGS]) +AC_SUBST([GLUT_LIBS]) +]) +m4trace:m4/ax_compiler_vendor.m4:49: -1- AC_DEFUN([AX_COMPILER_VENDOR], [AC_CACHE_CHECK([for _AC_LANG compiler vendor], ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor, + [# note: don't check for gcc first since some other compilers define __GNUC__ + vendors="intel: __ICC,__ECC,__INTEL_COMPILER + ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ + pathscale: __PATHCC__,__PATHSCALE__ + clang: __clang__ + gnu: __GNUC__ + sun: __SUNPRO_C,__SUNPRO_CC + hp: __HP_cc,__HP_aCC + dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER + borland: __BORLANDC__,__TURBOC__ + comeau: __COMO__ + cray: _CRAYC + kai: __KCC + lcc: __LCC__ + sgi: __sgi,sgi + microsoft: _MSC_VER + metrowerks: __MWERKS__ + watcom: __WATCOMC__ + portland: __PGI + unknown: UNKNOWN" + for ventest in $vendors; do + case $ventest in + *:) vendor=$ventest; continue ;; + *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; + esac + AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[ + #if !($vencpp) + thisisanerror; + #endif + ])], [break]) + done + ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor=`echo $vendor | cut -d: -f1` + ]) +]) +m4trace:m4/ax_pthread.m4:80: -1- AU_DEFUN([ACX_PTHREAD], [m4_if($#, 0, [AX_PTHREAD], [AX_PTHREAD($@)])]) +m4trace:m4/ax_pthread.m4:80: -1- AC_DEFUN([ACX_PTHREAD], [AC_DIAGNOSE([obsolete], [The macro `ACX_PTHREAD' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [AX_PTHREAD], [AX_PTHREAD($@)])]) +m4trace:m4/ax_pthread.m4:81: -1- AC_DEFUN([AX_PTHREAD], [ +AC_REQUIRE([AC_CANONICAL_HOST]) +AC_LANG_SAVE +AC_LANG_C +ax_pthread_ok=no + +# We used to check for pthread.h first, but this fails if pthread.h +# requires special compiler flags (e.g. on True64 or Sequent). +# It gets checked for in the link test anyway. + +# First of all, check if the user has set any of the PTHREAD_LIBS, +# etcetera environment variables, and if threads linking works using +# them: +if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS]) + AC_TRY_LINK_FUNC(pthread_join, ax_pthread_ok=yes) + AC_MSG_RESULT($ax_pthread_ok) + if test x"$ax_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" +fi + +# We must check for the threads library under a number of different +# names; the ordering is very important because some systems +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the +# libraries is broken (non-POSIX). + +# Create a list of thread flags to try. Items starting with a "-" are +# C compiler flags, and other items are library names, except for "none" +# which indicates that we try without any flags at all, and "pthread-config" +# which is a program returning the flags for the Pth emulation library. + +ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads +-mthreads pthread --thread-safe -mt pthread-config" + +# The ordering *is* (sometimes) important. Some notes on the +# individual items follow: + +# pthreads: AIX (must check this before -lpthread) +# none: in case threads are in libc; should be tried before -Kthread and +# other compiler flags to prevent continual compiler warnings +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) +# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) +# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) +# -pthreads: Solaris/gcc +# -mthreads: Mingw32/gcc, Lynx/gcc +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it +# doesn't hurt to check since this sometimes defines pthreads too; +# also defines -D_REENTRANT) +# ... -mt is also the pthreads flag for HP/aCC +# pthread: Linux, etcetera +# --thread-safe: KAI C++ +# pthread-config: use pthread-config program (for GNU Pth library) + +case "${host_cpu}-${host_os}" in + *solaris*) + + # On Solaris (at least, for some versions), libc contains stubbed + # (non-functional) versions of the pthreads routines, so link-based + # tests will erroneously succeed. (We need to link with -pthreads/-mt/ + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather + # a function called by this macro, so we could check for that, but + # who knows whether they'll stub that too in a future libc.) So, + # we'll just look for -pthreads and -lpthread first: + + ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" + ;; + + *-darwin*) + acx_pthread_flags="-pthread $acx_pthread_flags" + ;; +esac + +if test x"$ax_pthread_ok" = xno; then +for flag in $ax_pthread_flags; do + + case $flag in + none) + AC_MSG_CHECKING([whether pthreads work without any flags]) + ;; + + -*) + AC_MSG_CHECKING([whether pthreads work with $flag]) + PTHREAD_CFLAGS="$flag" + ;; + + pthread-config) + AC_CHECK_PROG(ax_pthread_config, pthread-config, yes, no) + if test x"$ax_pthread_config" = xno; then continue; fi + PTHREAD_CFLAGS="`pthread-config --cflags`" + PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config +--libs`" + ;; + + *) + AC_MSG_CHECKING([for the pthreads library -l$flag]) + PTHREAD_LIBS="-l$flag" + ;; + esac + + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Check for various functions. We must include pthread.h, + # since some functions may be macros. (On the Sequent, we + # need a special flag -Kthread to make this header compile.) + # We check for pthread_join because it is in -lpthread on IRIX + # while pthread_create is in libc. We check for pthread_attr_init + # due to DEC craziness with -lpthreads. We check for + # pthread_cleanup_push because it is one of the few pthread + # functions on Solaris that doesn't have a non-functional libc stub. + # We try pthread_create on general principles. + AC_TRY_LINK([#include + static void routine(void* a) {a=0;} + static void* start_routine(void* a) {return a;}], + [pthread_t th; pthread_attr_t attr; + pthread_join(th, 0); + pthread_attr_init(&attr); + pthread_cleanup_push(routine, 0); + pthread_create(&th,0,start_routine,0); + pthread_cleanup_pop(0); ], + [ax_pthread_ok=yes]) + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + AC_MSG_RESULT($ax_pthread_ok) + if test "x$ax_pthread_ok" = xyes; then + break; + fi + + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" +done +fi + +# Various other checks: +if test "x$ax_pthread_ok" = xyes; then + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. + AC_MSG_CHECKING([for joinable pthread attribute]) + attr_name=unknown + for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do + AC_TRY_LINK([#include ], [int attr=$attr; return attr;], + [attr_name=$attr; break]) + done + AC_MSG_RESULT($attr_name) + if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then + AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name, + [Define to necessary symbol if this constant + uses a non-standard name on your system.]) + fi + + AC_MSG_CHECKING([if more special flags are required for pthreads]) + flag=no + case "${host_cpu}-${host_os}" in + *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + esac + AC_MSG_RESULT(${flag}) + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + # More AIX lossage: must compile with xlc_r or cc_r + if test x"$GCC" != xyes; then + AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC}) + else + PTHREAD_CC=$CC + fi +else + PTHREAD_CC="$CC" +fi + +AC_SUBST(PTHREAD_LIBS) +AC_SUBST(PTHREAD_CFLAGS) +AC_SUBST(PTHREAD_CC) + +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: +if test x"$ax_pthread_ok" = xyes; then + ifelse([$1],,AC_DEFINE(HAVE_PTHREADS,1,[Define if you have POSIX threads +libraries and header files.]),[$1]) + : +else + ax_pthread_ok=no + $2 +fi +AC_LANG_RESTORE +]) +m4trace:m4/gem.m4:9: -1- AC_DEFUN([GEM_ARG_WITH], [ + if test "x$with_ALL" = "xyes" && test "x${with_$1}" = "x"; then with_$1="yes"; fi + if test "x$with_ALL" = "xno" && test "x${with_$1}" = "x"; then with_$1="no"; fi + + AC_ARG_WITH([$1], + AC_HELP_STRING([--without-$1], [disable $1-lib ($2)]),,[ + if test "x$3" != "x"; then with_$1="yes"; fi + ]) +]) +m4trace:m4/gem.m4:20: -1- AC_DEFUN([GEM_ARG_WITHOUT], [AC_ARG_WITH([$1], + AC_HELP_STRING([--with-$1], [enable $1-lib ($2)]),,[ + if test "x$3" = "xforce"; then with_$1="no"; fi + ]) +]) +m4trace:m4/gem.m4:28: -1- AC_DEFUN([GEM_ARG_ENABLE], [AC_ARG_ENABLE([$1], + AC_HELP_STRING([--disable-$1], [disable $1 ($2)]),,[ + if test "x$3" != "x"; then enable_$1="yes"; fi + ]) +]) +m4trace:m4/gem.m4:36: -1- AC_DEFUN([GEM_ARG_DISABLE], [AC_ARG_ENABLE([$1], + AC_HELP_STRING([--enable-$1], [enable $1 ($2)]),,[ + if test "x$3" != "x"; then enable_$1="no"; fi + ]) +]) +m4trace:m4/gem.m4:44: -1- AC_DEFUN([GEM_TARGET], [ +define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) +AC_CONFIG_FILES([src/$1/Makefile]) + +AC_ARG_ENABLE([$1], + AC_HELP_STRING([--disable-$1], [disable $1-objects]), + [ + if test "x$enableval" != "xno"; then + AC_MSG_RESULT([building Gem with $1-objects]) + target_[]NAME="yes" + else + AC_MSG_RESULT([building Gem without $1-objects]) + target_[]NAME="no" + fi + ], + [ + AC_MSG_RESULT([building Gem with $1-objects]) + target_[]NAME="yes" + ]) +AM_CONDITIONAL(TARGET_[]NAME, [test "x$target_[]NAME" != "xno"]) +undefine([NAME]) +]) +m4trace:m4/gem.m4:68: -1- AC_DEFUN([GEM_TARGET_DISABLED], [ +define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) + +AC_CONFIG_FILES([src/$1/Makefile]) +AC_ARG_ENABLE([$1], + AC_HELP_STRING([--enable-$1], [enable $1-objects]), + [ + if test "x$enableval" != "xyes"; then + AC_MSG_RESULT([building Gem without $1-objects]) + target_[]NAME="no" + else + AC_MSG_RESULT([building Gem with $1-objects]) + target_[]NAME="yes" + fi + ], + [ + AC_MSG_RESULT([building Gem without $1-objects]) + target_[]NAME="no" + ]) +AM_CONDITIONAL(TARGET_[]NAME, [test "x$target_[]NAME" != "xno"]) +undefine([NAME]) +]) +m4trace:m4/gem.m4:100: -1- AC_DEFUN([GEM_CHECK_LIB], [ + define([Name],[translit([$1],[./-+], [____])]) + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) +AC_SUBST(GEM_LIB_[]NAME[]_CFLAGS) +AC_SUBST(GEM_LIB_[]NAME[]_LIBS) + +AC_ARG_WITH([Name], + AC_HELP_STRING([--without-[]Name], [disable Name ($7)])) +AC_ARG_WITH([]Name-includes, + AC_HELP_STRING([--with-[]Name-includes=/path/to/[]Name/include/], [include path for Name])) +AC_ARG_WITH([]Name-libs, + AC_HELP_STRING([--with-[]Name-libs=/path/to/[]Name/lib/], [library path for Name])) + + if test "x$with_[]Name" = "x"; then with_[]Name="$8"; fi + + if test "x$with_ALL" = "xyes" && test "x$with_[]Name" = "x"; then with_[]Name="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_[]Name" = "x"; then with_[]Name="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_[]Name = "xno"; then + have_[]Name="no (forced)" +else + if test -d "$with_[]Name[]_includes"; then + CFLAGS="-I$with_[]Name[]_includes $CFLAGS" + CPPFLAGS="-I$with_[]Name[]_includes $CPPFLAGS" + CXXFLAGS="-I$with_[]Name[]_includes $CXXFLAGS" + fi + if test -d "$with_[]Name[]_libs"; then + LIBS="-L$with_[]Name[]_libs $LIBS" + fi + AS_LITERAL_IF([$2], + [AS_VAR_PUSHDEF([ac_Lib], [ac_cv_lib_$2_$3])], + [AS_VAR_PUSHDEF([ac_Lib], [ac_cv_lib_$2''_$3])])dnl + +## unset ac_Lib is possible + (unset ac_Lib) >/dev/null 2>&1 && unset ac_Lib + +## 1st we check, whether pkg-config knows something about this package +dnl PKG_CHECK_MODULES(AS_TR_CPP(PKG_$1), $1,AS_VAR_SET(acLib)yes, AC_CHECK_LIB([$2],[$3],,,[$6])) + PKG_CHECK_MODULES(AS_TR_CPP(PKG_$1), $1,AS_VAR_SET(ac_Lib)yes,:) + + if test "x$ac_Lib" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + AC_MSG_CHECKING([for $1-config]) + gem_check_lib_pkgconfig_[]NAME="" + if test "x$1" != "x"; then + gem_check_lib_pkgconfig_[]NAME="$1"-config + if which -- "$gem_check_lib_pkgconfig_[]NAME" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_[]NAME=`which "$1"-config` + AC_MSG_RESULT([yes]) + else + gem_check_lib_pkgconfig_[]NAME="" + AC_MSG_RESULT([no]) + fi + fi + + if test "x$gem_check_lib_pkgconfig_[]NAME" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_[]NAME[]_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_[]NAME --cflags >/dev/null 2>&1; then + PKG_[]NAME[]_CFLAGS=$(${gem_check_lib_pkgconfig_[]NAME} --cflags) + PKG_CFLAGS="$PKG_[]NAME[]_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_[]NAME[]_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_[]NAME --plugin-libs >/dev/null 2>&1; then + PKG_[]NAME[]_LIBS=$(${gem_check_lib_pkgconfig_[]NAME} --plugin-libs) + else + if $gem_check_lib_pkgconfig_[]NAME --libs >/dev/null 2>&1; then + PKG_[]NAME[]_LIBS=$(${gem_check_lib_pkgconfig_[]NAME} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_[]NAME[]_LIBS}" = "x"; then + AC_CHECK_LIB([$2],[$3],,,[$6]) + PKG_[]NAME[]_LIBS="-l$2" + else + PKG_LIBS="${PKG_[]NAME[]_LIBS} ${PKG_LIBS}" + fi + fi + + AS_IF([test "x$ac_Lib" != "xno"], + [ + AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_LIB$1),[1], [$7]) + AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_LIB$2),[1], [$7]) + AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_$3),[1], [Define to 1 if you have the `$3' function.]) + GEM_LIB_[]NAME[]_CFLAGS=${PKG_[]NAME[]_CFLAGS} + GEM_LIB_[]NAME[]_LIBS=${PKG_[]NAME[]_LIBS} +dnl PKG_LIBS="$6 ${PKG_LIBS}" + have_[]Name="yes" +dnl turn of further checking for this package + with_[]Name="no" + [$4] + ],[ + have_[]Name="no" + [$5] + ]) + AS_VAR_POPDEF([ac_Lib])dnl + +fi[]dnl + +AM_CONDITIONAL(HAVE_LIB_[]NAME, [test "x${have_[]Name}" = "xyes"]) +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + +undefine([Name]) +undefine([NAME]) +]) +m4trace:m4/gem.m4:236: -1- AC_DEFUN([GEM_CHECK_CXXFLAGS], [ + AC_MSG_CHECKING([whether compiler accepts "$1"]) +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ [$1] > /dev/null 2>&1 +then + AC_MSG_RESULT([yes]) + CXXFLAGS="${CXXFLAGS} [$1]" + [$2] +else + AC_MSG_RESULT([no]) + [$3] +fi +]) +m4trace:m4/gem.m4:258: -1- AC_DEFUN([GEM_CHECK_FRAMEWORK], [ + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) + AC_SUBST(GEM_FRAMEWORK_[]NAME[]) + + AC_MSG_CHECKING([for "$1"-framework]) + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework [$1] ${LDFLAGS}" + + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [gem_check_ldflags_success="yes"],[gem_check_ldflags_success="no"]) + + if test "x$gem_check_ldflags_success" = "xyes"; then + AC_MSG_RESULT([yes]) + AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_$1), [1], [framework $1]) + AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_GEM_FRAMEWORK_$1), [1], [framework $1]) + GEM_FRAMEWORK_[]NAME[]="-framework [$1]" + [$2] + else + AC_MSG_RESULT([no]) + LDFLAGS="$gem_check_ldflags_org" + [$3] + fi +AM_CONDITIONAL(HAVE_FRAMEWORK_[]NAME, [test "x$gem_check_ldflags_success" = "xyes"]) +undefine([NAME]) +]) +m4trace:m4/gem.m4:290: -1- AC_DEFUN([GEM_CHECK_LDFLAGS], [ + AC_MSG_CHECKING([whether linker accepts "$1"]) + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="$1 ${LDFLAGS}" + + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [gem_check_ldflags_success="yes"],[gem_check_ldflags_success="no"]) + + if test "x$gem_check_ldflags_success" = "xyes"; then + AC_MSG_RESULT([yes]) + [$2] + else + AC_MSG_RESULT([no]) + LDFLAGS="$gem_check_ldflags_org" + [$3] + fi +]) +m4trace:m4/gem.m4:309: -1- AC_DEFUN([GEM_CHECK_FAT], [ +AC_ARG_ENABLE(fat-binary, + [ --enable-fat-binary=ARCHS + build an Apple Multi Architecture Binary (MAB); + ARCHS is a comma-delimited list of architectures for + which to build; if ARCHS is omitted, then the package + will be built for all architectures supported by the + platform (e.g. "ppc,i386" for MacOS/X and Darwin); + if this option is disabled or omitted entirely, then + the package will be built only for the target + platform; when building multiple architectures, + dependency-tracking must be disabled], + [fat_binary=$enableval], [fat_binary=no]) +if test "$fat_binary" != no; then + AC_MSG_CHECKING([target architectures]) + + # Respect TARGET_ARCHS setting from environment if available. + if test -z "$TARGET_ARCHS"; then + # Respect ARCH given to --enable-fat-binary if present. + if test "$fat_binary" != yes; then + TARGET_ARCHS=`echo "$fat_binary" | tr ',' ' '` + else + # Choose a default set of architectures based upon platform. + TARGET_ARCHS="ppc i386" + fi + fi + AC_MSG_RESULT([$TARGET_ARCHS]) + + define([Name],[translit([$1],[./-], [___])]) + # /usr/lib/arch_tool -archify_list $TARGET_ARCHS + []Name="" + tmp_arch_count=0 + for archs in $TARGET_ARCHS + do + []Name="$[]Name -arch $archs" + tmp_arch_count=$((tmp_arch_count+1)) + done + + if test "$tmp_arch_count" -gt 1; then + if test "x$enable_dependency_tracking" != xno; then + AC_MSG_ERROR([when building for multiple architectures, you MUST turn off dependency-tracking]) + fi + fi + + if test "x$[]Name" != "x"; then + tmp_arch_cflags="$CFLAGS" + tmp_arch_cxxflags="$CXXFLAGS" + GEM_CHECK_CXXFLAGS($[]Name,,[]Name="") + []Name[]_CXXFLAGS+=$[]Name + CFLAGS="$tmp_arch_cflags" + CXXFLAGS="$tmp_arch_cxxflags" + fi + + if test "x$[]Name" != "x"; then + tmp_arch_ldflags="$LDFLAGS" + GEM_CHECK_LDFLAGS($[]Name,,[]Name="") + []Name[]_LDFLAGS+=$[]Name + LDFLAGS="$tmp_arch_ldflags" + fi + + undefine([Name]) +fi +]) +m4trace:m4/gem.m4:378: -1- AC_DEFUN([GEM_CHECK_RTE], [ +ARCH=$(uname -m) +KERN=$(uname -s) +IEM_OPERATING_SYSTEM + +AC_SUBST(GEM_RTE_CFLAGS) +AC_SUBST(GEM_RTE_LIBS) +AC_SUBST(GEM_RTE) + +if test "x${libdir}" = "x\${exec_prefix}/lib"; then + libdir='${exec_prefix}/lib/pd/extra' +fi + +tmp_rte_cppflags="$CPPFLAGS" +tmp_rte_cflags="$CFLAGS" +tmp_rte_cxxflags="$CXXFLAGS" +tmp_rte_ldflags="$LDFLAGS" +tmp_rte_libs="$LIBS" + +GEM_RTE_CFLAGS="-DPD" +GEM_RTE_LIBS="" +GEM_RTE="Pure Data" + +AC_ARG_WITH([pd], + AS_HELP_STRING([--with-pd=],[where to find pd-binary (./bin/pd.exe) and pd-sources])) + +## some default paths +if test "x${with_pd}" = "x"; then + case $host_os in + *darwin*) + if test -d "/Applications/Pd-extended.app/Contents/Resources"; then with_pd="/Applications/Pd-extended.app/Contents/Resources"; fi + if test -d "/Applications/Pd.app/Contents/Resources"; then with_pd="/Applications/Pd.app/Contents/Resources"; fi + ;; + *mingw* | *cygwin*) + if test -d "${PROGRAMFILES}/Pd-extended"; then with_pd="${PROGRAMFILES}/Pd-extended"; fi + if test -d "${PROGRAMFILES}/pd"; then with_pd="${PROGRAMFILES}/pd"; fi + ;; + esac +fi + +if test -d "$with_pd" ; then + if test -d "${with_pd}/src" ; then + AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS],"-I${with_pd}/src") + elif test -d "${with_pd}/include/pd" ; then + AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS],"-I${with_pd}/include/pd") + elif test -d "${with_pd}/include" ; then + AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS],"-I${with_pd}/include") + else + AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS],"-I${with_pd}") + fi + if test -d "${with_pd}/bin" ; then + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-L${with_pd}/bin" + else + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-L${with_pd}" + fi + + CPPFLAGS="$CPPFLAGS ${GEM_RTE_CFLAGS}" + CFLAGS="$CFLAGS ${GEM_RTE_CFLAGS}" + CXXFLAGS="$CXXFLAGS ${GEM_RTE_CFLAGS}" + LIBS="$LIBS ${GEM_RTE_LIBS}" +fi + +AC_CHECK_LIB([:pd.dll], [nullfn], [have_pddll="yes"], [have_pddll="no"]) +if test "x$have_pddll" = "xyes"; then + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-Xlinker -l:pd.dll" +else + AC_CHECK_LIB([pd], [nullfn], [GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-lpd"]) +fi + +AC_CHECK_HEADERS([m_pd.h], [have_pd="yes"], [have_pd="no"]) + +dnl LATER check why this doesn't use the --with-pd includes +dnl for now it will basically disable anything that needs s_stuff.h if it cannot be found in /usr[/local]/include +AC_CHECK_HEADERS([s_stuff.h], [], [], +[#ifdef HAVE_M_PD_H +# define PD +# include "m_pd.h" +#endif +]) + +### this should only be set if Pd has been found +# the extension +AC_ARG_WITH([extension], + AS_HELP_STRING([--with-extension=],[enforce a certain file-extension (e.g. pd_linux)])) +if test "x$with_extension" != "x"; then + EXT=$with_extension +else + case x$host_os in + x*darwin*) + EXT=pd_darwin + ;; + x*mingw* | x*cygwin*) + EXT=dll + ;; + x) + dnl just assuming that it is still linux (e.g. x86_64) + EXT="pd_linux" + ;; + *) + EXT=pd_`echo $host_os | sed -e '/.*/s/-.*//' -e 's/\[.].*//'` + ;; + esac +fi +GEM_RTE_EXTENSION=$EXT +AC_SUBST(GEM_RTE_EXTENSION) + +CPPFLAGS="$tmp_rte_cppflags" +CFLAGS="$tmp_rte_cflags" +CXXFLAGS="$tmp_rte_cxxflags" +LDFLAGS="$tmp_rte_ldflags" +LIBS="$tmp_rte_libs" +]) +m4trace:m4/gem.m4:493: -1- AC_DEFUN([GEM_CHECK_THREADS], [ +GEM_ARG_ENABLE([threads], [default: use threads]) + +AC_SUBST(GEM_PTHREAD_CFLAGS) +AC_SUBST(GEM_PTHREAD_LIBS) + +if test "x$enable_threads" != "xno"; then + AX_PTHREAD + GEM_THREADS_CFLAGS="" + AC_LIB_APPENDTOVAR([GEM_THREADS_CFLAGS], "${PTHREAD_CFLAGS}") + GEM_THREADS_LIBS="${GEM_THREADS_LIBS}${GEM_THREADS_LIBS:+ }${PTHREAD_LIBS}" +fi +]) +m4trace:m4/iem_ftgl.m4:6: -1- AC_DEFUN([IEM_CHECK_FTGL], [ +dnl PKG_CHECK_MODULES(PKG_FT2,freetype2) + + +GEM_CHECK_LIB([ftgl], [ftgl], [main],,,[-lfreetype],[font support]) + +tmp_gem_check_ftgl_cflags="$CFLAGS" +tmp_gem_check_ftgl_cxxflags="$CXXFLAGS" + +CFLAGS="$CFLAGS $GEM_LIB_FTGL_CFLAGS" +CXXFLAGS="$CXXFLAGS $GEM_LIB_FTGL_CFLAGS" +AC_CHECK_HEADERS([FTGL/ftgl.h]) + +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +]) +m4trace:m4/iem_opengl.m4:42: -1- AC_DEFUN([IEM_CHECK_GL], [AC_REQUIRE([AX_CHECK_GL]) +AM_CONDITIONAL(HAVE_GL, [test "x$no_gl" != "xyes"]) +]) +m4trace:m4/iem_opengl.m4:47: -1- AC_DEFUN([IEM_CHECK_GLU], [AC_REQUIRE([AX_CHECK_GLU]) +AM_CONDITIONAL(HAVE_GLU, [test "x$no_glu" != "xyes"]) +]) +m4trace:m4/iem_opengl.m4:53: -1- AC_DEFUN([IEM_CHECK_GLUT], [AC_REQUIRE([AX_CHECK_GLUT]) +AM_CONDITIONAL(HAVE_GLUT, [test "x$no_glut" != "xyes"]) +]) +m4trace:m4/iem_opengl.m4:59: -1- AC_DEFUN([IEM_CHECK_GLX], [ +AC_CHECK_HEADERS([GL/glx.h],,no_glx=yes) +AM_CONDITIONAL(HAVE_GLX, [test "x$no_glx" != "xyes"]) +AC_SUBST([GLX_CFLAGS]) +AC_SUBST([GLX_LIBS]) +]) +m4trace:m4/iem_opengl.m4:69: -1- AC_DEFUN([IEM_CHECK_AGL], [ +GEM_CHECK_FRAMEWORK(AGL) +if test "x$gem_check_ldflags_success" != "xyes"; then + no_agl="yes" +fi +AGL_CFLAGS="" +AGL_LIBS="${GEM_FRAMEWORK_AGL}" +AC_SUBST([AGL_CFLAGS]) +AC_SUBST([AGL_LIBS]) +AM_CONDITIONAL(HAVE_AGL, [test "x$no_agl" != "xyes"]) +]) +m4trace:m4/iem_opengl.m4:84: -1- AC_DEFUN([IEM_CHECK_GLEW], [ +GEM_CHECK_LIB(glew, GLEW, glewInit,,no_glew=yes,,[OpenGL Extension Wrangler library], [no]) +AM_CONDITIONAL(HAVE_GLEW, [test "x$no_glew" != "xyes"]) +]) +m4trace:m4/iem_operatingsystem.m4:6: -1- AC_DEFUN([IEM_OPERATING_SYSTEM], [ +AC_CANONICAL_HOST + +LINUX=no +ANDROID=no +MACOSX=no +IPHONEOS=no +BSD=no +WINDOWS=no +MINGW=no +CYGWIN=no +HURD=no +IRIX=no + +case $host_os in +*linux*) + LINUX=yes + ;; +*darwin*) + MACOSX=yes + ;; +GNU/kFreeBSD) + BSD=yes + ;; +*mingw*) + WINDOWS=yes + MINGW=yes + ;; +*cygwin*) + WINDOWS=yes + CYGWIN=yes + ;; +GNU) + HURD=yes + ;; +esac + + +AM_CONDITIONAL(LINUX, test x$LINUX = xyes) +AM_CONDITIONAL(ANDROID, test x$ANDROID = xyes) +AM_CONDITIONAL(MACOSX, test x$MACOSX = xyes) +AM_CONDITIONAL(IPHONEOS, test x$IPHONEOS = xyes) +AM_CONDITIONAL(BSD, test x$BSD = xyes) +AM_CONDITIONAL(WINDOWS, test x$WINDOWS = xyes) +AM_CONDITIONAL(CYGWIN, test x$CYGWIN = xyes) +AM_CONDITIONAL(MINGW, test x$MINGW = xyes) +AM_CONDITIONAL(HURD, test x$HURD = xyes) +AM_CONDITIONAL(IRIX, test x$IRIX = xyes) +]) +m4trace:m4/lib-prefix.m4:12: -1- AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])]) +m4trace:m4/lib-prefix.m4:22: -1- AC_DEFUN([AC_LIB_PREFIX], [ + AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_LIB_ARG_WITH([lib-prefix], +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib + --without-lib-prefix don't search for libraries in includedir and libdir], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/lib" + fi + fi +]) + if test $use_additional = yes; then + dnl Potentially add $additional_includedir to $CPPFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's already present in $CPPFLAGS, + dnl 3. if it's /usr/local/include and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + for x in $CPPFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $CPPFLAGS. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" + fi + fi + fi + fi + dnl Potentially add $additional_libdir to $LDFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's already present in $LDFLAGS, + dnl 3. if it's /usr/local/lib and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/lib"; then + haveit= + for x in $LDFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_libdir" = "X/usr/local/lib"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LDFLAGS. + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" + fi + fi + fi + fi + fi +]) +m4trace:m4/lib-prefix.m4:121: -1- AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ + dnl Unfortunately, prefix and exec_prefix get only finally determined + dnl at the end of configure. + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" +]) +m4trace:m4/lib-prefix.m4:144: -1- AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + $1 + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" +]) +m4trace:m4/lib-prefix.m4:169: -1- AC_DEFUN([AC_LIB_LINKFLAGS], [ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + define([Name],[translit([$1],[./-], [___])]) + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + ac_cv_lib[]Name[]_libs="$LIB[]NAME" + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" + ac_cv_lib[]Name[]_cppflags="$INC[]NAME" + ]) + LIB[]NAME="$ac_cv_lib[]Name[]_libs" + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" + INC[]NAME="$ac_cv_lib[]Name[]_cppflags" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the + dnl results of this search when this library appears as a dependency. + HAVE_LIB[]NAME=yes + undefine([Name]) + undefine([NAME]) +]) +m4trace:m4/lib-prefix.m4:203: -1- AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + define([Name],[translit([$1],[./-], [___])]) + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, + dnl because if the user has installed lib[]Name and not disabled its use + dnl via --without-lib[]Name-prefix, he wants to use it. + ac_save_CPPFLAGS="$CPPFLAGS" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ + ac_save_LIBS="$LIBS" + LIBS="$LIBS $LIB[]NAME" + AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) + LIBS="$ac_save_LIBS" + ]) + if test "$ac_cv_lib[]Name" = yes; then + HAVE_LIB[]NAME=yes + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) + AC_MSG_CHECKING([how to link with lib[]$1]) + AC_MSG_RESULT([$LIB[]NAME]) + else + HAVE_LIB[]NAME=no + dnl If $LIB[]NAME didn't lead to a usable library, we don't need + dnl $INC[]NAME either. + CPPFLAGS="$ac_save_CPPFLAGS" + LIB[]NAME= + LTLIB[]NAME= + fi + AC_SUBST([HAVE_LIB]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + undefine([Name]) + undefine([NAME]) +]) +m4trace:m4/lib-prefix.m4:250: -1- AC_DEFUN([AC_LIB_RPATH], [ + dnl Tell automake >= 1.10 to complain if config.rpath is missing. + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir + AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_rpath=done + ]) + wl="$acl_cv_wl" + libext="$acl_cv_libext" + shlibext="$acl_cv_shlibext" + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" + hardcode_direct="$acl_cv_hardcode_direct" + hardcode_minus_L="$acl_cv_hardcode_minus_L" + dnl Determine whether the user wants rpath handling at all. + AC_ARG_ENABLE(rpath, + [ --disable-rpath do not hardcode runtime library paths], + :, enable_rpath=yes) +]) +m4trace:m4/lib-prefix.m4:281: -1- AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_LIB_ARG_WITH([lib$1-prefix], +[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib + --without-lib$1-prefix don't search for lib$1 in includedir and libdir], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/lib" + fi + fi +]) + dnl Search the library and its dependencies in $additional_libdir and + dnl $LDFLAGS. Using breadth-first-seach. + LIB[]NAME= + LTLIB[]NAME= + INC[]NAME= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='$1 $2' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS + dnl or AC_LIB_HAVE_LINKFLAGS call. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" + else + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined + dnl that this library doesn't exist. So just drop it. + : + fi + else + dnl Search the library lib$name in $additional_libdir and $LDFLAGS + dnl and the already constructed $LIBNAME/$LTLIBNAME. + found_dir= + found_la= + found_so= + found_a= + if test $use_additional = yes; then + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then + found_dir="$additional_libdir" + found_so="$additional_libdir/lib$name.$shlibext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + else + if test -f "$additional_libdir/lib$name.$libext"; then + found_dir="$additional_libdir" + found_a="$additional_libdir/lib$name.$libext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then + found_dir="$dir" + found_so="$dir/lib$name.$shlibext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + else + if test -f "$dir/lib$name.$libext"; then + found_dir="$dir" + found_a="$dir/lib$name.$libext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + dnl Found the library. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + dnl Linking with a shared library. We attempt to hardcode its + dnl directory into the executable's runpath, unless it's the + dnl standard /usr/lib. + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then + dnl No hardcoding is needed. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + dnl The hardcoding into $LIBNAME is system dependent. + if test "$hardcode_direct" = yes; then + dnl Using DIR/libNAME.so during linking hardcodes DIR into the + dnl resulting binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + dnl Rely on "-L$found_dir". + dnl But don't add it if it's already contained in the LDFLAGS + dnl or the already constructed $LIBNAME + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" + fi + if test "$hardcode_minus_L" != no; then + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH + dnl here, because this doesn't fit in flags passed to the + dnl compiler. So give up. No hardcoding. This affects only + dnl very old systems. + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + dnl Linking with a static library. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" + else + dnl We shouldn't come here, but anyway it's good to have a + dnl fallback. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" + fi + fi + dnl Assume the include files are nearby. + additional_includedir= + case "$found_dir" in + */lib | */lib/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + dnl Potentially add $additional_includedir to $INCNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's /usr/local/include and we are using GCC on Linux, + dnl 3. if it's already present in $CPPFLAGS or the already + dnl constructed $INCNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INC[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $INCNAME. + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + dnl Look for dependencies. + if test -n "$found_la"; then + dnl Read the .la file. It defines the variables + dnl dlname, library_names, old_library, dependency_libs, current, + dnl age, revision, installed, dlopen, dlpreopen, libdir. + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + dnl We use only dependency_libs. + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's /usr/local/lib and we are using GCC on Linux, + dnl 3. if it's already present in $LDFLAGS or the already + dnl constructed $LIBNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/lib"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/lib"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LIBNAME. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LTLIBNAME. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + dnl Handle this in the next round. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + dnl Handle this in the next round. Throw away the .la's + dnl directory; it is already contained in a preceding -L + dnl option. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + dnl Most likely an immediate library name. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" + ;; + esac + done + fi + else + dnl Didn't find the library; assume it is in the system directories + dnl known to the linker and runtime loader. (All the system + dnl directories known to the linker should also be known to the + dnl runtime loader, otherwise the system is severely misconfigured.) + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$hardcode_libdir_separator"; then + dnl Weird platform: only the last -rpath option counts, the user must + dnl pass all path elements in one option. We can arrange that for a + dnl single library, but not when more than one $LIBNAMEs are used. + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" + done + dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + else + dnl The -rpath options are cumulative. + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + dnl When using libtool, the option that works for both libraries and + dnl executables is -R. The -R options are cumulative. + for found_dir in $ltrpathdirs; do + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" + done + fi +]) +m4trace:m4/lib-prefix.m4:692: -1- AC_DEFUN([AC_LIB_APPENDTOVAR], [ + for element in [$2]; do + haveit= + for x in $[$1]; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + [$1]="${[$1]}${[$1]:+ }$element" + fi + done +]) +m4trace:m4/lib-prefix.m4:720: -1- AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, +[# I'd rather use --version here, but apparently some GNU ld's only accept -v. +case `$LD -v 2>&1 conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by GCC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]* | [A-Za-z]:[\\/]*)] + [re_direlt='/[^/][^/]*/\.\./'] + # Canonicalize the path of ld + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(acl_cv_path_LD, +[if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in + *GNU* | *'with BFD'*) + test "$with_gnu_ld" != no && break ;; + *) + test "$with_gnu_ld" != yes && break ;; + esac + fi + done + IFS="$ac_save_ifs" +else + acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi]) +LD="$acl_cv_path_LD" +if test -n "$LD"; then + AC_MSG_RESULT($LD) +else + AC_MSG_RESULT(no) +fi +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) +AC_LIB_PROG_LD_GNU +]) +m4trace:m4/libtool.m4:69: -1- AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_BEFORE([$0], [LT_LANG])dnl +AC_BEFORE([$0], [LT_OUTPUT])dnl +AC_BEFORE([$0], [LTDL_INIT])dnl +m4_require([_LT_CHECK_BUILDDIR])dnl + +dnl Autoconf doesn't catch unexpanded LT_ macros by default: +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 +dnl unless we require an AC_DEFUNed macro: +AC_REQUIRE([LTOPTIONS_VERSION])dnl +AC_REQUIRE([LTSUGAR_VERSION])dnl +AC_REQUIRE([LTVERSION_VERSION])dnl +AC_REQUIRE([LTOBSOLETE_VERSION])dnl +m4_require([_LT_PROG_LTMAIN])dnl + +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) + +dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +_LT_SETUP + +# Only expand once: +m4_define([LT_INIT]) +]) +m4trace:m4/libtool.m4:107: -1- AU_DEFUN([AC_PROG_LIBTOOL], [m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) +m4trace:m4/libtool.m4:107: -1- AC_DEFUN([AC_PROG_LIBTOOL], [AC_DIAGNOSE([obsolete], [The macro `AC_PROG_LIBTOOL' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) +m4trace:m4/libtool.m4:108: -1- AU_DEFUN([AM_PROG_LIBTOOL], [m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) +m4trace:m4/libtool.m4:108: -1- AC_DEFUN([AM_PROG_LIBTOOL], [AC_DIAGNOSE([obsolete], [The macro `AM_PROG_LIBTOOL' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) +m4trace:m4/libtool.m4:609: -1- AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} +AC_MSG_NOTICE([creating $CONFIG_LT]) +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], +[# Run this file to recreate a libtool stub with the current configuration.]) + +cat >>"$CONFIG_LT" <<\_LTEOF +lt_cl_silent=false +exec AS_MESSAGE_LOG_FD>>config.log +{ + echo + AS_BOX([Running $as_me.]) +} >&AS_MESSAGE_LOG_FD + +lt_cl_help="\ +\`$as_me' creates a local libtool stub from the current configuration, +for use in further configure time tests before the real libtool is +generated. + +Usage: $[0] [[OPTIONS]] + + -h, --help print this help, then exit + -V, --version print version number, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + +Report bugs to ." + +lt_cl_version="\ +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) +configured by $[0], generated by m4_PACKAGE_STRING. + +Copyright (C) 2011 Free Software Foundation, Inc. +This config.lt script is free software; the Free Software Foundation +gives unlimited permision to copy, distribute and modify it." + +while test $[#] != 0 +do + case $[1] in + --version | --v* | -V ) + echo "$lt_cl_version"; exit 0 ;; + --help | --h* | -h ) + echo "$lt_cl_help"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --quiet | --q* | --silent | --s* | -q ) + lt_cl_silent=: ;; + + -*) AC_MSG_ERROR([unrecognized option: $[1] +Try \`$[0] --help' for more information.]) ;; + + *) AC_MSG_ERROR([unrecognized argument: $[1] +Try \`$[0] --help' for more information.]) ;; + esac + shift +done + +if $lt_cl_silent; then + exec AS_MESSAGE_FD>/dev/null +fi +_LTEOF + +cat >>"$CONFIG_LT" <<_LTEOF +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT +_LTEOF + +cat >>"$CONFIG_LT" <<\_LTEOF +AC_MSG_NOTICE([creating $ofile]) +_LT_OUTPUT_LIBTOOL_COMMANDS +AS_EXIT(0) +_LTEOF +chmod +x "$CONFIG_LT" + +# configure is writing to config.log, but config.lt does its own redirection, +# appending to config.log, which fails on DOS, as config.log is still kept +# open by configure. Here we exec the FD to /dev/null, effectively closing +# config.log, so it can be properly (re)opened and appended to by config.lt. +lt_cl_success=: +test "$silent" = yes && + lt_config_lt_args="$lt_config_lt_args --quiet" +exec AS_MESSAGE_LOG_FD>/dev/null +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false +exec AS_MESSAGE_LOG_FD>>config.log +$lt_cl_success || AS_EXIT(1) +]) +m4trace:m4/libtool.m4:790: -1- AC_DEFUN([LT_SUPPORTED_TAG], []) +m4trace:m4/libtool.m4:801: -1- AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl +m4_case([$1], + [C], [_LT_LANG(C)], + [C++], [_LT_LANG(CXX)], + [Go], [_LT_LANG(GO)], + [Java], [_LT_LANG(GCJ)], + [Fortran 77], [_LT_LANG(F77)], + [Fortran], [_LT_LANG(FC)], + [Windows Resource], [_LT_LANG(RC)], + [m4_ifdef([_LT_LANG_]$1[_CONFIG], + [_LT_LANG($1)], + [m4_fatal([$0: unsupported language: "$1"])])])dnl +]) +m4trace:m4/libtool.m4:893: -1- AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) +m4trace:m4/libtool.m4:893: -1- AC_DEFUN([AC_LIBTOOL_CXX], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_CXX' is obsolete. +You should run autoupdate.])dnl +LT_LANG(C++)]) +m4trace:m4/libtool.m4:894: -1- AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) +m4trace:m4/libtool.m4:894: -1- AC_DEFUN([AC_LIBTOOL_F77], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_F77' is obsolete. +You should run autoupdate.])dnl +LT_LANG(Fortran 77)]) +m4trace:m4/libtool.m4:895: -1- AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) +m4trace:m4/libtool.m4:895: -1- AC_DEFUN([AC_LIBTOOL_FC], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_FC' is obsolete. +You should run autoupdate.])dnl +LT_LANG(Fortran)]) +m4trace:m4/libtool.m4:896: -1- AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) +m4trace:m4/libtool.m4:896: -1- AC_DEFUN([AC_LIBTOOL_GCJ], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_GCJ' is obsolete. +You should run autoupdate.])dnl +LT_LANG(Java)]) +m4trace:m4/libtool.m4:897: -1- AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) +m4trace:m4/libtool.m4:897: -1- AC_DEFUN([AC_LIBTOOL_RC], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_RC' is obsolete. +You should run autoupdate.])dnl +LT_LANG(Windows Resource)]) +m4trace:m4/libtool.m4:1225: -1- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) +AC_ARG_WITH([sysroot], +[ --with-sysroot[=DIR] Search for dependent libraries within DIR + (or the compiler's sysroot if not specified).], +[], [with_sysroot=no]) + +dnl lt_sysroot will always be passed unquoted. We quote it here +dnl in case the user passed a directory name. +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + AC_MSG_RESULT([${with_sysroot}]) + AC_MSG_ERROR([The sysroot must be an absolute path.]) + ;; +esac + + AC_MSG_RESULT([${lt_sysroot:-no}]) +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl +[dependent libraries, and in which our libraries should be installed.])]) +m4trace:m4/libtool.m4:1502: -1- AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $RM conftest* +]) + +if test x"[$]$2" = xyes; then + m4_if([$5], , :, [$5]) +else + m4_if([$6], , :, [$6]) +fi +]) +m4trace:m4/libtool.m4:1544: -1- AU_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [m4_if($#, 0, [_LT_COMPILER_OPTION], [_LT_COMPILER_OPTION($@)])]) +m4trace:m4/libtool.m4:1544: -1- AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_COMPILER_OPTION' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [_LT_COMPILER_OPTION], [_LT_COMPILER_OPTION($@)])]) +m4trace:m4/libtool.m4:1553: -1- AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $3" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" +]) + +if test x"[$]$2" = xyes; then + m4_if([$4], , :, [$4]) +else + m4_if([$5], , :, [$5]) +fi +]) +m4trace:m4/libtool.m4:1588: -1- AU_DEFUN([AC_LIBTOOL_LINKER_OPTION], [m4_if($#, 0, [_LT_LINKER_OPTION], [_LT_LINKER_OPTION($@)])]) +m4trace:m4/libtool.m4:1588: -1- AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_LINKER_OPTION' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [_LT_LINKER_OPTION], [_LT_LINKER_OPTION($@)])]) +m4trace:m4/libtool.m4:1595: -1- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl +# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac +]) +if test -n $lt_cv_sys_max_cmd_len ; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +max_cmd_len=$lt_cv_sys_max_cmd_len +_LT_DECL([], [max_cmd_len], [0], + [What is the maximum length of a command?]) +]) +m4trace:m4/libtool.m4:1733: -1- AU_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [m4_if($#, 0, [LT_CMD_MAX_LEN], [LT_CMD_MAX_LEN($@)])]) +m4trace:m4/libtool.m4:1733: -1- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_SYS_MAX_CMD_LEN' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_CMD_MAX_LEN], [LT_CMD_MAX_LEN($@)])]) +m4trace:m4/libtool.m4:1844: -1- AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +_LT_DECL([dlopen_support], [enable_dlopen], [0], + [Whether dlopen is supported]) +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], + [Whether dlopen of programs is supported]) +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], + [Whether dlopen of statically linked programs is supported]) +]) +m4trace:m4/libtool.m4:1961: -1- AU_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [m4_if($#, 0, [LT_SYS_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF($@)])]) +m4trace:m4/libtool.m4:1961: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_DLOPEN_SELF' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF($@)])]) +m4trace:m4/libtool.m4:2931: -1- AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="m4_if([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +_LT_DECL([], [MAGIC_CMD], [0], + [Used to examine libraries when file_magic_cmd begins with "file"])dnl +]) +m4trace:m4/libtool.m4:2993: -1- AU_DEFUN([AC_PATH_TOOL_PREFIX], [m4_if($#, 0, [_LT_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX($@)])]) +m4trace:m4/libtool.m4:2993: -1- AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_DIAGNOSE([obsolete], [The macro `AC_PATH_TOOL_PREFIX' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [_LT_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX($@)])]) +m4trace:m4/libtool.m4:3016: -1- AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl + +AC_ARG_WITH([gnu-ld], + [AS_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test "$withval" = no || with_gnu_ld=yes], + [with_gnu_ld=no])dnl + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi]) +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + AC_SUBST([DUMPBIN]) + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm +AC_SUBST([NM]) +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl + +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], + [lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) + cat conftest.out >&AS_MESSAGE_LOG_FD + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest*]) +]) +m4trace:m4/libtool.m4:3486: -1- AU_DEFUN([AM_PROG_NM], [m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) +m4trace:m4/libtool.m4:3486: -1- AC_DEFUN([AM_PROG_NM], [AC_DIAGNOSE([obsolete], [The macro `AM_PROG_NM' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) +m4trace:m4/libtool.m4:3487: -1- AU_DEFUN([AC_PROG_NM], [m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) +m4trace:m4/libtool.m4:3487: -1- AC_DEFUN([AC_PROG_NM], [AC_DIAGNOSE([obsolete], [The macro `AC_PROG_NM' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) +m4trace:m4/libtool.m4:3557: -1- AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM="-lm") + ;; +esac +AC_SUBST([LIBM]) +]) +m4trace:m4/libtool.m4:3576: -1- AU_DEFUN([AC_CHECK_LIBM], [m4_if($#, 0, [LT_LIB_M], [LT_LIB_M($@)])]) +m4trace:m4/libtool.m4:3576: -1- AC_DEFUN([AC_CHECK_LIBM], [AC_DIAGNOSE([obsolete], [The macro `AC_CHECK_LIBM' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_LIB_M], [LT_LIB_M($@)])]) +m4trace:m4/libtool.m4:7623: -1- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], + [AC_CHECK_TOOL(GCJ, gcj,) + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS)])])[]dnl +]) +m4trace:m4/libtool.m4:7632: -1- AU_DEFUN([LT_AC_PROG_GCJ], [m4_if($#, 0, [LT_PROG_GCJ], [LT_PROG_GCJ($@)])]) +m4trace:m4/libtool.m4:7632: -1- AC_DEFUN([LT_AC_PROG_GCJ], [AC_DIAGNOSE([obsolete], [The macro `LT_AC_PROG_GCJ' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_PROG_GCJ], [LT_PROG_GCJ($@)])]) +m4trace:m4/libtool.m4:7639: -1- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) +]) +m4trace:m4/libtool.m4:7646: -1- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) +]) +m4trace:m4/libtool.m4:7651: -1- AU_DEFUN([LT_AC_PROG_RC], [m4_if($#, 0, [LT_PROG_RC], [LT_PROG_RC($@)])]) +m4trace:m4/libtool.m4:7651: -1- AC_DEFUN([LT_AC_PROG_RC], [AC_DIAGNOSE([obsolete], [The macro `LT_AC_PROG_RC' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_PROG_RC], [LT_PROG_RC($@)])]) +m4trace:m4/libtool.m4:7771: -1- AU_DEFUN([LT_AC_PROG_SED], [m4_if($#, 0, [AC_PROG_SED], [AC_PROG_SED($@)])]) +m4trace:m4/libtool.m4:7771: -1- AC_DEFUN([LT_AC_PROG_SED], [AC_DIAGNOSE([obsolete], [The macro `LT_AC_PROG_SED' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [AC_PROG_SED], [AC_PROG_SED($@)])]) +m4trace:m4/ltoptions.m4:14: -1- AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) +m4trace:m4/ltoptions.m4:111: -1- AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `dlopen' option into LT_INIT's first parameter.]) +]) +m4trace:m4/ltoptions.m4:111: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_DLOPEN' is obsolete. +You should run autoupdate.])dnl +_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `dlopen' option into LT_INIT's first parameter.]) +]) +m4trace:m4/ltoptions.m4:146: -1- AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.]) +]) +m4trace:m4/ltoptions.m4:146: -1- AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. +You should run autoupdate.])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.]) +]) +m4trace:m4/ltoptions.m4:195: -1- AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) +]) +m4trace:m4/ltoptions.m4:199: -1- AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) +]) +m4trace:m4/ltoptions.m4:203: -1- AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +m4trace:m4/ltoptions.m4:203: -1- AC_DEFUN([AM_ENABLE_SHARED], [AC_DIAGNOSE([obsolete], [The macro `AM_ENABLE_SHARED' is obsolete. +You should run autoupdate.])dnl +AC_ENABLE_SHARED($@)]) +m4trace:m4/ltoptions.m4:204: -1- AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) +m4trace:m4/ltoptions.m4:204: -1- AC_DEFUN([AM_DISABLE_SHARED], [AC_DIAGNOSE([obsolete], [The macro `AM_DISABLE_SHARED' is obsolete. +You should run autoupdate.])dnl +AC_DISABLE_SHARED($@)]) +m4trace:m4/ltoptions.m4:249: -1- AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) +]) +m4trace:m4/ltoptions.m4:253: -1- AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) +]) +m4trace:m4/ltoptions.m4:257: -1- AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +m4trace:m4/ltoptions.m4:257: -1- AC_DEFUN([AM_ENABLE_STATIC], [AC_DIAGNOSE([obsolete], [The macro `AM_ENABLE_STATIC' is obsolete. +You should run autoupdate.])dnl +AC_ENABLE_STATIC($@)]) +m4trace:m4/ltoptions.m4:258: -1- AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) +m4trace:m4/ltoptions.m4:258: -1- AC_DEFUN([AM_DISABLE_STATIC], [AC_DIAGNOSE([obsolete], [The macro `AM_DISABLE_STATIC' is obsolete. +You should run autoupdate.])dnl +AC_DISABLE_STATIC($@)]) +m4trace:m4/ltoptions.m4:303: -1- AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `fast-install' option into LT_INIT's first parameter.]) +]) +m4trace:m4/ltoptions.m4:303: -1- AC_DEFUN([AC_ENABLE_FAST_INSTALL], [AC_DIAGNOSE([obsolete], [The macro `AC_ENABLE_FAST_INSTALL' is obsolete. +You should run autoupdate.])dnl +_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `fast-install' option into LT_INIT's first parameter.]) +]) +m4trace:m4/ltoptions.m4:310: -1- AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `disable-fast-install' option into LT_INIT's first parameter.]) +]) +m4trace:m4/ltoptions.m4:310: -1- AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_DIAGNOSE([obsolete], [The macro `AC_DISABLE_FAST_INSTALL' is obsolete. +You should run autoupdate.])dnl +_LT_SET_OPTION([LT_INIT], [disable-fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `disable-fast-install' option into LT_INIT's first parameter.]) +]) +m4trace:m4/ltoptions.m4:358: -1- AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `pic-only' option into LT_INIT's first parameter.]) +]) +m4trace:m4/ltoptions.m4:358: -1- AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_PICMODE' is obsolete. +You should run autoupdate.])dnl +_LT_SET_OPTION([LT_INIT], [pic-only]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `pic-only' option into LT_INIT's first parameter.]) +]) +m4trace:m4/ltsugar.m4:13: -1- AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) +m4trace:m4/ltversion.m4:18: -1- AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.2' +macro_revision='1.3337' +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) +_LT_DECL(, macro_revision, 0) +]) +m4trace:m4/lt~obsolete.m4:36: -1- AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) +m4trace:m4/lt~obsolete.m4:40: -1- AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH]) +m4trace:m4/lt~obsolete.m4:41: -1- AC_DEFUN([_LT_AC_SHELL_INIT]) +m4trace:m4/lt~obsolete.m4:42: -1- AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX]) +m4trace:m4/lt~obsolete.m4:44: -1- AC_DEFUN([_LT_AC_TAGVAR]) +m4trace:m4/lt~obsolete.m4:45: -1- AC_DEFUN([AC_LTDL_ENABLE_INSTALL]) +m4trace:m4/lt~obsolete.m4:46: -1- AC_DEFUN([AC_LTDL_PREOPEN]) +m4trace:m4/lt~obsolete.m4:47: -1- AC_DEFUN([_LT_AC_SYS_COMPILER]) +m4trace:m4/lt~obsolete.m4:48: -1- AC_DEFUN([_LT_AC_LOCK]) +m4trace:m4/lt~obsolete.m4:49: -1- AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE]) +m4trace:m4/lt~obsolete.m4:50: -1- AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF]) +m4trace:m4/lt~obsolete.m4:51: -1- AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O]) +m4trace:m4/lt~obsolete.m4:52: -1- AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS]) +m4trace:m4/lt~obsolete.m4:53: -1- AC_DEFUN([AC_LIBTOOL_OBJDIR]) +m4trace:m4/lt~obsolete.m4:54: -1- AC_DEFUN([AC_LTDL_OBJDIR]) +m4trace:m4/lt~obsolete.m4:55: -1- AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH]) +m4trace:m4/lt~obsolete.m4:56: -1- AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP]) +m4trace:m4/lt~obsolete.m4:57: -1- AC_DEFUN([AC_PATH_MAGIC]) +m4trace:m4/lt~obsolete.m4:58: -1- AC_DEFUN([AC_PROG_LD_GNU]) +m4trace:m4/lt~obsolete.m4:59: -1- AC_DEFUN([AC_PROG_LD_RELOAD_FLAG]) +m4trace:m4/lt~obsolete.m4:60: -1- AC_DEFUN([AC_DEPLIBS_CHECK_METHOD]) +m4trace:m4/lt~obsolete.m4:61: -1- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI]) +m4trace:m4/lt~obsolete.m4:62: -1- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE]) +m4trace:m4/lt~obsolete.m4:63: -1- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC]) +m4trace:m4/lt~obsolete.m4:64: -1- AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS]) +m4trace:m4/lt~obsolete.m4:65: -1- AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP]) +m4trace:m4/lt~obsolete.m4:66: -1- AC_DEFUN([LT_AC_PROG_EGREP]) +m4trace:m4/lt~obsolete.m4:71: -1- AC_DEFUN([_AC_PROG_LIBTOOL]) +m4trace:m4/lt~obsolete.m4:72: -1- AC_DEFUN([AC_LIBTOOL_SETUP]) +m4trace:m4/lt~obsolete.m4:73: -1- AC_DEFUN([_LT_AC_CHECK_DLFCN]) +m4trace:m4/lt~obsolete.m4:74: -1- AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER]) +m4trace:m4/lt~obsolete.m4:75: -1- AC_DEFUN([_LT_AC_TAGCONFIG]) +m4trace:m4/lt~obsolete.m4:77: -1- AC_DEFUN([_LT_AC_LANG_CXX]) +m4trace:m4/lt~obsolete.m4:78: -1- AC_DEFUN([_LT_AC_LANG_F77]) +m4trace:m4/lt~obsolete.m4:79: -1- AC_DEFUN([_LT_AC_LANG_GCJ]) +m4trace:m4/lt~obsolete.m4:80: -1- AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG]) +m4trace:m4/lt~obsolete.m4:81: -1- AC_DEFUN([_LT_AC_LANG_C_CONFIG]) +m4trace:m4/lt~obsolete.m4:82: -1- AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG]) +m4trace:m4/lt~obsolete.m4:83: -1- AC_DEFUN([_LT_AC_LANG_CXX_CONFIG]) +m4trace:m4/lt~obsolete.m4:84: -1- AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG]) +m4trace:m4/lt~obsolete.m4:85: -1- AC_DEFUN([_LT_AC_LANG_F77_CONFIG]) +m4trace:m4/lt~obsolete.m4:86: -1- AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG]) +m4trace:m4/lt~obsolete.m4:87: -1- AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG]) +m4trace:m4/lt~obsolete.m4:88: -1- AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG]) +m4trace:m4/lt~obsolete.m4:89: -1- AC_DEFUN([_LT_AC_LANG_RC_CONFIG]) +m4trace:m4/lt~obsolete.m4:90: -1- AC_DEFUN([AC_LIBTOOL_CONFIG]) +m4trace:m4/lt~obsolete.m4:91: -1- AC_DEFUN([_LT_AC_FILE_LTDLL_C]) +m4trace:m4/lt~obsolete.m4:93: -1- AC_DEFUN([_LT_AC_PROG_CXXCPP]) +m4trace:m4/lt~obsolete.m4:96: -1- AC_DEFUN([_LT_PROG_F77]) +m4trace:m4/lt~obsolete.m4:97: -1- AC_DEFUN([_LT_PROG_FC]) +m4trace:m4/lt~obsolete.m4:98: -1- AC_DEFUN([_LT_PROG_CXX]) +m4trace:m4/pkg.m4:26: -1- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) +m4_pattern_allow(PKG_CFLAGS) +m4_pattern_allow(PKG_LIBS) +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=m4_ifval([$1], [$1], [0.9.0]) + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + PKG_CONFIG="" + fi + +fi[]dnl +]) +m4trace:m4/pkg.m4:74: -1- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +m4_pattern_allow([$1]_CFLAGS) +m4_pattern_allow([$1]_LIBS) +m4_pattern_allow([$1]) +m4_pattern_allow([$1]_PKG_ERRORS) +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl + +pkg_failed=no +AC_CACHE_CHECK([for $1][_CFLAGS], [pkg_cv_][$1][_CFLAGS], + [_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])]) +AC_CACHE_CHECK([for $1][_LIBS], [pkg_cv_][$1][_LIBS], + [_PKG_CONFIG([$1][_LIBS], [libs], [$2])]) + +if test $pkg_failed = yes; then + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` + # Put the nasty error message in config.log where it belongs + echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD + + ifelse([$4], , [AC_MSG_ERROR(dnl +[Package requirements ($2) were not met. +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables +to avoid the need to call pkg-config. See the pkg-config man page for +more details.])], + [$4]) +elif test $pkg_failed = untried; then + ifelse([$4], , [AC_MSG_FAILURE(dnl +[The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables +to avoid the need to call pkg-config. See the pkg-config man page for +more details. + +To get pkg-config, see .])], + [$4]) +else + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS + ifelse([$3], , :, [$3]) +fi[] +if test "x${$1[]_CFLAGS}" != "x"; then + AC_LIB_APPENDTOVAR([PKG_CFLAGS], "${$1_CFLAGS}") +fi +if test "x${$1[]_LIBS}" != "x"; then + PKG_LIBS="${$1[]_LIBS} ${PKG_LIBS}" +fi +]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?A[CHUM]_]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([_AC_]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) +m4trace:configure.ac:5: -1- m4_pattern_allow([^AS_FLAGS$]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?m4_]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^dnl$]) +m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?AS_]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^SHELL$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PATH_SEPARATOR$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^exec_prefix$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^prefix$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^program_transform_name$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^bindir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^sbindir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^libexecdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^datarootdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^datadir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^sysconfdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^sharedstatedir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^localstatedir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^includedir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^oldincludedir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^docdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^infodir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^htmldir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^dvidir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^pdfdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^psdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^libdir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^localedir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^mandir$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^DEFS$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^ECHO_C$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^ECHO_N$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^ECHO_T$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^build_alias$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^host_alias$]) +m4trace:configure.ac:5: -1- m4_pattern_allow([^target_alias$]) +m4trace:configure.ac:7: -1- AM_INIT_AUTOMAKE([1.10 foreign]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) +m4trace:configure.ac:7: -1- AM_SET_CURRENT_AUTOMAKE_VERSION +m4trace:configure.ac:7: -1- AM_AUTOMAKE_VERSION([1.11.6]) +m4trace:configure.ac:7: -1- _AM_AUTOCONF_VERSION([2.69]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_DATA$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__isrc$]) +m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([am__isrc]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^CYGPATH_W$]) +m4trace:configure.ac:7: -1- _AM_SET_OPTIONS([1.10 foreign]) +m4trace:configure.ac:7: -1- _AM_SET_OPTION([1.10]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([1.10]) +m4trace:configure.ac:7: -1- _AM_SET_OPTION([foreign]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([foreign]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:7: -1- _AM_IF_OPTION([no-define], [], [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([no-define]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:7: -1- AM_SANITY_CHECK +m4trace:configure.ac:7: -1- AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +m4trace:configure.ac:7: -1- AM_MISSING_HAS_RUN +m4trace:configure.ac:7: -1- AM_AUX_DIR_EXPAND +m4trace:configure.ac:7: -1- m4_pattern_allow([^ACLOCAL$]) +m4trace:configure.ac:7: -1- AM_MISSING_PROG([AUTOCONF], [autoconf]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOCONF$]) +m4trace:configure.ac:7: -1- AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOMAKE$]) +m4trace:configure.ac:7: -1- AM_MISSING_PROG([AUTOHEADER], [autoheader]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOHEADER$]) +m4trace:configure.ac:7: -1- AM_MISSING_PROG([MAKEINFO], [makeinfo]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^MAKEINFO$]) +m4trace:configure.ac:7: -1- AM_PROG_INSTALL_SH +m4trace:configure.ac:7: -1- m4_pattern_allow([^install_sh$]) +m4trace:configure.ac:7: -1- AM_PROG_INSTALL_STRIP +m4trace:configure.ac:7: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) +m4trace:configure.ac:7: -1- AM_PROG_MKDIR_P +m4trace:configure.ac:7: -1- m4_pattern_allow([^MKDIR_P$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^mkdir_p$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^SET_MAKE$]) +m4trace:configure.ac:7: -1- AM_SET_LEADING_DOT +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__leading_dot$]) +m4trace:configure.ac:7: -1- _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([tar-ustar]) +m4trace:configure.ac:7: -1- _AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([tar-pax]) +m4trace:configure.ac:7: -1- _AM_PROG_TAR([v7]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AMTAR$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__tar$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__untar$]) +m4trace:configure.ac:7: -1- _AM_IF_OPTION([no-dependencies], [], [AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([no-dependencies]) +m4trace:configure.ac:7: -1- _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([silent-rules]) +m4trace:configure.ac:78: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:81: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:87: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:98: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:99: -1- m4_pattern_allow([^GEM_TARGETS$]) +m4trace:configure.ac:100: -1- m4_pattern_allow([^EXT$]) +m4trace:configure.ac:101: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:103: -1- m4_pattern_allow([^CXXFLAGS$]) +m4trace:configure.ac:104: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:105: -1- m4_pattern_allow([^DEFS$]) +m4trace:configure.ac:106: -1- m4_pattern_allow([^DEFINES$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^X_CFLAGS$]) +m4trace:configure.ac:109: -1- m4_pattern_allow([^X_PRE_LIBS$]) +m4trace:configure.ac:110: -1- m4_pattern_allow([^X_LIBS$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^X_EXTRA_LIBS$]) +m4trace:configure.ac:113: -1- m4_pattern_allow([^PKG_CFLAGS$]) +m4trace:configure.ac:114: -1- m4_pattern_allow([^PKG_LIBS$]) +m4trace:configure.ac:115: -1- m4_pattern_allow([^prefix$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^CXXFLAGS$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^ac_ct_CXX$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^EXEEXT$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^OBJEXT$]) +m4trace:configure.ac:118: -1- _AM_DEPENDENCIES([CXX]) +m4trace:configure.ac:118: -1- AM_SET_DEPDIR +m4trace:configure.ac:118: -1- m4_pattern_allow([^DEPDIR$]) +m4trace:configure.ac:118: -1- AM_OUTPUT_DEPENDENCY_COMMANDS +m4trace:configure.ac:118: -1- AM_MAKE_INCLUDE +m4trace:configure.ac:118: -1- m4_pattern_allow([^am__include$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^am__quote$]) +m4trace:configure.ac:118: -1- AM_DEP_TRACK +m4trace:configure.ac:118: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^AMDEP_TRUE$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^AMDEP_FALSE$]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^am__nodep$]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([am__nodep]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^CXXDEPMODE$]) +m4trace:configure.ac:118: -1- AM_CONDITIONAL([am__fastdepCXX], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:118: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^OBJC$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^OBJCFLAGS$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^OBJC$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^ac_ct_OBJC$]) +m4trace:configure.ac:119: -1- _AM_DEPENDENCIES([OBJC]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^OBJCDEPMODE$]) +m4trace:configure.ac:119: -1- AM_CONDITIONAL([am__fastdepOBJC], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^am__fastdepOBJC_TRUE$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^am__fastdepOBJC_FALSE$]) +m4trace:configure.ac:119: -1- _AM_SUBST_NOTMAKE([am__fastdepOBJC_TRUE]) +m4trace:configure.ac:119: -1- _AM_SUBST_NOTMAKE([am__fastdepOBJC_FALSE]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^OBJCXX$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^OBJCXXFLAGS$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^OBJCXX$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^ac_ct_OBJCXX$]) +m4trace:configure.ac:122: -1- AC_LIBTOOL_WIN32_DLL +m4trace:configure.ac:122: -1- _m4_warn([obsolete], [The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. +You should run autoupdate.], [m4/ltoptions.m4:146: AC_LIBTOOL_WIN32_DLL is expanded from... +configure.ac:122: the top level]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^build$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^build_cpu$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^build_vendor$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^build_os$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^host$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^host_cpu$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^host_vendor$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^host_os$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^AS$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:122: -1- _m4_warn([obsolete], [AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.], [m4/ltoptions.m4:146: AC_LIBTOOL_WIN32_DLL is expanded from... +configure.ac:122: the top level]) +m4trace:configure.ac:123: -1- AC_PROG_LIBTOOL +m4trace:configure.ac:123: -1- _m4_warn([obsolete], [The macro `AC_PROG_LIBTOOL' is obsolete. +You should run autoupdate.], [m4/libtool.m4:107: AC_PROG_LIBTOOL is expanded from... +configure.ac:123: the top level]) +m4trace:configure.ac:123: -1- LT_INIT +m4trace:configure.ac:123: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$]) +m4trace:configure.ac:123: -1- LTOPTIONS_VERSION +m4trace:configure.ac:123: -1- LTSUGAR_VERSION +m4trace:configure.ac:123: -1- LTVERSION_VERSION +m4trace:configure.ac:123: -1- LTOBSOLETE_VERSION +m4trace:configure.ac:123: -1- _LT_PROG_LTMAIN +m4trace:configure.ac:123: -1- m4_pattern_allow([^LIBTOOL$]) +m4trace:configure.ac:123: -1- _LT_PREPARE_SED_QUOTE_VARS +m4trace:configure.ac:123: -1- _LT_PROG_ECHO_BACKSLASH +m4trace:configure.ac:123: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CFLAGS$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^ac_ct_CC$]) +m4trace:configure.ac:123: -1- _AM_DEPENDENCIES([CC]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CCDEPMODE$]) +m4trace:configure.ac:123: -1- AM_CONDITIONAL([am__fastdepCC], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) +m4trace:configure.ac:123: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) +m4trace:configure.ac:123: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) +m4trace:configure.ac:123: -1- LT_PATH_LD +m4trace:configure.ac:123: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:123: -1- AC_PROG_EGREP +m4trace:configure.ac:123: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^EGREP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^FGREP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:123: -1- LT_PATH_NM +m4trace:configure.ac:123: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^ac_ct_DUMPBIN$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^NM$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LN_S$]) +m4trace:configure.ac:123: -1- LT_CMD_MAX_LEN +m4trace:configure.ac:123: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^ac_ct_AR$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^RANLIB$]) +m4trace:configure.ac:123: -1- _LT_WITH_SYSROOT +m4trace:configure.ac:123: -1- m4_pattern_allow([LT_OBJDIR]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LT_OBJDIR$]) +m4trace:configure.ac:123: -1- _LT_CC_BASENAME([$compiler]) +m4trace:configure.ac:123: -1- _LT_PATH_TOOL_PREFIX([${ac_tool_prefix}file], [/usr/bin$PATH_SEPARATOR$PATH]) +m4trace:configure.ac:123: -1- _LT_PATH_TOOL_PREFIX([file], [/usr/bin$PATH_SEPARATOR$PATH]) +m4trace:configure.ac:123: -1- LT_SUPPORTED_TAG([CC]) +m4trace:configure.ac:123: -1- _LT_COMPILER_BOILERPLATE +m4trace:configure.ac:123: -1- _LT_LINKER_BOILERPLATE +m4trace:configure.ac:123: -1- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], [lt_cv_prog_compiler_rtti_exceptions], [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, )="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, ) -fno-rtti -fno-exceptions"]) +m4trace:configure.ac:123: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, ) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, )], [$_LT_TAGVAR(lt_prog_compiler_pic, )@&t@m4_if([],[],[ -DPIC],[m4_if([],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, ) in + "" | " "*) ;; + *) _LT_TAGVAR(lt_prog_compiler_pic, )=" $_LT_TAGVAR(lt_prog_compiler_pic, )" ;; + esac], [_LT_TAGVAR(lt_prog_compiler_pic, )= + _LT_TAGVAR(lt_prog_compiler_can_build_shared, )=no]) +m4trace:configure.ac:123: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, )=]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^MANIFEST_TOOL$]) +m4trace:configure.ac:123: -1- _LT_REQUIRED_DARWIN_CHECKS +m4trace:configure.ac:123: -1- m4_pattern_allow([^DSYMUTIL$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^NMEDIT$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^LIPO$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^OTOOL$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^OTOOL64$]) +m4trace:configure.ac:123: -1- _LT_LINKER_OPTION([if $CC understands -b], [lt_cv_prog_compiler__b], [-b], [_LT_TAGVAR(archive_cmds, )='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, )='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags']) +m4trace:configure.ac:123: -1- LT_SYS_DLOPEN_SELF +m4trace:configure.ac:123: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^HAVE_DLFCN_H$]) +m4trace:configure.ac:123: -1- LT_LANG([CXX]) +m4trace:configure.ac:123: -1- LT_SUPPORTED_TAG([CXX]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:123: -1- _LT_COMPILER_BOILERPLATE +m4trace:configure.ac:123: -1- _LT_LINKER_BOILERPLATE +m4trace:configure.ac:123: -1- _LT_CC_BASENAME([$compiler]) +m4trace:configure.ac:123: -1- LT_PATH_LD +m4trace:configure.ac:123: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:123: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, CXX) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, CXX)], [$_LT_TAGVAR(lt_prog_compiler_pic, CXX)@&t@m4_if([CXX],[],[ -DPIC],[m4_if([CXX],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, CXX) in + "" | " "*) ;; + *) _LT_TAGVAR(lt_prog_compiler_pic, CXX)=" $_LT_TAGVAR(lt_prog_compiler_pic, CXX)" ;; + esac], [_LT_TAGVAR(lt_prog_compiler_pic, CXX)= + _LT_TAGVAR(lt_prog_compiler_can_build_shared, CXX)=no]) +m4trace:configure.ac:123: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works_CXX], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, CXX)=]) +m4trace:configure.ac:126: -1- m4_pattern_allow([^LN_S$]) +m4trace:configure.ac:127: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:133: -1- GEM_CHECK_RTE([]) +m4trace:configure.ac:133: -1- IEM_OPERATING_SYSTEM +m4trace:configure.ac:133: -1- AM_CONDITIONAL([LINUX], [test x$LINUX = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^LINUX_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^LINUX_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([LINUX_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([LINUX_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([ANDROID], [test x$ANDROID = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^ANDROID_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^ANDROID_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([ANDROID_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([ANDROID_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([MACOSX], [test x$MACOSX = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^MACOSX_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^MACOSX_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([MACOSX_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([MACOSX_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([IPHONEOS], [test x$IPHONEOS = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^IPHONEOS_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^IPHONEOS_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([IPHONEOS_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([IPHONEOS_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([BSD], [test x$BSD = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^BSD_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^BSD_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([BSD_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([BSD_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([WINDOWS], [test x$WINDOWS = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^WINDOWS_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^WINDOWS_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([WINDOWS_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([WINDOWS_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([CYGWIN], [test x$CYGWIN = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^CYGWIN_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^CYGWIN_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([CYGWIN_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([CYGWIN_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([MINGW], [test x$MINGW = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^MINGW_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^MINGW_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([MINGW_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([MINGW_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([HURD], [test x$HURD = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^HURD_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^HURD_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([HURD_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([HURD_FALSE]) +m4trace:configure.ac:133: -1- AM_CONDITIONAL([IRIX], [test x$IRIX = xyes]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^IRIX_TRUE$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^IRIX_FALSE$]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([IRIX_TRUE]) +m4trace:configure.ac:133: -1- _AM_SUBST_NOTMAKE([IRIX_FALSE]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^GEM_RTE_CFLAGS$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^GEM_RTE_LIBS$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^GEM_RTE$]) +m4trace:configure.ac:133: -1- AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS], ["-I${with_pd}/src"]) +m4trace:configure.ac:133: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:133: -1- AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS], ["-I${with_pd}/include/pd"]) +m4trace:configure.ac:133: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:133: -1- AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS], ["-I${with_pd}/include"]) +m4trace:configure.ac:133: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:133: -1- AC_LIB_APPENDTOVAR([GEM_RTE_CFLAGS], ["-I${with_pd}"]) +m4trace:configure.ac:133: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^HAVE_M_PD_H$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^HAVE_S_STUFF_H$]) +m4trace:configure.ac:133: -1- m4_pattern_allow([^GEM_RTE_EXTENSION$]) +m4trace:configure.ac:135: -1- m4_pattern_allow([^GEM_CPPFLAGS$]) +m4trace:configure.ac:136: -1- m4_pattern_allow([^GEM_CFLAGS$]) +m4trace:configure.ac:137: -1- m4_pattern_allow([^GEM_CXXFLAGS$]) +m4trace:configure.ac:138: -1- m4_pattern_allow([^GEM_LIBS$]) +m4trace:configure.ac:140: -1- m4_pattern_allow([^GEM_EXTERNAL_CPPFLAGS$]) +m4trace:configure.ac:141: -1- m4_pattern_allow([^GEM_EXTERNAL_CFLAGS$]) +m4trace:configure.ac:142: -1- m4_pattern_allow([^GEM_EXTERNAL_LIBS$]) +m4trace:configure.ac:151: -1- GEM_ARG_ENABLE([mmx], [MMX-support]) +m4trace:configure.ac:151: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:28: GEM_ARG_ENABLE is expanded from... +configure.ac:151: the top level]) +m4trace:configure.ac:154: -1- GEM_ARG_DISABLE([sse2], [SSE2-support]) +m4trace:configure.ac:154: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:36: GEM_ARG_DISABLE is expanded from... +configure.ac:154: the top level]) +m4trace:configure.ac:155: -1- GEM_ARG_ENABLE([altivec], [AltiVec-support]) +m4trace:configure.ac:155: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:28: GEM_ARG_ENABLE is expanded from... +configure.ac:155: the top level]) +m4trace:configure.ac:156: -1- GEM_ARG_DISABLE([powerpc], [PowerPC specific optimizations]) +m4trace:configure.ac:156: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:36: GEM_ARG_DISABLE is expanded from... +configure.ac:156: the top level]) +m4trace:configure.ac:158: -1- GEM_ARG_ENABLE([pascalstrings], [containing '\p']) +m4trace:configure.ac:158: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:28: GEM_ARG_ENABLE is expanded from... +configure.ac:158: the top level]) +m4trace:configure.ac:160: -1- GEM_ARG_ENABLE([registerstruct], [use \"-freg-struct-return\" (needed for FreeFrame)], [force]) +m4trace:configure.ac:160: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:28: GEM_ARG_ENABLE is expanded from... +configure.ac:160: the top level]) +m4trace:configure.ac:163: -1- GEM_TARGET([Controls]) +m4trace:configure.ac:163: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:163: the top level]) +m4trace:configure.ac:163: -1- AM_CONDITIONAL([TARGET_CONTROLS], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:163: -1- m4_pattern_allow([^TARGET_CONTROLS_TRUE$]) +m4trace:configure.ac:163: -1- m4_pattern_allow([^TARGET_CONTROLS_FALSE$]) +m4trace:configure.ac:163: -1- _AM_SUBST_NOTMAKE([TARGET_CONTROLS_TRUE]) +m4trace:configure.ac:163: -1- _AM_SUBST_NOTMAKE([TARGET_CONTROLS_FALSE]) +m4trace:configure.ac:164: -1- GEM_TARGET([Geos]) +m4trace:configure.ac:164: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:164: the top level]) +m4trace:configure.ac:164: -1- AM_CONDITIONAL([TARGET_GEOS], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:164: -1- m4_pattern_allow([^TARGET_GEOS_TRUE$]) +m4trace:configure.ac:164: -1- m4_pattern_allow([^TARGET_GEOS_FALSE$]) +m4trace:configure.ac:164: -1- _AM_SUBST_NOTMAKE([TARGET_GEOS_TRUE]) +m4trace:configure.ac:164: -1- _AM_SUBST_NOTMAKE([TARGET_GEOS_FALSE]) +m4trace:configure.ac:165: -1- GEM_TARGET([Manips]) +m4trace:configure.ac:165: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:165: the top level]) +m4trace:configure.ac:165: -1- AM_CONDITIONAL([TARGET_MANIPS], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:165: -1- m4_pattern_allow([^TARGET_MANIPS_TRUE$]) +m4trace:configure.ac:165: -1- m4_pattern_allow([^TARGET_MANIPS_FALSE$]) +m4trace:configure.ac:165: -1- _AM_SUBST_NOTMAKE([TARGET_MANIPS_TRUE]) +m4trace:configure.ac:165: -1- _AM_SUBST_NOTMAKE([TARGET_MANIPS_FALSE]) +m4trace:configure.ac:166: -1- GEM_TARGET([Nongeos]) +m4trace:configure.ac:166: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:166: the top level]) +m4trace:configure.ac:166: -1- AM_CONDITIONAL([TARGET_NONGEOS], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:166: -1- m4_pattern_allow([^TARGET_NONGEOS_TRUE$]) +m4trace:configure.ac:166: -1- m4_pattern_allow([^TARGET_NONGEOS_FALSE$]) +m4trace:configure.ac:166: -1- _AM_SUBST_NOTMAKE([TARGET_NONGEOS_TRUE]) +m4trace:configure.ac:166: -1- _AM_SUBST_NOTMAKE([TARGET_NONGEOS_FALSE]) +m4trace:configure.ac:167: -1- GEM_TARGET([Particles]) +m4trace:configure.ac:167: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:167: the top level]) +m4trace:configure.ac:167: -1- AM_CONDITIONAL([TARGET_PARTICLES], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:167: -1- m4_pattern_allow([^TARGET_PARTICLES_TRUE$]) +m4trace:configure.ac:167: -1- m4_pattern_allow([^TARGET_PARTICLES_FALSE$]) +m4trace:configure.ac:167: -1- _AM_SUBST_NOTMAKE([TARGET_PARTICLES_TRUE]) +m4trace:configure.ac:167: -1- _AM_SUBST_NOTMAKE([TARGET_PARTICLES_FALSE]) +m4trace:configure.ac:168: -1- GEM_TARGET([Pixes]) +m4trace:configure.ac:168: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:168: the top level]) +m4trace:configure.ac:168: -1- AM_CONDITIONAL([TARGET_PIXES], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:168: -1- m4_pattern_allow([^TARGET_PIXES_TRUE$]) +m4trace:configure.ac:168: -1- m4_pattern_allow([^TARGET_PIXES_FALSE$]) +m4trace:configure.ac:168: -1- _AM_SUBST_NOTMAKE([TARGET_PIXES_TRUE]) +m4trace:configure.ac:168: -1- _AM_SUBST_NOTMAKE([TARGET_PIXES_FALSE]) +m4trace:configure.ac:169: -1- GEM_TARGET([openGL]) +m4trace:configure.ac:169: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:44: GEM_TARGET is expanded from... +configure.ac:169: the top level]) +m4trace:configure.ac:169: -1- AM_CONDITIONAL([TARGET_OPENGL], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:169: -1- m4_pattern_allow([^TARGET_OPENGL_TRUE$]) +m4trace:configure.ac:169: -1- m4_pattern_allow([^TARGET_OPENGL_FALSE$]) +m4trace:configure.ac:169: -1- _AM_SUBST_NOTMAKE([TARGET_OPENGL_TRUE]) +m4trace:configure.ac:169: -1- _AM_SUBST_NOTMAKE([TARGET_OPENGL_FALSE]) +m4trace:configure.ac:170: -1- GEM_TARGET_DISABLED([Vertex]) +m4trace:configure.ac:170: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:68: GEM_TARGET_DISABLED is expanded from... +configure.ac:170: the top level]) +m4trace:configure.ac:170: -1- AM_CONDITIONAL([TARGET_VERTEX], [test "x$target_[]NAME" != "xno"]) +m4trace:configure.ac:170: -1- m4_pattern_allow([^TARGET_VERTEX_TRUE$]) +m4trace:configure.ac:170: -1- m4_pattern_allow([^TARGET_VERTEX_FALSE$]) +m4trace:configure.ac:170: -1- _AM_SUBST_NOTMAKE([TARGET_VERTEX_TRUE]) +m4trace:configure.ac:170: -1- _AM_SUBST_NOTMAKE([TARGET_VERTEX_FALSE]) +m4trace:configure.ac:174: -1- m4_pattern_allow([^HAVE_LIBM$]) +m4trace:configure.ac:175: -1- m4_pattern_allow([^HAVE_LIBZ$]) +m4trace:configure.ac:176: -1- m4_pattern_allow([^HAVE_LIBDL$]) +m4trace:configure.ac:179: -1- m4_pattern_allow([^HAVE_LIBOLDNAMES$]) +m4trace:configure.ac:180: -1- m4_pattern_allow([^HAVE_LIBCOLDNAME$]) +m4trace:configure.ac:182: -1- m4_pattern_allow([^HAVE_LIBLIBCPMT$]) +m4trace:configure.ac:184: -1- m4_pattern_allow([^HAVE_LIBMSVCRT$]) +m4trace:configure.ac:186: -1- m4_pattern_allow([^HAVE_LIBMSVCPRT$]) +m4trace:configure.ac:188: -1- m4_pattern_allow([^HAVE_LIBWS2_32$]) +m4trace:configure.ac:189: -1- m4_pattern_allow([^HAVE_LIBWSOCK32$]) +m4trace:configure.ac:192: -1- m4_pattern_allow([^HAVE_LIBGDI32$]) +m4trace:configure.ac:203: -1- m4_pattern_allow([^XMKMF$]) +m4trace:configure.ac:204: -1- m4_pattern_allow([^X_DISPLAY_MISSING$]) +m4trace:configure.ac:204: -1- m4_pattern_allow([^X_CFLAGS$]) +m4trace:configure.ac:204: -1- m4_pattern_allow([^X_PRE_LIBS$]) +m4trace:configure.ac:204: -1- m4_pattern_allow([^X_LIBS$]) +m4trace:configure.ac:204: -1- m4_pattern_allow([^X_EXTRA_LIBS$]) +m4trace:configure.ac:209: -1- m4_pattern_allow([^HAVE_LIBXXF86VM$]) +m4trace:configure.ac:212: -1- IEM_CHECK_GL +m4trace:configure.ac:212: -1- AX_CHECK_GL +m4trace:configure.ac:212: -1- AX_PTHREAD +m4trace:configure.ac:212: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete. +You should run autoupdate.], [../../lib/autoconf/lang.m4:125: AC_LANG_SAVE is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/ax_check_gl.m4:52: AX_CHECK_GL is expanded from... +m4/iem_opengl.m4:42: IEM_CHECK_GL is expanded from... +configure.ac:212: the top level]) +m4trace:configure.ac:212: -1- _m4_warn([obsolete], [The macro `AC_LANG_C' is obsolete. +You should run autoupdate.], [../../lib/autoconf/c.m4:72: AC_LANG_C is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/ax_check_gl.m4:52: AX_CHECK_GL is expanded from... +m4/iem_opengl.m4:42: IEM_CHECK_GL is expanded from... +configure.ac:212: the top level]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^ax_pthread_config$]) +m4trace:configure.ac:212: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/ax_check_gl.m4:52: AX_CHECK_GL is expanded from... +m4/iem_opengl.m4:42: IEM_CHECK_GL is expanded from... +configure.ac:212: the top level]) +m4trace:configure.ac:212: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/ax_check_gl.m4:52: AX_CHECK_GL is expanded from... +m4/iem_opengl.m4:42: IEM_CHECK_GL is expanded from... +configure.ac:212: the top level]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^PTHREAD_CREATE_JOINABLE$]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^PTHREAD_LIBS$]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^PTHREAD_CFLAGS$]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:212: -2- m4_pattern_allow([^HAVE_PTHREADS$]) +m4trace:configure.ac:212: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete. +You should run autoupdate.], [../../lib/autoconf/lang.m4:134: AC_LANG_RESTORE is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/ax_check_gl.m4:52: AX_CHECK_GL is expanded from... +m4/iem_opengl.m4:42: IEM_CHECK_GL is expanded from... +configure.ac:212: the top level]) +m4trace:configure.ac:212: -1- AX_COMPILER_VENDOR +m4trace:configure.ac:212: -1- m4_pattern_allow([^HAVE_WINDOWS_H$]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^GL_CFLAGS$]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^GL_LIBS$]) +m4trace:configure.ac:212: -1- AM_CONDITIONAL([HAVE_GL], [test "x$no_gl" != "xyes"]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^HAVE_GL_TRUE$]) +m4trace:configure.ac:212: -1- m4_pattern_allow([^HAVE_GL_FALSE$]) +m4trace:configure.ac:212: -1- _AM_SUBST_NOTMAKE([HAVE_GL_TRUE]) +m4trace:configure.ac:212: -1- _AM_SUBST_NOTMAKE([HAVE_GL_FALSE]) +m4trace:configure.ac:213: -1- IEM_CHECK_GLU +m4trace:configure.ac:213: -1- AX_CHECK_GLU +m4trace:configure.ac:213: -1- m4_pattern_allow([^GLU_CFLAGS$]) +m4trace:configure.ac:213: -1- m4_pattern_allow([^GLU_LIBS$]) +m4trace:configure.ac:213: -1- m4_pattern_allow([^HAVE_VARARGS_GLU_TESSCB$]) +m4trace:configure.ac:213: -1- AM_CONDITIONAL([HAVE_GLU], [test "x$no_glu" != "xyes"]) +m4trace:configure.ac:213: -1- m4_pattern_allow([^HAVE_GLU_TRUE$]) +m4trace:configure.ac:213: -1- m4_pattern_allow([^HAVE_GLU_FALSE$]) +m4trace:configure.ac:213: -1- _AM_SUBST_NOTMAKE([HAVE_GLU_TRUE]) +m4trace:configure.ac:213: -1- _AM_SUBST_NOTMAKE([HAVE_GLU_FALSE]) +m4trace:configure.ac:214: -1- IEM_CHECK_GLUT +m4trace:configure.ac:214: -1- AX_CHECK_GLUT +m4trace:configure.ac:214: -1- m4_pattern_allow([^GLUT_CFLAGS$]) +m4trace:configure.ac:214: -1- m4_pattern_allow([^GLUT_LIBS$]) +m4trace:configure.ac:214: -1- AM_CONDITIONAL([HAVE_GLUT], [test "x$no_glut" != "xyes"]) +m4trace:configure.ac:214: -1- m4_pattern_allow([^HAVE_GLUT_TRUE$]) +m4trace:configure.ac:214: -1- m4_pattern_allow([^HAVE_GLUT_FALSE$]) +m4trace:configure.ac:214: -1- _AM_SUBST_NOTMAKE([HAVE_GLUT_TRUE]) +m4trace:configure.ac:214: -1- _AM_SUBST_NOTMAKE([HAVE_GLUT_FALSE]) +m4trace:configure.ac:215: -1- IEM_CHECK_GLX +m4trace:configure.ac:215: -1- m4_pattern_allow([^HAVE_GL_GLX_H$]) +m4trace:configure.ac:215: -1- AM_CONDITIONAL([HAVE_GLX], [test "x$no_glx" != "xyes"]) +m4trace:configure.ac:215: -1- m4_pattern_allow([^HAVE_GLX_TRUE$]) +m4trace:configure.ac:215: -1- m4_pattern_allow([^HAVE_GLX_FALSE$]) +m4trace:configure.ac:215: -1- _AM_SUBST_NOTMAKE([HAVE_GLX_TRUE]) +m4trace:configure.ac:215: -1- _AM_SUBST_NOTMAKE([HAVE_GLX_FALSE]) +m4trace:configure.ac:215: -1- m4_pattern_allow([^GLX_CFLAGS$]) +m4trace:configure.ac:215: -1- m4_pattern_allow([^GLX_LIBS$]) +m4trace:configure.ac:216: -1- IEM_CHECK_AGL +m4trace:configure.ac:216: -1- GEM_CHECK_FRAMEWORK([AGL]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^GEM_FRAMEWORK_AGL$]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_AGL$]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_GEM_FRAMEWORK_AGL$]) +m4trace:configure.ac:216: -1- AM_CONDITIONAL([HAVE_FRAMEWORK_AGL], [test "x$gem_check_ldflags_success" = "xyes"]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_FRAMEWORK_AGL_TRUE$]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_FRAMEWORK_AGL_FALSE$]) +m4trace:configure.ac:216: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_AGL_TRUE]) +m4trace:configure.ac:216: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_AGL_FALSE]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^AGL_CFLAGS$]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^AGL_LIBS$]) +m4trace:configure.ac:216: -1- AM_CONDITIONAL([HAVE_AGL], [test "x$no_agl" != "xyes"]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_AGL_TRUE$]) +m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_AGL_FALSE$]) +m4trace:configure.ac:216: -1- _AM_SUBST_NOTMAKE([HAVE_AGL_TRUE]) +m4trace:configure.ac:216: -1- _AM_SUBST_NOTMAKE([HAVE_AGL_FALSE]) +m4trace:configure.ac:219: -1- GEM_CHECK_LIB([glew], [GLEW], [glewInit], [], [], [], [OpenGL Extension Wrangler library], [no]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^GEM_LIB_GLEW_CFLAGS$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^GEM_LIB_GLEW_LIBS$]) +m4trace:configure.ac:219: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:219: the top level]) +m4trace:configure.ac:219: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:219: the top level]) +m4trace:configure.ac:219: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:219: the top level]) +m4trace:configure.ac:219: -1- PKG_CHECK_MODULES([PKG_GLEW], [glew], [ac_cv_lib_GLEW_glewInit=yes], [:]) +m4trace:configure.ac:219: -1- PKG_PROG_PKG_CONFIG +m4trace:configure.ac:219: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_CFLAGS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_LIBS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_GLEW_CFLAGS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_GLEW_LIBS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_GLEW]) +m4trace:configure.ac:219: -1- m4_pattern_allow([PKG_GLEW_PKG_ERRORS]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^PKG_GLEW_CFLAGS$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^PKG_GLEW_LIBS$]) +m4trace:configure.ac:219: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_GLEW_CFLAGS}"]) +m4trace:configure.ac:219: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_LIBGLEW$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_LIBGLEW$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_LIBGLEW$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_GLEWINIT$]) +m4trace:configure.ac:219: -1- AM_CONDITIONAL([HAVE_LIB_GLEW], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_LIB_GLEW_TRUE$]) +m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_LIB_GLEW_FALSE$]) +m4trace:configure.ac:219: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_GLEW_TRUE]) +m4trace:configure.ac:219: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_GLEW_FALSE]) +m4trace:configure.ac:224: -1- GEM_CHECK_LIB([sdl], [SDL], [SDL_Quit], [], [], [], [SDL windowing], [yes]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^GEM_LIB_SDL_CFLAGS$]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^GEM_LIB_SDL_LIBS$]) +m4trace:configure.ac:224: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:224: the top level]) +m4trace:configure.ac:224: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:224: the top level]) +m4trace:configure.ac:224: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:224: the top level]) +m4trace:configure.ac:224: -1- PKG_CHECK_MODULES([PKG_SDL], [sdl], [ac_cv_lib_SDL_SDL_Quit=yes], [:]) +m4trace:configure.ac:224: -1- m4_pattern_allow([PKG_SDL_CFLAGS]) +m4trace:configure.ac:224: -1- m4_pattern_allow([PKG_SDL_LIBS]) +m4trace:configure.ac:224: -1- m4_pattern_allow([PKG_SDL]) +m4trace:configure.ac:224: -1- m4_pattern_allow([PKG_SDL_PKG_ERRORS]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^PKG_SDL_CFLAGS$]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^PKG_SDL_LIBS$]) +m4trace:configure.ac:224: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_SDL_CFLAGS}"]) +m4trace:configure.ac:224: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_LIBSDL$]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_LIBSDL$]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_LIBSDL$]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_SDL_QUIT$]) +m4trace:configure.ac:224: -1- AM_CONDITIONAL([HAVE_LIB_SDL], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_LIB_SDL_TRUE$]) +m4trace:configure.ac:224: -1- m4_pattern_allow([^HAVE_LIB_SDL_FALSE$]) +m4trace:configure.ac:224: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_SDL_TRUE]) +m4trace:configure.ac:224: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_SDL_FALSE]) +m4trace:configure.ac:237: -1- GEM_CHECK_FRAMEWORK([Cocoa], [have_cocoa_framework="yes"], [have_cocoa_framework="no"]) +m4trace:configure.ac:237: -1- m4_pattern_allow([^GEM_FRAMEWORK_COCOA$]) +m4trace:configure.ac:237: -1- m4_pattern_allow([^HAVE_COCOA$]) +m4trace:configure.ac:237: -1- m4_pattern_allow([^HAVE_GEM_FRAMEWORK_COCOA$]) +m4trace:configure.ac:237: -1- AM_CONDITIONAL([HAVE_FRAMEWORK_COCOA], [test "x$gem_check_ldflags_success" = "xyes"]) +m4trace:configure.ac:237: -1- m4_pattern_allow([^HAVE_FRAMEWORK_COCOA_TRUE$]) +m4trace:configure.ac:237: -1- m4_pattern_allow([^HAVE_FRAMEWORK_COCOA_FALSE$]) +m4trace:configure.ac:237: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_COCOA_TRUE]) +m4trace:configure.ac:237: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_COCOA_FALSE]) +m4trace:configure.ac:240: -1- GEM_CHECK_FRAMEWORK([Carbon], [have_carbon_framework="yes"], [have_carbon_framework="no"]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^GEM_FRAMEWORK_CARBON$]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_CARBON$]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_GEM_FRAMEWORK_CARBON$]) +m4trace:configure.ac:240: -1- AM_CONDITIONAL([HAVE_FRAMEWORK_CARBON], [test "x$gem_check_ldflags_success" = "xyes"]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_FRAMEWORK_CARBON_TRUE$]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_FRAMEWORK_CARBON_FALSE$]) +m4trace:configure.ac:240: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_CARBON_TRUE]) +m4trace:configure.ac:240: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_CARBON_FALSE]) +m4trace:configure.ac:243: -1- GEM_CHECK_FRAMEWORK([QuickTime], [have_quicktime_framework="yes"], [have_quicktime_framework="no"]) +m4trace:configure.ac:243: -1- m4_pattern_allow([^GEM_FRAMEWORK_QUICKTIME$]) +m4trace:configure.ac:243: -1- m4_pattern_allow([^HAVE_QUICKTIME$]) +m4trace:configure.ac:243: -1- m4_pattern_allow([^HAVE_GEM_FRAMEWORK_QUICKTIME$]) +m4trace:configure.ac:243: -1- AM_CONDITIONAL([HAVE_FRAMEWORK_QUICKTIME], [test "x$gem_check_ldflags_success" = "xyes"]) +m4trace:configure.ac:243: -1- m4_pattern_allow([^HAVE_FRAMEWORK_QUICKTIME_TRUE$]) +m4trace:configure.ac:243: -1- m4_pattern_allow([^HAVE_FRAMEWORK_QUICKTIME_FALSE$]) +m4trace:configure.ac:243: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_QUICKTIME_TRUE]) +m4trace:configure.ac:243: -1- _AM_SUBST_NOTMAKE([HAVE_FRAMEWORK_QUICKTIME_FALSE]) +m4trace:configure.ac:247: -1- AM_CONDITIONAL([VIDEODARWIN], [test "x${have_carbon_framework}" = "xyes" && test "x${have_quicktime_framework}" = "xyes"]) +m4trace:configure.ac:247: -1- m4_pattern_allow([^VIDEODARWIN_TRUE$]) +m4trace:configure.ac:247: -1- m4_pattern_allow([^VIDEODARWIN_FALSE$]) +m4trace:configure.ac:247: -1- _AM_SUBST_NOTMAKE([VIDEODARWIN_TRUE]) +m4trace:configure.ac:247: -1- _AM_SUBST_NOTMAKE([VIDEODARWIN_FALSE]) +m4trace:configure.ac:260: -2- m4_pattern_allow([^HAVE_LIBMAGICKPLUSPLUS$]) +m4trace:configure.ac:257: -1- GEM_CHECK_LIB([ImageMagick++], [Magick++], [main], [ +$as_echo "@%:@define HAVE_LIBMAGICKPLUSPLUS 1" >>confdefs.h +], [], [], [image loader]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^GEM_LIB_IMAGEMAGICK___CFLAGS$]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^GEM_LIB_IMAGEMAGICK___LIBS$]) +m4trace:configure.ac:257: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:257: the top level]) +m4trace:configure.ac:257: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:257: the top level]) +m4trace:configure.ac:257: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:257: the top level]) +m4trace:configure.ac:257: -1- PKG_CHECK_MODULES([PKG_IMAGEMAGICK__], [ImageMagick++], [ac_cv_lib_Magickpp_main=yes], [:]) +m4trace:configure.ac:257: -1- m4_pattern_allow([PKG_IMAGEMAGICK___CFLAGS]) +m4trace:configure.ac:257: -1- m4_pattern_allow([PKG_IMAGEMAGICK___LIBS]) +m4trace:configure.ac:257: -1- m4_pattern_allow([PKG_IMAGEMAGICK__]) +m4trace:configure.ac:257: -1- m4_pattern_allow([PKG_IMAGEMAGICK___PKG_ERRORS]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^PKG_IMAGEMAGICK___CFLAGS$]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^PKG_IMAGEMAGICK___LIBS$]) +m4trace:configure.ac:257: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_IMAGEMAGICK___CFLAGS}"]) +m4trace:configure.ac:257: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIBMAGICK__$]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIBIMAGEMAGICK__$]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIBMAGICK__$]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:257: -1- AM_CONDITIONAL([HAVE_LIB_IMAGEMAGICK__], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIB_IMAGEMAGICK___TRUE$]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIB_IMAGEMAGICK___FALSE$]) +m4trace:configure.ac:257: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_IMAGEMAGICK___TRUE]) +m4trace:configure.ac:257: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_IMAGEMAGICK___FALSE]) +m4trace:configure.ac:266: -2- m4_pattern_allow([^HAVE_LIBMAGICK$]) +m4trace:configure.ac:263: -1- GEM_CHECK_LIB([MagickCore], [Magick], [main], [ +$as_echo "@%:@define HAVE_LIBMAGICK 1" >>confdefs.h +], [], [], [image loader]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^GEM_LIB_MAGICKCORE_CFLAGS$]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^GEM_LIB_MAGICKCORE_LIBS$]) +m4trace:configure.ac:263: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:263: the top level]) +m4trace:configure.ac:263: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:263: the top level]) +m4trace:configure.ac:263: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:263: the top level]) +m4trace:configure.ac:263: -1- PKG_CHECK_MODULES([PKG_MAGICKCORE], [MagickCore], [ac_cv_lib_Magick_main=yes], [:]) +m4trace:configure.ac:263: -1- m4_pattern_allow([PKG_MAGICKCORE_CFLAGS]) +m4trace:configure.ac:263: -1- m4_pattern_allow([PKG_MAGICKCORE_LIBS]) +m4trace:configure.ac:263: -1- m4_pattern_allow([PKG_MAGICKCORE]) +m4trace:configure.ac:263: -1- m4_pattern_allow([PKG_MAGICKCORE_PKG_ERRORS]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^PKG_MAGICKCORE_CFLAGS$]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^PKG_MAGICKCORE_LIBS$]) +m4trace:configure.ac:263: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_MAGICKCORE_CFLAGS}"]) +m4trace:configure.ac:263: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_LIBMAGICK$]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_LIBMAGICKCORE$]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_LIBMAGICK$]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:263: -1- AM_CONDITIONAL([HAVE_LIB_MAGICKCORE], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_LIB_MAGICKCORE_TRUE$]) +m4trace:configure.ac:263: -1- m4_pattern_allow([^HAVE_LIB_MAGICKCORE_FALSE$]) +m4trace:configure.ac:263: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_MAGICKCORE_TRUE]) +m4trace:configure.ac:263: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_MAGICKCORE_FALSE]) +m4trace:configure.ac:274: -1- GEM_CHECK_LIB([tiff], [tiff], [TIFFOpen], [], [], [], [image loader]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^GEM_LIB_TIFF_CFLAGS$]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^GEM_LIB_TIFF_LIBS$]) +m4trace:configure.ac:274: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:274: the top level]) +m4trace:configure.ac:274: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:274: the top level]) +m4trace:configure.ac:274: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:274: the top level]) +m4trace:configure.ac:274: -1- PKG_CHECK_MODULES([PKG_TIFF], [tiff], [ac_cv_lib_tiff_TIFFOpen=yes], [:]) +m4trace:configure.ac:274: -1- m4_pattern_allow([PKG_TIFF_CFLAGS]) +m4trace:configure.ac:274: -1- m4_pattern_allow([PKG_TIFF_LIBS]) +m4trace:configure.ac:274: -1- m4_pattern_allow([PKG_TIFF]) +m4trace:configure.ac:274: -1- m4_pattern_allow([PKG_TIFF_PKG_ERRORS]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^PKG_TIFF_CFLAGS$]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^PKG_TIFF_LIBS$]) +m4trace:configure.ac:274: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_TIFF_CFLAGS}"]) +m4trace:configure.ac:274: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_LIBTIFF$]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_LIBTIFF$]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_LIBTIFF$]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_TIFFOPEN$]) +m4trace:configure.ac:274: -1- AM_CONDITIONAL([HAVE_LIB_TIFF], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_LIB_TIFF_TRUE$]) +m4trace:configure.ac:274: -1- m4_pattern_allow([^HAVE_LIB_TIFF_FALSE$]) +m4trace:configure.ac:274: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_TIFF_TRUE]) +m4trace:configure.ac:274: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_TIFF_FALSE]) +m4trace:configure.ac:275: -1- GEM_CHECK_LIB([jpeg], [jpeg], [jpeg_read_header], [], [], [], [image loader]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^GEM_LIB_JPEG_CFLAGS$]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^GEM_LIB_JPEG_LIBS$]) +m4trace:configure.ac:275: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:275: the top level]) +m4trace:configure.ac:275: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:275: the top level]) +m4trace:configure.ac:275: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:275: the top level]) +m4trace:configure.ac:275: -1- PKG_CHECK_MODULES([PKG_JPEG], [jpeg], [ac_cv_lib_jpeg_jpeg_read_header=yes], [:]) +m4trace:configure.ac:275: -1- m4_pattern_allow([PKG_JPEG_CFLAGS]) +m4trace:configure.ac:275: -1- m4_pattern_allow([PKG_JPEG_LIBS]) +m4trace:configure.ac:275: -1- m4_pattern_allow([PKG_JPEG]) +m4trace:configure.ac:275: -1- m4_pattern_allow([PKG_JPEG_PKG_ERRORS]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^PKG_JPEG_CFLAGS$]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^PKG_JPEG_LIBS$]) +m4trace:configure.ac:275: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_JPEG_CFLAGS}"]) +m4trace:configure.ac:275: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_LIBJPEG$]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_LIBJPEG$]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_LIBJPEG$]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_JPEG_READ_HEADER$]) +m4trace:configure.ac:275: -1- AM_CONDITIONAL([HAVE_LIB_JPEG], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_LIB_JPEG_TRUE$]) +m4trace:configure.ac:275: -1- m4_pattern_allow([^HAVE_LIB_JPEG_FALSE$]) +m4trace:configure.ac:275: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_JPEG_TRUE]) +m4trace:configure.ac:275: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_JPEG_FALSE]) +m4trace:configure.ac:277: -1- IEM_CHECK_FTGL([]) +m4trace:configure.ac:277: -1- GEM_CHECK_LIB([ftgl], [ftgl], [main], [], [], [-lfreetype], [font support]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^GEM_LIB_FTGL_CFLAGS$]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^GEM_LIB_FTGL_LIBS$]) +m4trace:configure.ac:277: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +m4/iem_ftgl.m4:6: IEM_CHECK_FTGL is expanded from... +configure.ac:277: the top level]) +m4trace:configure.ac:277: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +m4/iem_ftgl.m4:6: IEM_CHECK_FTGL is expanded from... +configure.ac:277: the top level]) +m4trace:configure.ac:277: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +m4/iem_ftgl.m4:6: IEM_CHECK_FTGL is expanded from... +configure.ac:277: the top level]) +m4trace:configure.ac:277: -1- PKG_CHECK_MODULES([PKG_FTGL], [ftgl], [ac_cv_lib_ftgl_main=yes], [:]) +m4trace:configure.ac:277: -1- m4_pattern_allow([PKG_FTGL_CFLAGS]) +m4trace:configure.ac:277: -1- m4_pattern_allow([PKG_FTGL_LIBS]) +m4trace:configure.ac:277: -1- m4_pattern_allow([PKG_FTGL]) +m4trace:configure.ac:277: -1- m4_pattern_allow([PKG_FTGL_PKG_ERRORS]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^PKG_FTGL_CFLAGS$]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^PKG_FTGL_LIBS$]) +m4trace:configure.ac:277: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_FTGL_CFLAGS}"]) +m4trace:configure.ac:277: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_LIBFTGL$]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_LIBFTGL$]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_LIBFTGL$]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:277: -1- AM_CONDITIONAL([HAVE_LIB_FTGL], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_LIB_FTGL_TRUE$]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_LIB_FTGL_FALSE$]) +m4trace:configure.ac:277: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_FTGL_TRUE]) +m4trace:configure.ac:277: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_FTGL_FALSE]) +m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_FTGL_FTGL_H$]) +m4trace:configure.ac:278: -1- GEM_CHECK_LIB([fribidi], [fribidi], [fribidi_log2vis], [], [], [], [bidrectional text rendering using FriBidi]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^GEM_LIB_FRIBIDI_CFLAGS$]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^GEM_LIB_FRIBIDI_LIBS$]) +m4trace:configure.ac:278: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:278: the top level]) +m4trace:configure.ac:278: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:278: the top level]) +m4trace:configure.ac:278: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:278: the top level]) +m4trace:configure.ac:278: -1- PKG_CHECK_MODULES([PKG_FRIBIDI], [fribidi], [ac_cv_lib_fribidi_fribidi_log2vis=yes], [:]) +m4trace:configure.ac:278: -1- m4_pattern_allow([PKG_FRIBIDI_CFLAGS]) +m4trace:configure.ac:278: -1- m4_pattern_allow([PKG_FRIBIDI_LIBS]) +m4trace:configure.ac:278: -1- m4_pattern_allow([PKG_FRIBIDI]) +m4trace:configure.ac:278: -1- m4_pattern_allow([PKG_FRIBIDI_PKG_ERRORS]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^PKG_FRIBIDI_CFLAGS$]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^PKG_FRIBIDI_LIBS$]) +m4trace:configure.ac:278: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_FRIBIDI_CFLAGS}"]) +m4trace:configure.ac:278: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_LIBFRIBIDI$]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_LIBFRIBIDI$]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_LIBFRIBIDI$]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_FRIBIDI_LOG2VIS$]) +m4trace:configure.ac:278: -1- AM_CONDITIONAL([HAVE_LIB_FRIBIDI], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_LIB_FRIBIDI_TRUE$]) +m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_LIB_FRIBIDI_FALSE$]) +m4trace:configure.ac:278: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_FRIBIDI_TRUE]) +m4trace:configure.ac:278: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_FRIBIDI_FALSE]) +m4trace:configure.ac:281: -1- GEM_CHECK_LIB([avifile], [aviplay], [CreateIAviReadFile], [], [], [], [movie loader]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^GEM_LIB_AVIFILE_CFLAGS$]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^GEM_LIB_AVIFILE_LIBS$]) +m4trace:configure.ac:281: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:281: the top level]) +m4trace:configure.ac:281: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:281: the top level]) +m4trace:configure.ac:281: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:281: the top level]) +m4trace:configure.ac:281: -1- PKG_CHECK_MODULES([PKG_AVIFILE], [avifile], [ac_cv_lib_aviplay_CreateIAviReadFile=yes], [:]) +m4trace:configure.ac:281: -1- m4_pattern_allow([PKG_AVIFILE_CFLAGS]) +m4trace:configure.ac:281: -1- m4_pattern_allow([PKG_AVIFILE_LIBS]) +m4trace:configure.ac:281: -1- m4_pattern_allow([PKG_AVIFILE]) +m4trace:configure.ac:281: -1- m4_pattern_allow([PKG_AVIFILE_PKG_ERRORS]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^PKG_AVIFILE_CFLAGS$]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^PKG_AVIFILE_LIBS$]) +m4trace:configure.ac:281: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_AVIFILE_CFLAGS}"]) +m4trace:configure.ac:281: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_LIBAVIPLAY$]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_LIBAVIFILE$]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_LIBAVIPLAY$]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_CREATEIAVIREADFILE$]) +m4trace:configure.ac:281: -1- AM_CONDITIONAL([HAVE_LIB_AVIFILE], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_LIB_AVIFILE_TRUE$]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_LIB_AVIFILE_FALSE$]) +m4trace:configure.ac:281: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_AVIFILE_TRUE]) +m4trace:configure.ac:281: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_AVIFILE_FALSE]) +m4trace:configure.ac:282: -1- GEM_CHECK_LIB([gmerlin_avdec], [gmerlin_avdec], [gavl_start], [], [], [], [movie loader]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^GEM_LIB_GMERLIN_AVDEC_CFLAGS$]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^GEM_LIB_GMERLIN_AVDEC_LIBS$]) +m4trace:configure.ac:282: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:282: the top level]) +m4trace:configure.ac:282: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:282: the top level]) +m4trace:configure.ac:282: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:282: the top level]) +m4trace:configure.ac:282: -1- PKG_CHECK_MODULES([PKG_GMERLIN_AVDEC], [gmerlin_avdec], [ac_cv_lib_gmerlin_avdec_gavl_start=yes], [:]) +m4trace:configure.ac:282: -1- m4_pattern_allow([PKG_GMERLIN_AVDEC_CFLAGS]) +m4trace:configure.ac:282: -1- m4_pattern_allow([PKG_GMERLIN_AVDEC_LIBS]) +m4trace:configure.ac:282: -1- m4_pattern_allow([PKG_GMERLIN_AVDEC]) +m4trace:configure.ac:282: -1- m4_pattern_allow([PKG_GMERLIN_AVDEC_PKG_ERRORS]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^PKG_GMERLIN_AVDEC_CFLAGS$]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^PKG_GMERLIN_AVDEC_LIBS$]) +m4trace:configure.ac:282: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_GMERLIN_AVDEC_CFLAGS}"]) +m4trace:configure.ac:282: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_LIBGMERLIN_AVDEC$]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_LIBGMERLIN_AVDEC$]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_LIBGMERLIN_AVDEC$]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_GAVL_START$]) +m4trace:configure.ac:282: -1- AM_CONDITIONAL([HAVE_LIB_GMERLIN_AVDEC], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_LIB_GMERLIN_AVDEC_TRUE$]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_LIB_GMERLIN_AVDEC_FALSE$]) +m4trace:configure.ac:282: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_GMERLIN_AVDEC_TRUE]) +m4trace:configure.ac:282: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_GMERLIN_AVDEC_FALSE]) +m4trace:configure.ac:283: -1- GEM_CHECK_LIB([mpeg], [mpeg], [OpenMPEG], [], [], [], [movie loader]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^GEM_LIB_MPEG_CFLAGS$]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^GEM_LIB_MPEG_LIBS$]) +m4trace:configure.ac:283: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:283: the top level]) +m4trace:configure.ac:283: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:283: the top level]) +m4trace:configure.ac:283: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:283: the top level]) +m4trace:configure.ac:283: -1- PKG_CHECK_MODULES([PKG_MPEG], [mpeg], [ac_cv_lib_mpeg_OpenMPEG=yes], [:]) +m4trace:configure.ac:283: -1- m4_pattern_allow([PKG_MPEG_CFLAGS]) +m4trace:configure.ac:283: -1- m4_pattern_allow([PKG_MPEG_LIBS]) +m4trace:configure.ac:283: -1- m4_pattern_allow([PKG_MPEG]) +m4trace:configure.ac:283: -1- m4_pattern_allow([PKG_MPEG_PKG_ERRORS]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^PKG_MPEG_CFLAGS$]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^PKG_MPEG_LIBS$]) +m4trace:configure.ac:283: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_MPEG_CFLAGS}"]) +m4trace:configure.ac:283: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_LIBMPEG$]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_LIBMPEG$]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_LIBMPEG$]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_OPENMPEG$]) +m4trace:configure.ac:283: -1- AM_CONDITIONAL([HAVE_LIB_MPEG], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_LIB_MPEG_TRUE$]) +m4trace:configure.ac:283: -1- m4_pattern_allow([^HAVE_LIB_MPEG_FALSE$]) +m4trace:configure.ac:283: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_MPEG_TRUE]) +m4trace:configure.ac:283: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_MPEG_FALSE]) +m4trace:configure.ac:284: -1- GEM_CHECK_LIB([libmpeg3], [mpeg3], [mpeg3_check_sig], [], [], [], [movie loader]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^GEM_LIB_LIBMPEG3_CFLAGS$]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^GEM_LIB_LIBMPEG3_LIBS$]) +m4trace:configure.ac:284: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:284: the top level]) +m4trace:configure.ac:284: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:284: the top level]) +m4trace:configure.ac:284: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:284: the top level]) +m4trace:configure.ac:284: -1- PKG_CHECK_MODULES([PKG_LIBMPEG3], [libmpeg3], [ac_cv_lib_mpeg3_mpeg3_check_sig=yes], [:]) +m4trace:configure.ac:284: -1- m4_pattern_allow([PKG_LIBMPEG3_CFLAGS]) +m4trace:configure.ac:284: -1- m4_pattern_allow([PKG_LIBMPEG3_LIBS]) +m4trace:configure.ac:284: -1- m4_pattern_allow([PKG_LIBMPEG3]) +m4trace:configure.ac:284: -1- m4_pattern_allow([PKG_LIBMPEG3_PKG_ERRORS]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^PKG_LIBMPEG3_CFLAGS$]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^PKG_LIBMPEG3_LIBS$]) +m4trace:configure.ac:284: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBMPEG3_CFLAGS}"]) +m4trace:configure.ac:284: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_LIBMPEG3$]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_LIBLIBMPEG3$]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_LIBMPEG3$]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_MPEG3_CHECK_SIG$]) +m4trace:configure.ac:284: -1- AM_CONDITIONAL([HAVE_LIB_LIBMPEG3], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_LIB_LIBMPEG3_TRUE$]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^HAVE_LIB_LIBMPEG3_FALSE$]) +m4trace:configure.ac:284: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBMPEG3_TRUE]) +m4trace:configure.ac:284: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBMPEG3_FALSE]) +m4trace:configure.ac:285: -1- GEM_CHECK_LIB([libquicktime], [quicktime], [quicktime_init], [], [], [], [movie loader]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^GEM_LIB_LIBQUICKTIME_CFLAGS$]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^GEM_LIB_LIBQUICKTIME_LIBS$]) +m4trace:configure.ac:285: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:285: the top level]) +m4trace:configure.ac:285: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:285: the top level]) +m4trace:configure.ac:285: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:285: the top level]) +m4trace:configure.ac:285: -1- PKG_CHECK_MODULES([PKG_LIBQUICKTIME], [libquicktime], [ac_cv_lib_quicktime_quicktime_init=yes], [:]) +m4trace:configure.ac:285: -1- m4_pattern_allow([PKG_LIBQUICKTIME_CFLAGS]) +m4trace:configure.ac:285: -1- m4_pattern_allow([PKG_LIBQUICKTIME_LIBS]) +m4trace:configure.ac:285: -1- m4_pattern_allow([PKG_LIBQUICKTIME]) +m4trace:configure.ac:285: -1- m4_pattern_allow([PKG_LIBQUICKTIME_PKG_ERRORS]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^PKG_LIBQUICKTIME_CFLAGS$]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^PKG_LIBQUICKTIME_LIBS$]) +m4trace:configure.ac:285: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBQUICKTIME_CFLAGS}"]) +m4trace:configure.ac:285: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIBQUICKTIME$]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIBLIBQUICKTIME$]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIBQUICKTIME$]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_QUICKTIME_INIT$]) +m4trace:configure.ac:285: -1- AM_CONDITIONAL([HAVE_LIB_LIBQUICKTIME], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIB_LIBQUICKTIME_TRUE$]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIB_LIBQUICKTIME_FALSE$]) +m4trace:configure.ac:285: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBQUICKTIME_TRUE]) +m4trace:configure.ac:285: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBQUICKTIME_FALSE]) +m4trace:configure.ac:286: -1- GEM_CHECK_LIB([lqt], [quicktime], [quicktime_init], [], [], [], [movie loader]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^GEM_LIB_LQT_CFLAGS$]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^GEM_LIB_LQT_LIBS$]) +m4trace:configure.ac:286: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:286: the top level]) +m4trace:configure.ac:286: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:286: the top level]) +m4trace:configure.ac:286: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:286: the top level]) +m4trace:configure.ac:286: -1- PKG_CHECK_MODULES([PKG_LQT], [lqt], [ac_cv_lib_quicktime_quicktime_init=yes], [:]) +m4trace:configure.ac:286: -1- m4_pattern_allow([PKG_LQT_CFLAGS]) +m4trace:configure.ac:286: -1- m4_pattern_allow([PKG_LQT_LIBS]) +m4trace:configure.ac:286: -1- m4_pattern_allow([PKG_LQT]) +m4trace:configure.ac:286: -1- m4_pattern_allow([PKG_LQT_PKG_ERRORS]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^PKG_LQT_CFLAGS$]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^PKG_LQT_LIBS$]) +m4trace:configure.ac:286: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LQT_CFLAGS}"]) +m4trace:configure.ac:286: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_LIBQUICKTIME$]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_LIBLQT$]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_LIBQUICKTIME$]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_QUICKTIME_INIT$]) +m4trace:configure.ac:286: -1- AM_CONDITIONAL([HAVE_LIB_LQT], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_LIB_LQT_TRUE$]) +m4trace:configure.ac:286: -1- m4_pattern_allow([^HAVE_LIB_LQT_FALSE$]) +m4trace:configure.ac:286: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LQT_TRUE]) +m4trace:configure.ac:286: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LQT_FALSE]) +m4trace:configure.ac:293: -1- m4_pattern_allow([^HAVE_LQT_SEEK_VIDEO$]) +m4trace:configure.ac:294: -1- m4_pattern_allow([^HAVE_LQT_OPEN_WRITE$]) +m4trace:configure.ac:299: -1- GEM_CHECK_LIB([libdc1394-2], [dc1394], [main], [], [], [], [video input]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^GEM_LIB_LIBDC1394_2_CFLAGS$]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^GEM_LIB_LIBDC1394_2_LIBS$]) +m4trace:configure.ac:299: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:299: the top level]) +m4trace:configure.ac:299: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:299: the top level]) +m4trace:configure.ac:299: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:299: the top level]) +m4trace:configure.ac:299: -1- PKG_CHECK_MODULES([PKG_LIBDC1394_2], [libdc1394-2], [ac_cv_lib_dc1394_main=yes], [:]) +m4trace:configure.ac:299: -1- m4_pattern_allow([PKG_LIBDC1394_2_CFLAGS]) +m4trace:configure.ac:299: -1- m4_pattern_allow([PKG_LIBDC1394_2_LIBS]) +m4trace:configure.ac:299: -1- m4_pattern_allow([PKG_LIBDC1394_2]) +m4trace:configure.ac:299: -1- m4_pattern_allow([PKG_LIBDC1394_2_PKG_ERRORS]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^PKG_LIBDC1394_2_CFLAGS$]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^PKG_LIBDC1394_2_LIBS$]) +m4trace:configure.ac:299: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBDC1394_2_CFLAGS}"]) +m4trace:configure.ac:299: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_LIBDC1394$]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_LIBLIBDC1394_2$]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_LIBDC1394$]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:299: -1- AM_CONDITIONAL([HAVE_LIB_LIBDC1394_2], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_LIB_LIBDC1394_2_TRUE$]) +m4trace:configure.ac:299: -1- m4_pattern_allow([^HAVE_LIB_LIBDC1394_2_FALSE$]) +m4trace:configure.ac:299: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBDC1394_2_TRUE]) +m4trace:configure.ac:299: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBDC1394_2_FALSE]) +m4trace:configure.ac:300: -1- GEM_CHECK_LIB([libdv], [dv], [main], [], [], [], [video input]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^GEM_LIB_LIBDV_CFLAGS$]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^GEM_LIB_LIBDV_LIBS$]) +m4trace:configure.ac:300: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:300: the top level]) +m4trace:configure.ac:300: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:300: the top level]) +m4trace:configure.ac:300: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:300: the top level]) +m4trace:configure.ac:300: -1- PKG_CHECK_MODULES([PKG_LIBDV], [libdv], [ac_cv_lib_dv_main=yes], [:]) +m4trace:configure.ac:300: -1- m4_pattern_allow([PKG_LIBDV_CFLAGS]) +m4trace:configure.ac:300: -1- m4_pattern_allow([PKG_LIBDV_LIBS]) +m4trace:configure.ac:300: -1- m4_pattern_allow([PKG_LIBDV]) +m4trace:configure.ac:300: -1- m4_pattern_allow([PKG_LIBDV_PKG_ERRORS]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^PKG_LIBDV_CFLAGS$]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^PKG_LIBDV_LIBS$]) +m4trace:configure.ac:300: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBDV_CFLAGS}"]) +m4trace:configure.ac:300: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_LIBDV$]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_LIBLIBDV$]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_LIBDV$]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:300: -1- AM_CONDITIONAL([HAVE_LIB_LIBDV], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_LIB_LIBDV_TRUE$]) +m4trace:configure.ac:300: -1- m4_pattern_allow([^HAVE_LIB_LIBDV_FALSE$]) +m4trace:configure.ac:300: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBDV_TRUE]) +m4trace:configure.ac:300: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBDV_FALSE]) +m4trace:configure.ac:301: -1- GEM_CHECK_LIB([libraw1394], [raw1394], [main], [], [], [], [video input]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^GEM_LIB_LIBRAW1394_CFLAGS$]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^GEM_LIB_LIBRAW1394_LIBS$]) +m4trace:configure.ac:301: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:301: the top level]) +m4trace:configure.ac:301: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:301: the top level]) +m4trace:configure.ac:301: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:301: the top level]) +m4trace:configure.ac:301: -1- PKG_CHECK_MODULES([PKG_LIBRAW1394], [libraw1394], [ac_cv_lib_raw1394_main=yes], [:]) +m4trace:configure.ac:301: -1- m4_pattern_allow([PKG_LIBRAW1394_CFLAGS]) +m4trace:configure.ac:301: -1- m4_pattern_allow([PKG_LIBRAW1394_LIBS]) +m4trace:configure.ac:301: -1- m4_pattern_allow([PKG_LIBRAW1394]) +m4trace:configure.ac:301: -1- m4_pattern_allow([PKG_LIBRAW1394_PKG_ERRORS]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^PKG_LIBRAW1394_CFLAGS$]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^PKG_LIBRAW1394_LIBS$]) +m4trace:configure.ac:301: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBRAW1394_CFLAGS}"]) +m4trace:configure.ac:301: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_LIBRAW1394$]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_LIBLIBRAW1394$]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_LIBRAW1394$]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:301: -1- AM_CONDITIONAL([HAVE_LIB_LIBRAW1394], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_LIB_LIBRAW1394_TRUE$]) +m4trace:configure.ac:301: -1- m4_pattern_allow([^HAVE_LIB_LIBRAW1394_FALSE$]) +m4trace:configure.ac:301: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBRAW1394_TRUE]) +m4trace:configure.ac:301: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBRAW1394_FALSE]) +m4trace:configure.ac:302: -1- GEM_CHECK_LIB([libiec61883], [iec61883], [main], [], [], [], [video input]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^GEM_LIB_LIBIEC61883_CFLAGS$]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^GEM_LIB_LIBIEC61883_LIBS$]) +m4trace:configure.ac:302: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:302: the top level]) +m4trace:configure.ac:302: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:302: the top level]) +m4trace:configure.ac:302: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:302: the top level]) +m4trace:configure.ac:302: -1- PKG_CHECK_MODULES([PKG_LIBIEC61883], [libiec61883], [ac_cv_lib_iec61883_main=yes], [:]) +m4trace:configure.ac:302: -1- m4_pattern_allow([PKG_LIBIEC61883_CFLAGS]) +m4trace:configure.ac:302: -1- m4_pattern_allow([PKG_LIBIEC61883_LIBS]) +m4trace:configure.ac:302: -1- m4_pattern_allow([PKG_LIBIEC61883]) +m4trace:configure.ac:302: -1- m4_pattern_allow([PKG_LIBIEC61883_PKG_ERRORS]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^PKG_LIBIEC61883_CFLAGS$]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^PKG_LIBIEC61883_LIBS$]) +m4trace:configure.ac:302: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBIEC61883_CFLAGS}"]) +m4trace:configure.ac:302: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_LIBIEC61883$]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_LIBLIBIEC61883$]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_LIBIEC61883$]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:302: -1- AM_CONDITIONAL([HAVE_LIB_LIBIEC61883], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_LIB_LIBIEC61883_TRUE$]) +m4trace:configure.ac:302: -1- m4_pattern_allow([^HAVE_LIB_LIBIEC61883_FALSE$]) +m4trace:configure.ac:302: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBIEC61883_TRUE]) +m4trace:configure.ac:302: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBIEC61883_FALSE]) +m4trace:configure.ac:303: -1- m4_pattern_allow([^HAVE_VL_VL_H$]) +m4trace:configure.ac:305: -1- GEM_ARG_WITH([unicap], [video input], [force]) +m4trace:configure.ac:305: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:9: GEM_ARG_WITH is expanded from... +configure.ac:305: the top level]) +m4trace:configure.ac:307: -1- GEM_CHECK_LIB([libunicap], [unicap], [unicap_check_version], [], [], [], [video input]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^GEM_LIB_LIBUNICAP_CFLAGS$]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^GEM_LIB_LIBUNICAP_LIBS$]) +m4trace:configure.ac:307: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:307: the top level]) +m4trace:configure.ac:307: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:307: the top level]) +m4trace:configure.ac:307: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:307: the top level]) +m4trace:configure.ac:307: -1- PKG_CHECK_MODULES([PKG_LIBUNICAP], [libunicap], [ac_cv_lib_unicap_unicap_check_version=yes], [:]) +m4trace:configure.ac:307: -1- m4_pattern_allow([PKG_LIBUNICAP_CFLAGS]) +m4trace:configure.ac:307: -1- m4_pattern_allow([PKG_LIBUNICAP_LIBS]) +m4trace:configure.ac:307: -1- m4_pattern_allow([PKG_LIBUNICAP]) +m4trace:configure.ac:307: -1- m4_pattern_allow([PKG_LIBUNICAP_PKG_ERRORS]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^PKG_LIBUNICAP_CFLAGS$]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^PKG_LIBUNICAP_LIBS$]) +m4trace:configure.ac:307: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBUNICAP_CFLAGS}"]) +m4trace:configure.ac:307: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_LIBUNICAP$]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_LIBLIBUNICAP$]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_LIBUNICAP$]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_UNICAP_CHECK_VERSION$]) +m4trace:configure.ac:307: -1- AM_CONDITIONAL([HAVE_LIB_LIBUNICAP], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_LIB_LIBUNICAP_TRUE$]) +m4trace:configure.ac:307: -1- m4_pattern_allow([^HAVE_LIB_LIBUNICAP_FALSE$]) +m4trace:configure.ac:307: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBUNICAP_TRUE]) +m4trace:configure.ac:307: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBUNICAP_FALSE]) +m4trace:configure.ac:310: -1- m4_pattern_allow([^HAVE_UNICAP$]) +m4trace:configure.ac:319: -1- AM_CONDITIONAL([HAVE_LIB_UNICAP], [test "x${have_unicap}" = "xyes"]) +m4trace:configure.ac:319: -1- m4_pattern_allow([^HAVE_LIB_UNICAP_TRUE$]) +m4trace:configure.ac:319: -1- m4_pattern_allow([^HAVE_LIB_UNICAP_FALSE$]) +m4trace:configure.ac:319: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_UNICAP_TRUE]) +m4trace:configure.ac:319: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_UNICAP_FALSE]) +m4trace:configure.ac:323: -1- GEM_ARG_WITH([v4l], [video input], [force]) +m4trace:configure.ac:323: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:9: GEM_ARG_WITH is expanded from... +configure.ac:323: the top level]) +m4trace:configure.ac:324: -1- m4_pattern_allow([^HAVE_LINUX_VIDEODEV_H$]) +m4trace:configure.ac:325: -1- GEM_CHECK_LIB([libv4l1], [v4l1], [v4l1_open], [], [], [], [video output]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^GEM_LIB_LIBV4L1_CFLAGS$]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^GEM_LIB_LIBV4L1_LIBS$]) +m4trace:configure.ac:325: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:325: the top level]) +m4trace:configure.ac:325: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:325: the top level]) +m4trace:configure.ac:325: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:325: the top level]) +m4trace:configure.ac:325: -1- PKG_CHECK_MODULES([PKG_LIBV4L1], [libv4l1], [ac_cv_lib_v4l1_v4l1_open=yes], [:]) +m4trace:configure.ac:325: -1- m4_pattern_allow([PKG_LIBV4L1_CFLAGS]) +m4trace:configure.ac:325: -1- m4_pattern_allow([PKG_LIBV4L1_LIBS]) +m4trace:configure.ac:325: -1- m4_pattern_allow([PKG_LIBV4L1]) +m4trace:configure.ac:325: -1- m4_pattern_allow([PKG_LIBV4L1_PKG_ERRORS]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^PKG_LIBV4L1_CFLAGS$]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^PKG_LIBV4L1_LIBS$]) +m4trace:configure.ac:325: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBV4L1_CFLAGS}"]) +m4trace:configure.ac:325: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_LIBV4L1$]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_LIBLIBV4L1$]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_LIBV4L1$]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_V4L1_OPEN$]) +m4trace:configure.ac:325: -1- AM_CONDITIONAL([HAVE_LIB_LIBV4L1], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_LIB_LIBV4L1_TRUE$]) +m4trace:configure.ac:325: -1- m4_pattern_allow([^HAVE_LIB_LIBV4L1_FALSE$]) +m4trace:configure.ac:325: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBV4L1_TRUE]) +m4trace:configure.ac:325: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBV4L1_FALSE]) +m4trace:configure.ac:332: -1- AM_CONDITIONAL([HAVE_V4L], [test "x${have_v4l}" != "xno"]) +m4trace:configure.ac:332: -1- m4_pattern_allow([^HAVE_V4L_TRUE$]) +m4trace:configure.ac:332: -1- m4_pattern_allow([^HAVE_V4L_FALSE$]) +m4trace:configure.ac:332: -1- _AM_SUBST_NOTMAKE([HAVE_V4L_TRUE]) +m4trace:configure.ac:332: -1- _AM_SUBST_NOTMAKE([HAVE_V4L_FALSE]) +m4trace:configure.ac:336: -1- GEM_ARG_WITH([v4l2], [video input], [force]) +m4trace:configure.ac:336: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:9: GEM_ARG_WITH is expanded from... +configure.ac:336: the top level]) +m4trace:configure.ac:337: -1- m4_pattern_allow([^HAVE_LINUX_VIDEODEV2_H$]) +m4trace:configure.ac:338: -1- GEM_CHECK_LIB([libv4l2], [v4l2], [v4l2_open], [], [], [], [video input]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^GEM_LIB_LIBV4L2_CFLAGS$]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^GEM_LIB_LIBV4L2_LIBS$]) +m4trace:configure.ac:338: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:338: the top level]) +m4trace:configure.ac:338: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:338: the top level]) +m4trace:configure.ac:338: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:338: the top level]) +m4trace:configure.ac:338: -1- PKG_CHECK_MODULES([PKG_LIBV4L2], [libv4l2], [ac_cv_lib_v4l2_v4l2_open=yes], [:]) +m4trace:configure.ac:338: -1- m4_pattern_allow([PKG_LIBV4L2_CFLAGS]) +m4trace:configure.ac:338: -1- m4_pattern_allow([PKG_LIBV4L2_LIBS]) +m4trace:configure.ac:338: -1- m4_pattern_allow([PKG_LIBV4L2]) +m4trace:configure.ac:338: -1- m4_pattern_allow([PKG_LIBV4L2_PKG_ERRORS]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^PKG_LIBV4L2_CFLAGS$]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^PKG_LIBV4L2_LIBS$]) +m4trace:configure.ac:338: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBV4L2_CFLAGS}"]) +m4trace:configure.ac:338: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_LIBV4L2$]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_LIBLIBV4L2$]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_LIBV4L2$]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_V4L2_OPEN$]) +m4trace:configure.ac:338: -1- AM_CONDITIONAL([HAVE_LIB_LIBV4L2], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_LIB_LIBV4L2_TRUE$]) +m4trace:configure.ac:338: -1- m4_pattern_allow([^HAVE_LIB_LIBV4L2_FALSE$]) +m4trace:configure.ac:338: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBV4L2_TRUE]) +m4trace:configure.ac:338: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBV4L2_FALSE]) +m4trace:configure.ac:347: -1- AM_CONDITIONAL([HAVE_V4L2], [test "x${have_v4l2}" != "xno"]) +m4trace:configure.ac:347: -1- m4_pattern_allow([^HAVE_V4L2_TRUE$]) +m4trace:configure.ac:347: -1- m4_pattern_allow([^HAVE_V4L2_FALSE$]) +m4trace:configure.ac:347: -1- _AM_SUBST_NOTMAKE([HAVE_V4L2_TRUE]) +m4trace:configure.ac:347: -1- _AM_SUBST_NOTMAKE([HAVE_V4L2_FALSE]) +m4trace:configure.ac:351: -1- GEM_CHECK_LIB([vfw32], [vfw32], [main], [], [], [], [video input]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^GEM_LIB_VFW32_CFLAGS$]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^GEM_LIB_VFW32_LIBS$]) +m4trace:configure.ac:351: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:351: the top level]) +m4trace:configure.ac:351: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:351: the top level]) +m4trace:configure.ac:351: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:351: the top level]) +m4trace:configure.ac:351: -1- PKG_CHECK_MODULES([PKG_VFW32], [vfw32], [ac_cv_lib_vfw32_main=yes], [:]) +m4trace:configure.ac:351: -1- m4_pattern_allow([PKG_VFW32_CFLAGS]) +m4trace:configure.ac:351: -1- m4_pattern_allow([PKG_VFW32_LIBS]) +m4trace:configure.ac:351: -1- m4_pattern_allow([PKG_VFW32]) +m4trace:configure.ac:351: -1- m4_pattern_allow([PKG_VFW32_PKG_ERRORS]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^PKG_VFW32_CFLAGS$]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^PKG_VFW32_LIBS$]) +m4trace:configure.ac:351: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_VFW32_CFLAGS}"]) +m4trace:configure.ac:351: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_LIBVFW32$]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_LIBVFW32$]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_LIBVFW32$]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_MAIN$]) +m4trace:configure.ac:351: -1- AM_CONDITIONAL([HAVE_LIB_VFW32], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_LIB_VFW32_TRUE$]) +m4trace:configure.ac:351: -1- m4_pattern_allow([^HAVE_LIB_VFW32_FALSE$]) +m4trace:configure.ac:351: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_VFW32_TRUE]) +m4trace:configure.ac:351: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_VFW32_FALSE]) +m4trace:configure.ac:356: -1- GEM_CHECK_LIB([libvlc], [vlc], [libvlc_video_set_callbacks], [], [], [], [video input]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^GEM_LIB_LIBVLC_CFLAGS$]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^GEM_LIB_LIBVLC_LIBS$]) +m4trace:configure.ac:356: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:356: the top level]) +m4trace:configure.ac:356: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:356: the top level]) +m4trace:configure.ac:356: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:356: the top level]) +m4trace:configure.ac:356: -1- PKG_CHECK_MODULES([PKG_LIBVLC], [libvlc], [ac_cv_lib_vlc_libvlc_video_set_callbacks=yes], [:]) +m4trace:configure.ac:356: -1- m4_pattern_allow([PKG_LIBVLC_CFLAGS]) +m4trace:configure.ac:356: -1- m4_pattern_allow([PKG_LIBVLC_LIBS]) +m4trace:configure.ac:356: -1- m4_pattern_allow([PKG_LIBVLC]) +m4trace:configure.ac:356: -1- m4_pattern_allow([PKG_LIBVLC_PKG_ERRORS]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^PKG_LIBVLC_CFLAGS$]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^PKG_LIBVLC_LIBS$]) +m4trace:configure.ac:356: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_LIBVLC_CFLAGS}"]) +m4trace:configure.ac:356: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIBVLC$]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIBLIBVLC$]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIBVLC$]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIBVLC_VIDEO_SET_CALLBACKS$]) +m4trace:configure.ac:356: -1- AM_CONDITIONAL([HAVE_LIB_LIBVLC], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIB_LIBVLC_TRUE$]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^HAVE_LIB_LIBVLC_FALSE$]) +m4trace:configure.ac:356: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBVLC_TRUE]) +m4trace:configure.ac:356: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_LIBVLC_FALSE]) +m4trace:configure.ac:359: -1- GEM_CHECK_LIB([assimp], [assimp], [aiDetachAllLogStreams], [], [], [], [3D model loading]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^GEM_LIB_ASSIMP_CFLAGS$]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^GEM_LIB_ASSIMP_LIBS$]) +m4trace:configure.ac:359: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:359: the top level]) +m4trace:configure.ac:359: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:359: the top level]) +m4trace:configure.ac:359: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:100: GEM_CHECK_LIB is expanded from... +configure.ac:359: the top level]) +m4trace:configure.ac:359: -1- PKG_CHECK_MODULES([PKG_ASSIMP], [assimp], [ac_cv_lib_assimp_aiDetachAllLogStreams=yes], [:]) +m4trace:configure.ac:359: -1- m4_pattern_allow([PKG_ASSIMP_CFLAGS]) +m4trace:configure.ac:359: -1- m4_pattern_allow([PKG_ASSIMP_LIBS]) +m4trace:configure.ac:359: -1- m4_pattern_allow([PKG_ASSIMP]) +m4trace:configure.ac:359: -1- m4_pattern_allow([PKG_ASSIMP_PKG_ERRORS]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^PKG_ASSIMP_CFLAGS$]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^PKG_ASSIMP_LIBS$]) +m4trace:configure.ac:359: -1- AC_LIB_APPENDTOVAR([PKG_CFLAGS], ["${PKG_ASSIMP_CFLAGS}"]) +m4trace:configure.ac:359: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_LIBASSIMP$]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_LIBASSIMP$]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_LIBASSIMP$]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_AIDETACHALLLOGSTREAMS$]) +m4trace:configure.ac:359: -1- AM_CONDITIONAL([HAVE_LIB_ASSIMP], [test "x${have_[]Name}" = "xyes"]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_LIB_ASSIMP_TRUE$]) +m4trace:configure.ac:359: -1- m4_pattern_allow([^HAVE_LIB_ASSIMP_FALSE$]) +m4trace:configure.ac:359: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_ASSIMP_TRUE]) +m4trace:configure.ac:359: -1- _AM_SUBST_NOTMAKE([HAVE_LIB_ASSIMP_FALSE]) +m4trace:configure.ac:371: -1- m4_pattern_allow([^GEM_DEFAULT_FONT$]) +m4trace:configure.ac:376: -1- GEM_CHECK_THREADS +m4trace:configure.ac:376: -1- GEM_ARG_ENABLE([threads], [default: use threads]) +m4trace:configure.ac:376: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +m4/gem.m4:28: GEM_ARG_ENABLE is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^GEM_PTHREAD_CFLAGS$]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^GEM_PTHREAD_LIBS$]) +m4trace:configure.ac:376: -1- AX_PTHREAD +m4trace:configure.ac:376: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete. +You should run autoupdate.], [../../lib/autoconf/lang.m4:125: AC_LANG_SAVE is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- _m4_warn([obsolete], [The macro `AC_LANG_C' is obsolete. +You should run autoupdate.], [../../lib/autoconf/c.m4:72: AC_LANG_C is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^ax_pthread_config$]) +m4trace:configure.ac:376: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^PTHREAD_CREATE_JOINABLE$]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^PTHREAD_LIBS$]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^PTHREAD_CFLAGS$]) +m4trace:configure.ac:376: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:376: -2- m4_pattern_allow([^HAVE_PTHREADS$]) +m4trace:configure.ac:376: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete. +You should run autoupdate.], [../../lib/autoconf/lang.m4:134: AC_LANG_RESTORE is expanded from... +m4/ax_pthread.m4:81: AX_PTHREAD is expanded from... +m4/gem.m4:493: GEM_CHECK_THREADS is expanded from... +configure.ac:376: the top level]) +m4trace:configure.ac:376: -1- AC_LIB_APPENDTOVAR([GEM_THREADS_CFLAGS], ["${PTHREAD_CFLAGS}"]) +m4trace:configure.ac:376: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) +m4trace:configure.ac:379: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:382: -1- m4_pattern_allow([^HAVE_WORDEXP_H$]) +m4trace:configure.ac:385: -1- m4_pattern_allow([^HAVE__BOOL$]) +m4trace:configure.ac:385: -1- m4_pattern_allow([^HAVE_STDBOOL_H$]) +m4trace:configure.ac:386: -1- m4_pattern_allow([^const$]) +m4trace:configure.ac:388: -1- m4_pattern_allow([^size_t$]) +m4trace:configure.ac:389: -1- m4_pattern_allow([^TIME_WITH_SYS_TIME$]) +m4trace:configure.ac:391: -1- m4_pattern_allow([^SIZEOF_UNSIGNED_INT$]) +m4trace:configure.ac:392: -1- m4_pattern_allow([^SIZEOF_VOID_P$]) +m4trace:configure.ac:395: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^pid_t$]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^HAVE_VFORK_H$]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^HAVE_WORKING_VFORK$]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^vfork$]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^HAVE_WORKING_FORK$]) +m4trace:configure.ac:397: -1- m4_pattern_allow([^HAVE_STDLIB_H$]) +m4trace:configure.ac:397: -1- m4_pattern_allow([^HAVE_MALLOC$]) +m4trace:configure.ac:397: -1- m4_pattern_allow([^HAVE_MALLOC$]) +m4trace:configure.ac:397: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:397: -1- m4_pattern_allow([^malloc$]) +m4trace:configure.ac:398: -1- AC_DEFUN([_AC_Header_stdlib_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_list], [" stdlib.h"])]) +_AC_HEADERS_EXPANSION]) +m4trace:configure.ac:398: -1- AC_DEFUN([_AC_Header_unistd_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_list], [" unistd.h"])]) +_AC_HEADERS_EXPANSION]) +m4trace:configure.ac:398: -1- AC_DEFUN([_AC_Header_sys_param_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_list], [" sys/param.h"])]) +_AC_HEADERS_EXPANSION]) +m4trace:configure.ac:398: -1- m4_pattern_allow([^HAVE_GETPAGESIZE$]) +m4trace:configure.ac:398: -1- m4_pattern_allow([^HAVE_MMAP$]) +m4trace:configure.ac:406: -2- m4_pattern_allow([^HAVE_LQT_OPEN_WRITE$]) +m4trace:configure.ac:413: -1- m4_pattern_allow([^MAKEDEP_FLAGS$]) +m4trace:configure.ac:415: -1- m4_pattern_allow([^MAKEDEP_FLAGS$]) +m4trace:configure.ac:442: -1- m4_pattern_allow([^GEM_VIDEOBACKEND$]) +m4trace:configure.ac:460: -1- m4_pattern_allow([^GEM_FILMBACKEND$]) +m4trace:configure.ac:471: -1- GEM_CHECK_CXXFLAGS([-freg-struct-return], [enable_registerstruct="yes"], [enable_registerstruct="no"]) +m4trace:configure.ac:482: -1- GEM_CHECK_CXXFLAGS([-mms-bitfields], [GEM_EXTERNAL_CFLAGS+="-mms-bitfields"]) +m4trace:configure.ac:486: -2- GEM_CHECK_CXXFLAGS([-O3]) +m4trace:configure.ac:486: -1- GEM_CHECK_CXXFLAGS([-Os], [], [ + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-O3\"" >&5 +$as_echo_n "checking whether compiler accepts \"-O3\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -O3 > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -O3" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +]) +m4trace:configure.ac:494: -1- GEM_CHECK_CXXFLAGS([-O3]) +m4trace:configure.ac:501: -2- GEM_CHECK_CXXFLAGS([-falign-loops -funroll-loops]) +m4trace:configure.ac:500: -1- GEM_CHECK_CXXFLAGS([-falign-loops -falign-functions -falign-jumps -funroll-loops], [], [ + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-falign-loops -funroll-loops\"" >&5 +$as_echo_n "checking whether compiler accepts \"-falign-loops -funroll-loops\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -falign-loops -funroll-loops > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -falign-loops -funroll-loops" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + + ]) +m4trace:configure.ac:503: -1- GEM_CHECK_CXXFLAGS([-ffast-math]) +m4trace:configure.ac:528: -1- GEM_CHECK_FAT([GEM_ARCH]) +m4trace:configure.ac:528: -1- GEM_CHECK_CXXFLAGS([$GEM_ARCH], [], [GEM_ARCH=""]) +m4trace:configure.ac:528: -1- GEM_CHECK_LDFLAGS([$GEM_ARCH], [], [GEM_ARCH=""]) +m4trace:configure.ac:530: -1- m4_pattern_allow([^GEM_ARCH_CXXFLAGS$]) +m4trace:configure.ac:531: -1- m4_pattern_allow([^GEM_ARCH_LDFLAGS$]) +m4trace:configure.ac:543: -1- GEM_CHECK_CXXFLAGS([-mmmx]) +m4trace:configure.ac:546: -1- GEM_CHECK_CXXFLAGS([-msse2]) +m4trace:configure.ac:549: -1- GEM_CHECK_CXXFLAGS([-faltivec]) +m4trace:configure.ac:552: -1- GEM_CHECK_CXXFLAGS([-mpowerpc-gfxopt]) +m4trace:configure.ac:557: -1- GEM_CHECK_CXXFLAGS([-fpascal-strings]) +m4trace:configure.ac:583: -1- m4_pattern_allow([^GEM_DEFAULT_WINDOW$]) +m4trace:configure.ac:588: -1- AM_CONDITIONAL([ENABLED], [test "x${enabled}" = "xyes"]) +m4trace:configure.ac:588: -1- m4_pattern_allow([^ENABLED_TRUE$]) +m4trace:configure.ac:588: -1- m4_pattern_allow([^ENABLED_FALSE$]) +m4trace:configure.ac:588: -1- _AM_SUBST_NOTMAKE([ENABLED_TRUE]) +m4trace:configure.ac:588: -1- _AM_SUBST_NOTMAKE([ENABLED_FALSE]) +m4trace:configure.ac:589: -1- AM_CONDITIONAL([DISABLED], [test "x${enabled}" = "xno"]) +m4trace:configure.ac:589: -1- m4_pattern_allow([^DISABLED_TRUE$]) +m4trace:configure.ac:589: -1- m4_pattern_allow([^DISABLED_FALSE$]) +m4trace:configure.ac:589: -1- _AM_SUBST_NOTMAKE([DISABLED_TRUE]) +m4trace:configure.ac:589: -1- _AM_SUBST_NOTMAKE([DISABLED_FALSE]) +m4trace:configure.ac:598: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:598: -1- m4_pattern_allow([^LTLIBOBJS$]) +m4trace:configure.ac:598: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) +m4trace:configure.ac:598: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) +m4trace:configure.ac:598: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) +m4trace:configure.ac:598: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) +m4trace:configure.ac:598: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) +m4trace:configure.ac:598: -1- _AC_AM_CONFIG_HEADER_HOOK(["$ac_file"]) +m4trace:configure.ac:598: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS +m4trace:configure.ac:598: -1- _LT_PROG_LTMAIN diff --git a/Gem/build/Makefile.am b/src/Gem/build/Makefile.am similarity index 100% rename from Gem/build/Makefile.am rename to src/Gem/build/Makefile.am diff --git a/src/Gem/build/Makefile.in b/src/Gem/build/Makefile.in new file mode 100644 index 0000000..78e775d --- /dev/null +++ b/src/Gem/build/Makefile.in @@ -0,0 +1,591 @@ +# Makefile.in generated by automake 1.11.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = build +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_gl.m4 \ + $(top_srcdir)/m4/ax_check_glu.m4 \ + $(top_srcdir)/m4/ax_check_glut.m4 \ + $(top_srcdir)/m4/ax_compiler_vendor.m4 \ + $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/gem.m4 \ + $(top_srcdir)/m4/iem_ftgl.m4 $(top_srcdir)/m4/iem_opengl.m4 \ + $(top_srcdir)/m4/iem_operatingsystem.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/src/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AGL_CFLAGS = @AGL_CFLAGS@ +AGL_LIBS = @AGL_LIBS@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFINES = @DEFINES@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXT = @EXT@ +FGREP = @FGREP@ +GEM_ARCH_CXXFLAGS = @GEM_ARCH_CXXFLAGS@ +GEM_ARCH_LDFLAGS = @GEM_ARCH_LDFLAGS@ +GEM_CFLAGS = @GEM_CFLAGS@ +GEM_CPPFLAGS = @GEM_CPPFLAGS@ +GEM_CXXFLAGS = @GEM_CXXFLAGS@ +GEM_DEFAULT_WINDOW = @GEM_DEFAULT_WINDOW@ +GEM_EXTERNAL_CFLAGS = @GEM_EXTERNAL_CFLAGS@ +GEM_EXTERNAL_CPPFLAGS = @GEM_EXTERNAL_CPPFLAGS@ +GEM_EXTERNAL_LIBS = @GEM_EXTERNAL_LIBS@ +GEM_FRAMEWORK_AGL = @GEM_FRAMEWORK_AGL@ +GEM_FRAMEWORK_CARBON = @GEM_FRAMEWORK_CARBON@ +GEM_FRAMEWORK_COCOA = @GEM_FRAMEWORK_COCOA@ +GEM_FRAMEWORK_QUICKTIME = @GEM_FRAMEWORK_QUICKTIME@ +GEM_LIBS = @GEM_LIBS@ +GEM_LIB_ASSIMP_CFLAGS = @GEM_LIB_ASSIMP_CFLAGS@ +GEM_LIB_ASSIMP_LIBS = @GEM_LIB_ASSIMP_LIBS@ +GEM_LIB_AVIFILE_CFLAGS = @GEM_LIB_AVIFILE_CFLAGS@ +GEM_LIB_AVIFILE_LIBS = @GEM_LIB_AVIFILE_LIBS@ +GEM_LIB_FRIBIDI_CFLAGS = @GEM_LIB_FRIBIDI_CFLAGS@ +GEM_LIB_FRIBIDI_LIBS = @GEM_LIB_FRIBIDI_LIBS@ +GEM_LIB_FTGL_CFLAGS = @GEM_LIB_FTGL_CFLAGS@ +GEM_LIB_FTGL_LIBS = @GEM_LIB_FTGL_LIBS@ +GEM_LIB_GLEW_CFLAGS = @GEM_LIB_GLEW_CFLAGS@ +GEM_LIB_GLEW_LIBS = @GEM_LIB_GLEW_LIBS@ +GEM_LIB_GMERLIN_AVDEC_CFLAGS = @GEM_LIB_GMERLIN_AVDEC_CFLAGS@ +GEM_LIB_GMERLIN_AVDEC_LIBS = @GEM_LIB_GMERLIN_AVDEC_LIBS@ +GEM_LIB_IMAGEMAGICK___CFLAGS = @GEM_LIB_IMAGEMAGICK___CFLAGS@ +GEM_LIB_IMAGEMAGICK___LIBS = @GEM_LIB_IMAGEMAGICK___LIBS@ +GEM_LIB_JPEG_CFLAGS = @GEM_LIB_JPEG_CFLAGS@ +GEM_LIB_JPEG_LIBS = @GEM_LIB_JPEG_LIBS@ +GEM_LIB_LIBDC1394_2_CFLAGS = @GEM_LIB_LIBDC1394_2_CFLAGS@ +GEM_LIB_LIBDC1394_2_LIBS = @GEM_LIB_LIBDC1394_2_LIBS@ +GEM_LIB_LIBDV_CFLAGS = @GEM_LIB_LIBDV_CFLAGS@ +GEM_LIB_LIBDV_LIBS = @GEM_LIB_LIBDV_LIBS@ +GEM_LIB_LIBIEC61883_CFLAGS = @GEM_LIB_LIBIEC61883_CFLAGS@ +GEM_LIB_LIBIEC61883_LIBS = @GEM_LIB_LIBIEC61883_LIBS@ +GEM_LIB_LIBMPEG3_CFLAGS = @GEM_LIB_LIBMPEG3_CFLAGS@ +GEM_LIB_LIBMPEG3_LIBS = @GEM_LIB_LIBMPEG3_LIBS@ +GEM_LIB_LIBQUICKTIME_CFLAGS = @GEM_LIB_LIBQUICKTIME_CFLAGS@ +GEM_LIB_LIBQUICKTIME_LIBS = @GEM_LIB_LIBQUICKTIME_LIBS@ +GEM_LIB_LIBRAW1394_CFLAGS = @GEM_LIB_LIBRAW1394_CFLAGS@ +GEM_LIB_LIBRAW1394_LIBS = @GEM_LIB_LIBRAW1394_LIBS@ +GEM_LIB_LIBUNICAP_CFLAGS = @GEM_LIB_LIBUNICAP_CFLAGS@ +GEM_LIB_LIBUNICAP_LIBS = @GEM_LIB_LIBUNICAP_LIBS@ +GEM_LIB_LIBV4L1_CFLAGS = @GEM_LIB_LIBV4L1_CFLAGS@ +GEM_LIB_LIBV4L1_LIBS = @GEM_LIB_LIBV4L1_LIBS@ +GEM_LIB_LIBV4L2_CFLAGS = @GEM_LIB_LIBV4L2_CFLAGS@ +GEM_LIB_LIBV4L2_LIBS = @GEM_LIB_LIBV4L2_LIBS@ +GEM_LIB_LIBVLC_CFLAGS = @GEM_LIB_LIBVLC_CFLAGS@ +GEM_LIB_LIBVLC_LIBS = @GEM_LIB_LIBVLC_LIBS@ +GEM_LIB_LQT_CFLAGS = @GEM_LIB_LQT_CFLAGS@ +GEM_LIB_LQT_LIBS = @GEM_LIB_LQT_LIBS@ +GEM_LIB_MAGICKCORE_CFLAGS = @GEM_LIB_MAGICKCORE_CFLAGS@ +GEM_LIB_MAGICKCORE_LIBS = @GEM_LIB_MAGICKCORE_LIBS@ +GEM_LIB_MPEG_CFLAGS = @GEM_LIB_MPEG_CFLAGS@ +GEM_LIB_MPEG_LIBS = @GEM_LIB_MPEG_LIBS@ +GEM_LIB_SDL_CFLAGS = @GEM_LIB_SDL_CFLAGS@ +GEM_LIB_SDL_LIBS = @GEM_LIB_SDL_LIBS@ +GEM_LIB_TIFF_CFLAGS = @GEM_LIB_TIFF_CFLAGS@ +GEM_LIB_TIFF_LIBS = @GEM_LIB_TIFF_LIBS@ +GEM_LIB_VFW32_CFLAGS = @GEM_LIB_VFW32_CFLAGS@ +GEM_LIB_VFW32_LIBS = @GEM_LIB_VFW32_LIBS@ +GEM_PTHREAD_CFLAGS = @GEM_PTHREAD_CFLAGS@ +GEM_PTHREAD_LIBS = @GEM_PTHREAD_LIBS@ +GEM_RTE = @GEM_RTE@ +GEM_RTE_CFLAGS = @GEM_RTE_CFLAGS@ +GEM_RTE_EXTENSION = @GEM_RTE_EXTENSION@ +GEM_RTE_LIBS = @GEM_RTE_LIBS@ +GEM_TARGETS = @GEM_TARGETS@ +GLUT_CFLAGS = @GLUT_CFLAGS@ +GLUT_LIBS = @GLUT_LIBS@ +GLU_CFLAGS = @GLU_CFLAGS@ +GLU_LIBS = @GLU_LIBS@ +GLX_CFLAGS = @GLX_CFLAGS@ +GLX_LIBS = @GLX_LIBS@ +GL_CFLAGS = @GL_CFLAGS@ +GL_LIBS = @GL_LIBS@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEDEP_FLAGS = @MAKEDEP_FLAGS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJC = @OBJC@ +OBJCDEPMODE = @OBJCDEPMODE@ +OBJCFLAGS = @OBJCFLAGS@ +OBJCXX = @OBJCXX@ +OBJCXXFLAGS = @OBJCXXFLAGS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_ASSIMP_CFLAGS = @PKG_ASSIMP_CFLAGS@ +PKG_ASSIMP_LIBS = @PKG_ASSIMP_LIBS@ +PKG_AVIFILE_CFLAGS = @PKG_AVIFILE_CFLAGS@ +PKG_AVIFILE_LIBS = @PKG_AVIFILE_LIBS@ +PKG_CFLAGS = @PKG_CFLAGS@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_FRIBIDI_CFLAGS = @PKG_FRIBIDI_CFLAGS@ +PKG_FRIBIDI_LIBS = @PKG_FRIBIDI_LIBS@ +PKG_FTGL_CFLAGS = @PKG_FTGL_CFLAGS@ +PKG_FTGL_LIBS = @PKG_FTGL_LIBS@ +PKG_GLEW_CFLAGS = @PKG_GLEW_CFLAGS@ +PKG_GLEW_LIBS = @PKG_GLEW_LIBS@ +PKG_GMERLIN_AVDEC_CFLAGS = @PKG_GMERLIN_AVDEC_CFLAGS@ +PKG_GMERLIN_AVDEC_LIBS = @PKG_GMERLIN_AVDEC_LIBS@ +PKG_IMAGEMAGICK___CFLAGS = @PKG_IMAGEMAGICK___CFLAGS@ +PKG_IMAGEMAGICK___LIBS = @PKG_IMAGEMAGICK___LIBS@ +PKG_JPEG_CFLAGS = @PKG_JPEG_CFLAGS@ +PKG_JPEG_LIBS = @PKG_JPEG_LIBS@ +PKG_LIBDC1394_2_CFLAGS = @PKG_LIBDC1394_2_CFLAGS@ +PKG_LIBDC1394_2_LIBS = @PKG_LIBDC1394_2_LIBS@ +PKG_LIBDV_CFLAGS = @PKG_LIBDV_CFLAGS@ +PKG_LIBDV_LIBS = @PKG_LIBDV_LIBS@ +PKG_LIBIEC61883_CFLAGS = @PKG_LIBIEC61883_CFLAGS@ +PKG_LIBIEC61883_LIBS = @PKG_LIBIEC61883_LIBS@ +PKG_LIBMPEG3_CFLAGS = @PKG_LIBMPEG3_CFLAGS@ +PKG_LIBMPEG3_LIBS = @PKG_LIBMPEG3_LIBS@ +PKG_LIBQUICKTIME_CFLAGS = @PKG_LIBQUICKTIME_CFLAGS@ +PKG_LIBQUICKTIME_LIBS = @PKG_LIBQUICKTIME_LIBS@ +PKG_LIBRAW1394_CFLAGS = @PKG_LIBRAW1394_CFLAGS@ +PKG_LIBRAW1394_LIBS = @PKG_LIBRAW1394_LIBS@ +PKG_LIBS = @PKG_LIBS@ +PKG_LIBUNICAP_CFLAGS = @PKG_LIBUNICAP_CFLAGS@ +PKG_LIBUNICAP_LIBS = @PKG_LIBUNICAP_LIBS@ +PKG_LIBV4L1_CFLAGS = @PKG_LIBV4L1_CFLAGS@ +PKG_LIBV4L1_LIBS = @PKG_LIBV4L1_LIBS@ +PKG_LIBV4L2_CFLAGS = @PKG_LIBV4L2_CFLAGS@ +PKG_LIBV4L2_LIBS = @PKG_LIBV4L2_LIBS@ +PKG_LIBVLC_CFLAGS = @PKG_LIBVLC_CFLAGS@ +PKG_LIBVLC_LIBS = @PKG_LIBVLC_LIBS@ +PKG_LQT_CFLAGS = @PKG_LQT_CFLAGS@ +PKG_LQT_LIBS = @PKG_LQT_LIBS@ +PKG_MAGICKCORE_CFLAGS = @PKG_MAGICKCORE_CFLAGS@ +PKG_MAGICKCORE_LIBS = @PKG_MAGICKCORE_LIBS@ +PKG_MPEG_CFLAGS = @PKG_MPEG_CFLAGS@ +PKG_MPEG_LIBS = @PKG_MPEG_LIBS@ +PKG_SDL_CFLAGS = @PKG_SDL_CFLAGS@ +PKG_SDL_LIBS = @PKG_SDL_LIBS@ +PKG_TIFF_CFLAGS = @PKG_TIFF_CFLAGS@ +PKG_TIFF_LIBS = @PKG_TIFF_LIBS@ +PKG_VFW32_CFLAGS = @PKG_VFW32_CFLAGS@ +PKG_VFW32_LIBS = @PKG_VFW32_LIBS@ +PTHREAD_CC = @PTHREAD_CC@ +PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ +PTHREAD_LIBS = @PTHREAD_LIBS@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XMKMF = @XMKMF@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +ac_ct_OBJC = @ac_ct_OBJC@ +ac_ct_OBJCXX = @ac_ct_OBJCXX@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +ax_pthread_config = @ax_pthread_config@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +subdirs = @subdirs@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AUTOMAKE_OPTIONS = foreign +EXTRA_DIST = \ + osx-projectbuilder/Gem.pbproj/project.pbxproj \ + win-nsis/Gem.nsi \ + win-nsis/buildinstaller.bat \ + win-nsis/uninstaller1.nsi \ + win-nsis/uninstaller2.nsi \ + win-vs2003/installer.vcproj \ + win-vs2003/README_W32.txt.template \ + win-vs2003/installer.bat \ + win-vs2003/Gem.sln \ + win-vs2003/release.bat \ + win-vs2003/Gem.vcproj \ + win-vs2003/libraries.txt \ + win-vs2003/installerCVS.bat \ + win-vs6/gem_vc6.dsw \ + win-vs6/README.txt \ + win-vs6/gem.dsp \ + win-vs7/gem_vc7.sln \ + win-vs7/gem.vcproj \ + win-vs7/README.txt \ + win-vs2008/Gem.sln \ + win-vs2008/Gem.vcproj \ + win-vs2008/Debug.vsprops \ + win-vs2008/DirectShow.vsprops \ + win-vs2008/extraCommon.vsprops \ + win-vs2008/extra.vsprops \ + win-vs2008/FTGL_Debug.vsprops \ + win-vs2008/FTGL_Release.vsprops \ + win-vs2008/FTGL.vsprops \ + win-vs2008/GemInternal.vsprops \ + win-vs2008/Gem.vsprops \ + win-vs2008/pluginCommon.vsprops \ + win-vs2008/plugin.vsprops \ + win-vs2008/pthread.vsprops \ + win-vs2008/puredata.vsprops \ + win-vs2008/QuickTime.vsprops \ + win-vs2008/Release.vsprops \ + win-vs2008/SIMD.vsprops \ + win-vs2008/VFW.vsprops \ + win-vs2008/w32.vsprops \ + win-vs2008/installer.vcproj \ + win-vs2008/installer.bat \ + win-vs2008/installerCVS.bat \ + win-vs2008/release.bat \ + win-vs2008/README_W32.txt.template \ + osx-xcode/Gem.xcodeproj/project.pbxproj \ + autoconf/README.txt + +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign build/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign build/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/Gem/build/autoconf/README.txt b/src/Gem/build/autoconf/README.txt similarity index 100% rename from Gem/build/autoconf/README.txt rename to src/Gem/build/autoconf/README.txt diff --git a/Gem/build/autoconf/configure.mingw32 b/src/Gem/build/autoconf/configure.mingw32 similarity index 100% rename from Gem/build/autoconf/configure.mingw32 rename to src/Gem/build/autoconf/configure.mingw32 diff --git a/Gem/build/osx-dmginstaller/DS_Store b/src/Gem/build/osx-dmginstaller/DS_Store similarity index 100% rename from Gem/build/osx-dmginstaller/DS_Store rename to src/Gem/build/osx-dmginstaller/DS_Store diff --git a/Gem/build/osx-dmginstaller/buildinstaller.sh b/src/Gem/build/osx-dmginstaller/buildinstaller.sh similarity index 100% rename from Gem/build/osx-dmginstaller/buildinstaller.sh rename to src/Gem/build/osx-dmginstaller/buildinstaller.sh diff --git a/Gem/build/osx-dmginstaller/droplet_system.applescript b/src/Gem/build/osx-dmginstaller/droplet_system.applescript similarity index 100% rename from Gem/build/osx-dmginstaller/droplet_system.applescript rename to src/Gem/build/osx-dmginstaller/droplet_system.applescript diff --git a/Gem/build/osx-dmginstaller/droplet_user.applescript b/src/Gem/build/osx-dmginstaller/droplet_user.applescript similarity index 100% rename from Gem/build/osx-dmginstaller/droplet_user.applescript rename to src/Gem/build/osx-dmginstaller/droplet_user.applescript diff --git a/Gem/build/osx-dmginstaller/icon2app b/src/Gem/build/osx-dmginstaller/icon2app similarity index 100% rename from Gem/build/osx-dmginstaller/icon2app rename to src/Gem/build/osx-dmginstaller/icon2app diff --git a/Gem/build/osx-dmginstaller/installer_system.applescript b/src/Gem/build/osx-dmginstaller/installer_system.applescript similarity index 100% rename from Gem/build/osx-dmginstaller/installer_system.applescript rename to src/Gem/build/osx-dmginstaller/installer_system.applescript diff --git a/Gem/build/osx-dmginstaller/installer_user.applescript b/src/Gem/build/osx-dmginstaller/installer_user.applescript similarity index 100% rename from Gem/build/osx-dmginstaller/installer_user.applescript rename to src/Gem/build/osx-dmginstaller/installer_user.applescript diff --git a/Gem/build/osx-projectbuilder/Gem.pbproj/project.pbxproj b/src/Gem/build/osx-projectbuilder/Gem.pbproj/project.pbxproj similarity index 100% rename from Gem/build/osx-projectbuilder/Gem.pbproj/project.pbxproj rename to src/Gem/build/osx-projectbuilder/Gem.pbproj/project.pbxproj diff --git a/Gem/build/osx-xcode/Gem.xcodeproj/project.pbxproj b/src/Gem/build/osx-xcode/Gem.xcodeproj/project.pbxproj similarity index 100% rename from Gem/build/osx-xcode/Gem.xcodeproj/project.pbxproj rename to src/Gem/build/osx-xcode/Gem.xcodeproj/project.pbxproj diff --git a/Gem/build/win-nsis/Gem.nsi b/src/Gem/build/win-nsis/Gem.nsi similarity index 100% rename from Gem/build/win-nsis/Gem.nsi rename to src/Gem/build/win-nsis/Gem.nsi diff --git a/Gem/build/win-nsis/buildinstaller.bat b/src/Gem/build/win-nsis/buildinstaller.bat similarity index 100% rename from Gem/build/win-nsis/buildinstaller.bat rename to src/Gem/build/win-nsis/buildinstaller.bat diff --git a/Gem/build/win-nsis/uninstaller1.nsi b/src/Gem/build/win-nsis/uninstaller1.nsi similarity index 100% rename from Gem/build/win-nsis/uninstaller1.nsi rename to src/Gem/build/win-nsis/uninstaller1.nsi diff --git a/Gem/build/win-nsis/uninstaller2.nsi b/src/Gem/build/win-nsis/uninstaller2.nsi similarity index 100% rename from Gem/build/win-nsis/uninstaller2.nsi rename to src/Gem/build/win-nsis/uninstaller2.nsi diff --git a/Gem/build/win-vs2003/Gem.sln b/src/Gem/build/win-vs2003/Gem.sln similarity index 100% rename from Gem/build/win-vs2003/Gem.sln rename to src/Gem/build/win-vs2003/Gem.sln diff --git a/Gem/build/win-vs2003/Gem.vcproj b/src/Gem/build/win-vs2003/Gem.vcproj similarity index 100% rename from Gem/build/win-vs2003/Gem.vcproj rename to src/Gem/build/win-vs2003/Gem.vcproj diff --git a/Gem/build/win-vs2003/README_W32.txt.template b/src/Gem/build/win-vs2003/README_W32.txt.template similarity index 100% rename from Gem/build/win-vs2003/README_W32.txt.template rename to src/Gem/build/win-vs2003/README_W32.txt.template diff --git a/Gem/build/win-vs2003/installer.bat b/src/Gem/build/win-vs2003/installer.bat similarity index 100% rename from Gem/build/win-vs2003/installer.bat rename to src/Gem/build/win-vs2003/installer.bat diff --git a/Gem/build/win-vs2003/installer.vcproj b/src/Gem/build/win-vs2003/installer.vcproj similarity index 100% rename from Gem/build/win-vs2003/installer.vcproj rename to src/Gem/build/win-vs2003/installer.vcproj diff --git a/Gem/build/win-vs2003/installerCVS.bat b/src/Gem/build/win-vs2003/installerCVS.bat similarity index 100% rename from Gem/build/win-vs2003/installerCVS.bat rename to src/Gem/build/win-vs2003/installerCVS.bat diff --git a/Gem/build/win-vs2003/libraries.txt b/src/Gem/build/win-vs2003/libraries.txt similarity index 100% rename from Gem/build/win-vs2003/libraries.txt rename to src/Gem/build/win-vs2003/libraries.txt diff --git a/Gem/build/win-vs2003/release.bat b/src/Gem/build/win-vs2003/release.bat similarity index 100% rename from Gem/build/win-vs2003/release.bat rename to src/Gem/build/win-vs2003/release.bat diff --git a/Gem/build/win-vs2008/Debug.vsprops b/src/Gem/build/win-vs2008/Debug.vsprops similarity index 100% rename from Gem/build/win-vs2008/Debug.vsprops rename to src/Gem/build/win-vs2008/Debug.vsprops diff --git a/Gem/build/win-vs2008/DirectShow.vsprops b/src/Gem/build/win-vs2008/DirectShow.vsprops similarity index 100% rename from Gem/build/win-vs2008/DirectShow.vsprops rename to src/Gem/build/win-vs2008/DirectShow.vsprops diff --git a/Gem/build/win-vs2008/FTGL.vsprops b/src/Gem/build/win-vs2008/FTGL.vsprops similarity index 100% rename from Gem/build/win-vs2008/FTGL.vsprops rename to src/Gem/build/win-vs2008/FTGL.vsprops diff --git a/Gem/build/win-vs2008/FTGL_Debug.vsprops b/src/Gem/build/win-vs2008/FTGL_Debug.vsprops similarity index 100% rename from Gem/build/win-vs2008/FTGL_Debug.vsprops rename to src/Gem/build/win-vs2008/FTGL_Debug.vsprops diff --git a/Gem/build/win-vs2008/FTGL_Release.vsprops b/src/Gem/build/win-vs2008/FTGL_Release.vsprops similarity index 100% rename from Gem/build/win-vs2008/FTGL_Release.vsprops rename to src/Gem/build/win-vs2008/FTGL_Release.vsprops diff --git a/Gem/build/win-vs2008/Gem.sln b/src/Gem/build/win-vs2008/Gem.sln similarity index 100% rename from Gem/build/win-vs2008/Gem.sln rename to src/Gem/build/win-vs2008/Gem.sln diff --git a/Gem/build/win-vs2008/Gem.vcproj b/src/Gem/build/win-vs2008/Gem.vcproj similarity index 100% rename from Gem/build/win-vs2008/Gem.vcproj rename to src/Gem/build/win-vs2008/Gem.vcproj diff --git a/Gem/build/win-vs2008/Gem.vsprops b/src/Gem/build/win-vs2008/Gem.vsprops similarity index 100% rename from Gem/build/win-vs2008/Gem.vsprops rename to src/Gem/build/win-vs2008/Gem.vsprops diff --git a/Gem/build/win-vs2008/GemInternal.vsprops b/src/Gem/build/win-vs2008/GemInternal.vsprops similarity index 100% rename from Gem/build/win-vs2008/GemInternal.vsprops rename to src/Gem/build/win-vs2008/GemInternal.vsprops diff --git a/Gem/build/win-vs2008/QuickTime.vsprops b/src/Gem/build/win-vs2008/QuickTime.vsprops similarity index 100% rename from Gem/build/win-vs2008/QuickTime.vsprops rename to src/Gem/build/win-vs2008/QuickTime.vsprops diff --git a/Gem/build/win-vs2008/README_W32.txt.template b/src/Gem/build/win-vs2008/README_W32.txt.template similarity index 100% rename from Gem/build/win-vs2008/README_W32.txt.template rename to src/Gem/build/win-vs2008/README_W32.txt.template diff --git a/Gem/build/win-vs2008/Release.vsprops b/src/Gem/build/win-vs2008/Release.vsprops similarity index 100% rename from Gem/build/win-vs2008/Release.vsprops rename to src/Gem/build/win-vs2008/Release.vsprops diff --git a/Gem/build/win-vs2008/SIMD.vsprops b/src/Gem/build/win-vs2008/SIMD.vsprops similarity index 100% rename from Gem/build/win-vs2008/SIMD.vsprops rename to src/Gem/build/win-vs2008/SIMD.vsprops diff --git a/Gem/build/win-vs2008/VFW.vsprops b/src/Gem/build/win-vs2008/VFW.vsprops similarity index 100% rename from Gem/build/win-vs2008/VFW.vsprops rename to src/Gem/build/win-vs2008/VFW.vsprops diff --git a/Gem/build/win-vs2008/extra.vsprops b/src/Gem/build/win-vs2008/extra.vsprops similarity index 100% rename from Gem/build/win-vs2008/extra.vsprops rename to src/Gem/build/win-vs2008/extra.vsprops diff --git a/Gem/build/win-vs2008/extraCommon.vsprops b/src/Gem/build/win-vs2008/extraCommon.vsprops similarity index 100% rename from Gem/build/win-vs2008/extraCommon.vsprops rename to src/Gem/build/win-vs2008/extraCommon.vsprops diff --git a/Gem/build/win-vs2008/installer.bat b/src/Gem/build/win-vs2008/installer.bat similarity index 100% rename from Gem/build/win-vs2008/installer.bat rename to src/Gem/build/win-vs2008/installer.bat diff --git a/Gem/build/win-vs2008/installer.vcproj b/src/Gem/build/win-vs2008/installer.vcproj similarity index 100% rename from Gem/build/win-vs2008/installer.vcproj rename to src/Gem/build/win-vs2008/installer.vcproj diff --git a/Gem/build/win-vs2008/installerCVS.bat b/src/Gem/build/win-vs2008/installerCVS.bat similarity index 100% rename from Gem/build/win-vs2008/installerCVS.bat rename to src/Gem/build/win-vs2008/installerCVS.bat diff --git a/Gem/build/win-vs2008/libraries.txt b/src/Gem/build/win-vs2008/libraries.txt similarity index 100% rename from Gem/build/win-vs2008/libraries.txt rename to src/Gem/build/win-vs2008/libraries.txt diff --git a/Gem/build/win-vs2008/plugin.vsprops b/src/Gem/build/win-vs2008/plugin.vsprops similarity index 100% rename from Gem/build/win-vs2008/plugin.vsprops rename to src/Gem/build/win-vs2008/plugin.vsprops diff --git a/Gem/build/win-vs2008/pluginCommon.vsprops b/src/Gem/build/win-vs2008/pluginCommon.vsprops similarity index 100% rename from Gem/build/win-vs2008/pluginCommon.vsprops rename to src/Gem/build/win-vs2008/pluginCommon.vsprops diff --git a/Gem/build/win-vs2008/pthread.vsprops b/src/Gem/build/win-vs2008/pthread.vsprops similarity index 100% rename from Gem/build/win-vs2008/pthread.vsprops rename to src/Gem/build/win-vs2008/pthread.vsprops diff --git a/Gem/build/win-vs2008/puredata.vsprops b/src/Gem/build/win-vs2008/puredata.vsprops similarity index 100% rename from Gem/build/win-vs2008/puredata.vsprops rename to src/Gem/build/win-vs2008/puredata.vsprops diff --git a/Gem/build/win-vs2008/release.bat b/src/Gem/build/win-vs2008/release.bat similarity index 100% rename from Gem/build/win-vs2008/release.bat rename to src/Gem/build/win-vs2008/release.bat diff --git a/Gem/build/win-vs2008/w32.vsprops b/src/Gem/build/win-vs2008/w32.vsprops similarity index 100% rename from Gem/build/win-vs2008/w32.vsprops rename to src/Gem/build/win-vs2008/w32.vsprops diff --git a/Gem/build/win-vs6/README.txt b/src/Gem/build/win-vs6/README.txt similarity index 100% rename from Gem/build/win-vs6/README.txt rename to src/Gem/build/win-vs6/README.txt diff --git a/Gem/build/win-vs6/gem.dsp b/src/Gem/build/win-vs6/gem.dsp similarity index 100% rename from Gem/build/win-vs6/gem.dsp rename to src/Gem/build/win-vs6/gem.dsp diff --git a/Gem/build/win-vs6/gem_vc6.dsw b/src/Gem/build/win-vs6/gem_vc6.dsw similarity index 100% rename from Gem/build/win-vs6/gem_vc6.dsw rename to src/Gem/build/win-vs6/gem_vc6.dsw diff --git a/Gem/build/win-vs7/README.txt b/src/Gem/build/win-vs7/README.txt similarity index 100% rename from Gem/build/win-vs7/README.txt rename to src/Gem/build/win-vs7/README.txt diff --git a/Gem/build/win-vs7/gem.vcproj b/src/Gem/build/win-vs7/gem.vcproj similarity index 100% rename from Gem/build/win-vs7/gem.vcproj rename to src/Gem/build/win-vs7/gem.vcproj diff --git a/Gem/build/win-vs7/gem_vc7.sln b/src/Gem/build/win-vs7/gem_vc7.sln similarity index 100% rename from Gem/build/win-vs7/gem_vc7.sln rename to src/Gem/build/win-vs7/gem_vc7.sln diff --git a/pd-0.44-2/m4/config/config.guess b/src/Gem/config.guess similarity index 100% rename from pd-0.44-2/m4/config/config.guess rename to src/Gem/config.guess diff --git a/pd-0.44-2/m4/config/config.sub b/src/Gem/config.sub similarity index 100% rename from pd-0.44-2/m4/config/config.sub rename to src/Gem/config.sub diff --git a/src/Gem/configure b/src/Gem/configure new file mode 100755 index 0000000..5ffd18a --- /dev/null +++ b/src/Gem/configure @@ -0,0 +1,33455 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.69 for Gem 0.93. +# +# Report bugs to . +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and zmoelnig@iem.at +$0: about your system, including any error possibly output +$0: before this message. Then install a modern shell, or +$0: manually run the script under such a shell if you do +$0: have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + +SHELL=${CONFIG_SHELL-/bin/sh} + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='Gem' +PACKAGE_TARNAME='Gem' +PACKAGE_VERSION='0.93' +PACKAGE_STRING='Gem 0.93' +PACKAGE_BUGREPORT='zmoelnig@iem.at' +PACKAGE_URL='http://gem.iem.at' + +ac_unique_file="src/Base/GemBase.h" +enable_option_checking=no +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_header_list= +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +DISABLED_FALSE +DISABLED_TRUE +ENABLED_FALSE +ENABLED_TRUE +GEM_DEFAULT_WINDOW +GEM_ARCH_LDFLAGS +GEM_ARCH_CXXFLAGS +MAKEDEP_FLAGS +LIBOBJS +GEM_PTHREAD_LIBS +GEM_PTHREAD_CFLAGS +HAVE_LIB_ASSIMP_FALSE +HAVE_LIB_ASSIMP_TRUE +PKG_ASSIMP_LIBS +PKG_ASSIMP_CFLAGS +GEM_LIB_ASSIMP_LIBS +GEM_LIB_ASSIMP_CFLAGS +HAVE_LIB_LIBVLC_FALSE +HAVE_LIB_LIBVLC_TRUE +PKG_LIBVLC_LIBS +PKG_LIBVLC_CFLAGS +GEM_LIB_LIBVLC_LIBS +GEM_LIB_LIBVLC_CFLAGS +HAVE_LIB_VFW32_FALSE +HAVE_LIB_VFW32_TRUE +PKG_VFW32_LIBS +PKG_VFW32_CFLAGS +GEM_LIB_VFW32_LIBS +GEM_LIB_VFW32_CFLAGS +HAVE_V4L2_FALSE +HAVE_V4L2_TRUE +HAVE_LIB_LIBV4L2_FALSE +HAVE_LIB_LIBV4L2_TRUE +PKG_LIBV4L2_LIBS +PKG_LIBV4L2_CFLAGS +GEM_LIB_LIBV4L2_LIBS +GEM_LIB_LIBV4L2_CFLAGS +HAVE_V4L_FALSE +HAVE_V4L_TRUE +HAVE_LIB_LIBV4L1_FALSE +HAVE_LIB_LIBV4L1_TRUE +PKG_LIBV4L1_LIBS +PKG_LIBV4L1_CFLAGS +GEM_LIB_LIBV4L1_LIBS +GEM_LIB_LIBV4L1_CFLAGS +HAVE_LIB_UNICAP_FALSE +HAVE_LIB_UNICAP_TRUE +HAVE_LIB_LIBUNICAP_FALSE +HAVE_LIB_LIBUNICAP_TRUE +PKG_LIBUNICAP_LIBS +PKG_LIBUNICAP_CFLAGS +GEM_LIB_LIBUNICAP_LIBS +GEM_LIB_LIBUNICAP_CFLAGS +HAVE_LIB_LIBIEC61883_FALSE +HAVE_LIB_LIBIEC61883_TRUE +PKG_LIBIEC61883_LIBS +PKG_LIBIEC61883_CFLAGS +GEM_LIB_LIBIEC61883_LIBS +GEM_LIB_LIBIEC61883_CFLAGS +HAVE_LIB_LIBRAW1394_FALSE +HAVE_LIB_LIBRAW1394_TRUE +PKG_LIBRAW1394_LIBS +PKG_LIBRAW1394_CFLAGS +GEM_LIB_LIBRAW1394_LIBS +GEM_LIB_LIBRAW1394_CFLAGS +HAVE_LIB_LIBDV_FALSE +HAVE_LIB_LIBDV_TRUE +PKG_LIBDV_LIBS +PKG_LIBDV_CFLAGS +GEM_LIB_LIBDV_LIBS +GEM_LIB_LIBDV_CFLAGS +HAVE_LIB_LIBDC1394_2_FALSE +HAVE_LIB_LIBDC1394_2_TRUE +PKG_LIBDC1394_2_LIBS +PKG_LIBDC1394_2_CFLAGS +GEM_LIB_LIBDC1394_2_LIBS +GEM_LIB_LIBDC1394_2_CFLAGS +HAVE_LIB_LQT_FALSE +HAVE_LIB_LQT_TRUE +PKG_LQT_LIBS +PKG_LQT_CFLAGS +GEM_LIB_LQT_LIBS +GEM_LIB_LQT_CFLAGS +HAVE_LIB_LIBQUICKTIME_FALSE +HAVE_LIB_LIBQUICKTIME_TRUE +PKG_LIBQUICKTIME_LIBS +PKG_LIBQUICKTIME_CFLAGS +GEM_LIB_LIBQUICKTIME_LIBS +GEM_LIB_LIBQUICKTIME_CFLAGS +HAVE_LIB_LIBMPEG3_FALSE +HAVE_LIB_LIBMPEG3_TRUE +PKG_LIBMPEG3_LIBS +PKG_LIBMPEG3_CFLAGS +GEM_LIB_LIBMPEG3_LIBS +GEM_LIB_LIBMPEG3_CFLAGS +HAVE_LIB_MPEG_FALSE +HAVE_LIB_MPEG_TRUE +PKG_MPEG_LIBS +PKG_MPEG_CFLAGS +GEM_LIB_MPEG_LIBS +GEM_LIB_MPEG_CFLAGS +HAVE_LIB_GMERLIN_AVDEC_FALSE +HAVE_LIB_GMERLIN_AVDEC_TRUE +PKG_GMERLIN_AVDEC_LIBS +PKG_GMERLIN_AVDEC_CFLAGS +GEM_LIB_GMERLIN_AVDEC_LIBS +GEM_LIB_GMERLIN_AVDEC_CFLAGS +HAVE_LIB_AVIFILE_FALSE +HAVE_LIB_AVIFILE_TRUE +PKG_AVIFILE_LIBS +PKG_AVIFILE_CFLAGS +GEM_LIB_AVIFILE_LIBS +GEM_LIB_AVIFILE_CFLAGS +HAVE_LIB_FRIBIDI_FALSE +HAVE_LIB_FRIBIDI_TRUE +PKG_FRIBIDI_LIBS +PKG_FRIBIDI_CFLAGS +GEM_LIB_FRIBIDI_LIBS +GEM_LIB_FRIBIDI_CFLAGS +HAVE_LIB_FTGL_FALSE +HAVE_LIB_FTGL_TRUE +PKG_FTGL_LIBS +PKG_FTGL_CFLAGS +GEM_LIB_FTGL_LIBS +GEM_LIB_FTGL_CFLAGS +HAVE_LIB_JPEG_FALSE +HAVE_LIB_JPEG_TRUE +PKG_JPEG_LIBS +PKG_JPEG_CFLAGS +GEM_LIB_JPEG_LIBS +GEM_LIB_JPEG_CFLAGS +HAVE_LIB_TIFF_FALSE +HAVE_LIB_TIFF_TRUE +PKG_TIFF_LIBS +PKG_TIFF_CFLAGS +GEM_LIB_TIFF_LIBS +GEM_LIB_TIFF_CFLAGS +HAVE_LIB_MAGICKCORE_FALSE +HAVE_LIB_MAGICKCORE_TRUE +PKG_MAGICKCORE_LIBS +PKG_MAGICKCORE_CFLAGS +GEM_LIB_MAGICKCORE_LIBS +GEM_LIB_MAGICKCORE_CFLAGS +HAVE_LIB_IMAGEMAGICK___FALSE +HAVE_LIB_IMAGEMAGICK___TRUE +PKG_IMAGEMAGICK___LIBS +PKG_IMAGEMAGICK___CFLAGS +GEM_LIB_IMAGEMAGICK___LIBS +GEM_LIB_IMAGEMAGICK___CFLAGS +VIDEODARWIN_FALSE +VIDEODARWIN_TRUE +HAVE_FRAMEWORK_QUICKTIME_FALSE +HAVE_FRAMEWORK_QUICKTIME_TRUE +GEM_FRAMEWORK_QUICKTIME +HAVE_FRAMEWORK_CARBON_FALSE +HAVE_FRAMEWORK_CARBON_TRUE +GEM_FRAMEWORK_CARBON +HAVE_FRAMEWORK_COCOA_FALSE +HAVE_FRAMEWORK_COCOA_TRUE +GEM_FRAMEWORK_COCOA +HAVE_LIB_SDL_FALSE +HAVE_LIB_SDL_TRUE +PKG_SDL_LIBS +PKG_SDL_CFLAGS +GEM_LIB_SDL_LIBS +GEM_LIB_SDL_CFLAGS +HAVE_LIB_GLEW_FALSE +HAVE_LIB_GLEW_TRUE +PKG_GLEW_LIBS +PKG_GLEW_CFLAGS +PKG_CONFIG +GEM_LIB_GLEW_LIBS +GEM_LIB_GLEW_CFLAGS +HAVE_AGL_FALSE +HAVE_AGL_TRUE +AGL_LIBS +AGL_CFLAGS +HAVE_FRAMEWORK_AGL_FALSE +HAVE_FRAMEWORK_AGL_TRUE +GEM_FRAMEWORK_AGL +GLX_LIBS +GLX_CFLAGS +HAVE_GLX_FALSE +HAVE_GLX_TRUE +HAVE_GLUT_FALSE +HAVE_GLUT_TRUE +GLUT_LIBS +GLUT_CFLAGS +HAVE_GLU_FALSE +HAVE_GLU_TRUE +GLU_LIBS +GLU_CFLAGS +HAVE_GL_FALSE +HAVE_GL_TRUE +GL_LIBS +GL_CFLAGS +PTHREAD_CFLAGS +PTHREAD_LIBS +PTHREAD_CC +ax_pthread_config +XMKMF +TARGET_VERTEX_FALSE +TARGET_VERTEX_TRUE +TARGET_OPENGL_FALSE +TARGET_OPENGL_TRUE +TARGET_PIXES_FALSE +TARGET_PIXES_TRUE +TARGET_PARTICLES_FALSE +TARGET_PARTICLES_TRUE +TARGET_NONGEOS_FALSE +TARGET_NONGEOS_TRUE +TARGET_MANIPS_FALSE +TARGET_MANIPS_TRUE +TARGET_GEOS_FALSE +TARGET_GEOS_TRUE +TARGET_CONTROLS_FALSE +TARGET_CONTROLS_TRUE +GEM_EXTERNAL_LIBS +GEM_EXTERNAL_CFLAGS +GEM_EXTERNAL_CPPFLAGS +GEM_LIBS +GEM_CXXFLAGS +GEM_CFLAGS +GEM_CPPFLAGS +GEM_RTE_EXTENSION +GEM_RTE +GEM_RTE_LIBS +GEM_RTE_CFLAGS +IRIX_FALSE +IRIX_TRUE +HURD_FALSE +HURD_TRUE +MINGW_FALSE +MINGW_TRUE +CYGWIN_FALSE +CYGWIN_TRUE +WINDOWS_FALSE +WINDOWS_TRUE +BSD_FALSE +BSD_TRUE +IPHONEOS_FALSE +IPHONEOS_TRUE +MACOSX_FALSE +MACOSX_TRUE +ANDROID_FALSE +ANDROID_TRUE +LINUX_FALSE +LINUX_TRUE +CPP +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +MANIFEST_TOOL +RANLIB +ac_ct_AR +AR +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +EGREP +GREP +SED +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +ac_ct_CC +CFLAGS +CC +LIBTOOL +OBJDUMP +DLLTOOL +AS +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +ac_ct_OBJCXX +OBJCXXFLAGS +OBJCXX +am__fastdepOBJC_FALSE +am__fastdepOBJC_TRUE +OBJCDEPMODE +ac_ct_OBJC +OBJCFLAGS +OBJC +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CXX +LDFLAGS +PKG_LIBS +PKG_CFLAGS +X_EXTRA_LIBS +X_LIBS +X_PRE_LIBS +X_CFLAGS +DEFINES +CPPFLAGS +CXXFLAGS +EXT +GEM_TARGETS +CXX +CXXCPP +subdirs +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_dependency_tracking +enable_shared +enable_static +with_pic +enable_fast_install +with_gnu_ld +with_sysroot +enable_libtool_lock +with_ALL +with_pd +with_extension +enable_mmx +enable_sse2 +enable_altivec +enable_powerpc +enable_pascalstrings +enable_registerstruct +enable_Controls +enable_Geos +enable_Manips +enable_Nongeos +enable_Particles +enable_Pixes +enable_openGL +enable_Vertex +with_x +with_glew +with_glew_includes +with_glew_libs +with_sdl +with_sdl_includes +with_sdl_libs +with_ImageMagick +with_ImageMagick_includes +with_ImageMagick_libs +with_MagickCore +with_MagickCore_includes +with_MagickCore_libs +with_tiff +with_tiff_includes +with_tiff_libs +with_jpeg +with_jpeg_includes +with_jpeg_libs +with_ftgl +with_ftgl_includes +with_ftgl_libs +with_fribidi +with_fribidi_includes +with_fribidi_libs +with_avifile +with_avifile_includes +with_avifile_libs +with_gmerlin_avdec +with_gmerlin_avdec_includes +with_gmerlin_avdec_libs +with_mpeg +with_mpeg_includes +with_mpeg_libs +with_libmpeg3 +with_libmpeg3_includes +with_libmpeg3_libs +with_libquicktime +with_libquicktime_includes +with_libquicktime_libs +with_lqt +with_lqt_includes +with_lqt_libs +with_libdc1394_2 +with_libdc1394_2_includes +with_libdc1394_2_libs +with_libdv +with_libdv_includes +with_libdv_libs +with_libraw1394 +with_libraw1394_includes +with_libraw1394_libs +with_libiec61883 +with_libiec61883_includes +with_libiec61883_libs +with_unicap +with_libunicap +with_libunicap_includes +with_libunicap_libs +with_v4l +with_libv4l1 +with_libv4l1_includes +with_libv4l1_libs +with_v4l2 +with_libv4l2 +with_libv4l2_includes +with_libv4l2_libs +with_vfw32 +with_vfw32_includes +with_vfw32_libs +with_libvlc +with_libvlc_includes +with_libvlc_libs +with_assimp +with_assimp_includes +with_assimp_libs +with_default_font +enable_threads +with_video +with_film +enable_fat_binary +with_defaultwindow +' + ac_precious_vars='build_alias +host_alias +target_alias +CXX +CXXFLAGS +LDFLAGS +LIBS +CPPFLAGS +CCC +OBJC +OBJCFLAGS +OBJCXX +OBJCXXFLAGS +CC +CFLAGS +CPP +CXXCPP +XMKMF +PKG_CONFIG +PKG_GLEW_CFLAGS +PKG_GLEW_LIBS +PKG_SDL_CFLAGS +PKG_SDL_LIBS +PKG_IMAGEMAGICK___CFLAGS +PKG_IMAGEMAGICK___LIBS +PKG_MAGICKCORE_CFLAGS +PKG_MAGICKCORE_LIBS +PKG_TIFF_CFLAGS +PKG_TIFF_LIBS +PKG_JPEG_CFLAGS +PKG_JPEG_LIBS +PKG_FTGL_CFLAGS +PKG_FTGL_LIBS +PKG_FRIBIDI_CFLAGS +PKG_FRIBIDI_LIBS +PKG_AVIFILE_CFLAGS +PKG_AVIFILE_LIBS +PKG_GMERLIN_AVDEC_CFLAGS +PKG_GMERLIN_AVDEC_LIBS +PKG_MPEG_CFLAGS +PKG_MPEG_LIBS +PKG_LIBMPEG3_CFLAGS +PKG_LIBMPEG3_LIBS +PKG_LIBQUICKTIME_CFLAGS +PKG_LIBQUICKTIME_LIBS +PKG_LQT_CFLAGS +PKG_LQT_LIBS +PKG_LIBDC1394_2_CFLAGS +PKG_LIBDC1394_2_LIBS +PKG_LIBDV_CFLAGS +PKG_LIBDV_LIBS +PKG_LIBRAW1394_CFLAGS +PKG_LIBRAW1394_LIBS +PKG_LIBIEC61883_CFLAGS +PKG_LIBIEC61883_LIBS +PKG_LIBUNICAP_CFLAGS +PKG_LIBUNICAP_LIBS +PKG_LIBV4L1_CFLAGS +PKG_LIBV4L1_LIBS +PKG_LIBV4L2_CFLAGS +PKG_LIBV4L2_LIBS +PKG_VFW32_CFLAGS +PKG_VFW32_LIBS +PKG_LIBVLC_CFLAGS +PKG_LIBVLC_LIBS +PKG_ASSIMP_CFLAGS +PKG_ASSIMP_LIBS' +ac_subdirs_all='extra +plugins/videoAVT +plugins/videoHALCON +plugins/videoPYLON' + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures Gem 0.93 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/Gem] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +X features: + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of Gem 0.93:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --enable-shared[=PKGS] build shared libraries [default=yes] + --enable-static[=PKGS] build static libraries [default=yes] + --enable-fast-install[=PKGS] + optimize for fast installation [default=yes] + --disable-libtool-lock avoid locking (might break parallel builds) + --disable-mmx disable mmx (MMX-support) + --enable-sse2 enable sse2 (SSE2-support) + --disable-altivec disable altivec (AltiVec-support) + --enable-powerpc enable powerpc (PowerPC specific optimizations) + --disable-pascalstrings disable pascalstrings (containing '\p') + --disable-registerstruct + disable registerstruct (use \"-freg-struct-return\" + (needed for FreeFrame)) + --disable-Controls disable Controls-objects + --disable-Geos disable Geos-objects + --disable-Manips disable Manips-objects + --disable-Nongeos disable Nongeos-objects + --disable-Particles disable Particles-objects + --disable-Pixes disable Pixes-objects + --disable-openGL disable openGL-objects + --enable-Vertex enable Vertex-objects + --disable-threads disable threads (default: use threads) + --enable-fat-binary=ARCHS + build an Apple Multi Architecture Binary (MAB); + ARCHS is a comma-delimited list of architectures for + which to build; if ARCHS is omitted, then the package + will be built for all architectures supported by the + platform (e.g. "ppc,i386" for MacOS/X and Darwin); + if this option is disabled or omitted entirely, then + the package will be built only for the target + platform; when building multiple architectures, + dependency-tracking must be disabled + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --with-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + --without-ALL en/disable ALL libraries by default + --with-pd= where to find pd-binary (./bin/pd.exe) and + pd-sources + --with-extension= enforce a certain file-extension (e.g. pd_linux) + --with-x use the X Window System + --without-glew disable glew (OpenGL Extension Wrangler library) + --with-glew-includes=/path/to/glew/include/ + include path for glew + --with-glew-libs=/path/to/glew/lib/ + library path for glew + --without-sdl disable sdl (SDL windowing) + --with-sdl-includes=/path/to/sdl/include/ + include path for sdl + --with-sdl-libs=/path/to/sdl/lib/ + library path for sdl + --without-ImageMagick disable ImageMagick (image loader) + --with-ImageMagick-includes=/path/to/ImageMagick/include/ + include path for ImageMagick + --with-ImageMagick-libs=/path/to/ImageMagick/lib/ + library path for ImageMagick + --without-MagickCore disable MagickCore (image loader) + --with-MagickCore-includes=/path/to/MagickCore/include/ + include path for MagickCore + --with-MagickCore-libs=/path/to/MagickCore/lib/ + library path for MagickCore + --without-tiff disable tiff (image loader) + --with-tiff-includes=/path/to/tiff/include/ + include path for tiff + --with-tiff-libs=/path/to/tiff/lib/ + library path for tiff + --without-jpeg disable jpeg (image loader) + --with-jpeg-includes=/path/to/jpeg/include/ + include path for jpeg + --with-jpeg-libs=/path/to/jpeg/lib/ + library path for jpeg + --without-ftgl disable ftgl (font support) + --with-ftgl-includes=/path/to/ftgl/include/ + include path for ftgl + --with-ftgl-libs=/path/to/ftgl/lib/ + library path for ftgl + --without-fribidi disable fribidi (bidrectional text rendering using + FriBidi) + --with-fribidi-includes=/path/to/fribidi/include/ + include path for fribidi + --with-fribidi-libs=/path/to/fribidi/lib/ + library path for fribidi + --without-avifile disable avifile (movie loader) + --with-avifile-includes=/path/to/avifile/include/ + include path for avifile + --with-avifile-libs=/path/to/avifile/lib/ + library path for avifile + --without-gmerlin_avdec disable gmerlin_avdec (movie loader) + --with-gmerlin_avdec-includes=/path/to/gmerlin_avdec/include/ + include path for gmerlin_avdec + --with-gmerlin_avdec-libs=/path/to/gmerlin_avdec/lib/ + library path for gmerlin_avdec + --without-mpeg disable mpeg (movie loader) + --with-mpeg-includes=/path/to/mpeg/include/ + include path for mpeg + --with-mpeg-libs=/path/to/mpeg/lib/ + library path for mpeg + --without-libmpeg3 disable libmpeg3 (movie loader) + --with-libmpeg3-includes=/path/to/libmpeg3/include/ + include path for libmpeg3 + --with-libmpeg3-libs=/path/to/libmpeg3/lib/ + library path for libmpeg3 + --without-libquicktime disable libquicktime (movie loader) + --with-libquicktime-includes=/path/to/libquicktime/include/ + include path for libquicktime + --with-libquicktime-libs=/path/to/libquicktime/lib/ + library path for libquicktime + --without-lqt disable lqt (movie loader) + --with-lqt-includes=/path/to/lqt/include/ + include path for lqt + --with-lqt-libs=/path/to/lqt/lib/ + library path for lqt + --without-libdc1394_2 disable libdc1394_2 (video input) + --with-libdc1394_2-includes=/path/to/libdc1394_2/include/ + include path for libdc1394_2 + --with-libdc1394_2-libs=/path/to/libdc1394_2/lib/ + library path for libdc1394_2 + --without-libdv disable libdv (video input) + --with-libdv-includes=/path/to/libdv/include/ + include path for libdv + --with-libdv-libs=/path/to/libdv/lib/ + library path for libdv + --without-libraw1394 disable libraw1394 (video input) + --with-libraw1394-includes=/path/to/libraw1394/include/ + include path for libraw1394 + --with-libraw1394-libs=/path/to/libraw1394/lib/ + library path for libraw1394 + --without-libiec61883 disable libiec61883 (video input) + --with-libiec61883-includes=/path/to/libiec61883/include/ + include path for libiec61883 + --with-libiec61883-libs=/path/to/libiec61883/lib/ + library path for libiec61883 + --without-unicap disable unicap-lib (video input) + --without-libunicap disable libunicap (video input) + --with-libunicap-includes=/path/to/libunicap/include/ + include path for libunicap + --with-libunicap-libs=/path/to/libunicap/lib/ + library path for libunicap + --without-v4l disable v4l-lib (video input) + --without-libv4l1 disable libv4l1 (video output) + --with-libv4l1-includes=/path/to/libv4l1/include/ + include path for libv4l1 + --with-libv4l1-libs=/path/to/libv4l1/lib/ + library path for libv4l1 + --without-v4l2 disable v4l2-lib (video input) + --without-libv4l2 disable libv4l2 (video input) + --with-libv4l2-includes=/path/to/libv4l2/include/ + include path for libv4l2 + --with-libv4l2-libs=/path/to/libv4l2/lib/ + library path for libv4l2 + --without-vfw32 disable vfw32 (video input) + --with-vfw32-includes=/path/to/vfw32/include/ + include path for vfw32 + --with-vfw32-libs=/path/to/vfw32/lib/ + library path for vfw32 + --without-libvlc disable libvlc (video input) + --with-libvlc-includes=/path/to/libvlc/include/ + include path for libvlc + --with-libvlc-libs=/path/to/libvlc/lib/ + library path for libvlc + --without-assimp disable assimp (3D model loading) + --with-assimp-includes=/path/to/assimp/include/ + include path for assimp + --with-assimp-libs=/path/to/assimp/lib/ + library path for assimp + --with-default-font=vera.ttf + specify the default font for text-rendering + + --with-video=plugins|Darwin|DS|NT + use plugins for video capture or OS-specific + "pix_video" + --with-film=plugins|Darwin + use plugins for video decoding or OS-specific + "pix_film" + --with-defaultwindow=<> specify default window backend (default: auto) + +Some influential environment variables: + CXX C++ compiler command + CXXFLAGS C++ compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + OBJC Objective C compiler command + OBJCFLAGS Objective C compiler flags + OBJCXX Objective C++ compiler command + OBJCXXFLAGS Objective C++ compiler flags + CC C compiler command + CFLAGS C compiler flags + CPP C preprocessor + CXXCPP C++ preprocessor + XMKMF Path to xmkmf, Makefile generator for X Window System + PKG_CONFIG path to pkg-config utility + PKG_GLEW_CFLAGS + C compiler flags for PKG_GLEW, overriding pkg-config + PKG_GLEW_LIBS + linker flags for PKG_GLEW, overriding pkg-config + PKG_SDL_CFLAGS + C compiler flags for PKG_SDL, overriding pkg-config + PKG_SDL_LIBS + linker flags for PKG_SDL, overriding pkg-config + PKG_IMAGEMAGICK___CFLAGS + C compiler flags for PKG_IMAGEMAGICK__, overriding pkg-config + PKG_IMAGEMAGICK___LIBS + linker flags for PKG_IMAGEMAGICK__, overriding pkg-config + PKG_MAGICKCORE_CFLAGS + C compiler flags for PKG_MAGICKCORE, overriding pkg-config + PKG_MAGICKCORE_LIBS + linker flags for PKG_MAGICKCORE, overriding pkg-config + PKG_TIFF_CFLAGS + C compiler flags for PKG_TIFF, overriding pkg-config + PKG_TIFF_LIBS + linker flags for PKG_TIFF, overriding pkg-config + PKG_JPEG_CFLAGS + C compiler flags for PKG_JPEG, overriding pkg-config + PKG_JPEG_LIBS + linker flags for PKG_JPEG, overriding pkg-config + PKG_FTGL_CFLAGS + C compiler flags for PKG_FTGL, overriding pkg-config + PKG_FTGL_LIBS + linker flags for PKG_FTGL, overriding pkg-config + PKG_FRIBIDI_CFLAGS + C compiler flags for PKG_FRIBIDI, overriding pkg-config + PKG_FRIBIDI_LIBS + linker flags for PKG_FRIBIDI, overriding pkg-config + PKG_AVIFILE_CFLAGS + C compiler flags for PKG_AVIFILE, overriding pkg-config + PKG_AVIFILE_LIBS + linker flags for PKG_AVIFILE, overriding pkg-config + PKG_GMERLIN_AVDEC_CFLAGS + C compiler flags for PKG_GMERLIN_AVDEC, overriding pkg-config + PKG_GMERLIN_AVDEC_LIBS + linker flags for PKG_GMERLIN_AVDEC, overriding pkg-config + PKG_MPEG_CFLAGS + C compiler flags for PKG_MPEG, overriding pkg-config + PKG_MPEG_LIBS + linker flags for PKG_MPEG, overriding pkg-config + PKG_LIBMPEG3_CFLAGS + C compiler flags for PKG_LIBMPEG3, overriding pkg-config + PKG_LIBMPEG3_LIBS + linker flags for PKG_LIBMPEG3, overriding pkg-config + PKG_LIBQUICKTIME_CFLAGS + C compiler flags for PKG_LIBQUICKTIME, overriding pkg-config + PKG_LIBQUICKTIME_LIBS + linker flags for PKG_LIBQUICKTIME, overriding pkg-config + PKG_LQT_CFLAGS + C compiler flags for PKG_LQT, overriding pkg-config + PKG_LQT_LIBS + linker flags for PKG_LQT, overriding pkg-config + PKG_LIBDC1394_2_CFLAGS + C compiler flags for PKG_LIBDC1394_2, overriding pkg-config + PKG_LIBDC1394_2_LIBS + linker flags for PKG_LIBDC1394_2, overriding pkg-config + PKG_LIBDV_CFLAGS + C compiler flags for PKG_LIBDV, overriding pkg-config + PKG_LIBDV_LIBS + linker flags for PKG_LIBDV, overriding pkg-config + PKG_LIBRAW1394_CFLAGS + C compiler flags for PKG_LIBRAW1394, overriding pkg-config + PKG_LIBRAW1394_LIBS + linker flags for PKG_LIBRAW1394, overriding pkg-config + PKG_LIBIEC61883_CFLAGS + C compiler flags for PKG_LIBIEC61883, overriding pkg-config + PKG_LIBIEC61883_LIBS + linker flags for PKG_LIBIEC61883, overriding pkg-config + PKG_LIBUNICAP_CFLAGS + C compiler flags for PKG_LIBUNICAP, overriding pkg-config + PKG_LIBUNICAP_LIBS + linker flags for PKG_LIBUNICAP, overriding pkg-config + PKG_LIBV4L1_CFLAGS + C compiler flags for PKG_LIBV4L1, overriding pkg-config + PKG_LIBV4L1_LIBS + linker flags for PKG_LIBV4L1, overriding pkg-config + PKG_LIBV4L2_CFLAGS + C compiler flags for PKG_LIBV4L2, overriding pkg-config + PKG_LIBV4L2_LIBS + linker flags for PKG_LIBV4L2, overriding pkg-config + PKG_VFW32_CFLAGS + C compiler flags for PKG_VFW32, overriding pkg-config + PKG_VFW32_LIBS + linker flags for PKG_VFW32, overriding pkg-config + PKG_LIBVLC_CFLAGS + C compiler flags for PKG_LIBVLC, overriding pkg-config + PKG_LIBVLC_LIBS + linker flags for PKG_LIBVLC, overriding pkg-config + PKG_ASSIMP_CFLAGS + C compiler flags for PKG_ASSIMP, overriding pkg-config + PKG_ASSIMP_LIBS + linker flags for PKG_ASSIMP, overriding pkg-config + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +Gem home page: . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +Gem configure 0.93 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_cxx_try_compile LINENO +# ---------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_compile + +# ac_fn_objc_try_compile LINENO +# ----------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_objc_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_objc_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_objc_try_compile + +# ac_fn_objcxx_try_compile LINENO +# ------------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_objcxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_objcxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_objcxx_try_compile + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + +# ac_fn_cxx_try_cpp LINENO +# ------------------------ +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_cpp + +# ac_fn_cxx_try_link LINENO +# ------------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_link + +# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES +# --------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_cxx_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ------------------------------ ## +## Report this to zmoelnig@iem.at ## +## ------------------------------ ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_cxx_check_header_mongrel + +# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES +# --------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_cxx_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_cxx_check_header_compile + +# ac_fn_cxx_check_func LINENO FUNC VAR +# ------------------------------------ +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_cxx_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_cxx_check_func + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ------------------------------ ## +## Report this to zmoelnig@iem.at ## +## ------------------------------ ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_mongrel + +# ac_fn_cxx_try_run LINENO +# ------------------------ +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_cxx_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_run + +# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES +# --------------------------------------------- +# Tests whether TYPE exists after having included INCLUDES, setting cache +# variable VAR accordingly. +ac_fn_cxx_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_cxx_check_type + +# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES +# ---------------------------------------------- +# Tries to find the compile-time value of EXPR in a program that includes +# INCLUDES, setting VAR accordingly. Returns whether the value could be +# computed +ac_fn_cxx_compute_int () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= 0)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_lo=0 ac_mid=0 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_hi=$ac_mid; break +else + as_fn_arith $ac_mid + 1 && ac_lo=$as_val + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) < 0)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_hi=-1 ac_mid=-1 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_lo=$ac_mid; break +else + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + ac_lo= ac_hi= +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_hi=$ac_mid +else + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in #(( +?*) eval "$3=\$ac_lo"; ac_retval=0 ;; +'') ac_retval=1 ;; +esac + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +static long int longval () { return $2; } +static unsigned long int ulongval () { return $2; } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (($2) < 0) + { + long int i = longval (); + if (i != ($2)) + return 1; + fprintf (f, "%ld", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ($2)) + return 1; + fprintf (f, "%lu", i); + } + /* Do not output a trailing newline, as this causes \r\n confusion + on some platforms. */ + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + echo >>conftest.val; read $3 config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by Gem $as_me 0.93, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +as_fn_append ac_header_list " stdlib.h" +as_fn_append ac_header_list " unistd.h" +as_fn_append ac_header_list " sys/param.h" +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +am__api_version='1.11' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='Gem' + VERSION='0.93' + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + + + +# +ac_config_files="$ac_config_files Makefile abstractions/Makefile" + + +# documentation +ac_config_files="$ac_config_files help/Makefile doc/Makefile examples/Makefile" + + +# src +ac_config_files="$ac_config_files src/Makefile src/Gem/Makefile src/Utils/Makefile" + +ac_config_files="$ac_config_files src/RTE/Makefile src/Base/Makefile src/plugins/Makefile" + +ac_config_files="$ac_config_files src/Output/Makefile" + +ac_config_files="$ac_config_files src/deprecated/Makefile" + + +## plugins that use this autoconf instance for configuration +ac_config_files="$ac_config_files plugins/Makefile" + +ac_config_files="$ac_config_files plugins/imageQT/Makefile" + +ac_config_files="$ac_config_files plugins/imageMAGICK/Makefile" + +ac_config_files="$ac_config_files plugins/imageTIFF/Makefile" + +ac_config_files="$ac_config_files plugins/imageJPEG/Makefile" + +ac_config_files="$ac_config_files plugins/imageSGI/Makefile" + + +ac_config_files="$ac_config_files plugins/filmAVI/Makefile" + +ac_config_files="$ac_config_files plugins/filmAVIPLAY/Makefile" + +ac_config_files="$ac_config_files plugins/filmDS/Makefile" + +ac_config_files="$ac_config_files plugins/filmDarwin/Makefile" + +ac_config_files="$ac_config_files plugins/filmGMERLIN/Makefile" + +ac_config_files="$ac_config_files plugins/filmMPEG1/Makefile" + +ac_config_files="$ac_config_files plugins/filmMPEG3/Makefile" + +ac_config_files="$ac_config_files plugins/filmQT/Makefile" + +ac_config_files="$ac_config_files plugins/filmQT4L/Makefile" + +ac_config_files="$ac_config_files plugins/filmTEST/Makefile" + + +ac_config_files="$ac_config_files plugins/modelOBJ/Makefile" + +ac_config_files="$ac_config_files plugins/modelASSIMP2/Makefile" + + +ac_config_files="$ac_config_files plugins/recordQT/Makefile" + +ac_config_files="$ac_config_files plugins/recordQT4L/Makefile" + +ac_config_files="$ac_config_files plugins/recordV4L/Makefile" + +ac_config_files="$ac_config_files plugins/recordV4L2/Makefile" + + +ac_config_files="$ac_config_files plugins/videoDC1394/Makefile" + +ac_config_files="$ac_config_files plugins/videoDS/Makefile" + +ac_config_files="$ac_config_files plugins/videoDV4L/Makefile" + +ac_config_files="$ac_config_files plugins/videoDarwin/Makefile" + +ac_config_files="$ac_config_files plugins/videoSGI/Makefile" + +ac_config_files="$ac_config_files plugins/videoTEST/Makefile" + +ac_config_files="$ac_config_files plugins/videoUNICAP/Makefile" + +ac_config_files="$ac_config_files plugins/videoV4L/Makefile" + +ac_config_files="$ac_config_files plugins/videoV4L2/Makefile" + +ac_config_files="$ac_config_files plugins/videoVFW/Makefile" + +ac_config_files="$ac_config_files plugins/videoVLC/Makefile" + + +## extra holds additional objects/libraries +# some of them have their own build system +#AC_CONFIG_FILES([extra/Makefile]) +# some do not +ac_config_files="$ac_config_files extra/pix2jpg/Makefile" + + +# other stuff +ac_config_files="$ac_config_files build/Makefile Gem.pc Gem-meta.pd" + + + +########################## + + + +ac_config_headers="$ac_config_headers src/config.h" + + + + + +subdirs="$subdirs extra" + + +if test -d "$srcdir/plugins/videoAVT"; then + subdirs="$subdirs plugins/videoAVT" + +fi +if test -d "$srcdir/plugins/videoHALCON"; then + subdirs="$subdirs plugins/videoHALCON" + +fi +if test -d "$srcdir/plugins/videoPYLON"; then + subdirs="$subdirs plugins/videoPYLON" + +fi + + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +ARCH=$(uname -m) +KERN=$(uname -s) + + + + + + + + + + + + + + + + + + + + + + +# Checks for programs. +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 +$as_echo_n "checking whether the C++ compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C++ compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 +$as_echo_n "checking for C++ compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C++ compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CXX_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + +ac_ext=m +ac_cpp='$OBJCPP $CPPFLAGS' +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_objc_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in gcc objcc objc cc CC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJC"; then + ac_cv_prog_OBJC="$OBJC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJC=$ac_cv_prog_OBJC +if test -n "$OBJC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 +$as_echo "$OBJC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$OBJC" && break + done +fi +if test -z "$OBJC"; then + ac_ct_OBJC=$OBJC + for ac_prog in gcc objcc objc cc CC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJC"; then + ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC +if test -n "$ac_ct_OBJC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 +$as_echo "$ac_ct_OBJC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_OBJC" && break +done + + if test "x$ac_ct_OBJC" = x; then + OBJC="gcc" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJC=$ac_ct_OBJC + fi +fi + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 +$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } +if ${ac_cv_objc_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_objc_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 +$as_echo "$ac_cv_objc_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GOBJC=yes +else + GOBJC= +fi +ac_test_OBJCFLAGS=${OBJCFLAGS+set} +ac_save_OBJCFLAGS=$OBJCFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 +$as_echo_n "checking whether $OBJC accepts -g... " >&6; } +if ${ac_cv_prog_objc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_objc_werror_flag=$ac_objc_werror_flag + ac_objc_werror_flag=yes + ac_cv_prog_objc_g=no + OBJCFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + ac_cv_prog_objc_g=yes +else + OBJCFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + +else + ac_objc_werror_flag=$ac_save_objc_werror_flag + OBJCFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objc_try_compile "$LINENO"; then : + ac_cv_prog_objc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_objc_werror_flag=$ac_save_objc_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 +$as_echo "$ac_cv_prog_objc_g" >&6; } +if test "$ac_test_OBJCFLAGS" = set; then + OBJCFLAGS=$ac_save_OBJCFLAGS +elif test $ac_cv_prog_objc_g = yes; then + if test "$GOBJC" = yes; then + OBJCFLAGS="-g -O2" + else + OBJCFLAGS="-g" + fi +else + if test "$GOBJC" = yes; then + OBJCFLAGS="-O2" + else + OBJCFLAGS= + fi +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +depcc="$OBJC" am_compiler_list='gcc3 gcc' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_OBJC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_OBJC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_OBJC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_OBJC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } +OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then + am__fastdepOBJC_TRUE= + am__fastdepOBJC_FALSE='#' +else + am__fastdepOBJC_TRUE='#' + am__fastdepOBJC_FALSE= +fi + + +ac_ext=mm +ac_cpp='$OBJCXXCPP $CPPFLAGS' +ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in g++ objc++ objcxx c++ CXX + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJCXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJCXX"; then + ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJCXX=$ac_cv_prog_OBJCXX +if test -n "$OBJCXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 +$as_echo "$OBJCXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$OBJCXX" && break + done +fi +if test -z "$OBJCXX"; then + ac_ct_OBJCXX=$OBJCXX + for ac_prog in g++ objc++ objcxx c++ CXX +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJCXX"; then + ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJCXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX +if test -n "$ac_ct_OBJCXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 +$as_echo "$ac_ct_OBJCXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_OBJCXX" && break +done + + if test "x$ac_ct_OBJCXX" = x; then + OBJCXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJCXX=$ac_ct_OBJCXX + fi +fi + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } +if ${ac_cv_objcxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 +$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GOBJCXX=yes +else + GOBJCXX= +fi +ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} +ac_save_OBJCXXFLAGS=$OBJCXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 +$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } +if ${ac_cv_prog_objcxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag + ac_objcxx_werror_flag=yes + ac_cv_prog_objcxx_g=no + OBJCXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + ac_cv_prog_objcxx_g=yes +else + OBJCXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + +else + ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag + OBJCXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_objcxx_try_compile "$LINENO"; then : + ac_cv_prog_objcxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_objcxx_werror_flag=$ac_save_objcx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 +$as_echo "$ac_cv_prog_objcxx_g" >&6; } +if test "$ac_test_OBJCXXFLAGS" = set; then + OBJCXXFLAGS=$ac_save_OBJCXXFLAGS +elif test $ac_cv_prog_objcxx_g = yes; then + if test "$GOBJCXX" = yes; then + OBJCXXFLAGS="-g -O2" + else + OBJCXXFLAGS="-g" + fi +else + if test "$GOBJCXX" = yes; then + OBJCXXFLAGS="-O2" + else + OBJCXXFLAGS= + fi +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AS="${ac_tool_prefix}as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +$as_echo "$AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AS="as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +$as_echo "$ac_ct_AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + + ;; +esac + +test -z "$AS" && AS=as + + + + + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + + +macro_version='2.4.2' +macro_revision='1.3337' + + + + + + + + + + + + + +ltmain="$ac_aux_dir/ltmain.sh" + +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +$as_echo_n "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case "$ECHO" in + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +$as_echo "printf" >&6; } ;; + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +$as_echo "print -r" >&6; } ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +$as_echo "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if ${ac_cv_path_FGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_FGREP" || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if ${lt_cv_nm_interface+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 +$as_echo "$xsi_shell" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +lt_shell_append=no +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 +$as_echo "$lt_shell_append" >&6; } + + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } +if ${lt_cv_to_host_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac + +fi + +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +$as_echo "$lt_cv_to_host_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } +if ${lt_cv_to_tool_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + #assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac + +fi + +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test "$GCC" != yes; then + reload_cmds=false + fi + ;; + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + + + + + + + + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + + + + + + + + +if test -n "$ac_tool_prefix"; then + for ac_prog in ar + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +fi + +: ${AR=ar} +: ${AR_FLAGS=cru} + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +$as_echo_n "checking for archiver @FILE support... " >&6; } +if ${lt_cv_ar_at_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ar_at_file=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +$as_echo "$lt_cv_ar_at_file" >&6; } + +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +test -z "$STRIP" && STRIP=: + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +test -z "$RANLIB" && RANLIB=: + + + + + + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + +# Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then : + withval=$with_sysroot; +else + with_sysroot=no +fi + + +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +$as_echo "${with_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +$as_echo "${lt_sysroot:-no}" >&6; } + + + + + + +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD="${LD-ld}_sol2" + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. +set dummy ${ac_tool_prefix}mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MANIFEST_TOOL"; then + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL +if test -n "$MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +$as_echo "$MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL + # Extract the first word of "mt", so it can be a program name with args. +set dummy mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MANIFEST_TOOL"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL +if test -n "$ac_ct_MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MANIFEST_TOOL" = x; then + MANIFEST_TOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL + fi +else + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" +fi + +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if ${lt_cv_path_mainfest_tool+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&5 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +$as_echo "$lt_cv_path_mainfest_tool" >&6; } +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi + + + + + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi +else + OTOOL="$ac_cv_prog_OTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&5 + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test $_lt_result -eq 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +$as_echo_n "checking for -force_load linker flag... " >&6; } +if ${lt_cv_ld_force_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 + echo "$AR cru libconftest.a conftest.o" >&5 + $AR cru libconftest.a conftest.o 2>&5 + echo "$RANLIB libconftest.a" >&5 + $RANLIB libconftest.a 2>&5 + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&5 + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&5 + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +$as_echo "$lt_cv_ld_force_load" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + + +func_stripname_cnf () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname_cnf + + + + + +# Set options + + + + enable_dlopen=no + + + + # Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + + + + + + + + + # Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for lt_pkg in $withval; do + IFS="$lt_save_ifs" + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + pic_mode=default +fi + + +test -z "$pic_mode" && pic_mode=default + + + + + + + + # Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +cat >>confdefs.h <<_ACEOF +#define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +# Use C for the default configuration in the libtool script + +lt_save_CC="$CC" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + case $cc_basename in + nvcc*) + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; + *) + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + + + + + + + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + + + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + lt_prog_compiler_wl='-Xlinker ' + if test -n "$lt_prog_compiler_pic"; then + lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + *Sun\ F* | *Sun*Fortran*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Intel*\ [CF]*Compiler*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + *Portland\ Group*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +$as_echo "$lt_cv_prog_compiler_pic" >&6; } +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi + + + + + + + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs=no + ;; + esac + + ld_shlibs=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; + *\ \(GNU\ Binutils\)\ [3-9]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + export_dynamic_flag_spec='${wl}--export-all-symbols' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs=yes + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='${wl}-f,' + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + link_all_deplibs=no + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + fi + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + always_export_symbols=yes + file_list_spec='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' + enable_shared_with_static_runtimes=yes + exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + old_postinstall_cmds='chmod 644 $oldlib' + postlink_cmds='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + enable_shared_with_static_runtimes=yes + ;; + esac + ;; + + darwin* | rhapsody*) + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec='' + fi + link_all_deplibs=yes + allow_undefined_flag="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + + else + ld_shlibs=no + fi + + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +$as_echo_n "checking if $CC understands -b... " >&6; } +if ${lt_cv_prog_compiler__b+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler__b=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -b" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler__b=yes + fi + else + lt_cv_prog_compiler__b=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +$as_echo "$lt_cv_prog_compiler__b" >&6; } + +if test x"$lt_cv_prog_compiler__b" = xyes; then + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' +else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' +fi + + ;; + esac + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if ${lt_cv_irix_exported_symbol+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (void) { return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_irix_exported_symbol=yes +else + lt_cv_irix_exported_symbol=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +$as_echo "$lt_cv_irix_exported_symbol" >&6; } + if test "$lt_cv_irix_exported_symbol" = yes; then + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='${wl}-Blargedynsym' + ;; + esac + fi + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no + +with_gnu_ld=$with_gnu_ld + + + + + + + + + + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([A-Za-z]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink || + test "$inherit_rpath" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + + + + + + + + + + + + + + + + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + + + + + + + + + + + + + # Report which library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + + + + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +CC="$lt_save_CC" + + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +else + _lt_caught_CXX_error=yes +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +compiler_needs_object_CXX=no +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_direct_absolute_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +inherit_rpath_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +reload_flag_CXX=$reload_flag +reload_cmds_CXX=$reload_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + + # save warnings/boilerplate of simple test code + ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + + ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + compiler_CXX=$CC + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' + else + lt_prog_compiler_no_builtin_flag_CXX= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + ld_shlibs_CXX=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + file_list_spec_CXX='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec_CXX='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + fi + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec_CXX=' ' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=yes + file_list_spec_CXX='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' + enable_shared_with_static_runtimes_CXX=yes + # Don't use ranlib + old_postinstall_cmds_CXX='chmod 644 $oldlib' + postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + + + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec_CXX='' + fi + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + + else + ld_shlibs_CXX=no + fi + + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + freebsd2.*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + ld_shlibs_CXX=no + ;; + + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + + haiku*) + archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs_CXX=yes + ;; + + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + inherit_rpath_CXX=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [1-5].* | *pgcpp\ [1-5].*) + prelink_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + old_archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object_CXX=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + ld_shlibs_CXX=yes + ;; + + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + hardcode_direct_absolute_CXX=yes + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + ld_shlibs_CXX=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + case $host in + osf3*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + ;; + *) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + ;; + esac + + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ + '"$old_archive_cmds_CXX" + reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ + '"$reload_cmds_CXX" + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } + test "$ld_shlibs_CXX" = no && can_build_shared=no + + GCC_CXX="$GXX" + LD_CXX="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + # Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= + +cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF + + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; +esac + +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case ${prev}${p} in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test "$pre_test_object_deps_done" = no; then + case ${prev} in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC* | sunCC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac + + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + compiler_lib_search_dirs_CXX= +if test -n "${compiler_lib_search_path_CXX}"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic_CXX='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-qpic' + lt_prog_compiler_static_CXX='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd* | netbsdelf*-gnu) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } +lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : +else + lt_prog_compiler_static_CXX= +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global defined + # symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) + exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + ;; + esac + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs_CXX=no + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +with_gnu_ld_CXX=$with_gnu_ld + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc_CXX=no + else + lt_cv_archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } + archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || + test -n "$runpath_var_CXX" || + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } + +if test "$hardcode_action_CXX" = relink || + test "$inherit_rpath_CXX" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + + + + + + + + + + + + + ac_config_commands="$ac_config_commands libtool" + + + + +# Only expand once: + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + + + +# Check whether --with-ALL was given. +if test "${with_ALL+set}" = set; then : + withval=$with_ALL; +fi + + + + + +ARCH=$(uname -m) +KERN=$(uname -s) + + + +LINUX=no +ANDROID=no +MACOSX=no +IPHONEOS=no +BSD=no +WINDOWS=no +MINGW=no +CYGWIN=no +HURD=no +IRIX=no + +case $host_os in +*linux*) + LINUX=yes + ;; +*darwin*) + MACOSX=yes + ;; +GNU/kFreeBSD) + BSD=yes + ;; +*mingw*) + WINDOWS=yes + MINGW=yes + ;; +*cygwin*) + WINDOWS=yes + CYGWIN=yes + ;; +GNU) + HURD=yes + ;; +esac + + + if test x$LINUX = xyes; then + LINUX_TRUE= + LINUX_FALSE='#' +else + LINUX_TRUE='#' + LINUX_FALSE= +fi + + if test x$ANDROID = xyes; then + ANDROID_TRUE= + ANDROID_FALSE='#' +else + ANDROID_TRUE='#' + ANDROID_FALSE= +fi + + if test x$MACOSX = xyes; then + MACOSX_TRUE= + MACOSX_FALSE='#' +else + MACOSX_TRUE='#' + MACOSX_FALSE= +fi + + if test x$IPHONEOS = xyes; then + IPHONEOS_TRUE= + IPHONEOS_FALSE='#' +else + IPHONEOS_TRUE='#' + IPHONEOS_FALSE= +fi + + if test x$BSD = xyes; then + BSD_TRUE= + BSD_FALSE='#' +else + BSD_TRUE='#' + BSD_FALSE= +fi + + if test x$WINDOWS = xyes; then + WINDOWS_TRUE= + WINDOWS_FALSE='#' +else + WINDOWS_TRUE='#' + WINDOWS_FALSE= +fi + + if test x$CYGWIN = xyes; then + CYGWIN_TRUE= + CYGWIN_FALSE='#' +else + CYGWIN_TRUE='#' + CYGWIN_FALSE= +fi + + if test x$MINGW = xyes; then + MINGW_TRUE= + MINGW_FALSE='#' +else + MINGW_TRUE='#' + MINGW_FALSE= +fi + + if test x$HURD = xyes; then + HURD_TRUE= + HURD_FALSE='#' +else + HURD_TRUE='#' + HURD_FALSE= +fi + + if test x$IRIX = xyes; then + IRIX_TRUE= + IRIX_FALSE='#' +else + IRIX_TRUE='#' + IRIX_FALSE= +fi + + + + + + + +if test "x${libdir}" = "x\${exec_prefix}/lib"; then + libdir='${exec_prefix}/lib/pd/extra' +fi + +tmp_rte_cppflags="$CPPFLAGS" +tmp_rte_cflags="$CFLAGS" +tmp_rte_cxxflags="$CXXFLAGS" +tmp_rte_ldflags="$LDFLAGS" +tmp_rte_libs="$LIBS" + +GEM_RTE_CFLAGS="-DPD" +GEM_RTE_LIBS="" +GEM_RTE="Pure Data" + + +# Check whether --with-pd was given. +if test "${with_pd+set}" = set; then : + withval=$with_pd; +fi + + +## some default paths +if test "x${with_pd}" = "x"; then + case $host_os in + *darwin*) + if test -d "/Applications/Pd-extended.app/Contents/Resources"; then with_pd="/Applications/Pd-extended.app/Contents/Resources"; fi + if test -d "/Applications/Pd.app/Contents/Resources"; then with_pd="/Applications/Pd.app/Contents/Resources"; fi + ;; + *mingw* | *cygwin*) + if test -d "${PROGRAMFILES}/Pd-extended"; then with_pd="${PROGRAMFILES}/Pd-extended"; fi + if test -d "${PROGRAMFILES}/pd"; then with_pd="${PROGRAMFILES}/pd"; fi + ;; + esac +fi + +if test -d "$with_pd" ; then + if test -d "${with_pd}/src" ; then + + for element in "-I${with_pd}/src"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + elif test -d "${with_pd}/include/pd" ; then + + for element in "-I${with_pd}/include/pd"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + elif test -d "${with_pd}/include" ; then + + for element in "-I${with_pd}/include"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + else + + for element in "-I${with_pd}"; do + haveit= + for x in $GEM_RTE_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_RTE_CFLAGS="${GEM_RTE_CFLAGS}${GEM_RTE_CFLAGS:+ }$element" + fi + done + + fi + if test -d "${with_pd}/bin" ; then + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-L${with_pd}/bin" + else + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-L${with_pd}" + fi + + CPPFLAGS="$CPPFLAGS ${GEM_RTE_CFLAGS}" + CFLAGS="$CFLAGS ${GEM_RTE_CFLAGS}" + CXXFLAGS="$CXXFLAGS ${GEM_RTE_CFLAGS}" + LIBS="$LIBS ${GEM_RTE_LIBS}" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nullfn in -l:pd.dll" >&5 +$as_echo_n "checking for nullfn in -l:pd.dll... " >&6; } +if ${ac_cv_lib__pd_dll_nullfn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l:pd.dll $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char nullfn (); +int +main () +{ +return nullfn (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib__pd_dll_nullfn=yes +else + ac_cv_lib__pd_dll_nullfn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib__pd_dll_nullfn" >&5 +$as_echo "$ac_cv_lib__pd_dll_nullfn" >&6; } +if test "x$ac_cv_lib__pd_dll_nullfn" = xyes; then : + have_pddll="yes" +else + have_pddll="no" +fi + +if test "x$have_pddll" = "xyes"; then + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-Xlinker -l:pd.dll" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nullfn in -lpd" >&5 +$as_echo_n "checking for nullfn in -lpd... " >&6; } +if ${ac_cv_lib_pd_nullfn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char nullfn (); +int +main () +{ +return nullfn (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_pd_nullfn=yes +else + ac_cv_lib_pd_nullfn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pd_nullfn" >&5 +$as_echo "$ac_cv_lib_pd_nullfn" >&6; } +if test "x$ac_cv_lib_pd_nullfn" = xyes; then : + GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-lpd" +fi + +fi + +for ac_header in m_pd.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "m_pd.h" "ac_cv_header_m_pd_h" "$ac_includes_default" +if test "x$ac_cv_header_m_pd_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_M_PD_H 1 +_ACEOF + have_pd="yes" +else + have_pd="no" +fi + +done + + +for ac_header in s_stuff.h +do : + ac_fn_cxx_check_header_compile "$LINENO" "s_stuff.h" "ac_cv_header_s_stuff_h" "#ifdef HAVE_M_PD_H +# define PD +# include \"m_pd.h\" +#endif + +" +if test "x$ac_cv_header_s_stuff_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_S_STUFF_H 1 +_ACEOF + +fi + +done + + +### this should only be set if Pd has been found +# the extension + +# Check whether --with-extension was given. +if test "${with_extension+set}" = set; then : + withval=$with_extension; +fi + +if test "x$with_extension" != "x"; then + EXT=$with_extension +else + case x$host_os in + x*darwin*) + EXT=pd_darwin + ;; + x*mingw* | x*cygwin*) + EXT=dll + ;; + x) + EXT="pd_linux" + ;; + *) + EXT=pd_`echo $host_os | sed -e '/.*/s/-.*//' -e 's/\..*//'` + ;; + esac +fi +GEM_RTE_EXTENSION=$EXT + + +CPPFLAGS="$tmp_rte_cppflags" +CFLAGS="$tmp_rte_cflags" +CXXFLAGS="$tmp_rte_cxxflags" +LDFLAGS="$tmp_rte_ldflags" +LIBS="$tmp_rte_libs" + + + + + + + + + + + + +GEM_CPPFLAGS="-DGEM_INTERNAL" + +if test "x$have_pddll" = "xyes"; then + GEM_EXTERNAL_LIBS="${GEM_EXTERNAL_LIBS}${GEM_EXTERNAL_LIBS:+ }-Xlinker -l:Gem.dll" +fi + +# Check whether --enable-mmx was given. +if test "${enable_mmx+set}" = set; then : + enableval=$enable_mmx; +else + + if test "x" != "x"; then enable_mmx="yes"; fi + +fi + + +# Check whether --enable-sse2 was given. +if test "${enable_sse2+set}" = set; then : + enableval=$enable_sse2; +else + + if test "x" != "x"; then enable_sse2="no"; fi + +fi + + +# Check whether --enable-altivec was given. +if test "${enable_altivec+set}" = set; then : + enableval=$enable_altivec; +else + + if test "x" != "x"; then enable_altivec="yes"; fi + +fi + + +# Check whether --enable-powerpc was given. +if test "${enable_powerpc+set}" = set; then : + enableval=$enable_powerpc; +else + + if test "x" != "x"; then enable_powerpc="no"; fi + +fi + + + +# Check whether --enable-pascalstrings was given. +if test "${enable_pascalstrings+set}" = set; then : + enableval=$enable_pascalstrings; +else + + if test "x" != "x"; then enable_pascalstrings="yes"; fi + +fi + + + +# Check whether --enable-registerstruct was given. +if test "${enable_registerstruct+set}" = set; then : + enableval=$enable_registerstruct; +else + + if test "xforce" != "x"; then enable_registerstruct="yes"; fi + +fi + + + + + + +ac_config_files="$ac_config_files src/Controls/Makefile" + + +# Check whether --enable-Controls was given. +if test "${enable_Controls+set}" = set; then : + enableval=$enable_Controls; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Controls-objects" >&5 +$as_echo "building Gem with Controls-objects" >&6; } + target_CONTROLS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Controls-objects" >&5 +$as_echo "building Gem without Controls-objects" >&6; } + target_CONTROLS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Controls-objects" >&5 +$as_echo "building Gem with Controls-objects" >&6; } + target_CONTROLS="yes" + +fi + + if test "x$target_CONTROLS" != "xno"; then + TARGET_CONTROLS_TRUE= + TARGET_CONTROLS_FALSE='#' +else + TARGET_CONTROLS_TRUE='#' + TARGET_CONTROLS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Geos/Makefile" + + +# Check whether --enable-Geos was given. +if test "${enable_Geos+set}" = set; then : + enableval=$enable_Geos; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Geos-objects" >&5 +$as_echo "building Gem with Geos-objects" >&6; } + target_GEOS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Geos-objects" >&5 +$as_echo "building Gem without Geos-objects" >&6; } + target_GEOS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Geos-objects" >&5 +$as_echo "building Gem with Geos-objects" >&6; } + target_GEOS="yes" + +fi + + if test "x$target_GEOS" != "xno"; then + TARGET_GEOS_TRUE= + TARGET_GEOS_FALSE='#' +else + TARGET_GEOS_TRUE='#' + TARGET_GEOS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Manips/Makefile" + + +# Check whether --enable-Manips was given. +if test "${enable_Manips+set}" = set; then : + enableval=$enable_Manips; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Manips-objects" >&5 +$as_echo "building Gem with Manips-objects" >&6; } + target_MANIPS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Manips-objects" >&5 +$as_echo "building Gem without Manips-objects" >&6; } + target_MANIPS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Manips-objects" >&5 +$as_echo "building Gem with Manips-objects" >&6; } + target_MANIPS="yes" + +fi + + if test "x$target_MANIPS" != "xno"; then + TARGET_MANIPS_TRUE= + TARGET_MANIPS_FALSE='#' +else + TARGET_MANIPS_TRUE='#' + TARGET_MANIPS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Nongeos/Makefile" + + +# Check whether --enable-Nongeos was given. +if test "${enable_Nongeos+set}" = set; then : + enableval=$enable_Nongeos; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Nongeos-objects" >&5 +$as_echo "building Gem with Nongeos-objects" >&6; } + target_NONGEOS="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Nongeos-objects" >&5 +$as_echo "building Gem without Nongeos-objects" >&6; } + target_NONGEOS="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Nongeos-objects" >&5 +$as_echo "building Gem with Nongeos-objects" >&6; } + target_NONGEOS="yes" + +fi + + if test "x$target_NONGEOS" != "xno"; then + TARGET_NONGEOS_TRUE= + TARGET_NONGEOS_FALSE='#' +else + TARGET_NONGEOS_TRUE='#' + TARGET_NONGEOS_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Particles/Makefile" + + +# Check whether --enable-Particles was given. +if test "${enable_Particles+set}" = set; then : + enableval=$enable_Particles; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Particles-objects" >&5 +$as_echo "building Gem with Particles-objects" >&6; } + target_PARTICLES="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Particles-objects" >&5 +$as_echo "building Gem without Particles-objects" >&6; } + target_PARTICLES="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Particles-objects" >&5 +$as_echo "building Gem with Particles-objects" >&6; } + target_PARTICLES="yes" + +fi + + if test "x$target_PARTICLES" != "xno"; then + TARGET_PARTICLES_TRUE= + TARGET_PARTICLES_FALSE='#' +else + TARGET_PARTICLES_TRUE='#' + TARGET_PARTICLES_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/Pixes/Makefile" + + +# Check whether --enable-Pixes was given. +if test "${enable_Pixes+set}" = set; then : + enableval=$enable_Pixes; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Pixes-objects" >&5 +$as_echo "building Gem with Pixes-objects" >&6; } + target_PIXES="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Pixes-objects" >&5 +$as_echo "building Gem without Pixes-objects" >&6; } + target_PIXES="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Pixes-objects" >&5 +$as_echo "building Gem with Pixes-objects" >&6; } + target_PIXES="yes" + +fi + + if test "x$target_PIXES" != "xno"; then + TARGET_PIXES_TRUE= + TARGET_PIXES_FALSE='#' +else + TARGET_PIXES_TRUE='#' + TARGET_PIXES_FALSE= +fi + + + + + +ac_config_files="$ac_config_files src/openGL/Makefile" + + +# Check whether --enable-openGL was given. +if test "${enable_openGL+set}" = set; then : + enableval=$enable_openGL; + if test "x$enableval" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with openGL-objects" >&5 +$as_echo "building Gem with openGL-objects" >&6; } + target_OPENGL="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without openGL-objects" >&5 +$as_echo "building Gem without openGL-objects" >&6; } + target_OPENGL="no" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with openGL-objects" >&5 +$as_echo "building Gem with openGL-objects" >&6; } + target_OPENGL="yes" + +fi + + if test "x$target_OPENGL" != "xno"; then + TARGET_OPENGL_TRUE= + TARGET_OPENGL_FALSE='#' +else + TARGET_OPENGL_TRUE='#' + TARGET_OPENGL_FALSE= +fi + + + + + + +ac_config_files="$ac_config_files src/Vertex/Makefile" + +# Check whether --enable-Vertex was given. +if test "${enable_Vertex+set}" = set; then : + enableval=$enable_Vertex; + if test "x$enableval" != "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Vertex-objects" >&5 +$as_echo "building Gem without Vertex-objects" >&6; } + target_VERTEX="no" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem with Vertex-objects" >&5 +$as_echo "building Gem with Vertex-objects" >&6; } + target_VERTEX="yes" + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: building Gem without Vertex-objects" >&5 +$as_echo "building Gem without Vertex-objects" >&6; } + target_VERTEX="no" + +fi + + if test "x$target_VERTEX" != "xno"; then + TARGET_VERTEX_TRUE= + TARGET_VERTEX_FALSE='#' +else + TARGET_VERTEX_TRUE='#' + TARGET_VERTEX_FALSE= +fi + + + + +# Checks for libraries. + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 +$as_echo_n "checking for sin in -lm... " >&6; } +if ${ac_cv_lib_m_sin+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sin (); +int +main () +{ +return sin (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_m_sin=yes +else + ac_cv_lib_m_sin=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 +$as_echo "$ac_cv_lib_m_sin" >&6; } +if test "x$ac_cv_lib_m_sin" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBM 1 +_ACEOF + + LIBS="-lm $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5 +$as_echo_n "checking for main in -lz... " >&6; } +if ${ac_cv_lib_z_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_z_main=yes +else + ac_cv_lib_z_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5 +$as_echo "$ac_cv_lib_z_main" >&6; } +if test "x$ac_cv_lib_z_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBZ 1 +_ACEOF + + LIBS="-lz $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBDL 1 +_ACEOF + + LIBS="-ldl $LIBS" + +fi + + +# w32 compatibility library +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lOLDNAMES" >&5 +$as_echo_n "checking for close in -lOLDNAMES... " >&6; } +if ${ac_cv_lib_OLDNAMES_close+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lOLDNAMES $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char close (); +int +main () +{ +return close (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_OLDNAMES_close=yes +else + ac_cv_lib_OLDNAMES_close=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OLDNAMES_close" >&5 +$as_echo "$ac_cv_lib_OLDNAMES_close" >&6; } +if test "x$ac_cv_lib_OLDNAMES_close" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBOLDNAMES 1 +_ACEOF + + LIBS="-lOLDNAMES $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lcoldname" >&5 +$as_echo_n "checking for close in -lcoldname... " >&6; } +if ${ac_cv_lib_coldname_close+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcoldname $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char close (); +int +main () +{ +return close (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_coldname_close=yes +else + ac_cv_lib_coldname_close=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_coldname_close" >&5 +$as_echo "$ac_cv_lib_coldname_close" >&6; } +if test "x$ac_cv_lib_coldname_close" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBCOLDNAME 1 +_ACEOF + + LIBS="-lcoldname $LIBS" + +fi + +# Standard C++ Libray: +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llibcpmt" >&5 +$as_echo_n "checking for main in -llibcpmt... " >&6; } +if ${ac_cv_lib_libcpmt_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-llibcpmt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_libcpmt_main=yes +else + ac_cv_lib_libcpmt_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_libcpmt_main" >&5 +$as_echo "$ac_cv_lib_libcpmt_main" >&6; } +if test "x$ac_cv_lib_libcpmt_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLIBCPMT 1 +_ACEOF + + LIBS="-llibcpmt $LIBS" + +fi + +# C runtime library: +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose in -lmsvcrt" >&5 +$as_echo_n "checking for fclose in -lmsvcrt... " >&6; } +if ${ac_cv_lib_msvcrt_fclose+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmsvcrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char fclose (); +int +main () +{ +return fclose (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_msvcrt_fclose=yes +else + ac_cv_lib_msvcrt_fclose=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msvcrt_fclose" >&5 +$as_echo "$ac_cv_lib_msvcrt_fclose" >&6; } +if test "x$ac_cv_lib_msvcrt_fclose" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBMSVCRT 1 +_ACEOF + + LIBS="-lmsvcrt $LIBS" + +fi + +# Standard C++ Libray: +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmsvcprt" >&5 +$as_echo_n "checking for main in -lmsvcprt... " >&6; } +if ${ac_cv_lib_msvcprt_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmsvcprt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_msvcprt_main=yes +else + ac_cv_lib_msvcprt_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msvcprt_main" >&5 +$as_echo "$ac_cv_lib_msvcprt_main" >&6; } +if test "x$ac_cv_lib_msvcprt_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBMSVCPRT 1 +_ACEOF + + LIBS="-lmsvcprt $LIBS" + +fi + +# Winsock Library +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 +$as_echo_n "checking for main in -lws2_32... " >&6; } +if ${ac_cv_lib_ws2_32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lws2_32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ws2_32_main=yes +else + ac_cv_lib_ws2_32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 +$as_echo "$ac_cv_lib_ws2_32_main" >&6; } +if test "x$ac_cv_lib_ws2_32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBWS2_32 1 +_ACEOF + + LIBS="-lws2_32 $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwsock32" >&5 +$as_echo_n "checking for main in -lwsock32... " >&6; } +if ${ac_cv_lib_wsock32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lwsock32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_wsock32_main=yes +else + ac_cv_lib_wsock32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_main" >&5 +$as_echo "$ac_cv_lib_wsock32_main" >&6; } +if test "x$ac_cv_lib_wsock32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBWSOCK32 1 +_ACEOF + + LIBS="-lwsock32 $LIBS" + +fi + + +# w32 window creating +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5 +$as_echo_n "checking for main in -lgdi32... " >&6; } +if ${ac_cv_lib_gdi32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgdi32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_gdi32_main=yes +else + ac_cv_lib_gdi32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5 +$as_echo "$ac_cv_lib_gdi32_main" >&6; } +if test "x$ac_cv_lib_gdi32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBGDI32 1 +_ACEOF + + LIBS="-lgdi32 $LIBS" + +fi + + + +## on OSX X shouldn't be used by default as there are other ways +## however, if people really want it ("--with-x") they should get it +if test "x$KERN" = "xDarwin"; then + if test "x$with_x" = "x"; then + with_x="no" + fi +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 +$as_echo_n "checking for X... " >&6; } + + +# Check whether --with-x was given. +if test "${with_x+set}" = set; then : + withval=$with_x; +fi + +# $have_x is `yes', `no', `disabled', or empty when we do not yet know. +if test "x$with_x" = xno; then + # The user explicitly disabled X. + have_x=disabled +else + case $x_includes,$x_libraries in #( + *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( + *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : + $as_echo_n "(cached) " >&6 +else + # One or both of the vars are not set, and there is no cached value. +ac_x_includes=no ac_x_libraries=no +rm -f -r conftest.dir +if mkdir conftest.dir; then + cd conftest.dir + cat >Imakefile <<'_ACEOF' +incroot: + @echo incroot='${INCROOT}' +usrlibdir: + @echo usrlibdir='${USRLIBDIR}' +libdir: + @echo libdir='${LIBDIR}' +_ACEOF + if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then + # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. + for ac_var in incroot usrlibdir libdir; do + eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" + done + # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. + for ac_extension in a so sl dylib la dll; do + if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && + test -f "$ac_im_libdir/libX11.$ac_extension"; then + ac_im_usrlibdir=$ac_im_libdir; break + fi + done + # Screen out bogus values from the imake configuration. They are + # bogus both because they are the default anyway, and because + # using them would break gcc on systems where it needs fixed includes. + case $ac_im_incroot in + /usr/include) ac_x_includes= ;; + *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; + esac + case $ac_im_usrlibdir in + /usr/lib | /usr/lib64 | /lib | /lib64) ;; + *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; + esac + fi + cd .. + rm -f -r conftest.dir +fi + +# Standard set of common directories for X headers. +# Check X11 before X11Rn because it is often a symlink to the current release. +ac_x_header_dirs=' +/usr/X11/include +/usr/X11R7/include +/usr/X11R6/include +/usr/X11R5/include +/usr/X11R4/include + +/usr/include/X11 +/usr/include/X11R7 +/usr/include/X11R6 +/usr/include/X11R5 +/usr/include/X11R4 + +/usr/local/X11/include +/usr/local/X11R7/include +/usr/local/X11R6/include +/usr/local/X11R5/include +/usr/local/X11R4/include + +/usr/local/include/X11 +/usr/local/include/X11R7 +/usr/local/include/X11R6 +/usr/local/include/X11R5 +/usr/local/include/X11R4 + +/usr/X386/include +/usr/x386/include +/usr/XFree86/include/X11 + +/usr/include +/usr/local/include +/usr/unsupported/include +/usr/athena/include +/usr/local/x11r5/include +/usr/lpp/Xamples/include + +/usr/openwin/include +/usr/openwin/share/include' + +if test "$ac_x_includes" = no; then + # Guess where to find include files, by looking for Xlib.h. + # First, try using that file with no special directory specified. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # We can compile using X headers with no special include directory. +ac_x_includes= +else + for ac_dir in $ac_x_header_dirs; do + if test -r "$ac_dir/X11/Xlib.h"; then + ac_x_includes=$ac_dir + break + fi +done +fi +rm -f conftest.err conftest.i conftest.$ac_ext +fi # $ac_x_includes = no + +if test "$ac_x_libraries" = no; then + # Check for the libraries. + # See if we find them without any special options. + # Don't add to $LIBS permanently. + ac_save_LIBS=$LIBS + LIBS="-lX11 $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +XrmInitialize () + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + LIBS=$ac_save_LIBS +# We can link X programs with no special library path. +ac_x_libraries= +else + LIBS=$ac_save_LIBS +for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` +do + # Don't even attempt the hair of trying to link an X program! + for ac_extension in a so sl dylib la dll; do + if test -r "$ac_dir/libX11.$ac_extension"; then + ac_x_libraries=$ac_dir + break 2 + fi + done +done +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi # $ac_x_libraries = no + +case $ac_x_includes,$ac_x_libraries in #( + no,* | *,no | *\'*) + # Didn't find X, or a directory has "'" in its name. + ac_cv_have_x="have_x=no";; #( + *) + # Record where we found X for the cache. + ac_cv_have_x="have_x=yes\ + ac_x_includes='$ac_x_includes'\ + ac_x_libraries='$ac_x_libraries'" +esac +fi +;; #( + *) have_x=yes;; + esac + eval "$ac_cv_have_x" +fi # $with_x != no + +if test "$have_x" != yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 +$as_echo "$have_x" >&6; } + no_x=yes +else + # If each of the values was on the command line, it overrides each guess. + test "x$x_includes" = xNONE && x_includes=$ac_x_includes + test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries + # Update the cache value to reflect the command line values. + ac_cv_have_x="have_x=yes\ + ac_x_includes='$x_includes'\ + ac_x_libraries='$x_libraries'" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 +$as_echo "libraries $x_libraries, headers $x_includes" >&6; } +fi + +if test "$no_x" = yes; then + # Not all programs may use this symbol, but it does not hurt to define it. + +$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h + + X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= +else + if test -n "$x_includes"; then + X_CFLAGS="$X_CFLAGS -I$x_includes" + fi + + # It would also be nice to do this for all -L options, not just this one. + if test -n "$x_libraries"; then + X_LIBS="$X_LIBS -L$x_libraries" + # For Solaris; some versions of Sun CC require a space after -R and + # others require no space. Words are not sufficient . . . . + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 +$as_echo_n "checking whether -R must be followed by a space... " >&6; } + ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" + ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + X_LIBS="$X_LIBS -R$x_libraries" +else + LIBS="$ac_xsave_LIBS -R $x_libraries" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + X_LIBS="$X_LIBS -R $x_libraries" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 +$as_echo "neither works" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag + LIBS=$ac_xsave_LIBS + fi + + # Check for system-dependent libraries X programs must link with. + # Do this before checking for the system-independent R6 libraries + # (-lICE), since we may need -lsocket or whatever for X linking. + + if test "$ISC" = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" + else + # Martyn Johnson says this is needed for Ultrix, if the X + # libraries were built with DECnet support. And Karl Berry says + # the Alpha needs dnet_stub (dnet does not exist). + ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char XOpenDisplay (); +int +main () +{ +return XOpenDisplay (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 +$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } +if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_ntoa (); +int +main () +{ +return dnet_ntoa (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dnet_dnet_ntoa=yes +else + ac_cv_lib_dnet_dnet_ntoa=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 +$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } +if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" +fi + + if test $ac_cv_lib_dnet_dnet_ntoa = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 +$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } +if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet_stub $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_ntoa (); +int +main () +{ +return dnet_ntoa (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dnet_stub_dnet_ntoa=yes +else + ac_cv_lib_dnet_stub_dnet_ntoa=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 +$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } +if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" +fi + + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$ac_xsave_LIBS" + + # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, + # to get the SysV transport functions. + # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) + # needs -lnsl. + # The nsl library prevents programs from opening the X display + # on Irix 5.2, according to T.E. Dickey. + # The functions gethostbyname, getservbyname, and inet_addr are + # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. + ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" +if test "x$ac_cv_func_gethostbyname" = xyes; then : + +fi + + if test $ac_cv_func_gethostbyname = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_gethostbyname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_nsl_gethostbyname=yes +else + ac_cv_lib_nsl_gethostbyname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } +if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" +fi + + if test $ac_cv_lib_nsl_gethostbyname = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 +$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } +if ${ac_cv_lib_bsd_gethostbyname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbsd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_bsd_gethostbyname=yes +else + ac_cv_lib_bsd_gethostbyname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 +$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } +if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" +fi + + fi + fi + + # lieder@skyler.mavd.honeywell.com says without -lsocket, + # socket/setsockopt and other routines are undefined under SCO ODT + # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary + # on later versions), says Simon Leinen: it contains gethostby* + # variants that don't use the name server (or something). -lsocket + # must be given before -lnsl if both are needed. We assume that + # if connect needs -lnsl, so does gethostbyname. + ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" +if test "x$ac_cv_func_connect" = xyes; then : + +fi + + if test $ac_cv_func_connect = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 +$as_echo_n "checking for connect in -lsocket... " >&6; } +if ${ac_cv_lib_socket_connect+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $X_EXTRA_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char connect (); +int +main () +{ +return connect (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_socket_connect=yes +else + ac_cv_lib_socket_connect=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 +$as_echo "$ac_cv_lib_socket_connect" >&6; } +if test "x$ac_cv_lib_socket_connect" = xyes; then : + X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" +fi + + fi + + # Guillermo Gomez says -lposix is necessary on A/UX. + ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" +if test "x$ac_cv_func_remove" = xyes; then : + +fi + + if test $ac_cv_func_remove = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 +$as_echo_n "checking for remove in -lposix... " >&6; } +if ${ac_cv_lib_posix_remove+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lposix $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char remove (); +int +main () +{ +return remove (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_posix_remove=yes +else + ac_cv_lib_posix_remove=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 +$as_echo "$ac_cv_lib_posix_remove" >&6; } +if test "x$ac_cv_lib_posix_remove" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" +fi + + fi + + # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. + ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" +if test "x$ac_cv_func_shmat" = xyes; then : + +fi + + if test $ac_cv_func_shmat = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 +$as_echo_n "checking for shmat in -lipc... " >&6; } +if ${ac_cv_lib_ipc_shmat+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lipc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shmat (); +int +main () +{ +return shmat (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ipc_shmat=yes +else + ac_cv_lib_ipc_shmat=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 +$as_echo "$ac_cv_lib_ipc_shmat" >&6; } +if test "x$ac_cv_lib_ipc_shmat" = xyes; then : + X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" +fi + + fi + fi + + # Check for libraries that X11R6 Xt/Xaw programs need. + ac_save_LDFLAGS=$LDFLAGS + test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" + # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to + # check for ICE first), but we must link in the order -lSM -lICE or + # we get undefined symbols. So assume we have SM if we have ICE. + # These have to be linked with before -lX11, unlike the other + # libraries we check for below, so use a different variable. + # John Interrante, Karl Berry + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 +$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } +if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lICE $X_EXTRA_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char IceConnectionNumber (); +int +main () +{ +return IceConnectionNumber (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ICE_IceConnectionNumber=yes +else + ac_cv_lib_ICE_IceConnectionNumber=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 +$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } +if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : + X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" +fi + + LDFLAGS=$ac_save_LDFLAGS + +fi + + +if test "x$with_x" != "xno"; then +# AC_CHECK_LIB([X11],[main]) +# AC_CHECK_LIB([Xext],[main]) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeGetAllModeLines in -lXxf86vm" >&5 +$as_echo_n "checking for XF86VidModeGetAllModeLines in -lXxf86vm... " >&6; } +if ${ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lXxf86vm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char XF86VidModeGetAllModeLines (); +int +main () +{ +return XF86VidModeGetAllModeLines (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines=yes +else + ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines" >&5 +$as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines" >&6; } +if test "x$ac_cv_lib_Xxf86vm_XF86VidModeGetAllModeLines" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBXXF86VM 1 +_ACEOF + + LIBS="-lXxf86vm $LIBS" + +fi + +fi + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ax_pthread_ok=no + +# We used to check for pthread.h first, but this fails if pthread.h +# requires special compiler flags (e.g. on True64 or Sequent). +# It gets checked for in the link test anyway. + +# First of all, check if the user has set any of the PTHREAD_LIBS, +# etcetera environment variables, and if threads linking works using +# them: +if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS" >&5 +$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_join (); +int +main () +{ +return pthread_join (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test x"$ax_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" +fi + +# We must check for the threads library under a number of different +# names; the ordering is very important because some systems +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the +# libraries is broken (non-POSIX). + +# Create a list of thread flags to try. Items starting with a "-" are +# C compiler flags, and other items are library names, except for "none" +# which indicates that we try without any flags at all, and "pthread-config" +# which is a program returning the flags for the Pth emulation library. + +ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads +-mthreads pthread --thread-safe -mt pthread-config" + +# The ordering *is* (sometimes) important. Some notes on the +# individual items follow: + +# pthreads: AIX (must check this before -lpthread) +# none: in case threads are in libc; should be tried before -Kthread and +# other compiler flags to prevent continual compiler warnings +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) +# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) +# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) +# -pthreads: Solaris/gcc +# -mthreads: Mingw32/gcc, Lynx/gcc +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it +# doesn't hurt to check since this sometimes defines pthreads too; +# also defines -D_REENTRANT) +# ... -mt is also the pthreads flag for HP/aCC +# pthread: Linux, etcetera +# --thread-safe: KAI C++ +# pthread-config: use pthread-config program (for GNU Pth library) + +case "${host_cpu}-${host_os}" in + *solaris*) + + # On Solaris (at least, for some versions), libc contains stubbed + # (non-functional) versions of the pthreads routines, so link-based + # tests will erroneously succeed. (We need to link with -pthreads/-mt/ + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather + # a function called by this macro, so we could check for that, but + # who knows whether they'll stub that too in a future libc.) So, + # we'll just look for -pthreads and -lpthread first: + + ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" + ;; + + *-darwin*) + acx_pthread_flags="-pthread $acx_pthread_flags" + ;; +esac + +if test x"$ax_pthread_ok" = xno; then +for flag in $ax_pthread_flags; do + + case $flag in + none) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 +$as_echo_n "checking whether pthreads work without any flags... " >&6; } + ;; + + -*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 +$as_echo_n "checking whether pthreads work with $flag... " >&6; } + PTHREAD_CFLAGS="$flag" + ;; + + pthread-config) + # Extract the first word of "pthread-config", so it can be a program name with args. +set dummy pthread-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ax_pthread_config+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ax_pthread_config"; then + ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ax_pthread_config="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" +fi +fi +ax_pthread_config=$ac_cv_prog_ax_pthread_config +if test -n "$ax_pthread_config"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 +$as_echo "$ax_pthread_config" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test x"$ax_pthread_config" = xno; then continue; fi + PTHREAD_CFLAGS="`pthread-config --cflags`" + PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config +--libs`" + ;; + + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 +$as_echo_n "checking for the pthreads library -l$flag... " >&6; } + PTHREAD_LIBS="-l$flag" + ;; + esac + + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Check for various functions. We must include pthread.h, + # since some functions may be macros. (On the Sequent, we + # need a special flag -Kthread to make this header compile.) + # We check for pthread_join because it is in -lpthread on IRIX + # while pthread_create is in libc. We check for pthread_attr_init + # due to DEC craziness with -lpthreads. We check for + # pthread_cleanup_push because it is one of the few pthread + # functions on Solaris that doesn't have a non-functional libc stub. + # We try pthread_create on general principles. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + static void routine(void* a) {a=0;} + static void* start_routine(void* a) {return a;} +int +main () +{ +pthread_t th; pthread_attr_t attr; + pthread_join(th, 0); + pthread_attr_init(&attr); + pthread_cleanup_push(routine, 0); + pthread_create(&th,0,start_routine,0); + pthread_cleanup_pop(0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test "x$ax_pthread_ok" = xyes; then + break; + fi + + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" +done +fi + +# Various other checks: +if test "x$ax_pthread_ok" = xyes; then + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 +$as_echo_n "checking for joinable pthread attribute... " >&6; } + attr_name=unknown + for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int attr=$attr; return attr; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + attr_name=$attr; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + done + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 +$as_echo "$attr_name" >&6; } + if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then + +cat >>confdefs.h <<_ACEOF +#define PTHREAD_CREATE_JOINABLE $attr_name +_ACEOF + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 +$as_echo_n "checking if more special flags are required for pthreads... " >&6; } + flag=no + case "${host_cpu}-${host_os}" in + *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 +$as_echo "${flag}" >&6; } + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + # More AIX lossage: must compile with xlc_r or cc_r + if test x"$GCC" != xyes; then + for ac_prog in xlc_r cc_r +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_PTHREAD_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$PTHREAD_CC"; then + ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_PTHREAD_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +PTHREAD_CC=$ac_cv_prog_PTHREAD_CC +if test -n "$PTHREAD_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 +$as_echo "$PTHREAD_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$PTHREAD_CC" && break +done +test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" + + else + PTHREAD_CC=$CC + fi +else + PTHREAD_CC="$CC" +fi + + + + + +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: +if test x"$ax_pthread_ok" = xyes; then + +$as_echo "#define HAVE_PTHREADS 1" >>confdefs.h + + : +else + ax_pthread_ok=no + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 +$as_echo_n "checking for C compiler vendor... " >&6; } +if ${ax_cv_c_compiler_vendor+:} false; then : + $as_echo_n "(cached) " >&6 +else + # note: don't check for gcc first since some other compilers define __GNUC__ + vendors="intel: __ICC,__ECC,__INTEL_COMPILER + ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ + pathscale: __PATHCC__,__PATHSCALE__ + clang: __clang__ + gnu: __GNUC__ + sun: __SUNPRO_C,__SUNPRO_CC + hp: __HP_cc,__HP_aCC + dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER + borland: __BORLANDC__,__TURBOC__ + comeau: __COMO__ + cray: _CRAYC + kai: __KCC + lcc: __LCC__ + sgi: __sgi,sgi + microsoft: _MSC_VER + metrowerks: __MWERKS__ + watcom: __WATCOMC__ + portland: __PGI + unknown: UNKNOWN" + for ventest in $vendors; do + case $ventest in + *:) vendor=$ventest; continue ;; + *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; + esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + #if !($vencpp) + thisisanerror; + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done + ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 +$as_echo "$ax_cv_c_compiler_vendor" >&6; } + +if test X$ax_cv_c_compiler_vendor != Xmicrosoft; then : + GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm" +fi + +# +# Use x_includes and x_libraries if they have been set (presumably by +# AC_PATH_X). +# +if test "X$no_x" != "Xyes"; then : + if test -n "$x_includes"; then : + GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" +fi + if test -n "$x_libraries"; then : + GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" +fi +fi + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +for ac_header in GL/gl.h OpenGL/gl.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +CPPFLAGS="${ax_save_CPPFLAGS}" + +for ac_header in windows.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" +if test "x$ac_cv_header_windows_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WINDOWS_H 1 +_ACEOF + +fi + +done + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5 +$as_echo_n "checking for OpenGL library... " >&6; } +if ${ax_cv_check_gl_libgl+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_check_gl_libgl="no" +case $host_cpu in + x86_64) ax_check_gl_libdir=lib64 ;; + *) ax_check_gl_libdir=lib ;; +esac +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" +LIBS="" +ax_check_libs="-lopengl32 -lGL" +for ax_lib in ${ax_check_libs}; do + if test X$ax_compiler_ms = Xyes; then : + ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` +else + ax_try_lib="${ax_lib}" +fi + LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="${ax_try_lib}"; break +else + ax_check_gl_nvidia_flags="-L/usr/${ax_check_gl_libdir}/nvidia" LIBS="${ax_try_lib} ${ax_check_gl_nvidia_flags} ${GL_LIBS} ${ax_save_LIBS}" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break +else + ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' LIBS="${ax_try_lib} ${ax_check_gl_dylib_flag} ${GL_LIBS} ${ax_save_LIBS}" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +done + +if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then : + LIBS='-framework OpenGL' +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GL_H +# include +# elif defined(HAVE_OPENGL_GL_H) +# include +# else +# error no gl.h +# endif +int +main () +{ +glBegin(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_gl_libgl="$LIBS" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi + +LIBS=${ax_save_LIBS} +CPPFLAGS=${ax_save_CPPFLAGS} +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5 +$as_echo "$ax_cv_check_gl_libgl" >&6; } + +if test "X$ax_cv_check_gl_libgl" = Xno; then : + no_gl=yes; GL_CFLAGS=""; GL_LIBS="" +else + GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + + + + if test "x$no_gl" != "xyes"; then + HAVE_GL_TRUE= + HAVE_GL_FALSE='#' +else + HAVE_GL_TRUE='#' + HAVE_GL_FALSE= +fi + + +GLU_CFLAGS="${GL_CFLAGS}" + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +for ac_header in GL/glu.h OpenGL/glu.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +CPPFLAGS="${ax_save_CPPFLAGS}" + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5 +$as_echo_n "checking for OpenGL Utility library... " >&6; } +if ${ax_cv_check_glu_libglu+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_check_glu_libglu="no" +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" + +# +# First, check for the possibility that everything we need is already in +# GL_LIBS. +# +LIBS="${GL_LIBS} ${ax_save_LIBS}" +# +# libGLU typically links with libstdc++ on POSIX platforms. +# However, setting the language to C++ means that test program +# source is named "conftest.cc"; and Microsoft cl doesn't know what +# to do with such a file. +# +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +if test X$ax_compiler_ms = Xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLU_H +# include +# elif defined(HAVE_OPENGL_GLU_H) +# include +# else +# error no glu.h +# endif +int +main () +{ +gluBeginCurve(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glu_libglu=yes +else + LIBS="" +ax_check_libs="-lglu32 -lGLU" +for ax_lib in ${ax_check_libs}; do + if test X$ax_compiler_ms = Xyes; then : + ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` +else + ax_try_lib="${ax_lib}" +fi + LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if defined(HAVE_WINDOWS_H) && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLU_H +# include +# elif defined(HAVE_OPENGL_GLU_H) +# include +# else +# error no glu.h +# endif +int +main () +{ +gluBeginCurve(0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glu_libglu="${ax_try_lib}"; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +done + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test X$ax_compiler_ms = Xyes; then : + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +LIBS=${ax_save_LIBS} +CPPFLAGS=${ax_save_CPPFLAGS} +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5 +$as_echo "$ax_cv_check_glu_libglu" >&6; } +if test "X$ax_cv_check_glu_libglu" = Xno; then : + no_glu=yes; GLU_CFLAGS=""; GLU_LIBS="" +else + if test "X$ax_cv_check_glu_libglu" = Xyes; then : + GLU_LIBS="$GL_LIBS" +else + GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" +fi +fi + + + +# +# Some versions of Mac OS X include a broken interpretation of the GLU +# tesselation callback function signature. +# +if test "X$ax_cv_check_glu_libglu" != Xno; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5 +$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; } +if ${ax_cv_varargs_glu_tesscb+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_varargs_glu_tesscb=no +ax_save_CFLAGS="$CFLAGS" +CFLAGS="$GL_CFLAGS $CFLAGS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# ifdef HAVE_GL_GLU_H +# include +# else +# include +# endif +int +main () +{ +GLvoid (*func)(...); gluTessCallback(0, 0, func) + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ax_cv_varargs_glu_tesscb=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +CFLAGS="$ax_save_CFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5 +$as_echo "$ax_cv_varargs_glu_tesscb" >&6; } +if test X$ax_cv_varargs_glu_tesscb = Xyes; then : + +$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h + +fi +fi + + + if test "x$no_glu" != "xyes"; then + HAVE_GLU_TRUE= + HAVE_GLU_FALSE='#' +else + HAVE_GLU_TRUE='#' + HAVE_GLU_FALSE= +fi + + + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" +for ac_header in GL/glut.h GLUT/glut.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +CPPFLAGS="${ax_save_CPPFLAGS}" + +GLUT_CFLAGS=${GLU_CFLAGS} +GLUT_LIBS=${GLU_LIBS} + + + +# +# If X is present, assume GLUT depends on it. +# +if test X$no_x != Xyes; then : + GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5 +$as_echo_n "checking for GLUT library... " >&6; } +if ${ax_cv_check_glut_libglut+:} false; then : + $as_echo_n "(cached) " >&6 +else + ax_cv_check_glut_libglut="no" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ax_save_CPPFLAGS="${CPPFLAGS}" +CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" +ax_save_LIBS="${LIBS}" +LIBS="" +ax_check_libs="-lglut32 -lglut" +for ax_lib in ${ax_check_libs}; do + if test X$ax_compiler_ms = Xyes; then : + ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` +else + ax_try_lib="${ax_lib}" +fi + LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if HAVE_WINDOWS_H && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLUT_H +# include +# elif defined(HAVE_GLUT_GLUT_H) +# include +# else +# error no glut.h +# endif +int +main () +{ +glutMainLoop() + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glut_libglut="${ax_try_lib}"; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +done + +if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then : + LIBS='-framework GLUT' +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# if HAVE_WINDOWS_H && defined(_WIN32) +# include +# endif +# ifdef HAVE_GL_GLUT_H +# include +# elif defined(HAVE_GLUT_GLUT_H) +# include +# else +# error no glut.h +# endif +int +main () +{ +glutMainLoop() + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_check_glut_libglut="$LIBS" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi + +CPPFLAGS="${ax_save_CPPFLAGS}" +LIBS="${ax_save_LIBS}" +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5 +$as_echo "$ax_cv_check_glut_libglut" >&6; } + +if test "X$ax_cv_check_glut_libglut" = Xno; then : + no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS="" +else + GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" +fi + + + + + + if test "x$no_glut" != "xyes"; then + HAVE_GLUT_TRUE= + HAVE_GLUT_FALSE='#' +else + HAVE_GLUT_TRUE='#' + HAVE_GLUT_FALSE= +fi + + + +for ac_header in GL/glx.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default" +if test "x$ac_cv_header_GL_glx_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GL_GLX_H 1 +_ACEOF + +else + no_glx=yes +fi + +done + + if test "x$no_glx" != "xyes"; then + HAVE_GLX_TRUE= + HAVE_GLX_FALSE='#' +else + HAVE_GLX_TRUE='#' + HAVE_GLX_FALSE= +fi + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"AGL\"-framework" >&5 +$as_echo_n "checking for \"AGL\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework AGL ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +#define HAVE_AGL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GEM_FRAMEWORK_AGL 1 +_ACEOF + + GEM_FRAMEWORK_AGL="-framework AGL" + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_AGL_TRUE= + HAVE_FRAMEWORK_AGL_FALSE='#' +else + HAVE_FRAMEWORK_AGL_TRUE='#' + HAVE_FRAMEWORK_AGL_FALSE= +fi + + + +if test "x$gem_check_ldflags_success" != "xyes"; then + no_agl="yes" +fi +AGL_CFLAGS="" +AGL_LIBS="${GEM_FRAMEWORK_AGL}" + + + if test "x$no_agl" != "xyes"; then + HAVE_AGL_TRUE= + HAVE_AGL_FALSE='#' +else + HAVE_AGL_TRUE='#' + HAVE_AGL_FALSE= +fi + + + +## use system's libGLEW + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi + +fi + + + + + + + +# Check whether --with-glew was given. +if test "${with_glew+set}" = set; then : + withval=$with_glew; +fi + + +# Check whether --with-glew-includes was given. +if test "${with_glew_includes+set}" = set; then : + withval=$with_glew_includes; +fi + + +# Check whether --with-glew-libs was given. +if test "${with_glew_libs+set}" = set; then : + withval=$with_glew_libs; +fi + + + if test "x$with_glew" = "x"; then with_glew="no"; fi + + if test "x$with_ALL" = "xyes" && test "x$with_glew" = "x"; then with_glew="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_glew" = "x"; then with_glew="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_glew = "xno"; then + have_glew="no (forced)" +else + if test -d "$with_glew_includes"; then + CFLAGS="-I$with_glew_includes $CFLAGS" + CPPFLAGS="-I$with_glew_includes $CPPFLAGS" + CXXFLAGS="-I$with_glew_includes $CXXFLAGS" + fi + if test -d "$with_glew_libs"; then + LIBS="-L$with_glew_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_GLEW_glewInit) >/dev/null 2>&1 && unset ac_cv_lib_GLEW_glewInit + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GLEW_CFLAGS" >&5 +$as_echo_n "checking for PKG_GLEW_CFLAGS... " >&6; } +if ${pkg_cv_PKG_GLEW_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GLEW_CFLAGS_set" = "xset"; then + pkg_cv_PKG_GLEW_CFLAGS=$ac_cv_env_PKG_GLEW_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"glew\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "glew" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GLEW_CFLAGS=`$PKG_CONFIG --cflags "glew" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GLEW_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_GLEW_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GLEW_LIBS" >&5 +$as_echo_n "checking for PKG_GLEW_LIBS... " >&6; } +if ${pkg_cv_PKG_GLEW_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GLEW_LIBS_set" = "xset"; then + pkg_cv_PKG_GLEW_LIBS=$ac_cv_env_PKG_GLEW_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"glew\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "glew" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GLEW_LIBS=`$PKG_CONFIG --libs "glew" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GLEW_LIBS" >&5 +$as_echo "$pkg_cv_PKG_GLEW_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_GLEW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glew"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_GLEW_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_GLEW_CFLAGS=$pkg_cv_PKG_GLEW_CFLAGS + PKG_GLEW_LIBS=$pkg_cv_PKG_GLEW_LIBS + ac_cv_lib_GLEW_glewInit=yes +fi +if test "x${PKG_GLEW_CFLAGS}" != "x"; then + + for element in "${PKG_GLEW_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_GLEW_LIBS}" != "x"; then + PKG_LIBS="${PKG_GLEW_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_GLEW_glewInit" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glew-config" >&5 +$as_echo_n "checking for glew-config... " >&6; } + gem_check_lib_pkgconfig_GLEW="" + if test "xglew" != "x"; then + gem_check_lib_pkgconfig_GLEW="glew"-config + if which -- "$gem_check_lib_pkgconfig_GLEW" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_GLEW=`which "glew"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_GLEW="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_GLEW" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_GLEW_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_GLEW --cflags >/dev/null 2>&1; then + PKG_GLEW_CFLAGS=$(${gem_check_lib_pkgconfig_GLEW} --cflags) + PKG_CFLAGS="$PKG_GLEW_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_GLEW_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_GLEW --plugin-libs >/dev/null 2>&1; then + PKG_GLEW_LIBS=$(${gem_check_lib_pkgconfig_GLEW} --plugin-libs) + else + if $gem_check_lib_pkgconfig_GLEW --libs >/dev/null 2>&1; then + PKG_GLEW_LIBS=$(${gem_check_lib_pkgconfig_GLEW} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_GLEW_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glewInit in -lGLEW" >&5 +$as_echo_n "checking for glewInit in -lGLEW... " >&6; } +if ${ac_cv_lib_GLEW_glewInit+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lGLEW $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char glewInit (); +int +main () +{ +return glewInit (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_GLEW_glewInit=yes +else + ac_cv_lib_GLEW_glewInit=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLEW_glewInit" >&5 +$as_echo "$ac_cv_lib_GLEW_glewInit" >&6; } +if test "x$ac_cv_lib_GLEW_glewInit" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBGLEW 1 +_ACEOF + + LIBS="-lGLEW $LIBS" + +fi + + PKG_GLEW_LIBS="-lGLEW" + else + PKG_LIBS="${PKG_GLEW_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_GLEW_glewInit" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBGLEW 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBGLEW 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GLEWINIT 1 +_ACEOF + + GEM_LIB_GLEW_CFLAGS=${PKG_GLEW_CFLAGS} + GEM_LIB_GLEW_LIBS=${PKG_GLEW_LIBS} + have_glew="yes" + with_glew="no" + + +else + + have_glew="no" + + +fi + +fi + if test "x${have_glew}" = "xyes"; then + HAVE_LIB_GLEW_TRUE= + HAVE_LIB_GLEW_FALSE='#' +else + HAVE_LIB_GLEW_TRUE='#' + HAVE_LIB_GLEW_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +if test "x${have_glew}" != "xyes"; then + GEM_CPPFLAGS+=" -DGLEW_BUILD" +fi + + + + + + + + +# Check whether --with-sdl was given. +if test "${with_sdl+set}" = set; then : + withval=$with_sdl; +fi + + +# Check whether --with-sdl-includes was given. +if test "${with_sdl_includes+set}" = set; then : + withval=$with_sdl_includes; +fi + + +# Check whether --with-sdl-libs was given. +if test "${with_sdl_libs+set}" = set; then : + withval=$with_sdl_libs; +fi + + + if test "x$with_sdl" = "x"; then with_sdl="yes"; fi + + if test "x$with_ALL" = "xyes" && test "x$with_sdl" = "x"; then with_sdl="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_sdl" = "x"; then with_sdl="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_sdl = "xno"; then + have_sdl="no (forced)" +else + if test -d "$with_sdl_includes"; then + CFLAGS="-I$with_sdl_includes $CFLAGS" + CPPFLAGS="-I$with_sdl_includes $CPPFLAGS" + CXXFLAGS="-I$with_sdl_includes $CXXFLAGS" + fi + if test -d "$with_sdl_libs"; then + LIBS="-L$with_sdl_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_SDL_SDL_Quit) >/dev/null 2>&1 && unset ac_cv_lib_SDL_SDL_Quit + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_SDL_CFLAGS" >&5 +$as_echo_n "checking for PKG_SDL_CFLAGS... " >&6; } +if ${pkg_cv_PKG_SDL_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_SDL_CFLAGS_set" = "xset"; then + pkg_cv_PKG_SDL_CFLAGS=$ac_cv_env_PKG_SDL_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"sdl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "sdl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_SDL_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_SDL_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_SDL_LIBS" >&5 +$as_echo_n "checking for PKG_SDL_LIBS... " >&6; } +if ${pkg_cv_PKG_SDL_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_SDL_LIBS_set" = "xset"; then + pkg_cv_PKG_SDL_LIBS=$ac_cv_env_PKG_SDL_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"sdl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "sdl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_SDL_LIBS" >&5 +$as_echo "$pkg_cv_PKG_SDL_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_SDL_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_SDL_CFLAGS=$pkg_cv_PKG_SDL_CFLAGS + PKG_SDL_LIBS=$pkg_cv_PKG_SDL_LIBS + ac_cv_lib_SDL_SDL_Quit=yes +fi +if test "x${PKG_SDL_CFLAGS}" != "x"; then + + for element in "${PKG_SDL_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_SDL_LIBS}" != "x"; then + PKG_LIBS="${PKG_SDL_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_SDL_SDL_Quit" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl-config" >&5 +$as_echo_n "checking for sdl-config... " >&6; } + gem_check_lib_pkgconfig_SDL="" + if test "xsdl" != "x"; then + gem_check_lib_pkgconfig_SDL="sdl"-config + if which -- "$gem_check_lib_pkgconfig_SDL" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_SDL=`which "sdl"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_SDL="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_SDL" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_SDL_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_SDL --cflags >/dev/null 2>&1; then + PKG_SDL_CFLAGS=$(${gem_check_lib_pkgconfig_SDL} --cflags) + PKG_CFLAGS="$PKG_SDL_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_SDL_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_SDL --plugin-libs >/dev/null 2>&1; then + PKG_SDL_LIBS=$(${gem_check_lib_pkgconfig_SDL} --plugin-libs) + else + if $gem_check_lib_pkgconfig_SDL --libs >/dev/null 2>&1; then + PKG_SDL_LIBS=$(${gem_check_lib_pkgconfig_SDL} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_SDL_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Quit in -lSDL" >&5 +$as_echo_n "checking for SDL_Quit in -lSDL... " >&6; } +if ${ac_cv_lib_SDL_SDL_Quit+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lSDL $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SDL_Quit (); +int +main () +{ +return SDL_Quit (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_SDL_SDL_Quit=yes +else + ac_cv_lib_SDL_SDL_Quit=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Quit" >&5 +$as_echo "$ac_cv_lib_SDL_SDL_Quit" >&6; } +if test "x$ac_cv_lib_SDL_SDL_Quit" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBSDL 1 +_ACEOF + + LIBS="-lSDL $LIBS" + +fi + + PKG_SDL_LIBS="-lSDL" + else + PKG_LIBS="${PKG_SDL_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_SDL_SDL_Quit" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBSDL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBSDL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_SDL_QUIT 1 +_ACEOF + + GEM_LIB_SDL_CFLAGS=${PKG_SDL_CFLAGS} + GEM_LIB_SDL_LIBS=${PKG_SDL_LIBS} + have_sdl="yes" + with_sdl="no" + + +else + + have_sdl="no" + + +fi + +fi + if test "x${have_sdl}" = "xyes"; then + HAVE_LIB_SDL_TRUE= + HAVE_LIB_SDL_FALSE='#' +else + HAVE_LIB_SDL_TRUE='#' + HAVE_LIB_SDL_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +## http://wiki.fifengine.de/Segfault_in_cxa_allocate_exception#Workaround_.231 +### "-lstdc++" really has to be added before e.g. "-lGL" in order to avoid +### triggering the bug +### however, libtool is way to clever and eliminates duplicate LIBS entries. +### since "-lstdc++" is usually found in the postdeps, this would remove the +### entry found in LIBS; so we add it to the predeps_CXX (only) +stdcxx_LIBS=$LIBS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 +$as_echo_n "checking for main in -lstdc++... " >&6; } +if ${ac_cv_lib_stdcpp_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lstdc++ $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_stdcpp_main=yes +else + ac_cv_lib_stdcpp_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5 +$as_echo "$ac_cv_lib_stdcpp_main" >&6; } +if test "x$ac_cv_lib_stdcpp_main" = xyes; then : + predeps_CXX="$predeps_CXX -lstdc++" +fi + +LIBS=$stdcxx_LIBS + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"Cocoa\"-framework" >&5 +$as_echo_n "checking for \"Cocoa\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework Cocoa ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +#define HAVE_COCOA 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GEM_FRAMEWORK_COCOA 1 +_ACEOF + + GEM_FRAMEWORK_COCOA="-framework Cocoa" + have_cocoa_framework="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + have_cocoa_framework="no" + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_COCOA_TRUE= + HAVE_FRAMEWORK_COCOA_FALSE='#' +else + HAVE_FRAMEWORK_COCOA_TRUE='#' + HAVE_FRAMEWORK_COCOA_FALSE= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"Carbon\"-framework" >&5 +$as_echo_n "checking for \"Carbon\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework Carbon ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +#define HAVE_CARBON 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GEM_FRAMEWORK_CARBON 1 +_ACEOF + + GEM_FRAMEWORK_CARBON="-framework Carbon" + have_carbon_framework="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + have_carbon_framework="no" + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_CARBON_TRUE= + HAVE_FRAMEWORK_CARBON_FALSE='#' +else + HAVE_FRAMEWORK_CARBON_TRUE='#' + HAVE_FRAMEWORK_CARBON_FALSE= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"QuickTime\"-framework" >&5 +$as_echo_n "checking for \"QuickTime\"-framework... " >&6; } + + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="-framework QuickTime ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<_ACEOF +#define HAVE_QUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GEM_FRAMEWORK_QUICKTIME 1 +_ACEOF + + GEM_FRAMEWORK_QUICKTIME="-framework QuickTime" + have_quicktime_framework="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + have_quicktime_framework="no" + fi + if test "x$gem_check_ldflags_success" = "xyes"; then + HAVE_FRAMEWORK_QUICKTIME_TRUE= + HAVE_FRAMEWORK_QUICKTIME_FALSE='#' +else + HAVE_FRAMEWORK_QUICKTIME_TRUE='#' + HAVE_FRAMEWORK_QUICKTIME_FALSE= +fi + + + + + if test "x${have_carbon_framework}" = "xyes" && test "x${have_quicktime_framework}" = "xyes"; then + VIDEODARWIN_TRUE= + VIDEODARWIN_FALSE='#' +else + VIDEODARWIN_TRUE='#' + VIDEODARWIN_FALSE= +fi + + +#fallback to imagemagick if people are too lazy to type ImageMagick +if test "x$with_ImageMagick" = "x"; then + with_ImageMagick="$with_imagemagick" +fi +if test "x$with_MagickCore" = "x"; then + with_MagickCore="$with_ImageMagick" +fi + + + + + + + + +# Check whether --with-ImageMagick was given. +if test "${with_ImageMagick+set}" = set; then : + withval=$with_ImageMagick; +fi + + +# Check whether --with-ImageMagick-includes was given. +if test "${with_ImageMagick_includes+set}" = set; then : + withval=$with_ImageMagick_includes; +fi + + +# Check whether --with-ImageMagick-libs was given. +if test "${with_ImageMagick_libs+set}" = set; then : + withval=$with_ImageMagick_libs; +fi + + + if test "x$with_ImageMagick" = "x"; then with_ImageMagick=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_ImageMagick" = "x"; then with_ImageMagick="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_ImageMagick" = "x"; then with_ImageMagick="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_ImageMagick = "xno"; then + have_ImageMagick="no (forced)" +else + if test -d "$with_ImageMagick_includes"; then + CFLAGS="-I$with_ImageMagick_includes $CFLAGS" + CPPFLAGS="-I$with_ImageMagick_includes $CPPFLAGS" + CXXFLAGS="-I$with_ImageMagick_includes $CXXFLAGS" + fi + if test -d "$with_ImageMagick_libs"; then + LIBS="-L$with_ImageMagick_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_Magickpp_main) >/dev/null 2>&1 && unset ac_cv_lib_Magickpp_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_IMAGEMAGICK___CFLAGS" >&5 +$as_echo_n "checking for PKG_IMAGEMAGICK___CFLAGS... " >&6; } +if ${pkg_cv_PKG_IMAGEMAGICK___CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_IMAGEMAGICK___CFLAGS_set" = "xset"; then + pkg_cv_PKG_IMAGEMAGICK___CFLAGS=$ac_cv_env_PKG_IMAGEMAGICK___CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ImageMagick++\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ImageMagick++" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_IMAGEMAGICK___CFLAGS=`$PKG_CONFIG --cflags "ImageMagick++" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_IMAGEMAGICK___CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_IMAGEMAGICK___CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_IMAGEMAGICK___LIBS" >&5 +$as_echo_n "checking for PKG_IMAGEMAGICK___LIBS... " >&6; } +if ${pkg_cv_PKG_IMAGEMAGICK___LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_IMAGEMAGICK___LIBS_set" = "xset"; then + pkg_cv_PKG_IMAGEMAGICK___LIBS=$ac_cv_env_PKG_IMAGEMAGICK___LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ImageMagick++\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ImageMagick++" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_IMAGEMAGICK___LIBS=`$PKG_CONFIG --libs "ImageMagick++" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_IMAGEMAGICK___LIBS" >&5 +$as_echo "$pkg_cv_PKG_IMAGEMAGICK___LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_IMAGEMAGICK___PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ImageMagick++"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_IMAGEMAGICK___PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_IMAGEMAGICK___CFLAGS=$pkg_cv_PKG_IMAGEMAGICK___CFLAGS + PKG_IMAGEMAGICK___LIBS=$pkg_cv_PKG_IMAGEMAGICK___LIBS + ac_cv_lib_Magickpp_main=yes +fi +if test "x${PKG_IMAGEMAGICK___CFLAGS}" != "x"; then + + for element in "${PKG_IMAGEMAGICK___CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_IMAGEMAGICK___LIBS}" != "x"; then + PKG_LIBS="${PKG_IMAGEMAGICK___LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_Magickpp_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick++-config" >&5 +$as_echo_n "checking for ImageMagick++-config... " >&6; } + gem_check_lib_pkgconfig_IMAGEMAGICK__="" + if test "xImageMagick++" != "x"; then + gem_check_lib_pkgconfig_IMAGEMAGICK__="ImageMagick++"-config + if which -- "$gem_check_lib_pkgconfig_IMAGEMAGICK__" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_IMAGEMAGICK__=`which "ImageMagick++"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_IMAGEMAGICK__="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_IMAGEMAGICK__" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_IMAGEMAGICK___CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_IMAGEMAGICK__ --cflags >/dev/null 2>&1; then + PKG_IMAGEMAGICK___CFLAGS=$(${gem_check_lib_pkgconfig_IMAGEMAGICK__} --cflags) + PKG_CFLAGS="$PKG_IMAGEMAGICK___CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_IMAGEMAGICK___LIBS" = "x"; then + if $gem_check_lib_pkgconfig_IMAGEMAGICK__ --plugin-libs >/dev/null 2>&1; then + PKG_IMAGEMAGICK___LIBS=$(${gem_check_lib_pkgconfig_IMAGEMAGICK__} --plugin-libs) + else + if $gem_check_lib_pkgconfig_IMAGEMAGICK__ --libs >/dev/null 2>&1; then + PKG_IMAGEMAGICK___LIBS=$(${gem_check_lib_pkgconfig_IMAGEMAGICK__} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_IMAGEMAGICK___LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lMagick++" >&5 +$as_echo_n "checking for main in -lMagick++... " >&6; } +if ${ac_cv_lib_Magickpp_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lMagick++ $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_Magickpp_main=yes +else + ac_cv_lib_Magickpp_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Magickpp_main" >&5 +$as_echo "$ac_cv_lib_Magickpp_main" >&6; } +if test "x$ac_cv_lib_Magickpp_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBMAGICK__ 1 +_ACEOF + + LIBS="-lMagick++ $LIBS" + +fi + + PKG_IMAGEMAGICK___LIBS="-lMagick++" + else + PKG_LIBS="${PKG_IMAGEMAGICK___LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_Magickpp_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBIMAGEMAGICK__ 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBMAGICK__ 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_IMAGEMAGICK___CFLAGS=${PKG_IMAGEMAGICK___CFLAGS} + GEM_LIB_IMAGEMAGICK___LIBS=${PKG_IMAGEMAGICK___LIBS} + have_ImageMagick="yes" + with_ImageMagick="no" + +$as_echo "#define HAVE_LIBMAGICKPLUSPLUS 1" >>confdefs.h + + +else + + have_ImageMagick="no" + + +fi + +fi + if test "x${have_ImageMagick}" = "xyes"; then + HAVE_LIB_IMAGEMAGICK___TRUE= + HAVE_LIB_IMAGEMAGICK___FALSE='#' +else + HAVE_LIB_IMAGEMAGICK___TRUE='#' + HAVE_LIB_IMAGEMAGICK___FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + + +# Check whether --with-MagickCore was given. +if test "${with_MagickCore+set}" = set; then : + withval=$with_MagickCore; +fi + + +# Check whether --with-MagickCore-includes was given. +if test "${with_MagickCore_includes+set}" = set; then : + withval=$with_MagickCore_includes; +fi + + +# Check whether --with-MagickCore-libs was given. +if test "${with_MagickCore_libs+set}" = set; then : + withval=$with_MagickCore_libs; +fi + + + if test "x$with_MagickCore" = "x"; then with_MagickCore=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_MagickCore" = "x"; then with_MagickCore="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_MagickCore" = "x"; then with_MagickCore="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_MagickCore = "xno"; then + have_MagickCore="no (forced)" +else + if test -d "$with_MagickCore_includes"; then + CFLAGS="-I$with_MagickCore_includes $CFLAGS" + CPPFLAGS="-I$with_MagickCore_includes $CPPFLAGS" + CXXFLAGS="-I$with_MagickCore_includes $CXXFLAGS" + fi + if test -d "$with_MagickCore_libs"; then + LIBS="-L$with_MagickCore_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_Magick_main) >/dev/null 2>&1 && unset ac_cv_lib_Magick_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MAGICKCORE_CFLAGS" >&5 +$as_echo_n "checking for PKG_MAGICKCORE_CFLAGS... " >&6; } +if ${pkg_cv_PKG_MAGICKCORE_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MAGICKCORE_CFLAGS_set" = "xset"; then + pkg_cv_PKG_MAGICKCORE_CFLAGS=$ac_cv_env_PKG_MAGICKCORE_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"MagickCore\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "MagickCore" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MAGICKCORE_CFLAGS=`$PKG_CONFIG --cflags "MagickCore" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MAGICKCORE_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_MAGICKCORE_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MAGICKCORE_LIBS" >&5 +$as_echo_n "checking for PKG_MAGICKCORE_LIBS... " >&6; } +if ${pkg_cv_PKG_MAGICKCORE_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MAGICKCORE_LIBS_set" = "xset"; then + pkg_cv_PKG_MAGICKCORE_LIBS=$ac_cv_env_PKG_MAGICKCORE_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"MagickCore\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "MagickCore" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MAGICKCORE_LIBS=`$PKG_CONFIG --libs "MagickCore" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MAGICKCORE_LIBS" >&5 +$as_echo "$pkg_cv_PKG_MAGICKCORE_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_MAGICKCORE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "MagickCore"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_MAGICKCORE_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_MAGICKCORE_CFLAGS=$pkg_cv_PKG_MAGICKCORE_CFLAGS + PKG_MAGICKCORE_LIBS=$pkg_cv_PKG_MAGICKCORE_LIBS + ac_cv_lib_Magick_main=yes +fi +if test "x${PKG_MAGICKCORE_CFLAGS}" != "x"; then + + for element in "${PKG_MAGICKCORE_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_MAGICKCORE_LIBS}" != "x"; then + PKG_LIBS="${PKG_MAGICKCORE_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_Magick_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MagickCore-config" >&5 +$as_echo_n "checking for MagickCore-config... " >&6; } + gem_check_lib_pkgconfig_MAGICKCORE="" + if test "xMagickCore" != "x"; then + gem_check_lib_pkgconfig_MAGICKCORE="MagickCore"-config + if which -- "$gem_check_lib_pkgconfig_MAGICKCORE" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_MAGICKCORE=`which "MagickCore"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_MAGICKCORE="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_MAGICKCORE" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_MAGICKCORE_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_MAGICKCORE --cflags >/dev/null 2>&1; then + PKG_MAGICKCORE_CFLAGS=$(${gem_check_lib_pkgconfig_MAGICKCORE} --cflags) + PKG_CFLAGS="$PKG_MAGICKCORE_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_MAGICKCORE_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_MAGICKCORE --plugin-libs >/dev/null 2>&1; then + PKG_MAGICKCORE_LIBS=$(${gem_check_lib_pkgconfig_MAGICKCORE} --plugin-libs) + else + if $gem_check_lib_pkgconfig_MAGICKCORE --libs >/dev/null 2>&1; then + PKG_MAGICKCORE_LIBS=$(${gem_check_lib_pkgconfig_MAGICKCORE} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_MAGICKCORE_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lMagick" >&5 +$as_echo_n "checking for main in -lMagick... " >&6; } +if ${ac_cv_lib_Magick_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lMagick $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_Magick_main=yes +else + ac_cv_lib_Magick_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Magick_main" >&5 +$as_echo "$ac_cv_lib_Magick_main" >&6; } +if test "x$ac_cv_lib_Magick_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBMAGICK 1 +_ACEOF + + LIBS="-lMagick $LIBS" + +fi + + PKG_MAGICKCORE_LIBS="-lMagick" + else + PKG_LIBS="${PKG_MAGICKCORE_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_Magick_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBMAGICKCORE 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBMAGICK 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_MAGICKCORE_CFLAGS=${PKG_MAGICKCORE_CFLAGS} + GEM_LIB_MAGICKCORE_LIBS=${PKG_MAGICKCORE_LIBS} + have_MagickCore="yes" + with_MagickCore="no" + +$as_echo "#define HAVE_LIBMAGICK 1" >>confdefs.h + + +else + + have_MagickCore="no" + + +fi + +fi + if test "x${have_MagickCore}" = "xyes"; then + HAVE_LIB_MAGICKCORE_TRUE= + HAVE_LIB_MAGICKCORE_FALSE='#' +else + HAVE_LIB_MAGICKCORE_TRUE='#' + HAVE_LIB_MAGICKCORE_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +#if test "x${have_ImageMagick}" = "xyes" +#then +# with_tiff=no +# with_jpeg=no +#fi + + + + + + + +# Check whether --with-tiff was given. +if test "${with_tiff+set}" = set; then : + withval=$with_tiff; +fi + + +# Check whether --with-tiff-includes was given. +if test "${with_tiff_includes+set}" = set; then : + withval=$with_tiff_includes; +fi + + +# Check whether --with-tiff-libs was given. +if test "${with_tiff_libs+set}" = set; then : + withval=$with_tiff_libs; +fi + + + if test "x$with_tiff" = "x"; then with_tiff=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_tiff" = "x"; then with_tiff="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_tiff" = "x"; then with_tiff="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_tiff = "xno"; then + have_tiff="no (forced)" +else + if test -d "$with_tiff_includes"; then + CFLAGS="-I$with_tiff_includes $CFLAGS" + CPPFLAGS="-I$with_tiff_includes $CPPFLAGS" + CXXFLAGS="-I$with_tiff_includes $CXXFLAGS" + fi + if test -d "$with_tiff_libs"; then + LIBS="-L$with_tiff_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_tiff_TIFFOpen) >/dev/null 2>&1 && unset ac_cv_lib_tiff_TIFFOpen + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_TIFF_CFLAGS" >&5 +$as_echo_n "checking for PKG_TIFF_CFLAGS... " >&6; } +if ${pkg_cv_PKG_TIFF_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_TIFF_CFLAGS_set" = "xset"; then + pkg_cv_PKG_TIFF_CFLAGS=$ac_cv_env_PKG_TIFF_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"tiff\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "tiff" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_TIFF_CFLAGS=`$PKG_CONFIG --cflags "tiff" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_TIFF_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_TIFF_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_TIFF_LIBS" >&5 +$as_echo_n "checking for PKG_TIFF_LIBS... " >&6; } +if ${pkg_cv_PKG_TIFF_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_TIFF_LIBS_set" = "xset"; then + pkg_cv_PKG_TIFF_LIBS=$ac_cv_env_PKG_TIFF_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"tiff\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "tiff" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_TIFF_LIBS=`$PKG_CONFIG --libs "tiff" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_TIFF_LIBS" >&5 +$as_echo "$pkg_cv_PKG_TIFF_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_TIFF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tiff"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_TIFF_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_TIFF_CFLAGS=$pkg_cv_PKG_TIFF_CFLAGS + PKG_TIFF_LIBS=$pkg_cv_PKG_TIFF_LIBS + ac_cv_lib_tiff_TIFFOpen=yes +fi +if test "x${PKG_TIFF_CFLAGS}" != "x"; then + + for element in "${PKG_TIFF_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_TIFF_LIBS}" != "x"; then + PKG_LIBS="${PKG_TIFF_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_tiff_TIFFOpen" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tiff-config" >&5 +$as_echo_n "checking for tiff-config... " >&6; } + gem_check_lib_pkgconfig_TIFF="" + if test "xtiff" != "x"; then + gem_check_lib_pkgconfig_TIFF="tiff"-config + if which -- "$gem_check_lib_pkgconfig_TIFF" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_TIFF=`which "tiff"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_TIFF="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_TIFF" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_TIFF_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_TIFF --cflags >/dev/null 2>&1; then + PKG_TIFF_CFLAGS=$(${gem_check_lib_pkgconfig_TIFF} --cflags) + PKG_CFLAGS="$PKG_TIFF_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_TIFF_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_TIFF --plugin-libs >/dev/null 2>&1; then + PKG_TIFF_LIBS=$(${gem_check_lib_pkgconfig_TIFF} --plugin-libs) + else + if $gem_check_lib_pkgconfig_TIFF --libs >/dev/null 2>&1; then + PKG_TIFF_LIBS=$(${gem_check_lib_pkgconfig_TIFF} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_TIFF_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 +$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } +if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltiff $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char TIFFOpen (); +int +main () +{ +return TIFFOpen (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_tiff_TIFFOpen=yes +else + ac_cv_lib_tiff_TIFFOpen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 +$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } +if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBTIFF 1 +_ACEOF + + LIBS="-ltiff $LIBS" + +fi + + PKG_TIFF_LIBS="-ltiff" + else + PKG_LIBS="${PKG_TIFF_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_tiff_TIFFOpen" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBTIFF 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBTIFF 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_TIFFOPEN 1 +_ACEOF + + GEM_LIB_TIFF_CFLAGS=${PKG_TIFF_CFLAGS} + GEM_LIB_TIFF_LIBS=${PKG_TIFF_LIBS} + have_tiff="yes" + with_tiff="no" + + +else + + have_tiff="no" + + +fi + +fi + if test "x${have_tiff}" = "xyes"; then + HAVE_LIB_TIFF_TRUE= + HAVE_LIB_TIFF_FALSE='#' +else + HAVE_LIB_TIFF_TRUE='#' + HAVE_LIB_TIFF_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +# Check whether --with-jpeg was given. +if test "${with_jpeg+set}" = set; then : + withval=$with_jpeg; +fi + + +# Check whether --with-jpeg-includes was given. +if test "${with_jpeg_includes+set}" = set; then : + withval=$with_jpeg_includes; +fi + + +# Check whether --with-jpeg-libs was given. +if test "${with_jpeg_libs+set}" = set; then : + withval=$with_jpeg_libs; +fi + + + if test "x$with_jpeg" = "x"; then with_jpeg=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_jpeg" = "x"; then with_jpeg="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_jpeg" = "x"; then with_jpeg="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_jpeg = "xno"; then + have_jpeg="no (forced)" +else + if test -d "$with_jpeg_includes"; then + CFLAGS="-I$with_jpeg_includes $CFLAGS" + CPPFLAGS="-I$with_jpeg_includes $CPPFLAGS" + CXXFLAGS="-I$with_jpeg_includes $CXXFLAGS" + fi + if test -d "$with_jpeg_libs"; then + LIBS="-L$with_jpeg_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_jpeg_jpeg_read_header) >/dev/null 2>&1 && unset ac_cv_lib_jpeg_jpeg_read_header + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_JPEG_CFLAGS" >&5 +$as_echo_n "checking for PKG_JPEG_CFLAGS... " >&6; } +if ${pkg_cv_PKG_JPEG_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_JPEG_CFLAGS_set" = "xset"; then + pkg_cv_PKG_JPEG_CFLAGS=$ac_cv_env_PKG_JPEG_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"jpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "jpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_JPEG_CFLAGS=`$PKG_CONFIG --cflags "jpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_JPEG_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_JPEG_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_JPEG_LIBS" >&5 +$as_echo_n "checking for PKG_JPEG_LIBS... " >&6; } +if ${pkg_cv_PKG_JPEG_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_JPEG_LIBS_set" = "xset"; then + pkg_cv_PKG_JPEG_LIBS=$ac_cv_env_PKG_JPEG_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"jpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "jpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_JPEG_LIBS=`$PKG_CONFIG --libs "jpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_JPEG_LIBS" >&5 +$as_echo "$pkg_cv_PKG_JPEG_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_JPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jpeg"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_JPEG_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_JPEG_CFLAGS=$pkg_cv_PKG_JPEG_CFLAGS + PKG_JPEG_LIBS=$pkg_cv_PKG_JPEG_LIBS + ac_cv_lib_jpeg_jpeg_read_header=yes +fi +if test "x${PKG_JPEG_CFLAGS}" != "x"; then + + for element in "${PKG_JPEG_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_JPEG_LIBS}" != "x"; then + PKG_LIBS="${PKG_JPEG_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_jpeg_jpeg_read_header" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg-config" >&5 +$as_echo_n "checking for jpeg-config... " >&6; } + gem_check_lib_pkgconfig_JPEG="" + if test "xjpeg" != "x"; then + gem_check_lib_pkgconfig_JPEG="jpeg"-config + if which -- "$gem_check_lib_pkgconfig_JPEG" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_JPEG=`which "jpeg"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_JPEG="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_JPEG" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_JPEG_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_JPEG --cflags >/dev/null 2>&1; then + PKG_JPEG_CFLAGS=$(${gem_check_lib_pkgconfig_JPEG} --cflags) + PKG_CFLAGS="$PKG_JPEG_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_JPEG_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_JPEG --plugin-libs >/dev/null 2>&1; then + PKG_JPEG_LIBS=$(${gem_check_lib_pkgconfig_JPEG} --plugin-libs) + else + if $gem_check_lib_pkgconfig_JPEG --libs >/dev/null 2>&1; then + PKG_JPEG_LIBS=$(${gem_check_lib_pkgconfig_JPEG} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_JPEG_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 +$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } +if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ljpeg $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char jpeg_read_header (); +int +main () +{ +return jpeg_read_header (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_jpeg_jpeg_read_header=yes +else + ac_cv_lib_jpeg_jpeg_read_header=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 +$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } +if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBJPEG 1 +_ACEOF + + LIBS="-ljpeg $LIBS" + +fi + + PKG_JPEG_LIBS="-ljpeg" + else + PKG_LIBS="${PKG_JPEG_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_jpeg_jpeg_read_header" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBJPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBJPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_JPEG_READ_HEADER 1 +_ACEOF + + GEM_LIB_JPEG_CFLAGS=${PKG_JPEG_CFLAGS} + GEM_LIB_JPEG_LIBS=${PKG_JPEG_LIBS} + have_jpeg="yes" + with_jpeg="no" + + +else + + have_jpeg="no" + + +fi + +fi + if test "x${have_jpeg}" = "xyes"; then + HAVE_LIB_JPEG_TRUE= + HAVE_LIB_JPEG_FALSE='#' +else + HAVE_LIB_JPEG_TRUE='#' + HAVE_LIB_JPEG_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + + + + + +# Check whether --with-ftgl was given. +if test "${with_ftgl+set}" = set; then : + withval=$with_ftgl; +fi + + +# Check whether --with-ftgl-includes was given. +if test "${with_ftgl_includes+set}" = set; then : + withval=$with_ftgl_includes; +fi + + +# Check whether --with-ftgl-libs was given. +if test "${with_ftgl_libs+set}" = set; then : + withval=$with_ftgl_libs; +fi + + + if test "x$with_ftgl" = "x"; then with_ftgl=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_ftgl" = "x"; then with_ftgl="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_ftgl" = "x"; then with_ftgl="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_ftgl = "xno"; then + have_ftgl="no (forced)" +else + if test -d "$with_ftgl_includes"; then + CFLAGS="-I$with_ftgl_includes $CFLAGS" + CPPFLAGS="-I$with_ftgl_includes $CPPFLAGS" + CXXFLAGS="-I$with_ftgl_includes $CXXFLAGS" + fi + if test -d "$with_ftgl_libs"; then + LIBS="-L$with_ftgl_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_ftgl_main) >/dev/null 2>&1 && unset ac_cv_lib_ftgl_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FTGL_CFLAGS" >&5 +$as_echo_n "checking for PKG_FTGL_CFLAGS... " >&6; } +if ${pkg_cv_PKG_FTGL_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FTGL_CFLAGS_set" = "xset"; then + pkg_cv_PKG_FTGL_CFLAGS=$ac_cv_env_PKG_FTGL_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ftgl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ftgl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FTGL_CFLAGS=`$PKG_CONFIG --cflags "ftgl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FTGL_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_FTGL_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FTGL_LIBS" >&5 +$as_echo_n "checking for PKG_FTGL_LIBS... " >&6; } +if ${pkg_cv_PKG_FTGL_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FTGL_LIBS_set" = "xset"; then + pkg_cv_PKG_FTGL_LIBS=$ac_cv_env_PKG_FTGL_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"ftgl\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "ftgl" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FTGL_LIBS=`$PKG_CONFIG --libs "ftgl" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FTGL_LIBS" >&5 +$as_echo "$pkg_cv_PKG_FTGL_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_FTGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ftgl"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_FTGL_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_FTGL_CFLAGS=$pkg_cv_PKG_FTGL_CFLAGS + PKG_FTGL_LIBS=$pkg_cv_PKG_FTGL_LIBS + ac_cv_lib_ftgl_main=yes +fi +if test "x${PKG_FTGL_CFLAGS}" != "x"; then + + for element in "${PKG_FTGL_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_FTGL_LIBS}" != "x"; then + PKG_LIBS="${PKG_FTGL_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_ftgl_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftgl-config" >&5 +$as_echo_n "checking for ftgl-config... " >&6; } + gem_check_lib_pkgconfig_FTGL="" + if test "xftgl" != "x"; then + gem_check_lib_pkgconfig_FTGL="ftgl"-config + if which -- "$gem_check_lib_pkgconfig_FTGL" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_FTGL=`which "ftgl"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_FTGL="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_FTGL" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_FTGL_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_FTGL --cflags >/dev/null 2>&1; then + PKG_FTGL_CFLAGS=$(${gem_check_lib_pkgconfig_FTGL} --cflags) + PKG_CFLAGS="$PKG_FTGL_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_FTGL_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_FTGL --plugin-libs >/dev/null 2>&1; then + PKG_FTGL_LIBS=$(${gem_check_lib_pkgconfig_FTGL} --plugin-libs) + else + if $gem_check_lib_pkgconfig_FTGL --libs >/dev/null 2>&1; then + PKG_FTGL_LIBS=$(${gem_check_lib_pkgconfig_FTGL} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_FTGL_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lftgl" >&5 +$as_echo_n "checking for main in -lftgl... " >&6; } +if ${ac_cv_lib_ftgl_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lftgl -lfreetype $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_ftgl_main=yes +else + ac_cv_lib_ftgl_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftgl_main" >&5 +$as_echo "$ac_cv_lib_ftgl_main" >&6; } +if test "x$ac_cv_lib_ftgl_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBFTGL 1 +_ACEOF + + LIBS="-lftgl $LIBS" + +fi + + PKG_FTGL_LIBS="-lftgl" + else + PKG_LIBS="${PKG_FTGL_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_ftgl_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBFTGL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBFTGL 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_FTGL_CFLAGS=${PKG_FTGL_CFLAGS} + GEM_LIB_FTGL_LIBS=${PKG_FTGL_LIBS} + have_ftgl="yes" + with_ftgl="no" + + +else + + have_ftgl="no" + + +fi + +fi + if test "x${have_ftgl}" = "xyes"; then + HAVE_LIB_FTGL_TRUE= + HAVE_LIB_FTGL_FALSE='#' +else + HAVE_LIB_FTGL_TRUE='#' + HAVE_LIB_FTGL_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +tmp_gem_check_ftgl_cflags="$CFLAGS" +tmp_gem_check_ftgl_cxxflags="$CXXFLAGS" + +CFLAGS="$CFLAGS $GEM_LIB_FTGL_CFLAGS" +CXXFLAGS="$CXXFLAGS $GEM_LIB_FTGL_CFLAGS" +for ac_header in FTGL/ftgl.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "FTGL/ftgl.h" "ac_cv_header_FTGL_ftgl_h" "$ac_includes_default" +if test "x$ac_cv_header_FTGL_ftgl_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_FTGL_FTGL_H 1 +_ACEOF + +fi + +done + + +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" + + + + + + + + +# Check whether --with-fribidi was given. +if test "${with_fribidi+set}" = set; then : + withval=$with_fribidi; +fi + + +# Check whether --with-fribidi-includes was given. +if test "${with_fribidi_includes+set}" = set; then : + withval=$with_fribidi_includes; +fi + + +# Check whether --with-fribidi-libs was given. +if test "${with_fribidi_libs+set}" = set; then : + withval=$with_fribidi_libs; +fi + + + if test "x$with_fribidi" = "x"; then with_fribidi=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_fribidi" = "x"; then with_fribidi="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_fribidi" = "x"; then with_fribidi="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_fribidi = "xno"; then + have_fribidi="no (forced)" +else + if test -d "$with_fribidi_includes"; then + CFLAGS="-I$with_fribidi_includes $CFLAGS" + CPPFLAGS="-I$with_fribidi_includes $CPPFLAGS" + CXXFLAGS="-I$with_fribidi_includes $CXXFLAGS" + fi + if test -d "$with_fribidi_libs"; then + LIBS="-L$with_fribidi_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_fribidi_fribidi_log2vis) >/dev/null 2>&1 && unset ac_cv_lib_fribidi_fribidi_log2vis + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FRIBIDI_CFLAGS" >&5 +$as_echo_n "checking for PKG_FRIBIDI_CFLAGS... " >&6; } +if ${pkg_cv_PKG_FRIBIDI_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FRIBIDI_CFLAGS_set" = "xset"; then + pkg_cv_PKG_FRIBIDI_CFLAGS=$ac_cv_env_PKG_FRIBIDI_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"fribidi\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "fribidi" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FRIBIDI_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_FRIBIDI_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_FRIBIDI_LIBS" >&5 +$as_echo_n "checking for PKG_FRIBIDI_LIBS... " >&6; } +if ${pkg_cv_PKG_FRIBIDI_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_FRIBIDI_LIBS_set" = "xset"; then + pkg_cv_PKG_FRIBIDI_LIBS=$ac_cv_env_PKG_FRIBIDI_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"fribidi\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "fribidi" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_FRIBIDI_LIBS" >&5 +$as_echo "$pkg_cv_PKG_FRIBIDI_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fribidi"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_FRIBIDI_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_FRIBIDI_CFLAGS=$pkg_cv_PKG_FRIBIDI_CFLAGS + PKG_FRIBIDI_LIBS=$pkg_cv_PKG_FRIBIDI_LIBS + ac_cv_lib_fribidi_fribidi_log2vis=yes +fi +if test "x${PKG_FRIBIDI_CFLAGS}" != "x"; then + + for element in "${PKG_FRIBIDI_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_FRIBIDI_LIBS}" != "x"; then + PKG_LIBS="${PKG_FRIBIDI_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_fribidi_fribidi_log2vis" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fribidi-config" >&5 +$as_echo_n "checking for fribidi-config... " >&6; } + gem_check_lib_pkgconfig_FRIBIDI="" + if test "xfribidi" != "x"; then + gem_check_lib_pkgconfig_FRIBIDI="fribidi"-config + if which -- "$gem_check_lib_pkgconfig_FRIBIDI" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_FRIBIDI=`which "fribidi"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_FRIBIDI="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_FRIBIDI" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_FRIBIDI_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_FRIBIDI --cflags >/dev/null 2>&1; then + PKG_FRIBIDI_CFLAGS=$(${gem_check_lib_pkgconfig_FRIBIDI} --cflags) + PKG_CFLAGS="$PKG_FRIBIDI_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_FRIBIDI_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_FRIBIDI --plugin-libs >/dev/null 2>&1; then + PKG_FRIBIDI_LIBS=$(${gem_check_lib_pkgconfig_FRIBIDI} --plugin-libs) + else + if $gem_check_lib_pkgconfig_FRIBIDI --libs >/dev/null 2>&1; then + PKG_FRIBIDI_LIBS=$(${gem_check_lib_pkgconfig_FRIBIDI} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_FRIBIDI_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fribidi_log2vis in -lfribidi" >&5 +$as_echo_n "checking for fribidi_log2vis in -lfribidi... " >&6; } +if ${ac_cv_lib_fribidi_fribidi_log2vis+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lfribidi $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char fribidi_log2vis (); +int +main () +{ +return fribidi_log2vis (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_fribidi_fribidi_log2vis=yes +else + ac_cv_lib_fribidi_fribidi_log2vis=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fribidi_fribidi_log2vis" >&5 +$as_echo "$ac_cv_lib_fribidi_fribidi_log2vis" >&6; } +if test "x$ac_cv_lib_fribidi_fribidi_log2vis" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBFRIBIDI 1 +_ACEOF + + LIBS="-lfribidi $LIBS" + +fi + + PKG_FRIBIDI_LIBS="-lfribidi" + else + PKG_LIBS="${PKG_FRIBIDI_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_fribidi_fribidi_log2vis" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBFRIBIDI 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBFRIBIDI 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_FRIBIDI_LOG2VIS 1 +_ACEOF + + GEM_LIB_FRIBIDI_CFLAGS=${PKG_FRIBIDI_CFLAGS} + GEM_LIB_FRIBIDI_LIBS=${PKG_FRIBIDI_LIBS} + have_fribidi="yes" + with_fribidi="no" + + +else + + have_fribidi="no" + + +fi + +fi + if test "x${have_fribidi}" = "xyes"; then + HAVE_LIB_FRIBIDI_TRUE= + HAVE_LIB_FRIBIDI_FALSE='#' +else + HAVE_LIB_FRIBIDI_TRUE='#' + HAVE_LIB_FRIBIDI_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +## film en/decoders + + + + + + + +# Check whether --with-avifile was given. +if test "${with_avifile+set}" = set; then : + withval=$with_avifile; +fi + + +# Check whether --with-avifile-includes was given. +if test "${with_avifile_includes+set}" = set; then : + withval=$with_avifile_includes; +fi + + +# Check whether --with-avifile-libs was given. +if test "${with_avifile_libs+set}" = set; then : + withval=$with_avifile_libs; +fi + + + if test "x$with_avifile" = "x"; then with_avifile=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_avifile" = "x"; then with_avifile="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_avifile" = "x"; then with_avifile="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_avifile = "xno"; then + have_avifile="no (forced)" +else + if test -d "$with_avifile_includes"; then + CFLAGS="-I$with_avifile_includes $CFLAGS" + CPPFLAGS="-I$with_avifile_includes $CPPFLAGS" + CXXFLAGS="-I$with_avifile_includes $CXXFLAGS" + fi + if test -d "$with_avifile_libs"; then + LIBS="-L$with_avifile_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_aviplay_CreateIAviReadFile) >/dev/null 2>&1 && unset ac_cv_lib_aviplay_CreateIAviReadFile + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_AVIFILE_CFLAGS" >&5 +$as_echo_n "checking for PKG_AVIFILE_CFLAGS... " >&6; } +if ${pkg_cv_PKG_AVIFILE_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_AVIFILE_CFLAGS_set" = "xset"; then + pkg_cv_PKG_AVIFILE_CFLAGS=$ac_cv_env_PKG_AVIFILE_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"avifile\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "avifile" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_AVIFILE_CFLAGS=`$PKG_CONFIG --cflags "avifile" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_AVIFILE_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_AVIFILE_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_AVIFILE_LIBS" >&5 +$as_echo_n "checking for PKG_AVIFILE_LIBS... " >&6; } +if ${pkg_cv_PKG_AVIFILE_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_AVIFILE_LIBS_set" = "xset"; then + pkg_cv_PKG_AVIFILE_LIBS=$ac_cv_env_PKG_AVIFILE_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"avifile\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "avifile" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_AVIFILE_LIBS=`$PKG_CONFIG --libs "avifile" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_AVIFILE_LIBS" >&5 +$as_echo "$pkg_cv_PKG_AVIFILE_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_AVIFILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "avifile"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_AVIFILE_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_AVIFILE_CFLAGS=$pkg_cv_PKG_AVIFILE_CFLAGS + PKG_AVIFILE_LIBS=$pkg_cv_PKG_AVIFILE_LIBS + ac_cv_lib_aviplay_CreateIAviReadFile=yes +fi +if test "x${PKG_AVIFILE_CFLAGS}" != "x"; then + + for element in "${PKG_AVIFILE_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_AVIFILE_LIBS}" != "x"; then + PKG_LIBS="${PKG_AVIFILE_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_aviplay_CreateIAviReadFile" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avifile-config" >&5 +$as_echo_n "checking for avifile-config... " >&6; } + gem_check_lib_pkgconfig_AVIFILE="" + if test "xavifile" != "x"; then + gem_check_lib_pkgconfig_AVIFILE="avifile"-config + if which -- "$gem_check_lib_pkgconfig_AVIFILE" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_AVIFILE=`which "avifile"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_AVIFILE="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_AVIFILE" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_AVIFILE_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_AVIFILE --cflags >/dev/null 2>&1; then + PKG_AVIFILE_CFLAGS=$(${gem_check_lib_pkgconfig_AVIFILE} --cflags) + PKG_CFLAGS="$PKG_AVIFILE_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_AVIFILE_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_AVIFILE --plugin-libs >/dev/null 2>&1; then + PKG_AVIFILE_LIBS=$(${gem_check_lib_pkgconfig_AVIFILE} --plugin-libs) + else + if $gem_check_lib_pkgconfig_AVIFILE --libs >/dev/null 2>&1; then + PKG_AVIFILE_LIBS=$(${gem_check_lib_pkgconfig_AVIFILE} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_AVIFILE_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateIAviReadFile in -laviplay" >&5 +$as_echo_n "checking for CreateIAviReadFile in -laviplay... " >&6; } +if ${ac_cv_lib_aviplay_CreateIAviReadFile+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-laviplay $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char CreateIAviReadFile (); +int +main () +{ +return CreateIAviReadFile (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_aviplay_CreateIAviReadFile=yes +else + ac_cv_lib_aviplay_CreateIAviReadFile=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aviplay_CreateIAviReadFile" >&5 +$as_echo "$ac_cv_lib_aviplay_CreateIAviReadFile" >&6; } +if test "x$ac_cv_lib_aviplay_CreateIAviReadFile" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBAVIPLAY 1 +_ACEOF + + LIBS="-laviplay $LIBS" + +fi + + PKG_AVIFILE_LIBS="-laviplay" + else + PKG_LIBS="${PKG_AVIFILE_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_aviplay_CreateIAviReadFile" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBAVIFILE 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBAVIPLAY 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_CREATEIAVIREADFILE 1 +_ACEOF + + GEM_LIB_AVIFILE_CFLAGS=${PKG_AVIFILE_CFLAGS} + GEM_LIB_AVIFILE_LIBS=${PKG_AVIFILE_LIBS} + have_avifile="yes" + with_avifile="no" + + +else + + have_avifile="no" + + +fi + +fi + if test "x${have_avifile}" = "xyes"; then + HAVE_LIB_AVIFILE_TRUE= + HAVE_LIB_AVIFILE_FALSE='#' +else + HAVE_LIB_AVIFILE_TRUE='#' + HAVE_LIB_AVIFILE_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +# Check whether --with-gmerlin_avdec was given. +if test "${with_gmerlin_avdec+set}" = set; then : + withval=$with_gmerlin_avdec; +fi + + +# Check whether --with-gmerlin_avdec-includes was given. +if test "${with_gmerlin_avdec_includes+set}" = set; then : + withval=$with_gmerlin_avdec_includes; +fi + + +# Check whether --with-gmerlin_avdec-libs was given. +if test "${with_gmerlin_avdec_libs+set}" = set; then : + withval=$with_gmerlin_avdec_libs; +fi + + + if test "x$with_gmerlin_avdec" = "x"; then with_gmerlin_avdec=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_gmerlin_avdec" = "x"; then with_gmerlin_avdec="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_gmerlin_avdec" = "x"; then with_gmerlin_avdec="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_gmerlin_avdec = "xno"; then + have_gmerlin_avdec="no (forced)" +else + if test -d "$with_gmerlin_avdec_includes"; then + CFLAGS="-I$with_gmerlin_avdec_includes $CFLAGS" + CPPFLAGS="-I$with_gmerlin_avdec_includes $CPPFLAGS" + CXXFLAGS="-I$with_gmerlin_avdec_includes $CXXFLAGS" + fi + if test -d "$with_gmerlin_avdec_libs"; then + LIBS="-L$with_gmerlin_avdec_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_gmerlin_avdec_gavl_start) >/dev/null 2>&1 && unset ac_cv_lib_gmerlin_avdec_gavl_start + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GMERLIN_AVDEC_CFLAGS" >&5 +$as_echo_n "checking for PKG_GMERLIN_AVDEC_CFLAGS... " >&6; } +if ${pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GMERLIN_AVDEC_CFLAGS_set" = "xset"; then + pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS=$ac_cv_env_PKG_GMERLIN_AVDEC_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"gmerlin_avdec\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "gmerlin_avdec" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS=`$PKG_CONFIG --cflags "gmerlin_avdec" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_GMERLIN_AVDEC_LIBS" >&5 +$as_echo_n "checking for PKG_GMERLIN_AVDEC_LIBS... " >&6; } +if ${pkg_cv_PKG_GMERLIN_AVDEC_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_GMERLIN_AVDEC_LIBS_set" = "xset"; then + pkg_cv_PKG_GMERLIN_AVDEC_LIBS=$ac_cv_env_PKG_GMERLIN_AVDEC_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"gmerlin_avdec\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "gmerlin_avdec" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_GMERLIN_AVDEC_LIBS=`$PKG_CONFIG --libs "gmerlin_avdec" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_GMERLIN_AVDEC_LIBS" >&5 +$as_echo "$pkg_cv_PKG_GMERLIN_AVDEC_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_GMERLIN_AVDEC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gmerlin_avdec"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_GMERLIN_AVDEC_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_GMERLIN_AVDEC_CFLAGS=$pkg_cv_PKG_GMERLIN_AVDEC_CFLAGS + PKG_GMERLIN_AVDEC_LIBS=$pkg_cv_PKG_GMERLIN_AVDEC_LIBS + ac_cv_lib_gmerlin_avdec_gavl_start=yes +fi +if test "x${PKG_GMERLIN_AVDEC_CFLAGS}" != "x"; then + + for element in "${PKG_GMERLIN_AVDEC_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_GMERLIN_AVDEC_LIBS}" != "x"; then + PKG_LIBS="${PKG_GMERLIN_AVDEC_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_gmerlin_avdec_gavl_start" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmerlin_avdec-config" >&5 +$as_echo_n "checking for gmerlin_avdec-config... " >&6; } + gem_check_lib_pkgconfig_GMERLIN_AVDEC="" + if test "xgmerlin_avdec" != "x"; then + gem_check_lib_pkgconfig_GMERLIN_AVDEC="gmerlin_avdec"-config + if which -- "$gem_check_lib_pkgconfig_GMERLIN_AVDEC" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_GMERLIN_AVDEC=`which "gmerlin_avdec"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_GMERLIN_AVDEC="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_GMERLIN_AVDEC" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_GMERLIN_AVDEC_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_GMERLIN_AVDEC --cflags >/dev/null 2>&1; then + PKG_GMERLIN_AVDEC_CFLAGS=$(${gem_check_lib_pkgconfig_GMERLIN_AVDEC} --cflags) + PKG_CFLAGS="$PKG_GMERLIN_AVDEC_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_GMERLIN_AVDEC_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_GMERLIN_AVDEC --plugin-libs >/dev/null 2>&1; then + PKG_GMERLIN_AVDEC_LIBS=$(${gem_check_lib_pkgconfig_GMERLIN_AVDEC} --plugin-libs) + else + if $gem_check_lib_pkgconfig_GMERLIN_AVDEC --libs >/dev/null 2>&1; then + PKG_GMERLIN_AVDEC_LIBS=$(${gem_check_lib_pkgconfig_GMERLIN_AVDEC} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_GMERLIN_AVDEC_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gavl_start in -lgmerlin_avdec" >&5 +$as_echo_n "checking for gavl_start in -lgmerlin_avdec... " >&6; } +if ${ac_cv_lib_gmerlin_avdec_gavl_start+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgmerlin_avdec $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gavl_start (); +int +main () +{ +return gavl_start (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_gmerlin_avdec_gavl_start=yes +else + ac_cv_lib_gmerlin_avdec_gavl_start=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmerlin_avdec_gavl_start" >&5 +$as_echo "$ac_cv_lib_gmerlin_avdec_gavl_start" >&6; } +if test "x$ac_cv_lib_gmerlin_avdec_gavl_start" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBGMERLIN_AVDEC 1 +_ACEOF + + LIBS="-lgmerlin_avdec $LIBS" + +fi + + PKG_GMERLIN_AVDEC_LIBS="-lgmerlin_avdec" + else + PKG_LIBS="${PKG_GMERLIN_AVDEC_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_gmerlin_avdec_gavl_start" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBGMERLIN_AVDEC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBGMERLIN_AVDEC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GAVL_START 1 +_ACEOF + + GEM_LIB_GMERLIN_AVDEC_CFLAGS=${PKG_GMERLIN_AVDEC_CFLAGS} + GEM_LIB_GMERLIN_AVDEC_LIBS=${PKG_GMERLIN_AVDEC_LIBS} + have_gmerlin_avdec="yes" + with_gmerlin_avdec="no" + + +else + + have_gmerlin_avdec="no" + + +fi + +fi + if test "x${have_gmerlin_avdec}" = "xyes"; then + HAVE_LIB_GMERLIN_AVDEC_TRUE= + HAVE_LIB_GMERLIN_AVDEC_FALSE='#' +else + HAVE_LIB_GMERLIN_AVDEC_TRUE='#' + HAVE_LIB_GMERLIN_AVDEC_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +# Check whether --with-mpeg was given. +if test "${with_mpeg+set}" = set; then : + withval=$with_mpeg; +fi + + +# Check whether --with-mpeg-includes was given. +if test "${with_mpeg_includes+set}" = set; then : + withval=$with_mpeg_includes; +fi + + +# Check whether --with-mpeg-libs was given. +if test "${with_mpeg_libs+set}" = set; then : + withval=$with_mpeg_libs; +fi + + + if test "x$with_mpeg" = "x"; then with_mpeg=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_mpeg" = "x"; then with_mpeg="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_mpeg" = "x"; then with_mpeg="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_mpeg = "xno"; then + have_mpeg="no (forced)" +else + if test -d "$with_mpeg_includes"; then + CFLAGS="-I$with_mpeg_includes $CFLAGS" + CPPFLAGS="-I$with_mpeg_includes $CPPFLAGS" + CXXFLAGS="-I$with_mpeg_includes $CXXFLAGS" + fi + if test -d "$with_mpeg_libs"; then + LIBS="-L$with_mpeg_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_mpeg_OpenMPEG) >/dev/null 2>&1 && unset ac_cv_lib_mpeg_OpenMPEG + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MPEG_CFLAGS" >&5 +$as_echo_n "checking for PKG_MPEG_CFLAGS... " >&6; } +if ${pkg_cv_PKG_MPEG_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MPEG_CFLAGS_set" = "xset"; then + pkg_cv_PKG_MPEG_CFLAGS=$ac_cv_env_PKG_MPEG_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"mpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "mpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MPEG_CFLAGS=`$PKG_CONFIG --cflags "mpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MPEG_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_MPEG_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_MPEG_LIBS" >&5 +$as_echo_n "checking for PKG_MPEG_LIBS... " >&6; } +if ${pkg_cv_PKG_MPEG_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_MPEG_LIBS_set" = "xset"; then + pkg_cv_PKG_MPEG_LIBS=$ac_cv_env_PKG_MPEG_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"mpeg\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "mpeg" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_MPEG_LIBS=`$PKG_CONFIG --libs "mpeg" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_MPEG_LIBS" >&5 +$as_echo "$pkg_cv_PKG_MPEG_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_MPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mpeg"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_MPEG_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_MPEG_CFLAGS=$pkg_cv_PKG_MPEG_CFLAGS + PKG_MPEG_LIBS=$pkg_cv_PKG_MPEG_LIBS + ac_cv_lib_mpeg_OpenMPEG=yes +fi +if test "x${PKG_MPEG_CFLAGS}" != "x"; then + + for element in "${PKG_MPEG_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_MPEG_LIBS}" != "x"; then + PKG_LIBS="${PKG_MPEG_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_mpeg_OpenMPEG" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpeg-config" >&5 +$as_echo_n "checking for mpeg-config... " >&6; } + gem_check_lib_pkgconfig_MPEG="" + if test "xmpeg" != "x"; then + gem_check_lib_pkgconfig_MPEG="mpeg"-config + if which -- "$gem_check_lib_pkgconfig_MPEG" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_MPEG=`which "mpeg"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_MPEG="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_MPEG" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_MPEG_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_MPEG --cflags >/dev/null 2>&1; then + PKG_MPEG_CFLAGS=$(${gem_check_lib_pkgconfig_MPEG} --cflags) + PKG_CFLAGS="$PKG_MPEG_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_MPEG_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_MPEG --plugin-libs >/dev/null 2>&1; then + PKG_MPEG_LIBS=$(${gem_check_lib_pkgconfig_MPEG} --plugin-libs) + else + if $gem_check_lib_pkgconfig_MPEG --libs >/dev/null 2>&1; then + PKG_MPEG_LIBS=$(${gem_check_lib_pkgconfig_MPEG} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_MPEG_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMPEG in -lmpeg" >&5 +$as_echo_n "checking for OpenMPEG in -lmpeg... " >&6; } +if ${ac_cv_lib_mpeg_OpenMPEG+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmpeg $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OpenMPEG (); +int +main () +{ +return OpenMPEG (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_mpeg_OpenMPEG=yes +else + ac_cv_lib_mpeg_OpenMPEG=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpeg_OpenMPEG" >&5 +$as_echo "$ac_cv_lib_mpeg_OpenMPEG" >&6; } +if test "x$ac_cv_lib_mpeg_OpenMPEG" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBMPEG 1 +_ACEOF + + LIBS="-lmpeg $LIBS" + +fi + + PKG_MPEG_LIBS="-lmpeg" + else + PKG_LIBS="${PKG_MPEG_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_mpeg_OpenMPEG" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBMPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBMPEG 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_OPENMPEG 1 +_ACEOF + + GEM_LIB_MPEG_CFLAGS=${PKG_MPEG_CFLAGS} + GEM_LIB_MPEG_LIBS=${PKG_MPEG_LIBS} + have_mpeg="yes" + with_mpeg="no" + + +else + + have_mpeg="no" + + +fi + +fi + if test "x${have_mpeg}" = "xyes"; then + HAVE_LIB_MPEG_TRUE= + HAVE_LIB_MPEG_FALSE='#' +else + HAVE_LIB_MPEG_TRUE='#' + HAVE_LIB_MPEG_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +# Check whether --with-libmpeg3 was given. +if test "${with_libmpeg3+set}" = set; then : + withval=$with_libmpeg3; +fi + + +# Check whether --with-libmpeg3-includes was given. +if test "${with_libmpeg3_includes+set}" = set; then : + withval=$with_libmpeg3_includes; +fi + + +# Check whether --with-libmpeg3-libs was given. +if test "${with_libmpeg3_libs+set}" = set; then : + withval=$with_libmpeg3_libs; +fi + + + if test "x$with_libmpeg3" = "x"; then with_libmpeg3=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libmpeg3" = "x"; then with_libmpeg3="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libmpeg3" = "x"; then with_libmpeg3="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libmpeg3 = "xno"; then + have_libmpeg3="no (forced)" +else + if test -d "$with_libmpeg3_includes"; then + CFLAGS="-I$with_libmpeg3_includes $CFLAGS" + CPPFLAGS="-I$with_libmpeg3_includes $CPPFLAGS" + CXXFLAGS="-I$with_libmpeg3_includes $CXXFLAGS" + fi + if test -d "$with_libmpeg3_libs"; then + LIBS="-L$with_libmpeg3_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_mpeg3_mpeg3_check_sig) >/dev/null 2>&1 && unset ac_cv_lib_mpeg3_mpeg3_check_sig + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBMPEG3_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBMPEG3_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBMPEG3_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBMPEG3_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBMPEG3_CFLAGS=$ac_cv_env_PKG_LIBMPEG3_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libmpeg3\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libmpeg3" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBMPEG3_CFLAGS=`$PKG_CONFIG --cflags "libmpeg3" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBMPEG3_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBMPEG3_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBMPEG3_LIBS" >&5 +$as_echo_n "checking for PKG_LIBMPEG3_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBMPEG3_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBMPEG3_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBMPEG3_LIBS=$ac_cv_env_PKG_LIBMPEG3_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libmpeg3\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libmpeg3" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBMPEG3_LIBS=`$PKG_CONFIG --libs "libmpeg3" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBMPEG3_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBMPEG3_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBMPEG3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmpeg3"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBMPEG3_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBMPEG3_CFLAGS=$pkg_cv_PKG_LIBMPEG3_CFLAGS + PKG_LIBMPEG3_LIBS=$pkg_cv_PKG_LIBMPEG3_LIBS + ac_cv_lib_mpeg3_mpeg3_check_sig=yes +fi +if test "x${PKG_LIBMPEG3_CFLAGS}" != "x"; then + + for element in "${PKG_LIBMPEG3_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBMPEG3_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBMPEG3_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_mpeg3_mpeg3_check_sig" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpeg3-config" >&5 +$as_echo_n "checking for libmpeg3-config... " >&6; } + gem_check_lib_pkgconfig_LIBMPEG3="" + if test "xlibmpeg3" != "x"; then + gem_check_lib_pkgconfig_LIBMPEG3="libmpeg3"-config + if which -- "$gem_check_lib_pkgconfig_LIBMPEG3" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBMPEG3=`which "libmpeg3"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBMPEG3="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBMPEG3" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBMPEG3_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBMPEG3 --cflags >/dev/null 2>&1; then + PKG_LIBMPEG3_CFLAGS=$(${gem_check_lib_pkgconfig_LIBMPEG3} --cflags) + PKG_CFLAGS="$PKG_LIBMPEG3_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBMPEG3_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBMPEG3 --plugin-libs >/dev/null 2>&1; then + PKG_LIBMPEG3_LIBS=$(${gem_check_lib_pkgconfig_LIBMPEG3} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBMPEG3 --libs >/dev/null 2>&1; then + PKG_LIBMPEG3_LIBS=$(${gem_check_lib_pkgconfig_LIBMPEG3} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBMPEG3_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpeg3_check_sig in -lmpeg3" >&5 +$as_echo_n "checking for mpeg3_check_sig in -lmpeg3... " >&6; } +if ${ac_cv_lib_mpeg3_mpeg3_check_sig+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmpeg3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mpeg3_check_sig (); +int +main () +{ +return mpeg3_check_sig (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_mpeg3_mpeg3_check_sig=yes +else + ac_cv_lib_mpeg3_mpeg3_check_sig=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpeg3_mpeg3_check_sig" >&5 +$as_echo "$ac_cv_lib_mpeg3_mpeg3_check_sig" >&6; } +if test "x$ac_cv_lib_mpeg3_mpeg3_check_sig" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBMPEG3 1 +_ACEOF + + LIBS="-lmpeg3 $LIBS" + +fi + + PKG_LIBMPEG3_LIBS="-lmpeg3" + else + PKG_LIBS="${PKG_LIBMPEG3_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_mpeg3_mpeg3_check_sig" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLIBMPEG3 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBMPEG3 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_MPEG3_CHECK_SIG 1 +_ACEOF + + GEM_LIB_LIBMPEG3_CFLAGS=${PKG_LIBMPEG3_CFLAGS} + GEM_LIB_LIBMPEG3_LIBS=${PKG_LIBMPEG3_LIBS} + have_libmpeg3="yes" + with_libmpeg3="no" + + +else + + have_libmpeg3="no" + + +fi + +fi + if test "x${have_libmpeg3}" = "xyes"; then + HAVE_LIB_LIBMPEG3_TRUE= + HAVE_LIB_LIBMPEG3_FALSE='#' +else + HAVE_LIB_LIBMPEG3_TRUE='#' + HAVE_LIB_LIBMPEG3_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +# Check whether --with-libquicktime was given. +if test "${with_libquicktime+set}" = set; then : + withval=$with_libquicktime; +fi + + +# Check whether --with-libquicktime-includes was given. +if test "${with_libquicktime_includes+set}" = set; then : + withval=$with_libquicktime_includes; +fi + + +# Check whether --with-libquicktime-libs was given. +if test "${with_libquicktime_libs+set}" = set; then : + withval=$with_libquicktime_libs; +fi + + + if test "x$with_libquicktime" = "x"; then with_libquicktime=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libquicktime" = "x"; then with_libquicktime="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libquicktime" = "x"; then with_libquicktime="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libquicktime = "xno"; then + have_libquicktime="no (forced)" +else + if test -d "$with_libquicktime_includes"; then + CFLAGS="-I$with_libquicktime_includes $CFLAGS" + CPPFLAGS="-I$with_libquicktime_includes $CPPFLAGS" + CXXFLAGS="-I$with_libquicktime_includes $CXXFLAGS" + fi + if test -d "$with_libquicktime_libs"; then + LIBS="-L$with_libquicktime_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_quicktime_quicktime_init) >/dev/null 2>&1 && unset ac_cv_lib_quicktime_quicktime_init + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBQUICKTIME_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBQUICKTIME_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBQUICKTIME_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBQUICKTIME_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBQUICKTIME_CFLAGS=$ac_cv_env_PKG_LIBQUICKTIME_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libquicktime\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libquicktime" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBQUICKTIME_CFLAGS=`$PKG_CONFIG --cflags "libquicktime" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBQUICKTIME_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBQUICKTIME_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBQUICKTIME_LIBS" >&5 +$as_echo_n "checking for PKG_LIBQUICKTIME_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBQUICKTIME_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBQUICKTIME_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBQUICKTIME_LIBS=$ac_cv_env_PKG_LIBQUICKTIME_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libquicktime\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libquicktime" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBQUICKTIME_LIBS=`$PKG_CONFIG --libs "libquicktime" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBQUICKTIME_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBQUICKTIME_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBQUICKTIME_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libquicktime"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBQUICKTIME_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBQUICKTIME_CFLAGS=$pkg_cv_PKG_LIBQUICKTIME_CFLAGS + PKG_LIBQUICKTIME_LIBS=$pkg_cv_PKG_LIBQUICKTIME_LIBS + ac_cv_lib_quicktime_quicktime_init=yes +fi +if test "x${PKG_LIBQUICKTIME_CFLAGS}" != "x"; then + + for element in "${PKG_LIBQUICKTIME_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBQUICKTIME_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBQUICKTIME_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libquicktime-config" >&5 +$as_echo_n "checking for libquicktime-config... " >&6; } + gem_check_lib_pkgconfig_LIBQUICKTIME="" + if test "xlibquicktime" != "x"; then + gem_check_lib_pkgconfig_LIBQUICKTIME="libquicktime"-config + if which -- "$gem_check_lib_pkgconfig_LIBQUICKTIME" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBQUICKTIME=`which "libquicktime"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBQUICKTIME="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBQUICKTIME" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBQUICKTIME_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBQUICKTIME --cflags >/dev/null 2>&1; then + PKG_LIBQUICKTIME_CFLAGS=$(${gem_check_lib_pkgconfig_LIBQUICKTIME} --cflags) + PKG_CFLAGS="$PKG_LIBQUICKTIME_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBQUICKTIME_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBQUICKTIME --plugin-libs >/dev/null 2>&1; then + PKG_LIBQUICKTIME_LIBS=$(${gem_check_lib_pkgconfig_LIBQUICKTIME} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBQUICKTIME --libs >/dev/null 2>&1; then + PKG_LIBQUICKTIME_LIBS=$(${gem_check_lib_pkgconfig_LIBQUICKTIME} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBQUICKTIME_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quicktime_init in -lquicktime" >&5 +$as_echo_n "checking for quicktime_init in -lquicktime... " >&6; } +if ${ac_cv_lib_quicktime_quicktime_init+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lquicktime $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char quicktime_init (); +int +main () +{ +return quicktime_init (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_quicktime_quicktime_init=yes +else + ac_cv_lib_quicktime_quicktime_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quicktime_quicktime_init" >&5 +$as_echo "$ac_cv_lib_quicktime_quicktime_init" >&6; } +if test "x$ac_cv_lib_quicktime_quicktime_init" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBQUICKTIME 1 +_ACEOF + + LIBS="-lquicktime $LIBS" + +fi + + PKG_LIBQUICKTIME_LIBS="-lquicktime" + else + PKG_LIBS="${PKG_LIBQUICKTIME_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLIBQUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBQUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_QUICKTIME_INIT 1 +_ACEOF + + GEM_LIB_LIBQUICKTIME_CFLAGS=${PKG_LIBQUICKTIME_CFLAGS} + GEM_LIB_LIBQUICKTIME_LIBS=${PKG_LIBQUICKTIME_LIBS} + have_libquicktime="yes" + with_libquicktime="no" + + +else + + have_libquicktime="no" + + +fi + +fi + if test "x${have_libquicktime}" = "xyes"; then + HAVE_LIB_LIBQUICKTIME_TRUE= + HAVE_LIB_LIBQUICKTIME_FALSE='#' +else + HAVE_LIB_LIBQUICKTIME_TRUE='#' + HAVE_LIB_LIBQUICKTIME_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +# Check whether --with-lqt was given. +if test "${with_lqt+set}" = set; then : + withval=$with_lqt; +fi + + +# Check whether --with-lqt-includes was given. +if test "${with_lqt_includes+set}" = set; then : + withval=$with_lqt_includes; +fi + + +# Check whether --with-lqt-libs was given. +if test "${with_lqt_libs+set}" = set; then : + withval=$with_lqt_libs; +fi + + + if test "x$with_lqt" = "x"; then with_lqt=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_lqt" = "x"; then with_lqt="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_lqt" = "x"; then with_lqt="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_lqt = "xno"; then + have_lqt="no (forced)" +else + if test -d "$with_lqt_includes"; then + CFLAGS="-I$with_lqt_includes $CFLAGS" + CPPFLAGS="-I$with_lqt_includes $CPPFLAGS" + CXXFLAGS="-I$with_lqt_includes $CXXFLAGS" + fi + if test -d "$with_lqt_libs"; then + LIBS="-L$with_lqt_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_quicktime_quicktime_init) >/dev/null 2>&1 && unset ac_cv_lib_quicktime_quicktime_init + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LQT_CFLAGS" >&5 +$as_echo_n "checking for PKG_LQT_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LQT_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LQT_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LQT_CFLAGS=$ac_cv_env_PKG_LQT_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"lqt\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "lqt" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LQT_CFLAGS=`$PKG_CONFIG --cflags "lqt" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LQT_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LQT_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LQT_LIBS" >&5 +$as_echo_n "checking for PKG_LQT_LIBS... " >&6; } +if ${pkg_cv_PKG_LQT_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LQT_LIBS_set" = "xset"; then + pkg_cv_PKG_LQT_LIBS=$ac_cv_env_PKG_LQT_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"lqt\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "lqt" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LQT_LIBS=`$PKG_CONFIG --libs "lqt" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LQT_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LQT_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LQT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lqt"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LQT_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LQT_CFLAGS=$pkg_cv_PKG_LQT_CFLAGS + PKG_LQT_LIBS=$pkg_cv_PKG_LQT_LIBS + ac_cv_lib_quicktime_quicktime_init=yes +fi +if test "x${PKG_LQT_CFLAGS}" != "x"; then + + for element in "${PKG_LQT_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LQT_LIBS}" != "x"; then + PKG_LIBS="${PKG_LQT_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lqt-config" >&5 +$as_echo_n "checking for lqt-config... " >&6; } + gem_check_lib_pkgconfig_LQT="" + if test "xlqt" != "x"; then + gem_check_lib_pkgconfig_LQT="lqt"-config + if which -- "$gem_check_lib_pkgconfig_LQT" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LQT=`which "lqt"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LQT="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LQT" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LQT_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LQT --cflags >/dev/null 2>&1; then + PKG_LQT_CFLAGS=$(${gem_check_lib_pkgconfig_LQT} --cflags) + PKG_CFLAGS="$PKG_LQT_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LQT_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LQT --plugin-libs >/dev/null 2>&1; then + PKG_LQT_LIBS=$(${gem_check_lib_pkgconfig_LQT} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LQT --libs >/dev/null 2>&1; then + PKG_LQT_LIBS=$(${gem_check_lib_pkgconfig_LQT} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LQT_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quicktime_init in -lquicktime" >&5 +$as_echo_n "checking for quicktime_init in -lquicktime... " >&6; } +if ${ac_cv_lib_quicktime_quicktime_init+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lquicktime $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char quicktime_init (); +int +main () +{ +return quicktime_init (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_quicktime_quicktime_init=yes +else + ac_cv_lib_quicktime_quicktime_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quicktime_quicktime_init" >&5 +$as_echo "$ac_cv_lib_quicktime_quicktime_init" >&6; } +if test "x$ac_cv_lib_quicktime_quicktime_init" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBQUICKTIME 1 +_ACEOF + + LIBS="-lquicktime $LIBS" + +fi + + PKG_LQT_LIBS="-lquicktime" + else + PKG_LIBS="${PKG_LQT_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_quicktime_quicktime_init" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLQT 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBQUICKTIME 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_QUICKTIME_INIT 1 +_ACEOF + + GEM_LIB_LQT_CFLAGS=${PKG_LQT_CFLAGS} + GEM_LIB_LQT_LIBS=${PKG_LQT_LIBS} + have_lqt="yes" + with_lqt="no" + + +else + + have_lqt="no" + + +fi + +fi + if test "x${have_lqt}" = "xyes"; then + HAVE_LIB_LQT_TRUE= + HAVE_LIB_LQT_FALSE='#' +else + HAVE_LIB_LQT_TRUE='#' + HAVE_LIB_LQT_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +# special function in libquicktime +old_cflags=${CFLAGS} +old_ldflags=${LDFLAGS} +CFLAGS="${CFLAGS} $GEM_LIB_LIBQUICKTIME_CFLAGS $GEM_LIB_LQT_CFLAGS" +LDFLAGS="${LDFLAGS} $GEM_LIB_LIBQUICKTIME_LIBS $GEM_LIB_LQT_LIBS" +for ac_func in lqt_seek_video +do : + ac_fn_cxx_check_func "$LINENO" "lqt_seek_video" "ac_cv_func_lqt_seek_video" +if test "x$ac_cv_func_lqt_seek_video" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LQT_SEEK_VIDEO 1 +_ACEOF + +fi +done + +for ac_func in lqt_open_write +do : + ac_fn_cxx_check_func "$LINENO" "lqt_open_write" "ac_cv_func_lqt_open_write" +if test "x$ac_cv_func_lqt_open_write" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LQT_OPEN_WRITE 1 +_ACEOF + +fi +done + +CFLAGS=${old_cflags} +LDFLAGS=${old_ldflags} + +#video + + + + + + + +# Check whether --with-libdc1394_2 was given. +if test "${with_libdc1394_2+set}" = set; then : + withval=$with_libdc1394_2; +fi + + +# Check whether --with-libdc1394_2-includes was given. +if test "${with_libdc1394_2_includes+set}" = set; then : + withval=$with_libdc1394_2_includes; +fi + + +# Check whether --with-libdc1394_2-libs was given. +if test "${with_libdc1394_2_libs+set}" = set; then : + withval=$with_libdc1394_2_libs; +fi + + + if test "x$with_libdc1394_2" = "x"; then with_libdc1394_2=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libdc1394_2" = "x"; then with_libdc1394_2="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libdc1394_2" = "x"; then with_libdc1394_2="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libdc1394_2 = "xno"; then + have_libdc1394_2="no (forced)" +else + if test -d "$with_libdc1394_2_includes"; then + CFLAGS="-I$with_libdc1394_2_includes $CFLAGS" + CPPFLAGS="-I$with_libdc1394_2_includes $CPPFLAGS" + CXXFLAGS="-I$with_libdc1394_2_includes $CXXFLAGS" + fi + if test -d "$with_libdc1394_2_libs"; then + LIBS="-L$with_libdc1394_2_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_dc1394_main) >/dev/null 2>&1 && unset ac_cv_lib_dc1394_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDC1394_2_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBDC1394_2_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBDC1394_2_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDC1394_2_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBDC1394_2_CFLAGS=$ac_cv_env_PKG_LIBDC1394_2_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdc1394-2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdc1394-2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDC1394_2_CFLAGS=`$PKG_CONFIG --cflags "libdc1394-2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDC1394_2_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBDC1394_2_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDC1394_2_LIBS" >&5 +$as_echo_n "checking for PKG_LIBDC1394_2_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBDC1394_2_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDC1394_2_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBDC1394_2_LIBS=$ac_cv_env_PKG_LIBDC1394_2_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdc1394-2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdc1394-2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDC1394_2_LIBS=`$PKG_CONFIG --libs "libdc1394-2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDC1394_2_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBDC1394_2_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBDC1394_2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdc1394-2"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBDC1394_2_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBDC1394_2_CFLAGS=$pkg_cv_PKG_LIBDC1394_2_CFLAGS + PKG_LIBDC1394_2_LIBS=$pkg_cv_PKG_LIBDC1394_2_LIBS + ac_cv_lib_dc1394_main=yes +fi +if test "x${PKG_LIBDC1394_2_CFLAGS}" != "x"; then + + for element in "${PKG_LIBDC1394_2_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBDC1394_2_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBDC1394_2_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_dc1394_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdc1394-2-config" >&5 +$as_echo_n "checking for libdc1394-2-config... " >&6; } + gem_check_lib_pkgconfig_LIBDC1394_2="" + if test "xlibdc1394-2" != "x"; then + gem_check_lib_pkgconfig_LIBDC1394_2="libdc1394-2"-config + if which -- "$gem_check_lib_pkgconfig_LIBDC1394_2" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBDC1394_2=`which "libdc1394-2"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBDC1394_2="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBDC1394_2" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBDC1394_2_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDC1394_2 --cflags >/dev/null 2>&1; then + PKG_LIBDC1394_2_CFLAGS=$(${gem_check_lib_pkgconfig_LIBDC1394_2} --cflags) + PKG_CFLAGS="$PKG_LIBDC1394_2_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBDC1394_2_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDC1394_2 --plugin-libs >/dev/null 2>&1; then + PKG_LIBDC1394_2_LIBS=$(${gem_check_lib_pkgconfig_LIBDC1394_2} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBDC1394_2 --libs >/dev/null 2>&1; then + PKG_LIBDC1394_2_LIBS=$(${gem_check_lib_pkgconfig_LIBDC1394_2} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBDC1394_2_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldc1394" >&5 +$as_echo_n "checking for main in -ldc1394... " >&6; } +if ${ac_cv_lib_dc1394_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldc1394 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dc1394_main=yes +else + ac_cv_lib_dc1394_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dc1394_main" >&5 +$as_echo "$ac_cv_lib_dc1394_main" >&6; } +if test "x$ac_cv_lib_dc1394_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBDC1394 1 +_ACEOF + + LIBS="-ldc1394 $LIBS" + +fi + + PKG_LIBDC1394_2_LIBS="-ldc1394" + else + PKG_LIBS="${PKG_LIBDC1394_2_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_dc1394_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLIBDC1394_2 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBDC1394 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBDC1394_2_CFLAGS=${PKG_LIBDC1394_2_CFLAGS} + GEM_LIB_LIBDC1394_2_LIBS=${PKG_LIBDC1394_2_LIBS} + have_libdc1394_2="yes" + with_libdc1394_2="no" + + +else + + have_libdc1394_2="no" + + +fi + +fi + if test "x${have_libdc1394_2}" = "xyes"; then + HAVE_LIB_LIBDC1394_2_TRUE= + HAVE_LIB_LIBDC1394_2_FALSE='#' +else + HAVE_LIB_LIBDC1394_2_TRUE='#' + HAVE_LIB_LIBDC1394_2_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +# Check whether --with-libdv was given. +if test "${with_libdv+set}" = set; then : + withval=$with_libdv; +fi + + +# Check whether --with-libdv-includes was given. +if test "${with_libdv_includes+set}" = set; then : + withval=$with_libdv_includes; +fi + + +# Check whether --with-libdv-libs was given. +if test "${with_libdv_libs+set}" = set; then : + withval=$with_libdv_libs; +fi + + + if test "x$with_libdv" = "x"; then with_libdv=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libdv" = "x"; then with_libdv="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libdv" = "x"; then with_libdv="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libdv = "xno"; then + have_libdv="no (forced)" +else + if test -d "$with_libdv_includes"; then + CFLAGS="-I$with_libdv_includes $CFLAGS" + CPPFLAGS="-I$with_libdv_includes $CPPFLAGS" + CXXFLAGS="-I$with_libdv_includes $CXXFLAGS" + fi + if test -d "$with_libdv_libs"; then + LIBS="-L$with_libdv_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_dv_main) >/dev/null 2>&1 && unset ac_cv_lib_dv_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDV_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBDV_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBDV_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDV_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBDV_CFLAGS=$ac_cv_env_PKG_LIBDV_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdv\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdv" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDV_CFLAGS=`$PKG_CONFIG --cflags "libdv" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDV_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBDV_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBDV_LIBS" >&5 +$as_echo_n "checking for PKG_LIBDV_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBDV_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBDV_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBDV_LIBS=$ac_cv_env_PKG_LIBDV_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libdv\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libdv" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBDV_LIBS=`$PKG_CONFIG --libs "libdv" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBDV_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBDV_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBDV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdv"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBDV_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBDV_CFLAGS=$pkg_cv_PKG_LIBDV_CFLAGS + PKG_LIBDV_LIBS=$pkg_cv_PKG_LIBDV_LIBS + ac_cv_lib_dv_main=yes +fi +if test "x${PKG_LIBDV_CFLAGS}" != "x"; then + + for element in "${PKG_LIBDV_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBDV_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBDV_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_dv_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdv-config" >&5 +$as_echo_n "checking for libdv-config... " >&6; } + gem_check_lib_pkgconfig_LIBDV="" + if test "xlibdv" != "x"; then + gem_check_lib_pkgconfig_LIBDV="libdv"-config + if which -- "$gem_check_lib_pkgconfig_LIBDV" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBDV=`which "libdv"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBDV="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBDV" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBDV_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDV --cflags >/dev/null 2>&1; then + PKG_LIBDV_CFLAGS=$(${gem_check_lib_pkgconfig_LIBDV} --cflags) + PKG_CFLAGS="$PKG_LIBDV_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBDV_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBDV --plugin-libs >/dev/null 2>&1; then + PKG_LIBDV_LIBS=$(${gem_check_lib_pkgconfig_LIBDV} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBDV --libs >/dev/null 2>&1; then + PKG_LIBDV_LIBS=$(${gem_check_lib_pkgconfig_LIBDV} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBDV_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldv" >&5 +$as_echo_n "checking for main in -ldv... " >&6; } +if ${ac_cv_lib_dv_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_dv_main=yes +else + ac_cv_lib_dv_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dv_main" >&5 +$as_echo "$ac_cv_lib_dv_main" >&6; } +if test "x$ac_cv_lib_dv_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBDV 1 +_ACEOF + + LIBS="-ldv $LIBS" + +fi + + PKG_LIBDV_LIBS="-ldv" + else + PKG_LIBS="${PKG_LIBDV_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_dv_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLIBDV 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBDV 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBDV_CFLAGS=${PKG_LIBDV_CFLAGS} + GEM_LIB_LIBDV_LIBS=${PKG_LIBDV_LIBS} + have_libdv="yes" + with_libdv="no" + + +else + + have_libdv="no" + + +fi + +fi + if test "x${have_libdv}" = "xyes"; then + HAVE_LIB_LIBDV_TRUE= + HAVE_LIB_LIBDV_FALSE='#' +else + HAVE_LIB_LIBDV_TRUE='#' + HAVE_LIB_LIBDV_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +# Check whether --with-libraw1394 was given. +if test "${with_libraw1394+set}" = set; then : + withval=$with_libraw1394; +fi + + +# Check whether --with-libraw1394-includes was given. +if test "${with_libraw1394_includes+set}" = set; then : + withval=$with_libraw1394_includes; +fi + + +# Check whether --with-libraw1394-libs was given. +if test "${with_libraw1394_libs+set}" = set; then : + withval=$with_libraw1394_libs; +fi + + + if test "x$with_libraw1394" = "x"; then with_libraw1394=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libraw1394" = "x"; then with_libraw1394="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libraw1394" = "x"; then with_libraw1394="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libraw1394 = "xno"; then + have_libraw1394="no (forced)" +else + if test -d "$with_libraw1394_includes"; then + CFLAGS="-I$with_libraw1394_includes $CFLAGS" + CPPFLAGS="-I$with_libraw1394_includes $CPPFLAGS" + CXXFLAGS="-I$with_libraw1394_includes $CXXFLAGS" + fi + if test -d "$with_libraw1394_libs"; then + LIBS="-L$with_libraw1394_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_raw1394_main) >/dev/null 2>&1 && unset ac_cv_lib_raw1394_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBRAW1394_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBRAW1394_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBRAW1394_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBRAW1394_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBRAW1394_CFLAGS=$ac_cv_env_PKG_LIBRAW1394_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libraw1394\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libraw1394" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBRAW1394_CFLAGS=`$PKG_CONFIG --cflags "libraw1394" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBRAW1394_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBRAW1394_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBRAW1394_LIBS" >&5 +$as_echo_n "checking for PKG_LIBRAW1394_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBRAW1394_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBRAW1394_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBRAW1394_LIBS=$ac_cv_env_PKG_LIBRAW1394_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libraw1394\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libraw1394" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBRAW1394_LIBS=`$PKG_CONFIG --libs "libraw1394" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBRAW1394_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBRAW1394_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBRAW1394_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libraw1394"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBRAW1394_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBRAW1394_CFLAGS=$pkg_cv_PKG_LIBRAW1394_CFLAGS + PKG_LIBRAW1394_LIBS=$pkg_cv_PKG_LIBRAW1394_LIBS + ac_cv_lib_raw1394_main=yes +fi +if test "x${PKG_LIBRAW1394_CFLAGS}" != "x"; then + + for element in "${PKG_LIBRAW1394_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBRAW1394_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBRAW1394_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_raw1394_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraw1394-config" >&5 +$as_echo_n "checking for libraw1394-config... " >&6; } + gem_check_lib_pkgconfig_LIBRAW1394="" + if test "xlibraw1394" != "x"; then + gem_check_lib_pkgconfig_LIBRAW1394="libraw1394"-config + if which -- "$gem_check_lib_pkgconfig_LIBRAW1394" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBRAW1394=`which "libraw1394"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBRAW1394="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBRAW1394" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBRAW1394_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBRAW1394 --cflags >/dev/null 2>&1; then + PKG_LIBRAW1394_CFLAGS=$(${gem_check_lib_pkgconfig_LIBRAW1394} --cflags) + PKG_CFLAGS="$PKG_LIBRAW1394_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBRAW1394_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBRAW1394 --plugin-libs >/dev/null 2>&1; then + PKG_LIBRAW1394_LIBS=$(${gem_check_lib_pkgconfig_LIBRAW1394} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBRAW1394 --libs >/dev/null 2>&1; then + PKG_LIBRAW1394_LIBS=$(${gem_check_lib_pkgconfig_LIBRAW1394} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBRAW1394_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lraw1394" >&5 +$as_echo_n "checking for main in -lraw1394... " >&6; } +if ${ac_cv_lib_raw1394_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lraw1394 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_raw1394_main=yes +else + ac_cv_lib_raw1394_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raw1394_main" >&5 +$as_echo "$ac_cv_lib_raw1394_main" >&6; } +if test "x$ac_cv_lib_raw1394_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBRAW1394 1 +_ACEOF + + LIBS="-lraw1394 $LIBS" + +fi + + PKG_LIBRAW1394_LIBS="-lraw1394" + else + PKG_LIBS="${PKG_LIBRAW1394_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_raw1394_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLIBRAW1394 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBRAW1394 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBRAW1394_CFLAGS=${PKG_LIBRAW1394_CFLAGS} + GEM_LIB_LIBRAW1394_LIBS=${PKG_LIBRAW1394_LIBS} + have_libraw1394="yes" + with_libraw1394="no" + + +else + + have_libraw1394="no" + + +fi + +fi + if test "x${have_libraw1394}" = "xyes"; then + HAVE_LIB_LIBRAW1394_TRUE= + HAVE_LIB_LIBRAW1394_FALSE='#' +else + HAVE_LIB_LIBRAW1394_TRUE='#' + HAVE_LIB_LIBRAW1394_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + + + +# Check whether --with-libiec61883 was given. +if test "${with_libiec61883+set}" = set; then : + withval=$with_libiec61883; +fi + + +# Check whether --with-libiec61883-includes was given. +if test "${with_libiec61883_includes+set}" = set; then : + withval=$with_libiec61883_includes; +fi + + +# Check whether --with-libiec61883-libs was given. +if test "${with_libiec61883_libs+set}" = set; then : + withval=$with_libiec61883_libs; +fi + + + if test "x$with_libiec61883" = "x"; then with_libiec61883=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libiec61883" = "x"; then with_libiec61883="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libiec61883" = "x"; then with_libiec61883="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libiec61883 = "xno"; then + have_libiec61883="no (forced)" +else + if test -d "$with_libiec61883_includes"; then + CFLAGS="-I$with_libiec61883_includes $CFLAGS" + CPPFLAGS="-I$with_libiec61883_includes $CPPFLAGS" + CXXFLAGS="-I$with_libiec61883_includes $CXXFLAGS" + fi + if test -d "$with_libiec61883_libs"; then + LIBS="-L$with_libiec61883_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_iec61883_main) >/dev/null 2>&1 && unset ac_cv_lib_iec61883_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBIEC61883_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBIEC61883_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBIEC61883_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBIEC61883_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBIEC61883_CFLAGS=$ac_cv_env_PKG_LIBIEC61883_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libiec61883\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libiec61883" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBIEC61883_CFLAGS=`$PKG_CONFIG --cflags "libiec61883" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBIEC61883_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBIEC61883_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBIEC61883_LIBS" >&5 +$as_echo_n "checking for PKG_LIBIEC61883_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBIEC61883_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBIEC61883_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBIEC61883_LIBS=$ac_cv_env_PKG_LIBIEC61883_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libiec61883\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libiec61883" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBIEC61883_LIBS=`$PKG_CONFIG --libs "libiec61883" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBIEC61883_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBIEC61883_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBIEC61883_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libiec61883"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBIEC61883_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBIEC61883_CFLAGS=$pkg_cv_PKG_LIBIEC61883_CFLAGS + PKG_LIBIEC61883_LIBS=$pkg_cv_PKG_LIBIEC61883_LIBS + ac_cv_lib_iec61883_main=yes +fi +if test "x${PKG_LIBIEC61883_CFLAGS}" != "x"; then + + for element in "${PKG_LIBIEC61883_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBIEC61883_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBIEC61883_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_iec61883_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiec61883-config" >&5 +$as_echo_n "checking for libiec61883-config... " >&6; } + gem_check_lib_pkgconfig_LIBIEC61883="" + if test "xlibiec61883" != "x"; then + gem_check_lib_pkgconfig_LIBIEC61883="libiec61883"-config + if which -- "$gem_check_lib_pkgconfig_LIBIEC61883" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBIEC61883=`which "libiec61883"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBIEC61883="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBIEC61883" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBIEC61883_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBIEC61883 --cflags >/dev/null 2>&1; then + PKG_LIBIEC61883_CFLAGS=$(${gem_check_lib_pkgconfig_LIBIEC61883} --cflags) + PKG_CFLAGS="$PKG_LIBIEC61883_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBIEC61883_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBIEC61883 --plugin-libs >/dev/null 2>&1; then + PKG_LIBIEC61883_LIBS=$(${gem_check_lib_pkgconfig_LIBIEC61883} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBIEC61883 --libs >/dev/null 2>&1; then + PKG_LIBIEC61883_LIBS=$(${gem_check_lib_pkgconfig_LIBIEC61883} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBIEC61883_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -liec61883" >&5 +$as_echo_n "checking for main in -liec61883... " >&6; } +if ${ac_cv_lib_iec61883_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-liec61883 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_iec61883_main=yes +else + ac_cv_lib_iec61883_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iec61883_main" >&5 +$as_echo "$ac_cv_lib_iec61883_main" >&6; } +if test "x$ac_cv_lib_iec61883_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBIEC61883 1 +_ACEOF + + LIBS="-liec61883 $LIBS" + +fi + + PKG_LIBIEC61883_LIBS="-liec61883" + else + PKG_LIBS="${PKG_LIBIEC61883_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_iec61883_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLIBIEC61883 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBIEC61883 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_LIBIEC61883_CFLAGS=${PKG_LIBIEC61883_CFLAGS} + GEM_LIB_LIBIEC61883_LIBS=${PKG_LIBIEC61883_LIBS} + have_libiec61883="yes" + with_libiec61883="no" + + +else + + have_libiec61883="no" + + +fi + +fi + if test "x${have_libiec61883}" = "xyes"; then + HAVE_LIB_LIBIEC61883_TRUE= + HAVE_LIB_LIBIEC61883_FALSE='#' +else + HAVE_LIB_LIBIEC61883_TRUE='#' + HAVE_LIB_LIBIEC61883_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +for ac_header in vl/vl.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "vl/vl.h" "ac_cv_header_vl_vl_h" "$ac_includes_default" +if test "x$ac_cv_header_vl_vl_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_VL_VL_H 1 +_ACEOF + +fi + +done + + + + if test "x$with_ALL" = "xyes" && test "x${with_unicap}" = "x"; then with_unicap="yes"; fi + if test "x$with_ALL" = "xno" && test "x${with_unicap}" = "x"; then with_unicap="no"; fi + + +# Check whether --with-unicap was given. +if test "${with_unicap+set}" = set; then : + withval=$with_unicap; +else + + if test "xforce" != "x"; then with_unicap="yes"; fi + +fi + + + + + + + + + + +# Check whether --with-libunicap was given. +if test "${with_libunicap+set}" = set; then : + withval=$with_libunicap; +fi + + +# Check whether --with-libunicap-includes was given. +if test "${with_libunicap_includes+set}" = set; then : + withval=$with_libunicap_includes; +fi + + +# Check whether --with-libunicap-libs was given. +if test "${with_libunicap_libs+set}" = set; then : + withval=$with_libunicap_libs; +fi + + + if test "x$with_libunicap" = "x"; then with_libunicap=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libunicap" = "x"; then with_libunicap="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libunicap" = "x"; then with_libunicap="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libunicap = "xno"; then + have_libunicap="no (forced)" +else + if test -d "$with_libunicap_includes"; then + CFLAGS="-I$with_libunicap_includes $CFLAGS" + CPPFLAGS="-I$with_libunicap_includes $CPPFLAGS" + CXXFLAGS="-I$with_libunicap_includes $CXXFLAGS" + fi + if test -d "$with_libunicap_libs"; then + LIBS="-L$with_libunicap_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_unicap_unicap_check_version) >/dev/null 2>&1 && unset ac_cv_lib_unicap_unicap_check_version + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBUNICAP_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBUNICAP_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBUNICAP_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBUNICAP_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBUNICAP_CFLAGS=$ac_cv_env_PKG_LIBUNICAP_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libunicap\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libunicap" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBUNICAP_CFLAGS=`$PKG_CONFIG --cflags "libunicap" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBUNICAP_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBUNICAP_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBUNICAP_LIBS" >&5 +$as_echo_n "checking for PKG_LIBUNICAP_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBUNICAP_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBUNICAP_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBUNICAP_LIBS=$ac_cv_env_PKG_LIBUNICAP_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libunicap\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libunicap" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBUNICAP_LIBS=`$PKG_CONFIG --libs "libunicap" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBUNICAP_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBUNICAP_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBUNICAP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libunicap"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBUNICAP_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBUNICAP_CFLAGS=$pkg_cv_PKG_LIBUNICAP_CFLAGS + PKG_LIBUNICAP_LIBS=$pkg_cv_PKG_LIBUNICAP_LIBS + ac_cv_lib_unicap_unicap_check_version=yes +fi +if test "x${PKG_LIBUNICAP_CFLAGS}" != "x"; then + + for element in "${PKG_LIBUNICAP_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBUNICAP_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBUNICAP_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_unicap_unicap_check_version" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunicap-config" >&5 +$as_echo_n "checking for libunicap-config... " >&6; } + gem_check_lib_pkgconfig_LIBUNICAP="" + if test "xlibunicap" != "x"; then + gem_check_lib_pkgconfig_LIBUNICAP="libunicap"-config + if which -- "$gem_check_lib_pkgconfig_LIBUNICAP" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBUNICAP=`which "libunicap"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBUNICAP="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBUNICAP" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBUNICAP_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBUNICAP --cflags >/dev/null 2>&1; then + PKG_LIBUNICAP_CFLAGS=$(${gem_check_lib_pkgconfig_LIBUNICAP} --cflags) + PKG_CFLAGS="$PKG_LIBUNICAP_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBUNICAP_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBUNICAP --plugin-libs >/dev/null 2>&1; then + PKG_LIBUNICAP_LIBS=$(${gem_check_lib_pkgconfig_LIBUNICAP} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBUNICAP --libs >/dev/null 2>&1; then + PKG_LIBUNICAP_LIBS=$(${gem_check_lib_pkgconfig_LIBUNICAP} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBUNICAP_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unicap_check_version in -lunicap" >&5 +$as_echo_n "checking for unicap_check_version in -lunicap... " >&6; } +if ${ac_cv_lib_unicap_unicap_check_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lunicap $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char unicap_check_version (); +int +main () +{ +return unicap_check_version (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_unicap_unicap_check_version=yes +else + ac_cv_lib_unicap_unicap_check_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unicap_unicap_check_version" >&5 +$as_echo "$ac_cv_lib_unicap_unicap_check_version" >&6; } +if test "x$ac_cv_lib_unicap_unicap_check_version" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBUNICAP 1 +_ACEOF + + LIBS="-lunicap $LIBS" + +fi + + PKG_LIBUNICAP_LIBS="-lunicap" + else + PKG_LIBS="${PKG_LIBUNICAP_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_unicap_unicap_check_version" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLIBUNICAP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBUNICAP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_UNICAP_CHECK_VERSION 1 +_ACEOF + + GEM_LIB_LIBUNICAP_CFLAGS=${PKG_LIBUNICAP_CFLAGS} + GEM_LIB_LIBUNICAP_LIBS=${PKG_LIBUNICAP_LIBS} + have_libunicap="yes" + with_libunicap="no" + + +else + + have_libunicap="no" + + +fi + +fi + if test "x${have_libunicap}" = "xyes"; then + HAVE_LIB_LIBUNICAP_TRUE= + HAVE_LIB_LIBUNICAP_FALSE='#' +else + HAVE_LIB_LIBUNICAP_TRUE='#' + HAVE_LIB_LIBUNICAP_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +if test "x$have_unicap" = "xyes"; then + ac_fn_cxx_check_header_mongrel "$LINENO" "unicap/unicap.h" "ac_cv_header_unicap_unicap_h" "$ac_includes_default" +if test "x$ac_cv_header_unicap_unicap_h" = xyes; then : + + +$as_echo "#define HAVE_UNICAP /**/" >>confdefs.h + + have_unicap="yes" + +else + have_unicap="no" +fi + + +fi +if test "x$have_libunicap"; then + have_unicap="yes" +fi + if test "x${have_unicap}" = "xyes"; then + HAVE_LIB_UNICAP_TRUE= + HAVE_LIB_UNICAP_FALSE='#' +else + HAVE_LIB_UNICAP_TRUE='#' + HAVE_LIB_UNICAP_FALSE= +fi + + + +have_v4l="no" + + if test "x$with_ALL" = "xyes" && test "x${with_v4l}" = "x"; then with_v4l="yes"; fi + if test "x$with_ALL" = "xno" && test "x${with_v4l}" = "x"; then with_v4l="no"; fi + + +# Check whether --with-v4l was given. +if test "${with_v4l+set}" = set; then : + withval=$with_v4l; +else + + if test "xforce" != "x"; then with_v4l="yes"; fi + +fi + + +for ac_header in linux/videodev.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default" +if test "x$ac_cv_header_linux_videodev_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LINUX_VIDEODEV_H 1 +_ACEOF + have_v4l="yes" +fi + +done + + + + + + + + +# Check whether --with-libv4l1 was given. +if test "${with_libv4l1+set}" = set; then : + withval=$with_libv4l1; +fi + + +# Check whether --with-libv4l1-includes was given. +if test "${with_libv4l1_includes+set}" = set; then : + withval=$with_libv4l1_includes; +fi + + +# Check whether --with-libv4l1-libs was given. +if test "${with_libv4l1_libs+set}" = set; then : + withval=$with_libv4l1_libs; +fi + + + if test "x$with_libv4l1" = "x"; then with_libv4l1=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libv4l1" = "x"; then with_libv4l1="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libv4l1" = "x"; then with_libv4l1="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libv4l1 = "xno"; then + have_libv4l1="no (forced)" +else + if test -d "$with_libv4l1_includes"; then + CFLAGS="-I$with_libv4l1_includes $CFLAGS" + CPPFLAGS="-I$with_libv4l1_includes $CPPFLAGS" + CXXFLAGS="-I$with_libv4l1_includes $CXXFLAGS" + fi + if test -d "$with_libv4l1_libs"; then + LIBS="-L$with_libv4l1_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_v4l1_v4l1_open) >/dev/null 2>&1 && unset ac_cv_lib_v4l1_v4l1_open + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L1_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBV4L1_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBV4L1_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L1_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBV4L1_CFLAGS=$ac_cv_env_PKG_LIBV4L1_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l1\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l1" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L1_CFLAGS=`$PKG_CONFIG --cflags "libv4l1" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L1_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L1_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L1_LIBS" >&5 +$as_echo_n "checking for PKG_LIBV4L1_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBV4L1_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L1_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBV4L1_LIBS=$ac_cv_env_PKG_LIBV4L1_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l1\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l1" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L1_LIBS=`$PKG_CONFIG --libs "libv4l1" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L1_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L1_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBV4L1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libv4l1"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBV4L1_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBV4L1_CFLAGS=$pkg_cv_PKG_LIBV4L1_CFLAGS + PKG_LIBV4L1_LIBS=$pkg_cv_PKG_LIBV4L1_LIBS + ac_cv_lib_v4l1_v4l1_open=yes +fi +if test "x${PKG_LIBV4L1_CFLAGS}" != "x"; then + + for element in "${PKG_LIBV4L1_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBV4L1_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBV4L1_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_v4l1_v4l1_open" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libv4l1-config" >&5 +$as_echo_n "checking for libv4l1-config... " >&6; } + gem_check_lib_pkgconfig_LIBV4L1="" + if test "xlibv4l1" != "x"; then + gem_check_lib_pkgconfig_LIBV4L1="libv4l1"-config + if which -- "$gem_check_lib_pkgconfig_LIBV4L1" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBV4L1=`which "libv4l1"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBV4L1="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBV4L1" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBV4L1_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L1 --cflags >/dev/null 2>&1; then + PKG_LIBV4L1_CFLAGS=$(${gem_check_lib_pkgconfig_LIBV4L1} --cflags) + PKG_CFLAGS="$PKG_LIBV4L1_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBV4L1_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L1 --plugin-libs >/dev/null 2>&1; then + PKG_LIBV4L1_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L1} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBV4L1 --libs >/dev/null 2>&1; then + PKG_LIBV4L1_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L1} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBV4L1_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l1_open in -lv4l1" >&5 +$as_echo_n "checking for v4l1_open in -lv4l1... " >&6; } +if ${ac_cv_lib_v4l1_v4l1_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lv4l1 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char v4l1_open (); +int +main () +{ +return v4l1_open (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_v4l1_v4l1_open=yes +else + ac_cv_lib_v4l1_v4l1_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l1_v4l1_open" >&5 +$as_echo "$ac_cv_lib_v4l1_v4l1_open" >&6; } +if test "x$ac_cv_lib_v4l1_v4l1_open" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBV4L1 1 +_ACEOF + + LIBS="-lv4l1 $LIBS" + +fi + + PKG_LIBV4L1_LIBS="-lv4l1" + else + PKG_LIBS="${PKG_LIBV4L1_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_v4l1_v4l1_open" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLIBV4L1 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBV4L1 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_V4L1_OPEN 1 +_ACEOF + + GEM_LIB_LIBV4L1_CFLAGS=${PKG_LIBV4L1_CFLAGS} + GEM_LIB_LIBV4L1_LIBS=${PKG_LIBV4L1_LIBS} + have_libv4l1="yes" + with_libv4l1="no" + + +else + + have_libv4l1="no" + + +fi + +fi + if test "x${have_libv4l1}" = "xyes"; then + HAVE_LIB_LIBV4L1_TRUE= + HAVE_LIB_LIBV4L1_FALSE='#' +else + HAVE_LIB_LIBV4L1_TRUE='#' + HAVE_LIB_LIBV4L1_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +if test "x$have_libv4l1" = "xyes"; then + have_v4l="yes (libv4l)" +fi +if test "x$with_v4l" = "xno"; then + have_v4l="no" +fi + if test "x${have_v4l}" != "xno"; then + HAVE_V4L_TRUE= + HAVE_V4L_FALSE='#' +else + HAVE_V4L_TRUE='#' + HAVE_V4L_FALSE= +fi + + + +have_v4l2="no" + + if test "x$with_ALL" = "xyes" && test "x${with_v4l2}" = "x"; then with_v4l2="yes"; fi + if test "x$with_ALL" = "xno" && test "x${with_v4l2}" = "x"; then with_v4l2="no"; fi + + +# Check whether --with-v4l2 was given. +if test "${with_v4l2+set}" = set; then : + withval=$with_v4l2; +else + + if test "xforce" != "x"; then with_v4l2="yes"; fi + +fi + + +for ac_header in linux/videodev2.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "$ac_includes_default" +if test "x$ac_cv_header_linux_videodev2_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LINUX_VIDEODEV2_H 1 +_ACEOF + +fi + +done + + + + + + + + +# Check whether --with-libv4l2 was given. +if test "${with_libv4l2+set}" = set; then : + withval=$with_libv4l2; +fi + + +# Check whether --with-libv4l2-includes was given. +if test "${with_libv4l2_includes+set}" = set; then : + withval=$with_libv4l2_includes; +fi + + +# Check whether --with-libv4l2-libs was given. +if test "${with_libv4l2_libs+set}" = set; then : + withval=$with_libv4l2_libs; +fi + + + if test "x$with_libv4l2" = "x"; then with_libv4l2=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libv4l2" = "x"; then with_libv4l2="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libv4l2" = "x"; then with_libv4l2="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libv4l2 = "xno"; then + have_libv4l2="no (forced)" +else + if test -d "$with_libv4l2_includes"; then + CFLAGS="-I$with_libv4l2_includes $CFLAGS" + CPPFLAGS="-I$with_libv4l2_includes $CPPFLAGS" + CXXFLAGS="-I$with_libv4l2_includes $CXXFLAGS" + fi + if test -d "$with_libv4l2_libs"; then + LIBS="-L$with_libv4l2_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_v4l2_v4l2_open) >/dev/null 2>&1 && unset ac_cv_lib_v4l2_v4l2_open + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L2_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBV4L2_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBV4L2_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L2_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBV4L2_CFLAGS=$ac_cv_env_PKG_LIBV4L2_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L2_CFLAGS=`$PKG_CONFIG --cflags "libv4l2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L2_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L2_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBV4L2_LIBS" >&5 +$as_echo_n "checking for PKG_LIBV4L2_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBV4L2_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBV4L2_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBV4L2_LIBS=$ac_cv_env_PKG_LIBV4L2_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libv4l2\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libv4l2" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBV4L2_LIBS=`$PKG_CONFIG --libs "libv4l2" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBV4L2_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBV4L2_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBV4L2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libv4l2"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBV4L2_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBV4L2_CFLAGS=$pkg_cv_PKG_LIBV4L2_CFLAGS + PKG_LIBV4L2_LIBS=$pkg_cv_PKG_LIBV4L2_LIBS + ac_cv_lib_v4l2_v4l2_open=yes +fi +if test "x${PKG_LIBV4L2_CFLAGS}" != "x"; then + + for element in "${PKG_LIBV4L2_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBV4L2_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBV4L2_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_v4l2_v4l2_open" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libv4l2-config" >&5 +$as_echo_n "checking for libv4l2-config... " >&6; } + gem_check_lib_pkgconfig_LIBV4L2="" + if test "xlibv4l2" != "x"; then + gem_check_lib_pkgconfig_LIBV4L2="libv4l2"-config + if which -- "$gem_check_lib_pkgconfig_LIBV4L2" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBV4L2=`which "libv4l2"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBV4L2="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBV4L2" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBV4L2_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L2 --cflags >/dev/null 2>&1; then + PKG_LIBV4L2_CFLAGS=$(${gem_check_lib_pkgconfig_LIBV4L2} --cflags) + PKG_CFLAGS="$PKG_LIBV4L2_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBV4L2_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBV4L2 --plugin-libs >/dev/null 2>&1; then + PKG_LIBV4L2_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L2} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBV4L2 --libs >/dev/null 2>&1; then + PKG_LIBV4L2_LIBS=$(${gem_check_lib_pkgconfig_LIBV4L2} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBV4L2_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5 +$as_echo_n "checking for v4l2_open in -lv4l2... " >&6; } +if ${ac_cv_lib_v4l2_v4l2_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lv4l2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char v4l2_open (); +int +main () +{ +return v4l2_open (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_v4l2_v4l2_open=yes +else + ac_cv_lib_v4l2_v4l2_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5 +$as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; } +if test "x$ac_cv_lib_v4l2_v4l2_open" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBV4L2 1 +_ACEOF + + LIBS="-lv4l2 $LIBS" + +fi + + PKG_LIBV4L2_LIBS="-lv4l2" + else + PKG_LIBS="${PKG_LIBV4L2_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_v4l2_v4l2_open" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLIBV4L2 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBV4L2 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_V4L2_OPEN 1 +_ACEOF + + GEM_LIB_LIBV4L2_CFLAGS=${PKG_LIBV4L2_CFLAGS} + GEM_LIB_LIBV4L2_LIBS=${PKG_LIBV4L2_LIBS} + have_libv4l2="yes" + with_libv4l2="no" + + +else + + have_libv4l2="no" + + +fi + +fi + if test "x${have_libv4l2}" = "xyes"; then + HAVE_LIB_LIBV4L2_TRUE= + HAVE_LIB_LIBV4L2_FALSE='#' +else + HAVE_LIB_LIBV4L2_TRUE='#' + HAVE_LIB_LIBV4L2_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +# AC_DEFINE([HAVE_VIDEO4LINUX2], [], [video capturing using v4l2]) + +if test "x$have_libv4l2" = "xyes"; then + have_v4l2="yes (libv4l)" +fi +if test "x$with_v4l2" = "xno"; then + have_v4l2="no" +fi + if test "x${have_v4l2}" != "xno"; then + HAVE_V4L2_TRUE= + HAVE_V4L2_FALSE='#' +else + HAVE_V4L2_TRUE='#' + HAVE_V4L2_FALSE= +fi + + + + + + + + + + +# Check whether --with-vfw32 was given. +if test "${with_vfw32+set}" = set; then : + withval=$with_vfw32; +fi + + +# Check whether --with-vfw32-includes was given. +if test "${with_vfw32_includes+set}" = set; then : + withval=$with_vfw32_includes; +fi + + +# Check whether --with-vfw32-libs was given. +if test "${with_vfw32_libs+set}" = set; then : + withval=$with_vfw32_libs; +fi + + + if test "x$with_vfw32" = "x"; then with_vfw32=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_vfw32" = "x"; then with_vfw32="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_vfw32" = "x"; then with_vfw32="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_vfw32 = "xno"; then + have_vfw32="no (forced)" +else + if test -d "$with_vfw32_includes"; then + CFLAGS="-I$with_vfw32_includes $CFLAGS" + CPPFLAGS="-I$with_vfw32_includes $CPPFLAGS" + CXXFLAGS="-I$with_vfw32_includes $CXXFLAGS" + fi + if test -d "$with_vfw32_libs"; then + LIBS="-L$with_vfw32_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_vfw32_main) >/dev/null 2>&1 && unset ac_cv_lib_vfw32_main + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_VFW32_CFLAGS" >&5 +$as_echo_n "checking for PKG_VFW32_CFLAGS... " >&6; } +if ${pkg_cv_PKG_VFW32_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_VFW32_CFLAGS_set" = "xset"; then + pkg_cv_PKG_VFW32_CFLAGS=$ac_cv_env_PKG_VFW32_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"vfw32\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "vfw32" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_VFW32_CFLAGS=`$PKG_CONFIG --cflags "vfw32" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_VFW32_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_VFW32_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_VFW32_LIBS" >&5 +$as_echo_n "checking for PKG_VFW32_LIBS... " >&6; } +if ${pkg_cv_PKG_VFW32_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_VFW32_LIBS_set" = "xset"; then + pkg_cv_PKG_VFW32_LIBS=$ac_cv_env_PKG_VFW32_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"vfw32\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "vfw32" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_VFW32_LIBS=`$PKG_CONFIG --libs "vfw32" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_VFW32_LIBS" >&5 +$as_echo "$pkg_cv_PKG_VFW32_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_VFW32_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vfw32"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_VFW32_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_VFW32_CFLAGS=$pkg_cv_PKG_VFW32_CFLAGS + PKG_VFW32_LIBS=$pkg_cv_PKG_VFW32_LIBS + ac_cv_lib_vfw32_main=yes +fi +if test "x${PKG_VFW32_CFLAGS}" != "x"; then + + for element in "${PKG_VFW32_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_VFW32_LIBS}" != "x"; then + PKG_LIBS="${PKG_VFW32_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_vfw32_main" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vfw32-config" >&5 +$as_echo_n "checking for vfw32-config... " >&6; } + gem_check_lib_pkgconfig_VFW32="" + if test "xvfw32" != "x"; then + gem_check_lib_pkgconfig_VFW32="vfw32"-config + if which -- "$gem_check_lib_pkgconfig_VFW32" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_VFW32=`which "vfw32"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_VFW32="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_VFW32" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_VFW32_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_VFW32 --cflags >/dev/null 2>&1; then + PKG_VFW32_CFLAGS=$(${gem_check_lib_pkgconfig_VFW32} --cflags) + PKG_CFLAGS="$PKG_VFW32_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_VFW32_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_VFW32 --plugin-libs >/dev/null 2>&1; then + PKG_VFW32_LIBS=$(${gem_check_lib_pkgconfig_VFW32} --plugin-libs) + else + if $gem_check_lib_pkgconfig_VFW32 --libs >/dev/null 2>&1; then + PKG_VFW32_LIBS=$(${gem_check_lib_pkgconfig_VFW32} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_VFW32_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvfw32" >&5 +$as_echo_n "checking for main in -lvfw32... " >&6; } +if ${ac_cv_lib_vfw32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lvfw32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_vfw32_main=yes +else + ac_cv_lib_vfw32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vfw32_main" >&5 +$as_echo "$ac_cv_lib_vfw32_main" >&6; } +if test "x$ac_cv_lib_vfw32_main" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBVFW32 1 +_ACEOF + + LIBS="-lvfw32 $LIBS" + +fi + + PKG_VFW32_LIBS="-lvfw32" + else + PKG_LIBS="${PKG_VFW32_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_vfw32_main" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBVFW32 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBVFW32 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_MAIN 1 +_ACEOF + + GEM_LIB_VFW32_CFLAGS=${PKG_VFW32_CFLAGS} + GEM_LIB_VFW32_LIBS=${PKG_VFW32_LIBS} + have_vfw32="yes" + with_vfw32="no" + + +else + + have_vfw32="no" + + +fi + +fi + if test "x${have_vfw32}" = "xyes"; then + HAVE_LIB_VFW32_TRUE= + HAVE_LIB_VFW32_FALSE='#' +else + HAVE_LIB_VFW32_TRUE='#' + HAVE_LIB_VFW32_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + +# is this needed? + +# VLC + + + + + + + +# Check whether --with-libvlc was given. +if test "${with_libvlc+set}" = set; then : + withval=$with_libvlc; +fi + + +# Check whether --with-libvlc-includes was given. +if test "${with_libvlc_includes+set}" = set; then : + withval=$with_libvlc_includes; +fi + + +# Check whether --with-libvlc-libs was given. +if test "${with_libvlc_libs+set}" = set; then : + withval=$with_libvlc_libs; +fi + + + if test "x$with_libvlc" = "x"; then with_libvlc=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_libvlc" = "x"; then with_libvlc="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_libvlc" = "x"; then with_libvlc="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_libvlc = "xno"; then + have_libvlc="no (forced)" +else + if test -d "$with_libvlc_includes"; then + CFLAGS="-I$with_libvlc_includes $CFLAGS" + CPPFLAGS="-I$with_libvlc_includes $CPPFLAGS" + CXXFLAGS="-I$with_libvlc_includes $CXXFLAGS" + fi + if test -d "$with_libvlc_libs"; then + LIBS="-L$with_libvlc_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_vlc_libvlc_video_set_callbacks) >/dev/null 2>&1 && unset ac_cv_lib_vlc_libvlc_video_set_callbacks + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBVLC_CFLAGS" >&5 +$as_echo_n "checking for PKG_LIBVLC_CFLAGS... " >&6; } +if ${pkg_cv_PKG_LIBVLC_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBVLC_CFLAGS_set" = "xset"; then + pkg_cv_PKG_LIBVLC_CFLAGS=$ac_cv_env_PKG_LIBVLC_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libvlc\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libvlc" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBVLC_CFLAGS=`$PKG_CONFIG --cflags "libvlc" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBVLC_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_LIBVLC_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_LIBVLC_LIBS" >&5 +$as_echo_n "checking for PKG_LIBVLC_LIBS... " >&6; } +if ${pkg_cv_PKG_LIBVLC_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_LIBVLC_LIBS_set" = "xset"; then + pkg_cv_PKG_LIBVLC_LIBS=$ac_cv_env_PKG_LIBVLC_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"libvlc\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "libvlc" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_LIBVLC_LIBS=`$PKG_CONFIG --libs "libvlc" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_LIBVLC_LIBS" >&5 +$as_echo "$pkg_cv_PKG_LIBVLC_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_LIBVLC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libvlc"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_LIBVLC_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_LIBVLC_CFLAGS=$pkg_cv_PKG_LIBVLC_CFLAGS + PKG_LIBVLC_LIBS=$pkg_cv_PKG_LIBVLC_LIBS + ac_cv_lib_vlc_libvlc_video_set_callbacks=yes +fi +if test "x${PKG_LIBVLC_CFLAGS}" != "x"; then + + for element in "${PKG_LIBVLC_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_LIBVLC_LIBS}" != "x"; then + PKG_LIBS="${PKG_LIBVLC_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_vlc_libvlc_video_set_callbacks" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvlc-config" >&5 +$as_echo_n "checking for libvlc-config... " >&6; } + gem_check_lib_pkgconfig_LIBVLC="" + if test "xlibvlc" != "x"; then + gem_check_lib_pkgconfig_LIBVLC="libvlc"-config + if which -- "$gem_check_lib_pkgconfig_LIBVLC" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_LIBVLC=`which "libvlc"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_LIBVLC="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_LIBVLC" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_LIBVLC_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_LIBVLC --cflags >/dev/null 2>&1; then + PKG_LIBVLC_CFLAGS=$(${gem_check_lib_pkgconfig_LIBVLC} --cflags) + PKG_CFLAGS="$PKG_LIBVLC_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_LIBVLC_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_LIBVLC --plugin-libs >/dev/null 2>&1; then + PKG_LIBVLC_LIBS=$(${gem_check_lib_pkgconfig_LIBVLC} --plugin-libs) + else + if $gem_check_lib_pkgconfig_LIBVLC --libs >/dev/null 2>&1; then + PKG_LIBVLC_LIBS=$(${gem_check_lib_pkgconfig_LIBVLC} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_LIBVLC_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvlc_video_set_callbacks in -lvlc" >&5 +$as_echo_n "checking for libvlc_video_set_callbacks in -lvlc... " >&6; } +if ${ac_cv_lib_vlc_libvlc_video_set_callbacks+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lvlc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char libvlc_video_set_callbacks (); +int +main () +{ +return libvlc_video_set_callbacks (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_vlc_libvlc_video_set_callbacks=yes +else + ac_cv_lib_vlc_libvlc_video_set_callbacks=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vlc_libvlc_video_set_callbacks" >&5 +$as_echo "$ac_cv_lib_vlc_libvlc_video_set_callbacks" >&6; } +if test "x$ac_cv_lib_vlc_libvlc_video_set_callbacks" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBVLC 1 +_ACEOF + + LIBS="-lvlc $LIBS" + +fi + + PKG_LIBVLC_LIBS="-lvlc" + else + PKG_LIBS="${PKG_LIBVLC_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_vlc_libvlc_video_set_callbacks" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLIBVLC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBVLC 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBVLC_VIDEO_SET_CALLBACKS 1 +_ACEOF + + GEM_LIB_LIBVLC_CFLAGS=${PKG_LIBVLC_CFLAGS} + GEM_LIB_LIBVLC_LIBS=${PKG_LIBVLC_LIBS} + have_libvlc="yes" + with_libvlc="no" + + +else + + have_libvlc="no" + + +fi + +fi + if test "x${have_libvlc}" = "xyes"; then + HAVE_LIB_LIBVLC_TRUE= + HAVE_LIB_LIBVLC_FALSE='#' +else + HAVE_LIB_LIBVLC_TRUE='#' + HAVE_LIB_LIBVLC_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + +# assimp + + + + + + + +# Check whether --with-assimp was given. +if test "${with_assimp+set}" = set; then : + withval=$with_assimp; +fi + + +# Check whether --with-assimp-includes was given. +if test "${with_assimp_includes+set}" = set; then : + withval=$with_assimp_includes; +fi + + +# Check whether --with-assimp-libs was given. +if test "${with_assimp_libs+set}" = set; then : + withval=$with_assimp_libs; +fi + + + if test "x$with_assimp" = "x"; then with_assimp=""; fi + + if test "x$with_ALL" = "xyes" && test "x$with_assimp" = "x"; then with_assimp="yes"; fi + if test "x$with_ALL" = "xno" && test "x$with_assimp" = "x"; then with_assimp="no"; fi + +tmp_gem_check_lib_cppflags="$CPPFLAGS" +tmp_gem_check_lib_cflags="$CFLAGS" +tmp_gem_check_lib_cxxflags="$CXXFLAGS" +tmp_gem_check_lib_ldflags="$LDFLAGS" +tmp_gem_check_lib_libs="$LIBS" + +if test x$with_assimp = "xno"; then + have_assimp="no (forced)" +else + if test -d "$with_assimp_includes"; then + CFLAGS="-I$with_assimp_includes $CFLAGS" + CPPFLAGS="-I$with_assimp_includes $CPPFLAGS" + CXXFLAGS="-I$with_assimp_includes $CXXFLAGS" + fi + if test -d "$with_assimp_libs"; then + LIBS="-L$with_assimp_libs $LIBS" + fi + +## unset ac_Lib is possible + (unset ac_cv_lib_assimp_aiDetachAllLogStreams) >/dev/null 2>&1 && unset ac_cv_lib_assimp_aiDetachAllLogStreams + +## 1st we check, whether pkg-config knows something about this package + + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_ASSIMP_CFLAGS" >&5 +$as_echo_n "checking for PKG_ASSIMP_CFLAGS... " >&6; } +if ${pkg_cv_PKG_ASSIMP_CFLAGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_ASSIMP_CFLAGS_set" = "xset"; then + pkg_cv_PKG_ASSIMP_CFLAGS=$ac_cv_env_PKG_ASSIMP_CFLAGS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"assimp\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "assimp" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_ASSIMP_CFLAGS=`$PKG_CONFIG --cflags "assimp" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_ASSIMP_CFLAGS" >&5 +$as_echo "$pkg_cv_PKG_ASSIMP_CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKG_ASSIMP_LIBS" >&5 +$as_echo_n "checking for PKG_ASSIMP_LIBS... " >&6; } +if ${pkg_cv_PKG_ASSIMP_LIBS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_env_PKG_ASSIMP_LIBS_set" = "xset"; then + pkg_cv_PKG_ASSIMP_LIBS=$ac_cv_env_PKG_ASSIMP_LIBS_value +elif test -n "$PKG_CONFIG"; then + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists \"assimp\" >/dev/null 2>&1"; } >&5 + ($PKG_CONFIG --exists "assimp" >/dev/null 2>&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PKG_ASSIMP_LIBS=`$PKG_CONFIG --libs "assimp" 2>/dev/null` + else + pkg_failed=yes + fi +else + pkg_failed=untried +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_PKG_ASSIMP_LIBS" >&5 +$as_echo "$pkg_cv_PKG_ASSIMP_LIBS" >&6; } + +if test $pkg_failed = yes; then + PKG_ASSIMP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "assimp"` + # Put the nasty error message in config.log where it belongs + echo "$PKG_ASSIMP_PKG_ERRORS" 1>&5 + + : +elif test $pkg_failed = untried; then + : +else + PKG_ASSIMP_CFLAGS=$pkg_cv_PKG_ASSIMP_CFLAGS + PKG_ASSIMP_LIBS=$pkg_cv_PKG_ASSIMP_LIBS + ac_cv_lib_assimp_aiDetachAllLogStreams=yes +fi +if test "x${PKG_ASSIMP_CFLAGS}" != "x"; then + + for element in "${PKG_ASSIMP_CFLAGS}"; do + haveit= + for x in $PKG_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + PKG_CFLAGS="${PKG_CFLAGS}${PKG_CFLAGS:+ }$element" + fi + done + +fi +if test "x${PKG_ASSIMP_LIBS}" != "x"; then + PKG_LIBS="${PKG_ASSIMP_LIBS} ${PKG_LIBS}" +fi + + + if test "x$ac_cv_lib_assimp_aiDetachAllLogStreams" != "xyes"; then +## pkg-config has failed +## check whether there is a ${1}-config lying around + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assimp-config" >&5 +$as_echo_n "checking for assimp-config... " >&6; } + gem_check_lib_pkgconfig_ASSIMP="" + if test "xassimp" != "x"; then + gem_check_lib_pkgconfig_ASSIMP="assimp"-config + if which -- "$gem_check_lib_pkgconfig_ASSIMP" >/dev/null 2>&1; then + gem_check_lib_pkgconfig_ASSIMP=`which "assimp"-config` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gem_check_lib_pkgconfig_ASSIMP="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + if test "x$gem_check_lib_pkgconfig_ASSIMP" != "x"; then +## fabulous, we have ${1}-config +## lets see what it reveals + +## if PKG__CFLAGS is undefined, we try to get it from ${1}-config + if test "x$PKG_ASSIMP_CFLAGS" = "x"; then + if $gem_check_lib_pkgconfig_ASSIMP --cflags >/dev/null 2>&1; then + PKG_ASSIMP_CFLAGS=$(${gem_check_lib_pkgconfig_ASSIMP} --cflags) + PKG_CFLAGS="$PKG_ASSIMP_CFLAGS $PKG_CFLAGS" + fi + fi + +## if PKG__LIBS is undefined, we try to get it from ${1}-config +## we first try to get it via "--plugin-libs" (this is almost certainly what we want) +## if that fails we try to get it via "--libs" + if test "x$PKG_ASSIMP_LIBS" = "x"; then + if $gem_check_lib_pkgconfig_ASSIMP --plugin-libs >/dev/null 2>&1; then + PKG_ASSIMP_LIBS=$(${gem_check_lib_pkgconfig_ASSIMP} --plugin-libs) + else + if $gem_check_lib_pkgconfig_ASSIMP --libs >/dev/null 2>&1; then + PKG_ASSIMP_LIBS=$(${gem_check_lib_pkgconfig_ASSIMP} --libs) + fi + fi + fi + fi + +## if we still don't know about the libs, we finally fall back to AC_CHECK_LIB + if test "x${PKG_ASSIMP_LIBS}" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aiDetachAllLogStreams in -lassimp" >&5 +$as_echo_n "checking for aiDetachAllLogStreams in -lassimp... " >&6; } +if ${ac_cv_lib_assimp_aiDetachAllLogStreams+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lassimp $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char aiDetachAllLogStreams (); +int +main () +{ +return aiDetachAllLogStreams (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_assimp_aiDetachAllLogStreams=yes +else + ac_cv_lib_assimp_aiDetachAllLogStreams=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_assimp_aiDetachAllLogStreams" >&5 +$as_echo "$ac_cv_lib_assimp_aiDetachAllLogStreams" >&6; } +if test "x$ac_cv_lib_assimp_aiDetachAllLogStreams" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBASSIMP 1 +_ACEOF + + LIBS="-lassimp $LIBS" + +fi + + PKG_ASSIMP_LIBS="-lassimp" + else + PKG_LIBS="${PKG_ASSIMP_LIBS} ${PKG_LIBS}" + fi + fi + + if test "x$ac_cv_lib_assimp_aiDetachAllLogStreams" != "xno"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBASSIMP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_LIBASSIMP 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_AIDETACHALLLOGSTREAMS 1 +_ACEOF + + GEM_LIB_ASSIMP_CFLAGS=${PKG_ASSIMP_CFLAGS} + GEM_LIB_ASSIMP_LIBS=${PKG_ASSIMP_LIBS} + have_assimp="yes" + with_assimp="no" + + +else + + have_assimp="no" + + +fi + +fi + if test "x${have_assimp}" = "xyes"; then + HAVE_LIB_ASSIMP_TRUE= + HAVE_LIB_ASSIMP_FALSE='#' +else + HAVE_LIB_ASSIMP_TRUE='#' + HAVE_LIB_ASSIMP_FALSE= +fi + +# restore original flags +CPPFLAGS="$tmp_gem_check_lib_cppflags" +CFLAGS="$tmp_gem_check_lib_cflags" +CXXFLAGS="$tmp_gem_check_lib_cxxflags" +LDFLAGS="$tmp_gem_check_lib_ldflags" +LIBS="$tmp_gem_check_lib_libs" + + + + + + + + + + +# Check whether --with-default-font was given. +if test "${with_default_font+set}" = set; then : + withval=$with_default_font; +fi + +if test "x$with_default_font" != "x" && \ + test "x$with_default_font" != "xno" && + test "x$with_default_font" != "xyes"; then + + +cat >>confdefs.h <<_ACEOF +#define GEM_DEFAULT_FONT "${with_default_font}" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using \"${with_default_font}\" as default font" >&5 +$as_echo "using \"${with_default_font}\" as default font" >&6; } +fi + +# threading + +# Check whether --enable-threads was given. +if test "${enable_threads+set}" = set; then : + enableval=$enable_threads; +else + + if test "x" != "x"; then enable_threads="yes"; fi + +fi + + + + + + +if test "x$enable_threads" != "xno"; then + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ax_pthread_ok=no + +# We used to check for pthread.h first, but this fails if pthread.h +# requires special compiler flags (e.g. on True64 or Sequent). +# It gets checked for in the link test anyway. + +# First of all, check if the user has set any of the PTHREAD_LIBS, +# etcetera environment variables, and if threads linking works using +# them: +if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS" >&5 +$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with +CFLAGS=$PTHREAD_CFLAGS... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_join (); +int +main () +{ +return pthread_join (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test x"$ax_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" +fi + +# We must check for the threads library under a number of different +# names; the ordering is very important because some systems +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the +# libraries is broken (non-POSIX). + +# Create a list of thread flags to try. Items starting with a "-" are +# C compiler flags, and other items are library names, except for "none" +# which indicates that we try without any flags at all, and "pthread-config" +# which is a program returning the flags for the Pth emulation library. + +ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads +-mthreads pthread --thread-safe -mt pthread-config" + +# The ordering *is* (sometimes) important. Some notes on the +# individual items follow: + +# pthreads: AIX (must check this before -lpthread) +# none: in case threads are in libc; should be tried before -Kthread and +# other compiler flags to prevent continual compiler warnings +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) +# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) +# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) +# -pthreads: Solaris/gcc +# -mthreads: Mingw32/gcc, Lynx/gcc +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it +# doesn't hurt to check since this sometimes defines pthreads too; +# also defines -D_REENTRANT) +# ... -mt is also the pthreads flag for HP/aCC +# pthread: Linux, etcetera +# --thread-safe: KAI C++ +# pthread-config: use pthread-config program (for GNU Pth library) + +case "${host_cpu}-${host_os}" in + *solaris*) + + # On Solaris (at least, for some versions), libc contains stubbed + # (non-functional) versions of the pthreads routines, so link-based + # tests will erroneously succeed. (We need to link with -pthreads/-mt/ + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather + # a function called by this macro, so we could check for that, but + # who knows whether they'll stub that too in a future libc.) So, + # we'll just look for -pthreads and -lpthread first: + + ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" + ;; + + *-darwin*) + acx_pthread_flags="-pthread $acx_pthread_flags" + ;; +esac + +if test x"$ax_pthread_ok" = xno; then +for flag in $ax_pthread_flags; do + + case $flag in + none) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 +$as_echo_n "checking whether pthreads work without any flags... " >&6; } + ;; + + -*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 +$as_echo_n "checking whether pthreads work with $flag... " >&6; } + PTHREAD_CFLAGS="$flag" + ;; + + pthread-config) + # Extract the first word of "pthread-config", so it can be a program name with args. +set dummy pthread-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ax_pthread_config+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ax_pthread_config"; then + ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ax_pthread_config="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" +fi +fi +ax_pthread_config=$ac_cv_prog_ax_pthread_config +if test -n "$ax_pthread_config"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 +$as_echo "$ax_pthread_config" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test x"$ax_pthread_config" = xno; then continue; fi + PTHREAD_CFLAGS="`pthread-config --cflags`" + PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config +--libs`" + ;; + + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 +$as_echo_n "checking for the pthreads library -l$flag... " >&6; } + PTHREAD_LIBS="-l$flag" + ;; + esac + + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Check for various functions. We must include pthread.h, + # since some functions may be macros. (On the Sequent, we + # need a special flag -Kthread to make this header compile.) + # We check for pthread_join because it is in -lpthread on IRIX + # while pthread_create is in libc. We check for pthread_attr_init + # due to DEC craziness with -lpthreads. We check for + # pthread_cleanup_push because it is one of the few pthread + # functions on Solaris that doesn't have a non-functional libc stub. + # We try pthread_create on general principles. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + static void routine(void* a) {a=0;} + static void* start_routine(void* a) {return a;} +int +main () +{ +pthread_t th; pthread_attr_t attr; + pthread_join(th, 0); + pthread_attr_init(&attr); + pthread_cleanup_push(routine, 0); + pthread_create(&th,0,start_routine,0); + pthread_cleanup_pop(0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_pthread_ok=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +$as_echo "$ax_pthread_ok" >&6; } + if test "x$ax_pthread_ok" = xyes; then + break; + fi + + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" +done +fi + +# Various other checks: +if test "x$ax_pthread_ok" = xyes; then + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 +$as_echo_n "checking for joinable pthread attribute... " >&6; } + attr_name=unknown + for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int attr=$attr; return attr; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + attr_name=$attr; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + done + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 +$as_echo "$attr_name" >&6; } + if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then + +cat >>confdefs.h <<_ACEOF +#define PTHREAD_CREATE_JOINABLE $attr_name +_ACEOF + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 +$as_echo_n "checking if more special flags are required for pthreads... " >&6; } + flag=no + case "${host_cpu}-${host_os}" in + *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 +$as_echo "${flag}" >&6; } + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + # More AIX lossage: must compile with xlc_r or cc_r + if test x"$GCC" != xyes; then + for ac_prog in xlc_r cc_r +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_PTHREAD_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$PTHREAD_CC"; then + ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_PTHREAD_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +PTHREAD_CC=$ac_cv_prog_PTHREAD_CC +if test -n "$PTHREAD_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 +$as_echo "$PTHREAD_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$PTHREAD_CC" && break +done +test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" + + else + PTHREAD_CC=$CC + fi +else + PTHREAD_CC="$CC" +fi + + + + + +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: +if test x"$ax_pthread_ok" = xyes; then + +$as_echo "#define HAVE_PTHREADS 1" >>confdefs.h + + : +else + ax_pthread_ok=no + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + GEM_THREADS_CFLAGS="" + + for element in "${PTHREAD_CFLAGS}"; do + haveit= + for x in $GEM_THREADS_CFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + GEM_THREADS_CFLAGS="${GEM_THREADS_CFLAGS}${GEM_THREADS_CFLAGS:+ }$element" + fi + done + + GEM_THREADS_LIBS="${GEM_THREADS_LIBS}${GEM_THREADS_LIBS:+ }${PTHREAD_LIBS}" +fi + + +# Checks for header files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +for ac_header in fcntl.h float.h memory.h stddef.h stdlib.h string.h strings.h sys/ioctl.h sys/time.h termios.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in wordexp.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "wordexp.h" "ac_cv_header_wordexp_h" "$ac_includes_default" +if test "x$ac_cv_header_wordexp_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WORDEXP_H 1 +_ACEOF + +fi + +done + + +# Checks for typedefs, structures, and compiler characteristics. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 +$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } +if ${ac_cv_header_stdbool_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #ifndef bool + "error: bool is not defined" + #endif + #ifndef false + "error: false is not defined" + #endif + #if false + "error: false is not 0" + #endif + #ifndef true + "error: true is not defined" + #endif + #if true != 1 + "error: true is not 1" + #endif + #ifndef __bool_true_false_are_defined + "error: __bool_true_false_are_defined is not defined" + #endif + + struct s { _Bool s: 1; _Bool t; } s; + + char a[true == 1 ? 1 : -1]; + char b[false == 0 ? 1 : -1]; + char c[__bool_true_false_are_defined == 1 ? 1 : -1]; + char d[(bool) 0.5 == true ? 1 : -1]; + /* See body of main program for 'e'. */ + char f[(_Bool) 0.0 == false ? 1 : -1]; + char g[true]; + char h[sizeof (_Bool)]; + char i[sizeof s.t]; + enum { j = false, k = true, l = false * true, m = true * 256 }; + /* The following fails for + HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ + _Bool n[m]; + char o[sizeof n == m * sizeof n[0] ? 1 : -1]; + char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; + /* Catch a bug in an HP-UX C compiler. See + http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + */ + _Bool q = true; + _Bool *pq = &q; + +int +main () +{ + + bool e = &s; + *pq |= q; + *pq |= ! q; + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + + !m + !n + !o + !p + !q + !pq); + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_header_stdbool_h=yes +else + ac_cv_header_stdbool_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 +$as_echo "$ac_cv_header_stdbool_h" >&6; } + ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" +if test "x$ac_cv_type__Bool" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE__BOOL 1 +_ACEOF + + +fi + + +if test $ac_cv_header_stdbool_h = yes; then + +$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if ${ac_cv_c_const+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +#ifndef __cplusplus + /* Ultrix mips cc rejects this sort of thing. */ + typedef int charset[2]; + const charset cs = { 0, 0 }; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *pcpcc; + char **ppc; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + pcpcc = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++pcpcc; + ppc = (char**) pcpcc; + pcpcc = (char const *const *) ppc; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 0; + if (s) return 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + if (!foo) return 0; + } + return !cs[0] && !zero.x; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_c_const=yes +else + ac_cv_c_const=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +$as_echo "#define const /**/" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + +ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } +if ${ac_cv_header_time+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include + +int +main () +{ +if ((struct tm *) 0) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_header_time=yes +else + ac_cv_header_time=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 +$as_echo "$ac_cv_header_time" >&6; } +if test $ac_cv_header_time = yes; then + +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h + +fi + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 +$as_echo_n "checking size of unsigned int... " >&6; } +if ${ac_cv_sizeof_unsigned_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_unsigned_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (unsigned int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_unsigned_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 +$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 +$as_echo_n "checking size of void *... " >&6; } +if ${ac_cv_sizeof_void_p+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_void_p" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (void *) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_void_p=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 +$as_echo "$ac_cv_sizeof_void_p" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p +_ACEOF + + + +# Checks for library functions. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 +$as_echo_n "checking for error_at_line... " >&6; } +if ${ac_cv_lib_error_at_line+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +error_at_line (0, 0, "", 0, "an error occurred"); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_error_at_line=yes +else + ac_cv_lib_error_at_line=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 +$as_echo "$ac_cv_lib_error_at_line" >&6; } +if test $ac_cv_lib_error_at_line = no; then + case " $LIBOBJS " in + *" error.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS error.$ac_objext" + ;; +esac + +fi + +ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" +if test "x$ac_cv_type_pid_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define pid_t int +_ACEOF + +fi + +for ac_header in vfork.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" +if test "x$ac_cv_header_vfork_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_VFORK_H 1 +_ACEOF + +fi + +done + +for ac_func in fork vfork +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +if test "x$ac_cv_func_fork" = xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 +$as_echo_n "checking for working fork... " >&6; } +if ${ac_cv_func_fork_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_fork_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* By Ruediger Kuhlmann. */ + return fork () < 0; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_fork_works=yes +else + ac_cv_func_fork_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 +$as_echo "$ac_cv_func_fork_works" >&6; } + +else + ac_cv_func_fork_works=$ac_cv_func_fork +fi +if test "x$ac_cv_func_fork_works" = xcross; then + case $host in + *-*-amigaos* | *-*-msdosdjgpp*) + # Override, as these systems have only a dummy fork() stub + ac_cv_func_fork_works=no + ;; + *) + ac_cv_func_fork_works=yes + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 +$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} +fi +ac_cv_func_vfork_works=$ac_cv_func_vfork +if test "x$ac_cv_func_vfork" = xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 +$as_echo_n "checking for working vfork... " >&6; } +if ${ac_cv_func_vfork_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_vfork_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Thanks to Paul Eggert for this test. */ +$ac_includes_default +#include +#ifdef HAVE_VFORK_H +# include +#endif +/* On some sparc systems, changes by the child to local and incoming + argument registers are propagated back to the parent. The compiler + is told about this with #include , but some compilers + (e.g. gcc -O) don't grok . Test for this by using a + static variable whose address is put into a register that is + clobbered by the vfork. */ +static void +#ifdef __cplusplus +sparc_address_test (int arg) +# else +sparc_address_test (arg) int arg; +#endif +{ + static pid_t child; + if (!child) { + child = vfork (); + if (child < 0) { + perror ("vfork"); + _exit(2); + } + if (!child) { + arg = getpid(); + write(-1, "", 0); + _exit (arg); + } + } +} + +int +main () +{ + pid_t parent = getpid (); + pid_t child; + + sparc_address_test (0); + + child = vfork (); + + if (child == 0) { + /* Here is another test for sparc vfork register problems. This + test uses lots of local variables, at least as many local + variables as main has allocated so far including compiler + temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris + 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should + reuse the register of parent for one of the local variables, + since it will think that parent can't possibly be used any more + in this routine. Assigning to the local variable will thus + munge parent in the parent process. */ + pid_t + p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), + p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); + /* Convince the compiler that p..p7 are live; otherwise, it might + use the same hardware register for all 8 local variables. */ + if (p != p1 || p != p2 || p != p3 || p != p4 + || p != p5 || p != p6 || p != p7) + _exit(1); + + /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent + from child file descriptors. If the child closes a descriptor + before it execs or exits, this munges the parent's descriptor + as well. Test for this by closing stdout in the child. */ + _exit(close(fileno(stdout)) != 0); + } else { + int status; + struct stat st; + + while (wait(&status) != child) + ; + return ( + /* Was there some problem with vforking? */ + child < 0 + + /* Did the child fail? (This shouldn't happen.) */ + || status + + /* Did the vfork/compiler bug occur? */ + || parent != getpid() + + /* Did the file descriptor bug occur? */ + || fstat(fileno(stdout), &st) != 0 + ); + } +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_vfork_works=yes +else + ac_cv_func_vfork_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 +$as_echo "$ac_cv_func_vfork_works" >&6; } + +fi; +if test "x$ac_cv_func_fork_works" = xcross; then + ac_cv_func_vfork_works=$ac_cv_func_vfork + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 +$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} +fi + +if test "x$ac_cv_func_vfork_works" = xyes; then + +$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h + +else + +$as_echo "#define vfork fork" >>confdefs.h + +fi +if test "x$ac_cv_func_fork_works" = xyes; then + +$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h + +fi + +for ac_header in stdlib.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +if test "x$ac_cv_header_stdlib_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDLIB_H 1 +_ACEOF + +fi + +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 +$as_echo_n "checking for GNU libc compatible malloc... " >&6; } +if ${ac_cv_func_malloc_0_nonnull+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_malloc_0_nonnull=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined STDC_HEADERS || defined HAVE_STDLIB_H +# include +#else +char *malloc (); +#endif + +int +main () +{ +return ! malloc (0); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_malloc_0_nonnull=yes +else + ac_cv_func_malloc_0_nonnull=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 +$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } +if test $ac_cv_func_malloc_0_nonnull = yes; then : + +$as_echo "#define HAVE_MALLOC 1" >>confdefs.h + +else + $as_echo "#define HAVE_MALLOC 0" >>confdefs.h + + case " $LIBOBJS " in + *" malloc.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS malloc.$ac_objext" + ;; +esac + + +$as_echo "#define malloc rpl_malloc" >>confdefs.h + +fi + + + + + + for ac_header in $ac_header_list +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + + + + +for ac_func in getpagesize +do : + ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" +if test "x$ac_cv_func_getpagesize" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETPAGESIZE 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 +$as_echo_n "checking for working mmap... " >&6; } +if ${ac_cv_func_mmap_fixed_mapped+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_mmap_fixed_mapped=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +/* malloc might have been renamed as rpl_malloc. */ +#undef malloc + +/* Thanks to Mike Haertel and Jim Avera for this test. + Here is a matrix of mmap possibilities: + mmap private not fixed + mmap private fixed at somewhere currently unmapped + mmap private fixed at somewhere already mapped + mmap shared not fixed + mmap shared fixed at somewhere currently unmapped + mmap shared fixed at somewhere already mapped + For private mappings, we should verify that changes cannot be read() + back from the file, nor mmap's back from the file at a different + address. (There have been systems where private was not correctly + implemented like the infamous i386 svr4.0, and systems where the + VM page cache was not coherent with the file system buffer cache + like early versions of FreeBSD and possibly contemporary NetBSD.) + For shared mappings, we should conversely verify that changes get + propagated back to all the places they're supposed to be. + + Grep wants private fixed already mapped. + The main things grep needs to know about mmap are: + * does it exist and is it safe to write into the mmap'd area + * how to use it (BSD variants) */ + +#include +#include + +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H +char *malloc (); +#endif + +/* This mess was copied from the GNU getpagesize.h. */ +#ifndef HAVE_GETPAGESIZE +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# ifdef HAVE_SYS_PARAM_H +# include +# ifdef EXEC_PAGESIZE +# define getpagesize() EXEC_PAGESIZE +# else /* no EXEC_PAGESIZE */ +# ifdef NBPG +# define getpagesize() NBPG * CLSIZE +# ifndef CLSIZE +# define CLSIZE 1 +# endif /* no CLSIZE */ +# else /* no NBPG */ +# ifdef NBPC +# define getpagesize() NBPC +# else /* no NBPC */ +# ifdef PAGESIZE +# define getpagesize() PAGESIZE +# endif /* PAGESIZE */ +# endif /* no NBPC */ +# endif /* no NBPG */ +# endif /* no EXEC_PAGESIZE */ +# else /* no HAVE_SYS_PARAM_H */ +# define getpagesize() 8192 /* punt totally */ +# endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ + +#endif /* no HAVE_GETPAGESIZE */ + +int +main () +{ + char *data, *data2, *data3; + const char *cdata2; + int i, pagesize; + int fd, fd2; + + pagesize = getpagesize (); + + /* First, make a file with some known garbage in it. */ + data = (char *) malloc (pagesize); + if (!data) + return 1; + for (i = 0; i < pagesize; ++i) + *(data + i) = rand (); + umask (0); + fd = creat ("conftest.mmap", 0600); + if (fd < 0) + return 2; + if (write (fd, data, pagesize) != pagesize) + return 3; + close (fd); + + /* Next, check that the tail of a page is zero-filled. File must have + non-zero length, otherwise we risk SIGBUS for entire page. */ + fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); + if (fd2 < 0) + return 4; + cdata2 = ""; + if (write (fd2, cdata2, 1) != 1) + return 5; + data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); + if (data2 == MAP_FAILED) + return 6; + for (i = 0; i < pagesize; ++i) + if (*(data2 + i)) + return 7; + close (fd2); + if (munmap (data2, pagesize)) + return 8; + + /* Next, try to mmap the file at a fixed address which already has + something else allocated at it. If we can, also make sure that + we see the same garbage. */ + fd = open ("conftest.mmap", O_RDWR); + if (fd < 0) + return 9; + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_FIXED, fd, 0L)) + return 10; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + return 11; + + /* Finally, make sure that changes to the mapped area do not + percolate back to the file as seen by read(). (This is a bug on + some variants of i386 svr4.0.) */ + for (i = 0; i < pagesize; ++i) + *(data2 + i) = *(data2 + i) + 1; + data3 = (char *) malloc (pagesize); + if (!data3) + return 12; + if (read (fd, data3, pagesize) != pagesize) + return 13; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data3 + i)) + return 14; + close (fd); + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_mmap_fixed_mapped=yes +else + ac_cv_func_mmap_fixed_mapped=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 +$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } +if test $ac_cv_func_mmap_fixed_mapped = yes; then + +$as_echo "#define HAVE_MMAP 1" >>confdefs.h + +fi +rm -f conftest.mmap conftest.txt + +for ac_func in bzero floor gettimeofday memset munmap pow sqrt strchr strdup strrchr strstr strnlen +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + +# enabling recording with quicktime4linux +gem_tmp_lqt_libs="$LIBS" +LIBS="$LIBS $PKG_LIBS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lqt_open_write" >&5 +$as_echo_n "checking for lqt_open_write... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lqt_open_write (); +int +main () +{ +return lqt_open_write (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + +$as_echo "#define HAVE_LQT_OPEN_WRITE /**/" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS="$gem_tmp_lqt_libs" + +### make-depend flags +if test "x$ac_cv_c_compiler_gnu" = "xyes"; then + MAKEDEP_FLAGS="-MM" + +else + MAKEDEP_FLAGS="-M" + +fi + +# using pix_videoOS rather than pix_video + +# Check whether --with-video was given. +if test "${with_video+set}" = set; then : + withval=$with_video; +fi + + +## on OSX we still default to the olde way +#if test "x$KERN" = "xDarwin"; then +# if test "x$with_film" = "x"; then +# with_film="Darwin" +# fi +# if test "x$with_video" = "x"; then +# with_video="Darwin" +# fi +#fi + +if test "x$with_video" = "x"; then + with_video="plugins" +elif test "x$with_video" = "xyes"; then + with_video="plugins" +elif test "x$with_video" = "xno"; then +# hmm, what to do here? + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ignoring request for no video...using plugins" >&5 +$as_echo "ignoring request for no video...using plugins" >&6; } + with_video="plugins" +elif test "x$with_video" = "xplugins"; then + : +else + +cat >>confdefs.h <<_ACEOF +#define GEM_VIDEOBACKEND GEM_VIDEOBACKEND_$with_video +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using deprecated video-loader $with_video" >&5 +$as_echo "using deprecated video-loader $with_video" >&6; } +fi + +# using pix_filmOS rather than pix_film + +# Check whether --with-film was given. +if test "${with_film+set}" = set; then : + withval=$with_film; +fi + + +if test "x$with_film" = "x"; then + with_film="plugins" +elif test "x$with_film" = "xyes"; then + with_film="plugins" +elif test "x$with_film" = "xno"; then +# hmm, what to do here? + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ignoring request for no film...using plugins" >&5 +$as_echo "ignoring request for no film...using plugins" >&6; } + with_film="plugins" +elif test "x$with_film" = "xplugins"; then + : +else + +cat >>confdefs.h <<_ACEOF +#define GEM_FILMBACKEND GEM_FILMBACKEND_$with_film +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using deprecated film-loader $with_film" >&5 +$as_echo "using deprecated film-loader $with_film" >&6; } +fi + + + + + +# enabling "-freg-struct-return" (for FreeFrame) +# i wonder could we make this the default ??? +if test "x$enable_registerstruct" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-freg-struct-return\"" >&5 +$as_echo_n "checking whether compiler accepts \"-freg-struct-return\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -freg-struct-return > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -freg-struct-return" + enable_registerstruct="yes" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + enable_registerstruct="no" +fi + + +if test "x$enable_registerstruct" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling \"register struct return\" + allows to make use of FreeFrame-effects without recompiling them + might break things, if you are using several different compilers" >&5 +$as_echo "enabling \"register struct return\" + allows to make use of FreeFrame-effects without recompiling them + might break things, if you are using several different compilers" >&6; } +fi +fi + +if test "x$WINDOWS" = "xyes"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-mms-bitfields\"" >&5 +$as_echo_n "checking whether compiler accepts \"-mms-bitfields\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -mms-bitfields > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -mms-bitfields" + GEM_EXTERNAL_CFLAGS+="-mms-bitfields" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + +if test "x$KERN" = "xDarwin"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-Os\"" >&5 +$as_echo_n "checking whether compiler accepts \"-Os\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -Os > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -Os" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-O3\"" >&5 +$as_echo_n "checking whether compiler accepts \"-O3\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -O3 > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -O3" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + + +# shall we built FAT-binaries ? +## this needs more thinking! running just the preprocessor does not like these flags +## for now we could live with just adding these manually with GEM_EXTRA_CXXFLAGS and GEM_EXTRA_LDFLAGS + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-O3\"" >&5 +$as_echo_n "checking whether compiler accepts \"-O3\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -O3 > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -O3" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-falign-loops -falign-functions -falign-jumps -funroll-loops\"" >&5 +$as_echo_n "checking whether compiler accepts \"-falign-loops -falign-functions -falign-jumps -funroll-loops\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -falign-loops -falign-functions -falign-jumps -funroll-loops > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -falign-loops -falign-functions -falign-jumps -funroll-loops" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-falign-loops -funroll-loops\"" >&5 +$as_echo_n "checking whether compiler accepts \"-falign-loops -funroll-loops\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -falign-loops -funroll-loops > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -falign-loops -funroll-loops" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-ffast-math\"" >&5 +$as_echo_n "checking whether compiler accepts \"-ffast-math\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -ffast-math > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -ffast-math" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + + +## SIMD support +# naive approach is to just check, which SIMD-flags the compiler takes +# and use these +# drawback: while the compiler might support compilation for a specific +# SIMD instruction set, the hardware you are compiling for might not + +# proposal: +# by default the configure-task should only enable flags that are known +# to work on the machine we are compiling. +# the user can override this by explicitely stating that they want the +# flag to be enabled (if possible) +# e.g. "./configure --enable-sse2" on a pentium-3 should +# produce a binary that will only run on machines with SSE2 registers +# whereas "./configure" will make a binary with only MMX enabled. +# +# but how do we test for the CPU-caps? on linux we could just read /proc/cpuinfo +# but on other OSs? + +# we make it a bit complicated in order to allow people to enforce the +# compilation with a specific SIMD-instruction set, even on platforms +# that don't support it +# why? think cross-compilation + + +# Check whether --enable-fat-binary was given. +if test "${enable_fat_binary+set}" = set; then : + enableval=$enable_fat_binary; fat_binary=$enableval +else + fat_binary=no +fi + +if test "$fat_binary" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking target architectures" >&5 +$as_echo_n "checking target architectures... " >&6; } + + # Respect TARGET_ARCHS setting from environment if available. + if test -z "$TARGET_ARCHS"; then + # Respect ARCH given to --enable-fat-binary if present. + if test "$fat_binary" != yes; then + TARGET_ARCHS=`echo "$fat_binary" | tr ',' ' '` + else + # Choose a default set of architectures based upon platform. + TARGET_ARCHS="ppc i386" + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ARCHS" >&5 +$as_echo "$TARGET_ARCHS" >&6; } + + + # /usr/lib/arch_tool -archify_list $TARGET_ARCHS + GEM_ARCH="" + tmp_arch_count=0 + for archs in $TARGET_ARCHS + do + GEM_ARCH="$GEM_ARCH -arch $archs" + tmp_arch_count=$((tmp_arch_count+1)) + done + + if test "$tmp_arch_count" -gt 1; then + if test "x$enable_dependency_tracking" != xno; then + as_fn_error $? "when building for multiple architectures, you MUST turn off dependency-tracking" "$LINENO" 5 + fi + fi + + if test "x$GEM_ARCH" != "x"; then + tmp_arch_cflags="$CFLAGS" + tmp_arch_cxxflags="$CXXFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"$GEM_ARCH\"" >&5 +$as_echo_n "checking whether compiler accepts \"$GEM_ARCH\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ $GEM_ARCH > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} $GEM_ARCH" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + GEM_ARCH="" +fi + + GEM_ARCH_CXXFLAGS+=$GEM_ARCH + CFLAGS="$tmp_arch_cflags" + CXXFLAGS="$tmp_arch_cxxflags" + fi + + if test "x$GEM_ARCH" != "x"; then + tmp_arch_ldflags="$LDFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts \"$GEM_ARCH\"" >&5 +$as_echo_n "checking whether linker accepts \"$GEM_ARCH\"... " >&6; } + gem_check_ldflags_org="${LDFLAGS}" + LDFLAGS="$GEM_ARCH ${LDFLAGS}" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + gem_check_ldflags_success="yes" +else + gem_check_ldflags_success="no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "x$gem_check_ldflags_success" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$gem_check_ldflags_org" + GEM_ARCH="" + fi + + GEM_ARCH_LDFLAGS+=$GEM_ARCH + LDFLAGS="$tmp_arch_ldflags" + fi + + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEM_ARCH" >&5 +$as_echo "$GEM_ARCH" >&6; } + + + +if test "x${ARCH}" = "xi386" || test "x${ARCH}" = "xi686" || test "x${ARCH}" = "xx86_64"; then + if test "x$enable_altivec" != "xyes"; then enable_altivec="no"; fi +fi + +if test "x${ARCH}" = "xPower Macintosh" || test "x${ARCH}" = "xpowerpc"; then + if test "x$enable_mmx" != "xyes"; then enable_mmx="no" ; fi + if test "x$enable_sse2" != "xyes"; then enable_sse2="no"; fi +fi + +if test "x$enable_mmx" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-mmmx\"" >&5 +$as_echo_n "checking whether compiler accepts \"-mmmx\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -mmmx > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -mmmx" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi +if test "x$enable_sse2" = "xyes"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-msse2\"" >&5 +$as_echo_n "checking whether compiler accepts \"-msse2\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -msse2 > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -msse2" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi +if test "x$enable_altivec" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-faltivec\"" >&5 +$as_echo_n "checking whether compiler accepts \"-faltivec\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -faltivec > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -faltivec" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi +if test "x$enable_powerpc" = "xyes"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-mpowerpc-gfxopt\"" >&5 +$as_echo_n "checking whether compiler accepts \"-mpowerpc-gfxopt\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -mpowerpc-gfxopt > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -mpowerpc-gfxopt" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + +# on os-x we might come across "pascal strings" containing "\p"... +if test "x$enable_pascalstrings" != "xno"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-fpascal-strings\"" >&5 +$as_echo_n "checking whether compiler accepts \"-fpascal-strings\"... " >&6; } +cat > conftest.c++ << EOF +int main(){ + return 0; +} +EOF +if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ -fpascal-strings > /dev/null 2>&1 +then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CXXFLAGS="${CXXFLAGS} -fpascal-strings" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + +fi + + +# Check whether --with-defaultwindow was given. +if test "${with_defaultwindow+set}" = set; then : + withval=$with_defaultwindow; +fi + + +case "$with_defaultwindow" in + gem*) + GEM_DEFAULT_WINDOW="$with_defaultwindow" + ;; + *) + GEM_DEFAULT_WINDOW="" + ;; +esac +if test "x${GEM_DEFAULT_WINDOW}" = "x"; then + if test "x$WINDOWS" = "xyes"; then + GEM_DEFAULT_WINDOW="gemw32window" + elif test "x$DARWIN" = "xyes"; then + #GEM_DEFAULT_WINDOW="gemmacwindow" + GEM_DEFAULT_WINDOW="gemcocoawindow" + elif test "x$no_glx" != "xyes"; then + GEM_DEFAULT_WINDOW="gemglxwindow" + elif test "x$no_glut" != "xyes"; then + GEM_DEFAULT_WINDOW="gemglutwindow" + fi +fi + +ac_config_files="$ac_config_files abstractions/gemdefaultwindow.pd" + + +## dummy conditionals that are always "true" (ENABLED) or "false" (DISABLED) +enabled="yes" + if test "x${enabled}" = "xyes"; then + ENABLED_TRUE= + ENABLED_FALSE='#' +else + ENABLED_TRUE='#' + ENABLED_FALSE= +fi + + if test "x${enabled}" = "xno"; then + DISABLED_TRUE= + DISABLED_FALSE='#' +else + DISABLED_TRUE='#' + DISABLED_FALSE= +fi + + + +# damned: gcc on osX seems to report that it supports "-ip -ipo_obj" although they are only icc flags + + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then + as_fn_error $? "conditional \"LINUX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then + as_fn_error $? "conditional \"ANDROID\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then + as_fn_error $? "conditional \"MACOSX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${IPHONEOS_TRUE}" && test -z "${IPHONEOS_FALSE}"; then + as_fn_error $? "conditional \"IPHONEOS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then + as_fn_error $? "conditional \"BSD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then + as_fn_error $? "conditional \"WINDOWS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then + as_fn_error $? "conditional \"CYGWIN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then + as_fn_error $? "conditional \"MINGW\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then + as_fn_error $? "conditional \"HURD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then + as_fn_error $? "conditional \"IRIX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CONTROLS_TRUE}" && test -z "${TARGET_CONTROLS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CONTROLS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_GEOS_TRUE}" && test -z "${TARGET_GEOS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_GEOS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_MANIPS_TRUE}" && test -z "${TARGET_MANIPS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_MANIPS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_NONGEOS_TRUE}" && test -z "${TARGET_NONGEOS_FALSE}"; then + as_fn_error $? "conditional \"TARGET_NONGEOS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_PARTICLES_TRUE}" && test -z "${TARGET_PARTICLES_FALSE}"; then + as_fn_error $? "conditional \"TARGET_PARTICLES\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_PIXES_TRUE}" && test -z "${TARGET_PIXES_FALSE}"; then + as_fn_error $? "conditional \"TARGET_PIXES\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_OPENGL_TRUE}" && test -z "${TARGET_OPENGL_FALSE}"; then + as_fn_error $? "conditional \"TARGET_OPENGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_VERTEX_TRUE}" && test -z "${TARGET_VERTEX_FALSE}"; then + as_fn_error $? "conditional \"TARGET_VERTEX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GL_TRUE}" && test -z "${HAVE_GL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GLU_TRUE}" && test -z "${HAVE_GLU_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GLU\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GLUT_TRUE}" && test -z "${HAVE_GLUT_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GLUT\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GLX_TRUE}" && test -z "${HAVE_GLX_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GLX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_AGL_TRUE}" && test -z "${HAVE_FRAMEWORK_AGL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_AGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_AGL_TRUE}" && test -z "${HAVE_AGL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_AGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_GLEW_TRUE}" && test -z "${HAVE_LIB_GLEW_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_GLEW\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_SDL_TRUE}" && test -z "${HAVE_LIB_SDL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_SDL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_COCOA_TRUE}" && test -z "${HAVE_FRAMEWORK_COCOA_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_COCOA\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_CARBON_TRUE}" && test -z "${HAVE_FRAMEWORK_CARBON_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_CARBON\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_FRAMEWORK_QUICKTIME_TRUE}" && test -z "${HAVE_FRAMEWORK_QUICKTIME_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FRAMEWORK_QUICKTIME\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${VIDEODARWIN_TRUE}" && test -z "${VIDEODARWIN_FALSE}"; then + as_fn_error $? "conditional \"VIDEODARWIN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_IMAGEMAGICK___TRUE}" && test -z "${HAVE_LIB_IMAGEMAGICK___FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_IMAGEMAGICK__\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_MAGICKCORE_TRUE}" && test -z "${HAVE_LIB_MAGICKCORE_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_MAGICKCORE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_TIFF_TRUE}" && test -z "${HAVE_LIB_TIFF_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_TIFF\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_JPEG_TRUE}" && test -z "${HAVE_LIB_JPEG_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_JPEG\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_FTGL_TRUE}" && test -z "${HAVE_LIB_FTGL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_FTGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_FRIBIDI_TRUE}" && test -z "${HAVE_LIB_FRIBIDI_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_FRIBIDI\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_AVIFILE_TRUE}" && test -z "${HAVE_LIB_AVIFILE_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_AVIFILE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_GMERLIN_AVDEC_TRUE}" && test -z "${HAVE_LIB_GMERLIN_AVDEC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_GMERLIN_AVDEC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_MPEG_TRUE}" && test -z "${HAVE_LIB_MPEG_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_MPEG\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBMPEG3_TRUE}" && test -z "${HAVE_LIB_LIBMPEG3_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBMPEG3\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBQUICKTIME_TRUE}" && test -z "${HAVE_LIB_LIBQUICKTIME_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBQUICKTIME\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LQT_TRUE}" && test -z "${HAVE_LIB_LQT_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LQT\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBDC1394_2_TRUE}" && test -z "${HAVE_LIB_LIBDC1394_2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBDC1394_2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBDV_TRUE}" && test -z "${HAVE_LIB_LIBDV_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBDV\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBRAW1394_TRUE}" && test -z "${HAVE_LIB_LIBRAW1394_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBRAW1394\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBIEC61883_TRUE}" && test -z "${HAVE_LIB_LIBIEC61883_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBIEC61883\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBUNICAP_TRUE}" && test -z "${HAVE_LIB_LIBUNICAP_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBUNICAP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_UNICAP_TRUE}" && test -z "${HAVE_LIB_UNICAP_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_UNICAP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBV4L1_TRUE}" && test -z "${HAVE_LIB_LIBV4L1_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBV4L1\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_V4L_TRUE}" && test -z "${HAVE_V4L_FALSE}"; then + as_fn_error $? "conditional \"HAVE_V4L\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBV4L2_TRUE}" && test -z "${HAVE_LIB_LIBV4L2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBV4L2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_V4L2_TRUE}" && test -z "${HAVE_V4L2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_V4L2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_VFW32_TRUE}" && test -z "${HAVE_LIB_VFW32_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_VFW32\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_LIBVLC_TRUE}" && test -z "${HAVE_LIB_LIBVLC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_LIBVLC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIB_ASSIMP_TRUE}" && test -z "${HAVE_LIB_ASSIMP_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIB_ASSIMP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${ENABLED_TRUE}" && test -z "${ENABLED_FALSE}"; then + as_fn_error $? "conditional \"ENABLED\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${DISABLED_TRUE}" && test -z "${DISABLED_FALSE}"; then + as_fn_error $? "conditional \"DISABLED\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by Gem $as_me 0.93, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to . +Gem home page: ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +Gem config.status 0.93 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' +PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' +predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' +postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' +predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' +postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' +LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' +reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' +reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' +GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' +inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' +link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' +always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' +exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' +predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' +postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' +predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' +postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in AS \ +DLLTOOL \ +OBJDUMP \ +SHELL \ +ECHO \ +PATH_SEPARATOR \ +SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +deplibs_check_method \ +file_magic_cmd \ +file_magic_glob \ +want_nocaseglob \ +sharedlib_from_linklib_cmd \ +AR \ +AR_FLAGS \ +archiver_list_spec \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +nm_file_list_spec \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_pic \ +lt_prog_compiler_wl \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +MANIFEST_TOOL \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_separator \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib \ +compiler_lib_search_dirs \ +predep_objects \ +postdep_objects \ +predeps \ +postdeps \ +compiler_lib_search_path \ +LD_CXX \ +reload_flag_CXX \ +compiler_CXX \ +lt_prog_compiler_no_builtin_flag_CXX \ +lt_prog_compiler_pic_CXX \ +lt_prog_compiler_wl_CXX \ +lt_prog_compiler_static_CXX \ +lt_cv_prog_compiler_c_o_CXX \ +export_dynamic_flag_spec_CXX \ +whole_archive_flag_spec_CXX \ +compiler_needs_object_CXX \ +with_gnu_ld_CXX \ +allow_undefined_flag_CXX \ +no_undefined_flag_CXX \ +hardcode_libdir_flag_spec_CXX \ +hardcode_libdir_separator_CXX \ +exclude_expsyms_CXX \ +include_expsyms_CXX \ +file_list_spec_CXX \ +compiler_lib_search_dirs_CXX \ +predep_objects_CXX \ +postdep_objects_CXX \ +predeps_CXX \ +postdeps_CXX \ +compiler_lib_search_path_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postlink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +sys_lib_dlsearch_path_spec \ +reload_cmds_CXX \ +old_archive_cmds_CXX \ +old_archive_from_new_cmds_CXX \ +old_archive_from_expsyms_cmds_CXX \ +archive_cmds_CXX \ +archive_expsym_cmds_CXX \ +module_cmds_CXX \ +module_expsym_cmds_CXX \ +export_symbols_cmds_CXX \ +prelink_cmds_CXX \ +postlink_cmds_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +ac_aux_dir='$ac_aux_dir' +xsi_shell='$xsi_shell' +lt_shell_append='$lt_shell_append' + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile' + + + + + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "abstractions/Makefile") CONFIG_FILES="$CONFIG_FILES abstractions/Makefile" ;; + "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "src/Gem/Makefile") CONFIG_FILES="$CONFIG_FILES src/Gem/Makefile" ;; + "src/Utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/Utils/Makefile" ;; + "src/RTE/Makefile") CONFIG_FILES="$CONFIG_FILES src/RTE/Makefile" ;; + "src/Base/Makefile") CONFIG_FILES="$CONFIG_FILES src/Base/Makefile" ;; + "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;; + "src/Output/Makefile") CONFIG_FILES="$CONFIG_FILES src/Output/Makefile" ;; + "src/deprecated/Makefile") CONFIG_FILES="$CONFIG_FILES src/deprecated/Makefile" ;; + "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; + "plugins/imageQT/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageQT/Makefile" ;; + "plugins/imageMAGICK/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageMAGICK/Makefile" ;; + "plugins/imageTIFF/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageTIFF/Makefile" ;; + "plugins/imageJPEG/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageJPEG/Makefile" ;; + "plugins/imageSGI/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/imageSGI/Makefile" ;; + "plugins/filmAVI/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmAVI/Makefile" ;; + "plugins/filmAVIPLAY/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmAVIPLAY/Makefile" ;; + "plugins/filmDS/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmDS/Makefile" ;; + "plugins/filmDarwin/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmDarwin/Makefile" ;; + "plugins/filmGMERLIN/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmGMERLIN/Makefile" ;; + "plugins/filmMPEG1/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmMPEG1/Makefile" ;; + "plugins/filmMPEG3/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmMPEG3/Makefile" ;; + "plugins/filmQT/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmQT/Makefile" ;; + "plugins/filmQT4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmQT4L/Makefile" ;; + "plugins/filmTEST/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/filmTEST/Makefile" ;; + "plugins/modelOBJ/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/modelOBJ/Makefile" ;; + "plugins/modelASSIMP2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/modelASSIMP2/Makefile" ;; + "plugins/recordQT/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordQT/Makefile" ;; + "plugins/recordQT4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordQT4L/Makefile" ;; + "plugins/recordV4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordV4L/Makefile" ;; + "plugins/recordV4L2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/recordV4L2/Makefile" ;; + "plugins/videoDC1394/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDC1394/Makefile" ;; + "plugins/videoDS/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDS/Makefile" ;; + "plugins/videoDV4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDV4L/Makefile" ;; + "plugins/videoDarwin/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoDarwin/Makefile" ;; + "plugins/videoSGI/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoSGI/Makefile" ;; + "plugins/videoTEST/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoTEST/Makefile" ;; + "plugins/videoUNICAP/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoUNICAP/Makefile" ;; + "plugins/videoV4L/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoV4L/Makefile" ;; + "plugins/videoV4L2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoV4L2/Makefile" ;; + "plugins/videoVFW/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoVFW/Makefile" ;; + "plugins/videoVLC/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/videoVLC/Makefile" ;; + "extra/pix2jpg/Makefile") CONFIG_FILES="$CONFIG_FILES extra/pix2jpg/Makefile" ;; + "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; + "Gem.pc") CONFIG_FILES="$CONFIG_FILES Gem.pc" ;; + "Gem-meta.pd") CONFIG_FILES="$CONFIG_FILES Gem-meta.pd" ;; + "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "src/Controls/Makefile") CONFIG_FILES="$CONFIG_FILES src/Controls/Makefile" ;; + "src/Geos/Makefile") CONFIG_FILES="$CONFIG_FILES src/Geos/Makefile" ;; + "src/Manips/Makefile") CONFIG_FILES="$CONFIG_FILES src/Manips/Makefile" ;; + "src/Nongeos/Makefile") CONFIG_FILES="$CONFIG_FILES src/Nongeos/Makefile" ;; + "src/Particles/Makefile") CONFIG_FILES="$CONFIG_FILES src/Particles/Makefile" ;; + "src/Pixes/Makefile") CONFIG_FILES="$CONFIG_FILES src/Pixes/Makefile" ;; + "src/openGL/Makefile") CONFIG_FILES="$CONFIG_FILES src/openGL/Makefile" ;; + "src/Vertex/Makefile") CONFIG_FILES="$CONFIG_FILES src/Vertex/Makefile" ;; + "abstractions/gemdefaultwindow.pd") CONFIG_FILES="$CONFIG_FILES abstractions/gemdefaultwindow.pd" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) + + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +# The names of the tagged configurations supported by this script. +available_tags="CXX " + +# ### BEGIN LIBTOOL CONFIG + +# Assembler program. +AS=$lt_AS + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Object dumper program. +OBJDUMP=$lt_OBJDUMP + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# The PATH separator for the build system. +PATH_SEPARATOR=$lt_PATH_SEPARATOR + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method = "file_magic". +file_magic_cmd=$lt_file_magic_cmd + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + +# The archiver. +AR=$lt_AR + +# Flags to create an archive. +AR_FLAGS=$lt_AR_FLAGS + +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec + +# The root where to search for dependent libraries,and in which our libraries should be installed. +lt_sysroot=$lt_sysroot + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects +postdep_objects=$lt_postdep_objects +predeps=$lt_predeps +postdeps=$lt_postdeps + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + +ltmain="$ac_aux_dir/ltmain.sh" + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + if test x"$xsi_shell" = xyes; then + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ +func_dirname ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_basename ()$/,/^} # func_basename /c\ +func_basename ()\ +{\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ +func_dirname_and_basename ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ +func_stripname ()\ +{\ +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ +\ # positional parameters, so assign one to ordinary parameter first.\ +\ func_stripname_result=${3}\ +\ func_stripname_result=${func_stripname_result#"${1}"}\ +\ func_stripname_result=${func_stripname_result%"${2}"}\ +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ +func_split_long_opt ()\ +{\ +\ func_split_long_opt_name=${1%%=*}\ +\ func_split_long_opt_arg=${1#*=}\ +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ +func_split_short_opt ()\ +{\ +\ func_split_short_opt_arg=${1#??}\ +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ +func_lo2o ()\ +{\ +\ case ${1} in\ +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ +\ *) func_lo2o_result=${1} ;;\ +\ esac\ +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_xform ()$/,/^} # func_xform /c\ +func_xform ()\ +{\ + func_xform_result=${1%.*}.lo\ +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_arith ()$/,/^} # func_arith /c\ +func_arith ()\ +{\ + func_arith_result=$(( $* ))\ +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_len ()$/,/^} # func_len /c\ +func_len ()\ +{\ + func_len_result=${#1}\ +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + +fi + +if test x"$lt_shell_append" = xyes; then + sed -e '/^func_append ()$/,/^} # func_append /c\ +func_append ()\ +{\ + eval "${1}+=\\${2}"\ +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ +func_append_quoted ()\ +{\ +\ func_quote_for_eval "${2}"\ +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} +fi + + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + + + cat <<_LT_EOF >> "$ofile" + +# ### BEGIN LIBTOOL TAG CONFIG: CXX + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# How to create reloadable object files. +reload_flag=$lt_reload_flag_CXX +reload_cmds=$lt_reload_cmds_CXX + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_CXX + +# A language specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU compiler? +with_gcc=$GCC_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_CXX + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_CXX + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_CXX + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_CXX + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds_CXX + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_CXX + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_CXX +postdep_objects=$lt_postdep_objects_CXX +predeps=$lt_predeps_CXX +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# ### END LIBTOOL TAG CONFIG: CXX +_LT_EOF + + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi + +# +# CONFIG_SUBDIRS section. +# +if test "$no_recursion" != yes; then + + # Remove --cache-file, --srcdir, and --disable-option-checking arguments + # so they do not pile up. + ac_sub_configure_args= + ac_prev= + eval "set x $ac_configure_args" + shift + for ac_arg + do + if test -n "$ac_prev"; then + ac_prev= + continue + fi + case $ac_arg in + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ + | --c=*) + ;; + --config-cache | -C) + ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + ;; + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + ;; + --disable-option-checking) + ;; + *) + case $ac_arg in + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append ac_sub_configure_args " '$ac_arg'" ;; + esac + done + + # Always prepend --prefix to ensure using the same prefix + # in subdir configurations. + ac_arg="--prefix=$prefix" + case $ac_arg in + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" + + # Pass --silent + if test "$silent" = yes; then + ac_sub_configure_args="--silent $ac_sub_configure_args" + fi + + # Always prepend --disable-option-checking to silence warnings, since + # different subdirs can have different --enable and --with options. + ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" + + ac_popdir=`pwd` + for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue + + # Do not complain, so a configure script can configure whichever + # parts of a large source tree are present. + test -d "$srcdir/$ac_dir" || continue + + ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" + $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 + $as_echo "$ac_msg" >&6 + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + cd "$ac_dir" + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f "$ac_srcdir/configure.gnu"; then + ac_sub_configure=$ac_srcdir/configure.gnu + elif test -f "$ac_srcdir/configure"; then + ac_sub_configure=$ac_srcdir/configure + elif test -f "$ac_srcdir/configure.in"; then + # This should be Cygnus configure. + ac_sub_configure=$ac_aux_dir/configure + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 +$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} + ac_sub_configure= + fi + + # The recursion is here. + if test -n "$ac_sub_configure"; then + # Make the cache file name correct relative to the subdirectory. + case $cache_file in + [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; + *) # Relative name. + ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} + # The eval makes quoting arguments work. + eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ + --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || + as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 + fi + + cd "$ac_popdir" + done +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + + +if test "x$have_ftgl" = "xyes"; then + have_font=FTGL +fi + +if test "x$have_ImageMagick" = "xyes"; then + have_ImageMagick="yes (Magick++)" +else + if test "x$have_MagickCore" = "xyes"; then + have_ImageMagick="yes (MagickCore)" + fi +fi + +if test "x$have_quicktime_framework" = "x"; then have_quicktime_framework="no"; fi + +if test "x$have_quicktime_framework" = "xyes"; then + have_libquicktime="yes (framework)" +fi + +have_ieee1394="" +if test "x$have_libdc1394_2" = "xyes"; then + have_ieee1394="$have_ieee1394 libdc1394" +fi + +if test "x$have_ieee1394" = "x"; then + have_ieee1394="no"; +else + have_ieee1394="yes (${have_ieee1394# })" +fi + +if test "x${have_v4l}" = "x"; then have_v4l="no"; fi +if test "x${have_v4l2}" = "x"; then have_v4l2="no"; fi +if test "x${have_ieee1394}" = "x"; then have_ieee1394="no"; fi +if test "x${have_libdv}" = "x"; then have_libdv="no"; fi +if test "x${have_unicap}" = "x"; then have_unicap="no"; fi +if test "x${have_vfw32}" = "x"; then have_vfw32="no"; fi +# TODO: have_ds + +if test "x$with_film" = "xplugins"; then + use_film_plugins="yes" +else + use_film_plugins="no (using $with_film backend)" +fi + +if test "x$with_video" = "xplugins"; then + use_video_plugins="yes" +else + use_video_plugins="no (using $with_video backend)" +fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: +Result: + Target : Gem.${EXT} + Objects : ${GEM_TARGETS} + default window : ${GEM_DEFAULT_WINDOW} + +Configuration: + Compiler : ${CXX} + CXXFLAGS : ${CXXFLAGS} ${X_CFLAGS} + : ${PKG_CFLAGS} + DEFINES : ${DEFINES} + + LIBS : ${LIBS} + : ${PKG_LIBS} + LDFLAGS : ${LDFLAGS} + : ${X_LIBS} + + Install path : ${prefix} + + RTE (${GEM_RTE}): + external-extension : ${GEM_RTE_EXTENSION} + CFLAGS : ${GEM_RTE_CFLAGS} + LIBS : ${GEM_RTE_LIBS} + + used optional libraries: + + font-rendering : ${have_font} + default font : ${GEM_DEFAULT_FONT} + + image-support + use ImageMagick : ${have_ImageMagick} + use QuickTime : ${have_quicktime_framework} + use TIFF : ${have_tiff} + use JPEG : ${have_jpeg} + moviefile-support + use PLUGINS : ${use_film_plugins} + use mpeg : ${have_mpeg} + use mpeg-3 : ${have_libmpeg3} + use QuickTime : ${have_libquicktime} + use aviplay : ${have_avifile} + use gmerlin : ${have_gmerlin_avdec} + capture-support + use PLUGINS : ${use_video_plugins} + use v4l : ${have_v4l} + use v4l2 : ${have_v4l2} + use ieee1394 : ${have_ieee1394} + use DV : ${have_libdv} + use Unicap : ${have_unicap} + use Video-for-WinDOS : ${have_vfw32} + use QuickTime : ${have_quicktime_framework} +" >&5 +$as_echo " +Result: + Target : Gem.${EXT} + Objects : ${GEM_TARGETS} + default window : ${GEM_DEFAULT_WINDOW} + +Configuration: + Compiler : ${CXX} + CXXFLAGS : ${CXXFLAGS} ${X_CFLAGS} + : ${PKG_CFLAGS} + DEFINES : ${DEFINES} + + LIBS : ${LIBS} + : ${PKG_LIBS} + LDFLAGS : ${LDFLAGS} + : ${X_LIBS} + + Install path : ${prefix} + + RTE (${GEM_RTE}): + external-extension : ${GEM_RTE_EXTENSION} + CFLAGS : ${GEM_RTE_CFLAGS} + LIBS : ${GEM_RTE_LIBS} + + used optional libraries: + + font-rendering : ${have_font} + default font : ${GEM_DEFAULT_FONT} + + image-support + use ImageMagick : ${have_ImageMagick} + use QuickTime : ${have_quicktime_framework} + use TIFF : ${have_tiff} + use JPEG : ${have_jpeg} + moviefile-support + use PLUGINS : ${use_film_plugins} + use mpeg : ${have_mpeg} + use mpeg-3 : ${have_libmpeg3} + use QuickTime : ${have_libquicktime} + use aviplay : ${have_avifile} + use gmerlin : ${have_gmerlin_avdec} + capture-support + use PLUGINS : ${use_video_plugins} + use v4l : ${have_v4l} + use v4l2 : ${have_v4l2} + use ieee1394 : ${have_ieee1394} + use DV : ${have_libdv} + use Unicap : ${have_unicap} + use Video-for-WinDOS : ${have_vfw32} + use QuickTime : ${have_quicktime_framework} +" >&6; } + +if test "x$have_pd" = "xno"; then + as_fn_error $? "Pd (header) is mandatory and seems to be missing!" "$LINENO" 5 +fi + +if test "x$no_gl" = "xyes"; then + as_fn_error $? "GL (headers) not found! you need openGL!!!" "$LINENO" 5 +fi + +if test "x$no_glu" = "xyes" && test "x$no_agl" = "xyes"; then + as_fn_error $? "GLU (headers) not found! you need openGL Utility Library!!!" "$LINENO" 5 +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Now run make ..." >&5 +$as_echo "Now run make ..." >&6; } diff --git a/Gem/configure.ac b/src/Gem/configure.ac similarity index 100% rename from Gem/configure.ac rename to src/Gem/configure.ac diff --git a/pd-0.44-2/m4/config/depcomp b/src/Gem/depcomp similarity index 100% rename from pd-0.44-2/m4/config/depcomp rename to src/Gem/depcomp diff --git a/src/Gem/doc/CodingStyle.txt b/src/Gem/doc/CodingStyle.txt new file mode 100644 index 0000000..0e0d9c6 --- /dev/null +++ b/src/Gem/doc/CodingStyle.txt @@ -0,0 +1,145 @@ +Coding Guidelines for Gem +========================= +2011, IOhannes m zmölnig + +in no special order... + +directory structure +------------------- +src/Gem + Gem core architecture classes +src/Utils + Utilitiy code that can be re-used in several different contexts +src/RTE + Pd-specific code (RTE=Real Time Environment) + (in the far future i would like to have all Pd-specific code wrapped in + here) +src/plugins + plugin infrastructure and (pure virtual) baseclasses for the various + plugins +src/Base + Base classes for objectclasses +src/deprecated + deprecated headers for backward compatibility + +src/Controls/ + objectclasses: CONTROL +src/Manips/ + objectclasses: MANIPulatorS +src/Geos/ + objectclasses: GEometric ObjectS +src/Nongeos/ + objectclasses: positionable Objects that are not Geos +src/openGL/ + objectclasses: OPENGL wrapper objects +src/Particles/ + objectclasses: PARTICLE engine +src/Pixes/ + objectclasses: PIXEl proceSsing + +src/Output/ + objectclasses: window handling + +plugins/*/ + plugin implementations for various backends + +extra/*/ + additional objectclasses + +directories containing objectclasses, should not hold auxiliary files! +these should go into src/Utils/ (if they are of general interest) or the code +should be embedded into the objectclass code. +a noteable exception is the extra/*/ folder + + +file structure +-------------- +C++ files are suffixed ".cpp". +they are accompanied by a header file ".h" containing the public interface. +there is a file for each objectclass named like the objectclass. e.g. +> src/Manips/ortho.cpp +contains the code for the [ortho] objectclass. + + +private/protected/public +------------------------ +ctor/dtor should be public +methods should be protected/public +members should be protected + +private members should be hidden using a PIMPL idiom + + +callbacks +--------- +message callbacks from the RTE should be implemented using the CPPEXTERN_MSG* +macros defined in src/RTE/MessageCallbacks.h +this removes the need for static callbacks in the header-files + + +C-style vs C++-style +-------------------- +while Pd is written in C, Gem is written in C++; +please try to use C++ idioms whenever possible. + +use STL instead of inventing your own data containers! +esp. use "std::string" instead of "char*" whenever possible + +the Gem code base is full of C-idioms and types; this is mainly because i +started as a C-programmer and only gradually learned using C++; don't repeat my +follies :-) + + +variable naming +--------------- +member variables are usually prefixed with "m_" +static variables are usually prefixed with "s_" + + +initialization +-------------- +initialize all member variables in the constructor(s). +use "member initialization lists" when possible. +e.g. use +> foo::foo(void) : m_x(0), m_y(0) {} +rather than +> foo::foo(void) { m_x=0; m_y=0; } + + +import/export +------------- +all functions/classes that should be visible from outside must be exported using +the GEM_EXTERN macro. +all objectclasses are exported. +all utility classes are exported. + + +dependencies +------------ +the dependencies of Gem should be kept at a minimum (ideally only openGL) +objectclasses that use special libraries should go into extra/ +if you want to add functionality to Gem that is (or can be) implemented by a +number of different backends (libraries), this should be done via an abstract +interface and plugins, thus moving the binary dependency outside of Gem. + + +Indentation +----------- +TODO + + +git commits +----------- +try to avoid committing pd-patches and C++ code within the same +commit. conflicts in C++-code can usually easily be resolved, whereas +conflicts in Pd-patches are usually impossible to resolve (but for the +most trivial cases) + + +git branching +------------- +try to avoid forking from branches other than master. +esp. avoid branches on top of branches. +before committing a pull rqeuest, make sure that your branch applies clean to +current master. + diff --git a/src/Gem/doc/GemPrimer.pdf b/src/Gem/doc/GemPrimer.pdf new file mode 100644 index 0000000..69a5043 Binary files /dev/null and b/src/Gem/doc/GemPrimer.pdf differ diff --git a/src/Gem/doc/Makefile.am b/src/Gem/doc/Makefile.am new file mode 100644 index 0000000..bed2d8b --- /dev/null +++ b/src/Gem/doc/Makefile.am @@ -0,0 +1,47 @@ +AUTOMAKE_OPTIONS = foreign + +gemdocdir=$(pkglibdir) + +nobase_dist_gemdoc_DATA = \ + cMatrix.html \ + gem.known_bugs.txt \ + GemPrimer.pdf \ + gem.release_notes.txt \ + gem.todo.txt \ + manual/add.jpg \ + manual/addResult.jpg \ + manual/Advanced.html \ + manual/basicCube.jpg \ + manual/BasicObj.html \ + manual/counter.jpg \ + manual/GemFaq.html \ + manual/gemwin.jpg \ + manual/GemWPd.html \ + manual/Gloss.html \ + manual/Images.html \ + manual/index.html \ + manual/Input.html \ + manual/Intro.html \ + manual/invertFrac.jpg \ + manual/invert.jpg \ + manual/Lighting.html \ + manual/light.jpg \ + manual/ListObjects.html \ + manual/mask.jpg \ + manual/maskResult.jpg \ + manual/normalFrac.jpg \ + manual/Particles.html \ + manual/Pixes.html \ + manual/pixImage.jpg \ + manual/redSquare.jpg \ + manual/sphere15.jpg \ + manual/sphere5.jpg \ + manual/Texture.html \ + manual/texture.jpg \ + manual/transXYZ.jpg \ + manual/tribar.gif \ + manual/tripleLine.jpg \ + manual/tripleRand.jpg \ + manual/Utility.html \ + manual/world_light.jpg \ + manual/WriteCode.html diff --git a/src/Gem/doc/Makefile.in b/src/Gem/doc/Makefile.in new file mode 100644 index 0000000..d9c9c07 --- /dev/null +++ b/src/Gem/doc/Makefile.in @@ -0,0 +1,648 @@ +# Makefile.in generated by automake 1.11.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = doc +DIST_COMMON = $(nobase_dist_gemdoc_DATA) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_gl.m4 \ + $(top_srcdir)/m4/ax_check_glu.m4 \ + $(top_srcdir)/m4/ax_check_glut.m4 \ + $(top_srcdir)/m4/ax_compiler_vendor.m4 \ + $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/gem.m4 \ + $(top_srcdir)/m4/iem_ftgl.m4 $(top_srcdir)/m4/iem_opengl.m4 \ + $(top_srcdir)/m4/iem_operatingsystem.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/src/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(gemdocdir)" +DATA = $(nobase_dist_gemdoc_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AGL_CFLAGS = @AGL_CFLAGS@ +AGL_LIBS = @AGL_LIBS@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFINES = @DEFINES@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXT = @EXT@ +FGREP = @FGREP@ +GEM_ARCH_CXXFLAGS = @GEM_ARCH_CXXFLAGS@ +GEM_ARCH_LDFLAGS = @GEM_ARCH_LDFLAGS@ +GEM_CFLAGS = @GEM_CFLAGS@ +GEM_CPPFLAGS = @GEM_CPPFLAGS@ +GEM_CXXFLAGS = @GEM_CXXFLAGS@ +GEM_DEFAULT_WINDOW = @GEM_DEFAULT_WINDOW@ +GEM_EXTERNAL_CFLAGS = @GEM_EXTERNAL_CFLAGS@ +GEM_EXTERNAL_CPPFLAGS = @GEM_EXTERNAL_CPPFLAGS@ +GEM_EXTERNAL_LIBS = @GEM_EXTERNAL_LIBS@ +GEM_FRAMEWORK_AGL = @GEM_FRAMEWORK_AGL@ +GEM_FRAMEWORK_CARBON = @GEM_FRAMEWORK_CARBON@ +GEM_FRAMEWORK_COCOA = @GEM_FRAMEWORK_COCOA@ +GEM_FRAMEWORK_QUICKTIME = @GEM_FRAMEWORK_QUICKTIME@ +GEM_LIBS = @GEM_LIBS@ +GEM_LIB_ASSIMP_CFLAGS = @GEM_LIB_ASSIMP_CFLAGS@ +GEM_LIB_ASSIMP_LIBS = @GEM_LIB_ASSIMP_LIBS@ +GEM_LIB_AVIFILE_CFLAGS = @GEM_LIB_AVIFILE_CFLAGS@ +GEM_LIB_AVIFILE_LIBS = @GEM_LIB_AVIFILE_LIBS@ +GEM_LIB_FRIBIDI_CFLAGS = @GEM_LIB_FRIBIDI_CFLAGS@ +GEM_LIB_FRIBIDI_LIBS = @GEM_LIB_FRIBIDI_LIBS@ +GEM_LIB_FTGL_CFLAGS = @GEM_LIB_FTGL_CFLAGS@ +GEM_LIB_FTGL_LIBS = @GEM_LIB_FTGL_LIBS@ +GEM_LIB_GLEW_CFLAGS = @GEM_LIB_GLEW_CFLAGS@ +GEM_LIB_GLEW_LIBS = @GEM_LIB_GLEW_LIBS@ +GEM_LIB_GMERLIN_AVDEC_CFLAGS = @GEM_LIB_GMERLIN_AVDEC_CFLAGS@ +GEM_LIB_GMERLIN_AVDEC_LIBS = @GEM_LIB_GMERLIN_AVDEC_LIBS@ +GEM_LIB_IMAGEMAGICK___CFLAGS = @GEM_LIB_IMAGEMAGICK___CFLAGS@ +GEM_LIB_IMAGEMAGICK___LIBS = @GEM_LIB_IMAGEMAGICK___LIBS@ +GEM_LIB_JPEG_CFLAGS = @GEM_LIB_JPEG_CFLAGS@ +GEM_LIB_JPEG_LIBS = @GEM_LIB_JPEG_LIBS@ +GEM_LIB_LIBDC1394_2_CFLAGS = @GEM_LIB_LIBDC1394_2_CFLAGS@ +GEM_LIB_LIBDC1394_2_LIBS = @GEM_LIB_LIBDC1394_2_LIBS@ +GEM_LIB_LIBDV_CFLAGS = @GEM_LIB_LIBDV_CFLAGS@ +GEM_LIB_LIBDV_LIBS = @GEM_LIB_LIBDV_LIBS@ +GEM_LIB_LIBIEC61883_CFLAGS = @GEM_LIB_LIBIEC61883_CFLAGS@ +GEM_LIB_LIBIEC61883_LIBS = @GEM_LIB_LIBIEC61883_LIBS@ +GEM_LIB_LIBMPEG3_CFLAGS = @GEM_LIB_LIBMPEG3_CFLAGS@ +GEM_LIB_LIBMPEG3_LIBS = @GEM_LIB_LIBMPEG3_LIBS@ +GEM_LIB_LIBQUICKTIME_CFLAGS = @GEM_LIB_LIBQUICKTIME_CFLAGS@ +GEM_LIB_LIBQUICKTIME_LIBS = @GEM_LIB_LIBQUICKTIME_LIBS@ +GEM_LIB_LIBRAW1394_CFLAGS = @GEM_LIB_LIBRAW1394_CFLAGS@ +GEM_LIB_LIBRAW1394_LIBS = @GEM_LIB_LIBRAW1394_LIBS@ +GEM_LIB_LIBUNICAP_CFLAGS = @GEM_LIB_LIBUNICAP_CFLAGS@ +GEM_LIB_LIBUNICAP_LIBS = @GEM_LIB_LIBUNICAP_LIBS@ +GEM_LIB_LIBV4L1_CFLAGS = @GEM_LIB_LIBV4L1_CFLAGS@ +GEM_LIB_LIBV4L1_LIBS = @GEM_LIB_LIBV4L1_LIBS@ +GEM_LIB_LIBV4L2_CFLAGS = @GEM_LIB_LIBV4L2_CFLAGS@ +GEM_LIB_LIBV4L2_LIBS = @GEM_LIB_LIBV4L2_LIBS@ +GEM_LIB_LIBVLC_CFLAGS = @GEM_LIB_LIBVLC_CFLAGS@ +GEM_LIB_LIBVLC_LIBS = @GEM_LIB_LIBVLC_LIBS@ +GEM_LIB_LQT_CFLAGS = @GEM_LIB_LQT_CFLAGS@ +GEM_LIB_LQT_LIBS = @GEM_LIB_LQT_LIBS@ +GEM_LIB_MAGICKCORE_CFLAGS = @GEM_LIB_MAGICKCORE_CFLAGS@ +GEM_LIB_MAGICKCORE_LIBS = @GEM_LIB_MAGICKCORE_LIBS@ +GEM_LIB_MPEG_CFLAGS = @GEM_LIB_MPEG_CFLAGS@ +GEM_LIB_MPEG_LIBS = @GEM_LIB_MPEG_LIBS@ +GEM_LIB_SDL_CFLAGS = @GEM_LIB_SDL_CFLAGS@ +GEM_LIB_SDL_LIBS = @GEM_LIB_SDL_LIBS@ +GEM_LIB_TIFF_CFLAGS = @GEM_LIB_TIFF_CFLAGS@ +GEM_LIB_TIFF_LIBS = @GEM_LIB_TIFF_LIBS@ +GEM_LIB_VFW32_CFLAGS = @GEM_LIB_VFW32_CFLAGS@ +GEM_LIB_VFW32_LIBS = @GEM_LIB_VFW32_LIBS@ +GEM_PTHREAD_CFLAGS = @GEM_PTHREAD_CFLAGS@ +GEM_PTHREAD_LIBS = @GEM_PTHREAD_LIBS@ +GEM_RTE = @GEM_RTE@ +GEM_RTE_CFLAGS = @GEM_RTE_CFLAGS@ +GEM_RTE_EXTENSION = @GEM_RTE_EXTENSION@ +GEM_RTE_LIBS = @GEM_RTE_LIBS@ +GEM_TARGETS = @GEM_TARGETS@ +GLUT_CFLAGS = @GLUT_CFLAGS@ +GLUT_LIBS = @GLUT_LIBS@ +GLU_CFLAGS = @GLU_CFLAGS@ +GLU_LIBS = @GLU_LIBS@ +GLX_CFLAGS = @GLX_CFLAGS@ +GLX_LIBS = @GLX_LIBS@ +GL_CFLAGS = @GL_CFLAGS@ +GL_LIBS = @GL_LIBS@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEDEP_FLAGS = @MAKEDEP_FLAGS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJC = @OBJC@ +OBJCDEPMODE = @OBJCDEPMODE@ +OBJCFLAGS = @OBJCFLAGS@ +OBJCXX = @OBJCXX@ +OBJCXXFLAGS = @OBJCXXFLAGS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_ASSIMP_CFLAGS = @PKG_ASSIMP_CFLAGS@ +PKG_ASSIMP_LIBS = @PKG_ASSIMP_LIBS@ +PKG_AVIFILE_CFLAGS = @PKG_AVIFILE_CFLAGS@ +PKG_AVIFILE_LIBS = @PKG_AVIFILE_LIBS@ +PKG_CFLAGS = @PKG_CFLAGS@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_FRIBIDI_CFLAGS = @PKG_FRIBIDI_CFLAGS@ +PKG_FRIBIDI_LIBS = @PKG_FRIBIDI_LIBS@ +PKG_FTGL_CFLAGS = @PKG_FTGL_CFLAGS@ +PKG_FTGL_LIBS = @PKG_FTGL_LIBS@ +PKG_GLEW_CFLAGS = @PKG_GLEW_CFLAGS@ +PKG_GLEW_LIBS = @PKG_GLEW_LIBS@ +PKG_GMERLIN_AVDEC_CFLAGS = @PKG_GMERLIN_AVDEC_CFLAGS@ +PKG_GMERLIN_AVDEC_LIBS = @PKG_GMERLIN_AVDEC_LIBS@ +PKG_IMAGEMAGICK___CFLAGS = @PKG_IMAGEMAGICK___CFLAGS@ +PKG_IMAGEMAGICK___LIBS = @PKG_IMAGEMAGICK___LIBS@ +PKG_JPEG_CFLAGS = @PKG_JPEG_CFLAGS@ +PKG_JPEG_LIBS = @PKG_JPEG_LIBS@ +PKG_LIBDC1394_2_CFLAGS = @PKG_LIBDC1394_2_CFLAGS@ +PKG_LIBDC1394_2_LIBS = @PKG_LIBDC1394_2_LIBS@ +PKG_LIBDV_CFLAGS = @PKG_LIBDV_CFLAGS@ +PKG_LIBDV_LIBS = @PKG_LIBDV_LIBS@ +PKG_LIBIEC61883_CFLAGS = @PKG_LIBIEC61883_CFLAGS@ +PKG_LIBIEC61883_LIBS = @PKG_LIBIEC61883_LIBS@ +PKG_LIBMPEG3_CFLAGS = @PKG_LIBMPEG3_CFLAGS@ +PKG_LIBMPEG3_LIBS = @PKG_LIBMPEG3_LIBS@ +PKG_LIBQUICKTIME_CFLAGS = @PKG_LIBQUICKTIME_CFLAGS@ +PKG_LIBQUICKTIME_LIBS = @PKG_LIBQUICKTIME_LIBS@ +PKG_LIBRAW1394_CFLAGS = @PKG_LIBRAW1394_CFLAGS@ +PKG_LIBRAW1394_LIBS = @PKG_LIBRAW1394_LIBS@ +PKG_LIBS = @PKG_LIBS@ +PKG_LIBUNICAP_CFLAGS = @PKG_LIBUNICAP_CFLAGS@ +PKG_LIBUNICAP_LIBS = @PKG_LIBUNICAP_LIBS@ +PKG_LIBV4L1_CFLAGS = @PKG_LIBV4L1_CFLAGS@ +PKG_LIBV4L1_LIBS = @PKG_LIBV4L1_LIBS@ +PKG_LIBV4L2_CFLAGS = @PKG_LIBV4L2_CFLAGS@ +PKG_LIBV4L2_LIBS = @PKG_LIBV4L2_LIBS@ +PKG_LIBVLC_CFLAGS = @PKG_LIBVLC_CFLAGS@ +PKG_LIBVLC_LIBS = @PKG_LIBVLC_LIBS@ +PKG_LQT_CFLAGS = @PKG_LQT_CFLAGS@ +PKG_LQT_LIBS = @PKG_LQT_LIBS@ +PKG_MAGICKCORE_CFLAGS = @PKG_MAGICKCORE_CFLAGS@ +PKG_MAGICKCORE_LIBS = @PKG_MAGICKCORE_LIBS@ +PKG_MPEG_CFLAGS = @PKG_MPEG_CFLAGS@ +PKG_MPEG_LIBS = @PKG_MPEG_LIBS@ +PKG_SDL_CFLAGS = @PKG_SDL_CFLAGS@ +PKG_SDL_LIBS = @PKG_SDL_LIBS@ +PKG_TIFF_CFLAGS = @PKG_TIFF_CFLAGS@ +PKG_TIFF_LIBS = @PKG_TIFF_LIBS@ +PKG_VFW32_CFLAGS = @PKG_VFW32_CFLAGS@ +PKG_VFW32_LIBS = @PKG_VFW32_LIBS@ +PTHREAD_CC = @PTHREAD_CC@ +PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ +PTHREAD_LIBS = @PTHREAD_LIBS@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XMKMF = @XMKMF@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +ac_ct_OBJC = @ac_ct_OBJC@ +ac_ct_OBJCXX = @ac_ct_OBJCXX@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +ax_pthread_config = @ax_pthread_config@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +subdirs = @subdirs@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AUTOMAKE_OPTIONS = foreign +gemdocdir = $(pkglibdir) +nobase_dist_gemdoc_DATA = \ + cMatrix.html \ + gem.known_bugs.txt \ + GemPrimer.pdf \ + gem.release_notes.txt \ + gem.todo.txt \ + manual/add.jpg \ + manual/addResult.jpg \ + manual/Advanced.html \ + manual/basicCube.jpg \ + manual/BasicObj.html \ + manual/counter.jpg \ + manual/GemFaq.html \ + manual/gemwin.jpg \ + manual/GemWPd.html \ + manual/Gloss.html \ + manual/Images.html \ + manual/index.html \ + manual/Input.html \ + manual/Intro.html \ + manual/invertFrac.jpg \ + manual/invert.jpg \ + manual/Lighting.html \ + manual/light.jpg \ + manual/ListObjects.html \ + manual/mask.jpg \ + manual/maskResult.jpg \ + manual/normalFrac.jpg \ + manual/Particles.html \ + manual/Pixes.html \ + manual/pixImage.jpg \ + manual/redSquare.jpg \ + manual/sphere15.jpg \ + manual/sphere5.jpg \ + manual/Texture.html \ + manual/texture.jpg \ + manual/transXYZ.jpg \ + manual/tribar.gif \ + manual/tripleLine.jpg \ + manual/tripleRand.jpg \ + manual/Utility.html \ + manual/world_light.jpg \ + manual/WriteCode.html + +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign doc/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-nobase_dist_gemdocDATA: $(nobase_dist_gemdoc_DATA) + @$(NORMAL_INSTALL) + @list='$(nobase_dist_gemdoc_DATA)'; test -n "$(gemdocdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(gemdocdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(gemdocdir)" || exit 1; \ + fi; \ + $(am__nobase_list) | while read dir files; do \ + xfiles=; for file in $$files; do \ + if test -f "$$file"; then xfiles="$$xfiles $$file"; \ + else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \ + test -z "$$xfiles" || { \ + test "x$$dir" = x. || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(gemdocdir)/$$dir'"; \ + $(MKDIR_P) "$(DESTDIR)$(gemdocdir)/$$dir"; }; \ + echo " $(INSTALL_DATA) $$xfiles '$(DESTDIR)$(gemdocdir)/$$dir'"; \ + $(INSTALL_DATA) $$xfiles "$(DESTDIR)$(gemdocdir)/$$dir" || exit $$?; }; \ + done + +uninstall-nobase_dist_gemdocDATA: + @$(NORMAL_UNINSTALL) + @list='$(nobase_dist_gemdoc_DATA)'; test -n "$(gemdocdir)" || list=; \ + $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \ + dir='$(DESTDIR)$(gemdocdir)'; $(am__uninstall_files_from_dir) +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(gemdocdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-nobase_dist_gemdocDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-nobase_dist_gemdocDATA + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man \ + install-nobase_dist_gemdocDATA install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ + uninstall-nobase_dist_gemdocDATA + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/Gem/doc/cMatrix.html b/src/Gem/doc/cMatrix.html new file mode 100644 index 0000000..fe4cd04 --- /dev/null +++ b/src/Gem/doc/cMatrix.html @@ -0,0 +1,270 @@ + + +Matrix Operations for Image Processing + + +
+

Matrix Operations for Image Processing

+

Paul Haeberli

+

Nov 1993

+Horiz Bar +

Introduction

+

+Four by four matrices are commonly used to transform geometry for 3D +rendering. These matrices may also be used to transform RGB colors, to scale +RGB colors, and to control hue, saturation and contrast. The most important +advantage of using matrices is that any number of color transformations +can be composed using standard matrix multiplication. +

+Please note that for these operations to be correct, we really must operate +on linear brightness values. If the input image is in a non-linear brightness +space RGB colors must be transformed into a linear space before these +matrix operations are used. + +

Color Transformation

+RGB colors are transformed by a four by four matrix as shown here: + +
+    xformrgb(mat,r,g,b,tr,tg,tb)
+    float mat[4][4];
+    float r,g,b;
+    float *tr,*tg,*tb;
+    {
+        *tr = r*mat[0][0] + g*mat[1][0] +
+		    b*mat[2][0] + mat[3][0];
+        *tg = r*mat[0][1] + g*mat[1][1] +
+		    b*mat[2][1] + mat[3][1];
+        *tb = r*mat[0][2] + g*mat[1][2] +
+		    b*mat[2][2] + mat[3][2];
+    }
+
+ +

The Identity

+This is the identity matrix: +
+    float mat[4][4] = {
+        1.0,    0.0,    0.0,    0.0,
+        0.0,    1.0,    0.0,    0.0,
+        0.0,    0.0,    1.0,    0.0,
+        0.0,    0.0,    0.0,    1.0,
+    };
+
+Transforming colors by the identity matrix will leave them unchanged. + +

Changing Brightness

+To scale RGB colors a matrix like this is used: +
+    float mat[4][4] = {
+        rscale, 0.0,    0.0,    0.0,
+        0.0,    gscale, 0.0,    0.0,
+        0.0,    0.0,    bscale, 0.0,
+        0.0,    0.0,    0.0,    1.0,
+    };
+
+Where rscale, gscale, and bscale specify how much to scale the r, g, and b +components of colors. This can be used to alter the color balance of an image. +

+In effect, this calculates: +

+	tr = r*rscale;
+	tg = g*gscale;
+	tb = b*bscale;
+
+ +

Modifying Saturation

+ + +

Converting to Luminance

+To convert a color image into a black and white image, this matrix is used: +
+    float mat[4][4] = {
+        rwgt,   rwgt,   rwgt,   0.0,
+        gwgt,   gwgt,   gwgt,   0.0,
+        bwgt,   bwgt,   bwgt,   0.0,
+        0.0,    0.0,    0.0,    1.0,
+    };
+
+Where rwgt is 0.3086, gwgt is 0.6094, and bwgt is 0.0820. This is the +luminance vector. Notice here that we do not use the standard NTSC weights +of 0.299, 0.587, and 0.114. The NTSC weights are only applicable to RGB +colors in a gamma 2.2 color space. For linear RGB colors the values above +are better. +

+In effect, this calculates: +

+	tr = r*rwgt + g*gwgt + b*bwgt;
+	tg = r*rwgt + g*gwgt + b*bwgt;
+	tb = r*rwgt + g*gwgt + b*bwgt;
+
+ +

Modifying Saturation

+ +To saturate RGB colors, this matrix is used: + +
+     float mat[4][4] = {
+        a,      b,      c,      0.0,
+        d,      e,      f,      0.0,
+        g,      h,      i,      0.0,
+        0.0,    0.0,    0.0,    1.0,
+    };
+
+Where the constants are derived from the saturation value s +as shown below: + +
+    a = (1.0-s)*rwgt + s;
+    b = (1.0-s)*rwgt;
+    c = (1.0-s)*rwgt;
+    d = (1.0-s)*gwgt;
+    e = (1.0-s)*gwgt + s;
+    f = (1.0-s)*gwgt;
+    g = (1.0-s)*bwgt;
+    h = (1.0-s)*bwgt;
+    i = (1.0-s)*bwgt + s;
+
+One nice property of this saturation matrix is that the luminance +of input RGB colors is maintained. This matrix can also be used +to complement the colors in an image by specifying a saturation +value of -1.0. +

+Notice that when s is set to 0.0, the matrix is exactly +the "convert to luminance" matrix described above. When s +is set to 1.0 the matrix becomes the identity. All saturation matrices +can be derived by interpolating between or extrapolating beyond these +two matrices. +

+This is discussed in more detail in the note on +Image Processing By Interpolation and Extrapolation. +

Applying Offsets to Color Components

+To offset the r, g, and b components of colors in an image this matrix is used: +
+    float mat[4][4] = {
+        1.0,    0.0,    0.0,    0.0,
+        0.0,    1.0,    0.0,    0.0,
+        0.0,    0.0,    1.0,    0.0,
+        roffset,goffset,boffset,1.0,
+    };
+
+This can be used along with color scaling to alter the contrast of RGB +images. + +

Simple Hue Rotation

+To rotate the hue, we perform a 3D rotation of RGB colors about the diagonal +vector [1.0 1.0 1.0]. The transformation matrix is derived as shown here: +

+ If we have functions:

+

+
identmat(mat) +
that creates an identity matrix. +
+
+
xrotatemat(mat,rsin,rcos) +
that multiplies a matrix that rotates about the x (red) axis. +
+
+
yrotatemat(mat,rsin,rcos) +
that multiplies a matrix that rotates about the y (green) axis. +
+
+
zrotatemat(mat,rsin,rcos) +
that multiplies a matrix that rotates about the z (blue) axis. +
+Then a matrix that rotates about the 1.0,1.0,1.0 diagonal can be +constructed like this: +
+First we make an identity matrix +
+    identmat(mat);
+
+Rotate the grey vector into positive Z +
+    mag = sqrt(2.0);
+    xrs = 1.0/mag;
+    xrc = 1.0/mag;
+    xrotatemat(mat,xrs,xrc);
+
+    mag = sqrt(3.0);
+    yrs = -1.0/mag;
+    yrc = sqrt(2.0)/mag;
+    yrotatemat(mat,yrs,yrc);
+
+Rotate the hue +
+    zrs = sin(rot*PI/180.0);
+    zrc = cos(rot*PI/180.0);
+    zrotatemat(mat,zrs,zrc);
+
+Rotate the grey vector back into place +
+    yrotatemat(mat,-yrs,yrc);
+    xrotatemat(mat,-xrs,xrc);
+
+The resulting matrix will rotate the hue of the input RGB colors. A rotation +of 120.0 degrees will exactly map Red into Green, Green into Blue and +Blue into Red. This transformation has one problem, however, the luminance +of the input colors is not preserved. This can be fixed with the following +refinement: + +

Hue Rotation While Preserving Luminance

+ +We make an identity matrix +
+   identmat(mmat);
+
+Rotate the grey vector into positive Z +
+    mag = sqrt(2.0);
+    xrs = 1.0/mag;
+    xrc = 1.0/mag;
+    xrotatemat(mmat,xrs,xrc);
+    mag = sqrt(3.0);
+    yrs = -1.0/mag;
+    yrc = sqrt(2.0)/mag;
+    yrotatemat(mmat,yrs,yrc);
+    matrixmult(mmat,mat,mat);
+
+Shear the space to make the luminance plane horizontal +
+    xformrgb(mmat,rwgt,gwgt,bwgt,&lx,&ly,&lz);
+    zsx = lx/lz;
+    zsy = ly/lz;
+    zshearmat(mat,zsx,zsy);
+
+Rotate the hue +
+    zrs = sin(rot*PI/180.0);
+    zrc = cos(rot*PI/180.0);
+    zrotatemat(mat,zrs,zrc);
+
+Unshear the space to put the luminance plane back +
+    zshearmat(mat,-zsx,-zsy);
+
+Rotate the grey vector back into place +
+    yrotatemat(mat,-yrs,yrc);
+    xrotatemat(mat,-xrs,xrc);
+
+

Conclusion

+I've presented several matrix transformations that may be applied +to RGB colors. Each color transformation is represented by +a 4 by 4 matrix, similar to matrices commonly used to transform 3D geometry. +

+Example C code +that demonstrates these concepts is provided for your enjoyment. +

+These transformations allow us to adjust image contrast, brightness, hue and +saturation individually. In addition, color matrix transformations concatenate +in a way similar to geometric transformations. Any sequence of +operations can be combined into a single matrix using +matrix multiplication. +

+

+ +
+
+
+ + + diff --git a/src/Gem/doc/gem.known_bugs.txt b/src/Gem/doc/gem.known_bugs.txt new file mode 100644 index 0000000..d00beb8 --- /dev/null +++ b/src/Gem/doc/gem.known_bugs.txt @@ -0,0 +1,298 @@ +GEM ONLINE DOCUMENTATION CHAPTER 4: Known bugs +---------------------------------------------- + +---------------------------- KNOWN BUGS ----------------------------- + +[pix_lumaoffset] crashes +-------------- +POSTED 15/05/04 +-------------- +BUG: pix_lumaoffset crashes when the offset-factor is very high and fill+smooth is turned on +ANS: yes; but we haven't found where the bug is hidden yet + +loading movies leaks memory under Win32 +-------------- +POSTED 4/16/02 +-------------- +BUG: each time an AVI is loaded, the used memory increases for about 400k. + after some time (and opening MANY files) this will be too much... +ANS: i fear, this is really a mikro$oft bug! (probably not;-)) + + +loading MPEG-movies crashes under Win32 +-------------- +POSTED 4/05/04 +-------------- +BUG: loading MPEG-movies (*.MPG) crashes pd +ANS: MPEG is not really supported under the Win32-version of Gem + however Gem tries to decode MPEGs via QuickTime which might crash (see below) + +loading AVI-movies does not work under Win32 +-------------- +POSTED 4/05/04 +-------------- +BUG: loading some AVI-movies with certain codecs does not work under Win2k and bigger. +ANS: Gem is (still) using a rather old API for decoding videos. + it might well be, that not all installed codecs are supported (e.g. Indeo-5) + + +have to destroy / create window to change lighting state in buffer == 1 +-------------- +POSTED 11/07/98 +-------------- +BUG: If you want to change the lighting when GEM is running in single + buffer mode, you have to destroy and then create the window. +ANS: hopefully we will drop single-buffer mode soon (enabling double-buffer feedback instead) (2004) + + +WinNT pix_video object +-------------- +POSTED 6/25/98 +------------- +BUG: The WinNT pix_video object has a lot of problems. It is not + very stable, tends to lock up the machine, etc. +ANS: don't have much problems with it. + daniel's directshow-support enables support for most newer (ieee1394,usb) cameras under win, + although the interface is somewhat different than on other OS's + (eg: set dimensions via pop-up menu,...) + + +splines are incorrect +-------------- +POSTED 6/25/98 +-------------- +BUG: In preventing the crasher in the spline object, I have introduced + another bug. Mainly, the end points don't get computed correctly. + + +Polygon doesn't tesselate (ie, polygons sometimes look strange) +-------------- +POSTED 5/19/97 +-------------- +BUG: Because the polygon object doesn't tesselate itself, + if it is concave, the behavior is undefined under OpenGL. + + +glxContext memory leak +-------------- +POSTED 5/18/97 +-------------- +BUG: The dummy glxContext doesn't ever get destroyed. Use a static object + to create and destroy it when the DSO is loaded/unloaded. + + +Indycam broken +-------------- +POSTED 5/1/97 +-------------- +BUG: The Indycam object doesn't seem to work. While getting the O2cam + up, I seem to have broken the Indycam object. One known + bug is that the Indycam doesn't accept the dimen message. +ANS: i don't have a running SGI with an indycam at hand, so i + don't know how to fix it + +---------------------------- FIXED BUGS ----------------------------- + +some geos don't render data from pix_movie correctly +-------------- +POSTED 19/03/2004 +FIXED 20/03/2004 +-------------- +BUG: Some objects don't render images correctly +ANS: Gem tries to use rectangle-textures when available + GLU-objects cannot handle such textures +FIX: send a "mode 0" message to the [pix_texture] +FIX2:put the specific GLU-code into Gem and fixed the problem + + +some geos don't render data from pix_movie correctly +-------------- +POSTED 4/24/99 +FIXED 20/03/2004 +-------------- +BUG: Sphere and cone don't texture map movie data correctly because + they ignore the texture coordinates that pix_movie sets. +ANS: as long as we use the libGLU for these objects there is not much chance + to fix the core of this problem +FIX: put the specific GLU-code into Gem and fixed the problem + + +Cone and sphere ignore textCoords +-------------- +POSTED 4/12/99 +FIXED 20/03/2004 +-------------- +BUG: The glu library is used to create the cone and sphere, so gem + doesn't control the texture coordinates used. +FIX: put the specific GLU-code into Gem and fixed the problem + + +text2d is messed up +-------------- +FIXED 01/01/04 +POSTED 2/22/98 +-------------- +BUG: text2d doesn't really work at all. There seems to be a bug + in the GLTT library which is messing up the rasterpos. +FIX: use FTGL rather than GLTT + + +curve is broken under Linux +-------------- +FIXED 01/01/04 +POSTED 0/24/99 +-------------- +BUG: if curve is used under Linux, it core dumps when rendering. + It dumps on glMap1f(GL_MAP1_VERTEX_3, 0.0, 1.0, 3, m_numInputs, &(m_vert[0][0])); +ANS: seems to work now + + +model crashes when nothing is loaded +--------------- +FIXED 01/01/04 +POSTED 10/25/02 +--------------- +BUG: if rendering is started without a model being loaded before, pd crashes +ANS: seems to be fixed sime time ago... + + +pix_imageInPlace crashes when nothing is loaded +--------------- +FIXED 01/01/04 +POSTED 10/25/02 +--------------- +BUG: when trying to download non-existant images (by specifying the wrong + preload-name), pd-crashes +ANS: seems to be fixed now... + + +Can't process pix_movie data with pix objects +-------------- +FIXED 4/15/02 +POSTED 4/24/99 +-------------- +BUG: pix_movie sends the data immediately to OpenGL, + so there is no chance to process the data. +ANS: it does what it does; [pix_film] does not send the image-data immediately, so use it instead + + +pix_2grey doesn't process the correct number of pixels +-------------- +FIXED 2/19/00 +POSTED 2/18/00 +-------------- +BUG: The pixel count is calculated with addition instead of multiplying. +ANS: Just changed how the calculation occurs. + + +tablet not reset on exit +-------------- +FIXED 1/24/99 +POSTED 8/29/98 +-------------- +BUG: If the user has a tablet, it is not reset to the default settings + on exit, making it unusable as a mouse. +ANS: Just needed to do some more cleanup on exit. Should be okay now. + + +text object can't be found +-------------- +FIXED 2/21/98 +POSTED 5/1/97 +-------------- +BUG: Because the text is a special keyword and object inside of + pd, the text object cannot be found as a GEM object. The solution + is to rename it to something else. +ANS: I am using a cool library called gltt which will render true type + fonts in OpenGL. + + +Memory exception on WinNT +-------------- +FIXED 12/15/97 +POSTED 11/30/97 +-------------- +BUG: If you use pix_image, then there is a memory exception (ie, crash) when + you exit Pd. It doesn't happen while actually running Pd/GEM. +ANS: Mysterious...it went away. + + +Polygon and curve under NT +-------------- +FIXED 10/21/97 +POSTED 10/21/97 +-------------- +BUG: The vertex calls are receiving 0, 0, 0 for x, y, z +ANS: Extra type * parameter in the vert_* calls + + +Single buffering under NT +-------------- +FIXED 10/21/97 +POSTED 10/19/97 +-------------- +BUG: Single buffering doesn't work under NT. +ANS: Need an explicit glFlush(). gemHead calls glFlush after a bang message. + + +Geos texture coordinates +-------------- +FIXED 10/17/97 +POSTED 6/16/97 +-------------- +BUG: The vertex and texture coordinates should start so that the first + S,T is 0,0 +ANS: Just did it. + + +pix_composite is backwards +-------------- +FIXED 7/12/97 +POSTED 6/16/97 +-------------- +BUG: The pix_composite object should have its inlets swapped. Conceptually + it doesn't make sense the way it works currently. +FIX: Just did it. + + +pix_convolve is broken +-------------- +FIXED 7/13/97 +POSTED 6/16/97 +-------------- +BUG: Sometimes pix_convolve doesn't work - seems to do with the scale factor +ANS: I'm not sure why it wasn't working. I have hammered it with a variey + of kernels and scales and never had a problem... +ANS2: I found a bug where pix_image didn't automatically refresh its image + at the start of rendering + + +pix_alpha is backwards +-------------- +FIXED 7/12/92 +POSTED 6/16/97 +-------------- +BUG: Sometimes it works, sometimes it doesn't +ANS: Swapped around the inlet creations + + +polygon's first inlet doesn't work +-------------- +FIXED 5/18/97 +POSTED 5/17/97 +-------------- +BUG: The first vertex of polygon doesn't work. It is always set to the + origin. Also, polygon defaults to line drawing. Check Curve for + the same problems (it is derived from polygon). +ANS: The first inlet no longer takes the first vertex. I added another + inlet. + + +fonts do not load +-------------- +FIXED 4/02/02 +POSTED 4/01/02 +-------------- +BUG: the example fonts for text2d/text3d do not load +FIX: accidentally i did a dos2unix to the *.ttf files. this damaged them. + Get new ones from ftp://iem.at/pd/Externals/GEM/misc diff --git a/src/Gem/doc/gem.release_notes.txt b/src/Gem/doc/gem.release_notes.txt new file mode 100644 index 0000000..c3e5077 --- /dev/null +++ b/src/Gem/doc/gem.release_notes.txt @@ -0,0 +1,1018 @@ +GEM ONLINE DOCUMENTATION CHAPTER 5: RELEASE NOTES + +--------------------------------------------------------------- +---------------------------- 0.91 ----------------------------- +this is the first release for 3 years, codename 'tigital' +it includes many changes, so probably i have forgotten most... + +openGL runtime checks: GEM now uses GLEW to detect openGL-features + at runtime this allows you to use all the cool features of + your brand-new graphics card with the same binary as you + used for your old gfx-card...cool + +w32-installer: there is now a w32 installer (based on NSIS) to + ease the installation of GEM on windows. + +single vs dual context: GEM uses a dual context approach to establish + a valid openGL-context at startup; + you can now turn this OFF by setting the environmental + variable "GEM_SINGLE_CONTEXT=1" + this should allow you to work if GEM crashes otherwise + +SIMD: better MMX/SSE2 handling + +pixes: fiducial tracking, artoolkit, + multitexture, texture sharing + recording streams of images into movies, + better movie reading support, better video in support, + more sophisticated pix_buffer handling + shared memory objects + +text: allow unicode characters + use vera.ttf as default font instead of the + copyrighted arial.ttf + allow to override the default font with the environment + variable "GEM_DEFAULT_FONT" + + +bugfixes: like always we have removed (and introduced) numerous + bugs, so all in all GEM should now run more stable + for an incomplete list of fixed bug see the bug-tracker + at http://sourceforge.net/projects/pd-gem + +openGL: generally use openGL-2.0 (if available) + vertex/fragment shaders (GLSL and ARB/NV) + framebuffers + + +deletion: + MarkEX has been removed from GEM and is now available as + a separate library; + hardware-interfacing objects like [gemorb] and [gemtablet] + have been removed + + + + +---------------------------- 0.90 ----------------------------- +this is the same as 0.888 +just a naming issue + +--------------------------------------------------------------- +---------------------------- 0.888 ---------------------------- + +this has taken a long time (2 years...) + +development is now done by several people: + chris clepper + günter geiger + daniel heckenberg + james tittle + IOhannes m zmölnig +günter has removed himself from the splash-screen, but he still contributes stuff + +supported platforms: windows (XP,2000,...), linux, and (tadah:) macOS-X(>10.2) +irix-support seems to be broken, but i cannot prove it + +architecture: up till now, the rendering-tree was statically built when rendering was + turned on, so you couldn't add objects dynamically and editing was painful. + now, Gem utilizes the normal pd-messaging system all the time: you can disable + parts of the rendering tree with [spigot], render sub-trees multiple times with + [t a a] and put objects into the gem-tree on the fly. + +documentation: added help for (almost ?) all Gem-objects (excluding openGL-wrappers) + new reference-patches are now working out of the box (not the old "abstract" way) + added a small pdf-tutorial + + +openGL: GEM features now a full openGL-wrapper (supporting openGL-1.2) + you can use any openGL-command like "glNormal3f" by creating a pd-object like + [GEMglNormal3f] (note the "GEM"-prefix); this should be very powerful, + however most of the objects are not (yet) tested. + if you intend to use them and think they don't work, + send me a bug report for the objects you need; + i will try to fix them gradually. + there will be not much help in GEM, since you might consult any openGL-reference + +text: we now use FTGL instead of GLTT (which is still available at compile time) + for freetype-rendering. this is supported on all 3 platforms, + looks better (at all sizes!) and allows the new [textextruded] + +geos: tube, curve3d, rubber, ripple, slideSquares, newWave + +manips: polygon_smooth for anti-aliasing of single objects + [camera] + +controls: the output of [gemmouse] can now be normalized (by giving the maxVal for x/y as + arguments: [gemmouse 1 1] will output coordinates between 0..1, no matter what + dimensions the screen has. + +particles: now the underlying libparticle-engine can be used more directly. + velocity-domains (like [part_velcone]) are deprecated and [part_velocity] + should be used instead (allowing on-the-fly domain-switching) + there are objects that allow to influence single particles + (like [part_vertex]) + most interesting: with [part_render] and [part_info] you can now use any + geo as particles (e.g: .obj-models) not only points/lines as before. + +texturing: [pix_texture] and [pix_texture2] has merged. so [pix_texture] will texture + textures of any size (even non-power-of-2) and it will use hw-support if available + (at least on macOS and on linux if the gfx-card supports it + (at least nvidia does so)) + +pixes: lots of new objects (too much to enumerate them here) + we now support 3 different colorspaces: RGBA, YUV, Greyscale + YUV is new and allows processing of coloured-images with far less memory/CPU + than RGBA (factor 2) but without alpha. + lots of pix-processing on apple-computers is ALTIVEC-enhanced (faster by numbers!) + SIMD-enhancements for PCs (MMX/SSE2) is yet to come... + as the new colorspace has been pushed, also a lot of objects has received + greyscale-support + the TV-class has been deprecated and is now part of pix_* again + lot's of color-space converters (most of them not available as objects) + the "pix_fx"-stuff is now built into all pix-objects + +video: on mac-OS the [pix_video] object supports all cameras that are supported by the OS + on windows there is now support for DirectShow, + which makes new (usb/ieee1394) cameras work most probably + on linux there is some prelaminary(!) support for ieee1394 devices. + the v4l-support is now multi-threaded which speeds up the whole thing significantly + +film-formats: + windows: AVI; there is also some QUICKTIME-support + (needs the quicktime-sdk at compile time and quicktime installed on execution time), + but this crashes sometimes (haven't found out when). + it should enable "a lot" of file-formats (MPEG, MOV) + macOS: quicktime serves your needs + linux: support for libavifile, libmpeg3 (or libmpeg1 but libmpeg3 is preferred), + libquicktime (or libquicktime4linux; doesn't matter) and ffmpeg. + +codecs: macOS: everything that is supported by your system should work fine + win: all codecs installed on your machine should work + (if another program can play a avi-file, Gem should be able to do so too) + linux: depends on how you compiled Gem. libmpegX will decode mpegs, + libquicktime will (most likely) decode quicktime-files with non-proprietary codecs, + libavifile decodes a lot of formats (avi, quicktime, divx, asf,...) + and you can utilize windows-codecs (.dll-files; if you have them ;-)) + which enables you to play-back proprietary codecs! + +bug-fixes: probably lots of, but most of them seem to linger around for a while now. + + + +--------------------------------------------------------------- +---------------------------- 0.87 ----------------------------- +Added much documentation + +Added [gemkeyboard] and [gemkeyname] for keyboard-interaction in the GEM-window. However, Windows and Linux versions do not give the same results... + +Added Red/Green stereo +Cleaned up the stereo-thing. we can switch between the different stereo-modes (including no-stereo) while rendering + +You can set the title of the GEM-window with the "title"-message. Up till now only one symbol is allowed. +Added "fullscreen" mode +Fixed "border" under linux +"cursor" is now available on Windoze + +readded "externals" with additional libraries to close up with the windows version:: +Added pix_movie for Linux (mpeg2+quicktime-support) +Added pix_film, which is in fact like pix_movie but does not write the pix-buf directly into a texture +Fixed the model +Added the stupid "teapot" +Added a pix_write that let's you capture the current screen into a file (TIFF/JPEG) +Added pix_hsv2rgb, pix_rgb2hsv (colour-space converters) +Added pix_blob (center of gravity:: colour detection) +Added pix_curves, pix_histo +Added pix_set, pix_dump +Added pix_pix2sig~, pix_sig2pix~ + +Started a new class "tv" for pix-operations that change over time: like tv_movement (formerly: pix_movement), tv_biquad, tv_rtx; but i am not really happy with this... + +Started a new pix_fx class for inserting pix-FX. there is not much about it, but you can now bend the image.data pointer to wherever you like (including size-changes, format-changes) it will be bent back in the postrender()-thing + +Started to import classes from effecTV (by Fukuchi Kentarou): pix_aging, pix_puzzle; most of his FX are real crap, but some are ok and it's easy to import them +Made a pix_rgba + + +--------------------------------------------------------------- +---------------------------0.84-5 ----------------------------- +Bugfixes for gemwin "cursor" message (cursor [1|0]) +Removed "externals" with additional libraries, they are separated now +Added a "freq" and "mode" message to Linux video object, you can watch + TV now ... +It is possible to add the display to the create command for X windows, + whole initialization stuff is moved into the create method, + so you can look at the patches without having succesfully generated + an OpenGl context. +Made the pix_video and pix_movie into real base classes of OS specific + classes. The OS spezific classes for Windows and SGI have to be fixed .. + + +--------------------------------------------------------------- +--------------------------0.84a ----------------------------- +text2d: added a message "alias", which toggles between antialiases + and standard fonts. Usage "alias 1" or "alias 0" + +gemwin: additional message cursor, which hides the cursor in + GEM windows + + + + +--------------------------------------------------------------- +---------------------------- 0.84 ----------------------------- +Fixed a bug where delete [] was called instead of delete. This +could explain a lot of random crashes. + +Fixed camera message routing. + +--------------------------------------------------------------- +---------------------------- 0.84 ----------------------------- +I long time ago, I changed the behavior for gemhead, so that +matrices where automatically restored, etc. However, this +broke the camera object. Use the view message to gemwin +instead. + +Fixed a bug in GemMan. If you didn't use "border 0" and you +requested a window size with "dimen # #", then the window +size was likely to be wrong. This is now fixed. + +Fixed a bug in the view message to gemwin. There was an offset +which should not have occured. You might need to change your +view messages to account for it. Just subtract 4 from any +Z values. + +There are some examples for pix_snap in + examples/gemAdvanced/gemPixSnap.pd - Single buffered example + examples/gemAdvanced/gemPixSnap2.pd - Double buffered example +Keep in mind that pix_snap is a fairly slow operation...I also fixed +a nasty memory bug which could easily cause crashes. + +I added Miller Puckette's pix_video for linux into the +code base. + +If you load a movie in pix_movie with an open message, the +object will output the number of frames to the right output. This +will not work if you have a "pix_movie homer.avi" for your object +since the output message cannot get processed correctly at +startup. + +The disk object has an inlet on the rightmost side for the +inner radius...turning the disk into a ring. If the inner +radius value is just 0., then the disk is just a circle. + +Fog can be turned on in gemwin. Look at + examples/gemAdvanced/gemFog.pd +for examples. The various control messages are documented +in the gemwin.pd help patch. + +These next objects are thanks to hannes - mailto:zmoelnig@iem.mhsg.ac.at +--------------------------- +Added OpenGL material objects - + ambient, ambientRGB, diffuse, diffuseRGB, emission, + emissionRGB, shininess, specular, specularRGB + They provide much greater control over the color of objects. +Look at + examples/gemLighting/gem5.materials.pd +for examples. + +Guenter found a bug in the ortho object. It is now fixed. The +ortho object has the same general unit size as the normal +perspective matrix. Look at + examples/gemAdvanced/gemOrtho.pd +for how to use the object. + +--------------------------------------------------------------- +---------------------------- 0.83 ----------------------------- +Added another outlet to counter. When the counter reaches +the "count to" value, the right outlet will send a bang. The +bang happens after the left inlet sends its float. + +Fixed a dumb bug in pix_2grey. It didn't calculate the +number of pixels correctly. + +Adding some comments to the FAQ that pix_draw is almost +always slower than pix_texture on PCs. Basically, graphics +accelerators do not accelerate glDrawPixels(). + +Added rectangle and cylinder. + +Cleaned up the text objects (text3d, etc). Should display +text a bit better and manage memory more intelligently. + +These next objects are thanks to hannes - mailto:zmoelnig@iem.mhsg.ac.at +--------------------------- +Added pix_rectangle - creates a rectangle in a pix +Added pix_a_2grey - only changes the pixel to grey based +on the alpha component. See the help page and the example +in manual/gem_pix/gemAlphaGrey.pd + +--------------------------------------------------------------- +---------------------------- 0.82 ----------------------------- +Free-view sterescopic rendering is possible. If you send +'createStereo' message to the gemwin instead of a 'create' +message, then your rendering area will be split in two. Send a +'stereoSep float' message to set the stereo seperation. Send +a 'stereoFoc float' message to set the focal distance. See the +example patch gem_advanced/gemStereo.pd patch for an example. + +'color' message was registered twice in gemwin. The second should +have been a 'perspec' message, for perspective. This also fixes +the error which pd-0.29 gives about GEM now. + +primTri is a new object. It is a triangle primtive. Unlike the +normal triangle object, it has 6 inlets. The first three inlets +are for setting the vertex positions. The last three inlets +are for setting the color at each vertex. The color can +be either RGB or RGBA values. Look at gem_advanced/gemPrimTri.pd +for an example. + +The particle objects are now frame rate independent. If you needed +them to run at a certain speed, you can send a multiplier into +part_head with the message 'speed float'. Run the fountain +at 60fps to see how smooth it is. The particles still default +to 20fps, which is GEM's default. You can slow down the particle +systems or speed them up by sending a different speed value +into the part_head. + +Thanks to Guenter for making the sgi image loader 64-bit compliant. + +Received new Gnu makefiles for Linux from Guenter. + +new particle objects - These all have help files. See +gem_particles/gem6.target.pd for how the target objects work. + part_damp - apply a damping force to the particles + part_targetcolor - Change color of the particles toward + the specified color. + part_targetsize - Change size of the particles toward + the specified size. + +Added some help files, mainly for the particle objects. + +Updated the FAQ. + +--------------------------------------------------------------- +---------------------------- 0.81 ----------------------------- +On WinNT, you can remove the window border. Send a 'border 0' message +to gemwin to remove it, or a 'border 1' to put it back. The default +includes the border. + +Fixed some bugs when in single buffer mode and in the pix_snap +object. + +A bunch more help documentation is done. This includes reference pages +and the html manual pages. + +The inlets for alternate and counter were backwards. + +Integrated unix event handling into the code base. + +Fixed other random bugs. + +--------------------------------------------------------------- +---------------------------- 0.80 ----------------------------- +A real manual has been started! This means that the doc directory +will not be as important. The release notes will still be here and +few of the other doc files, but hopefully most people will just be +able to use the on-line manual. Look at gem/manual/index.html +to get started. + +pix_movie has been added. It automatically does the texture mapping +so you don't need to use pix_texture. This also means that you can't +process the pix image. This will change in the future, but I wanted +to get the object out and have people hammer on it. Also, only +certain objects can texture the movie data correctly. They are square, +triangle, circle, and cube. Cone and sphere will have a black region +if the movie isn't a power of two (most movies are 320x160 or something). +This will be fixed in the future. See gem_pix/gemMovie.pd for an example + +hsv2rgb and rgb2hsv have been added. + +There is no ambient lighting in the default case. If you want +to have ambient lighting, send a message "ambient r g b" to gemwin. + +On WinNT, if you hit Ctrl + r in the GEM window, then rendering +will stop. This does not go through the normal Pd interface, so it can +be used if you accidentally create a patch which takes so much processing +that you cannot turn it off because the patch UI is unresponsive. + +Fixed a really bad bug in the text rendering objects. + +Various other random bugs. + +--------------------------------------------------------------- +---------------------------- 0.79 ----------------------------- +The example patches have been organized a little bit. There is +now a collection of directories which are installed with GEM. +Eventually, they will be fleshed out a lot more (I hope), but for +the time being, at least there is some order to them. + +The model and multimodel objects accept a "rescale 0" or "rescale 1" +message. In previous versions, the model objects would resize your +model to fit within the unit cube (all vertices where within -1 to 1). +This made it dificult to coordinate diferent model files together, +because they would all be resized by diferent factors. Now, if you +send a "rescale 0" message into model or multimodel, it will not +do resizing for any _SUBSEQUENT_ loading. In other words, if you +have already loaded in a model, and you send a "rescale 0", the +currently loaded model (or models) will not change. Look at the +example patch gem_advanced/gemModelRescale.pd for how this works. +The left model chain is much larger and a scaleXYZ object with a +value of .1 is needed to even get the model into the viewport. +The model and multimodel objects default to "rescale 1" so that it +doesn't break any existing patches. + +The middle and right buttons work in gemtablet now. The outlets +are all pretty close together now, so until you can resize objects, +it will be difficult to select the correct outlet. Look in +examples/gemTablet.pd for all of the outlets. + +I have upgraded to Visual C++ 6.0. I doubt that the GEM library +is backwards compatible for people who are writing their own +libraries. Sorry, but the IDE is a little less painful in 6.0. + +I removed the position inlet from the light object. If you want +to move/rotate a world_light/light, then just put a translate +or rotate object into the chain. It was broken before, but now +there is no reason for the position inlet. + +light and world_light accept a "debug" message with a value of +1 or 0. Look at the gemLightSphere.pd patch for an example. +It was too hard to figure out where the light is, and this turns on +a sphere for the light object (since it is a point light), and +a cone for the world_light object (since it is a directional +light). The world_light is NOT a spot light, even though +its icon is a cone. The icons are the color of the light. + +MarkEx has been merged into GEM. I was tired of maintaining +two libraries. Also, people didn't seem to be downloading +MarkEx, and there are a lot of good objects in there, IMHO. + +The camera object is finally useable. It has an inlet for the +translation and rotation vectors. Anyone who was using it +before is now broken, but the change was very necessary. + +gemwin can accept a perspective message. This will set up the +viewing paramaters for the window. You need to pass in 6 floats +with the "perspective" message, for the left, right, bottom, +top, front, and back. The defaults are -1., 1., -1., 1., 1., 20. +If you send a reset message to gemwin, it will reset the perspective +values as well. + +The big change in this release is a particle system. It is based +on code from David McAllister. There are many new object, all +of which interact in certain ways. One design issue is that +there are far too many controls and variables to be able to +expose directly in GEM. People who want to get complete control +over all aspects of the particle system are going to need to +write their own externals. However, most people should be fine with +the particle objects. The new objects are: + +CREATION +-------- +part_head - The start of a particle group +part_color - Set the range of colors for the new particles +part_size - Set the size of new particles +part_velsphere - Set the velocity based on a sphere distribution + You need 4 args - xvel, yvel, zvel, and radius +part_velcone - Set the velocity based on a cone distribution + +part_source - Generate particles + +MANIP +----- +part_follow - Particles will follow each other like a snake +part_gravity - Have the particles accelerate in a direction +part_killold - Remove particles past a certain age +part_killslow - Remove particles below a certain speed +part_orbitpoint - Orbit the particles around a specified point + +part_draw - Apply the actions and render the particles. Accepts a + message "draw line" or "draw point" to change the drawing style. + +Look in the example files to get some idea how to use the particle +objects. Notice that you still need a gemhead starting off the +chain, but after that, you just use the part_* objects. Regular +GEM manips like rotate, translateXYZ, and scale will affect the +particles. In general, you start with part_head, then modify +the particle parameters with the creation objects like part_color +and part_velocity. Then use part_source to actual generate the +particles. Next in the chain, use the manip objects to control +the particles behavior. When you actually want to display the +particles, use part_draw. Make sure that you remove particles as +well. The best method is probably with part_killold. If you +don't remove particles, then you will eventually not be able to +add any new ones (the default number of particles at once is +1000, set by part_head). You can also slow down the rate of the +particle generation with the part_source object. + +--------------------------------------------------------------- +---------------------------- 0.78 ----------------------------- +If you don't want GEM to take control of the tablet if it finds +one, set the environment variable GEM_NO_TABLET to the +value "1" (no quotes of course). There will be a print out if +GEM finds the environment variable. + +I added a few more setup access function so that people who +use "-lib gem" or "-lib GEM" will work correctly. + +Lighting will now work under single buffer mode, but you have +to destroy then create the graphics window to change the mode. This +will not work with the GEM_SINGLE_CONTEXT variable. + +pix_data is a new object. It outputs color information from a pix. + The first inlet accepts a bang to trigger it. + The second inlet accepts a gem list (probably from pix_image) + The third inlet is the x position (between 0 and 1) + The fourth inlet is the y position (between 0 and 1) + The first outlet is the gem list + The second outlet is the color (an RGB list) + The third outlet is the gray scale value (a float) + See the example patches gemPixDataSimple.pd and gemPixDataComplex.pd +for possible use. + +Fixed a pretty bad bug in the SGI image loading. Basically, unless +the image was RGBA, it was going to core dump. Also, the orientation +was wrong. + +--------------------------------------------------------------- +---------------------------- 0.77 ----------------------------- +GEM is now under the Gnu Public License. This should not affect +any one. I also cleaned up the license information for the AuxLibs. +All of the license and usage information can be found in +GEM.LICENSE.TERMS + +GEM has a new home - http://www.danks.org/mark/GEM + +gemorb - a new object to interface with the SpaceTec SpaceOrb360. +It is a 6DoF ball with 6 buttons that connects to your serial port. +It is a very cool device, and is relatively cheap ($50 US). If gemorb +is able to connect, it will print out a message, or an error if there +is a problem. John Stone wrote the library. + +There is a particle system with a number of new objects. The system +uses a library by David McAllister. +ps I haven't had time to bring all of the objects online. particle +is the only object right now. It just creates a fountain. + +accumrotate was added - three inlets to control the rotation. Each +time a new value is sent in, it increases the rotation. Sending +'reset' to the leftmost inlet sets the rotation matrix to +identity (ie, it resets it to no rotation). + +rotateXYZ was added - three inlets to control the rotation. Order +is X rotation, then Y, then Z. + +The tablet cleanup is a little better now on WinNT. There are still +some bugs, like it doesn't return to normal mouse usage after GEM exits. +However, the DLL is being released correctly...I just need to reset +to the default state somehow. + +Cone and sphere have changed behavior as of 0.77. The middle inlet +is now the size and the right inlet is the number of slices. + +depth used to be sending '1' would turn on depth testing, but this +was conceptually wrong. It should be 1 to turn on the depth +object (which would disable depth testing). This is now the +current behavior. + +ortho was added. It changes the viewing from perspective to +orthogonal. The size is the size of the window with (0, 0) +being the lower left corner. I made this object for creating +a background the size of the window, but you can probably +find other uses for it. + +There is a matrix class for those who are writing objects. +It is in src/Base/Matrix. + +--------------------------------------------------------------- +---------------------------- 0.76 ----------------------------- +Fixed a bug in spline-path. I wasn't doing the knot logic +correctly. Thanks to Patrick Rost for finding this. + +A bunch of internal changes to get GEM working with Pd 0.22 +All instances of A_INT went away and the inlets and outlets are +created in the correct "logical" order now. + +--------------------------------------------------------------- +---------------------------- 0.75 ----------------------------- +You can resize the window under WinNT and the viewport will change +to reflect the new size. + +Also, the correct aspect ratio is maintained no matter what the +width/height ratio is for the GEM window. The ratio is +x:y -> (width/height):1. This is currently only under WinNT. + +gemmouse and gemtablet are new objects. They currently only +work in WinNT. You should be able to create the object in +the Irix/Linux versions, but you won't get any output. See +gemmouse.pd and gemtablet.pd for examples. +gemmouse outputs the current mouse position and button up/down +for the GEM window. +gemtablet outputs the current pen position, pressure, orientation, +and pen up/down, with the GEM window mapped to the tablet. If +GEM can connect to your tablet, a message will be printed at startup. +If you don't see a message at startup from GEM about connecting to +the tablet, then gemtablet will not output any values. You must +have the wintab32.dll library installed. Your tablet's installation +should do this. + +Added a bunch of utility functions (spline, bias functions, etc). + +linear_path and spline_path are new objects. If you give them +an array, then they will generate a point from an index. linear_path +will linearly interpolate between points. spline_path uses the +points as knots for a curve. See gemSplinePath.pd and +gemLinearPath.pd for examples. + +Added __declspec declarations for Windows. This should +make it easy for people to use GEM as a dll. + +--------------------------------------------------------------- +---------------------------- 0.74 ----------------------------- +I replaced the images in the example directory with JPGs. They +are alot smaller. However, in gemMoveImages.pd, you can see +the effect that the compression has. Look at the red dancer. All +of the "black" should be alpha masked out, yet there are little +bits which get all jaggy. + +Got gltt-1.8 Looks like it fixes a bunch of bugs. + +Finally put an alpha test into the alpha object. This means that +if the alpha of a pixel == 0., then it won't be put written into +the frame buffer. Look at the example file gemMoveImages.pd for +an example of this. Notice that the dancer is texture mapped to +a sphere, yet you can always see her correctly. You can disable +this behavior by sending a 'test 0' to the alpha object. + +Oh boy, were my texture coordinates off. Unknown to me, my reference +image (dancer.tif) was actually upside down. This meant that all +of the texture coordinates in the Geos objects were compensating +for the rotation. Sorry if this messes anyone up, but it is now +correct for all of the geos. + +I also now load in images in OpenGL format. This means that +data[0][0] == lower-left corner. This shouldn't have any effect +on anyone unless you are doing position sensitive image processing. + +Fixed the orientation problem when using pix_draw. + +imageVert handles gray8 pixes + +Fixed a problem if pix_multiimage loaded in images that were different +formats or sizes. + +GEM supports search paths! Basically, GEM will look for auxiliary +files (images, models, fonts, etc.) from whatever directory the +patch is in (unless you use an absolute path name with '/'). + +--------------------------------------------------------------- +---------------------------- 0.73 ----------------------------- +Fixed profiling on Unix + +Added text2d, text3d, textoutline. The text objects will render +a truetype font (I have provided a couple fonts in gem/examples). +text2d renders a flat bitmap...no rotation or Z movement. text3d is +full polygonal text, so you can translate and rotate. textoutline +is also polygonal, it is just a vectored outline. + PS text2d has some problems... + +JPEG and SGI image file formats are supported! Depending on the number +of color components, GEM will automatically convert them to grayscale +or RGBA (just like TIFF files). + +pix_video is working slightly on WinNT. There are still some +serious problems, so consider this version a complete pre-alpha. I'm +releasing a version now to find out if it even works on other systems. +I am using a Connectix QuickCam2. + +Shifted all of the auxilary libraries into a common directory. Considering +that I'm currently using 6 outside packages, it is just easier. + +--------------------------------------------------------------- +---------------------------- 0.72 ----------------------------- + +Did a bunch of cleaning so that the Linux compile is happier (and easier). +This involved getting rid of some warning messages and changing +the makefiles slightly. + +The strange core dump on WinNT went away... + +All of the code and extra files are under source code control (CVS). +You can just ignore the CVS directories. Eventually, I will try to keep +them out of the release build. + +Added profiling. If you send 'profile 1' to gemwin, then normal profiling +is turned on (GEM displays the number of milliseconds per frame). If you +send 'profile 2', then images will not be cached (ie, the pixes will always +be processed). If you send 'profile 0', then profiling is turned off. + +pix_multiply multiplies the color components of two images together. +It doesn't modify the alpha channel. + +Optimized pix code. + +Because Miller is removing the INT type, I have slowly been moving it +out of the code. If any objects have stopped working, please let me know. +I redid the construction macros in CPPExtern to reflect this change. +If you have made any new GEM objects, you will probably need to +change to the new macro format. + +Most of the dual input pix objects will process gray8 and RGBA data +gracefully. + +--------------------------------------------------------------- +---------------------------- 0.71 ----------------------------- + +Guenter got GEM working under Linux! The biggest impact is that I +have changed all of the #ifdef __sgi to #ifdef _UNIX_ If specific versions +of Un*x need certain things, then they can be #ifdef'ed with __sgi, +or LINUX, or whatever. + +Fixed a bug in polygon and curve. I'm not sure why it ever worked on +the SGI... + +All pix objects accept a 0 or 1 to turn on and off their processing. +The 0 or 1 should just be sent to the first inlet. + +The inlets were backwards for colorRGB. + +Fixed a bug in turning on and off texture mapping in pix_texture. + +GemMan::initGem is now called from Gem_setup. There seems to be a problem +with Linux creating the dummy static class to initialize GEM. + +Changes pix_texture so that it deal with OpenGL 1.1, GL_EXT_texture_obj, +and base OpenGL 1.0 I think that every OS has the texture_obj +extension, but just in case, I also have the OpenGL 1.0 technique of display +lists. + +Removed some spurious print outs. + +I looked into using GL_BGRA_EXT for images on Windows. It is faster +in the software version, but my Intergraph card doesn't support it. +It only makes a difference for OpenGL in software...and texture +download time isn't the primary problem then. With a 512x512 image +using glDrawPixels in software, I got 6 frames/sec with RGBA and 7 +frames/sec with BGRA_EXT. Older SGIs like ABGR_EXT, but the newer machines +want RGBA. Looks like I'm going to stick with RGBA for a while. + +You can now load in Gray8 and RGBA images and they will retain their +format. Before, everything was slammed into an RGBA image, with A == 255. +This means that you can have alpha masks on images, etc. The only pix +object which can currently handle a gray8 is pix_mask. All of the other +pixes throw errors if they get a gray8. This will slowly be fixed. + +Added some new functions to GemPixUtil (from a paper by Alvy Ray Smith). +They should speed things up. Currently, only pix_composite is using them. + +The color channels of pixels should be gotten by the const ints that +are in GemPixUtil (for instance, chRed, chGreen, etc). Using hard coded +offsets like 0 or 2 for red and blue is asking for trouble. + +gemheads no longer push and pop the entire matrix state when renderGL is +called. This should be faster (push/pop is slow on some platforms). Also, +all objects are required to "reset" the OpenGL state when they are done, +so it shouldn't be neccessary. + +Strangeness: There is an unreferenced memory exception on WinNT when you +quit Pd. However, it only happens if you use pix_image. It doesn't +happen while you are using Pd, only when you quit... + +--------------------------------------------------------------- +---------------------------- 0.70 ----------------------------- + +All geos can now accept a size argument (they default to 1.0) + +I cleaned up the texture coordinate mapping. The order was slightly +random before. The order is more logical now; it is counterclockwise +starting at 0, 0. If you use pix_coordinate any where, you will need +to fix the values. + +Fixed a bug in translateXYZ. The inlets where backwards. + +You can now move the GEM window under NT. NT doesn't automatically +take care of the basic window functions unless you pass the messages +through (unlike X Windows). + +Texture mapping can be turned on and off by sending a 0 or 1 to pix_texture + +Texture mapping defaults to GL_LINEAR. Send a quality message to pix_texture +to change this. A "quality 0" means GL_NEAREST, "quality 1" means GL_LINEAR. + +--------------------------------------------------------------- +---------------------------- 0.69 ----------------------------- + +Fixed a bunch of bugs in imageVert. + +Cleaned up some lingering problems in various objects (the open message to +pix_multiimage didn't work as advertised for instance). + +Setting window color is now dynamic. + +multimodel now exists. Works just like pix_multiimage, only it reads in +Alias/Wavefront files. It also has a caching mechanism. + +--------------------------------------------------------------- +---------------------------- 0.68 ----------------------------- + +fixed pix_2grey so it uses real color weights, instead of just averaging +the three colors. + +pix_image now works the same way as pix_multiimage. If you load in an +image which another pix_image has already loaded, they will share the +image. This means that if you create a bunch of dummy pix_image +objects, you can send an open message to pix_images which have a gemhead +connected to them and get instantaneous image changes. + +Found a MAJOR bug in the NT version of pix_texture. Basically, if you +used it, the program would core dump. + +Found another bug in square. It involved texture mapping and texture +coordinates (mainly when you don't designate them). + +Changed the default values for scaleXYZ (to 1, 1, 1) and translateXYZ +(to 0, 0, 0) + +--------------------------------------------------------------- +---------------------------- 0.67 ----------------------------- + +Forgot to add the arguments for the scale object. This has been fixed. + +Added translateXYZ, scaleXYZ, and colorRGB. These create three inlets +which you can modify, instead of having to mess with vector messages. + +Fixed a bug in pix_image and pix_multiimage (or more, an unacceptable +response to user error). Basically, if you started rendering without +an image being loaded (or if an image failed to load, then you were +_VERY_ likely to core dump. A check has been added, so this shouldn't +be a problem anymore. + +pix_multiimage HAS CHANGED! It accepts up to four arguments: + +filename, number : will load the image files from 0 up to AND INCLUDING +the number + +filename, lownum, highnum : will load the image files from the lownum up +to AND INCLUDING the highnum + +filename, lownum, highnum, skiprate : will load the image files from +the low num up to AND INCLUDING the highnum, but incrementing the counter +by the skiprate, not by one. + +No matter how many images are loaded, you can change which image is +displayed by sending a number. The number must be between 0 and the +number of images which were loaded (notice that this number may not be +the highnum!) If you try to display an image out of range, you will +get an error. + +pix_multiimage now uses a shared cache. Basically, if you give two +pix_multiimage objects the EXACT same values (filename, base number, +top number and skip number), then they will use the same collection of +images. This will save massive amounts of memory if there is any +commonality between pix_multiimages. + +pix_flip - see help file + +--------------------------------------------------------------- +---------------------------- 0.66 ----------------------------- + +Finished the port to NT (mainly had to get images working). + +Made pix_colormatrix - This is really good for things like saturation, +hue rotate, etc. I will eventually include a bunch of matrices to do +cool stuff. Check out Paul Haeberli's paper on color matrices at +http://www.sgi.com/grafica/index.html + +I removed pix_color. It was a hold over from earlier days and I +don't think that anyone (including myself) is using it any more. + +I got a title bar onto the graphics window, but you still can't move it +around. I am not certain why this is the case, but I'll keep looking. + +I made general speed ups to most of the pix objects. Mainly, I have +been removing GetPixel() and SetPixel() functions (they have a lot +of overhead). I will continue to use Get/SetPixel() while I'm developing +because they make things easy to deal with, but as objects get finished, +I will remove them. + +Some of the manipulators (color, rotate, and translate) accept arguments. +For instance, if you do color 1 0 0, it will automatically set the +color to red. The objects try to be intelligent about their arguments. +For instance, if color receives three args, it sets RGB, but if it +gets 4, it sets RGBA. If rotate or translate get 3 args, then they just +set the vector, but if they get 4, then they set both the vector and +the value. + +--------------------------------------------------------------- +---------------------------- 0.65 ----------------------------- + +GEM works under NT! I got the port working last night. I had to make some +major changes to the underlying classes (specifically CPPExtern) because +MS VisC++ puts the vtable pointer in the first four bytes...no matter what. +This is a different behavior than SGI's compiler (and I think that it requires +more work for MS VisC++'s compiler). While it was a pain to change things, it +is good in the long run. The C++ standard doesn't say where the vtable is +located, so this would have bitten me at some point. + +--------------------------------------------------------------- +---------------------------- 0.64 ----------------------------- + +Because MS VisC++ really wants files to end in .cpp (how stupid...), +I renamed all of the C++ files. + +I looked into making all of the pixes be float, instead of unsigned char. This +would give increased flexibility because we could use negative numbers, not +worry about wrap around on the unsigned char, etc. In running performance +tests on an SGI O2, the performance difference is fairly great. If GEM +was only an image processing program (ie, PhotoShop), then I would definetely +have pixes be floats. However, since GEM is meant for real-time, I will +continue to use unsigned chars to represent pixels. + +For the tech heads...I used to generate the rendering by creating a +linked list of the GEM objects. The problem was that objects like +separator weren't possible because it wasn't a true DAG. That is now +fixed so that tree/leaf graphs are possible. + +Made render_trigger so you can know exactly when the rendering is occuring. + +Made pix_multiimage! Just give it a file with a * (like myfiles*.tif) and an +integer for a range (the number of images). + +Made pix_invert, separator + +--------------------------------------------------------------- +---------------------------- 0.63 ----------------------------- + +The src directory has been made into a tree. + +Made pix_add and pix_subtract +Added a scale object + +--------------------------------------------------------------- +---------------------------- 0.62 ----------------------------- + +A dummy glxContext is created at startup. What this means is that +in the constructors of objects, OpenGL calls can be made, display +lists can be constructed, etc. Eventually, I would like to have a +single window which is always in existance that can change between +single and double buffering, but that may be a little while. + +I put Sam Leffler's tiff library back in. All image files must be in +TIFF format again. Basically, I think that Win NT would have trouble +making SGI .rgb files, while anyone can make TIFF formats. Currently +there is some code bloat because libtiff does more than just read in a +TIFF file. + +The pix_coordinate object allows users to set the S,T texture coordinates +for geos. For instance, by giving pix_coordinate 4 S,T pairs, the texture +coordinates for a square can be changed on the fly. Not all of the geos +can support this ability right now (currently only square, triangle, and +polygon, but this will change in the near future). + +A FAQ has been started, but there really aren't any questions in it yet. +As people think of them, please let me know and I'll add them. + +--------------------------------------------------------------- +---------------------------- 0.61 ----------------------------- + +Cocoon html help files for developers have been created. + +GEM now uses an internally generated DAG for rendering. This +removes a serious bug where by objects could still try to reference +dangling pointers. GEM objects act like the tidle objects do +from a users point of view. Even if you break a connection +in a GEM chain, the GEM objects will continue to work. This +means that it is safe to edit patches while a GEM chain is +running. To rebuild the GEM patch, rendering must be turned +off and then back on (just like the tilde objects). + +Using the td library from Evans & Sutherland by Nate Robbins to display +Alias/Wavefront files (.obj). It also takes care of image +loading, although it is only .rgb. If people complain enough, +then I may return to the Sam's libTiff library, but it is so +big that the td library is better. The td library can also be +compiled on Windows (or else I wouldn't have used it). The new +object is called model (although it may change its name some day). + +There is a new object which maps the color of a pix to the Z of +a polygon. It is isn't overly useful right now, but it is a cool +demo. It is called imageVert. + +--------------------------------------------------------------- +---------------------------- 0.60 ----------------------------- + +Major changes to the internals of GEM. gemwin is now only +an access point to the window manager, instead of actually +being the window manager. This should make it easier to have +multiple graphics windows. + +While I was getting the O2 video camera to work, I seem to +have broken the Indycam object... + +--------------------------------------------------------------- +---------------------------- 0.50 ----------------------------- + +Made the port from Max over to Pd. Redesigned the class +heirarchy somewhat. + diff --git a/src/Gem/doc/gem.todo.txt b/src/Gem/doc/gem.todo.txt new file mode 100644 index 0000000..43a16a7 --- /dev/null +++ b/src/Gem/doc/gem.todo.txt @@ -0,0 +1,65 @@ +GEM ONLINE DOCUMENTATION CHAPTER 7: TODO +---------------------------------------- + + This is a list of future improvements and changes. +No importance should be given to the order...it is just +when I thought of things. + - Mark D. + - IOhannes m z + +---------------------------- TODO ----------------------------- + +GENERAL +------- +only connect to tablet if gem_tablet exists +make a separate Gem-thread (to do parallel audio/video-processing) +enable output to other "devices": like files, video-editing-cards,... + +PARTICLE +-------- + + +OBJECTS +------- +triangle_fan +stereoscopic display with hardware glasses +NURBS/bezier patches +3DstudioMax file loader +CAL3d (character animation library): (not sure anymore. maybe quake2-files would be better ?) +Alias|Wavefront file data + - articulation hierarchies in Wavefront's Kinemation + - read Preview's .mov files (an ascii list of x, y, and/or z values) +morphing between alias|wavefront models + - assume same number of points in each model + +PIXES +----- +pix_dv (under linux this still needs a lot of testing) +motion and image analysis +some way to fragment an image so that it can be used as multiple + texture maps (hopefully arbitrary shapes, but possibly only rectangular) +pix_erosion +pix_dilation +pix_median/min/max filter +pix_lowpass +pix_highpass +video external keyer + - three inputs - the matte and two image inputs +increased control of the Threshold object. + - upper and lower levels adjustable +stereoscopic texture loader +pix_circle +pix_triangle +test pix_video - espec offset message + +OPENGL +------ +be able to switch between single and double buffering on the fly +have multiple graphics windows +increased control of view port, etc. +be able to use multiple pipes (MCO) +try out glMatrixMode(GL_TEXTURE) to deal with nonstandard texture mapping +render to a pixblock (use pbuffers or offscreen renderer) +on systems that run in console mode only (like linux with(out) XFree86), render to the console with beautiful ASCII-art +multipass rendering +multitexturing diff --git a/src/Gem/doc/manual/Advanced.html b/src/Gem/doc/manual/Advanced.html new file mode 100644 index 0000000..5c2a5f2 --- /dev/null +++ b/src/Gem/doc/manual/Advanced.html @@ -0,0 +1,27 @@ + + + + + + + Advanced + + + +
+

+Advanced objects

+ +


Todo: +

more than 8 lights +
pix_imageInPlace +
accumrotate +
camera +
polygon and curve +
text3d +
pix_data +
linear_path +
spline_path +

[return] + + diff --git a/src/Gem/doc/manual/BasicObj.html b/src/Gem/doc/manual/BasicObj.html new file mode 100644 index 0000000..80e5d84 --- /dev/null +++ b/src/Gem/doc/manual/BasicObj.html @@ -0,0 +1,115 @@ + + + + + + + Basic Objects + + + +

+

+Basic Objects

+ +


There are a number of objects which are the foundation for GEM. +These objects are used in every patch and control the graphics and rendering. +

[gemwin] - The window manager +
[gemhead] - The start of a rendering chain +
manips - Move an object in the window +
geos - Render a shape +

+

+[gemwin]

+The graphics window is created and destroyed with the [gemwin] object. +With the [gemwin] object, you can set the default size of the graphics +window, create and destroy the graphics window, turn on and off rendering, +etc. All basic GEM patches will have the following [gemwin] +object with these messages: +
+

+The create and destroy messages will display and remove the graphics window. +The 1 and 0 messages start and stop rendering. +

+

+[gemhead]

+The [gemhead] object is the start of every rendering chain. +A simple patch, which is located in examples/gem_basic/gem1.redSquare.pd +looks like: +
+

+ +

This patch will render a red square. The [gemhead] object +signifies the start of rendering. The [color] object sets the color +for all objects after it in the chain. The [square] object renders +a square into the graphics window based on the current color, texturing, +and transformations. In this case, there is no texturing and no transformation. +

Every rendering chain MUST start with a [gemhead]. If you +do not put a [gemhead] at the beginning of the chain, then nothing +will be rendered for that part of the patch. +

+

+manips

+In the patch 01.basic/02.cube.pd, the [translateXYZ] object is +introduced. +
+

+ +

The graphics are transformed and moved by the manipulator objects, +or the manips. GEM has the following manips: +

[color] - set the color with a vector +
[colorRGB] - set the color with 3 discrete values +
[rotate] - rotate with an angle and vector +
[rotateXYZ] - rotate with 3 discrete values +
[scale] - scale with a vector +
[scaleXYZ] - scale with 3 discrete values +
[translate] - translate with a vector +
[translateXYZ] - translate with 3 discrete values +

To understand the difference between the vector and discrete values +version, realize that everything in is defined in 3 dimensions. These +dimensions can be XYZ values, or RGB colors. +

+

+ +

The two translate objects above will do exactly the same thing in a +patch, but they provide two different ways to do it. [translate] accepts +a scalar and vector. [translateXYZ] accepts three floats which +specify a point in space. The manips will transform any object which +appears after it in the rendering chain. +

+

+geos

+Up above, we saw the [square] and [cube] objects. The other +primary geos are: +

[square] - render a square +
[circle] - render a circle +
[triangle] - render a triangle +
[cube] - render a cube +
[sphere] - render a sphere +
[cone] - render a cone +

The [square], [circle], [cube], and [triangle] objects +have a right-hand inlet to set the size of the shape. The default +size is 1. +

The [cone] and [sphere] objects are not perfectly smooth. +They are actually composed of a number of polygons. In order to control +the rendering better, the middle inlet is the size of the object, while +the right-hand inlet is the number of slices to define the shape. +Take a look at the patch gem_basic/gem3.sphere.pd to see how the number +of slices can change the look of a sphere. Don't worry about the +[world_light] +object, it is just there to make it easier to see the difference in the +number of slices. Make sure to click the 'lighting 0' message before +closing the patch (if you don't, then other patches will probably be completely +black until you quit and restart pd/GEM). +

Your graphics window should look like this for 5 and 15 slices: +

+

+Obviously, the more slices that you use, the better the sphere looks. +However, each slice adds more polygons, which can slow down your frame +rate. In computer graphics, there is always a trade off between resolution +and speed. +

+

[return] +
+ + diff --git a/src/Gem/doc/manual/GemFaq.html b/src/Gem/doc/manual/GemFaq.html new file mode 100644 index 0000000..fe2e175 --- /dev/null +++ b/src/Gem/doc/manual/GemFaq.html @@ -0,0 +1,667 @@ + + + + + + + Gem FAQ + + + +

+

+GEM FAQ

+ +


* : new question +
+ : changed question +

+

+QUESTIONS

+GENERAL +
1.1) What is GEM? +
1.2) What is Pd? +
1.3) What platforms do GEM and Pd run on? +
1.4.0) How do I install GEM and Pd on IRIX? +
1.4.1) How do I install GEM and Pd on linux? +
1.4.2) How do I install GEM and Pd on WinNT? +
1.7) What is a good intro to OpenGL? +
1.8) Are there any web sites for Pd or GEM? +
1.9) What libraries does GEM use? (aka: Who does Mark +want to thank?) +
1.10) Are there any restrictions on GEM? +
1.11) How do I use GEM in a performance? +

USING GEM +
2.1) How do I (???) +
2.2) How do I make GEM run? +
2.3) Why doesn't GEM run? +
2.4) I've got it running. Now what? +
2.5) On IRIX 5.3, why does GEM dump with an rld error? +
2.6) Why can't I compile GEM on IRIX 5.3? +
2.7) Why is GEM slow in general? +
2.8) Why is GEM slow on IRIX? +
2.9) Why is GEM slow on WinNT/Win95? +
2.10) Why is GEM slow on Linux? +
2.11) If I resize the window, everything looks strange. +
2.12) Can GEM run on a 3Dfx Voodoo card? +
2.13) Will GEM support hardware transform and lighting +(T&L) ? +
2.14) I get an error "GEM needs Truecolor visual support". +

VIEWING OBJECTS +
3.1) Why does everything seem dim? +
3.2) Why does everything seem dark? +

TEXTURE MAPPING +
4.1) My image doesn't appear. What is going on? +
4.2) My image looks strange. What is going on? +
4.3) Why does GEM say that it can't handle a gray image? +
4.4) What image formats can GEM handle? +
4.5) What movie formats can GEM handle? +
4.6) Why is pix_draw so slow? +

WORKING WITH PD +
5.1) Why do I get clicks in the audio? +
5.2) How do I get audio data to GEM? +
5.3) Why can't GEM find an image/model file? +
5.4) How can I optimize my patches? +

WRITING NEW GEM OBJECTS +
6.1) How do I write a new GEM object? +
6.2) What are the default OpenGL states? +

OBJECT SPECIFIC +
7.1) Why doesn't <object> exist on <platform>? +
7.2) Why doesn't gemtablet work? +
7.3) I don't want GEM to take over my tablet. +How do I stop it? +
7.4) Why doesn't gemmouse work in IRIX/Linux? +
7.5) Why doesn't gemorb work? +
7.6) What is wrong with pix_video in WinNT? +

+

+ANSWERS

+

GENERAL

+
1.1) What is GEM? +

GEM is the Graphics Environment for Multimedia. +It was originally written by Mark Danks to generate real-time computer +graphics, especially for audio-visual compositions. It originally ran under +FTS/Max (which is why you might see some papers reference it), but all +new development is under Pd. +

You can get GEM at http://gem.iem.at/ +

GEM was sponsored by a grant from Intel (http://www.intel.com) +

GEM was ported to linux by Günter Geiger +

GEM is now maintained by IOhannes m zmölnig. +

the core-development team consists of

    +
  • chris clepper
  • +
  • günter geiger
  • +
  • daniel heckenberg
  • +
  • james tittle
  • +
  • IOhannes m zmölnig
+lots of contributions are made by various people (thanks to all of them) +

---- +
1.2) What is Pd? +

Pd is a real-time environment for audio and MIDI. +It was written by Miller Puckette, who created FTS/Max when +he was at IRCAM. Basically, Pd can be seen as the next generation +of real-time visual programming languages. GEM runs inside of the +Pd environment. +

You can get Pd at http://www.crca.ucsd.edu/~msp/software.html +

Pd is sponsored by a grant from Intel (http://www.intel.com) +

---- +
1.3) What platforms do GEM and Pd run on? +

GEM and Pd run on Windows (95, 98, ME, NT 4.0, 2000, XP), linux and macOS-X (>10.2). +SGI-Irix (> 6.2) used to be supported but i don't have any prove that it still works). +Günter Geiger +has done an initial port of GEM and Pd to Linux http://gige.epy.co.at). +

GEM is now maintained by me and +developed by a team of several independent programmers (see section 1.1) +

---- +
1.4) How do I install GEM ? +

---- +
1.4.0) How do I install GEM and Pd on IRIX? +

See the readme for installing Pd. +

GEM should be at +

pd/gem +

If you run GEM.INSTALL.sh, then all of the example files and documention +should be put in the correct locations. +

---- +
1.4.1) How do I install GEM and Pd on linux? +

See the readme for installing Pd. +

GEM should be at +

chdir to <gem>/src/Gnu and build Gem following the instructions in the README.build +(./configure; make) +

If you then make install, then all of the example files and documention +should be put in the correct locations. +

if you are using debian, Gem should be available via apt

+

if you are using an rpm-based distribution, check out the builds at planetCCRMA

+

---- +
1.4.2) How do I install GEM and Pd on WinNT? +

See the readme for installing Pd. +

unzip GEM so that it is at +

pd\gem +

If you run GEM.INSTALL.bat, then all of the example files and documentation +should be put in the correct locations. +

there is also an installer for windows. +

---- +
1.4.3) How do I install GEM and Pd on macOS? +

See the readme for installing Pd. +

there is also an installer for macOS. +

---- +
1.7) What is a good intro to OpenGL? +

The best book is the OpenGL Programming Manual +by Mason and Woo. This is also called the "Red Book". If you search +the web, there are many sites on OpenGL. A good starting point is +http://www.opengl.org. +Also, Mark Kilgard (who used to work for SGI) has a wonderful site with +lots of links (http://reality.sgi.com/mjk) +Also, Normal Lin has written another great book on 3D-graphics under linux +

---- +
1.8) Are there any web sites for Pd or GEM? +

Except for the ones noted above, there is the Japanese +installation page at +
http://www.rinc.or.jp/~kotobuki/gem/index.htm +

There is a Pd mailing list. Subscription info +is on IEM's site http://www.iem.at/mailinglists/pd-list +

One of pd's unofficial home-pages is at http://pd.iem.at hosted by the +Institute of Electronic Music and Acoustics, Graz, Austria +

Also hosted by the iem is the site of the pd-community +http://www.puredata.info +

An interesting place might also be Günter Geiger's size http://gige.epy.co.at/ +

there are lot's of other cool pages (search the net...) +

---- +
1.9) What libraries does GEM use? +(aka: Who does Mark want to thank?) +

All copyrights and license info can be found in +
GEM.LICENSE.TERMS +
Thanks to Sam Leffner for libTiff, the TIFF image +loader. +
+sam@engr.sgi.com +
ftp://ftp.sgi.com/graphics/tiff/ +
Thanks to Masayuki Matsumoto for fstimage for OpenGL, +the SGI +
image loader. +
+matumot@dst.nk-exa.co.jp +
Thanks to the Independent JPEG Group for libjpeg, +the JPEG image loader. +
+jpeg-info@uunet.uu.net +
ftp://ftp.simtel.net/pub/simtelnet/msdos/graphics/ +
Thanks to Mark Kilgard at al. (and SGI) for glut, the openGL Utility Toolkit +
http://www.pobox.com/~ndr +
Thanks to Stephane Rehel for GLTT, the OpenGL TrueType +render. +
+rehel@worldnet.fr +
http://home.worldnet.fr/~rehel/gltt/gltt.html +
Thanks to David Turner, Robert Wilhelm, and Werner +Lemberg for +
Freetype, a TrueType font +rendering engine. +
+turner@enst.fr +
+robert@physiol.med.tu-muenchen.de +
+a7971428@unet.univie.ac.at +
http://www.physiol.med.tu-muenchen.de/~robert/freetype.html +
Thanks to the MPEG Software Simulation Group, for +libmpeg, the +
MPEG-2 Encoder/Decoder +
+mssg@mpeg.org +
http://www.mpeg.org/MSSG/ +
Thanks to Heroine for quicktime4linux +a quickime Decoder +and libmpeg3, another MPEG-2 Encoder/Decoder +
MPEG-2 Encoder/Decoder +
+mssg@mpeg.org +
http://heroinewarrior.com/ +
Thanks to LCS/Telegraphics for Wintab, the Windows +tablet library. +
+wintab@pointing.com +
Thanks to David McAllister for the Particle System +library. +
+davemc@cs.unc.edu +
http://www.cs.unc.edu/~davemc/Particle/ +
Thanks to John Stone for the Space Orb library, +libOrb +
+j.stone@acm.org +
http://www.umr.edu/~johns/projects/liborb/ +

---- +
1.10) Are there any restrictions on GEM? +

GEM is under the Gnu Public License. This basically +means that it will always be free software.Check out http://www.gnu.org +for more information and read the full license in GnuGPL.LICENSE in the GEM release. +

---- +
1.11) How do I use GEM in a performance? +

This is a constant problem, because there is no consistent +way to display video on any platform. Also, you usually do not want +to send the entire screen, but only the GEM window. It is also useful +to be able to edit/control the Pd patch window while the patch is actually +running. +

On SGIs, the best way is to get a video out option. +On the SGI O2, Impact, and Onyx (Mark has used all of these), there is a +simple connector or breakout box to do video. +If you run the video out program, then you will get a rectangle on your screen +which shows what is being sent out the video connector. +Make your GEM window a little larger than 640x480 and center it in the rectangle. +You can now project this with a standard video projector. +

On PCs it is a bit harder. +Several modern video-cards have the possibility to output several screens +(either 2 (or more) VGA-screens or 1 VGA-screen and 1 TV (Composite or S-HVS) +or a combination with DFTs) +If you have a Canopus Voodoo2 card it has a video and s-video output on it. As described +in question 2.12, you can get a Voodoo to work with +GEM. If any one else has a better solution, please let me know. +The nVidia Riva TNTs require that you output the full screen, so this is +not a very good option. You can use a video scan convertor. +Some of them only display a part of the scene, which is exactly what you +want. +

With modern multi-headed cards it is more simple: +Configure your card to display the desktop spread over your multiple screens +(e.g.: from left-to-right). +On windows and macOS you can do this via the display-properties dialog. +On linux you will have to edit your /etc/X11/XF86Config-4 file either by hand or +(if your system supports it) via an appropriate editor (yes, nowadays there are some). +Now create your gem-window on the second screen: +it should have the same dimensions as the 2nd screen (e.g: "[dimen 800 600("). +to place it at the second screen use the offset (e.g: if your primary sreen +(the one you want for patch-editing) has the dimension 1024x768 use "[offset 1024 0(", +which will create the gem-window 1024 pixels right of the upper-left corner +of the total screen (and 0 pixels below it), +which is exactly the upper-left corner of the 2nd screen. +You most probably want to turn off the borders with "[border 0(".
+Note: some grafix-card have openGL-hardware-acceleration only on the 1st screen +(so you should create the gem-window on the 1st screen and move +your patches to the 2nd screen) +

If you are using an XServer for displaying (under linux) you can also use another +computer for rendering. +You can specify the place where the gem-window should be created with something like +"create <render.host>:0.0" + +

If you are doing audio with graphics, the only solution +to prevent clicking (question 5.1) is to run 2 computers +and have them communicate with netsend/netreceive. We are working +on making Pd/GEM multi-processor friendly, so if you have a multi-processor +system, you can run everything on one machine eventually. +

+


USING GEM

+
2.1)How do I (???) +

Many of the general usage questions are probably +answered in the manual or release notes. The pd mailing list is also +a good place to find answers as well. +

2.2) How do I make GEM run? +

GEM is not an executable. It requires Pd to +work and is loaded in at run time. For example, I have an alias on +the SGI which does +

/usr/people/mdanks/pd/bin/pd -lib /usr/people/mdanks/pd/gem/Gem +

and on WinNT +

\pdDir\pd\bin\pd -lib /pdDir/pd/gem/Gem +

on UNIX-systems you will probably want to use a .pdrc file, + where you can put the command-line arguments for pd that you "always" need. +

If you don't see a startup message from GEM, then something went wrong. +

Most people use use the command shell to start Pd. +It is not very difficult to configure Pd to run from double-clicking on the icon. +

---- +
2.3) Why doesn't GEM run? +

Notice that the -lib flag always requires Unix +styles slashes. This is the case even on Windows. +

You may also want to use the -nosound flag. +For instance, my PC has problems using audio (it leaks memory), so I just +turn off the audio part of Pd. However, other people can't get GEM +to work if the -nosound is used (on Win95). You can also try the +-dac or -adc flags (for digital-analog-conversion only and analog-digital-conversion +only). +

---- +
2.4) I've got it running. Now what? +

Try out the manual. It will step you through +the basics. +
You will also want to look at the example files. +Assuming that everything is installed correctly, you can get to the examples +by going to the Help menu in Pd and selecting examples. A bunch of +the patches should start with gem<something>. The best one is +gem/01.basic/01.redSquare.pd +It puts a red square up on the screen and allows you to rotate it. gemImage.pd +shows how to load in a TIFF file. gem/03.lighting/04.moveSpheres.pd +moves two spheres around the screen. Try the other ones. +
Most of the GEM objects have test patches which +give some information about the various controls for the object. +

---- +
2.5) On IRIX 5.3, why does GEM dump with an rld error? +

GEM only works under IRIX 6.2+. The rld error +is probably something about not having glBindTextureEXT (or something). +OpenGL 1.0 has some extensions to speed up texture mapping (which are an +integral part of OpenGL 1.1). However, these don't exist on IRIX +5.3. If you recompile GEM (see the next question), things should +work fine. +
I don't have access to an IRIX machine, so don't +expect any builds from me. Upgrading to IRIX 6.2+ is worth it. +

---- +
2.6) Why can't I compile GEM on IRIX 5.3? +

There was probably an error saying that the compiler +couldn't find the file "dmedia/vl_vino.h" in pix_videoSGI.cpp. IRIX +6.2+ adds new functionality to the media libraries which makes life much +easier. You cannot compile pix_video or pix_indycam as is under 5.3. +You can remove them from the Pix/Makefile and from the linker part of the +global Makefile. You will also need to recompile the Td and Tiff +libraries. +

There shouldn't be any problems doing this. I haven't tried any +of this, so if it works for someone, please let me know. +

---- +
2.7) Why is GEM slow in general? +

Examine what you are doing. If you are constantly +changing textures, then this is probably your problem. If you have +models with a million triangles, then this is probably the problem. +Compare what you are doing with realistic specs on your system. Some +systems slow down when they have to draw very large polygons (slow fill +rate). +
You can also turn on profiling to see how long it +takes to render a frame. Send a profile message to the gemwin object. +The number that is printed is the number of milliseconds one frame takes +to render. 50 milliseconds is 20 frames per second. 'profile 2' is +good if you want to see how long the image processing is taking. +
profile 0 - turn off profiling +
profile 1 - turn on profiling +
profile 2 - turn on profiling +and don't cache pixes +

---- +
2.8) Why is GEM slow on IRIX? +

If you are having major slowdowns, then please let +me know. I have gotten very good performance on most machines (Indy, +O2, Impact, Onyx2). +

---- +
2.9) Why is GEM slow on WinNT/Win95? +

You probably don't have hardware acceleration. +You can use software rendering, but it basically useless except for extremely +basic patches. You can get a good graphics accelerator for really +cheap these days. I recommend a card based on nVidia's chipsets, +such as the TNT2 or GeForce, but there are other companies such as 3dfx +and Matrox. Make sure that you are running the latest drivers for +your card. The basic drivers that come with the cards are usually +very bad. +
Also, PCs don't deal with lots of texture maps very +well (they are bus limited, at least until AGP), so if you are trying to +use lots of constantly changing texture maps +(especially with [pix_multiimage], [pix_video] or [pix_film]), that will cause problems. +

---- +
2.10) Why is GEM slow on Linux? +

It is because you have to use Mesa, which might be +running iin software. Mesa (http://www.mesa.org) +is an awesome package by Brian Paul (brianp@avid.com) which "emulates" +OpenGL. Basically, it is a fully compliant OpenGL package, but it +isn't officially sanctioned by the OpenGL ARB, such, it is doesn't have +the OpenGL name. There is an acceleration package for the many graphics +card, but I don't know anything about it. +
nVidia is being very supportive of Linux: +their TNT2 and GeForce cards work under Linux with hardware-acceleration of openGL. +(but the drivers are proprietary) +
radeon cards should also be supported very well under linux (even with open-source drivers) +

---- +
2.11) If I resize the window, everything looks strange. +

GEM doesn't trap resize events in IRIX or Linux (this +is not a problem in WinNT). This means that OpenGL doesn't have the +correct information to render properly. If you want to resize the +window, send a 'dimen x y' message to gemwin before you create the window. +

---- +
2.12) Can GEM run on a 3Dfx Voodoo card? +

I (this is: Mark Danks) have a Voodoo2 card, which runs fine under WinNT. +I use the OpenGL beta driver from 3Dfx at work all the time without any +problems and, except that the Voodoo takes over the full screen, it seems +to work fine. You will need to download the OpenGL Beta driver from +3Dfx's web site at http://www.3dfx.com and put the OpenGL32.dll into the +same directory as pd.exe (NOT gem.dll). Debugging patches is much +easier if you have two monitors, one for the 3-D card and one for the 2-D +card. +

IMPORTANT: You MUST set the environment variable +

GEM_SINGLE_CONTEXT = 1 +

to make the Voodoo card work. It will make a window 640x480 (which +is the correct size for TV video out on my Canopus V2 card). On WinNT, +right click "My Computer" and go to "Properties". On the "Environment" +tab, you need to add the variable "GEM_SINGLE_CONTEXT" with a value of +1. +
Resizing the GEM window with a Voodoo card is not +a great idea. The Voodoo card can only display certain window sizes and +will clip the graphics. +

For the tech heads in the audience...I create an +OpenGL context at startup and never actually display its associated window. +This means that GEM objects can create display lists, call OpenGL commands, +etc. in their constructors, even if no window is actually being displayed. +However, with the Voodoo card, there can only be one OpenGL context. +So, instead of creating one context and just holding onto it in the background, +I create the normal GEM window and associate the OpenGL context with it...and +the user can never destroy or close that window. +

---- +
2.13) Will GEM support hardware transform and lighting +(T & L)? +

Absolutely! Unlike some other APIs, OpenGL +will automatically use hardware accelerated transform and lighting if the +card has it. GEM gets great performance from cards like nVidia's +GeForce. +

2.14) I get an error "GEM needs Truecolor visual +support". +

This error means that your X display is running with +paletted colors, which is the result of limited color depth. If you +start the X display with +

startx -- -bpp 16 +

or some higher number, then it should work fine. 32-bit color +is the best. +

+


VIEWING OBJECTS

+
3.1)Why does everything seem dim?< +

You probably turned on lighting but don't have any +lights in the world. Either add a light with world_light or +light +or turn lighting off by sending a message 'lighting 0' to the gemwin. +You can also send a reset message to gemwin to set it back to the +startup state (which doesn't have any lighting). +

---- +
3.2) Why does everything seem dark? +

See question 3.1. +
If you are using view in your patch to change the viewpoint, +you may not be pointing in the correct direction. You also might have translated +everything outside of the current viewport. +
Also, if you have been using single buffering ('buffer +1' message to gemwin), then you might still be in that mode. +Either send a 'buffer 2' message or a 'reset' message to gemwin. +Then, destroy and create your window. +

+


TEXTURE MAPPING

+
4.1) My image doesn't appear. What is going +on? +

Normally images have to be texture-mapped onto Geos. +You have to use [pix_texture] to map the current image onto a Geo. +"Current" means that any pix-manipulation that is done after texturing will not be displayed. +

Any Geo has a color (which is initially set to white). +If you have set the color to black, your Geo (including the image) might be very dark. +If you are using alpha-blending, make sure that the Geo is not invisible. +

Normally images that want to be texture mapped with openGL should have dimensions that are a power of 2 in both height and width. +Now [pix_texture] will make this totally transparent to you (so normally you don't have to care about the size of the image). +However with non-power-of-2 images pix_coordinate might not behave as expected, +because these images need absolute texture-coordinates rather than normalized ones +(as are used with power-of-2 images): so if the texture-coordinates are set to "(0,0) (1,0) (1,1) (0,1)" you might see only the first pixel of the image (which might be black). +

Also, make sure that GEM can find your image (ie, +that the path name is correct). +

---- +
4.2) My image looks strange. What is going +on? +

GEM supports gray8, YUV, and RGBA images. If +it sees that the number of bits per channel and the number of channels +is something that it should be able to handle, it tries to load the raw +data. If you have compressed or stored the pixel data in some "strange" +format, then GEM will probably not read the information correctly. +
Also, if it is an RGBA image, then make sure that +the alpha channel is something useful (this only matters if you are using +the alpha channel, like in the alpha object or pix_mask). +

---- +
4.3) Why does GEM say that it can't handle a gray +image? +

This error message occurs whenever a pix object receives +a gray8 image and the implementor hasn't provided a way to deal with that +format of image. (Implementors often only provide functions for GEM's native +color-format RGBA. Any other color-format (like BGR) will try to call the function +for gray8 images, which might not be supported.) + If you do not want to change the image format with some extern image-programm +(like Photoshop or the Gimp) you might want to try pix_rgba +or harass whoever made the object to add the functionality. +

---- +
4.4) What image formats can GEM handle? +

GEM can read in TIFF, JPEG, and SGI images. +These can be in any color format. Gray scale images are loaded in +as gray scale (ie, one byte per pixel). Everything else is loaded +in or converted to an RGBA image (ie, four bytes per pixel). If there +is an alpha channel, then it will be respected. Otherwise, the alpha +channel will be set to fully opaque (alpha == 255). +

GEM can write TIFF and JPEG images. +TIFF-images will be full RGBA-images, wheras JPEG-files only support (compressed) RGB. +

---- +
4.5) What movie formats can GEM handle? +

The movie formats GEM can handle (still) depend on the platform +you are using. +

On Windoze you can read all AVI-files you have codecs for +

On linux the readable formats depend on the libraries you had installed when you compiled GEM. +Currently there is (optional) support for AVI, quicktime (*.MOV) and MPEG (*.MPG) files. +Not all quicktime-formats are supported. This is unfortunate but is due to linux restrictions. +I highly recommend that you install the mpeg3-library from Heroine because it is much more stable than mpeg1 (which comes with many linux-distributions). +If you have compiled in support for libavifile, you will be able to open Micro$oft-AVI-files. +If you have installed the proper codecs +(libavifile supports a mechanism for loading codecs from windows-DLLs) you should be able to +open almost any format. + +If you have serious problems, mail them to me. +(Be ready to upload the movie-file that won't work) +

---- +
4.6) Why is pix_draw so slow? +

pix_draw is almost never hardware accelerated +on PCs graphics accelerator. This means that it runs extremely +slowly. Always use pix_texture, even if you are just displaying +an image. +

+


WORKING WITH PD

+
5.1) Why do I get clicks in the audio? +

If you are getting a constant stream of clicks in +your audio, then it is probably because you are trying to do graphics and +audio in the same process. Rendering a graphics frame usually takes +longer than the size of the audio buffer, which is why you get clicks (the +clicks are usually at 20Hz...the typical frame rate). +
One way around this is to use two computers, one +for graphics and one for audio. If you have enough processing power +(or dual processors), then you can run two versions of Pd, one for graphics +and one for audio. Just use netsend and netreceive +to have the two versions of Pd talk to each other. +

---- +
5.2) How do I get audio data to GEM? +

One simple way to get raw audio values right now is +to use snapshot~. Just set up a metro which bangs snapshot~ +and use the floating point value. If you want "musical" information, +then use objects such as env~. +You might also have a look at the pix_sig2pix~ which interprets audio-data as pixels +and its counterpart pix_pix2sig~ +

---- +
5.3) Why can't GEM find an image/model file? +

This means that GEM can't locate the file. +If you use an absolute path (with / for instance), then GEM will look there. +Otherwise, GEM will look in the directory of where the patch is. +Then pd/GEM will search the paths you specified at startup with the -path flag. +

Check the following: +

1) Does the file exist? +
2) Did you make a typo in the filename? +
3) Is the file in the search-path ? +

---- +
5.4) How can I optimize my patches? +

One of the biggest performance hits is having UI +elements in your patch which have to be updated. The biggest performance +hog is the number box. While the number box is great for debugging, +make sure that they are all gone from your "release" patch. If you +run a performance meter, you will see that whenever Tcl/Tk has to update +the user interface, it sucks the entire processor. Another examples +of this is when you move a lot of objects at once, everything jerks and +slides across the screen. There are probably ways to improve this... +
Another problem is doing unneccessary calculations. +When you are throwing lots of numbers around, especially packing/unpacking, +doing vector math, etc., they add up. If the calculations are going +unused (for instance, that part of the patch is turned off), then do not +trigger the math objects. Use spigot or gate and block +the events early. This is especially important with objects that +send a lot of numbers, like ~ objects or line/tripleLine. +

+


WRITING NEW GEM OBJECTS

+
6.1) How do I write a new GEM object? +

For the time being, you have to look at the code. +It is fairly well documented and straight forward (if you know C++ and +OOP). Start with an object which is similar to what you want and +derive a new class. The biggest issue right now is how to load in +GEM as a DSO/DLL. For SGIs, you will need to setenv LD_LIBRARY_PATH. +On NT, you will need to have your path include the directory with GEM. +

---- +
6.2) What are the default OpenGL states? +

GemMan (and by association, gemwin) disables alpha +testing, alpha blending, culling, and lighting. Lighting defaults +to two sided, with GL_COLOR_MATERIAL enabled. The viewport is set +to +

float xDivy = (float)m_width / (float)m_height; +
glMatrixMode(GL_PROJECTION); +
glLoadIdentity(); +
glFrustum(-xDivy, xDivy, -1.0, 1.0, 1.0, 20.0); +
gluLookAt(0.0, 0.0, 4.0, 0.0, 0.0, 0.0, 0.0, 1.0, +0.0); +
glMatrixMode(GL_MODELVIEW); +
glViewport(0, 0, m_width, m_height); +

which gives a range of about -4 to 4 in X and Y at the origin. +This is a small range, but changing it now would break a lot of patches. +

The specific functions to look at are: +

GemMan::windowInit() +
GemMan::resetValues() +
gemhead::renderGL() +

+


OBJECT SPECIFIC

+
7.1) Why doesn't <object> exist on <platform>? +

Usually, this is because I don't have the resources +to get the object running on that platform. If an object that you +want doesn't exist on your platform, then ask for it! However, if +it is tied to hardware, then it is much less likely that I will be able +to do anything about it (unless someone donates the hardware to me...) +

---- +
7.2) Why doesn't gemtablet work? +

gemtablet only works on WinNT. I don't +have drivers for IRIX or Linux (also, see question 7.4) +
If GEM can find the tablet, then it will print a +message at window creation time. If you don't see a message, then +GEM doesn't think that you have a tablet. +
The tablet is mapped to the size of the GEM graphics +window. +

--- +
7.3) I don't want GEM to take over my tablet. +How do I stop it? +

Set the environment variable +

GEM_NO_TABLET = 1 +

---- +
7.4) Why doesn't gemmouse work in IRIX? +

Basically, I don't have physical access to an SGI machine. +This makes it hard to do some of the OS specific work. +It should be straightforward to do the event handling, so if someone gets +it working, I would love to include it (and give you credit). All +you have to do is call the correct event functions from GemEvent.h and +everything should just start to work (ie, gemmouse doesn't have any OS +specific code in it). +

---- +
7.5) Why doesn't gemorb work? +

You need to make sure that your SpaceOrb is hooked +up correctly. I am using a library which isn't supported by SpaceTec so +there can be problems, although I have not had any. +
<RANT> When will companies wake up and actually +provide drivers and support for their products under WinNT? </RANT> +

---- +
7.6) What is wrong with pix_video in WinNT? +

I haven't completely figured out how to get access +to the video stream in WinNT. I'm using Video for Windows with a +Connectix QuickCam, as well as an Intel Video Capture Card, and it seems +to assume that you are only writing to a file or previewing into a window. +Windows tries to take over the system and doesn't really provide any stable +hooks (unlike IRIX). If anyone knows how to deal with this, please +let me know. +

[return] +
+
+ + diff --git a/src/Gem/doc/manual/GemWPd.html b/src/Gem/doc/manual/GemWPd.html new file mode 100644 index 0000000..b564d99 --- /dev/null +++ b/src/Gem/doc/manual/GemWPd.html @@ -0,0 +1,140 @@ + + + + + + + Using GEM with Pd + + + +

+

+Using GEM with Pd

+    An important fact is that GEM is NOT an application. +It is a library that the application Pd loads in at run-time.  Most +of this information is taken directly from the GEM FAQ. +

How do I install GEM on IRIX? +
How do I install GEM on Win95/NT/2k? +
How do I install GEM on linux? +
How do I install GEM on macOS-X? +
How do I run GEM on IRIX? +
How do I run GEM on Win95/NT/2k? +
How do I run GEM on linux? +
How do I run GEM on linux? +
Why doesn't GEM run? +

+

+How do I install GEM and Pd on IRIX?

+See the readme for installing Pd. +

Uncompress and untar the GEM file that you downloaded.  GEM should +be located at +

pd/gem +

depending on where you have installed Pd. +

If you run the shell script, GEM.INSTALL.sh, then all of the example +files and documention +
should be put in the correct locations. +

+

+How do I install GEM and Pd on WinNT?

+See the readme for installing Pd. +

TODO: there should be a install package somewhere +

Unzip the GEM file that you downloaded so that it is at +

pd\gem +

depending on where you have installed Pd. +

If you run GEM.INSTALL.bat, then all of the example files and documentation +should be put in the correct locations. +

+

+How do I install GEM and Pd on linux?

+See the readme for installing Pd. +

Uncompress and untar the GEM file that you downloaded so that it is at +

pd/gem +

depending on where you have installed Pd. +

chdir into <pd/gem>/src/Gnu +

read the README.build +

run ./configure and afterwards make +

If you run make install, then all of the example files and documentation +should be put in the correct locations. +

+

+How do I install GEM and Pd on macOS-X?

+See the readme for installing Pd. +

TODO: there should be a install package somewhere +

+

+How do I run GEM on IRIX?

+   To use GEM type something like: +

/usr/people/mdanks/pd/bin/pd -lib /usr/people/mdanks/pd/gem/Gem +

(where /usr/people/mdanks is the path to the pd directory). Check out +the README for Pd to see examples of the -lib flag. If you just try to +"run" GEM, you will get an error! Notice that last word is a capital Gem. +If you get a "can't find gem_setup" error, then that is the problem. Look +in the GEM FAQ +
for trouble shooting suggestions. +

If you don't see startup messages from GEM, then something went wrong. +
Also, you might need to add pd/bin to your PATH environment variable. +

+

+How do I run GEM on Win95/NT?

+    It is best to start Pd from a DOS command line.  +If you go to the Start menu, you should find an application called "Command +Prompt" under the Program menu.  You need to change to the drive where +you installed Pd.  For instance, if it is on your D: drive, just type +d: at the prompt. +

   To use GEM type something like: +

\pd\bin\pd -lib /pd/gem/Gem +

depending on where you installed Pd. +

    Check out the README for Pd to see examples of the +-lib flag. If you just try to double click GEM, you will get an error! +Notice that last word is a capital Gem. If you get a "can't find gem_setup" +error, then that is the problem. Look in the GEM FAQ for trouble shooting +suggestions. +

If you don't see a startup message from GEM, then something went wrong. +

    Most people use the command shell to start Pd.  +It is difficult to configure Pd to run from double-clicking on the icon. +

    Also, you might need to add pd/bin to your PATH environment +variable. +

+

+How do I run GEM on linux?

+   To use GEM type something like: +

/usr/people/mdanks/pd/bin/pd -lib /usr/people/mdanks/pd/gem/Gem +

(where /usr/people/mdanks is the path to the pd directory). Check out +the README for Pd to see examples of the -lib flag. If you just try to +"run" GEM, you will get an error! Notice that last word is a capital Gem. +If you get a "can't find gem_setup" error, then that is the problem. Look +in the GEM FAQ +
for trouble shooting suggestions. +

If you don't see startup messages from GEM, then something went wrong. +
Also, you might need to add pd/bin to your PATH environment variable. +

+

+How do I run GEM on macOS-X?

+   To use GEM type something like: +/usr/local/bin/pd -lib /Users/zmoelnig/pd/Gem +

(where /usr/local/bin/pd is the path to the pd directory and +/Users/zmoelnig/pd is the path where the Gem.pd_darwin resides). +Check out the README for Pd to see examples of the -lib flag. If you just try to +"run" GEM, you will get an error! Notice that last word is a capital Gem. +If you get a "can't find gem_setup" error, then that is the problem. Look +in the GEM FAQ +
for trouble shooting suggestions. +

If you don't see startup messages from GEM, then something went wrong. +
Also, you might need to add pd/bin to your PATH environment variable. +

+

+Why doesn't GEM run?

+    Notice that the -lib flag always requires Unix styles +slashes, even if you are on Windows.  This means that you need to +do -lib /gem/Gem, not -lib \gem\Gem +

    You may also want to use the -nosound flag.  +For instance, my PC has problems using audio (it leaks memory), so I just +turn off the audio part of Pd.  However, other people can't get GEM +to work if the -nosound is used (on Win95).  You can also try the +-dac or -adc flags (for digital-analog-conversion only and analog-digital-conversion +only). +

[return] +
  + + diff --git a/src/Gem/doc/manual/Gloss.html b/src/Gem/doc/manual/Gloss.html new file mode 100644 index 0000000..1d42709 --- /dev/null +++ b/src/Gem/doc/manual/Gloss.html @@ -0,0 +1,41 @@ + + + + + + + Glossary/Index + + + +

+

+Glossary

+Alpha - The amount of opacity.  An alpha equal +to 1.0 means completely opaque.  An alpha equal to 0.0 means completely +transparent. +

Controls - GEM objects which access the low levels +of GEM, such as window managers. +

Geos - GEM objects which have a shape of some kind, +such as a cube. +

Manips - GEM objects which manipulate the geos. +

MarkEx - A collection of objects which help with +data manipulation, especially for usage in GEM. +

Nongeos - GEM objects which do not have an explicit +shape, yet affect the rendering in some way. +

OpenGL - A +graphics API which exists on many different platforms.
+Gem can also be used as a wrapper for openGL, allowing to program openGL without having to +compile +

Particles - GEM objects which involve the particle +system. +

Pd +- A visual programming language for audio processing.  This is the +host application for GEM. +

Pixes - Image processing objects in GEM +

Texture mapping - Applying an image to a geometric +object. +

[return] +
  + + diff --git a/src/Gem/doc/manual/Images.html b/src/Gem/doc/manual/Images.html new file mode 100644 index 0000000..182d153 --- /dev/null +++ b/src/Gem/doc/manual/Images.html @@ -0,0 +1,112 @@ + + + + + + + Images + + + +

+

+Dealing with Images

+Images are files which are loaded into GEM. The images can be manipulated, +applied to objects, and used in any number of different ways. In +this section, you will load in an image and display it on the screen. +This section will not apply the images to a geo; that occurs in +the next part of the manual. +

The pix objects are GEM objects which deal with pixels. +They do everything from loading in images to applying filters to the data. +The objects in this section of the manual only load in pix data from outside +sources. How you actually display the image is up to you. The +most common usages are with [pix_draw] and [pix_texture]. +

Warning: [pix_draw] is almost always slower than [pix_texture]. +Because [pix_draw] is easier to use than [pix_texture], it is +used in these examples. However, in any real usage or piece, [pix_texture] +should always be used instead. [pix_draw] is slow because PC +graphics accelerators do not provide hardware acceleration for that functionality. +[pix_texture] does have hardware acceleration and will be much faster. +

[pix_image] - load in an image +
[pix_multiimage] - load in multiple images +
[pix_movie] - load in a movie file +
[pix_video] - use a real time video source +

+

+[pix_image]

+[pix_image] is used to load in images. Images can be in a variety +of different formats, including TIFF, JPEG, and SGI formats. The +patch gem_pix/gemImage.pd is the simplest use of the [pix_image] object. +In this patch, the [pix_image] object loads in the file dancer.JPG. +
+

+ +

As is the case with every GEM chain, this patch starts with the [gemhead] +object. The next object is [pix_image], which actually loads +the image. [pix_image] makes the file dancer.JPG the current +pixel data, which will be used in all subsequent operations in the chain. +The [translateXYZ] object is used to move the image around. +Finally, the [pix_draw] object renders the pixel data to the screen. +

The patch mentions that changing the Z in [translateXYZ] does not +change the size of the image, as would occur with a geo object like +[square]. +This is because [pix_draw] simply draws the pixel at the current raster +position, without any transformation. If you want to change the size +on the fly and rotate the image, you need to texture map the pix, which +is described in the next section. +

+

+[pix_multiimage]

+The [pix_image] object only loads in one image at time. If you +try to change the image rapidly while the patch is running, you will notice +a lag every time it has to load in a new file. To avoid this lag, +there is another object called [pix_multiimage]. If you look +at patch gem_pix/gemMultiImage.pd, you will see this object in action. +

Basically, the * in the file name is replaced by the number that you +pass in. This allows you to play sequences of images with random +access. The one downside is that every image is loaded into memory +when the object is created, so you need to have a lot of RAM to use it. +

+

[pix_movie]/[pix_film]

+These objects are used to read movie-files from disk (or if supported from the internet). + +The movie is streamed off of disk, +using whatever decompression libraries are installed on your computer. +On Windows AVI movies seem to work fine, +but there is also a prelaminary support for quicktimes (and mpeg). +On macOS-X all formats supported by the system (basically: quicktime) should work ok. +On linux the support is highly depending on what libraries are installed during compile time. +There is support for MPEG (with libmpeg1 or (preferred:) libmpeg3), +quicktime (either libquicktime or quicktime4linux; +most likely you will not be able to decode quicktimes with proprietary codecs) +and AVI (with libavifile which is able to utilize windows-dlls for (proprietary) codecs). +There is also some rudimentary support for FFMPEG. + +The right inlet of [pix_movie] +accepts a number to specify the frame to display. Look at 04.pix/04.movie.pd +for an image. +

A key fact of [pix_movie] is that it immediately sends the movie +data to OpenGL as a texture map. This means that you do not need +the [pix_texture] object in your chain. This also means that +you cannot process the movie data with pix objects. The main reason +for this is that it removes the need for a copy of all of the movie data. +If you want to apply some image-processing, you will have to use [pix_film] +(and [pix_texture] for texture-mapping). +

Some of the geos will not texture map the [pix_movie] data correctly. +Cone and sphere do not use texture coordinates when they are provided, +so when you display a movie on one of these objects, you will have a black +region (unless your movie size is a power of two...however, most movies +are 320x160 pixels or something). This will be fixed in a future +release. +

+

+pix_video

+The "image" can come from the [pix_video] object. +This means that you can use a real-time video source and display it on the screen. +

You can play with [pix_video] with the patches in 04.video/. +The patches are explained in more depth in the advanced section of the GEM manual. +

+

[return] +
+ + diff --git a/src/Gem/doc/manual/Input.html b/src/Gem/doc/manual/Input.html new file mode 100644 index 0000000..fe089d0 --- /dev/null +++ b/src/Gem/doc/manual/Input.html @@ -0,0 +1,19 @@ + + + + + + + Input devices + + + +

+

+Input devices

+ +


Nothing here yet +

[return] +
  + + diff --git a/src/Gem/doc/manual/Intro.html b/src/Gem/doc/manual/Intro.html new file mode 100644 index 0000000..23e8d23 --- /dev/null +++ b/src/Gem/doc/manual/Intro.html @@ -0,0 +1,62 @@ + + + + + + + GEM - Introduction + + + +

+

+Introduction

+GEM is the Graphics Environment for Multimedia. It was originally written by +Mark Danks to generate real-time computer graphics, +especially for audio-visual compositions. +Because GEM is a visual programming environment, users do not need any experience +in traditional computer languages. +

GEM is a collection of externals which allow the user to create +OpenGL +graphics within Pd, +a program for real-time audio processing by Miller +Puckette (of Max fame). +

There are many different shapes and objects, including polygonal graphics, +lighting, texture mapping, image processing, and camera motion. All of +this is possible in real-time without any previous programming experience. +Because GEM is an add-on library for Pd, +users can combine audio and graphics, controlling one medium from another. +

GEM is supported in part by a grant from the Intel +Research Council for the The Global Visual +Music project of Vibeke +Sorensen, Miller Puckette +and Rand Steiger. +

An important thing to remember is that GEM is NOT an application.  +It is a library that Pd loads at run-time.  Make sure that you see +the section on using GEM with Pd.  This +manual assumes that you have Pd working correctly and can load up patches +already.  If you do not have that working yet, look at the Pd manual +and the GEM FAQ.  Also, it is assumed that you have a basic understanding +of how to use Pd and the idea behind the data flow model.  In other +words, if I ask you to pass a message with 3 floats into an object, you +would know what I mean. +

The system requirements vary depending on your system and what you are +trying to do.  In general, you should have the most powerful computer +available and the best graphics accelerator on the market.  In reality, +people have been doing some amazing work with a Pentium II and an nVidia +Riva TNT or 3Dfx Voodoo2 card.  +If you are on an SGI, then everything from an O2 up seems to be okay.  +The biggest requirement is that you have some kind of OpenGL graphics accelerator.  +This means that a Matrox Millennium II will not run very quickly. +

The other factor is what you are trying to do.  Pushing real-time +video around requires a fast bus, which really only exists on SGIs.  +Doing thousands of texture mapped polygons is great on a PC...if it is +a constant texture.  There are many issues which mean that there is +no one answer to "Is this system good enough?".  In general, you will +have to try and see. +

GEM is now maintained by IOhannes m zmölnig. +So any bug-reports and donations should go to him instead of Mark... +

[return] +
  + + diff --git a/src/Gem/doc/manual/Lighting.html b/src/Gem/doc/manual/Lighting.html new file mode 100644 index 0000000..dcff171 --- /dev/null +++ b/src/Gem/doc/manual/Lighting.html @@ -0,0 +1,107 @@ + + + + + + + Lighting + + + +

+

+Lighting

+Lighting is an important factor is how we perceive the quality of an image. +For example, without lighting and shading, a sphere would just look like +a circle. GEM provides two types of lights, a local light and world +light. +

OpenGL uses a vertex lighting model. This means that for every +vertex in the scene, the influence of the light is calculated. The +color for the polygon is then modified by the light value of all of the +vertices. This generally produces a very smooth effect, but you will +occasionally run into rendering artifacts, especially if you use local +lights. For example, imagine you have a local light close a large +square. The corners of the square are far away from the light, so +none of them will be lit very brightly, even though the light itself is +very close to the surface of the square. +

It is important to realize that lighting is an expensive operation to +use. The number of polygons that you will be able to render will +be much lower if lighting is turned on. As usual, the complexity +of the scene and the speed of your computer and graphics card will greatly +affect your frame rate. +

GEM has only a maximum of 8 lights at one time. If you try to +create more lights than that, you will get an error message. +

Activate lighting +
[world_light] - A directional light +
[light] - A point light in the world +
Moving lights +

+

+Activate lighting

+Lighting is activated by sending a message to [gemwin]. If you +send "lighting 1", then lighting will be turned on. If you send "lighting +0", then lighting will be turned off. The lighting state is kept +even if you destroy the gemwin. This means that if you close a patch +and open another one, the lighting will still be the same. +

Individual lights can be turned on and off by sending a 1 or 0 to the +left inlet of the light object itself. +

+

+[world_light]

+A [world_light] is a light which exists infintely far away. +This reduces the computation needed, so your patch can run faster, but +it means that all of the light rays are parallel. The [world_light] +is good for objects like the sun and other lighting affects. This +means that translating a [world_light] has no effect, although rotation +does. +

The following patch is 03.lighting/01.world_light.pd. +

+

+ +

The [world_light] has one extra inlet. The right inlet accepts +three floats to set the color of the light. A [color] object +would do nothing. In this case, the light is being set to purple. +The [world_light] also accepts a debug message. The debug message +turns on and off a graphical representation of the light in the scene. +The [world_light] looks like a cone. The cone shows the direction +that the light is coming from. Remember that the actual position +of the light does not matter, so geos behind the cone will still be lit. +It is the direction of the light that matters. This is why you can +rotate the light. +

+

+[light]

+A [light] object generates a point light in the world. Because +the light is local to the scene, there is more math to generate the effect +of the light on the vertices. However, unlike a [world_light], +you can translate the [light] object. +

Below is the patch 03.lighting/02.light.pd. +

+

+ +

The [light] object has a right inlet for the color, just light +the [world_light] object. As this patch shows, the light can +be moved around the scene with both [rotate] and [translate] +objects. If you were to set the translate X value equal to 1.0, then +the sphere would not be lit at all. This is because the light would +be inside of the sphere. When you turn on the debug representation, +it is a sphere with its origin where the light it. The [light] +object does not have any size. It exists as a point source. +

+

+Moving lights

+The patch 03.lighting/03.controlLights.pd allows you to move a [light] +and [world_light] object in the same scene to see the difference between +the two objects. +

The patch 03.lighting/04.moveSpheres.pd is an example which moves +two spheres around the world. Turn on and off the individual lights +for a demonstration of a local versus infinite light. +

The patch 03.lighting/05.materials.pd uses the material objects to +selectively control the color of the object. Notice that the diffuse object +sets the "overall" color, while the specular objects sets the bright reflective +area where the light directly shines. +

+

[return] +
+ + diff --git a/src/Gem/doc/manual/ListObjects.html b/src/Gem/doc/manual/ListObjects.html new file mode 100644 index 0000000..2708993 --- /dev/null +++ b/src/Gem/doc/manual/ListObjects.html @@ -0,0 +1,231 @@ + + + + + + + List of GEM objects + + + +

+

+List of GEM objects

+Controls +
Manipulators +
Geos +
Particles +
Nongeos +
Pixes +
TV +
MarkEx +

+


Controls +
gemhead - the start of rendering chain +
gemwin - the window manager +
gemmouse - outputs the mouse position and buttons in the GEM window +
gemkeyboard - outputs the keycode of a key pressed when you are in the GEM window (there might be different keycodes in Windows/Linux) +
gemkeyname - outputs a symbolic description of a key pressed when you are in the GEM window (there might be different symbols in Windows/Linux) +
gemorb - outputs the position, rotation, and buttons for a Space Orb +
gemtablet - outputs the pen position, pressure, and buttons in the +GEM window +

+


+
Manipulators +
accumrotate - accumulate a rotation +
alpha - enable/disable alpha blending +
ambient - set the ambient color with a vector +
ambientRGB - set the ambient color with 3 discrete values +
camera - +
color - set the color with a vector +
colorRGB - set the color with 3 discrete values +
depth - enable/disable depth testing +
diffuse - set the diffuse color with a vector +
diffuseRGB - set the diffuse color with 3 discrete values +
emission - set the emissive color with a vector +
emissionRGB - set the emissive color with 3 discrete values +
linear_path - generate a path from an array of points +
ortho - change the view to orthogonal, with the viewport the size of +the window +
polygon_smooth - turn on anti-aliasing for the objects below +
rotate - rotate with an angle and vector +
rotateXYZ - rotate with 3 discrete values +
scale - scale with a vector +
scaleXYZ - scale with 3 discrete values +
separator - push the OpenGL state for the rest of the chain and pop +when done +
shininess - set the shininess of an object +
specular - set the specular color with a vector +
specularRGB - set the specular color with 3 discrete values +
spline_path - generate a spline from an array of knots +
translate - translate with a vector +
translateXYZ - translate with 3 discrete values + +

Geos +
circle - render a circle +
colorSquare - render a colored square (evtl. with color gradients) +
cone - render a cone +
cube - render a cube +
cuboid - render a box +
curve - render a Bezier curve +
curve3d - render a surface +
cylinder - render a cylinder +
disk - render a disk +
imageVert - make pixel colors to a height field map +
model - render an Alias|Wavefront model +
multimodel - render a series of Alias|Wavefront models, render by number +
newWave - render a wave (that is evolving over time) +
polygon - render a polygon +
primTri - a triangle primitive +
rectangle - render a rectangle +
ripple - a rectangle with distorted (over time) texture-coordinates +
rubber - a grid where you can move one of the grid-points +
slideSquare - render a number of sliding squares +
sphere - render a sphere +
square - render a square +
teapot - render a teapot +
text2d - render 2-D text (a bitmap) +
text3d - render 3-D text (polygonal) +
textextruded - render an extruded 3D-text +
textoutline - render outlined text (polygonal) +
triangle - render a triangle +

Particles +
part_head - The start of a particle group +
part_color - Set the range of colors for the new particles +
part_damp - set the damping for particles +
part_draw - Apply the actions and render the particles.  Accepts +a message "draw line" or "draw point" to change the drawing style. +
part_follow - Particles will follow each other like a snake +
part_gravity - Have the particles accelerate in a direction +
part_info - get the information (position, color, size,...) of each particle +
part_killold - Remove particles past a certain age +
part_killslow - Remove particles below a certain speed +
part_orbitpoint - Orbit the particles around a specified point +
part_render - render the remaining gem-tree as particles. +
part_size - Set the size of new particles +
part_source - Generate particles +
part_targetcolor - Change color of the particles toward the specified +color +
part_targetsize - Change size of the particles toward the specified +size +
part_velocity - Set the velocity domain +(distribution like CONE and the appropriate arguments) +
part_vertex - emit a single particle + +

Nongeos +
light - make a point light +
world_light - make a light at infinity +

Pixes +
pix_2grey - convert rgb pixels to grey (still an RGBA image) +
pix_a_2grey - convert rgb pixels to grey based on alpha channel +
pix_add - add two pixes together +
pix_aging - super8-like aging effect +
pix_alpha - set the alpha value of a pix +
pix_background - let through only pixels that differ from a static "background" image +
pix_backlight - a backlight photo effect +
pix_biquad - 2p2z-filter for subsequent images +
pix_bitmask - apply a bitmask to a pix +
pix_blob - get center of gravity +
pix_buf - buffer a pix +
pix_buffer - storage room for pixes (like [table] for floats) +
pix_buffer_read/pix_buffer_write - put/get pixes into/from a pix_buffer +
pix_chroma_key - color keying (like "blue-box") +
pix_coloralpha - set the alpha-channel of a pix as a mean-value of the color-components +
pix_colormatrix - recombine the RGBA-channels with matrix-operation +
pix_color - set the color of a pix (leaving alpha alone) +
pix_colorreduce - reduce the number of colors (statistically) +
pix_composite - composite two pixes together +
pix_convolve - convolve a pix with a kernal +
pix_coordinate - set the texture coordinates +
pix_crop - get a sub-image of a pix +
pix_curve - apply color-curves onto a pix +
pix_data - get pixel data information +
pix_delay - frame-wise delay +
pix_diff - get absolute difference of two pixes +
pix_dot - rasterize a pix with big dots +
pix_draw - draw a pix +
pix_dump - dump the pixel-data as a long list of floats +
pix_duotone - reduce the number of colors by thresholding +
pix_film - use a movie file as a pix source for image-processing +
pix_flip - flip the pixels of a pix +
pix_gain - apply a gain to a pix +
pix_grey - convert any pix into greyscale colorspace +
pix_halftone - rasterize a pix like it was printed in a newspaper +
pix_histo - get the histogram of a pix +
pix_hsv2rgb - transform a pix from HSV-colorspace into RGB-colorspace +
pix_image - load in an image file +
pix_imageInPlace - load a series of image files directly into texture-buffer, display by number +
pix_info - get information about the pix (like dimension, colorspace,...) +
pix_invert - invert a pix +
pix_kaleidoscope - as if you were looking at the pix through a kaleidoscope +
pix_levels - level adjustment +
pix_lumaoffset - y-offset pixels depending on their luminance +
pix_mask - mask a pix based on another pix +
pix_metaimage - recompose an image out of smaller versions of itself +
pix_mix - mix to pixes together +
pix_motionblur - motionblur an image +
pix_movie - use a movie file as a pix source and load it immediately into the texture-buffer +
pix_movement - set the alpha-channel with respect to the change between two frames +
pix_multiply - multiply two pixes +
pix_multiimage - load in a series of image files, display by number +
pix_normalize - normalize a pix +
pix_offset - add an offset to a pix (wrapping instead of clipping) +
pix_pix2sig~ - interpret a pix as 4 (RGBA) audio-signals +
pix_posterize - posterization photo effect +
pix_puzzle - shuffle an image +
pix_rds - generate a Random Dot Stereogram out of the image (aka: Magic Eye (tm)) +
pix_rectangle - generate a rectangle in a pix buffer +
pix_refraction - break up an image into coloured "glass-bricks" +
pix_resize - resize a pix to next power of 2 +
pix_rgb2hsv - transform a pix from RGB-colorspace into HSV-colorspace +
pix_rgba - transform a pix of any format into RGBA +
pix_roll - (sc)roll through an image (wrapping) +
pix_rtx - swap time-axis and x-axis +
pix_scanline - take every nth line of the original image +
pix_set - set the pixel-data with a long list of floats +
pix_sig2pix~ - interpret 4 audio-signals as (RGBA) image-data +
pix_snap - capture the render window into a pix +
pix_snap2tex - capture the render window directly as a texture +
pix_subtract - subtract two pixes +
pix_tIIR - time-base Infinite-Impulse-Response filter (for motion-bluring,...) with settable number of poles/zeros +
pix_takealpha - take the alpha channel of one pix and put it into another pix +
pix_texture - use a pix as a texture map +
pix_threshold - apply a threshold to a pix +
pix_video - use a video camera as a pix source +
pix_write - capture the render window to disk +
pix_zoom - zoom into a pix (using OpenGL) + +

openGL +there are more than 250 objects that +form a complete wrapper around the openGL set of functions +(as defined in the openGL-1.2 standard).
+each openGL-function is prefixed with "GEM", eg: +[GEMglVertex3f] is wrapped around glVertex3f. + +

MarkEx +
alternate - alternate between two outlets +
average - average a sequence of numbers +
change - only output on change +
counter - count bangs +
invert - non-zero numbers to zero, zero to 1 +
multiselect/multisel - a select object which accepts a list in the +right inlet +
oneshot - send a bang, then block until reset +
randomF / randF - floating point random numbers +
strcat - string concatentation +
tripleLine - do a line with three numbers +
tripleRand - random with three numbers +
vector+ / v+ - add a scalar to a vector +
vector- / v- - subtract a scalar from a vector +
vector* / v* - multiply a vector by a scalar +
vector/ / v/ - divide a vector by a scalar +
vectorpack / vpack - attach a scalar to the end of a vector +
rgb2hsv - convert a list of three floats from RGB to an HSV value +
hsv2rgb - convert a list of three floats from HSV to an RGB value +
abs~ - absolute value of a signal +
reson~ - resonant filter +

[return] +
  +
  + + diff --git a/src/Gem/doc/manual/Particles.html b/src/Gem/doc/manual/Particles.html new file mode 100644 index 0000000..7b8ceb6 --- /dev/null +++ b/src/Gem/doc/manual/Particles.html @@ -0,0 +1,19 @@ + + + + + + + Particles + + + +

+

+Particles

+ +


Nothing here yet +

[return] +
  + + diff --git a/src/Gem/doc/manual/Pixes.html b/src/Gem/doc/manual/Pixes.html new file mode 100644 index 0000000..badf8bc --- /dev/null +++ b/src/Gem/doc/manual/Pixes.html @@ -0,0 +1,105 @@ + + + + + + + Pixes (image processing) + + + +

+

+Image processing

+The pix objects are used to do image processing to pixel data. If +you load in an image with [pix_image], then you can change what the +image looks like before rendering it out +

In general, processing images is extremely expensive, so you +probably cannot have that many active pix objects. GEM only reprocesses +images when the source image changes or one of the parameters for a pix +object changes. This means that GEM will only process an image when +something is different, instead of every frame. If you want to do +a lot of processing at start up, but then not change anything once the +patch is running, GEM will only do the computation once.
+Modern CPUs use SIMD (Single Instruction - Multiple Data) (like MMX, SSE2, altivec) +to make pixel-processing more effective (by processing data parallely). +Until now, only the macOS version of Gem has support for SIMD for some pix-objects. +MMX/SSE2 boosts will hopefully come in future Gem-releases. + +

The pix objects are divided into two general groups, those which take +one input, and those which require two input images. For example, +[pix_invert] +will "invert" all of the pixels (if a pixel is white, it will change to +black), while [pix_add] will add two images together. +

Only some of the pix objects are described here. Look in the reference +patches for explanations for the other pix objects. +

[pix_invert] - invert the pixel data +
[pix_add] - add two pixes together +
[pix_mask] - create an alpha mask +
[pix_convolve] - convolve a pix with a kernel +

+

+[pix_invert]

+[pix_invert] inverts the pixels in an image. To use [pix_invert], +simply make sure that you have already loaded an image into the chain. +In the following patch, the fractal image will be inverted. +
+

+ +

Here is the difference between the fractal image and the inverted version. +

+

+ +

+

+pix_add

+[pix_add] does what you would expect. It adds two images together. +
+

+ +

This patch adds the fractal image with a car image. The processed +image will often contain a lot of white pixels, because the data is just +added together. This occurs in the resulting image, shown below. +

+

+ +


+

+

+pix_mask

+[pix_mask] is used to create an alpha mask from another image. +In the following example (gem_pix/gemMaskDancer.pd), the fractal image's +alpha channel is replaced by the dancer image. If the [alpha] +object was removed, then you would just see the solid fractal image (because +the alpha channel wouldn't be used). +

In other words, images are composed of a red, a green, a blue, and an +alpha channel. The alpha channel is the transparency of the pixel. + +[pix_mask] only modifies the alpha channel and does not touch the +red, green, or blue data. +

+

+ +

The result is this image. +

+

+ +

+

+pix_convolve

+[pix_convolve] convolves pix data with a convolution kernel. +Basically, you can get really nice effects if you choose the correct kernel...and +garbage if you choose the wrong one. +

Edge detection is done with a convolution kernel, as is smoothing. +The biggest problem is that convolving an image is about the most expensive +operation that you can do in GEM. +

Look at gem_pix/gemPixConvolve.pd to get an idea of some of the kernels +that you can send to [pix_convolve] and the effects that you can get. +

If you want to learn the math behind convolution, then find any standard +image processing (or audio processing book, this is just 2D convolution). +
+

+

[return] +
+ + diff --git a/src/Gem/doc/manual/Texture.html b/src/Gem/doc/manual/Texture.html new file mode 100644 index 0000000..1de889c --- /dev/null +++ b/src/Gem/doc/manual/Texture.html @@ -0,0 +1,126 @@ + + + + + + + Texture mapping + + + +

+

+Texture Mapping

+Texture mapping is the act of applying +pixel data to a geometric object. In GEM, this is achieved with the +[pix_texture] +object. It is important to understand that the +[pix_texture] +object merely sets the pix as the current texture. It does not do +any rendering! You need to use a geo object which does texture mapping. +All of the basic geo objects can texture map, such as [square] or +[sphere]. +

+

A simple example of texture mapping is the following patch: +

+

+ +

This patch can be found at 07.texture/01.texture.pd. Change +the number box connected to the rotate object to see what a texture map +on a cube looks like. +

The [pix_image] object loads in the fractal image file. The +[pix_texture] +object says that the pix data should be used as a texture map. Notice +that this is different than the previous manual section when we used the +[pix_draw] object. The final object in the chain is the [cube] +object. Because we have enabled texture mapping with the [pix_texture] +object, the cube takes the pix data and applies it to the geometry. +

+

Texture mapping can be used with any GEM object. In the previous +manual section, you saw how to load in pix data with a variety of objects, +including [pix_multiimage] and [pix_video]. All of these +objects can be used with the [pix_texture] object. +

Because the pix data is applied to geometry, you can move, rotate, and +scale the image. This is extremely useful on the [square] object. +Instead of doing a one-to-one pixel mapping as occurs with the [pix_draw] +object, you can resize and reshape the image. +

OpenGL originally required that images must have dimensions that are power-of-2, such as 64, 128, or 256. This restriction has been released with recent gfx-cards +(like some radeon/nvidia products). +However, if the width or height of an image is not a power of two, +then the [pix_texture] object will take care of this, +and still render it (depending on you hardware with some tricks). +You can thus texture images of any size, but since this is based on tricking +the texture-coordinates, [pix_coordinate] might not give the wanted result any more. +

+

The example patch 07.texture/02.moveImages.pd is a much more complex +patch which uses alpha blending to create a transparent object, in this +case, the dancer. Make sure to turn on the rotation with the [metro] +object. +

+

People have been asking how textures are handled in GEM. Here +is a long explanation from an email which I wrote. +

Here is how textures are dealt with under OpenGL and hardware +accelerators. This can obviously change in the future, but right +now, I am fairly certain that the info is correct (I make games in my day +job, so I have vested interest in this :-) +

The amount of memory (VRAM) on the card (12mb for Voodoo2, +16mb for TNT, 64mb for GeForce2, etc) is used for both textures (TRAM) +and frame buffer space. If you have a large rendering window, like +1600x1200, it will take up 1600x1200x4x3 in 32-bit mode with double buffering +and a Z buffer (or 23mb). Most people run at TV resolution, like +NTSC, so it takes 640x480x4x3 = 3.7mb All of the space left +is for textures onboard the card (FYI, if you have heard that people are +having problems with the PlayStation2, notice that it only has 4mb of VRAM...not +much onboard texture space, huh? :-) Thankfully it has an extremely +fast DMA bus) +

Sooo, when GEM "creates" a texture, it immediately tries +to send the texture to the card, which uses some of the left over space +in the VRAM. If you had a 640x480 window on a Voodoo2, you have ~8mb +of texture space left over. On a GeForce2, ~60mb. The problem +is what happens if you want more textures than can fit into TRAM. +OpenGL requires that the video drivers deal with the problem, so GEM doesn't +care too much (more about this later). +

In most cases, the drivers cache the textures in main memory +and if a texture is requested for rendering and it isn't resident on the +card, it will download it. If you have AGP, then this is pretty quick, +although none of 3dfx cards really take advantage of this (ie, those cards +are about the same speed as the PCI bus). So depending on the number +of textures, and how complex the scene is, you might be able to display +more textures than you have TRAM. +

One slowdown that can happen with GEM is that it makes a +copy of the image before sending it down the chain of objects. If +you are constantly changing images with a pix_multiimage, this can be a +performance hit, but you can modify the actual pixel data with the pix +objects. The pixels aren't sent to the graphics card until the pix_texture +object is reached. +

GEM tries to help with this with a few objects. pix_imageInPlace +acts much the same as pix_multiimage, but it downloads _every_ image in +the sequence to the card when a download message is recieved. It +also immediately turns on texturing, instead of making a copy (ie, you +don't need a pix_texture object). Much faster, but not as flexible. +pix_movie does much the same thing. It sends the pixel data without +copying it if there is a new frame to display. +

The entire pix system uses a caching system so that the copying +and processing only occurs if something actually changes. For example, +if you had a pix_threshold object, it would only process when rendering +started...and every time that the values actually changed. You can +use pix_buf to isolate parts which don't change from those that do, but +it involves another copy. +

On the Voodoo2, the hardware itself limits textures to 256x256...this +will never change. The newest Voodoo5 boards have a higher texture +size. +

If you load the _exact_ same image (this means the exact +same file/path name), then the pix_image has a cache system which means +that it is only loaded into the +
computers memory once. However, each pix_image still sends +its own copy down to the gfx card. +

You could use a single [pix_image]/[pix_texture] with [separator] +to do this...I have done it a lot in the past. +

The reason that [pix_image] doesn't share the actual texture +data is that you can modify the pixel data with other pix objects...[pix_image] +doesn't actually send the texture data to the gfx card, [pix_texture] does. +

+

[return] +
+ + diff --git a/src/Gem/doc/manual/Utility.html b/src/Gem/doc/manual/Utility.html new file mode 100644 index 0000000..c8f6e17 --- /dev/null +++ b/src/Gem/doc/manual/Utility.html @@ -0,0 +1,149 @@ + + + + + + + Utility objects + + + +

+

+Utility objects

+There are a number of objects which were written to make it easier to use +both GEM and pd.  For instance, you often pass around 3 floats at +a time in GEM, either for position or colors.  To help with this, +there are a collection of vector objects.  Use the list below to find +out about the objects. +

These objects used to be in a separate library called MarkEx, but they +have now been folded into GEM. +

counter - count the number of bangs +
average - average a series of numbers together +
change - only output when there is a change in +the number +
invert - invert a number +
randomF/randF - floating point random number +
tripleLine - line object for 3 values +
tripleRand - three random numbers +
vector objects - process a series of numbers +
hsv2rgb and rgb2hsv - convert between RGB and +HSV color space +

+

+counter

+ +
+ +

The inlets are: +
bang (increment or decrement the counter) +
set direction (1 = count up, 2 = count down, 3 = count up and down) +
set low value +
set hight value +
The outlet is the current count. +

So in this case, the top counter will count up from 1 to 10.  +The bottom counter will count up from 2 to 5. +

The counter also accepts the messages reset and clear.  +Reset immediately sets the counter to its low value and outputs the value.  +The clear message means that the next bang will set the counter +to its low value. +

+

+average

+The average object just averages a series of numbers as they come +in.  The left inlet accepts a single float.  It then outputs +the current average.  The default number of floats to average together +is 10, but that can be changed by sending a new value to the right inlet. +

The average object also accepts the messages clear and reset.  +Clear will immediately set all of the values that the object has been storing +for averaging to 0.  With the reset message, you must pass in a number +to set all of the values. +

+

+change

+Change only accepts a number into its left inlet.  If the number +is the same as the last number sent to the change object, then it +does nothing.  If the number is different, then the change +object will output the new number and store it for the next comparision. +

This object is very useful for the == object and others like it, since +they send a 0 or a 1 every time they do a comparision, and you usually +only care when the state actually changes. +

+

+invert

+The invert object is very simple.  If the number sent to its +left inlet is equal to 0., then invert outputs a 1.  If the +number is not equal to 0., the invert outputs a 0. +

+

+randomF/randF

+One problem with the random object in pd is that it only sends out +integers.  This a real problem in GEM, where you often want a value +between 0 and 1.  randomF is exactly like the random +object. +

When the left inlet gets a bang, randomF outputs a random number +between 0 and the given range.  The range can be set with a number +to the right inlet. +

randF is just an alternate name for randomF. +

+

+tripleLine

+ +
+ +

The line object is really great for dealing with a single number.  +To do a line with 3 values, like an RGB color value, means that you have +to unpack, do a line, then repack the number.  Not only is +it a pain, but it expensive computationally. +

tripleLine behaves just like the line object, only it +accepts three numbers to interpolate between.  In the example, tripleLine +will interpolate from the current values to 1., .2, .4 over 1000 milliseconds.  +The default output resolution is 50 milliseconds, which is the same default +rendering time.  Going faster with GEM objects will not produce any +benefit, unless you increase the frames per second. +

+

+tripleRand

+ +
+ +

Just as using tripleLine makes it easier to interpolate between +3 values at once, tripleRand makes it easy to generate three random +values.  In the above example, when the bang is sent, tripleRand +will create three values and output them, with the first between 0 - 1, +the second between 0 - .5, and the third from 0 - .8. +

+

+Vector objects

+The vector math objects are +
vector+ or v+ +
vector- or v- +
vector* or v* +
vector/ or v/ +
All of the above objects perform math on a list of numbers.  The +left inlet accepts a list of numbers of any length.  The right inlet +accepts a single value, which is the operand for the computation.  +In other words, they work just like the normal *, +, -, and / objects, +except they can handle more than one number in the left inlet. +

There are two other objects which are also useful. +

The first is vectorabs or vabs. It computes the absolute +value on a list of numbers. +

The second object is vectorpack or vpack. vpack +accepts a list of numbers in the left inlet and a single number into the +right inlet.  The output is a single list of numbers that is the vector +with the single number appended to the end.  This is very useful when +you want to change the time for a tripleLine without unpacking and +repacking all of the data. +

+

+hsv2rgb and rgb2hsv

+These two objects convert three numbers between HSV and RGB color space.  +HSV stands for hue, saturation, and value.  The simple way to think +of HSV space is that hue is the "color", such as red, blue, etc, the saturation +is how intense the color is, and the value is how bright the color is. +

You can get some really nice effects by varying the hue of a color, +because the brightness will not change while you do it. +

+

[return] + + diff --git a/src/Gem/doc/manual/WriteCode.html b/src/Gem/doc/manual/WriteCode.html new file mode 100644 index 0000000..d4d0480 --- /dev/null +++ b/src/Gem/doc/manual/WriteCode.html @@ -0,0 +1,41 @@ + + + + + + + Writing new objects + + + +

+

+Creating new GEM objects

+Look at the source code :-)  GEM is written in C++, which means that +you have to jump through some hopes to interact properly with Pd, which +is written in C.  If you look in Base/CPPExtern.h, you will see a +collection of macros which you can use to help you create new objects.  +Use one of the GEM objects which is closest to what you want to do as a +template. +

One problem on SGI...you will need to +

setenv LD_LIBRARY_PATH "/where/ever/pd/gem" +

so that rld (the run-time linker) can find the GEM dso.  Because +you are linking with GEM, Pd isn't involved with the run time linking process; +it is all done when Pd calls dlopen. +

On NT, there is much the same problem... +

set your PATH environment variable to \where\ever\pd\gem +

or +

make sure that your new .dll is located in the same directory where +GEM is. +

On NT, all of the classes and functions are exported through declexport/declimport.  +You shouldn't have to do anything to call the functions.  I have not +had any problems making other dll's which are loaded into Pd at runtime.  +You need to make certain that you are exporting the correct functions.  +If your dll cannot find the gem.dll, then it will silently fail. +

And of course, e-mail IOhannes m zmölnig (zmoelnig@iem.at) if you have any problems, +questions, or solutions +

+

[return] +
  + + diff --git a/src/Gem/doc/manual/add.jpg b/src/Gem/doc/manual/add.jpg new file mode 100644 index 0000000..90958ab Binary files /dev/null and b/src/Gem/doc/manual/add.jpg differ diff --git a/src/Gem/doc/manual/addResult.jpg b/src/Gem/doc/manual/addResult.jpg new file mode 100644 index 0000000..8be41e4 Binary files /dev/null and b/src/Gem/doc/manual/addResult.jpg differ diff --git a/src/Gem/doc/manual/basicCube.jpg b/src/Gem/doc/manual/basicCube.jpg new file mode 100644 index 0000000..921909f Binary files /dev/null and b/src/Gem/doc/manual/basicCube.jpg differ diff --git a/src/Gem/doc/manual/counter.jpg b/src/Gem/doc/manual/counter.jpg new file mode 100644 index 0000000..da6c60d Binary files /dev/null and b/src/Gem/doc/manual/counter.jpg differ diff --git a/src/Gem/doc/manual/gemwin.jpg b/src/Gem/doc/manual/gemwin.jpg new file mode 100644 index 0000000..387f591 Binary files /dev/null and b/src/Gem/doc/manual/gemwin.jpg differ diff --git a/src/Gem/doc/manual/index.html b/src/Gem/doc/manual/index.html new file mode 100644 index 0000000..d3a6308 --- /dev/null +++ b/src/Gem/doc/manual/index.html @@ -0,0 +1,67 @@ + + + + + + Gem Manual + + + +

+

+GEM Manual

+ +
a simple patch
+ +

This is the first attempt at a manual for GEM, so bear with me. +Any comments are appreciated. Send them to Mark Danks +


+In fact, this ought to be the second attempt at such a manual. There will not be much now. +But send any comments to IOhannes m zmölnig instead. +

+

Introduction +
    An introduction to GEM and what you can do with +it.  The general system requirements are also described here. +

Using GEM with Pd +
    How to use GEM with Pd.  This includes how +to start Pd so that the GEM library is loaded and working properly. +

Basic objects +
    The basic objects that GEM has.  This section +shows you how to create a simple patch. +

Images +
    Using images is an important part of GEM. Here you +will load in images and learn the basics of dealing with images. +

Texture mapping +
    Loading in images is only one part.  Applying +those images to 3-D shapes is called texture mapping. +

Pixes (image processing) +
    Once you have texture mapped the images, you will +probably want to process and change them in response to user interaction.  +The pix objects provide this functionality. +

Lighting +
    Shading and lighting are easy with the lighting +objects. +

Particles +
    Particle systems can create effects such as smoke, +fire, and water. +

Utility objects +
    To help you deal with the data which GEM uses, there +are a number of utility objects. +

Input devices +
    GEM provides interaction with the mouse and other +input devices. +

Advanced +
    Now that you know all about the other objects, here +are a few of the more advanced ones. +

Writing new objects +
    How to write new objects for GEM. +

FAQ +
    Frequently asked questions about GEM. +

List of Objects +
    All of the objects in GEM with a very brief description.. +

Glossary/Index +
    A collection of definitions and links to explanations. +

+
  + + diff --git a/src/Gem/doc/manual/invert.jpg b/src/Gem/doc/manual/invert.jpg new file mode 100644 index 0000000..9c3f758 Binary files /dev/null and b/src/Gem/doc/manual/invert.jpg differ diff --git a/src/Gem/doc/manual/invertFrac.jpg b/src/Gem/doc/manual/invertFrac.jpg new file mode 100644 index 0000000..68237a9 Binary files /dev/null and b/src/Gem/doc/manual/invertFrac.jpg differ diff --git a/src/Gem/doc/manual/light.jpg b/src/Gem/doc/manual/light.jpg new file mode 100644 index 0000000..20e81a4 Binary files /dev/null and b/src/Gem/doc/manual/light.jpg differ diff --git a/src/Gem/doc/manual/mask.jpg b/src/Gem/doc/manual/mask.jpg new file mode 100644 index 0000000..e49ca1e Binary files /dev/null and b/src/Gem/doc/manual/mask.jpg differ diff --git a/src/Gem/doc/manual/maskResult.jpg b/src/Gem/doc/manual/maskResult.jpg new file mode 100644 index 0000000..ef206b9 Binary files /dev/null and b/src/Gem/doc/manual/maskResult.jpg differ diff --git a/src/Gem/doc/manual/normalFrac.jpg b/src/Gem/doc/manual/normalFrac.jpg new file mode 100644 index 0000000..81609ae Binary files /dev/null and b/src/Gem/doc/manual/normalFrac.jpg differ diff --git a/src/Gem/doc/manual/pixImage.jpg b/src/Gem/doc/manual/pixImage.jpg new file mode 100644 index 0000000..b966579 Binary files /dev/null and b/src/Gem/doc/manual/pixImage.jpg differ diff --git a/src/Gem/doc/manual/redSquare.jpg b/src/Gem/doc/manual/redSquare.jpg new file mode 100644 index 0000000..d002041 Binary files /dev/null and b/src/Gem/doc/manual/redSquare.jpg differ diff --git a/src/Gem/doc/manual/sphere15.jpg b/src/Gem/doc/manual/sphere15.jpg new file mode 100644 index 0000000..c344584 Binary files /dev/null and b/src/Gem/doc/manual/sphere15.jpg differ diff --git a/src/Gem/doc/manual/sphere5.jpg b/src/Gem/doc/manual/sphere5.jpg new file mode 100644 index 0000000..ca3a9cd Binary files /dev/null and b/src/Gem/doc/manual/sphere5.jpg differ diff --git a/src/Gem/doc/manual/texture.jpg b/src/Gem/doc/manual/texture.jpg new file mode 100644 index 0000000..05f4950 Binary files /dev/null and b/src/Gem/doc/manual/texture.jpg differ diff --git a/src/Gem/doc/manual/transXYZ.jpg b/src/Gem/doc/manual/transXYZ.jpg new file mode 100644 index 0000000..553b2c0 Binary files /dev/null and b/src/Gem/doc/manual/transXYZ.jpg differ diff --git a/src/Gem/doc/manual/tribar.gif b/src/Gem/doc/manual/tribar.gif new file mode 100644 index 0000000..0f99a3f Binary files /dev/null and b/src/Gem/doc/manual/tribar.gif differ diff --git a/src/Gem/doc/manual/tripleLine.jpg b/src/Gem/doc/manual/tripleLine.jpg new file mode 100644 index 0000000..e171d64 Binary files /dev/null and b/src/Gem/doc/manual/tripleLine.jpg differ diff --git a/src/Gem/doc/manual/tripleRand.jpg b/src/Gem/doc/manual/tripleRand.jpg new file mode 100644 index 0000000..f76109f Binary files /dev/null and b/src/Gem/doc/manual/tripleRand.jpg differ diff --git a/src/Gem/doc/manual/world_light.jpg b/src/Gem/doc/manual/world_light.jpg new file mode 100644 index 0000000..483598e Binary files /dev/null and b/src/Gem/doc/manual/world_light.jpg differ diff --git a/Gem/examples/01.basic/01.redSquare.pd b/src/Gem/examples/01.basic/01.redSquare.pd similarity index 100% rename from Gem/examples/01.basic/01.redSquare.pd rename to src/Gem/examples/01.basic/01.redSquare.pd diff --git a/Gem/examples/01.basic/02.blueRectangle.pd b/src/Gem/examples/01.basic/02.blueRectangle.pd similarity index 100% rename from Gem/examples/01.basic/02.blueRectangle.pd rename to src/Gem/examples/01.basic/02.blueRectangle.pd diff --git a/Gem/examples/01.basic/03.disk.pd b/src/Gem/examples/01.basic/03.disk.pd similarity index 100% rename from Gem/examples/01.basic/03.disk.pd rename to src/Gem/examples/01.basic/03.disk.pd diff --git a/Gem/examples/01.basic/04.PrimTri.pd b/src/Gem/examples/01.basic/04.PrimTri.pd similarity index 100% rename from Gem/examples/01.basic/04.PrimTri.pd rename to src/Gem/examples/01.basic/04.PrimTri.pd diff --git a/Gem/examples/01.basic/05.cube.pd b/src/Gem/examples/01.basic/05.cube.pd similarity index 100% rename from Gem/examples/01.basic/05.cube.pd rename to src/Gem/examples/01.basic/05.cube.pd diff --git a/Gem/examples/01.basic/06.sphere.pd b/src/Gem/examples/01.basic/06.sphere.pd similarity index 100% rename from Gem/examples/01.basic/06.sphere.pd rename to src/Gem/examples/01.basic/06.sphere.pd diff --git a/Gem/examples/01.basic/07.cylinder.pd b/src/Gem/examples/01.basic/07.cylinder.pd similarity index 100% rename from Gem/examples/01.basic/07.cylinder.pd rename to src/Gem/examples/01.basic/07.cylinder.pd diff --git a/Gem/examples/01.basic/08.model.pd b/src/Gem/examples/01.basic/08.model.pd similarity index 100% rename from Gem/examples/01.basic/08.model.pd rename to src/Gem/examples/01.basic/08.model.pd diff --git a/Gem/examples/01.basic/09.yelloTeapot.pd b/src/Gem/examples/01.basic/09.yelloTeapot.pd similarity index 100% rename from Gem/examples/01.basic/09.yelloTeapot.pd rename to src/Gem/examples/01.basic/09.yelloTeapot.pd diff --git a/Gem/examples/02.advanced/00.gemwin-subpatch.pd b/src/Gem/examples/02.advanced/00.gemwin-subpatch.pd similarity index 100% rename from Gem/examples/02.advanced/00.gemwin-subpatch.pd rename to src/Gem/examples/02.advanced/00.gemwin-subpatch.pd diff --git a/Gem/examples/02.advanced/01.Separator.pd b/src/Gem/examples/02.advanced/01.Separator.pd similarity index 100% rename from Gem/examples/02.advanced/01.Separator.pd rename to src/Gem/examples/02.advanced/01.Separator.pd diff --git a/Gem/examples/02.advanced/02.Ortho.pd b/src/Gem/examples/02.advanced/02.Ortho.pd similarity index 100% rename from Gem/examples/02.advanced/02.Ortho.pd rename to src/Gem/examples/02.advanced/02.Ortho.pd diff --git a/Gem/examples/02.advanced/03.View.pd b/src/Gem/examples/02.advanced/03.View.pd similarity index 100% rename from Gem/examples/02.advanced/03.View.pd rename to src/Gem/examples/02.advanced/03.View.pd diff --git a/Gem/examples/02.advanced/03.View_OSD.pd b/src/Gem/examples/02.advanced/03.View_OSD.pd similarity index 100% rename from Gem/examples/02.advanced/03.View_OSD.pd rename to src/Gem/examples/02.advanced/03.View_OSD.pd diff --git a/Gem/examples/02.advanced/04.Fog.pd b/src/Gem/examples/02.advanced/04.Fog.pd similarity index 100% rename from Gem/examples/02.advanced/04.Fog.pd rename to src/Gem/examples/02.advanced/04.Fog.pd diff --git a/Gem/examples/02.advanced/05.Stereo.pd b/src/Gem/examples/02.advanced/05.Stereo.pd similarity index 100% rename from Gem/examples/02.advanced/05.Stereo.pd rename to src/Gem/examples/02.advanced/05.Stereo.pd diff --git a/Gem/examples/02.advanced/06.StereoParticle.pd b/src/Gem/examples/02.advanced/06.StereoParticle.pd similarity index 100% rename from Gem/examples/02.advanced/06.StereoParticle.pd rename to src/Gem/examples/02.advanced/06.StereoParticle.pd diff --git a/Gem/examples/02.advanced/07.Snapshot1.pd b/src/Gem/examples/02.advanced/07.Snapshot1.pd similarity index 100% rename from Gem/examples/02.advanced/07.Snapshot1.pd rename to src/Gem/examples/02.advanced/07.Snapshot1.pd diff --git a/Gem/examples/02.advanced/08.Snapshot2.pd b/src/Gem/examples/02.advanced/08.Snapshot2.pd similarity index 100% rename from Gem/examples/02.advanced/08.Snapshot2.pd rename to src/Gem/examples/02.advanced/08.Snapshot2.pd diff --git a/Gem/examples/02.advanced/09.SnapshotSave.pd b/src/Gem/examples/02.advanced/09.SnapshotSave.pd similarity index 100% rename from Gem/examples/02.advanced/09.SnapshotSave.pd rename to src/Gem/examples/02.advanced/09.SnapshotSave.pd diff --git a/Gem/examples/02.advanced/09.SnapshotSaveHD.pd b/src/Gem/examples/02.advanced/09.SnapshotSaveHD.pd similarity index 100% rename from Gem/examples/02.advanced/09.SnapshotSaveHD.pd rename to src/Gem/examples/02.advanced/09.SnapshotSaveHD.pd diff --git a/Gem/examples/02.advanced/10.LinearPath.pd b/src/Gem/examples/02.advanced/10.LinearPath.pd similarity index 100% rename from Gem/examples/02.advanced/10.LinearPath.pd rename to src/Gem/examples/02.advanced/10.LinearPath.pd diff --git a/Gem/examples/02.advanced/11.SplinePath.pd b/src/Gem/examples/02.advanced/11.SplinePath.pd similarity index 100% rename from Gem/examples/02.advanced/11.SplinePath.pd rename to src/Gem/examples/02.advanced/11.SplinePath.pd diff --git a/Gem/examples/02.advanced/12.Hsv.pd b/src/Gem/examples/02.advanced/12.Hsv.pd similarity index 100% rename from Gem/examples/02.advanced/12.Hsv.pd rename to src/Gem/examples/02.advanced/12.Hsv.pd diff --git a/Gem/examples/02.advanced/13.ModelRescale.pd b/src/Gem/examples/02.advanced/13.ModelRescale.pd similarity index 100% rename from Gem/examples/02.advanced/13.ModelRescale.pd rename to src/Gem/examples/02.advanced/13.ModelRescale.pd diff --git a/Gem/examples/02.advanced/14.RenderOrder.pd b/src/Gem/examples/02.advanced/14.RenderOrder.pd similarity index 100% rename from Gem/examples/02.advanced/14.RenderOrder.pd rename to src/Gem/examples/02.advanced/14.RenderOrder.pd diff --git a/Gem/examples/02.advanced/15.GemWin.pd b/src/Gem/examples/02.advanced/15.GemWin.pd similarity index 100% rename from Gem/examples/02.advanced/15.GemWin.pd rename to src/Gem/examples/02.advanced/15.GemWin.pd diff --git a/Gem/examples/02.advanced/16.vertex_program.pd b/src/Gem/examples/02.advanced/16.vertex_program.pd similarity index 100% rename from Gem/examples/02.advanced/16.vertex_program.pd rename to src/Gem/examples/02.advanced/16.vertex_program.pd diff --git a/Gem/examples/02.advanced/17.fragment_program.pd b/src/Gem/examples/02.advanced/17.fragment_program.pd similarity index 100% rename from Gem/examples/02.advanced/17.fragment_program.pd rename to src/Gem/examples/02.advanced/17.fragment_program.pd diff --git a/Gem/examples/02.advanced/18.gl_shading_language.pd b/src/Gem/examples/02.advanced/18.gl_shading_language.pd similarity index 100% rename from Gem/examples/02.advanced/18.gl_shading_language.pd rename to src/Gem/examples/02.advanced/18.gl_shading_language.pd diff --git a/Gem/examples/02.advanced/19.pointer.pd b/src/Gem/examples/02.advanced/19.pointer.pd similarity index 100% rename from Gem/examples/02.advanced/19.pointer.pd rename to src/Gem/examples/02.advanced/19.pointer.pd diff --git a/Gem/examples/02.advanced/20.double-gemhead_vs_repeat.pd b/src/Gem/examples/02.advanced/20.double-gemhead_vs_repeat.pd similarity index 100% rename from Gem/examples/02.advanced/20.double-gemhead_vs_repeat.pd rename to src/Gem/examples/02.advanced/20.double-gemhead_vs_repeat.pd diff --git a/Gem/examples/02.advanced/21.basic_LSystem.pd b/src/Gem/examples/02.advanced/21.basic_LSystem.pd similarity index 100% rename from Gem/examples/02.advanced/21.basic_LSystem.pd rename to src/Gem/examples/02.advanced/21.basic_LSystem.pd diff --git a/Gem/examples/02.advanced/22.double-iterative.pd b/src/Gem/examples/02.advanced/22.double-iterative.pd similarity index 100% rename from Gem/examples/02.advanced/22.double-iterative.pd rename to src/Gem/examples/02.advanced/22.double-iterative.pd diff --git a/Gem/examples/02.advanced/snapshotHD.pd b/src/Gem/examples/02.advanced/snapshotHD.pd similarity index 100% rename from Gem/examples/02.advanced/snapshotHD.pd rename to src/Gem/examples/02.advanced/snapshotHD.pd diff --git a/Gem/examples/03.lighting/01.world_light.pd b/src/Gem/examples/03.lighting/01.world_light.pd similarity index 100% rename from Gem/examples/03.lighting/01.world_light.pd rename to src/Gem/examples/03.lighting/01.world_light.pd diff --git a/Gem/examples/03.lighting/02.light.pd b/src/Gem/examples/03.lighting/02.light.pd similarity index 100% rename from Gem/examples/03.lighting/02.light.pd rename to src/Gem/examples/03.lighting/02.light.pd diff --git a/Gem/examples/03.lighting/03.controlLights.pd b/src/Gem/examples/03.lighting/03.controlLights.pd similarity index 100% rename from Gem/examples/03.lighting/03.controlLights.pd rename to src/Gem/examples/03.lighting/03.controlLights.pd diff --git a/Gem/examples/03.lighting/04.moveSpheres.pd b/src/Gem/examples/03.lighting/04.moveSpheres.pd similarity index 100% rename from Gem/examples/03.lighting/04.moveSpheres.pd rename to src/Gem/examples/03.lighting/04.moveSpheres.pd diff --git a/Gem/examples/03.lighting/05.materials.pd b/src/Gem/examples/03.lighting/05.materials.pd similarity index 100% rename from Gem/examples/03.lighting/05.materials.pd rename to src/Gem/examples/03.lighting/05.materials.pd diff --git a/Gem/examples/04.pix/01.image.pd b/src/Gem/examples/04.pix/01.image.pd similarity index 100% rename from Gem/examples/04.pix/01.image.pd rename to src/Gem/examples/04.pix/01.image.pd diff --git a/Gem/examples/04.pix/02.multiimage.pd b/src/Gem/examples/04.pix/02.multiimage.pd similarity index 100% rename from Gem/examples/04.pix/02.multiimage.pd rename to src/Gem/examples/04.pix/02.multiimage.pd diff --git a/Gem/examples/04.pix/04.ImageInPlace.pd b/src/Gem/examples/04.pix/04.ImageInPlace.pd similarity index 100% rename from Gem/examples/04.pix/04.ImageInPlace.pd rename to src/Gem/examples/04.pix/04.ImageInPlace.pd diff --git a/Gem/examples/04.pix/05.film.pd b/src/Gem/examples/04.pix/05.film.pd similarity index 100% rename from Gem/examples/04.pix/05.film.pd rename to src/Gem/examples/04.pix/05.film.pd diff --git a/Gem/examples/04.pix/05.movie.pd b/src/Gem/examples/04.pix/05.movie.pd similarity index 100% rename from Gem/examples/04.pix/05.movie.pd rename to src/Gem/examples/04.pix/05.movie.pd diff --git a/Gem/examples/04.pix/06.PixRect.pd b/src/Gem/examples/04.pix/06.PixRect.pd similarity index 100% rename from Gem/examples/04.pix/06.PixRect.pd rename to src/Gem/examples/04.pix/06.PixRect.pd diff --git a/Gem/examples/04.pix/07.PixSet.pd b/src/Gem/examples/04.pix/07.PixSet.pd similarity index 100% rename from Gem/examples/04.pix/07.PixSet.pd rename to src/Gem/examples/04.pix/07.PixSet.pd diff --git a/Gem/examples/04.pix/08.PixDump.pd b/src/Gem/examples/04.pix/08.PixDump.pd similarity index 100% rename from Gem/examples/04.pix/08.PixDump.pd rename to src/Gem/examples/04.pix/08.PixDump.pd diff --git a/Gem/examples/04.pix/09.Histogram.pd b/src/Gem/examples/04.pix/09.Histogram.pd similarity index 100% rename from Gem/examples/04.pix/09.Histogram.pd rename to src/Gem/examples/04.pix/09.Histogram.pd diff --git a/Gem/examples/04.pix/10.PixDataSimple.pd b/src/Gem/examples/04.pix/10.PixDataSimple.pd similarity index 100% rename from Gem/examples/04.pix/10.PixDataSimple.pd rename to src/Gem/examples/04.pix/10.PixDataSimple.pd diff --git a/Gem/examples/04.pix/11.PixDataComplex.pd b/src/Gem/examples/04.pix/11.PixDataComplex.pd similarity index 100% rename from Gem/examples/04.pix/11.PixDataComplex.pd rename to src/Gem/examples/04.pix/11.PixDataComplex.pd diff --git a/Gem/examples/04.pix/12.add.pd b/src/Gem/examples/04.pix/12.add.pd similarity index 100% rename from Gem/examples/04.pix/12.add.pd rename to src/Gem/examples/04.pix/12.add.pd diff --git a/Gem/examples/04.pix/12.blending.pd b/src/Gem/examples/04.pix/12.blending.pd similarity index 100% rename from Gem/examples/04.pix/12.blending.pd rename to src/Gem/examples/04.pix/12.blending.pd diff --git a/Gem/examples/04.pix/12.composite.pd b/src/Gem/examples/04.pix/12.composite.pd similarity index 100% rename from Gem/examples/04.pix/12.composite.pd rename to src/Gem/examples/04.pix/12.composite.pd diff --git a/Gem/examples/04.pix/12.pix_multiply.pd b/src/Gem/examples/04.pix/12.pix_multiply.pd similarity index 100% rename from Gem/examples/04.pix/12.pix_multiply.pd rename to src/Gem/examples/04.pix/12.pix_multiply.pd diff --git a/Gem/examples/04.pix/13.maskDancer.pd b/src/Gem/examples/04.pix/13.maskDancer.pd similarity index 100% rename from Gem/examples/04.pix/13.maskDancer.pd rename to src/Gem/examples/04.pix/13.maskDancer.pd diff --git a/Gem/examples/04.pix/14.takeAlpha.pd b/src/Gem/examples/04.pix/14.takeAlpha.pd similarity index 100% rename from Gem/examples/04.pix/14.takeAlpha.pd rename to src/Gem/examples/04.pix/14.takeAlpha.pd diff --git a/Gem/examples/04.pix/15.pix_alpha.pd b/src/Gem/examples/04.pix/15.pix_alpha.pd similarity index 100% rename from Gem/examples/04.pix/15.pix_alpha.pd rename to src/Gem/examples/04.pix/15.pix_alpha.pd diff --git a/Gem/examples/04.pix/16.alphaGrey.pd b/src/Gem/examples/04.pix/16.alphaGrey.pd similarity index 100% rename from Gem/examples/04.pix/16.alphaGrey.pd rename to src/Gem/examples/04.pix/16.alphaGrey.pd diff --git a/Gem/examples/04.pix/16.pix_2grey.pd b/src/Gem/examples/04.pix/16.pix_2grey.pd similarity index 100% rename from Gem/examples/04.pix/16.pix_2grey.pd rename to src/Gem/examples/04.pix/16.pix_2grey.pd diff --git a/Gem/examples/04.pix/17.pix_gain.pd b/src/Gem/examples/04.pix/17.pix_gain.pd similarity index 100% rename from Gem/examples/04.pix/17.pix_gain.pd rename to src/Gem/examples/04.pix/17.pix_gain.pd diff --git a/Gem/examples/04.pix/18.Curves.pd b/src/Gem/examples/04.pix/18.Curves.pd similarity index 100% rename from Gem/examples/04.pix/18.Curves.pd rename to src/Gem/examples/04.pix/18.Curves.pd diff --git a/Gem/examples/04.pix/19.colorMatrix.pd b/src/Gem/examples/04.pix/19.colorMatrix.pd similarity index 100% rename from Gem/examples/04.pix/19.colorMatrix.pd rename to src/Gem/examples/04.pix/19.colorMatrix.pd diff --git a/Gem/examples/04.pix/20.convolve.pd b/src/Gem/examples/04.pix/20.convolve.pd similarity index 100% rename from Gem/examples/04.pix/20.convolve.pd rename to src/Gem/examples/04.pix/20.convolve.pd diff --git a/Gem/examples/04.pix/22.biquad.pd b/src/Gem/examples/04.pix/22.biquad.pd similarity index 100% rename from Gem/examples/04.pix/22.biquad.pd rename to src/Gem/examples/04.pix/22.biquad.pd diff --git a/Gem/examples/04.pix/23.gravity.pd b/src/Gem/examples/04.pix/23.gravity.pd similarity index 100% rename from Gem/examples/04.pix/23.gravity.pd rename to src/Gem/examples/04.pix/23.gravity.pd diff --git a/Gem/examples/04.pix/24.time-filtering.pd b/src/Gem/examples/04.pix/24.time-filtering.pd similarity index 100% rename from Gem/examples/04.pix/24.time-filtering.pd rename to src/Gem/examples/04.pix/24.time-filtering.pd diff --git a/Gem/examples/04.pix/25.buffer.pd b/src/Gem/examples/04.pix/25.buffer.pd similarity index 100% rename from Gem/examples/04.pix/25.buffer.pd rename to src/Gem/examples/04.pix/25.buffer.pd diff --git a/Gem/examples/04.pix/26.framebuffer_readback.pd b/src/Gem/examples/04.pix/26.framebuffer_readback.pd similarity index 100% rename from Gem/examples/04.pix/26.framebuffer_readback.pd rename to src/Gem/examples/04.pix/26.framebuffer_readback.pd diff --git a/Gem/examples/04.pix/27.bitmap_font.pd b/src/Gem/examples/04.pix/27.bitmap_font.pd similarity index 100% rename from Gem/examples/04.pix/27.bitmap_font.pd rename to src/Gem/examples/04.pix/27.bitmap_font.pd diff --git a/Gem/examples/04.video/00.SimpleVideo.pd b/src/Gem/examples/04.video/00.SimpleVideo.pd similarity index 100% rename from Gem/examples/04.video/00.SimpleVideo.pd rename to src/Gem/examples/04.video/00.SimpleVideo.pd diff --git a/Gem/examples/04.video/01.VideoPaint.pd b/src/Gem/examples/04.video/01.VideoPaint.pd similarity index 100% rename from Gem/examples/04.video/01.VideoPaint.pd rename to src/Gem/examples/04.video/01.VideoPaint.pd diff --git a/Gem/examples/04.video/02.VideoSphere.pd b/src/Gem/examples/04.video/02.VideoSphere.pd similarity index 100% rename from Gem/examples/04.video/02.VideoSphere.pd rename to src/Gem/examples/04.video/02.VideoSphere.pd diff --git a/Gem/examples/04.video/03.movement_detection.pd b/src/Gem/examples/04.video/03.movement_detection.pd similarity index 100% rename from Gem/examples/04.video/03.movement_detection.pd rename to src/Gem/examples/04.video/03.movement_detection.pd diff --git a/Gem/examples/04.video/04.videoRTX.pd b/src/Gem/examples/04.video/04.videoRTX.pd similarity index 100% rename from Gem/examples/04.video/04.videoRTX.pd rename to src/Gem/examples/04.video/04.videoRTX.pd diff --git a/Gem/examples/04.video/05.buffer_rtx.pd b/src/Gem/examples/04.video/05.buffer_rtx.pd similarity index 100% rename from Gem/examples/04.video/05.buffer_rtx.pd rename to src/Gem/examples/04.video/05.buffer_rtx.pd diff --git a/Gem/examples/04.video/06.frame_diff_tracking.pd b/src/Gem/examples/04.video/06.frame_diff_tracking.pd similarity index 100% rename from Gem/examples/04.video/06.frame_diff_tracking.pd rename to src/Gem/examples/04.video/06.frame_diff_tracking.pd diff --git a/Gem/examples/04.video/07.bg_subtract_tracking.pd b/src/Gem/examples/04.video/07.bg_subtract_tracking.pd similarity index 100% rename from Gem/examples/04.video/07.bg_subtract_tracking.pd rename to src/Gem/examples/04.video/07.bg_subtract_tracking.pd diff --git a/Gem/examples/04.video/08.color_classification.pd b/src/Gem/examples/04.video/08.color_classification.pd similarity index 100% rename from Gem/examples/04.video/08.color_classification.pd rename to src/Gem/examples/04.video/08.color_classification.pd diff --git a/Gem/examples/05.text/01.Text.pd b/src/Gem/examples/05.text/01.Text.pd similarity index 100% rename from Gem/examples/05.text/01.Text.pd rename to src/Gem/examples/05.text/01.Text.pd diff --git a/Gem/examples/05.text/01.TextNoLoadBang.pd b/src/Gem/examples/05.text/01.TextNoLoadBang.pd similarity index 100% rename from Gem/examples/05.text/01.TextNoLoadBang.pd rename to src/Gem/examples/05.text/01.TextNoLoadBang.pd diff --git a/Gem/examples/05.text/03.ChangeText.pd b/src/Gem/examples/05.text/03.ChangeText.pd similarity index 100% rename from Gem/examples/05.text/03.ChangeText.pd rename to src/Gem/examples/05.text/03.ChangeText.pd diff --git a/Gem/examples/05.text/03.ChangeTextNoLoadBang.pd b/src/Gem/examples/05.text/03.ChangeTextNoLoadBang.pd similarity index 100% rename from Gem/examples/05.text/03.ChangeTextNoLoadBang.pd rename to src/Gem/examples/05.text/03.ChangeTextNoLoadBang.pd diff --git a/Gem/examples/05.text/vera.ttf b/src/Gem/examples/05.text/vera.ttf similarity index 100% rename from Gem/examples/05.text/vera.ttf rename to src/Gem/examples/05.text/vera.ttf diff --git a/Gem/examples/06.particle/01.simple.pd b/src/Gem/examples/06.particle/01.simple.pd similarity index 100% rename from Gem/examples/06.particle/01.simple.pd rename to src/Gem/examples/06.particle/01.simple.pd diff --git a/Gem/examples/06.particle/02.fountain.pd b/src/Gem/examples/06.particle/02.fountain.pd similarity index 100% rename from Gem/examples/06.particle/02.fountain.pd rename to src/Gem/examples/06.particle/02.fountain.pd diff --git a/Gem/examples/06.particle/03.orbit.pd b/src/Gem/examples/06.particle/03.orbit.pd similarity index 100% rename from Gem/examples/06.particle/03.orbit.pd rename to src/Gem/examples/06.particle/03.orbit.pd diff --git a/Gem/examples/06.particle/04.combo.pd b/src/Gem/examples/06.particle/04.combo.pd similarity index 100% rename from Gem/examples/06.particle/04.combo.pd rename to src/Gem/examples/06.particle/04.combo.pd diff --git a/Gem/examples/06.particle/05.twoSrc.pd b/src/Gem/examples/06.particle/05.twoSrc.pd similarity index 100% rename from Gem/examples/06.particle/05.twoSrc.pd rename to src/Gem/examples/06.particle/05.twoSrc.pd diff --git a/Gem/examples/06.particle/06.target.pd b/src/Gem/examples/06.particle/06.target.pd similarity index 100% rename from Gem/examples/06.particle/06.target.pd rename to src/Gem/examples/06.particle/06.target.pd diff --git a/Gem/examples/06.particle/07.render.pd b/src/Gem/examples/06.particle/07.render.pd similarity index 100% rename from Gem/examples/06.particle/07.render.pd rename to src/Gem/examples/06.particle/07.render.pd diff --git a/Gem/examples/06.particle/08.info.pd b/src/Gem/examples/06.particle/08.info.pd similarity index 100% rename from Gem/examples/06.particle/08.info.pd rename to src/Gem/examples/06.particle/08.info.pd diff --git a/Gem/examples/06.particle/09.sink.pd b/src/Gem/examples/06.particle/09.sink.pd similarity index 100% rename from Gem/examples/06.particle/09.sink.pd rename to src/Gem/examples/06.particle/09.sink.pd diff --git a/Gem/examples/07.texture/01.texture.pd b/src/Gem/examples/07.texture/01.texture.pd similarity index 100% rename from Gem/examples/07.texture/01.texture.pd rename to src/Gem/examples/07.texture/01.texture.pd diff --git a/Gem/examples/07.texture/02.TexCoord.pd b/src/Gem/examples/07.texture/02.TexCoord.pd similarity index 100% rename from Gem/examples/07.texture/02.TexCoord.pd rename to src/Gem/examples/07.texture/02.TexCoord.pd diff --git a/Gem/examples/07.texture/04.moveImages.pd b/src/Gem/examples/07.texture/04.moveImages.pd similarity index 100% rename from Gem/examples/07.texture/04.moveImages.pd rename to src/Gem/examples/07.texture/04.moveImages.pd diff --git a/Gem/examples/07.texture/05.newWave.pd b/src/Gem/examples/07.texture/05.newWave.pd similarity index 100% rename from Gem/examples/07.texture/05.newWave.pd rename to src/Gem/examples/07.texture/05.newWave.pd diff --git a/Gem/examples/07.texture/06.ripple.pd b/src/Gem/examples/07.texture/06.ripple.pd similarity index 100% rename from Gem/examples/07.texture/06.ripple.pd rename to src/Gem/examples/07.texture/06.ripple.pd diff --git a/Gem/examples/07.texture/07.feedback.pd b/src/Gem/examples/07.texture/07.feedback.pd similarity index 100% rename from Gem/examples/07.texture/07.feedback.pd rename to src/Gem/examples/07.texture/07.feedback.pd diff --git a/Gem/examples/07.texture/08.MotionBlur.pd b/src/Gem/examples/07.texture/08.MotionBlur.pd similarity index 100% rename from Gem/examples/07.texture/08.MotionBlur.pd rename to src/Gem/examples/07.texture/08.MotionBlur.pd diff --git a/Gem/examples/07.texture/09.sharedTextures.pd b/src/Gem/examples/07.texture/09.sharedTextures.pd similarity index 100% rename from Gem/examples/07.texture/09.sharedTextures.pd rename to src/Gem/examples/07.texture/09.sharedTextures.pd diff --git a/Gem/examples/07.texture/10.framebuffer.pd b/src/Gem/examples/07.texture/10.framebuffer.pd similarity index 100% rename from Gem/examples/07.texture/10.framebuffer.pd rename to src/Gem/examples/07.texture/10.framebuffer.pd diff --git a/Gem/examples/07.texture/11.multiples_gemhead_in_a_framebuffer.pd b/src/Gem/examples/07.texture/11.multiples_gemhead_in_a_framebuffer.pd similarity index 100% rename from Gem/examples/07.texture/11.multiples_gemhead_in_a_framebuffer.pd rename to src/Gem/examples/07.texture/11.multiples_gemhead_in_a_framebuffer.pd diff --git a/Gem/examples/08.io/01.Mouse.pd b/src/Gem/examples/08.io/01.Mouse.pd similarity index 100% rename from Gem/examples/08.io/01.Mouse.pd rename to src/Gem/examples/08.io/01.Mouse.pd diff --git a/Gem/examples/08.io/02.Tablet.pd b/src/Gem/examples/08.io/02.Tablet.pd similarity index 100% rename from Gem/examples/08.io/02.Tablet.pd rename to src/Gem/examples/08.io/02.Tablet.pd diff --git a/Gem/examples/08.io/03.Orb.pd b/src/Gem/examples/08.io/03.Orb.pd similarity index 100% rename from Gem/examples/08.io/03.Orb.pd rename to src/Gem/examples/08.io/03.Orb.pd diff --git a/Gem/examples/08.io/04.UseOrb.pd b/src/Gem/examples/08.io/04.UseOrb.pd similarity index 100% rename from Gem/examples/08.io/04.UseOrb.pd rename to src/Gem/examples/08.io/04.UseOrb.pd diff --git a/Gem/examples/09.openGL/01.primQuad.pd b/src/Gem/examples/09.openGL/01.primQuad.pd similarity index 100% rename from Gem/examples/09.openGL/01.primQuad.pd rename to src/Gem/examples/09.openGL/01.primQuad.pd diff --git a/Gem/examples/09.openGL/02.displayList.pd b/src/Gem/examples/09.openGL/02.displayList.pd similarity index 100% rename from Gem/examples/09.openGL/02.displayList.pd rename to src/Gem/examples/09.openGL/02.displayList.pd diff --git a/Gem/examples/09.openGL/03.stencilBuffer.pd b/src/Gem/examples/09.openGL/03.stencilBuffer.pd similarity index 100% rename from Gem/examples/09.openGL/03.stencilBuffer.pd rename to src/Gem/examples/09.openGL/03.stencilBuffer.pd diff --git a/Gem/examples/09.openGL/04.clearZ.pd b/src/Gem/examples/09.openGL/04.clearZ.pd similarity index 100% rename from Gem/examples/09.openGL/04.clearZ.pd rename to src/Gem/examples/09.openGL/04.clearZ.pd diff --git a/Gem/examples/09.openGL/05.load_identity_matrix.pd b/src/Gem/examples/09.openGL/05.load_identity_matrix.pd similarity index 100% rename from Gem/examples/09.openGL/05.load_identity_matrix.pd rename to src/Gem/examples/09.openGL/05.load_identity_matrix.pd diff --git a/Gem/examples/10.glsl/01.simple_texture.pd b/src/Gem/examples/10.glsl/01.simple_texture.pd similarity index 100% rename from Gem/examples/10.glsl/01.simple_texture.pd rename to src/Gem/examples/10.glsl/01.simple_texture.pd diff --git a/Gem/examples/10.glsl/02.primitive_distortion.pd b/src/Gem/examples/10.glsl/02.primitive_distortion.pd similarity index 100% rename from Gem/examples/10.glsl/02.primitive_distortion.pd rename to src/Gem/examples/10.glsl/02.primitive_distortion.pd diff --git a/Gem/examples/10.glsl/03.texture_distortion.pd b/src/Gem/examples/10.glsl/03.texture_distortion.pd similarity index 100% rename from Gem/examples/10.glsl/03.texture_distortion.pd rename to src/Gem/examples/10.glsl/03.texture_distortion.pd diff --git a/Gem/examples/10.glsl/04.game_of_life.pd b/src/Gem/examples/10.glsl/04.game_of_life.pd similarity index 100% rename from Gem/examples/10.glsl/04.game_of_life.pd rename to src/Gem/examples/10.glsl/04.game_of_life.pd diff --git a/Gem/examples/10.glsl/05.multitexture.pd b/src/Gem/examples/10.glsl/05.multitexture.pd similarity index 100% rename from Gem/examples/10.glsl/05.multitexture.pd rename to src/Gem/examples/10.glsl/05.multitexture.pd diff --git a/Gem/examples/10.glsl/05.multitexture_bis.pd b/src/Gem/examples/10.glsl/05.multitexture_bis.pd similarity index 100% rename from Gem/examples/10.glsl/05.multitexture_bis.pd rename to src/Gem/examples/10.glsl/05.multitexture_bis.pd diff --git a/Gem/examples/10.glsl/06.rectangle_multitexture.pd b/src/Gem/examples/10.glsl/06.rectangle_multitexture.pd similarity index 100% rename from Gem/examples/10.glsl/06.rectangle_multitexture.pd rename to src/Gem/examples/10.glsl/06.rectangle_multitexture.pd diff --git a/Gem/examples/10.glsl/07.framebuffer_and_shader.pd b/src/Gem/examples/10.glsl/07.framebuffer_and_shader.pd similarity index 100% rename from Gem/examples/10.glsl/07.framebuffer_and_shader.pd rename to src/Gem/examples/10.glsl/07.framebuffer_and_shader.pd diff --git a/Gem/examples/10.glsl/08.multi_pass_rendering.pd b/src/Gem/examples/10.glsl/08.multi_pass_rendering.pd similarity index 100% rename from Gem/examples/10.glsl/08.multi_pass_rendering.pd rename to src/Gem/examples/10.glsl/08.multi_pass_rendering.pd diff --git a/Gem/examples/10.glsl/09.vertex_texture_fetching.pd b/src/Gem/examples/10.glsl/09.vertex_texture_fetching.pd similarity index 100% rename from Gem/examples/10.glsl/09.vertex_texture_fetching.pd rename to src/Gem/examples/10.glsl/09.vertex_texture_fetching.pd diff --git a/Gem/examples/10.glsl/10.GPGPU_Physical_model.pd b/src/Gem/examples/10.glsl/10.GPGPU_Physical_model.pd similarity index 100% rename from Gem/examples/10.glsl/10.GPGPU_Physical_model.pd rename to src/Gem/examples/10.glsl/10.GPGPU_Physical_model.pd diff --git a/Gem/examples/10.glsl/11.geometry.pd b/src/Gem/examples/10.glsl/11.geometry.pd similarity index 100% rename from Gem/examples/10.glsl/11.geometry.pd rename to src/Gem/examples/10.glsl/11.geometry.pd diff --git a/Gem/examples/10.glsl/12.tri2fan.pd b/src/Gem/examples/10.glsl/12.tri2fan.pd similarity index 100% rename from Gem/examples/10.glsl/12.tri2fan.pd rename to src/Gem/examples/10.glsl/12.tri2fan.pd diff --git a/Gem/examples/10.glsl/13.panoramique.pd b/src/Gem/examples/10.glsl/13.panoramique.pd similarity index 100% rename from Gem/examples/10.glsl/13.panoramique.pd rename to src/Gem/examples/10.glsl/13.panoramique.pd diff --git a/Gem/examples/10.glsl/14.blur.pd b/src/Gem/examples/10.glsl/14.blur.pd similarity index 100% rename from Gem/examples/10.glsl/14.blur.pd rename to src/Gem/examples/10.glsl/14.blur.pd diff --git a/Gem/examples/10.glsl/15.bicubic_image_interpolation.pd b/src/Gem/examples/10.glsl/15.bicubic_image_interpolation.pd similarity index 100% rename from Gem/examples/10.glsl/15.bicubic_image_interpolation.pd rename to src/Gem/examples/10.glsl/15.bicubic_image_interpolation.pd diff --git a/Gem/examples/10.glsl/GLSL_mix.frag b/src/Gem/examples/10.glsl/GLSL_mix.frag similarity index 100% rename from Gem/examples/10.glsl/GLSL_mix.frag rename to src/Gem/examples/10.glsl/GLSL_mix.frag diff --git a/Gem/examples/10.glsl/GLSL_mix.vert b/src/Gem/examples/10.glsl/GLSL_mix.vert similarity index 100% rename from Gem/examples/10.glsl/GLSL_mix.vert rename to src/Gem/examples/10.glsl/GLSL_mix.vert diff --git a/Gem/examples/10.glsl/P_distord.frag b/src/Gem/examples/10.glsl/P_distord.frag similarity index 100% rename from Gem/examples/10.glsl/P_distord.frag rename to src/Gem/examples/10.glsl/P_distord.frag diff --git a/Gem/examples/10.glsl/P_distord.vert b/src/Gem/examples/10.glsl/P_distord.vert similarity index 100% rename from Gem/examples/10.glsl/P_distord.vert rename to src/Gem/examples/10.glsl/P_distord.vert diff --git a/Gem/examples/10.glsl/T_distord.frag b/src/Gem/examples/10.glsl/T_distord.frag similarity index 100% rename from Gem/examples/10.glsl/T_distord.frag rename to src/Gem/examples/10.glsl/T_distord.frag diff --git a/Gem/examples/10.glsl/T_distord.vert b/src/Gem/examples/10.glsl/T_distord.vert similarity index 100% rename from Gem/examples/10.glsl/T_distord.vert rename to src/Gem/examples/10.glsl/T_distord.vert diff --git a/Gem/examples/10.glsl/_glsl.pd b/src/Gem/examples/10.glsl/_glsl.pd similarity index 100% rename from Gem/examples/10.glsl/_glsl.pd rename to src/Gem/examples/10.glsl/_glsl.pd diff --git a/Gem/examples/10.glsl/bicubic_interpolation.frag b/src/Gem/examples/10.glsl/bicubic_interpolation.frag similarity index 100% rename from Gem/examples/10.glsl/bicubic_interpolation.frag rename to src/Gem/examples/10.glsl/bicubic_interpolation.frag diff --git a/Gem/examples/10.glsl/bicubic_interpolation.vert b/src/Gem/examples/10.glsl/bicubic_interpolation.vert similarity index 100% rename from Gem/examples/10.glsl/bicubic_interpolation.vert rename to src/Gem/examples/10.glsl/bicubic_interpolation.vert diff --git a/Gem/examples/10.glsl/blur.frag b/src/Gem/examples/10.glsl/blur.frag similarity index 100% rename from Gem/examples/10.glsl/blur.frag rename to src/Gem/examples/10.glsl/blur.frag diff --git a/Gem/examples/10.glsl/blur.vert b/src/Gem/examples/10.glsl/blur.vert similarity index 100% rename from Gem/examples/10.glsl/blur.vert rename to src/Gem/examples/10.glsl/blur.vert diff --git a/Gem/examples/10.glsl/cam1.jpg b/src/Gem/examples/10.glsl/cam1.jpg similarity index 100% rename from Gem/examples/10.glsl/cam1.jpg rename to src/Gem/examples/10.glsl/cam1.jpg diff --git a/Gem/examples/10.glsl/cam2.jpg b/src/Gem/examples/10.glsl/cam2.jpg similarity index 100% rename from Gem/examples/10.glsl/cam2.jpg rename to src/Gem/examples/10.glsl/cam2.jpg diff --git a/Gem/examples/10.glsl/cam3.jpg b/src/Gem/examples/10.glsl/cam3.jpg similarity index 100% rename from Gem/examples/10.glsl/cam3.jpg rename to src/Gem/examples/10.glsl/cam3.jpg diff --git a/Gem/examples/10.glsl/cam4.jpg b/src/Gem/examples/10.glsl/cam4.jpg similarity index 100% rename from Gem/examples/10.glsl/cam4.jpg rename to src/Gem/examples/10.glsl/cam4.jpg diff --git a/Gem/examples/10.glsl/fetching.frag b/src/Gem/examples/10.glsl/fetching.frag similarity index 100% rename from Gem/examples/10.glsl/fetching.frag rename to src/Gem/examples/10.glsl/fetching.frag diff --git a/Gem/examples/10.glsl/fetching.vert b/src/Gem/examples/10.glsl/fetching.vert similarity index 100% rename from Gem/examples/10.glsl/fetching.vert rename to src/Gem/examples/10.glsl/fetching.vert diff --git a/Gem/examples/10.glsl/fetching2.frag b/src/Gem/examples/10.glsl/fetching2.frag similarity index 100% rename from Gem/examples/10.glsl/fetching2.frag rename to src/Gem/examples/10.glsl/fetching2.frag diff --git a/Gem/examples/10.glsl/fetching2.vert b/src/Gem/examples/10.glsl/fetching2.vert similarity index 100% rename from Gem/examples/10.glsl/fetching2.vert rename to src/Gem/examples/10.glsl/fetching2.vert diff --git a/Gem/examples/10.glsl/game.frag b/src/Gem/examples/10.glsl/game.frag similarity index 100% rename from Gem/examples/10.glsl/game.frag rename to src/Gem/examples/10.glsl/game.frag diff --git a/Gem/examples/10.glsl/game.vert b/src/Gem/examples/10.glsl/game.vert similarity index 100% rename from Gem/examples/10.glsl/game.vert rename to src/Gem/examples/10.glsl/game.vert diff --git a/Gem/examples/10.glsl/geo.frag b/src/Gem/examples/10.glsl/geo.frag similarity index 100% rename from Gem/examples/10.glsl/geo.frag rename to src/Gem/examples/10.glsl/geo.frag diff --git a/Gem/examples/10.glsl/geo.geom b/src/Gem/examples/10.glsl/geo.geom similarity index 100% rename from Gem/examples/10.glsl/geo.geom rename to src/Gem/examples/10.glsl/geo.geom diff --git a/Gem/examples/10.glsl/geo.vert b/src/Gem/examples/10.glsl/geo.vert similarity index 100% rename from Gem/examples/10.glsl/geo.vert rename to src/Gem/examples/10.glsl/geo.vert diff --git a/Gem/examples/10.glsl/img1.jpg b/src/Gem/examples/10.glsl/img1.jpg similarity index 100% rename from Gem/examples/10.glsl/img1.jpg rename to src/Gem/examples/10.glsl/img1.jpg diff --git a/Gem/examples/10.glsl/img2.jpg b/src/Gem/examples/10.glsl/img2.jpg similarity index 100% rename from Gem/examples/10.glsl/img2.jpg rename to src/Gem/examples/10.glsl/img2.jpg diff --git a/Gem/examples/10.glsl/img3.jpg b/src/Gem/examples/10.glsl/img3.jpg similarity index 100% rename from Gem/examples/10.glsl/img3.jpg rename to src/Gem/examples/10.glsl/img3.jpg diff --git a/Gem/examples/10.glsl/interpol.frag b/src/Gem/examples/10.glsl/interpol.frag similarity index 100% rename from Gem/examples/10.glsl/interpol.frag rename to src/Gem/examples/10.glsl/interpol.frag diff --git a/Gem/examples/10.glsl/link.frag b/src/Gem/examples/10.glsl/link.frag similarity index 100% rename from Gem/examples/10.glsl/link.frag rename to src/Gem/examples/10.glsl/link.frag diff --git a/Gem/examples/10.glsl/link.vert b/src/Gem/examples/10.glsl/link.vert similarity index 100% rename from Gem/examples/10.glsl/link.vert rename to src/Gem/examples/10.glsl/link.vert diff --git a/Gem/examples/10.glsl/mass.frag b/src/Gem/examples/10.glsl/mass.frag similarity index 100% rename from Gem/examples/10.glsl/mass.frag rename to src/Gem/examples/10.glsl/mass.frag diff --git a/Gem/examples/10.glsl/mass.vert b/src/Gem/examples/10.glsl/mass.vert similarity index 100% rename from Gem/examples/10.glsl/mass.vert rename to src/Gem/examples/10.glsl/mass.vert diff --git a/Gem/examples/10.glsl/multitexture.frag b/src/Gem/examples/10.glsl/multitexture.frag similarity index 100% rename from Gem/examples/10.glsl/multitexture.frag rename to src/Gem/examples/10.glsl/multitexture.frag diff --git a/Gem/examples/10.glsl/multitexture.vert b/src/Gem/examples/10.glsl/multitexture.vert similarity index 100% rename from Gem/examples/10.glsl/multitexture.vert rename to src/Gem/examples/10.glsl/multitexture.vert diff --git a/Gem/examples/10.glsl/multitexture_rect.frag b/src/Gem/examples/10.glsl/multitexture_rect.frag similarity index 100% rename from Gem/examples/10.glsl/multitexture_rect.frag rename to src/Gem/examples/10.glsl/multitexture_rect.frag diff --git a/Gem/examples/10.glsl/multitexture_rect.vert b/src/Gem/examples/10.glsl/multitexture_rect.vert similarity index 100% rename from Gem/examples/10.glsl/multitexture_rect.vert rename to src/Gem/examples/10.glsl/multitexture_rect.vert diff --git a/Gem/examples/10.glsl/normal.frag b/src/Gem/examples/10.glsl/normal.frag similarity index 100% rename from Gem/examples/10.glsl/normal.frag rename to src/Gem/examples/10.glsl/normal.frag diff --git a/Gem/examples/10.glsl/normal.vert b/src/Gem/examples/10.glsl/normal.vert similarity index 100% rename from Gem/examples/10.glsl/normal.vert rename to src/Gem/examples/10.glsl/normal.vert diff --git a/Gem/examples/10.glsl/panoramique.frag b/src/Gem/examples/10.glsl/panoramique.frag similarity index 100% rename from Gem/examples/10.glsl/panoramique.frag rename to src/Gem/examples/10.glsl/panoramique.frag diff --git a/Gem/examples/10.glsl/panoramique.vert b/src/Gem/examples/10.glsl/panoramique.vert similarity index 100% rename from Gem/examples/10.glsl/panoramique.vert rename to src/Gem/examples/10.glsl/panoramique.vert diff --git a/Gem/examples/10.glsl/single_blur.pd b/src/Gem/examples/10.glsl/single_blur.pd similarity index 100% rename from Gem/examples/10.glsl/single_blur.pd rename to src/Gem/examples/10.glsl/single_blur.pd diff --git a/Gem/examples/10.glsl/texture.frag b/src/Gem/examples/10.glsl/texture.frag similarity index 100% rename from Gem/examples/10.glsl/texture.frag rename to src/Gem/examples/10.glsl/texture.frag diff --git a/Gem/examples/10.glsl/texture.vert b/src/Gem/examples/10.glsl/texture.vert similarity index 100% rename from Gem/examples/10.glsl/texture.vert rename to src/Gem/examples/10.glsl/texture.vert diff --git a/Gem/examples/10.glsl/texture_rect.frag b/src/Gem/examples/10.glsl/texture_rect.frag similarity index 100% rename from Gem/examples/10.glsl/texture_rect.frag rename to src/Gem/examples/10.glsl/texture_rect.frag diff --git a/Gem/examples/10.glsl/tri2fan.frag b/src/Gem/examples/10.glsl/tri2fan.frag similarity index 100% rename from Gem/examples/10.glsl/tri2fan.frag rename to src/Gem/examples/10.glsl/tri2fan.frag diff --git a/Gem/examples/10.glsl/tri2fan.geom b/src/Gem/examples/10.glsl/tri2fan.geom similarity index 100% rename from Gem/examples/10.glsl/tri2fan.geom rename to src/Gem/examples/10.glsl/tri2fan.geom diff --git a/Gem/examples/10.glsl/tri2fan.vert b/src/Gem/examples/10.glsl/tri2fan.vert similarity index 100% rename from Gem/examples/10.glsl/tri2fan.vert rename to src/Gem/examples/10.glsl/tri2fan.vert diff --git a/Gem/examples/10.glsl/vague.frag b/src/Gem/examples/10.glsl/vague.frag similarity index 100% rename from Gem/examples/10.glsl/vague.frag rename to src/Gem/examples/10.glsl/vague.frag diff --git a/Gem/examples/10.glsl/wave.frag b/src/Gem/examples/10.glsl/wave.frag similarity index 100% rename from Gem/examples/10.glsl/wave.frag rename to src/Gem/examples/10.glsl/wave.frag diff --git a/Gem/examples/11.obj-exporter/obj_cube.pd b/src/Gem/examples/11.obj-exporter/obj_cube.pd similarity index 100% rename from Gem/examples/11.obj-exporter/obj_cube.pd rename to src/Gem/examples/11.obj-exporter/obj_cube.pd diff --git a/Gem/examples/11.obj-exporter/obj_exporter-help.pd b/src/Gem/examples/11.obj-exporter/obj_exporter-help.pd similarity index 100% rename from Gem/examples/11.obj-exporter/obj_exporter-help.pd rename to src/Gem/examples/11.obj-exporter/obj_exporter-help.pd diff --git a/Gem/examples/11.obj-exporter/obj_exporter.pd b/src/Gem/examples/11.obj-exporter/obj_exporter.pd similarity index 100% rename from Gem/examples/11.obj-exporter/obj_exporter.pd rename to src/Gem/examples/11.obj-exporter/obj_exporter.pd diff --git a/Gem/examples/11.obj-exporter/obj_primTri.pd b/src/Gem/examples/11.obj-exporter/obj_primTri.pd similarity index 100% rename from Gem/examples/11.obj-exporter/obj_primTri.pd rename to src/Gem/examples/11.obj-exporter/obj_primTri.pd diff --git a/Gem/examples/11.obj-exporter/obj_rectangle.pd b/src/Gem/examples/11.obj-exporter/obj_rectangle.pd similarity index 100% rename from Gem/examples/11.obj-exporter/obj_rectangle.pd rename to src/Gem/examples/11.obj-exporter/obj_rectangle.pd diff --git a/Gem/examples/11.obj-exporter/obj_square.pd b/src/Gem/examples/11.obj-exporter/obj_square.pd similarity index 100% rename from Gem/examples/11.obj-exporter/obj_square.pd rename to src/Gem/examples/11.obj-exporter/obj_square.pd diff --git a/Gem/examples/12.multi_screen_projection/01.flat_projection-help.pd b/src/Gem/examples/12.multi_screen_projection/01.flat_projection-help.pd similarity index 100% rename from Gem/examples/12.multi_screen_projection/01.flat_projection-help.pd rename to src/Gem/examples/12.multi_screen_projection/01.flat_projection-help.pd diff --git a/Gem/examples/12.multi_screen_projection/02.nfp-help.pd b/src/Gem/examples/12.multi_screen_projection/02.nfp-help.pd similarity index 100% rename from Gem/examples/12.multi_screen_projection/02.nfp-help.pd rename to src/Gem/examples/12.multi_screen_projection/02.nfp-help.pd diff --git a/Gem/examples/12.multi_screen_projection/config.txt b/src/Gem/examples/12.multi_screen_projection/config.txt similarity index 100% rename from Gem/examples/12.multi_screen_projection/config.txt rename to src/Gem/examples/12.multi_screen_projection/config.txt diff --git a/Gem/examples/12.multi_screen_projection/flat_projection.pd b/src/Gem/examples/12.multi_screen_projection/flat_projection.pd similarity index 100% rename from Gem/examples/12.multi_screen_projection/flat_projection.pd rename to src/Gem/examples/12.multi_screen_projection/flat_projection.pd diff --git a/Gem/examples/12.multi_screen_projection/grid.jpg b/src/Gem/examples/12.multi_screen_projection/grid.jpg similarity index 100% rename from Gem/examples/12.multi_screen_projection/grid.jpg rename to src/Gem/examples/12.multi_screen_projection/grid.jpg diff --git a/Gem/examples/12.multi_screen_projection/load_save.pd b/src/Gem/examples/12.multi_screen_projection/load_save.pd similarity index 100% rename from Gem/examples/12.multi_screen_projection/load_save.pd rename to src/Gem/examples/12.multi_screen_projection/load_save.pd diff --git a/Gem/examples/12.multi_screen_projection/nfp_22.frag b/src/Gem/examples/12.multi_screen_projection/nfp_22.frag similarity index 100% rename from Gem/examples/12.multi_screen_projection/nfp_22.frag rename to src/Gem/examples/12.multi_screen_projection/nfp_22.frag diff --git a/Gem/examples/12.multi_screen_projection/nfp_22.vert b/src/Gem/examples/12.multi_screen_projection/nfp_22.vert similarity index 100% rename from Gem/examples/12.multi_screen_projection/nfp_22.vert rename to src/Gem/examples/12.multi_screen_projection/nfp_22.vert diff --git a/Gem/examples/12.multi_screen_projection/nfp_33.frag b/src/Gem/examples/12.multi_screen_projection/nfp_33.frag similarity index 100% rename from Gem/examples/12.multi_screen_projection/nfp_33.frag rename to src/Gem/examples/12.multi_screen_projection/nfp_33.frag diff --git a/Gem/examples/12.multi_screen_projection/nfp_33.vert b/src/Gem/examples/12.multi_screen_projection/nfp_33.vert similarity index 100% rename from Gem/examples/12.multi_screen_projection/nfp_33.vert rename to src/Gem/examples/12.multi_screen_projection/nfp_33.vert diff --git a/Gem/examples/12.multi_screen_projection/nfp_curved_wall.pd b/src/Gem/examples/12.multi_screen_projection/nfp_curved_wall.pd similarity index 100% rename from Gem/examples/12.multi_screen_projection/nfp_curved_wall.pd rename to src/Gem/examples/12.multi_screen_projection/nfp_curved_wall.pd diff --git a/Gem/examples/12.multi_screen_projection/nfp_flat_wall.pd b/src/Gem/examples/12.multi_screen_projection/nfp_flat_wall.pd similarity index 100% rename from Gem/examples/12.multi_screen_projection/nfp_flat_wall.pd rename to src/Gem/examples/12.multi_screen_projection/nfp_flat_wall.pd diff --git a/Gem/examples/12.multi_screen_projection/save_system-help.pd b/src/Gem/examples/12.multi_screen_projection/save_system-help.pd similarity index 100% rename from Gem/examples/12.multi_screen_projection/save_system-help.pd rename to src/Gem/examples/12.multi_screen_projection/save_system-help.pd diff --git a/Gem/examples/12.multi_screen_projection/saved.pd b/src/Gem/examples/12.multi_screen_projection/saved.pd similarity index 100% rename from Gem/examples/12.multi_screen_projection/saved.pd rename to src/Gem/examples/12.multi_screen_projection/saved.pd diff --git a/Gem/examples/12.multi_screen_projection/soft_edge.frag b/src/Gem/examples/12.multi_screen_projection/soft_edge.frag similarity index 100% rename from Gem/examples/12.multi_screen_projection/soft_edge.frag rename to src/Gem/examples/12.multi_screen_projection/soft_edge.frag diff --git a/Gem/examples/13.recursion/01.repetition_is_futile.pd b/src/Gem/examples/13.recursion/01.repetition_is_futile.pd similarity index 100% rename from Gem/examples/13.recursion/01.repetition_is_futile.pd rename to src/Gem/examples/13.recursion/01.repetition_is_futile.pd diff --git a/Gem/examples/13.recursion/02.iteration_is_insufficient.pd b/src/Gem/examples/13.recursion/02.iteration_is_insufficient.pd similarity index 100% rename from Gem/examples/13.recursion/02.iteration_is_insufficient.pd rename to src/Gem/examples/13.recursion/02.iteration_is_insufficient.pd diff --git a/Gem/examples/13.recursion/03.recursive_spiral.pd b/src/Gem/examples/13.recursion/03.recursive_spiral.pd similarity index 100% rename from Gem/examples/13.recursion/03.recursive_spiral.pd rename to src/Gem/examples/13.recursion/03.recursive_spiral.pd diff --git a/Gem/examples/13.recursion/04.binary_tree.pd b/src/Gem/examples/13.recursion/04.binary_tree.pd similarity index 100% rename from Gem/examples/13.recursion/04.binary_tree.pd rename to src/Gem/examples/13.recursion/04.binary_tree.pd diff --git a/Gem/examples/13.recursion/05.n-ary_tree.pd b/src/Gem/examples/13.recursion/05.n-ary_tree.pd similarity index 100% rename from Gem/examples/13.recursion/05.n-ary_tree.pd rename to src/Gem/examples/13.recursion/05.n-ary_tree.pd diff --git a/Gem/examples/13.recursion/06.breaking_symmetry.pd b/src/Gem/examples/13.recursion/06.breaking_symmetry.pd similarity index 100% rename from Gem/examples/13.recursion/06.breaking_symmetry.pd rename to src/Gem/examples/13.recursion/06.breaking_symmetry.pd diff --git a/Gem/examples/13.recursion/README b/src/Gem/examples/13.recursion/README similarity index 100% rename from Gem/examples/13.recursion/README rename to src/Gem/examples/13.recursion/README diff --git a/Gem/examples/13.recursion/nnrepeat-help.pd b/src/Gem/examples/13.recursion/nnrepeat-help.pd similarity index 100% rename from Gem/examples/13.recursion/nnrepeat-help.pd rename to src/Gem/examples/13.recursion/nnrepeat-help.pd diff --git a/Gem/examples/13.recursion/nnrepeat-test.pd b/src/Gem/examples/13.recursion/nnrepeat-test.pd similarity index 100% rename from Gem/examples/13.recursion/nnrepeat-test.pd rename to src/Gem/examples/13.recursion/nnrepeat-test.pd diff --git a/Gem/examples/13.recursion/nnrepeat.pd b/src/Gem/examples/13.recursion/nnrepeat.pd similarity index 100% rename from Gem/examples/13.recursion/nnrepeat.pd rename to src/Gem/examples/13.recursion/nnrepeat.pd diff --git a/Gem/examples/13.recursion/nrepeat-help.pd b/src/Gem/examples/13.recursion/nrepeat-help.pd similarity index 100% rename from Gem/examples/13.recursion/nrepeat-help.pd rename to src/Gem/examples/13.recursion/nrepeat-help.pd diff --git a/Gem/examples/13.recursion/nrepeat-test.pd b/src/Gem/examples/13.recursion/nrepeat-test.pd similarity index 100% rename from Gem/examples/13.recursion/nrepeat-test.pd rename to src/Gem/examples/13.recursion/nrepeat-test.pd diff --git a/Gem/examples/13.recursion/nrepeat.pd b/src/Gem/examples/13.recursion/nrepeat.pd similarity index 100% rename from Gem/examples/13.recursion/nrepeat.pd rename to src/Gem/examples/13.recursion/nrepeat.pd diff --git a/Gem/examples/13.recursion/stack-help.pd b/src/Gem/examples/13.recursion/stack-help.pd similarity index 100% rename from Gem/examples/13.recursion/stack-help.pd rename to src/Gem/examples/13.recursion/stack-help.pd diff --git a/Gem/examples/13.recursion/stack.pd b/src/Gem/examples/13.recursion/stack.pd similarity index 100% rename from Gem/examples/13.recursion/stack.pd rename to src/Gem/examples/13.recursion/stack.pd diff --git a/Gem/examples/13.recursion/xform-gui.pd b/src/Gem/examples/13.recursion/xform-gui.pd similarity index 100% rename from Gem/examples/13.recursion/xform-gui.pd rename to src/Gem/examples/13.recursion/xform-gui.pd diff --git a/Gem/examples/99.games/puzzle.pd b/src/Gem/examples/99.games/puzzle.pd similarity index 100% rename from Gem/examples/99.games/puzzle.pd rename to src/Gem/examples/99.games/puzzle.pd diff --git a/Gem/examples/Makefile.am b/src/Gem/examples/Makefile.am similarity index 100% rename from Gem/examples/Makefile.am rename to src/Gem/examples/Makefile.am diff --git a/src/Gem/examples/Makefile.in b/src/Gem/examples/Makefile.in new file mode 100644 index 0000000..e3e403f --- /dev/null +++ b/src/Gem/examples/Makefile.in @@ -0,0 +1,842 @@ +# Makefile.in generated by automake 1.11.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = examples +DIST_COMMON = $(nobase_dist_gemexamples_DATA) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_gl.m4 \ + $(top_srcdir)/m4/ax_check_glu.m4 \ + $(top_srcdir)/m4/ax_check_glut.m4 \ + $(top_srcdir)/m4/ax_compiler_vendor.m4 \ + $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/gem.m4 \ + $(top_srcdir)/m4/iem_ftgl.m4 $(top_srcdir)/m4/iem_opengl.m4 \ + $(top_srcdir)/m4/iem_operatingsystem.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/src/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(gemexamplesdir)" +DATA = $(nobase_dist_gemexamples_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AGL_CFLAGS = @AGL_CFLAGS@ +AGL_LIBS = @AGL_LIBS@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFINES = @DEFINES@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXT = @EXT@ +FGREP = @FGREP@ +GEM_ARCH_CXXFLAGS = @GEM_ARCH_CXXFLAGS@ +GEM_ARCH_LDFLAGS = @GEM_ARCH_LDFLAGS@ +GEM_CFLAGS = @GEM_CFLAGS@ +GEM_CPPFLAGS = @GEM_CPPFLAGS@ +GEM_CXXFLAGS = @GEM_CXXFLAGS@ +GEM_DEFAULT_WINDOW = @GEM_DEFAULT_WINDOW@ +GEM_EXTERNAL_CFLAGS = @GEM_EXTERNAL_CFLAGS@ +GEM_EXTERNAL_CPPFLAGS = @GEM_EXTERNAL_CPPFLAGS@ +GEM_EXTERNAL_LIBS = @GEM_EXTERNAL_LIBS@ +GEM_FRAMEWORK_AGL = @GEM_FRAMEWORK_AGL@ +GEM_FRAMEWORK_CARBON = @GEM_FRAMEWORK_CARBON@ +GEM_FRAMEWORK_COCOA = @GEM_FRAMEWORK_COCOA@ +GEM_FRAMEWORK_QUICKTIME = @GEM_FRAMEWORK_QUICKTIME@ +GEM_LIBS = @GEM_LIBS@ +GEM_LIB_ASSIMP_CFLAGS = @GEM_LIB_ASSIMP_CFLAGS@ +GEM_LIB_ASSIMP_LIBS = @GEM_LIB_ASSIMP_LIBS@ +GEM_LIB_AVIFILE_CFLAGS = @GEM_LIB_AVIFILE_CFLAGS@ +GEM_LIB_AVIFILE_LIBS = @GEM_LIB_AVIFILE_LIBS@ +GEM_LIB_FRIBIDI_CFLAGS = @GEM_LIB_FRIBIDI_CFLAGS@ +GEM_LIB_FRIBIDI_LIBS = @GEM_LIB_FRIBIDI_LIBS@ +GEM_LIB_FTGL_CFLAGS = @GEM_LIB_FTGL_CFLAGS@ +GEM_LIB_FTGL_LIBS = @GEM_LIB_FTGL_LIBS@ +GEM_LIB_GLEW_CFLAGS = @GEM_LIB_GLEW_CFLAGS@ +GEM_LIB_GLEW_LIBS = @GEM_LIB_GLEW_LIBS@ +GEM_LIB_GMERLIN_AVDEC_CFLAGS = @GEM_LIB_GMERLIN_AVDEC_CFLAGS@ +GEM_LIB_GMERLIN_AVDEC_LIBS = @GEM_LIB_GMERLIN_AVDEC_LIBS@ +GEM_LIB_IMAGEMAGICK___CFLAGS = @GEM_LIB_IMAGEMAGICK___CFLAGS@ +GEM_LIB_IMAGEMAGICK___LIBS = @GEM_LIB_IMAGEMAGICK___LIBS@ +GEM_LIB_JPEG_CFLAGS = @GEM_LIB_JPEG_CFLAGS@ +GEM_LIB_JPEG_LIBS = @GEM_LIB_JPEG_LIBS@ +GEM_LIB_LIBDC1394_2_CFLAGS = @GEM_LIB_LIBDC1394_2_CFLAGS@ +GEM_LIB_LIBDC1394_2_LIBS = @GEM_LIB_LIBDC1394_2_LIBS@ +GEM_LIB_LIBDV_CFLAGS = @GEM_LIB_LIBDV_CFLAGS@ +GEM_LIB_LIBDV_LIBS = @GEM_LIB_LIBDV_LIBS@ +GEM_LIB_LIBIEC61883_CFLAGS = @GEM_LIB_LIBIEC61883_CFLAGS@ +GEM_LIB_LIBIEC61883_LIBS = @GEM_LIB_LIBIEC61883_LIBS@ +GEM_LIB_LIBMPEG3_CFLAGS = @GEM_LIB_LIBMPEG3_CFLAGS@ +GEM_LIB_LIBMPEG3_LIBS = @GEM_LIB_LIBMPEG3_LIBS@ +GEM_LIB_LIBQUICKTIME_CFLAGS = @GEM_LIB_LIBQUICKTIME_CFLAGS@ +GEM_LIB_LIBQUICKTIME_LIBS = @GEM_LIB_LIBQUICKTIME_LIBS@ +GEM_LIB_LIBRAW1394_CFLAGS = @GEM_LIB_LIBRAW1394_CFLAGS@ +GEM_LIB_LIBRAW1394_LIBS = @GEM_LIB_LIBRAW1394_LIBS@ +GEM_LIB_LIBUNICAP_CFLAGS = @GEM_LIB_LIBUNICAP_CFLAGS@ +GEM_LIB_LIBUNICAP_LIBS = @GEM_LIB_LIBUNICAP_LIBS@ +GEM_LIB_LIBV4L1_CFLAGS = @GEM_LIB_LIBV4L1_CFLAGS@ +GEM_LIB_LIBV4L1_LIBS = @GEM_LIB_LIBV4L1_LIBS@ +GEM_LIB_LIBV4L2_CFLAGS = @GEM_LIB_LIBV4L2_CFLAGS@ +GEM_LIB_LIBV4L2_LIBS = @GEM_LIB_LIBV4L2_LIBS@ +GEM_LIB_LIBVLC_CFLAGS = @GEM_LIB_LIBVLC_CFLAGS@ +GEM_LIB_LIBVLC_LIBS = @GEM_LIB_LIBVLC_LIBS@ +GEM_LIB_LQT_CFLAGS = @GEM_LIB_LQT_CFLAGS@ +GEM_LIB_LQT_LIBS = @GEM_LIB_LQT_LIBS@ +GEM_LIB_MAGICKCORE_CFLAGS = @GEM_LIB_MAGICKCORE_CFLAGS@ +GEM_LIB_MAGICKCORE_LIBS = @GEM_LIB_MAGICKCORE_LIBS@ +GEM_LIB_MPEG_CFLAGS = @GEM_LIB_MPEG_CFLAGS@ +GEM_LIB_MPEG_LIBS = @GEM_LIB_MPEG_LIBS@ +GEM_LIB_SDL_CFLAGS = @GEM_LIB_SDL_CFLAGS@ +GEM_LIB_SDL_LIBS = @GEM_LIB_SDL_LIBS@ +GEM_LIB_TIFF_CFLAGS = @GEM_LIB_TIFF_CFLAGS@ +GEM_LIB_TIFF_LIBS = @GEM_LIB_TIFF_LIBS@ +GEM_LIB_VFW32_CFLAGS = @GEM_LIB_VFW32_CFLAGS@ +GEM_LIB_VFW32_LIBS = @GEM_LIB_VFW32_LIBS@ +GEM_PTHREAD_CFLAGS = @GEM_PTHREAD_CFLAGS@ +GEM_PTHREAD_LIBS = @GEM_PTHREAD_LIBS@ +GEM_RTE = @GEM_RTE@ +GEM_RTE_CFLAGS = @GEM_RTE_CFLAGS@ +GEM_RTE_EXTENSION = @GEM_RTE_EXTENSION@ +GEM_RTE_LIBS = @GEM_RTE_LIBS@ +GEM_TARGETS = @GEM_TARGETS@ +GLUT_CFLAGS = @GLUT_CFLAGS@ +GLUT_LIBS = @GLUT_LIBS@ +GLU_CFLAGS = @GLU_CFLAGS@ +GLU_LIBS = @GLU_LIBS@ +GLX_CFLAGS = @GLX_CFLAGS@ +GLX_LIBS = @GLX_LIBS@ +GL_CFLAGS = @GL_CFLAGS@ +GL_LIBS = @GL_LIBS@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEDEP_FLAGS = @MAKEDEP_FLAGS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJC = @OBJC@ +OBJCDEPMODE = @OBJCDEPMODE@ +OBJCFLAGS = @OBJCFLAGS@ +OBJCXX = @OBJCXX@ +OBJCXXFLAGS = @OBJCXXFLAGS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_ASSIMP_CFLAGS = @PKG_ASSIMP_CFLAGS@ +PKG_ASSIMP_LIBS = @PKG_ASSIMP_LIBS@ +PKG_AVIFILE_CFLAGS = @PKG_AVIFILE_CFLAGS@ +PKG_AVIFILE_LIBS = @PKG_AVIFILE_LIBS@ +PKG_CFLAGS = @PKG_CFLAGS@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_FRIBIDI_CFLAGS = @PKG_FRIBIDI_CFLAGS@ +PKG_FRIBIDI_LIBS = @PKG_FRIBIDI_LIBS@ +PKG_FTGL_CFLAGS = @PKG_FTGL_CFLAGS@ +PKG_FTGL_LIBS = @PKG_FTGL_LIBS@ +PKG_GLEW_CFLAGS = @PKG_GLEW_CFLAGS@ +PKG_GLEW_LIBS = @PKG_GLEW_LIBS@ +PKG_GMERLIN_AVDEC_CFLAGS = @PKG_GMERLIN_AVDEC_CFLAGS@ +PKG_GMERLIN_AVDEC_LIBS = @PKG_GMERLIN_AVDEC_LIBS@ +PKG_IMAGEMAGICK___CFLAGS = @PKG_IMAGEMAGICK___CFLAGS@ +PKG_IMAGEMAGICK___LIBS = @PKG_IMAGEMAGICK___LIBS@ +PKG_JPEG_CFLAGS = @PKG_JPEG_CFLAGS@ +PKG_JPEG_LIBS = @PKG_JPEG_LIBS@ +PKG_LIBDC1394_2_CFLAGS = @PKG_LIBDC1394_2_CFLAGS@ +PKG_LIBDC1394_2_LIBS = @PKG_LIBDC1394_2_LIBS@ +PKG_LIBDV_CFLAGS = @PKG_LIBDV_CFLAGS@ +PKG_LIBDV_LIBS = @PKG_LIBDV_LIBS@ +PKG_LIBIEC61883_CFLAGS = @PKG_LIBIEC61883_CFLAGS@ +PKG_LIBIEC61883_LIBS = @PKG_LIBIEC61883_LIBS@ +PKG_LIBMPEG3_CFLAGS = @PKG_LIBMPEG3_CFLAGS@ +PKG_LIBMPEG3_LIBS = @PKG_LIBMPEG3_LIBS@ +PKG_LIBQUICKTIME_CFLAGS = @PKG_LIBQUICKTIME_CFLAGS@ +PKG_LIBQUICKTIME_LIBS = @PKG_LIBQUICKTIME_LIBS@ +PKG_LIBRAW1394_CFLAGS = @PKG_LIBRAW1394_CFLAGS@ +PKG_LIBRAW1394_LIBS = @PKG_LIBRAW1394_LIBS@ +PKG_LIBS = @PKG_LIBS@ +PKG_LIBUNICAP_CFLAGS = @PKG_LIBUNICAP_CFLAGS@ +PKG_LIBUNICAP_LIBS = @PKG_LIBUNICAP_LIBS@ +PKG_LIBV4L1_CFLAGS = @PKG_LIBV4L1_CFLAGS@ +PKG_LIBV4L1_LIBS = @PKG_LIBV4L1_LIBS@ +PKG_LIBV4L2_CFLAGS = @PKG_LIBV4L2_CFLAGS@ +PKG_LIBV4L2_LIBS = @PKG_LIBV4L2_LIBS@ +PKG_LIBVLC_CFLAGS = @PKG_LIBVLC_CFLAGS@ +PKG_LIBVLC_LIBS = @PKG_LIBVLC_LIBS@ +PKG_LQT_CFLAGS = @PKG_LQT_CFLAGS@ +PKG_LQT_LIBS = @PKG_LQT_LIBS@ +PKG_MAGICKCORE_CFLAGS = @PKG_MAGICKCORE_CFLAGS@ +PKG_MAGICKCORE_LIBS = @PKG_MAGICKCORE_LIBS@ +PKG_MPEG_CFLAGS = @PKG_MPEG_CFLAGS@ +PKG_MPEG_LIBS = @PKG_MPEG_LIBS@ +PKG_SDL_CFLAGS = @PKG_SDL_CFLAGS@ +PKG_SDL_LIBS = @PKG_SDL_LIBS@ +PKG_TIFF_CFLAGS = @PKG_TIFF_CFLAGS@ +PKG_TIFF_LIBS = @PKG_TIFF_LIBS@ +PKG_VFW32_CFLAGS = @PKG_VFW32_CFLAGS@ +PKG_VFW32_LIBS = @PKG_VFW32_LIBS@ +PTHREAD_CC = @PTHREAD_CC@ +PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ +PTHREAD_LIBS = @PTHREAD_LIBS@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XMKMF = @XMKMF@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +ac_ct_OBJC = @ac_ct_OBJC@ +ac_ct_OBJCXX = @ac_ct_OBJCXX@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +ax_pthread_config = @ax_pthread_config@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +subdirs = @subdirs@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AUTOMAKE_OPTIONS = foreign +gemexamplesdir = $(pkglibdir)/examples +nobase_dist_gemexamples_DATA = \ + 01.basic/01.redSquare.pd \ + 01.basic/02.blueRectangle.pd \ + 01.basic/03.disk.pd \ + 01.basic/04.PrimTri.pd \ + 01.basic/05.cube.pd \ + 01.basic/06.sphere.pd \ + 01.basic/07.cylinder.pd \ + 01.basic/08.model.pd \ + 01.basic/09.yelloTeapot.pd \ + 02.advanced/00.gemwin-subpatch.pd \ + 02.advanced/01.Separator.pd \ + 02.advanced/02.Ortho.pd \ + 02.advanced/03.View_OSD.pd \ + 02.advanced/03.View.pd \ + 02.advanced/04.Fog.pd \ + 02.advanced/05.Stereo.pd \ + 02.advanced/06.StereoParticle.pd \ + 02.advanced/07.Snapshot1.pd \ + 02.advanced/08.Snapshot2.pd \ + 02.advanced/09.SnapshotSave.pd \ + 02.advanced/10.LinearPath.pd \ + 02.advanced/11.SplinePath.pd \ + 02.advanced/12.Hsv.pd \ + 02.advanced/13.ModelRescale.pd \ + 02.advanced/14.RenderOrder.pd \ + 02.advanced/15.GemWin.pd \ + 02.advanced/16.vertex_program.pd \ + 02.advanced/17.fragment_program.pd \ + 02.advanced/18.gl_shading_language.pd \ + 02.advanced/19.pointer.pd \ + 02.advanced/20.double-gemhead_vs_repeat.pd \ + 02.advanced/21.basic_LSystem.pd \ + 02.advanced/22.double-iterative.pd \ + 03.lighting/01.world_light.pd \ + 03.lighting/02.light.pd \ + 03.lighting/03.controlLights.pd \ + 03.lighting/04.moveSpheres.pd \ + 03.lighting/05.materials.pd \ + 04.pix/01.image.pd \ + 04.pix/02.multiimage.pd \ + 04.pix/04.ImageInPlace.pd \ + 04.pix/05.film.pd \ + 04.pix/05.movie.pd \ + 04.pix/06.PixRect.pd \ + 04.pix/07.PixSet.pd \ + 04.pix/08.PixDump.pd \ + 04.pix/09.Histogram.pd \ + 04.pix/10.PixDataSimple.pd \ + 04.pix/11.PixDataComplex.pd \ + 04.pix/12.add.pd \ + 04.pix/12.blending.pd \ + 04.pix/12.composite.pd \ + 04.pix/12.pix_multiply.pd \ + 04.pix/13.maskDancer.pd \ + 04.pix/14.takeAlpha.pd \ + 04.pix/15.pix_alpha.pd \ + 04.pix/16.alphaGrey.pd \ + 04.pix/16.pix_2grey.pd \ + 04.pix/17.pix_gain.pd \ + 04.pix/18.Curves.pd \ + 04.pix/19.colorMatrix.pd \ + 04.pix/20.convolve.pd \ + 04.pix/22.biquad.pd \ + 04.pix/23.gravity.pd \ + 04.pix/24.time-filtering.pd \ + 04.pix/25.buffer.pd \ + 04.pix/26.framebuffer_readback.pd \ + 04.video/00.SimpleVideo.pd \ + 04.video/01.VideoPaint.pd \ + 04.video/02.VideoSphere.pd \ + 04.video/03.movement_detection.pd \ + 04.video/04.videoRTX.pd \ + 04.video/05.buffer_rtx.pd \ + 04.video/06.frame_diff_tracking.pd \ + 04.video/07.bg_subtract_tracking.pd \ + 04.video/08.color_classification.pd \ + 05.text/01.TextNoLoadBang.pd \ + 05.text/01.Text.pd \ + 05.text/03.ChangeTextNoLoadBang.pd \ + 05.text/03.ChangeText.pd \ + 05.text/vera.ttf \ + 06.particle/01.simple.pd \ + 06.particle/02.fountain.pd \ + 06.particle/03.orbit.pd \ + 06.particle/04.combo.pd \ + 06.particle/05.twoSrc.pd \ + 06.particle/06.target.pd \ + 06.particle/07.render.pd \ + 06.particle/08.info.pd \ + 06.particle/09.sink.pd \ + 07.texture/01.texture.pd \ + 07.texture/02.TexCoord.pd \ + 07.texture/04.moveImages.pd \ + 07.texture/05.newWave.pd \ + 07.texture/06.ripple.pd \ + 07.texture/07.feedback.pd \ + 07.texture/08.MotionBlur.pd \ + 07.texture/09.sharedTextures.pd \ + 07.texture/10.framebuffer.pd \ + 07.texture/11.multiples_gemhead_in_a_framebuffer.pd \ + 08.io/01.Mouse.pd \ + 08.io/02.Tablet.pd \ + 08.io/03.Orb.pd \ + 08.io/04.UseOrb.pd \ + 09.openGL/01.primQuad.pd \ + 09.openGL/02.displayList.pd \ + 09.openGL/03.stencilBuffer.pd \ + 09.openGL/04.clearZ.pd \ + 09.openGL/05.load_identity_matrix.pd \ + 10.glsl/01.simple_texture.pd \ + 10.glsl/02.primitive_distortion.pd \ + 10.glsl/03.texture_distortion.pd \ + 10.glsl/04.game_of_life.pd \ + 10.glsl/05.multitexture.pd \ + 10.glsl/05.multitexture_bis.pd \ + 10.glsl/06.rectangle_multitexture.pd \ + 10.glsl/07.framebuffer_and_shader.pd \ + 10.glsl/08.multi_pass_rendering.pd \ + 10.glsl/09.vertex_texture_fetching.pd \ + 10.glsl/10.GPGPU_Physical_model.pd \ + 10.glsl/11.geometry.pd \ + 10.glsl/12.tri2fan.pd \ + 10.glsl/13.panoramique.pd \ + 10.glsl/14.blur.pd \ + 10.glsl/15.bicubic_image_interpolation.pd \ + 10.glsl/bicubic_interpolation.frag \ + 10.glsl/bicubic_interpolation.vert \ + 10.glsl/blur.frag \ + 10.glsl/blur.vert \ + 10.glsl/cam1.jpg \ + 10.glsl/cam2.jpg \ + 10.glsl/cam3.jpg \ + 10.glsl/cam4.jpg \ + 10.glsl/fetching2.frag \ + 10.glsl/fetching2.vert \ + 10.glsl/fetching.frag \ + 10.glsl/fetching.vert \ + 10.glsl/game.frag \ + 10.glsl/game.vert \ + 10.glsl/geo.frag \ + 10.glsl/geo.geom \ + 10.glsl/geo.vert \ + 10.glsl/_glsl.pd \ + 10.glsl/GLSL_mix.frag \ + 10.glsl/GLSL_mix.vert \ + 10.glsl/img1.jpg \ + 10.glsl/img2.jpg \ + 10.glsl/img3.jpg \ + 10.glsl/interpol.frag \ + 10.glsl/link.frag \ + 10.glsl/link.vert \ + 10.glsl/mass.frag \ + 10.glsl/mass.vert \ + 10.glsl/multitexture.frag \ + 10.glsl/multitexture_rect.frag \ + 10.glsl/multitexture_rect.vert \ + 10.glsl/multitexture.vert \ + 10.glsl/normal.frag \ + 10.glsl/normal.vert \ + 10.glsl/panoramique.frag \ + 10.glsl/panoramique.vert \ + 10.glsl/P_distord.frag \ + 10.glsl/P_distord.vert \ + 10.glsl/single_blur.pd \ + 10.glsl/T_distord.frag \ + 10.glsl/T_distord.vert \ + 10.glsl/texture.frag \ + 10.glsl/texture_rect.frag \ + 10.glsl/texture.vert \ + 10.glsl/tri2fan.frag \ + 10.glsl/tri2fan.geom \ + 10.glsl/tri2fan.vert \ + 10.glsl/vague.frag \ + 10.glsl/wave.frag \ + 11.obj-exporter/obj_cube.pd \ + 11.obj-exporter/obj_exporter-help.pd \ + 11.obj-exporter/obj_exporter.pd \ + 11.obj-exporter/obj_primTri.pd \ + 11.obj-exporter/obj_rectangle.pd \ + 11.obj-exporter/obj_square.pd \ + 12.multi_screen_projection/01.flat_projection-help.pd \ + 12.multi_screen_projection/02.nfp-help.pd \ + 12.multi_screen_projection/config.txt \ + 12.multi_screen_projection/flat_projection.pd \ + 12.multi_screen_projection/grid.jpg \ + 12.multi_screen_projection/load_save.pd \ + 12.multi_screen_projection/nfp_22.frag \ + 12.multi_screen_projection/nfp_22.vert \ + 12.multi_screen_projection/nfp_33.frag \ + 12.multi_screen_projection/nfp_33.vert \ + 12.multi_screen_projection/nfp_curved_wall.pd \ + 12.multi_screen_projection/nfp_flat_wall.pd \ + 12.multi_screen_projection/saved.pd \ + 12.multi_screen_projection/save_system-help.pd \ + 12.multi_screen_projection/soft_edge.frag \ + 13.recursion/01.repetition_is_futile.pd \ + 13.recursion/02.iteration_is_insufficient.pd \ + 13.recursion/03.recursive_spiral.pd \ + 13.recursion/04.binary_tree.pd \ + 13.recursion/05.n-ary_tree.pd \ + 13.recursion/06.breaking_symmetry.pd \ + 13.recursion/nnrepeat-help.pd \ + 13.recursion/nnrepeat.pd \ + 13.recursion/nnrepeat-test.pd \ + 13.recursion/nrepeat-help.pd \ + 13.recursion/nrepeat.pd \ + 13.recursion/nrepeat-test.pd \ + 13.recursion/README \ + 13.recursion/stack-help.pd \ + 13.recursion/stack.pd \ + 13.recursion/xform-gui.pd \ + 99.games/puzzle.pd \ + data/64shade.tif \ + data/alea.mpg \ + data/anim-1.mov \ + data/blob0.tif \ + data/blob1.tif \ + data/blob2.tif \ + data/COPYING.txt \ + data/dancer.JPG \ + data/ducks.png \ + data/fractalAlpha.TIF \ + data/fractal.JPG \ + data/homer.avi \ + data/random.fp \ + data/temp0.JPG \ + data/temp1.JPG \ + data/temp2.JPG \ + data/Toon.frag \ + data/Toon.vert \ + data/toon.vp \ + data/valcolor.tab \ + data/valmotion.tab \ + data/venus.mtl \ + data/venus.obj \ + data/vera.ttf + +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign examples/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign examples/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-nobase_dist_gemexamplesDATA: $(nobase_dist_gemexamples_DATA) + @$(NORMAL_INSTALL) + @list='$(nobase_dist_gemexamples_DATA)'; test -n "$(gemexamplesdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(gemexamplesdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(gemexamplesdir)" || exit 1; \ + fi; \ + $(am__nobase_list) | while read dir files; do \ + xfiles=; for file in $$files; do \ + if test -f "$$file"; then xfiles="$$xfiles $$file"; \ + else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \ + test -z "$$xfiles" || { \ + test "x$$dir" = x. || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(gemexamplesdir)/$$dir'"; \ + $(MKDIR_P) "$(DESTDIR)$(gemexamplesdir)/$$dir"; }; \ + echo " $(INSTALL_DATA) $$xfiles '$(DESTDIR)$(gemexamplesdir)/$$dir'"; \ + $(INSTALL_DATA) $$xfiles "$(DESTDIR)$(gemexamplesdir)/$$dir" || exit $$?; }; \ + done + +uninstall-nobase_dist_gemexamplesDATA: + @$(NORMAL_UNINSTALL) + @list='$(nobase_dist_gemexamples_DATA)'; test -n "$(gemexamplesdir)" || list=; \ + $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \ + dir='$(DESTDIR)$(gemexamplesdir)'; $(am__uninstall_files_from_dir) +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(gemexamplesdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-nobase_dist_gemexamplesDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-nobase_dist_gemexamplesDATA + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man \ + install-nobase_dist_gemexamplesDATA install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ + uninstall-nobase_dist_gemexamplesDATA + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/Gem/examples/data/64shade.tif b/src/Gem/examples/data/64shade.tif similarity index 100% rename from Gem/examples/data/64shade.tif rename to src/Gem/examples/data/64shade.tif diff --git a/Gem/examples/data/COPYING.txt b/src/Gem/examples/data/COPYING.txt similarity index 100% rename from Gem/examples/data/COPYING.txt rename to src/Gem/examples/data/COPYING.txt diff --git a/Gem/examples/data/Toon.frag b/src/Gem/examples/data/Toon.frag similarity index 100% rename from Gem/examples/data/Toon.frag rename to src/Gem/examples/data/Toon.frag diff --git a/Gem/examples/data/Toon.vert b/src/Gem/examples/data/Toon.vert similarity index 100% rename from Gem/examples/data/Toon.vert rename to src/Gem/examples/data/Toon.vert diff --git a/Gem/examples/data/alea.mpg b/src/Gem/examples/data/alea.mpg similarity index 100% rename from Gem/examples/data/alea.mpg rename to src/Gem/examples/data/alea.mpg diff --git a/Gem/examples/data/anim-1.mov b/src/Gem/examples/data/anim-1.mov similarity index 100% rename from Gem/examples/data/anim-1.mov rename to src/Gem/examples/data/anim-1.mov diff --git a/Gem/examples/data/bitmap_font_6x8.bmp b/src/Gem/examples/data/bitmap_font_6x8.bmp similarity index 100% rename from Gem/examples/data/bitmap_font_6x8.bmp rename to src/Gem/examples/data/bitmap_font_6x8.bmp diff --git a/Gem/examples/data/blob0.tif b/src/Gem/examples/data/blob0.tif similarity index 100% rename from Gem/examples/data/blob0.tif rename to src/Gem/examples/data/blob0.tif diff --git a/Gem/examples/data/blob1.tif b/src/Gem/examples/data/blob1.tif similarity index 100% rename from Gem/examples/data/blob1.tif rename to src/Gem/examples/data/blob1.tif diff --git a/Gem/examples/data/blob2.tif b/src/Gem/examples/data/blob2.tif similarity index 100% rename from Gem/examples/data/blob2.tif rename to src/Gem/examples/data/blob2.tif diff --git a/Gem/examples/data/dancer.JPG b/src/Gem/examples/data/dancer.JPG similarity index 100% rename from Gem/examples/data/dancer.JPG rename to src/Gem/examples/data/dancer.JPG diff --git a/Gem/examples/data/ducks.png b/src/Gem/examples/data/ducks.png similarity index 100% rename from Gem/examples/data/ducks.png rename to src/Gem/examples/data/ducks.png diff --git a/Gem/examples/data/fractal.JPG b/src/Gem/examples/data/fractal.JPG similarity index 100% rename from Gem/examples/data/fractal.JPG rename to src/Gem/examples/data/fractal.JPG diff --git a/Gem/examples/data/fractalAlpha.TIF b/src/Gem/examples/data/fractalAlpha.TIF similarity index 100% rename from Gem/examples/data/fractalAlpha.TIF rename to src/Gem/examples/data/fractalAlpha.TIF diff --git a/Gem/examples/data/homer.avi b/src/Gem/examples/data/homer.avi similarity index 100% rename from Gem/examples/data/homer.avi rename to src/Gem/examples/data/homer.avi diff --git a/Gem/examples/data/random.fp b/src/Gem/examples/data/random.fp similarity index 100% rename from Gem/examples/data/random.fp rename to src/Gem/examples/data/random.fp diff --git a/Gem/examples/data/temp0.JPG b/src/Gem/examples/data/temp0.JPG similarity index 100% rename from Gem/examples/data/temp0.JPG rename to src/Gem/examples/data/temp0.JPG diff --git a/Gem/examples/data/temp1.JPG b/src/Gem/examples/data/temp1.JPG similarity index 100% rename from Gem/examples/data/temp1.JPG rename to src/Gem/examples/data/temp1.JPG diff --git a/Gem/examples/data/temp2.JPG b/src/Gem/examples/data/temp2.JPG similarity index 100% rename from Gem/examples/data/temp2.JPG rename to src/Gem/examples/data/temp2.JPG diff --git a/Gem/examples/data/toon.vp b/src/Gem/examples/data/toon.vp similarity index 100% rename from Gem/examples/data/toon.vp rename to src/Gem/examples/data/toon.vp diff --git a/Gem/examples/data/valcolor.tab b/src/Gem/examples/data/valcolor.tab similarity index 100% rename from Gem/examples/data/valcolor.tab rename to src/Gem/examples/data/valcolor.tab diff --git a/Gem/examples/data/valmotion.tab b/src/Gem/examples/data/valmotion.tab similarity index 100% rename from Gem/examples/data/valmotion.tab rename to src/Gem/examples/data/valmotion.tab diff --git a/Gem/examples/data/venus.mtl b/src/Gem/examples/data/venus.mtl similarity index 100% rename from Gem/examples/data/venus.mtl rename to src/Gem/examples/data/venus.mtl diff --git a/Gem/examples/data/venus.obj b/src/Gem/examples/data/venus.obj similarity index 100% rename from Gem/examples/data/venus.obj rename to src/Gem/examples/data/venus.obj diff --git a/Gem/examples/data/vera.ttf b/src/Gem/examples/data/vera.ttf similarity index 100% rename from Gem/examples/data/vera.ttf rename to src/Gem/examples/data/vera.ttf diff --git a/Gem/extra/Makefile.am b/src/Gem/extra/Makefile.am similarity index 100% rename from Gem/extra/Makefile.am rename to src/Gem/extra/Makefile.am diff --git a/src/Gem/extra/Makefile.in b/src/Gem/extra/Makefile.in new file mode 100644 index 0000000..7e81724 --- /dev/null +++ b/src/Gem/extra/Makefile.in @@ -0,0 +1,702 @@ +# Makefile.in generated by automake 1.11.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +subdir = . +DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(top_srcdir)/configure install-sh \ + missing +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir dist dist-all distcheck +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + if test -d "$(distdir)"; then \ + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -rf "$(distdir)" \ + || { sleep 5 && rm -rf "$(distdir)"; }; \ + else :; fi +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EXEEXT = @EXEEXT@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CXX = @ac_ct_CXX@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build_alias = @build_alias@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host_alias = @host_alias@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +subdirs = @subdirs@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AUTOMAKE_OPTIONS = foreign +AM_CPPFLAGS = -I$(top_srcdir)/src +ACLOCAL_AMFLAGS = -I ../m4 +SUBDIRS = pix2jpg +EXTRA_DIST = \ + README-EXTRA.txt + +all: all-recursive + +.SUFFIXES: +am--refresh: Makefile + @: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-lzip: distdir + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz + $(am__remove_distdir) + +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.lz*) \ + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod u+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @test -n '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: trying to run $@ with an empty' \ + '$$(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + $(am__cd) '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ + install-am install-strip tags-recursive + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am am--refresh check check-am clean clean-generic \ + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ + dist-lzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ + distcheck distclean distclean-generic distclean-tags \ + distcleancheck distdir distuninstallcheck dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am tags tags-recursive uninstall uninstall-am + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/Gem/extra/README-EXTRA.txt b/src/Gem/extra/README-EXTRA.txt similarity index 100% rename from Gem/extra/README-EXTRA.txt rename to src/Gem/extra/README-EXTRA.txt diff --git a/src/Gem/extra/aclocal.m4 b/src/Gem/extra/aclocal.m4 new file mode 100644 index 0000000..3094178 --- /dev/null +++ b/src/Gem/extra/aclocal.m4 @@ -0,0 +1,971 @@ +# generated automatically by aclocal 1.11.6 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, +# Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, +[m4_warning([this file was generated for autoconf 2.69. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically `autoreconf'.])]) + +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software +# Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.11' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.11.6], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.11.6])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 9 + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, +# 2010, 2011 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 12 + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], UPC, [depcc="$UPC" am_compiler_list=], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +#serial 5 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 16 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.62])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl +]) + +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, +# Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST(install_sh)]) + +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 6 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, +# Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_PROG_MKDIR_P +# --------------- +# Check for `mkdir -p'. +AC_DEFUN([AM_PROG_MKDIR_P], +[AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software +# Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# -------------------- +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ------------------------ +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# AM_SUBST_NOTMAKE(VARIABLE) +# -------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of `v7', `ustar', or `pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + diff --git a/src/Gem/extra/autom4te.cache/output.0 b/src/Gem/extra/autom4te.cache/output.0 new file mode 100644 index 0000000..269665e --- /dev/null +++ b/src/Gem/extra/autom4te.cache/output.0 @@ -0,0 +1,4465 @@ +@%:@! /bin/sh +@%:@ Guess values for system-dependent variables and create Makefiles. +@%:@ Generated by GNU Autoconf 2.69 for Gem-extras 0.1. +@%:@ +@%:@ Report bugs to . +@%:@ +@%:@ +@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +@%:@ +@%:@ +@%:@ This configure script is free software; the Free Software Foundation +@%:@ gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in @%:@( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and zmoelnig@iem.at +$0: about your system, including any error possibly output +$0: before this message. Then install a modern shell, or +$0: manually run the script under such a shell if you do +$0: have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIB@&t@OBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='Gem-extras' +PACKAGE_TARNAME='gem-extras' +PACKAGE_VERSION='0.1' +PACKAGE_STRING='Gem-extras 0.1' +PACKAGE_BUGREPORT='zmoelnig@iem.at' +PACKAGE_URL='' + +ac_unique_file="README-EXTRA.txt" +enable_option_checking=no +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIB@&t@OBJS +subdirs +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CXX +CPPFLAGS +LDFLAGS +CXXFLAGS +CXX +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_dependency_tracking +' + ac_precious_vars='build_alias +host_alias +target_alias +CXX +CXXFLAGS +LDFLAGS +LIBS +CPPFLAGS +CCC' +ac_subdirs_all='pix_artoolkit' + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures Gem-extras 0.1 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + @<:@@S|@ac_default_prefix@:>@ + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + @<:@PREFIX@:>@ + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root @<:@DATAROOTDIR/doc/gem-extras@:>@ + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of Gem-extras 0.1:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + +Some influential environment variables: + CXX C++ compiler command + CXXFLAGS C++ compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +Gem-extras configure 0.1 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +@%:@ ac_fn_cxx_try_compile LINENO +@%:@ ---------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_compile +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by Gem-extras $as_me 0.1, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in @%:@(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +am__api_version='1.11' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in @%:@(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='gem-extras' + VERSION='0.1' + + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + + + + + +ac_config_files="$ac_config_files Makefile" + + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 +$as_echo_n "checking whether the C++ compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C++ compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 +$as_echo_n "checking for C++ compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C++ compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +@%:@ Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CXX_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + + + +## pix_artoolkit +if test -d "$srcdir/pix_artoolkit"; then + + +subdirs="$subdirs pix_artoolkit" + +fi + +## pix_drum (Jaime Oliver) +#if test -d "$srcdir/pix_drum"; then +# AC_CONFIG_SUBDIRS([pix_drum]) +#fi + +## pix_mano (Jaime Oliver) +#if test -d "$srcdir/pix_mano"; then +# AC_CONFIG_SUBDIRS([pix_mano]) +#fi + +## pix_hit (Davide Morelli) +#if test -d "$srcdir/pix_hit"; then +# AC_CONFIG_SUBDIRS([pix_hit]) +#fi + +### pix_opencv (Yves Degoyon & Lluis Gomez i Bigorda) +#if test -d "$srcdir/pix_opencv"; then +# AC_CONFIG_SUBDIRS([pix_opencv]) +#fi + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +# +# If the first sed substitution is executed (which looks for macros that +# take arguments), then branch to the quote section. Otherwise, +# look for a macro that doesn't take arguments. +ac_script=' +:mline +/\\$/{ + N + s,\\\n,, + b mline +} +t clear +:clear +s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g +t quote +s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g +t quote +b any +:quote +s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g +s/\[/\\&/g +s/\]/\\&/g +s/\$/$$/g +H +:any +${ + g + s/^\n// + s/\n/ /g + p +} +' +DEFS=`sed -n "$ac_script" confdefs.h` + + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIB@&t@OBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by Gem-extras $as_me 0.1, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + +Configuration files: +$config_files + +Configuration commands: +$config_commands + +Report bugs to ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +Gem-extras config.status 0.1 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h | --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX +@%:@@%:@ Running $as_me. @%:@@%:@ +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + + +eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi + +# +# CONFIG_SUBDIRS section. +# +if test "$no_recursion" != yes; then + + # Remove --cache-file, --srcdir, and --disable-option-checking arguments + # so they do not pile up. + ac_sub_configure_args= + ac_prev= + eval "set x $ac_configure_args" + shift + for ac_arg + do + if test -n "$ac_prev"; then + ac_prev= + continue + fi + case $ac_arg in + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ + | --c=*) + ;; + --config-cache | -C) + ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + ;; + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + ;; + --disable-option-checking) + ;; + *) + case $ac_arg in + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append ac_sub_configure_args " '$ac_arg'" ;; + esac + done + + # Always prepend --prefix to ensure using the same prefix + # in subdir configurations. + ac_arg="--prefix=$prefix" + case $ac_arg in + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" + + # Pass --silent + if test "$silent" = yes; then + ac_sub_configure_args="--silent $ac_sub_configure_args" + fi + + # Always prepend --disable-option-checking to silence warnings, since + # different subdirs can have different --enable and --with options. + ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" + + ac_popdir=`pwd` + for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue + + # Do not complain, so a configure script can configure whichever + # parts of a large source tree are present. + test -d "$srcdir/$ac_dir" || continue + + ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" + $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 + $as_echo "$ac_msg" >&6 + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + cd "$ac_dir" + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f "$ac_srcdir/configure.gnu"; then + ac_sub_configure=$ac_srcdir/configure.gnu + elif test -f "$ac_srcdir/configure"; then + ac_sub_configure=$ac_srcdir/configure + elif test -f "$ac_srcdir/configure.in"; then + # This should be Cygnus configure. + ac_sub_configure=$ac_aux_dir/configure + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 +$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} + ac_sub_configure= + fi + + # The recursion is here. + if test -n "$ac_sub_configure"; then + # Make the cache file name correct relative to the subdirectory. + case $cache_file in + [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; + *) # Relative name. + ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} + # The eval makes quoting arguments work. + eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ + --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || + as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 + fi + + cd "$ac_popdir" + done +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + diff --git a/src/Gem/extra/autom4te.cache/output.1 b/src/Gem/extra/autom4te.cache/output.1 new file mode 100644 index 0000000..269665e --- /dev/null +++ b/src/Gem/extra/autom4te.cache/output.1 @@ -0,0 +1,4465 @@ +@%:@! /bin/sh +@%:@ Guess values for system-dependent variables and create Makefiles. +@%:@ Generated by GNU Autoconf 2.69 for Gem-extras 0.1. +@%:@ +@%:@ Report bugs to . +@%:@ +@%:@ +@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +@%:@ +@%:@ +@%:@ This configure script is free software; the Free Software Foundation +@%:@ gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in @%:@( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and zmoelnig@iem.at +$0: about your system, including any error possibly output +$0: before this message. Then install a modern shell, or +$0: manually run the script under such a shell if you do +$0: have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIB@&t@OBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='Gem-extras' +PACKAGE_TARNAME='gem-extras' +PACKAGE_VERSION='0.1' +PACKAGE_STRING='Gem-extras 0.1' +PACKAGE_BUGREPORT='zmoelnig@iem.at' +PACKAGE_URL='' + +ac_unique_file="README-EXTRA.txt" +enable_option_checking=no +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIB@&t@OBJS +subdirs +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CXX +CPPFLAGS +LDFLAGS +CXXFLAGS +CXX +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_dependency_tracking +' + ac_precious_vars='build_alias +host_alias +target_alias +CXX +CXXFLAGS +LDFLAGS +LIBS +CPPFLAGS +CCC' +ac_subdirs_all='pix_artoolkit' + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures Gem-extras 0.1 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + @<:@@S|@ac_default_prefix@:>@ + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + @<:@PREFIX@:>@ + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root @<:@DATAROOTDIR/doc/gem-extras@:>@ + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of Gem-extras 0.1:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + +Some influential environment variables: + CXX C++ compiler command + CXXFLAGS C++ compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +Gem-extras configure 0.1 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +@%:@ ac_fn_cxx_try_compile LINENO +@%:@ ---------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_compile +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by Gem-extras $as_me 0.1, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in @%:@(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +am__api_version='1.11' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in @%:@(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='gem-extras' + VERSION='0.1' + + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + + + + + +ac_config_files="$ac_config_files Makefile" + + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 +$as_echo_n "checking whether the C++ compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C++ compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 +$as_echo_n "checking for C++ compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C++ compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +@%:@ Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CXX_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + + + +## pix_artoolkit +if test -d "$srcdir/pix_artoolkit"; then + + +subdirs="$subdirs pix_artoolkit" + +fi + +## pix_drum (Jaime Oliver) +#if test -d "$srcdir/pix_drum"; then +# AC_CONFIG_SUBDIRS([pix_drum]) +#fi + +## pix_mano (Jaime Oliver) +#if test -d "$srcdir/pix_mano"; then +# AC_CONFIG_SUBDIRS([pix_mano]) +#fi + +## pix_hit (Davide Morelli) +#if test -d "$srcdir/pix_hit"; then +# AC_CONFIG_SUBDIRS([pix_hit]) +#fi + +### pix_opencv (Yves Degoyon & Lluis Gomez i Bigorda) +#if test -d "$srcdir/pix_opencv"; then +# AC_CONFIG_SUBDIRS([pix_opencv]) +#fi + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +# +# If the first sed substitution is executed (which looks for macros that +# take arguments), then branch to the quote section. Otherwise, +# look for a macro that doesn't take arguments. +ac_script=' +:mline +/\\$/{ + N + s,\\\n,, + b mline +} +t clear +:clear +s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g +t quote +s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g +t quote +b any +:quote +s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g +s/\[/\\&/g +s/\]/\\&/g +s/\$/$$/g +H +:any +${ + g + s/^\n// + s/\n/ /g + p +} +' +DEFS=`sed -n "$ac_script" confdefs.h` + + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIB@&t@OBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by Gem-extras $as_me 0.1, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + +Configuration files: +$config_files + +Configuration commands: +$config_commands + +Report bugs to ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +Gem-extras config.status 0.1 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h | --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX +@%:@@%:@ Running $as_me. @%:@@%:@ +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + + +eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi + +# +# CONFIG_SUBDIRS section. +# +if test "$no_recursion" != yes; then + + # Remove --cache-file, --srcdir, and --disable-option-checking arguments + # so they do not pile up. + ac_sub_configure_args= + ac_prev= + eval "set x $ac_configure_args" + shift + for ac_arg + do + if test -n "$ac_prev"; then + ac_prev= + continue + fi + case $ac_arg in + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ + | --c=*) + ;; + --config-cache | -C) + ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + ;; + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + ;; + --disable-option-checking) + ;; + *) + case $ac_arg in + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append ac_sub_configure_args " '$ac_arg'" ;; + esac + done + + # Always prepend --prefix to ensure using the same prefix + # in subdir configurations. + ac_arg="--prefix=$prefix" + case $ac_arg in + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" + + # Pass --silent + if test "$silent" = yes; then + ac_sub_configure_args="--silent $ac_sub_configure_args" + fi + + # Always prepend --disable-option-checking to silence warnings, since + # different subdirs can have different --enable and --with options. + ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" + + ac_popdir=`pwd` + for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue + + # Do not complain, so a configure script can configure whichever + # parts of a large source tree are present. + test -d "$srcdir/$ac_dir" || continue + + ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" + $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 + $as_echo "$ac_msg" >&6 + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + cd "$ac_dir" + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f "$ac_srcdir/configure.gnu"; then + ac_sub_configure=$ac_srcdir/configure.gnu + elif test -f "$ac_srcdir/configure"; then + ac_sub_configure=$ac_srcdir/configure + elif test -f "$ac_srcdir/configure.in"; then + # This should be Cygnus configure. + ac_sub_configure=$ac_aux_dir/configure + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 +$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} + ac_sub_configure= + fi + + # The recursion is here. + if test -n "$ac_sub_configure"; then + # Make the cache file name correct relative to the subdirectory. + case $cache_file in + [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; + *) # Relative name. + ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} + # The eval makes quoting arguments work. + eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ + --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || + as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 + fi + + cd "$ac_popdir" + done +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + diff --git a/src/Gem/extra/autom4te.cache/requests b/src/Gem/extra/autom4te.cache/requests new file mode 100644 index 0000000..68effa9 --- /dev/null +++ b/src/Gem/extra/autom4te.cache/requests @@ -0,0 +1,146 @@ +# This file was generated by Autom4te Sun Apr 29 21:48:16 UTC 2012. +# It contains the lists of macros which have been traced. +# It can be safely removed. + +@request = ( + bless( [ + '0', + 1, + [ + '/usr/share/autoconf' + ], + [ + '/usr/share/autoconf/autoconf/autoconf.m4f', + '/usr/share/aclocal-1.11/amversion.m4', + '/usr/share/aclocal-1.11/auxdir.m4', + '/usr/share/aclocal-1.11/cond.m4', + '/usr/share/aclocal-1.11/depend.m4', + '/usr/share/aclocal-1.11/depout.m4', + '/usr/share/aclocal-1.11/init.m4', + '/usr/share/aclocal-1.11/install-sh.m4', + '/usr/share/aclocal-1.11/lead-dot.m4', + '/usr/share/aclocal-1.11/make.m4', + '/usr/share/aclocal-1.11/missing.m4', + '/usr/share/aclocal-1.11/mkdirp.m4', + '/usr/share/aclocal-1.11/options.m4', + '/usr/share/aclocal-1.11/runlog.m4', + '/usr/share/aclocal-1.11/sanity.m4', + '/usr/share/aclocal-1.11/silent.m4', + '/usr/share/aclocal-1.11/strip.m4', + '/usr/share/aclocal-1.11/substnot.m4', + '/usr/share/aclocal-1.11/tar.m4', + 'configure.ac' + ], + { + 'm4_pattern_forbid' => 1, + 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, + '_AM_SET_OPTION' => 1, + 'AC_DEFUN' => 1, + 'AM_PROG_MKDIR_P' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'AM_MISSING_HAS_RUN' => 1, + 'AM_SUBST_NOTMAKE' => 1, + 'AM_MISSING_PROG' => 1, + 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'AC_DEFUN_ONCE' => 1, + 'AM_PROG_INSTALL_STRIP' => 1, + '_m4_warn' => 1, + 'AM_SANITY_CHECK' => 1, + 'AM_SILENT_RULES' => 1, + 'include' => 1, + '_AM_PROG_TAR' => 1, + 'AM_AUX_DIR_EXPAND' => 1, + 'AM_DEP_TRACK' => 1, + '_AM_SET_OPTIONS' => 1, + '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'AM_RUN_LOG' => 1, + '_AM_IF_OPTION' => 1, + '_AM_SUBST_NOTMAKE' => 1, + 'm4_pattern_allow' => 1, + '_AM_AUTOCONF_VERSION' => 1, + '_AM_MANGLE_OPTION' => 1, + 'AM_CONDITIONAL' => 1, + 'AM_SET_LEADING_DOT' => 1, + 'AM_SET_DEPDIR' => 1, + '_AM_DEPENDENCIES' => 1, + 'AM_PROG_INSTALL_SH' => 1, + 'm4_include' => 1, + '_AC_AM_CONFIG_HEADER_HOOK' => 1, + 'AU_DEFUN' => 1, + 'AM_MAKE_INCLUDE' => 1 + } + ], 'Autom4te::Request' ), + bless( [ + '1', + 1, + [ + '/usr/share/autoconf' + ], + [ + '/usr/share/autoconf/autoconf/autoconf.m4f', + 'aclocal.m4', + 'configure.ac' + ], + { + '_LT_AC_TAGCONFIG' => 1, + 'AM_PROG_F77_C_O' => 1, + 'm4_pattern_forbid' => 1, + 'AC_INIT' => 1, + '_AM_COND_IF' => 1, + 'AC_CANONICAL_TARGET' => 1, + 'AC_SUBST' => 1, + 'AC_CONFIG_LIBOBJ_DIR' => 1, + 'AC_FC_SRCEXT' => 1, + 'AC_CANONICAL_HOST' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AM_PATH_GUILE' => 1, + 'AC_CONFIG_SUBDIRS' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'AC_REQUIRE_AUX_FILE' => 1, + 'AC_CONFIG_LINKS' => 1, + 'm4_sinclude' => 1, + 'LT_SUPPORTED_TAG' => 1, + 'AM_MAINTAINER_MODE' => 1, + 'AM_NLS' => 1, + 'AC_FC_PP_DEFINE' => 1, + 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + 'AM_MAKEFILE_INCLUDE' => 1, + '_m4_warn' => 1, + 'AM_PROG_CXX_C_O' => 1, + '_AM_COND_ENDIF' => 1, + '_AM_MAKEFILE_INCLUDE' => 1, + 'AM_ENABLE_MULTILIB' => 1, + 'AM_SILENT_RULES' => 1, + 'AM_PROG_MOC' => 1, + 'AC_CONFIG_FILES' => 1, + 'LT_INIT' => 1, + 'include' => 1, + 'AM_PROG_AR' => 1, + 'AM_GNU_GETTEXT' => 1, + 'AC_LIBSOURCE' => 1, + 'AM_PROG_FC_C_O' => 1, + 'AC_CANONICAL_BUILD' => 1, + 'AC_FC_FREEFORM' => 1, + 'AH_OUTPUT' => 1, + 'AC_FC_PP_SRCEXT' => 1, + '_AM_SUBST_NOTMAKE' => 1, + 'AC_CONFIG_AUX_DIR' => 1, + 'sinclude' => 1, + 'AM_PROG_CC_C_O' => 1, + 'm4_pattern_allow' => 1, + 'AM_XGETTEXT_OPTION' => 1, + 'AC_CANONICAL_SYSTEM' => 1, + 'AM_CONDITIONAL' => 1, + 'AC_CONFIG_HEADERS' => 1, + 'AC_DEFINE_TRACE_LITERAL' => 1, + 'AM_POT_TOOLS' => 1, + 'm4_include' => 1, + '_AM_COND_ELSE' => 1, + 'AC_SUBST_TRACE' => 1 + } + ], 'Autom4te::Request' ) + ); + diff --git a/src/Gem/extra/autom4te.cache/traces.0 b/src/Gem/extra/autom4te.cache/traces.0 new file mode 100644 index 0000000..c45b803 --- /dev/null +++ b/src/Gem/extra/autom4te.cache/traces.0 @@ -0,0 +1,779 @@ +m4trace:/usr/share/aclocal-1.11/amversion.m4:17: -1- AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.11.6], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) +m4trace:/usr/share/aclocal-1.11/amversion.m4:36: -1- AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11.6])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) +m4trace:/usr/share/aclocal-1.11/auxdir.m4:49: -1- AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) +m4trace:/usr/share/aclocal-1.11/cond.m4:15: -1- AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) +m4trace:/usr/share/aclocal-1.11/depend.m4:28: -1- AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], UPC, [depcc="$UPC" am_compiler_list=], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) +m4trace:/usr/share/aclocal-1.11/depend.m4:164: -1- AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) +m4trace:/usr/share/aclocal-1.11/depend.m4:172: -1- AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl +]) +m4trace:/usr/share/aclocal-1.11/depout.m4:14: -1- AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +]) +m4trace:/usr/share/aclocal-1.11/depout.m4:75: -1- AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) +m4trace:/usr/share/aclocal-1.11/init.m4:26: -1- AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl +]) +m4trace:/usr/share/aclocal-1.11/init.m4:126: -1- AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) +m4trace:/usr/share/aclocal-1.11/install-sh.m4:14: -1- AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST(install_sh)]) +m4trace:/usr/share/aclocal-1.11/lead-dot.m4:12: -1- AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) +m4trace:/usr/share/aclocal-1.11/make.m4:14: -1- AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) +m4trace:/usr/share/aclocal-1.11/missing.m4:14: -1- AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) +m4trace:/usr/share/aclocal-1.11/missing.m4:24: -1- AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) +m4trace:/usr/share/aclocal-1.11/mkdirp.m4:14: -1- AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) +m4trace:/usr/share/aclocal-1.11/options.m4:14: -1- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) +m4trace:/usr/share/aclocal-1.11/options.m4:20: -1- AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) +m4trace:/usr/share/aclocal-1.11/options.m4:26: -1- AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) +m4trace:/usr/share/aclocal-1.11/options.m4:32: -1- AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) +m4trace:/usr/share/aclocal-1.11/runlog.m4:14: -1- AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + (exit $ac_status); }]) +m4trace:/usr/share/aclocal-1.11/sanity.m4:14: -1- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) +m4trace:/usr/share/aclocal-1.11/silent.m4:14: -1- AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], +[ --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0')]) +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +dnl +dnl A few `make' implementations (e.g., NonStop OS and NextStep) +dnl do not support nested variable expansions. +dnl See automake bug#9928 and bug#10237. +am_make=${MAKE-make} +AC_CACHE_CHECK([whether $am_make supports nested variables], + [am_cv_make_support_nested_variables], + [if AS_ECHO([['TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi]) +if test $am_cv_make_support_nested_variables = yes; then + dnl Using `$V' instead of `$(V)' breaks IRIX make. + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AC_SUBST([AM_V])dnl +AM_SUBST_NOTMAKE([AM_V])dnl +AC_SUBST([AM_DEFAULT_V])dnl +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) +m4trace:/usr/share/aclocal-1.11/strip.m4:19: -1- AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) +m4trace:/usr/share/aclocal-1.11/substnot.m4:14: -1- AC_DEFUN([_AM_SUBST_NOTMAKE]) +m4trace:/usr/share/aclocal-1.11/substnot.m4:19: -1- AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) +m4trace:/usr/share/aclocal-1.11/tar.m4:24: -1- AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([^_?A[CHUM]_]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([_AC_]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) +m4trace:configure.ac:6: -1- m4_pattern_allow([^AS_FLAGS$]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([^_?m4_]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([^dnl$]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([^_?AS_]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^SHELL$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PATH_SEPARATOR$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^exec_prefix$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^prefix$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^program_transform_name$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^bindir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^sbindir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^libexecdir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^datarootdir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^datadir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^sysconfdir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^sharedstatedir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^localstatedir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^includedir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^oldincludedir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^docdir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^infodir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^htmldir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^dvidir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^pdfdir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^psdir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^libdir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^localedir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^mandir$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^DEFS$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^ECHO_C$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^ECHO_N$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^ECHO_T$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^build_alias$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^host_alias$]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^target_alias$]) +m4trace:configure.ac:7: -1- AM_INIT_AUTOMAKE([1.10 foreign]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) +m4trace:configure.ac:7: -1- AM_SET_CURRENT_AUTOMAKE_VERSION +m4trace:configure.ac:7: -1- AM_AUTOMAKE_VERSION([1.11.6]) +m4trace:configure.ac:7: -1- _AM_AUTOCONF_VERSION([2.69]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_DATA$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__isrc$]) +m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([am__isrc]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^CYGPATH_W$]) +m4trace:configure.ac:7: -1- _AM_SET_OPTIONS([1.10 foreign]) +m4trace:configure.ac:7: -1- _AM_SET_OPTION([1.10]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([1.10]) +m4trace:configure.ac:7: -1- _AM_SET_OPTION([foreign]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([foreign]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:7: -1- _AM_IF_OPTION([no-define], [], [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([no-define]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:7: -1- AM_SANITY_CHECK +m4trace:configure.ac:7: -1- AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +m4trace:configure.ac:7: -1- AM_MISSING_HAS_RUN +m4trace:configure.ac:7: -1- AM_AUX_DIR_EXPAND +m4trace:configure.ac:7: -1- m4_pattern_allow([^ACLOCAL$]) +m4trace:configure.ac:7: -1- AM_MISSING_PROG([AUTOCONF], [autoconf]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOCONF$]) +m4trace:configure.ac:7: -1- AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOMAKE$]) +m4trace:configure.ac:7: -1- AM_MISSING_PROG([AUTOHEADER], [autoheader]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOHEADER$]) +m4trace:configure.ac:7: -1- AM_MISSING_PROG([MAKEINFO], [makeinfo]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^MAKEINFO$]) +m4trace:configure.ac:7: -1- AM_PROG_INSTALL_SH +m4trace:configure.ac:7: -1- m4_pattern_allow([^install_sh$]) +m4trace:configure.ac:7: -1- AM_PROG_INSTALL_STRIP +m4trace:configure.ac:7: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) +m4trace:configure.ac:7: -1- AM_PROG_MKDIR_P +m4trace:configure.ac:7: -1- m4_pattern_allow([^MKDIR_P$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^mkdir_p$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^SET_MAKE$]) +m4trace:configure.ac:7: -1- AM_SET_LEADING_DOT +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__leading_dot$]) +m4trace:configure.ac:7: -1- _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([tar-ustar]) +m4trace:configure.ac:7: -1- _AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([tar-pax]) +m4trace:configure.ac:7: -1- _AM_PROG_TAR([v7]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AMTAR$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__tar$]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__untar$]) +m4trace:configure.ac:7: -1- _AM_IF_OPTION([no-dependencies], [], [AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([no-dependencies]) +m4trace:configure.ac:7: -1- _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])]) +m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([silent-rules]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^CXXFLAGS$]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^ac_ct_CXX$]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^EXEEXT$]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^OBJEXT$]) +m4trace:configure.ac:14: -1- _AM_DEPENDENCIES([CXX]) +m4trace:configure.ac:14: -1- AM_SET_DEPDIR +m4trace:configure.ac:14: -1- m4_pattern_allow([^DEPDIR$]) +m4trace:configure.ac:14: -1- AM_OUTPUT_DEPENDENCY_COMMANDS +m4trace:configure.ac:14: -1- AM_MAKE_INCLUDE +m4trace:configure.ac:14: -1- m4_pattern_allow([^am__include$]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^am__quote$]) +m4trace:configure.ac:14: -1- AM_DEP_TRACK +m4trace:configure.ac:14: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^AMDEP_TRUE$]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^AMDEP_FALSE$]) +m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) +m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) +m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^am__nodep$]) +m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([am__nodep]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^CXXDEPMODE$]) +m4trace:configure.ac:14: -1- AM_CONDITIONAL([am__fastdepCXX], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) +m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:19: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:42: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:42: -1- m4_pattern_allow([^LTLIBOBJS$]) +m4trace:configure.ac:42: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) +m4trace:configure.ac:42: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) +m4trace:configure.ac:42: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) +m4trace:configure.ac:42: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) +m4trace:configure.ac:42: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) +m4trace:configure.ac:42: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS diff --git a/src/Gem/extra/autom4te.cache/traces.1 b/src/Gem/extra/autom4te.cache/traces.1 new file mode 100644 index 0000000..51c74ab --- /dev/null +++ b/src/Gem/extra/autom4te.cache/traces.1 @@ -0,0 +1,333 @@ +m4trace:configure.ac:6: -1- AC_INIT([Gem-extras], [0.1], [zmoelnig@iem.at]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([^_?A[CHUM]_]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([_AC_]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) +m4trace:configure.ac:6: -1- m4_pattern_allow([^AS_FLAGS$]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([^_?m4_]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([^dnl$]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([^_?AS_]) +m4trace:configure.ac:6: -1- AC_SUBST([SHELL]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([SHELL]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^SHELL$]) +m4trace:configure.ac:6: -1- AC_SUBST([PATH_SEPARATOR]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([PATH_SEPARATOR]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PATH_SEPARATOR$]) +m4trace:configure.ac:6: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([PACKAGE_NAME]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:6: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([PACKAGE_TARNAME]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:6: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([PACKAGE_VERSION]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:6: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([PACKAGE_STRING]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:6: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:6: -1- AC_SUBST([PACKAGE_URL], [m4_ifdef([AC_PACKAGE_URL], ['AC_PACKAGE_URL'])]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([PACKAGE_URL]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:6: -1- AC_SUBST([exec_prefix], [NONE]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([exec_prefix]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^exec_prefix$]) +m4trace:configure.ac:6: -1- AC_SUBST([prefix], [NONE]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([prefix]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^prefix$]) +m4trace:configure.ac:6: -1- AC_SUBST([program_transform_name], [s,x,x,]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([program_transform_name]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^program_transform_name$]) +m4trace:configure.ac:6: -1- AC_SUBST([bindir], ['${exec_prefix}/bin']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([bindir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^bindir$]) +m4trace:configure.ac:6: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([sbindir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^sbindir$]) +m4trace:configure.ac:6: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([libexecdir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^libexecdir$]) +m4trace:configure.ac:6: -1- AC_SUBST([datarootdir], ['${prefix}/share']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([datarootdir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^datarootdir$]) +m4trace:configure.ac:6: -1- AC_SUBST([datadir], ['${datarootdir}']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([datadir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^datadir$]) +m4trace:configure.ac:6: -1- AC_SUBST([sysconfdir], ['${prefix}/etc']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([sysconfdir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^sysconfdir$]) +m4trace:configure.ac:6: -1- AC_SUBST([sharedstatedir], ['${prefix}/com']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([sharedstatedir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^sharedstatedir$]) +m4trace:configure.ac:6: -1- AC_SUBST([localstatedir], ['${prefix}/var']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([localstatedir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^localstatedir$]) +m4trace:configure.ac:6: -1- AC_SUBST([includedir], ['${prefix}/include']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([includedir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^includedir$]) +m4trace:configure.ac:6: -1- AC_SUBST([oldincludedir], ['/usr/include']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([oldincludedir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^oldincludedir$]) +m4trace:configure.ac:6: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME], + ['${datarootdir}/doc/${PACKAGE_TARNAME}'], + ['${datarootdir}/doc/${PACKAGE}'])]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([docdir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^docdir$]) +m4trace:configure.ac:6: -1- AC_SUBST([infodir], ['${datarootdir}/info']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([infodir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^infodir$]) +m4trace:configure.ac:6: -1- AC_SUBST([htmldir], ['${docdir}']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([htmldir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^htmldir$]) +m4trace:configure.ac:6: -1- AC_SUBST([dvidir], ['${docdir}']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([dvidir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^dvidir$]) +m4trace:configure.ac:6: -1- AC_SUBST([pdfdir], ['${docdir}']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([pdfdir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^pdfdir$]) +m4trace:configure.ac:6: -1- AC_SUBST([psdir], ['${docdir}']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([psdir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^psdir$]) +m4trace:configure.ac:6: -1- AC_SUBST([libdir], ['${exec_prefix}/lib']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([libdir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^libdir$]) +m4trace:configure.ac:6: -1- AC_SUBST([localedir], ['${datarootdir}/locale']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([localedir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^localedir$]) +m4trace:configure.ac:6: -1- AC_SUBST([mandir], ['${datarootdir}/man']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([mandir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^mandir$]) +m4trace:configure.ac:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:6: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */ +@%:@undef PACKAGE_NAME]) +m4trace:configure.ac:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:6: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */ +@%:@undef PACKAGE_TARNAME]) +m4trace:configure.ac:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:6: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */ +@%:@undef PACKAGE_VERSION]) +m4trace:configure.ac:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:6: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */ +@%:@undef PACKAGE_STRING]) +m4trace:configure.ac:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:6: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */ +@%:@undef PACKAGE_BUGREPORT]) +m4trace:configure.ac:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_URL]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:6: -1- AH_OUTPUT([PACKAGE_URL], [/* Define to the home page for this package. */ +@%:@undef PACKAGE_URL]) +m4trace:configure.ac:6: -1- AC_SUBST([DEFS]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([DEFS]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^DEFS$]) +m4trace:configure.ac:6: -1- AC_SUBST([ECHO_C]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([ECHO_C]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^ECHO_C$]) +m4trace:configure.ac:6: -1- AC_SUBST([ECHO_N]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([ECHO_N]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^ECHO_N$]) +m4trace:configure.ac:6: -1- AC_SUBST([ECHO_T]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([ECHO_T]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^ECHO_T$]) +m4trace:configure.ac:6: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:6: -1- AC_SUBST([build_alias]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([build_alias]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^build_alias$]) +m4trace:configure.ac:6: -1- AC_SUBST([host_alias]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([host_alias]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^host_alias$]) +m4trace:configure.ac:6: -1- AC_SUBST([target_alias]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([target_alias]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^target_alias$]) +m4trace:configure.ac:7: -1- AM_INIT_AUTOMAKE([1.10 foreign]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) +m4trace:configure.ac:7: -1- AM_AUTOMAKE_VERSION([1.11.6]) +m4trace:configure.ac:7: -1- AC_REQUIRE_AUX_FILE([install-sh]) +m4trace:configure.ac:7: -1- AC_SUBST([INSTALL_PROGRAM]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([INSTALL_PROGRAM]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) +m4trace:configure.ac:7: -1- AC_SUBST([INSTALL_SCRIPT]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([INSTALL_SCRIPT]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) +m4trace:configure.ac:7: -1- AC_SUBST([INSTALL_DATA]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([INSTALL_DATA]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_DATA$]) +m4trace:configure.ac:7: -1- AC_SUBST([am__isrc], [' -I$(srcdir)']) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__isrc]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__isrc$]) +m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([am__isrc]) +m4trace:configure.ac:7: -1- AC_SUBST([CYGPATH_W]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([CYGPATH_W]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^CYGPATH_W$]) +m4trace:configure.ac:7: -1- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME']) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([PACKAGE]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:7: -1- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION']) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([VERSION]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:7: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:7: -1- AH_OUTPUT([PACKAGE], [/* Name of package */ +@%:@undef PACKAGE]) +m4trace:configure.ac:7: -1- AC_DEFINE_TRACE_LITERAL([VERSION]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:7: -1- AH_OUTPUT([VERSION], [/* Version number of package */ +@%:@undef VERSION]) +m4trace:configure.ac:7: -1- AC_REQUIRE_AUX_FILE([missing]) +m4trace:configure.ac:7: -1- AC_SUBST([ACLOCAL]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([ACLOCAL]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^ACLOCAL$]) +m4trace:configure.ac:7: -1- AC_SUBST([AUTOCONF]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AUTOCONF]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOCONF$]) +m4trace:configure.ac:7: -1- AC_SUBST([AUTOMAKE]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AUTOMAKE]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOMAKE$]) +m4trace:configure.ac:7: -1- AC_SUBST([AUTOHEADER]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AUTOHEADER]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOHEADER$]) +m4trace:configure.ac:7: -1- AC_SUBST([MAKEINFO]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([MAKEINFO]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^MAKEINFO$]) +m4trace:configure.ac:7: -1- AC_SUBST([install_sh]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([install_sh]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^install_sh$]) +m4trace:configure.ac:7: -1- AC_SUBST([STRIP]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([STRIP]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:7: -1- AC_SUBST([INSTALL_STRIP_PROGRAM]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([INSTALL_STRIP_PROGRAM]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) +m4trace:configure.ac:7: -1- AC_REQUIRE_AUX_FILE([install-sh]) +m4trace:configure.ac:7: -1- AC_SUBST([MKDIR_P]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([MKDIR_P]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^MKDIR_P$]) +m4trace:configure.ac:7: -1- AC_SUBST([mkdir_p], ["$MKDIR_P"]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([mkdir_p]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^mkdir_p$]) +m4trace:configure.ac:7: -1- AC_SUBST([AWK]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AWK]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:7: -1- AC_SUBST([SET_MAKE]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([SET_MAKE]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^SET_MAKE$]) +m4trace:configure.ac:7: -1- AC_SUBST([am__leading_dot]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__leading_dot]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__leading_dot$]) +m4trace:configure.ac:7: -1- AC_SUBST([AMTAR], ['$${TAR-tar}']) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AMTAR]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^AMTAR$]) +m4trace:configure.ac:7: -1- AC_SUBST([am__tar]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__tar]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__tar$]) +m4trace:configure.ac:7: -1- AC_SUBST([am__untar]) +m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__untar]) +m4trace:configure.ac:7: -1- m4_pattern_allow([^am__untar$]) +m4trace:configure.ac:12: -1- AC_CONFIG_FILES([Makefile]) +m4trace:configure.ac:14: -1- AC_SUBST([CXX]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CXX]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:14: -1- AC_SUBST([CXXFLAGS]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CXXFLAGS]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^CXXFLAGS$]) +m4trace:configure.ac:14: -1- AC_SUBST([LDFLAGS]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([LDFLAGS]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:14: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:14: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:14: -1- AC_SUBST([CXX]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CXX]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:14: -1- AC_SUBST([ac_ct_CXX]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([ac_ct_CXX]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^ac_ct_CXX$]) +m4trace:configure.ac:14: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([EXEEXT]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^EXEEXT$]) +m4trace:configure.ac:14: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([OBJEXT]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^OBJEXT$]) +m4trace:configure.ac:14: -1- AC_SUBST([DEPDIR], ["${am__leading_dot}deps"]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([DEPDIR]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^DEPDIR$]) +m4trace:configure.ac:14: -1- AC_SUBST([am__include]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([am__include]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^am__include$]) +m4trace:configure.ac:14: -1- AC_SUBST([am__quote]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([am__quote]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^am__quote$]) +m4trace:configure.ac:14: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +m4trace:configure.ac:14: -1- AC_SUBST([AMDEP_TRUE]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([AMDEP_TRUE]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^AMDEP_TRUE$]) +m4trace:configure.ac:14: -1- AC_SUBST([AMDEP_FALSE]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([AMDEP_FALSE]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^AMDEP_FALSE$]) +m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) +m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) +m4trace:configure.ac:14: -1- AC_SUBST([AMDEPBACKSLASH]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([AMDEPBACKSLASH]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) +m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) +m4trace:configure.ac:14: -1- AC_SUBST([am__nodep]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([am__nodep]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^am__nodep$]) +m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([am__nodep]) +m4trace:configure.ac:14: -1- AC_SUBST([CXXDEPMODE], [depmode=$am_cv_CXX_dependencies_compiler_type]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([CXXDEPMODE]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^CXXDEPMODE$]) +m4trace:configure.ac:14: -1- AM_CONDITIONAL([am__fastdepCXX], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:14: -1- AC_SUBST([am__fastdepCXX_TRUE]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) +m4trace:configure.ac:14: -1- AC_SUBST([am__fastdepCXX_FALSE]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) +m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:14: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:15: -1- AC_SUBST([CXX]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([CXX]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:19: -1- AC_CONFIG_SUBDIRS([pix_artoolkit]) +m4trace:configure.ac:19: -1- AC_SUBST([subdirs], ["$subdirs m4_normalize([pix_artoolkit])"]) +m4trace:configure.ac:19: -1- AC_SUBST_TRACE([subdirs]) +m4trace:configure.ac:19: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:42: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) +m4trace:configure.ac:42: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:42: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:42: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) +m4trace:configure.ac:42: -1- AC_SUBST_TRACE([LTLIBOBJS]) +m4trace:configure.ac:42: -1- m4_pattern_allow([^LTLIBOBJS$]) +m4trace:configure.ac:42: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) +m4trace:configure.ac:42: -1- AC_SUBST([am__EXEEXT_TRUE]) +m4trace:configure.ac:42: -1- AC_SUBST_TRACE([am__EXEEXT_TRUE]) +m4trace:configure.ac:42: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) +m4trace:configure.ac:42: -1- AC_SUBST([am__EXEEXT_FALSE]) +m4trace:configure.ac:42: -1- AC_SUBST_TRACE([am__EXEEXT_FALSE]) +m4trace:configure.ac:42: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) +m4trace:configure.ac:42: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) +m4trace:configure.ac:42: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) +m4trace:configure.ac:42: -1- AC_SUBST_TRACE([top_builddir]) +m4trace:configure.ac:42: -1- AC_SUBST_TRACE([top_build_prefix]) +m4trace:configure.ac:42: -1- AC_SUBST_TRACE([srcdir]) +m4trace:configure.ac:42: -1- AC_SUBST_TRACE([abs_srcdir]) +m4trace:configure.ac:42: -1- AC_SUBST_TRACE([top_srcdir]) +m4trace:configure.ac:42: -1- AC_SUBST_TRACE([abs_top_srcdir]) +m4trace:configure.ac:42: -1- AC_SUBST_TRACE([builddir]) +m4trace:configure.ac:42: -1- AC_SUBST_TRACE([abs_builddir]) +m4trace:configure.ac:42: -1- AC_SUBST_TRACE([abs_top_builddir]) +m4trace:configure.ac:42: -1- AC_SUBST_TRACE([INSTALL]) +m4trace:configure.ac:42: -1- AC_SUBST_TRACE([MKDIR_P]) diff --git a/src/Gem/extra/configure b/src/Gem/extra/configure new file mode 100755 index 0000000..99ea0c1 --- /dev/null +++ b/src/Gem/extra/configure @@ -0,0 +1,4465 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.69 for Gem-extras 0.1. +# +# Report bugs to . +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and zmoelnig@iem.at +$0: about your system, including any error possibly output +$0: before this message. Then install a modern shell, or +$0: manually run the script under such a shell if you do +$0: have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='Gem-extras' +PACKAGE_TARNAME='gem-extras' +PACKAGE_VERSION='0.1' +PACKAGE_STRING='Gem-extras 0.1' +PACKAGE_BUGREPORT='zmoelnig@iem.at' +PACKAGE_URL='' + +ac_unique_file="README-EXTRA.txt" +enable_option_checking=no +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIBOBJS +subdirs +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CXX +CPPFLAGS +LDFLAGS +CXXFLAGS +CXX +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_dependency_tracking +' + ac_precious_vars='build_alias +host_alias +target_alias +CXX +CXXFLAGS +LDFLAGS +LIBS +CPPFLAGS +CCC' +ac_subdirs_all='pix_artoolkit' + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures Gem-extras 0.1 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/gem-extras] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of Gem-extras 0.1:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + +Some influential environment variables: + CXX C++ compiler command + CXXFLAGS C++ compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +Gem-extras configure 0.1 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_cxx_try_compile LINENO +# ---------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_compile +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by Gem-extras $as_me 0.1, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +am__api_version='1.11' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='gem-extras' + VERSION='0.1' + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + + + + + +ac_config_files="$ac_config_files Makefile" + + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 +$as_echo_n "checking whether the C++ compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C++ compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 +$as_echo_n "checking for C++ compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C++ compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CXX_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + + + +## pix_artoolkit +if test -d "$srcdir/pix_artoolkit"; then + + +subdirs="$subdirs pix_artoolkit" + +fi + +## pix_drum (Jaime Oliver) +#if test -d "$srcdir/pix_drum"; then +# AC_CONFIG_SUBDIRS([pix_drum]) +#fi + +## pix_mano (Jaime Oliver) +#if test -d "$srcdir/pix_mano"; then +# AC_CONFIG_SUBDIRS([pix_mano]) +#fi + +## pix_hit (Davide Morelli) +#if test -d "$srcdir/pix_hit"; then +# AC_CONFIG_SUBDIRS([pix_hit]) +#fi + +### pix_opencv (Yves Degoyon & Lluis Gomez i Bigorda) +#if test -d "$srcdir/pix_opencv"; then +# AC_CONFIG_SUBDIRS([pix_opencv]) +#fi + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +# +# If the first sed substitution is executed (which looks for macros that +# take arguments), then branch to the quote section. Otherwise, +# look for a macro that doesn't take arguments. +ac_script=' +:mline +/\\$/{ + N + s,\\\n,, + b mline +} +t clear +:clear +s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g +t quote +s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g +t quote +b any +:quote +s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g +s/\[/\\&/g +s/\]/\\&/g +s/\$/$$/g +H +:any +${ + g + s/^\n// + s/\n/ /g + p +} +' +DEFS=`sed -n "$ac_script" confdefs.h` + + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by Gem-extras $as_me 0.1, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + +Configuration files: +$config_files + +Configuration commands: +$config_commands + +Report bugs to ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +Gem-extras config.status 0.1 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h | --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + + +eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi + +# +# CONFIG_SUBDIRS section. +# +if test "$no_recursion" != yes; then + + # Remove --cache-file, --srcdir, and --disable-option-checking arguments + # so they do not pile up. + ac_sub_configure_args= + ac_prev= + eval "set x $ac_configure_args" + shift + for ac_arg + do + if test -n "$ac_prev"; then + ac_prev= + continue + fi + case $ac_arg in + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ + | --c=*) + ;; + --config-cache | -C) + ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + ;; + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + ;; + --disable-option-checking) + ;; + *) + case $ac_arg in + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append ac_sub_configure_args " '$ac_arg'" ;; + esac + done + + # Always prepend --prefix to ensure using the same prefix + # in subdir configurations. + ac_arg="--prefix=$prefix" + case $ac_arg in + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" + + # Pass --silent + if test "$silent" = yes; then + ac_sub_configure_args="--silent $ac_sub_configure_args" + fi + + # Always prepend --disable-option-checking to silence warnings, since + # different subdirs can have different --enable and --with options. + ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" + + ac_popdir=`pwd` + for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue + + # Do not complain, so a configure script can configure whichever + # parts of a large source tree are present. + test -d "$srcdir/$ac_dir" || continue + + ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" + $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 + $as_echo "$ac_msg" >&6 + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + cd "$ac_dir" + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f "$ac_srcdir/configure.gnu"; then + ac_sub_configure=$ac_srcdir/configure.gnu + elif test -f "$ac_srcdir/configure"; then + ac_sub_configure=$ac_srcdir/configure + elif test -f "$ac_srcdir/configure.in"; then + # This should be Cygnus configure. + ac_sub_configure=$ac_aux_dir/configure + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 +$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} + ac_sub_configure= + fi + + # The recursion is here. + if test -n "$ac_sub_configure"; then + # Make the cache file name correct relative to the subdirectory. + case $cache_file in + [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; + *) # Relative name. + ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} + # The eval makes quoting arguments work. + eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ + --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || + as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 + fi + + cd "$ac_popdir" + done +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + diff --git a/Gem/extra/configure.ac b/src/Gem/extra/configure.ac similarity index 100% rename from Gem/extra/configure.ac rename to src/Gem/extra/configure.ac diff --git a/Gem/extra/convenience-link-extra.mk b/src/Gem/extra/convenience-link-extra.mk similarity index 100% rename from Gem/extra/convenience-link-extra.mk rename to src/Gem/extra/convenience-link-extra.mk diff --git a/pd-0.44-2/m4/config/install-sh b/src/Gem/extra/install-sh similarity index 100% rename from pd-0.44-2/m4/config/install-sh rename to src/Gem/extra/install-sh diff --git a/pd-0.44-2/m4/config/missing b/src/Gem/extra/missing similarity index 100% rename from pd-0.44-2/m4/config/missing rename to src/Gem/extra/missing diff --git a/Gem/extra/pix2jpg/LICENSE.txt b/src/Gem/extra/pix2jpg/LICENSE.txt similarity index 100% rename from Gem/extra/pix2jpg/LICENSE.txt rename to src/Gem/extra/pix2jpg/LICENSE.txt diff --git a/Gem/extra/pix2jpg/Makefile.am b/src/Gem/extra/pix2jpg/Makefile.am similarity index 100% rename from Gem/extra/pix2jpg/Makefile.am rename to src/Gem/extra/pix2jpg/Makefile.am diff --git a/src/Gem/extra/pix2jpg/Makefile.in b/src/Gem/extra/pix2jpg/Makefile.in new file mode 100644 index 0000000..cb9fdf4 --- /dev/null +++ b/src/Gem/extra/pix2jpg/Makefile.in @@ -0,0 +1,799 @@ +# Makefile.in generated by automake 1.11.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + + +VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@WINDOWS_TRUE@am__append_1 = -no-undefined +subdir = extra/pix2jpg +DIST_COMMON = $(dist_extra_DATA) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_gl.m4 \ + $(top_srcdir)/m4/ax_check_glu.m4 \ + $(top_srcdir)/m4/ax_check_glut.m4 \ + $(top_srcdir)/m4/ax_compiler_vendor.m4 \ + $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/gem.m4 \ + $(top_srcdir)/m4/iem_ftgl.m4 $(top_srcdir)/m4/iem_opengl.m4 \ + $(top_srcdir)/m4/iem_operatingsystem.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/src/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(extradir)" "$(DESTDIR)$(extradir)" +LTLIBRARIES = $(extra_LTLIBRARIES) +pix2jpg_la_DEPENDENCIES = +am_pix2jpg_la_OBJECTS = pix2jpg_la-pix2jpg.lo +pix2jpg_la_OBJECTS = $(am_pix2jpg_la_OBJECTS) +pix2jpg_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(pix2jpg_la_CXXFLAGS) \ + $(CXXFLAGS) $(pix2jpg_la_LDFLAGS) $(LDFLAGS) -o $@ +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(pix2jpg_la_SOURCES) +DIST_SOURCES = $(pix2jpg_la_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DATA = $(dist_extra_DATA) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AGL_CFLAGS = @AGL_CFLAGS@ +AGL_LIBS = @AGL_LIBS@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFINES = @DEFINES@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXT = @EXT@ +FGREP = @FGREP@ +GEM_ARCH_CXXFLAGS = @GEM_ARCH_CXXFLAGS@ +GEM_ARCH_LDFLAGS = @GEM_ARCH_LDFLAGS@ +GEM_CFLAGS = @GEM_CFLAGS@ +GEM_CPPFLAGS = @GEM_CPPFLAGS@ +GEM_CXXFLAGS = @GEM_CXXFLAGS@ +GEM_DEFAULT_WINDOW = @GEM_DEFAULT_WINDOW@ +GEM_EXTERNAL_CFLAGS = @GEM_EXTERNAL_CFLAGS@ +GEM_EXTERNAL_CPPFLAGS = @GEM_EXTERNAL_CPPFLAGS@ +GEM_EXTERNAL_LIBS = @GEM_EXTERNAL_LIBS@ +GEM_FRAMEWORK_AGL = @GEM_FRAMEWORK_AGL@ +GEM_FRAMEWORK_CARBON = @GEM_FRAMEWORK_CARBON@ +GEM_FRAMEWORK_COCOA = @GEM_FRAMEWORK_COCOA@ +GEM_FRAMEWORK_QUICKTIME = @GEM_FRAMEWORK_QUICKTIME@ +GEM_LIBS = @GEM_LIBS@ +GEM_LIB_ASSIMP_CFLAGS = @GEM_LIB_ASSIMP_CFLAGS@ +GEM_LIB_ASSIMP_LIBS = @GEM_LIB_ASSIMP_LIBS@ +GEM_LIB_AVIFILE_CFLAGS = @GEM_LIB_AVIFILE_CFLAGS@ +GEM_LIB_AVIFILE_LIBS = @GEM_LIB_AVIFILE_LIBS@ +GEM_LIB_FRIBIDI_CFLAGS = @GEM_LIB_FRIBIDI_CFLAGS@ +GEM_LIB_FRIBIDI_LIBS = @GEM_LIB_FRIBIDI_LIBS@ +GEM_LIB_FTGL_CFLAGS = @GEM_LIB_FTGL_CFLAGS@ +GEM_LIB_FTGL_LIBS = @GEM_LIB_FTGL_LIBS@ +GEM_LIB_GLEW_CFLAGS = @GEM_LIB_GLEW_CFLAGS@ +GEM_LIB_GLEW_LIBS = @GEM_LIB_GLEW_LIBS@ +GEM_LIB_GMERLIN_AVDEC_CFLAGS = @GEM_LIB_GMERLIN_AVDEC_CFLAGS@ +GEM_LIB_GMERLIN_AVDEC_LIBS = @GEM_LIB_GMERLIN_AVDEC_LIBS@ +GEM_LIB_IMAGEMAGICK___CFLAGS = @GEM_LIB_IMAGEMAGICK___CFLAGS@ +GEM_LIB_IMAGEMAGICK___LIBS = @GEM_LIB_IMAGEMAGICK___LIBS@ +GEM_LIB_JPEG_CFLAGS = @GEM_LIB_JPEG_CFLAGS@ +GEM_LIB_JPEG_LIBS = @GEM_LIB_JPEG_LIBS@ +GEM_LIB_LIBDC1394_2_CFLAGS = @GEM_LIB_LIBDC1394_2_CFLAGS@ +GEM_LIB_LIBDC1394_2_LIBS = @GEM_LIB_LIBDC1394_2_LIBS@ +GEM_LIB_LIBDV_CFLAGS = @GEM_LIB_LIBDV_CFLAGS@ +GEM_LIB_LIBDV_LIBS = @GEM_LIB_LIBDV_LIBS@ +GEM_LIB_LIBIEC61883_CFLAGS = @GEM_LIB_LIBIEC61883_CFLAGS@ +GEM_LIB_LIBIEC61883_LIBS = @GEM_LIB_LIBIEC61883_LIBS@ +GEM_LIB_LIBMPEG3_CFLAGS = @GEM_LIB_LIBMPEG3_CFLAGS@ +GEM_LIB_LIBMPEG3_LIBS = @GEM_LIB_LIBMPEG3_LIBS@ +GEM_LIB_LIBQUICKTIME_CFLAGS = @GEM_LIB_LIBQUICKTIME_CFLAGS@ +GEM_LIB_LIBQUICKTIME_LIBS = @GEM_LIB_LIBQUICKTIME_LIBS@ +GEM_LIB_LIBRAW1394_CFLAGS = @GEM_LIB_LIBRAW1394_CFLAGS@ +GEM_LIB_LIBRAW1394_LIBS = @GEM_LIB_LIBRAW1394_LIBS@ +GEM_LIB_LIBUNICAP_CFLAGS = @GEM_LIB_LIBUNICAP_CFLAGS@ +GEM_LIB_LIBUNICAP_LIBS = @GEM_LIB_LIBUNICAP_LIBS@ +GEM_LIB_LIBV4L1_CFLAGS = @GEM_LIB_LIBV4L1_CFLAGS@ +GEM_LIB_LIBV4L1_LIBS = @GEM_LIB_LIBV4L1_LIBS@ +GEM_LIB_LIBV4L2_CFLAGS = @GEM_LIB_LIBV4L2_CFLAGS@ +GEM_LIB_LIBV4L2_LIBS = @GEM_LIB_LIBV4L2_LIBS@ +GEM_LIB_LIBVLC_CFLAGS = @GEM_LIB_LIBVLC_CFLAGS@ +GEM_LIB_LIBVLC_LIBS = @GEM_LIB_LIBVLC_LIBS@ +GEM_LIB_LQT_CFLAGS = @GEM_LIB_LQT_CFLAGS@ +GEM_LIB_LQT_LIBS = @GEM_LIB_LQT_LIBS@ +GEM_LIB_MAGICKCORE_CFLAGS = @GEM_LIB_MAGICKCORE_CFLAGS@ +GEM_LIB_MAGICKCORE_LIBS = @GEM_LIB_MAGICKCORE_LIBS@ +GEM_LIB_MPEG_CFLAGS = @GEM_LIB_MPEG_CFLAGS@ +GEM_LIB_MPEG_LIBS = @GEM_LIB_MPEG_LIBS@ +GEM_LIB_SDL_CFLAGS = @GEM_LIB_SDL_CFLAGS@ +GEM_LIB_SDL_LIBS = @GEM_LIB_SDL_LIBS@ +GEM_LIB_TIFF_CFLAGS = @GEM_LIB_TIFF_CFLAGS@ +GEM_LIB_TIFF_LIBS = @GEM_LIB_TIFF_LIBS@ +GEM_LIB_VFW32_CFLAGS = @GEM_LIB_VFW32_CFLAGS@ +GEM_LIB_VFW32_LIBS = @GEM_LIB_VFW32_LIBS@ +GEM_PTHREAD_CFLAGS = @GEM_PTHREAD_CFLAGS@ +GEM_PTHREAD_LIBS = @GEM_PTHREAD_LIBS@ +GEM_RTE = @GEM_RTE@ +GEM_RTE_CFLAGS = @GEM_RTE_CFLAGS@ +GEM_RTE_EXTENSION = @GEM_RTE_EXTENSION@ +GEM_RTE_LIBS = @GEM_RTE_LIBS@ +GEM_TARGETS = @GEM_TARGETS@ +GLUT_CFLAGS = @GLUT_CFLAGS@ +GLUT_LIBS = @GLUT_LIBS@ +GLU_CFLAGS = @GLU_CFLAGS@ +GLU_LIBS = @GLU_LIBS@ +GLX_CFLAGS = @GLX_CFLAGS@ +GLX_LIBS = @GLX_LIBS@ +GL_CFLAGS = @GL_CFLAGS@ +GL_LIBS = @GL_LIBS@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEDEP_FLAGS = @MAKEDEP_FLAGS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJC = @OBJC@ +OBJCDEPMODE = @OBJCDEPMODE@ +OBJCFLAGS = @OBJCFLAGS@ +OBJCXX = @OBJCXX@ +OBJCXXFLAGS = @OBJCXXFLAGS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_ASSIMP_CFLAGS = @PKG_ASSIMP_CFLAGS@ +PKG_ASSIMP_LIBS = @PKG_ASSIMP_LIBS@ +PKG_AVIFILE_CFLAGS = @PKG_AVIFILE_CFLAGS@ +PKG_AVIFILE_LIBS = @PKG_AVIFILE_LIBS@ +PKG_CFLAGS = @PKG_CFLAGS@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_FRIBIDI_CFLAGS = @PKG_FRIBIDI_CFLAGS@ +PKG_FRIBIDI_LIBS = @PKG_FRIBIDI_LIBS@ +PKG_FTGL_CFLAGS = @PKG_FTGL_CFLAGS@ +PKG_FTGL_LIBS = @PKG_FTGL_LIBS@ +PKG_GLEW_CFLAGS = @PKG_GLEW_CFLAGS@ +PKG_GLEW_LIBS = @PKG_GLEW_LIBS@ +PKG_GMERLIN_AVDEC_CFLAGS = @PKG_GMERLIN_AVDEC_CFLAGS@ +PKG_GMERLIN_AVDEC_LIBS = @PKG_GMERLIN_AVDEC_LIBS@ +PKG_IMAGEMAGICK___CFLAGS = @PKG_IMAGEMAGICK___CFLAGS@ +PKG_IMAGEMAGICK___LIBS = @PKG_IMAGEMAGICK___LIBS@ +PKG_JPEG_CFLAGS = @PKG_JPEG_CFLAGS@ +PKG_JPEG_LIBS = @PKG_JPEG_LIBS@ +PKG_LIBDC1394_2_CFLAGS = @PKG_LIBDC1394_2_CFLAGS@ +PKG_LIBDC1394_2_LIBS = @PKG_LIBDC1394_2_LIBS@ +PKG_LIBDV_CFLAGS = @PKG_LIBDV_CFLAGS@ +PKG_LIBDV_LIBS = @PKG_LIBDV_LIBS@ +PKG_LIBIEC61883_CFLAGS = @PKG_LIBIEC61883_CFLAGS@ +PKG_LIBIEC61883_LIBS = @PKG_LIBIEC61883_LIBS@ +PKG_LIBMPEG3_CFLAGS = @PKG_LIBMPEG3_CFLAGS@ +PKG_LIBMPEG3_LIBS = @PKG_LIBMPEG3_LIBS@ +PKG_LIBQUICKTIME_CFLAGS = @PKG_LIBQUICKTIME_CFLAGS@ +PKG_LIBQUICKTIME_LIBS = @PKG_LIBQUICKTIME_LIBS@ +PKG_LIBRAW1394_CFLAGS = @PKG_LIBRAW1394_CFLAGS@ +PKG_LIBRAW1394_LIBS = @PKG_LIBRAW1394_LIBS@ +PKG_LIBS = @PKG_LIBS@ +PKG_LIBUNICAP_CFLAGS = @PKG_LIBUNICAP_CFLAGS@ +PKG_LIBUNICAP_LIBS = @PKG_LIBUNICAP_LIBS@ +PKG_LIBV4L1_CFLAGS = @PKG_LIBV4L1_CFLAGS@ +PKG_LIBV4L1_LIBS = @PKG_LIBV4L1_LIBS@ +PKG_LIBV4L2_CFLAGS = @PKG_LIBV4L2_CFLAGS@ +PKG_LIBV4L2_LIBS = @PKG_LIBV4L2_LIBS@ +PKG_LIBVLC_CFLAGS = @PKG_LIBVLC_CFLAGS@ +PKG_LIBVLC_LIBS = @PKG_LIBVLC_LIBS@ +PKG_LQT_CFLAGS = @PKG_LQT_CFLAGS@ +PKG_LQT_LIBS = @PKG_LQT_LIBS@ +PKG_MAGICKCORE_CFLAGS = @PKG_MAGICKCORE_CFLAGS@ +PKG_MAGICKCORE_LIBS = @PKG_MAGICKCORE_LIBS@ +PKG_MPEG_CFLAGS = @PKG_MPEG_CFLAGS@ +PKG_MPEG_LIBS = @PKG_MPEG_LIBS@ +PKG_SDL_CFLAGS = @PKG_SDL_CFLAGS@ +PKG_SDL_LIBS = @PKG_SDL_LIBS@ +PKG_TIFF_CFLAGS = @PKG_TIFF_CFLAGS@ +PKG_TIFF_LIBS = @PKG_TIFF_LIBS@ +PKG_VFW32_CFLAGS = @PKG_VFW32_CFLAGS@ +PKG_VFW32_LIBS = @PKG_VFW32_LIBS@ +PTHREAD_CC = @PTHREAD_CC@ +PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ +PTHREAD_LIBS = @PTHREAD_LIBS@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XMKMF = @XMKMF@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +ac_ct_OBJC = @ac_ct_OBJC@ +ac_ct_OBJCXX = @ac_ct_OBJCXX@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +ax_pthread_config = @ax_pthread_config@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +subdirs = @subdirs@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AUTOMAKE_OPTIONS = foreign +ACLOCAL_AMFLAGS = -I $(top_srcdir)/src/m4 +AM_CPPFLAGS = -I$(top_srcdir)/src -I/usr/include/ImageMagick +EXTRA_DIST = +extradir = $(libdir)/pix2jpg +extra_LTLIBRARIES = pix2jpg.la +dist_extra_DATA = LICENSE.txt pix2jpg-help.pd + +# RTE flags + +# special flags for building externals +pix2jpg_la_CXXFLAGS = @GEM_RTE_CFLAGS@ @GEM_ARCH_CXXFLAGS@ -g -O2 \ + -fstack-protector --param=ssp-buffer-size=4 -Wformat \ + -Wformat-security -pthread .@GEM_EXTERNAL_CFLAGS@ +pix2jpg_la_LDFLAGS = -L/usr/lib -Wl,-Bsymbolic-functions -Wl,-z,relro \ + -L/usr/lib/X11 -module -avoid-version -shared -shrext \ + .@GEM_RTE_EXTENSION@ $(am__append_1) @GEM_ARCH_LDFLAGS@ +pix2jpg_la_LIBADD = @GEM_RTE_LIBS@ -L/usr/lib -lMagick++ -lMagickWand \ + -lMagickCore -llcms -ltiff -lfreetype -ljpeg -llqr-1 \ + -lglib-2.0 -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz \ + -lm -lgomp -lpthread -lltdl -L$(top_builddir) \ + @GEM_EXTERNAL_LIBS@ $(am__empty) + +### SOURCES +pix2jpg_la_SOURCES = \ + pix2jpg.cpp \ + pix2jpg.h + +all: all-am + +.SUFFIXES: +.SUFFIXES: .cpp .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign extra/pix2jpg/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign extra/pix2jpg/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-extraLTLIBRARIES: $(extra_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(extra_LTLIBRARIES)'; test -n "$(extradir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(extradir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(extradir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(extradir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(extradir)"; \ + } + +uninstall-extraLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(extra_LTLIBRARIES)'; test -n "$(extradir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(extradir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(extradir)/$$f"; \ + done + +clean-extraLTLIBRARIES: + -test -z "$(extra_LTLIBRARIES)" || rm -f $(extra_LTLIBRARIES) + @list='$(extra_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +pix2jpg.la: $(pix2jpg_la_OBJECTS) $(pix2jpg_la_DEPENDENCIES) $(EXTRA_pix2jpg_la_DEPENDENCIES) + $(pix2jpg_la_LINK) -rpath $(extradir) $(pix2jpg_la_OBJECTS) $(pix2jpg_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pix2jpg_la-pix2jpg.Plo@am__quote@ + +.cpp.o: +@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< + +.cpp.obj: +@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cpp.lo: +@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< + +pix2jpg_la-pix2jpg.lo: pix2jpg.cpp +@am__fastdepCXX_TRUE@ $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pix2jpg_la_CXXFLAGS) $(CXXFLAGS) -MT pix2jpg_la-pix2jpg.lo -MD -MP -MF $(DEPDIR)/pix2jpg_la-pix2jpg.Tpo -c -o pix2jpg_la-pix2jpg.lo `test -f 'pix2jpg.cpp' || echo '$(srcdir)/'`pix2jpg.cpp +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/pix2jpg_la-pix2jpg.Tpo $(DEPDIR)/pix2jpg_la-pix2jpg.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='pix2jpg.cpp' object='pix2jpg_la-pix2jpg.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pix2jpg_la_CXXFLAGS) $(CXXFLAGS) -c -o pix2jpg_la-pix2jpg.lo `test -f 'pix2jpg.cpp' || echo '$(srcdir)/'`pix2jpg.cpp + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-dist_extraDATA: $(dist_extra_DATA) + @$(NORMAL_INSTALL) + @list='$(dist_extra_DATA)'; test -n "$(extradir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(extradir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(extradir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(extradir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(extradir)" || exit $$?; \ + done + +uninstall-dist_extraDATA: + @$(NORMAL_UNINSTALL) + @list='$(dist_extra_DATA)'; test -n "$(extradir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(extradir)'; $(am__uninstall_files_from_dir) + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) $(DATA) all-local +installdirs: + for dir in "$(DESTDIR)$(extradir)" "$(DESTDIR)$(extradir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-extraLTLIBRARIES clean-generic clean-libtool \ + clean-local mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-dist_extraDATA install-extraLTLIBRARIES + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-dist_extraDATA uninstall-extraLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am all-local check check-am clean \ + clean-extraLTLIBRARIES clean-generic clean-libtool clean-local \ + ctags distclean distclean-compile distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dist_extraDATA install-dvi \ + install-dvi-am install-exec install-exec-am \ + install-extraLTLIBRARIES install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-dist_extraDATA \ + uninstall-extraLTLIBRARIES + + +# convenience symlinks +pix2jpg.@GEM_RTE_EXTENSION@: pix2jpg.la + rm -f $@ + test -f .libs/$@ && $(LN_S) .libs/$@ $@ || true + +.PHONY: clean-conviencesymlink + +clean-conviencesymlink: + rm -f pix2jpg.@GEM_RTE_EXTENSION@ + +all-local:: pix2jpg.@GEM_RTE_EXTENSION@ + +clean-local:: clean-conviencesymlink + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/Gem/extra/pix2jpg/pix2jpg-help.pd b/src/Gem/extra/pix2jpg/pix2jpg-help.pd similarity index 100% rename from Gem/extra/pix2jpg/pix2jpg-help.pd rename to src/Gem/extra/pix2jpg/pix2jpg-help.pd diff --git a/Gem/extra/pix2jpg/pix2jpg.cpp b/src/Gem/extra/pix2jpg/pix2jpg.cpp similarity index 100% rename from Gem/extra/pix2jpg/pix2jpg.cpp rename to src/Gem/extra/pix2jpg/pix2jpg.cpp diff --git a/Gem/extra/pix2jpg/pix2jpg.h b/src/Gem/extra/pix2jpg/pix2jpg.h similarity index 100% rename from Gem/extra/pix2jpg/pix2jpg.h rename to src/Gem/extra/pix2jpg/pix2jpg.h diff --git a/src/Gem/help/GEMglBegin-help.pd b/src/Gem/help/GEMglBegin-help.pd new file mode 100644 index 0000000..b2e875d --- /dev/null +++ b/src/Gem/help/GEMglBegin-help.pd @@ -0,0 +1,14 @@ +#N canvas 144 70 497 292 10; +#X text 21 22 GEMglBegin - delimit the vertices of a primitive or a +group of like primitives; +#X text 21 61 C Specification: void glBegin( GLenum mode ); +#X text 21 91 Parameters; +#X text 42 115 mode; +#X text 77 116 Specifies the primitive or primitives that will be created +from vertices presented between glBegin and the subsequent glEnd. Ten +symbolic constants are accepted: GL_POINTS \, GL_LINES \, GL_LINE_STRIP +\, GL_LINE_LOOP \, GL_TRIANGLES \, GL_TRIANGLE_STRIP \, GL_TRIANGLE_FAN +\, GL_QUADS \, GL_QUAD_STRIP \, and GL_POLYGON.; +#X text 71 244 http://www.glprogramming.com/blue/ch05.html#id5450783 +; +#X text 22 228 OpenGL Reference page:; diff --git a/src/Gem/help/GLdefine-help.pd b/src/Gem/help/GLdefine-help.pd new file mode 100644 index 0000000..e64cc25 --- /dev/null +++ b/src/Gem/help/GLdefine-help.pd @@ -0,0 +1,65 @@ +#N canvas 78 37 701 310 10; +#X obj 519 47 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 584 234 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 112 destroy; +#X msg 132 112 create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 589 273 pd gemwin; +#X msg 589 254 create; +#X text 585 233 Create window:; +#X text 525 29 Example:; +#X obj 7 65 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 8 216 cnv 15 450 80 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 11 217 Inlets:; +#X obj 8 176 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 452 8 GEM object; +#X text 11 266 Outlets:; +#X obj 522 71 cnv 15 150 140 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 530 192 GEMglBegin; +#X obj 534 77 loadbang; +#X text 54 30 Class: GEMgl object; +#X text 33 14 Synopsis: [GLdefine]; +#X text 15 88 Send an OpenGL configuration constant to a GEMglBegin +to set up the OpenGL environment. These constants are defined in GL/gl.h +in the OpenGL C++ code.; +#X floatatom 584 167 5 0 0 0 - - -; +#X text 29 229 Inlet 1: bang; +#X text 23 279 Outlet 1: float; +#X text 14 137 for more \, see: http://www.glprogramming.com/blue/ch04.html +; +#X text 7 69 Description: gets the value of a OpenGL constant; +#X text 29 245 Inlet 1: message - the name of the constant; +#X text 17 175 Arguments:; +#X text 29 189 the name of a OpenGL constant (e.g. GL_LINES or GL_POLYGON) +; +#X msg 542 98 GL_LINES; +#X obj 534 142 GLdefine GL_ADD; +#X msg 553 119 symbol GL_ACCUM; +#X connect 2 0 3 0; +#X connect 3 0 2 0; +#X connect 14 0 27 0; +#X connect 26 0 27 0; +#X connect 27 0 13 1; +#X connect 27 0 18 0; +#X connect 28 0 27 0; diff --git a/src/Gem/help/Makefile.am b/src/Gem/help/Makefile.am new file mode 100644 index 0000000..39cd16d --- /dev/null +++ b/src/Gem/help/Makefile.am @@ -0,0 +1,220 @@ +AUTOMAKE_OPTIONS = foreign + +SUFFIXES = .pd + +gemhelpdir=$(pkglibdir) + +dist_gemhelp_DATA = \ + accumrotate-help.pd \ + alpha-help.pd \ + ambient-help.pd \ + ambientRGB-help.pd \ + camera-help.pd \ + circle-help.pd \ + color-help.pd \ + colorRGB-help.pd \ + colorSquare-help.pd \ + cone-help.pd \ + cube-help.pd \ + cuboid-help.pd \ + curve3d-help.pd \ + curve-help.pd \ + cylinder-help.pd \ + depth-help.pd \ + diffuse-help.pd \ + diffuseRGB-help.pd \ + disk-help.pd \ + emission-help.pd \ + emissionRGB-help.pd \ + fragment_program-help.pd \ + gemframebuffer-help.pd \ + GEMglBegin-help.pd \ + gemhead-help.pd \ + gemkeyboard-help.pd \ + gemkeyname-help.pd \ + gemlist-help.pd \ + gemlist_info-help.pd \ + gemlist_matrix-help.pd \ + gemmouse-help.pd \ + gemorb-help.pd \ + gemreceive-help.pd \ + gemtablet-help.pd \ + gemvertexbuffer-help.pd \ + gemwin-help.pd \ + GLdefine-help.pd \ + glsl_fragment-help.pd \ + glsl_geometry-help.pd \ + glsl_program-help.pd \ + glsl_vertex-help.pd \ + imageVert-help.pd \ + light-help.pd \ + linear_path-help.pd \ + mesh_line-help.pd \ + mesh_square-help.pd \ + model-help.pd \ + multimodel-help.pd \ + newWave-help.pd \ + ortho-help.pd \ + part_color-help.pd \ + part_damp-help.pd \ + part_draw-help.pd \ + part_follow-help.pd \ + part_gravity-help.pd \ + part_head-help.pd \ + part_info-help.pd \ + part_killold-help.pd \ + part_killslow-help.pd \ + part_orbitpoint-help.pd \ + part_render-help.pd \ + part_sink-help.pd \ + part_size-help.pd \ + part_source-help.pd \ + part_targetcolor-help.pd \ + part_targetsize-help.pd \ + part_velcone-help.pd \ + part_velocity-help.pd \ + part_velsphere-help.pd \ + part_vertex-help.pd \ + pix_2grey-help.pd \ + pix_a_2grey-help.pd \ + pix_add-help.pd \ + pix_aging-help.pd \ + pix_alpha-help.pd \ + pix_background-help.pd \ + pix_backlight-help.pd \ + pix_biquad-help.pd \ + pix_bitmask-help.pd \ + pix_blob-help.pd \ + pix_blur-help.pd \ + pix_buffer-help.pd \ + pix_buffer_read-help.pd \ + pix_buffer_write-help.pd \ + pix_buf-help.pd \ + pix_chroma_key-help.pd \ + pix_clearblock-help.pd \ + pix_coloralpha-help.pd \ + pix_color-help.pd \ + pix_colorclassify-help.pd \ + pix_colormatrix-help.pd \ + pix_colorreduce-help.pd \ + pix_compare-help.pd \ + pix_composite-help.pd \ + pix_contrast-help.pd \ + pix_convert-help.pd \ + pix_convolve-help.pd \ + pix_coordinate-help.pd \ + pix_crop-help.pd \ + pix_curve-help.pd \ + pix_data-help.pd \ + pix_deinterlace-help.pd \ + pix_delay-help.pd \ + pix_diff-help.pd \ + pix_dot-help.pd \ + pix_draw-help.pd \ + pix_dump-help.pd \ + pix_duotone-help.pd \ + pix_film-help.pd \ + pix_flip-help.pd \ + pix_freeframe-help.pd \ + pix_frei0r-help.pd \ + pix_gain-help.pd \ + pix_grey-help.pd \ + pix_halftone-help.pd \ + pix_histo-help.pd \ + pix_hsv2rgb-help.pd \ + pix_image-help.pd \ + pix_imageInPlace-help.pd \ + pix_indycam-help.pd \ + pix_info-help.pd \ + pix_invert-help.pd \ + pix_kaleidoscope-help.pd \ + pix_levels-help.pd \ + pix_lumaoffset-help.pd \ + pix_mask-help.pd \ + pix_mean_color-help.pd \ + pix_metaimage-help.pd \ + pix_mix-help.pd \ + pix_motionblur-help.pd \ + pix_movement2-help.pd \ + pix_movement-help.pd \ + pix_movie-help.pd \ + pix_multiblob-help.pd \ + pix_multiimage-help.pd \ + pix_multitexture-help.pd \ + pix_multiply-help.pd \ + pix_noise-help.pd \ + pix_normalize-help.pd \ + pix_offset-help.pd \ + pix_pix2sig~-help.pd \ + pix_posterize-help.pd \ + pix_puzzle-help.pd \ + pix_rds-help.pd \ + pix_record-help.pd \ + pix_rectangle-help.pd \ + pix_refraction-help.pd \ + pix_resize-help.pd \ + pix_rgb2hsv-help.pd \ + pix_rgba-help.pd \ + pix_roi-help.pd \ + pix_roll-help.pd \ + pix_rtx-help.pd \ + pix_scanline-help.pd \ + pix_set-help.pd \ + pix_share_read-help.pd \ + pix_share_write-help.pd \ + pix_sig2pix~-help.pd \ + pix_snap2tex-help.pd \ + pix_snap-help.pd \ + pix_subtract-help.pd \ + pix_takealpha-help.pd \ + pix_texture-help.pd \ + pix_threshold_bernsen-help.pd \ + pix_threshold-help.pd \ + pix_tIIR-help.pd \ + pix_videoDS-help.pd \ + pix_video-help.pd \ + pix_write-help.pd \ + pix_yuv-help.pd \ + pix_zoom-help.pd \ + polygon-help.pd \ + polygon_smooth-help.pd \ + pqtorusknots-help.pd \ + primTri-help.pd \ + rectangle-help.pd \ + render_trigger-help.pd \ + ripple-help.pd \ + rotate-help.pd \ + rotateXYZ-help.pd \ + rubber-help.pd \ + scale-help.pd \ + scaleXYZ-help.pd \ + scopeXYZ~-help.pd \ + separator-help.pd \ + shearXY-help.pd \ + shearXZ-help.pd \ + shearYX-help.pd \ + shearYZ-help.pd \ + shearZX-help.pd \ + shearZY-help.pd \ + shininess-help.pd \ + slideSquares-help.pd \ + specular-help.pd \ + specularRGB-help.pd \ + sphere3d-help.pd \ + sphere-help.pd \ + spline_path-help.pd \ + spot_light-help.pd \ + square-help.pd \ + surface3d-help.pd \ + teapot-help.pd \ + text2d-help.pd \ + text3d-help.pd \ + textextruded-help.pd \ + textoutline-help.pd \ + torus-help.pd \ + translate-help.pd \ + translateXYZ-help.pd \ + triangle-help.pd \ + tube-help.pd \ + vertex_program-help.pd \ + world_light-help.pd diff --git a/src/Gem/help/Makefile.in b/src/Gem/help/Makefile.in new file mode 100644 index 0000000..7b51c6b --- /dev/null +++ b/src/Gem/help/Makefile.in @@ -0,0 +1,817 @@ +# Makefile.in generated by automake 1.11.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = help +DIST_COMMON = $(dist_gemhelp_DATA) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_gl.m4 \ + $(top_srcdir)/m4/ax_check_glu.m4 \ + $(top_srcdir)/m4/ax_check_glut.m4 \ + $(top_srcdir)/m4/ax_compiler_vendor.m4 \ + $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/gem.m4 \ + $(top_srcdir)/m4/iem_ftgl.m4 $(top_srcdir)/m4/iem_opengl.m4 \ + $(top_srcdir)/m4/iem_operatingsystem.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/src/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(gemhelpdir)" +DATA = $(dist_gemhelp_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AGL_CFLAGS = @AGL_CFLAGS@ +AGL_LIBS = @AGL_LIBS@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFINES = @DEFINES@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXT = @EXT@ +FGREP = @FGREP@ +GEM_ARCH_CXXFLAGS = @GEM_ARCH_CXXFLAGS@ +GEM_ARCH_LDFLAGS = @GEM_ARCH_LDFLAGS@ +GEM_CFLAGS = @GEM_CFLAGS@ +GEM_CPPFLAGS = @GEM_CPPFLAGS@ +GEM_CXXFLAGS = @GEM_CXXFLAGS@ +GEM_DEFAULT_WINDOW = @GEM_DEFAULT_WINDOW@ +GEM_EXTERNAL_CFLAGS = @GEM_EXTERNAL_CFLAGS@ +GEM_EXTERNAL_CPPFLAGS = @GEM_EXTERNAL_CPPFLAGS@ +GEM_EXTERNAL_LIBS = @GEM_EXTERNAL_LIBS@ +GEM_FRAMEWORK_AGL = @GEM_FRAMEWORK_AGL@ +GEM_FRAMEWORK_CARBON = @GEM_FRAMEWORK_CARBON@ +GEM_FRAMEWORK_COCOA = @GEM_FRAMEWORK_COCOA@ +GEM_FRAMEWORK_QUICKTIME = @GEM_FRAMEWORK_QUICKTIME@ +GEM_LIBS = @GEM_LIBS@ +GEM_LIB_ASSIMP_CFLAGS = @GEM_LIB_ASSIMP_CFLAGS@ +GEM_LIB_ASSIMP_LIBS = @GEM_LIB_ASSIMP_LIBS@ +GEM_LIB_AVIFILE_CFLAGS = @GEM_LIB_AVIFILE_CFLAGS@ +GEM_LIB_AVIFILE_LIBS = @GEM_LIB_AVIFILE_LIBS@ +GEM_LIB_FRIBIDI_CFLAGS = @GEM_LIB_FRIBIDI_CFLAGS@ +GEM_LIB_FRIBIDI_LIBS = @GEM_LIB_FRIBIDI_LIBS@ +GEM_LIB_FTGL_CFLAGS = @GEM_LIB_FTGL_CFLAGS@ +GEM_LIB_FTGL_LIBS = @GEM_LIB_FTGL_LIBS@ +GEM_LIB_GLEW_CFLAGS = @GEM_LIB_GLEW_CFLAGS@ +GEM_LIB_GLEW_LIBS = @GEM_LIB_GLEW_LIBS@ +GEM_LIB_GMERLIN_AVDEC_CFLAGS = @GEM_LIB_GMERLIN_AVDEC_CFLAGS@ +GEM_LIB_GMERLIN_AVDEC_LIBS = @GEM_LIB_GMERLIN_AVDEC_LIBS@ +GEM_LIB_IMAGEMAGICK___CFLAGS = @GEM_LIB_IMAGEMAGICK___CFLAGS@ +GEM_LIB_IMAGEMAGICK___LIBS = @GEM_LIB_IMAGEMAGICK___LIBS@ +GEM_LIB_JPEG_CFLAGS = @GEM_LIB_JPEG_CFLAGS@ +GEM_LIB_JPEG_LIBS = @GEM_LIB_JPEG_LIBS@ +GEM_LIB_LIBDC1394_2_CFLAGS = @GEM_LIB_LIBDC1394_2_CFLAGS@ +GEM_LIB_LIBDC1394_2_LIBS = @GEM_LIB_LIBDC1394_2_LIBS@ +GEM_LIB_LIBDV_CFLAGS = @GEM_LIB_LIBDV_CFLAGS@ +GEM_LIB_LIBDV_LIBS = @GEM_LIB_LIBDV_LIBS@ +GEM_LIB_LIBIEC61883_CFLAGS = @GEM_LIB_LIBIEC61883_CFLAGS@ +GEM_LIB_LIBIEC61883_LIBS = @GEM_LIB_LIBIEC61883_LIBS@ +GEM_LIB_LIBMPEG3_CFLAGS = @GEM_LIB_LIBMPEG3_CFLAGS@ +GEM_LIB_LIBMPEG3_LIBS = @GEM_LIB_LIBMPEG3_LIBS@ +GEM_LIB_LIBQUICKTIME_CFLAGS = @GEM_LIB_LIBQUICKTIME_CFLAGS@ +GEM_LIB_LIBQUICKTIME_LIBS = @GEM_LIB_LIBQUICKTIME_LIBS@ +GEM_LIB_LIBRAW1394_CFLAGS = @GEM_LIB_LIBRAW1394_CFLAGS@ +GEM_LIB_LIBRAW1394_LIBS = @GEM_LIB_LIBRAW1394_LIBS@ +GEM_LIB_LIBUNICAP_CFLAGS = @GEM_LIB_LIBUNICAP_CFLAGS@ +GEM_LIB_LIBUNICAP_LIBS = @GEM_LIB_LIBUNICAP_LIBS@ +GEM_LIB_LIBV4L1_CFLAGS = @GEM_LIB_LIBV4L1_CFLAGS@ +GEM_LIB_LIBV4L1_LIBS = @GEM_LIB_LIBV4L1_LIBS@ +GEM_LIB_LIBV4L2_CFLAGS = @GEM_LIB_LIBV4L2_CFLAGS@ +GEM_LIB_LIBV4L2_LIBS = @GEM_LIB_LIBV4L2_LIBS@ +GEM_LIB_LIBVLC_CFLAGS = @GEM_LIB_LIBVLC_CFLAGS@ +GEM_LIB_LIBVLC_LIBS = @GEM_LIB_LIBVLC_LIBS@ +GEM_LIB_LQT_CFLAGS = @GEM_LIB_LQT_CFLAGS@ +GEM_LIB_LQT_LIBS = @GEM_LIB_LQT_LIBS@ +GEM_LIB_MAGICKCORE_CFLAGS = @GEM_LIB_MAGICKCORE_CFLAGS@ +GEM_LIB_MAGICKCORE_LIBS = @GEM_LIB_MAGICKCORE_LIBS@ +GEM_LIB_MPEG_CFLAGS = @GEM_LIB_MPEG_CFLAGS@ +GEM_LIB_MPEG_LIBS = @GEM_LIB_MPEG_LIBS@ +GEM_LIB_SDL_CFLAGS = @GEM_LIB_SDL_CFLAGS@ +GEM_LIB_SDL_LIBS = @GEM_LIB_SDL_LIBS@ +GEM_LIB_TIFF_CFLAGS = @GEM_LIB_TIFF_CFLAGS@ +GEM_LIB_TIFF_LIBS = @GEM_LIB_TIFF_LIBS@ +GEM_LIB_VFW32_CFLAGS = @GEM_LIB_VFW32_CFLAGS@ +GEM_LIB_VFW32_LIBS = @GEM_LIB_VFW32_LIBS@ +GEM_PTHREAD_CFLAGS = @GEM_PTHREAD_CFLAGS@ +GEM_PTHREAD_LIBS = @GEM_PTHREAD_LIBS@ +GEM_RTE = @GEM_RTE@ +GEM_RTE_CFLAGS = @GEM_RTE_CFLAGS@ +GEM_RTE_EXTENSION = @GEM_RTE_EXTENSION@ +GEM_RTE_LIBS = @GEM_RTE_LIBS@ +GEM_TARGETS = @GEM_TARGETS@ +GLUT_CFLAGS = @GLUT_CFLAGS@ +GLUT_LIBS = @GLUT_LIBS@ +GLU_CFLAGS = @GLU_CFLAGS@ +GLU_LIBS = @GLU_LIBS@ +GLX_CFLAGS = @GLX_CFLAGS@ +GLX_LIBS = @GLX_LIBS@ +GL_CFLAGS = @GL_CFLAGS@ +GL_LIBS = @GL_LIBS@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEDEP_FLAGS = @MAKEDEP_FLAGS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJC = @OBJC@ +OBJCDEPMODE = @OBJCDEPMODE@ +OBJCFLAGS = @OBJCFLAGS@ +OBJCXX = @OBJCXX@ +OBJCXXFLAGS = @OBJCXXFLAGS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_ASSIMP_CFLAGS = @PKG_ASSIMP_CFLAGS@ +PKG_ASSIMP_LIBS = @PKG_ASSIMP_LIBS@ +PKG_AVIFILE_CFLAGS = @PKG_AVIFILE_CFLAGS@ +PKG_AVIFILE_LIBS = @PKG_AVIFILE_LIBS@ +PKG_CFLAGS = @PKG_CFLAGS@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_FRIBIDI_CFLAGS = @PKG_FRIBIDI_CFLAGS@ +PKG_FRIBIDI_LIBS = @PKG_FRIBIDI_LIBS@ +PKG_FTGL_CFLAGS = @PKG_FTGL_CFLAGS@ +PKG_FTGL_LIBS = @PKG_FTGL_LIBS@ +PKG_GLEW_CFLAGS = @PKG_GLEW_CFLAGS@ +PKG_GLEW_LIBS = @PKG_GLEW_LIBS@ +PKG_GMERLIN_AVDEC_CFLAGS = @PKG_GMERLIN_AVDEC_CFLAGS@ +PKG_GMERLIN_AVDEC_LIBS = @PKG_GMERLIN_AVDEC_LIBS@ +PKG_IMAGEMAGICK___CFLAGS = @PKG_IMAGEMAGICK___CFLAGS@ +PKG_IMAGEMAGICK___LIBS = @PKG_IMAGEMAGICK___LIBS@ +PKG_JPEG_CFLAGS = @PKG_JPEG_CFLAGS@ +PKG_JPEG_LIBS = @PKG_JPEG_LIBS@ +PKG_LIBDC1394_2_CFLAGS = @PKG_LIBDC1394_2_CFLAGS@ +PKG_LIBDC1394_2_LIBS = @PKG_LIBDC1394_2_LIBS@ +PKG_LIBDV_CFLAGS = @PKG_LIBDV_CFLAGS@ +PKG_LIBDV_LIBS = @PKG_LIBDV_LIBS@ +PKG_LIBIEC61883_CFLAGS = @PKG_LIBIEC61883_CFLAGS@ +PKG_LIBIEC61883_LIBS = @PKG_LIBIEC61883_LIBS@ +PKG_LIBMPEG3_CFLAGS = @PKG_LIBMPEG3_CFLAGS@ +PKG_LIBMPEG3_LIBS = @PKG_LIBMPEG3_LIBS@ +PKG_LIBQUICKTIME_CFLAGS = @PKG_LIBQUICKTIME_CFLAGS@ +PKG_LIBQUICKTIME_LIBS = @PKG_LIBQUICKTIME_LIBS@ +PKG_LIBRAW1394_CFLAGS = @PKG_LIBRAW1394_CFLAGS@ +PKG_LIBRAW1394_LIBS = @PKG_LIBRAW1394_LIBS@ +PKG_LIBS = @PKG_LIBS@ +PKG_LIBUNICAP_CFLAGS = @PKG_LIBUNICAP_CFLAGS@ +PKG_LIBUNICAP_LIBS = @PKG_LIBUNICAP_LIBS@ +PKG_LIBV4L1_CFLAGS = @PKG_LIBV4L1_CFLAGS@ +PKG_LIBV4L1_LIBS = @PKG_LIBV4L1_LIBS@ +PKG_LIBV4L2_CFLAGS = @PKG_LIBV4L2_CFLAGS@ +PKG_LIBV4L2_LIBS = @PKG_LIBV4L2_LIBS@ +PKG_LIBVLC_CFLAGS = @PKG_LIBVLC_CFLAGS@ +PKG_LIBVLC_LIBS = @PKG_LIBVLC_LIBS@ +PKG_LQT_CFLAGS = @PKG_LQT_CFLAGS@ +PKG_LQT_LIBS = @PKG_LQT_LIBS@ +PKG_MAGICKCORE_CFLAGS = @PKG_MAGICKCORE_CFLAGS@ +PKG_MAGICKCORE_LIBS = @PKG_MAGICKCORE_LIBS@ +PKG_MPEG_CFLAGS = @PKG_MPEG_CFLAGS@ +PKG_MPEG_LIBS = @PKG_MPEG_LIBS@ +PKG_SDL_CFLAGS = @PKG_SDL_CFLAGS@ +PKG_SDL_LIBS = @PKG_SDL_LIBS@ +PKG_TIFF_CFLAGS = @PKG_TIFF_CFLAGS@ +PKG_TIFF_LIBS = @PKG_TIFF_LIBS@ +PKG_VFW32_CFLAGS = @PKG_VFW32_CFLAGS@ +PKG_VFW32_LIBS = @PKG_VFW32_LIBS@ +PTHREAD_CC = @PTHREAD_CC@ +PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ +PTHREAD_LIBS = @PTHREAD_LIBS@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XMKMF = @XMKMF@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +ac_ct_OBJC = @ac_ct_OBJC@ +ac_ct_OBJCXX = @ac_ct_OBJCXX@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +ax_pthread_config = @ax_pthread_config@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +subdirs = @subdirs@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AUTOMAKE_OPTIONS = foreign +SUFFIXES = .pd +gemhelpdir = $(pkglibdir) +dist_gemhelp_DATA = \ + accumrotate-help.pd \ + alpha-help.pd \ + ambient-help.pd \ + ambientRGB-help.pd \ + camera-help.pd \ + circle-help.pd \ + color-help.pd \ + colorRGB-help.pd \ + colorSquare-help.pd \ + cone-help.pd \ + cube-help.pd \ + cuboid-help.pd \ + curve3d-help.pd \ + curve-help.pd \ + cylinder-help.pd \ + depth-help.pd \ + diffuse-help.pd \ + diffuseRGB-help.pd \ + disk-help.pd \ + emission-help.pd \ + emissionRGB-help.pd \ + fragment_program-help.pd \ + gemframebuffer-help.pd \ + GEMglBegin-help.pd \ + gemhead-help.pd \ + gemkeyboard-help.pd \ + gemkeyname-help.pd \ + gemlist-help.pd \ + gemlist_info-help.pd \ + gemlist_matrix-help.pd \ + gemmouse-help.pd \ + gemorb-help.pd \ + gemreceive-help.pd \ + gemtablet-help.pd \ + gemvertexbuffer-help.pd \ + gemwin-help.pd \ + GLdefine-help.pd \ + glsl_fragment-help.pd \ + glsl_geometry-help.pd \ + glsl_program-help.pd \ + glsl_vertex-help.pd \ + imageVert-help.pd \ + light-help.pd \ + linear_path-help.pd \ + mesh_line-help.pd \ + mesh_square-help.pd \ + model-help.pd \ + multimodel-help.pd \ + newWave-help.pd \ + ortho-help.pd \ + part_color-help.pd \ + part_damp-help.pd \ + part_draw-help.pd \ + part_follow-help.pd \ + part_gravity-help.pd \ + part_head-help.pd \ + part_info-help.pd \ + part_killold-help.pd \ + part_killslow-help.pd \ + part_orbitpoint-help.pd \ + part_render-help.pd \ + part_sink-help.pd \ + part_size-help.pd \ + part_source-help.pd \ + part_targetcolor-help.pd \ + part_targetsize-help.pd \ + part_velcone-help.pd \ + part_velocity-help.pd \ + part_velsphere-help.pd \ + part_vertex-help.pd \ + pix_2grey-help.pd \ + pix_a_2grey-help.pd \ + pix_add-help.pd \ + pix_aging-help.pd \ + pix_alpha-help.pd \ + pix_background-help.pd \ + pix_backlight-help.pd \ + pix_biquad-help.pd \ + pix_bitmask-help.pd \ + pix_blob-help.pd \ + pix_blur-help.pd \ + pix_buffer-help.pd \ + pix_buffer_read-help.pd \ + pix_buffer_write-help.pd \ + pix_buf-help.pd \ + pix_chroma_key-help.pd \ + pix_clearblock-help.pd \ + pix_coloralpha-help.pd \ + pix_color-help.pd \ + pix_colorclassify-help.pd \ + pix_colormatrix-help.pd \ + pix_colorreduce-help.pd \ + pix_compare-help.pd \ + pix_composite-help.pd \ + pix_contrast-help.pd \ + pix_convert-help.pd \ + pix_convolve-help.pd \ + pix_coordinate-help.pd \ + pix_crop-help.pd \ + pix_curve-help.pd \ + pix_data-help.pd \ + pix_deinterlace-help.pd \ + pix_delay-help.pd \ + pix_diff-help.pd \ + pix_dot-help.pd \ + pix_draw-help.pd \ + pix_dump-help.pd \ + pix_duotone-help.pd \ + pix_film-help.pd \ + pix_flip-help.pd \ + pix_freeframe-help.pd \ + pix_frei0r-help.pd \ + pix_gain-help.pd \ + pix_grey-help.pd \ + pix_halftone-help.pd \ + pix_histo-help.pd \ + pix_hsv2rgb-help.pd \ + pix_image-help.pd \ + pix_imageInPlace-help.pd \ + pix_indycam-help.pd \ + pix_info-help.pd \ + pix_invert-help.pd \ + pix_kaleidoscope-help.pd \ + pix_levels-help.pd \ + pix_lumaoffset-help.pd \ + pix_mask-help.pd \ + pix_mean_color-help.pd \ + pix_metaimage-help.pd \ + pix_mix-help.pd \ + pix_motionblur-help.pd \ + pix_movement2-help.pd \ + pix_movement-help.pd \ + pix_movie-help.pd \ + pix_multiblob-help.pd \ + pix_multiimage-help.pd \ + pix_multitexture-help.pd \ + pix_multiply-help.pd \ + pix_noise-help.pd \ + pix_normalize-help.pd \ + pix_offset-help.pd \ + pix_pix2sig~-help.pd \ + pix_posterize-help.pd \ + pix_puzzle-help.pd \ + pix_rds-help.pd \ + pix_record-help.pd \ + pix_rectangle-help.pd \ + pix_refraction-help.pd \ + pix_resize-help.pd \ + pix_rgb2hsv-help.pd \ + pix_rgba-help.pd \ + pix_roi-help.pd \ + pix_roll-help.pd \ + pix_rtx-help.pd \ + pix_scanline-help.pd \ + pix_set-help.pd \ + pix_share_read-help.pd \ + pix_share_write-help.pd \ + pix_sig2pix~-help.pd \ + pix_snap2tex-help.pd \ + pix_snap-help.pd \ + pix_subtract-help.pd \ + pix_takealpha-help.pd \ + pix_texture-help.pd \ + pix_threshold_bernsen-help.pd \ + pix_threshold-help.pd \ + pix_tIIR-help.pd \ + pix_videoDS-help.pd \ + pix_video-help.pd \ + pix_write-help.pd \ + pix_yuv-help.pd \ + pix_zoom-help.pd \ + polygon-help.pd \ + polygon_smooth-help.pd \ + pqtorusknots-help.pd \ + primTri-help.pd \ + rectangle-help.pd \ + render_trigger-help.pd \ + ripple-help.pd \ + rotate-help.pd \ + rotateXYZ-help.pd \ + rubber-help.pd \ + scale-help.pd \ + scaleXYZ-help.pd \ + scopeXYZ~-help.pd \ + separator-help.pd \ + shearXY-help.pd \ + shearXZ-help.pd \ + shearYX-help.pd \ + shearYZ-help.pd \ + shearZX-help.pd \ + shearZY-help.pd \ + shininess-help.pd \ + slideSquares-help.pd \ + specular-help.pd \ + specularRGB-help.pd \ + sphere3d-help.pd \ + sphere-help.pd \ + spline_path-help.pd \ + spot_light-help.pd \ + square-help.pd \ + surface3d-help.pd \ + teapot-help.pd \ + text2d-help.pd \ + text3d-help.pd \ + textextruded-help.pd \ + textoutline-help.pd \ + torus-help.pd \ + translate-help.pd \ + translateXYZ-help.pd \ + triangle-help.pd \ + tube-help.pd \ + vertex_program-help.pd \ + world_light-help.pd + +all: all-am + +.SUFFIXES: +.SUFFIXES: .pd +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign help/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign help/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-dist_gemhelpDATA: $(dist_gemhelp_DATA) + @$(NORMAL_INSTALL) + @list='$(dist_gemhelp_DATA)'; test -n "$(gemhelpdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(gemhelpdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(gemhelpdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(gemhelpdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(gemhelpdir)" || exit $$?; \ + done + +uninstall-dist_gemhelpDATA: + @$(NORMAL_UNINSTALL) + @list='$(dist_gemhelp_DATA)'; test -n "$(gemhelpdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(gemhelpdir)'; $(am__uninstall_files_from_dir) +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(gemhelpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-dist_gemhelpDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-dist_gemhelpDATA + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dist_gemhelpDATA \ + install-dvi install-dvi-am install-exec install-exec-am \ + install-html install-html-am install-info install-info-am \ + install-man install-pdf install-pdf-am install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ + ps ps-am uninstall uninstall-am uninstall-dist_gemhelpDATA + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/Gem/help/accumrotate-help.pd b/src/Gem/help/accumrotate-help.pd new file mode 100644 index 0000000..a040c5f --- /dev/null +++ b/src/Gem/help/accumrotate-help.pd @@ -0,0 +1,75 @@ +#N canvas 57 47 634 374 10; +#X text 452 8 GEM object; +#X text 50 12 Synopsis: [accumrotate]; +#X obj 8 197 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 63 225 Inlet 1: message: reset; +#X text 64 254 Inlet 3: float: delta-rotation around Y-axis (in deg) +; +#X text 64 242 Inlet 2: float: delta-rotation around X-axis (in deg) +; +#X text 64 266 Inlet 4: float: delta-rotation around Z-axis (in deg) +; +#X text 39 198 Inlets:; +#X text 63 211 Inlet 1: gemlist; +#X text 39 282 Outlets:; +#X text 57 295 Outlet 1: gemlist; +#X obj 8 156 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 155 Arguments:; +#X text 63 166 initial rotations around X \, Y \, Z-axes; +#X obj 8 76 cnv 15 430 70 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 42 95 [accumrotate] accepts a gemList and changes the current +transformation matrix by the specified delta-rotation; +#X text 41 130 the delta-values add to the current rotation-matrix. +; +#X text 29 77 Description: accumulated rotation; +#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X text 453 60 Example:; +#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 132 112 create \, 1; +#X msg 198 112 destroy; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 6 0; +#X connect 3 1 5 0; +#X connect 3 1 7 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 519 293 pd gemwin; +#X msg 519 274 create; +#X text 515 253 Create window:; +#X text 71 31 Class: manipulation object; +#X obj 450 158 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 451 84 gemhead; +#X obj 451 233 square; +#X msg 478 108 reset; +#X msg 531 163 10; +#X text 490 139 click repeatedly; +#X obj 451 186 accumrotate 45 0 0; +#X msg 491 163 5; +#X msg 572 163 15; +#X text 34 335 see also:; +#X obj 143 337 rotateXYZ; +#X obj 95 337 rotate; +#X connect 21 0 22 0; +#X connect 22 0 21 0; +#X connect 26 0 31 0; +#X connect 28 0 31 0; +#X connect 29 0 31 2; +#X connect 31 0 27 0; +#X connect 32 0 31 1; +#X connect 33 0 31 3; diff --git a/src/Gem/help/alpha-help.pd b/src/Gem/help/alpha-help.pd new file mode 100644 index 0000000..930dcf9 --- /dev/null +++ b/src/Gem/help/alpha-help.pd @@ -0,0 +1,109 @@ +#N canvas 50 237 711 539 10; +#X text 452 8 GEM object; +#X obj 8 196 cnv 15 430 330 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 37 195 Inlets:; +#X text 453 355 Outlets:; +#X text 461 366 Outlet 1: gemlist; +#X obj 8 161 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 160 Arguments:; +#X obj 8 76 cnv 15 430 80 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 449 77 cnv 15 250 250 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X text 453 60 Example:; +#X obj 584 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 50 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 132 112 create \, 1; +#X msg 198 112 destroy; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 6 0; +#X connect 3 1 5 0; +#X connect 3 1 7 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 589 293 pd gemwin; +#X msg 589 274 create; +#X text 585 253 Create window:; +#X text 71 31 Class: manipulation object; +#X obj 451 197 cnv 15 80 60 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 579 186 color 1 0 0 0.5; +#X text 60 219 Inlet 1: float: turn alpha blending on/off; +#X text 50 12 Synopsis: [alpha]; +#X text 29 77 Description: enable alpha blending; +#X obj 458 310 square; +#X obj 458 233 alpha; +#X obj 458 108 color 0 1 0 0.5; +#X text 61 208 Inlet 1: gemlist; +#X text 60 231 Inlet 1: message "auto 1" | "auto 0" turn on/off automatic +depth detection; +#X floatatom 583 139 5 0 0 0 - - -; +#X obj 458 86 gemhead 51; +#X obj 579 211 sphere; +#X obj 458 137 rotate 114 0 1 0; +#X obj 579 162 gemhead 50; +#X msg 474 176 auto \$1; +#X obj 474 158 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 +1; +#X msg 583 108 0 1 0 \$1; +#X floatatom 583 88 5 0 1 0 - - -; +#X obj 628 88 hsl 64 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 +-1 -1 0 1; +#X text 22 91 [alpha] turns on and off alpha blending. Be aware that +the rendering order matters \, so you probably want to set the gemhead +order number high so that the object is rendered after all of the non-alpha +blended ones.; +#X text 63 171 float : blending function (default: GL_ONE_MINUS_SRC_ALPHA) +; +#X text 60 260 Inlet 2: float: blending function; +#X text 70 272 0=GL_ONE_MINUS_SOURCE_ALPHA; +#X text 70 282 1=GL_ONE; +#X text 70 294 2=GL_ZERO; +#X text 70 306 3=GL_SRC_COLOR; +#X text 70 318 4=GL_ONE_MINUS_SRC_COLOR; +#X text 70 330 5=GL_DST_COLOR; +#X text 70 342 6=GL_ONE_MINUS_DST_COLOR; +#X text 70 354 7=GL_SRC_ALPHA; +#X text 70 366 8=GL_ONE_MINUS_SRC_ALPHA; +#X text 70 378 9=GL_DST_ALPHA; +#X text 70 390 10=GL_ONE_MINUS_DST_ALPHA; +#X text 70 402 11=GL_CONSTANT_COLOR; +#X text 70 414 12=GL_ONE_MINUS_CONSTANT_COLOR; +#X text 70 426 13=GL_CONSTANT_ALPHA; +#X text 70 438 14=GL_ONE_MINUS_CONSTANT_ALPHA; +#X text 70 450 15=GL_SRC_ALPHA_SATURATE; +#X text 70 462 16=GL_SRC1_COLOR; +#X text 70 474 17=GL_ONE_MINUS_SRC1_COLOR; +#X text 70 486 18=GL_SRC1_ALPHA; +#X text 70 498 19=GL_ONE_MINUS_SRC1_ALPHA; +#X obj 477 210 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 +1; +#X floatatom 501 210 2 0 19 0 - - -; +#X connect 11 0 12 0; +#X connect 12 0 11 0; +#X connect 16 0 27 0; +#X connect 21 0 20 0; +#X connect 22 0 28 0; +#X connect 25 0 28 1; +#X connect 26 0 22 0; +#X connect 28 0 21 0; +#X connect 29 0 16 0; +#X connect 30 0 21 0; +#X connect 31 0 30 0; +#X connect 32 0 22 1; +#X connect 33 0 32 0; +#X connect 34 0 33 0; +#X connect 58 0 21 0; +#X connect 59 0 21 1; diff --git a/src/Gem/help/ambient-help.pd b/src/Gem/help/ambient-help.pd new file mode 100644 index 0000000..b57f8b6 --- /dev/null +++ b/src/Gem/help/ambient-help.pd @@ -0,0 +1,68 @@ +#N canvas 260 145 639 369 10; +#X text 452 8 GEM object; +#X obj 8 196 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 39 198 Inlets:; +#X text 63 211 Inlet 1: gemlist; +#X text 39 252 Outlets:; +#X text 57 265 Outlet 1: gemlist; +#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 145 Arguments:; +#X obj 8 76 cnv 15 430 60 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X text 453 60 Example:; +#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 197 134 destroy; +#X msg 132 112 reset \, lighting 1 \, create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 519 293 pd gemwin; +#X msg 519 274 create; +#X text 515 253 Create window:; +#X text 71 31 Class: manipulation object; +#X obj 450 118 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 451 84 gemhead; +#X text 29 77 Description: ambient colouring; +#X obj 451 193 cube; +#X obj 500 192 gemhead; +#X obj 500 230 world_light; +#X obj 500 211 rotate 180 1 0 0; +#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.; +#X text 60 171 defaults: 0.2 0.2 0.2 1; +#X text 22 91 [ambient] accepts a gemList and sets the ambient-color +for all subsequent vertex-operations. You have to enable lighting to +see any effects.; +#X text 50 12 Synopsis: [ambient]; +#X obj 451 156 ambient 0 1 0; +#X msg 478 130 0.4 0.8 1; +#X text 63 229 Inlet 2: list: 3(RGB) or 4(RGBA) float values; +#X floatatom 549 193 5 0 0 0 - - -; +#X obj 84 332 ambientRGB; +#X text 21 332 see also:; +#X connect 12 0 13 0; +#X connect 13 0 12 0; +#X connect 17 0 27 0; +#X connect 20 0 22 0; +#X connect 22 0 21 0; +#X connect 27 0 19 0; +#X connect 28 0 27 1; +#X connect 30 0 22 1; diff --git a/src/Gem/help/ambientRGB-help.pd b/src/Gem/help/ambientRGB-help.pd new file mode 100644 index 0000000..128ad0f --- /dev/null +++ b/src/Gem/help/ambientRGB-help.pd @@ -0,0 +1,77 @@ +#N canvas 4 49 641 366 10; +#X text 452 8 GEM object; +#X obj 8 196 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 39 198 Inlets:; +#X text 63 211 Inlet 1: gemlist; +#X text 39 292 Outlets:; +#X text 57 305 Outlet 1: gemlist; +#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 145 Arguments:; +#X obj 8 76 cnv 15 430 60 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X text 453 60 Example:; +#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 197 134 destroy; +#X msg 132 112 reset \, lighting 1 \, create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 519 293 pd gemwin; +#X msg 519 274 create; +#X text 515 253 Create window:; +#X text 71 31 Class: manipulation object; +#X obj 450 118 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 451 84 gemhead; +#X text 29 77 Description: ambient colouring; +#X obj 451 193 cube; +#X obj 500 192 gemhead; +#X obj 500 230 world_light; +#X text 50 12 Synopsis: [ambientRGB]; +#X text 22 91 [ambientRGB] accepts a gemList and sets the ambient-color +for all subsequent vertex-operations. You have to enable lighting to +see any effects.; +#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.; +#X text 60 171 defaults: 0.2 0.2 0.2 1; +#X text 63 229 Inlet 2: float: red value; +#X text 63 244 Inlet 3: float: green value; +#X text 63 259 Inlet 4: float: blue value; +#X text 63 274 Inlet 5: float: alpha value; +#X obj 451 156 ambientRGB 0 1 0; +#X floatatom 477 122 3 0 1 0 - - -; +#X floatatom 504 122 3 0 1 0 - - -; +#X floatatom 531 122 3 0 1 0 - - -; +#X floatatom 558 122 3 0 1 0 - - -; +#X floatatom 548 192 5 0 0 0 - - -; +#X obj 500 211 rotate 70 1 0 0; +#X text 20 333 see also:; +#X obj 93 332 ambient; +#X connect 12 0 13 0; +#X connect 13 0 12 0; +#X connect 17 0 30 0; +#X connect 20 0 36 0; +#X connect 30 0 19 0; +#X connect 31 0 30 1; +#X connect 32 0 30 2; +#X connect 33 0 30 3; +#X connect 34 0 30 4; +#X connect 35 0 36 1; +#X connect 36 0 21 0; diff --git a/src/Gem/help/camera-help.pd b/src/Gem/help/camera-help.pd new file mode 100644 index 0000000..9b0d5f8 --- /dev/null +++ b/src/Gem/help/camera-help.pd @@ -0,0 +1,81 @@ +#N canvas 0 22 630 494 10; +#X obj 179 157 camera; +#X obj 179 45 gemhead; +#X obj 162 82 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 +; +#X obj 185 63 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 +; +#X obj 234 108 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 +1; +#X obj 260 86 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 +; +#X msg 234 124 left \$1; +#X msg 260 102 right \$1; +#X obj 75 120 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 +; +#X obj 101 98 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 +; +#X msg 101 114 up \$1; +#X msg 75 136 down \$1; +#X msg 267 58 reset; +#X msg 185 80 forward \$1; +#X msg 162 98 reverse \$1; +#X msg 66 252 speed \$1; +#X floatatom 66 234 5 0 0 0 - - -; +#X floatatom 67 195 5 0 0 0 - - -; +#X msg 379 150 lookX \$1; +#X msg 379 187 lookY \$1; +#X msg 379 223 lookZ \$1; +#X floatatom 379 134 5 0 0 0 - - -; +#X floatatom 379 207 5 0 0 0 - - -; +#X floatatom 379 170 5 0 0 0 - - -; +#X msg 67 213 distance \$1; +#X obj 170 305 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 112 destroy; +#X msg 132 112 create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 175 344 pd gemwin; +#X msg 175 325 create; +#X text 171 304 Create window:; +#X connect 1 0 0 0; +#X connect 2 0 14 0; +#X connect 3 0 13 0; +#X connect 4 0 6 0; +#X connect 5 0 7 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X connect 8 0 11 0; +#X connect 9 0 10 0; +#X connect 10 0 0 0; +#X connect 11 0 0 0; +#X connect 12 0 0 0; +#X connect 13 0 0 0; +#X connect 14 0 0 0; +#X connect 15 0 0 0; +#X connect 16 0 15 0; +#X connect 17 0 24 0; +#X connect 18 0 0 0; +#X connect 19 0 0 0; +#X connect 20 0 0 0; +#X connect 21 0 18 0; +#X connect 22 0 20 0; +#X connect 23 0 19 0; +#X connect 24 0 0 0; +#X connect 26 0 27 0; +#X connect 27 0 26 0; diff --git a/src/Gem/help/circle-help.pd b/src/Gem/help/circle-help.pd new file mode 100644 index 0000000..b8370dd --- /dev/null +++ b/src/Gem/help/circle-help.pd @@ -0,0 +1,65 @@ +#N canvas 291 154 710 345 10; +#X text 33 14 Synopsis: [circle]; +#X text 54 30 Class: geometric object; +#X text 525 29 Example:; +#X obj 7 65 cnv 15 450 90 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 7 69 Description: Renders a circle.; +#X text 16 86 The circle object renders a circle flat disc at the current +position with current color. The look of the circle can be changed +with the draw message \, its size can be changed via the second inlet. +; +#X obj 8 216 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 9 221 Inlets:; +#X obj 8 166 cnv 15 450 40 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 165 Arguments:; +#X text 27 261 Inlet 2: float: size; +#X text 452 8 GEM object; +#X text 27 233 Inlet 1: gemlist; +#X text 9 280 Outlets:; +#X text 21 293 Outlet 1: gemlist; +#X text 63 177 size of the circle; +#X obj 519 47 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 584 224 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 0 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 112 destroy; +#X msg 132 112 create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 589 263 pd gemwin; +#X msg 589 244 create; +#X text 585 223 Create window:; +#X obj 525 80 cnv 15 150 100 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 593 159 circle; +#X msg 535 95 draw line; +#X msg 535 116 draw fill; +#X msg 535 138 draw point; +#X obj 593 54 gemhead; +#X floatatom 626 130 5 0 0 2 size - -; +#X text 64 191 default: 1; +#X text 27 247 Inlet 1: message: draw [line|fill|point|default]; +#X connect 18 0 19 0; +#X connect 19 0 18 0; +#X connect 23 0 22 0; +#X connect 24 0 22 0; +#X connect 25 0 22 0; +#X connect 26 0 22 0; +#X connect 27 0 22 1; diff --git a/src/Gem/help/color-help.pd b/src/Gem/help/color-help.pd new file mode 100644 index 0000000..b797ca4 --- /dev/null +++ b/src/Gem/help/color-help.pd @@ -0,0 +1,62 @@ +#N canvas 48 102 639 342 10; +#X text 452 8 GEM object; +#X obj 8 196 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 39 198 Inlets:; +#X text 63 211 Inlet 1: gemlist; +#X text 39 292 Outlets:; +#X text 57 305 Outlet 1: gemlist; +#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 145 Arguments:; +#X obj 8 66 cnv 15 430 70 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 449 66 cnv 15 170 200 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X text 453 49 Example:; +#X obj 510 183 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 197 134 destroy; +#X msg 132 112 reset \, create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 515 222 pd gemwin; +#X msg 515 203 create; +#X text 511 182 Create window:; +#X text 71 31 Class: manipulation object; +#X obj 450 107 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 451 73 gemhead; +#X obj 451 182 cube; +#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.; +#X text 60 171 defaults: 0 0 0 1; +#X obj 451 145 color 0 1 0; +#X msg 487 116 0 0 1; +#X text 63 229 Inlet 2: list: 3(RGB) or 4(RGBA) float values; +#X text 22 81 [color] sets the colour of all subsequent shape and vertex +operations until reset by another [color]/[colorRGB] object. If you +set the alpha-value \, you will need an [alpha] object to enable alpha-blending +; +#X text 50 12 Synopsis: [color]; +#X text 29 67 Description: colouring; +#X text 449 272 see also:; +#X obj 452 301 colorRGB; +#X connect 12 0 13 0; +#X connect 13 0 12 0; +#X connect 17 0 21 0; +#X connect 21 0 18 0; +#X connect 22 0 21 1; diff --git a/src/Gem/help/colorRGB-help.pd b/src/Gem/help/colorRGB-help.pd new file mode 100644 index 0000000..f55a268 --- /dev/null +++ b/src/Gem/help/colorRGB-help.pd @@ -0,0 +1,71 @@ +#N canvas 42 24 639 342 10; +#X text 452 8 GEM object; +#X obj 8 196 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 39 198 Inlets:; +#X text 63 211 Inlet 1: gemlist; +#X text 39 292 Outlets:; +#X text 57 305 Outlet 1: gemlist; +#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 145 Arguments:; +#X obj 8 66 cnv 15 430 70 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 449 66 cnv 15 170 200 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X text 453 49 Example:; +#X obj 514 190 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 197 134 destroy; +#X msg 132 112 reset \, create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 519 229 pd gemwin; +#X msg 519 210 create; +#X text 515 189 Create window:; +#X text 71 31 Class: manipulation object; +#X obj 450 107 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 451 73 gemhead; +#X obj 451 182 cube; +#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.; +#X text 63 229 Inlet 2: float: red value; +#X text 63 244 Inlet 3: float: green value; +#X text 63 259 Inlet 4: float: blue value; +#X text 63 274 Inlet 5: float: alpha value; +#X floatatom 479 111 3 0 1 0 - - -; +#X floatatom 508 111 3 0 1 0 - - -; +#X floatatom 536 111 3 0 1 0 - - -; +#X floatatom 565 111 3 0 1 0 - - -; +#X text 60 171 defaults: 0 0 0 1; +#X text 50 12 Synopsis: [colorRGB]; +#X obj 451 145 colorRGB 0 1 0; +#X text 29 67 Description: colouring; +#X text 22 81 [colorRGB] sets the colour of all subsequent shape and +vertex operations until reset by another [color]/[colorRGB] object. +If you set the alpha-value \, you will need an [alpha] object to enable +alpha-blending; +#X text 447 272 see also:; +#X obj 449 297 color; +#X connect 12 0 13 0; +#X connect 13 0 12 0; +#X connect 17 0 30 0; +#X connect 24 0 30 1; +#X connect 25 0 30 2; +#X connect 26 0 30 3; +#X connect 27 0 30 4; +#X connect 30 0 18 0; diff --git a/src/Gem/help/colorSquare-help.pd b/src/Gem/help/colorSquare-help.pd new file mode 100644 index 0000000..aac9afc --- /dev/null +++ b/src/Gem/help/colorSquare-help.pd @@ -0,0 +1,82 @@ +#N canvas 130 41 696 468 10; +#X text 54 30 Class: geometric object; +#X obj 479 107 cnv 15 200 250 empty empty empty 20 12 0 14 -228992 +-66577 0; +#X obj 494 284 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 0 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 112 destroy; +#X msg 132 112 create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 499 323 pd gemwin; +#X msg 499 304 create; +#X text 495 283 Create window:; +#X obj 7 65 cnv 15 450 80 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 8 196 cnv 15 450 200 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 9 201 Inlets:; +#X obj 8 156 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 155 Arguments:; +#X text 27 227 Inlet 1: message: draw [line|fill|point]; +#X text 27 241 Inlet 2: float: size; +#X text 452 8 GEM object; +#X text 27 213 Inlet 1: gemlist; +#X text 9 350 Outlets:; +#X text 21 363 Outlet 1: gemlist; +#X text 485 89 Example:; +#X obj 482 137 cnv 15 190 110 empty empty empty 20 12 0 14 -81876 -66577 +0; +#X text 33 14 Synopsis: [colorSquare]; +#X obj 534 252 cnv 15 100 30 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X msg 485 145 draw line; +#X msg 485 166 draw fill; +#X msg 485 188 draw point; +#X obj 543 114 gemhead; +#X floatatom 557 143 5 0 0 1 size - -; +#X text 7 69 Description: Renders a square with several colors.; +#X text 63 166 size of the square; +#X obj 543 259 colorSquare; +#X msg 615 222 1 1 0; +#X msg 600 203 0 0 1; +#X msg 586 184 0 1 0; +#X msg 571 165 1 0 0; +#X text 27 268 Inlet 3: list: 3(RGB) float values for the lowerleft +corner; +#X text 27 285 Inlet 4: list: 3(RGB) float values for the lowerright +corner; +#X text 27 305 Inlet 5: list: 3(RGB) float values for the upperright +corner; +#X text 27 322 Inlet 6: list: 3(RGB) float values for the upperleft +corner; +#X text 16 86 The colorSquare object renders a square at the current +position. The size of the square can be changed via the second inlet. +The colors of the 4 corners can be specified separately and are drawn +as gradients.; +#X connect 3 0 4 0; +#X connect 4 0 3 0; +#X connect 21 0 28 0; +#X connect 22 0 28 0; +#X connect 23 0 28 0; +#X connect 24 0 28 0; +#X connect 25 0 28 1; +#X connect 29 0 28 5; +#X connect 30 0 28 4; +#X connect 31 0 28 3; +#X connect 32 0 28 2; diff --git a/src/Gem/help/cone-help.pd b/src/Gem/help/cone-help.pd new file mode 100644 index 0000000..a08b413 --- /dev/null +++ b/src/Gem/help/cone-help.pd @@ -0,0 +1,69 @@ +#N canvas 290 157 710 345 10; +#X text 54 30 Class: geometric object; +#X obj 479 47 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 544 224 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 0 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 112 destroy; +#X msg 132 112 create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 549 263 pd gemwin; +#X msg 549 244 create; +#X text 545 223 Create window:; +#X text 485 29 Example:; +#X obj 7 65 cnv 15 450 80 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 8 216 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 9 221 Inlets:; +#X obj 8 146 cnv 15 450 50 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 145 Arguments:; +#X text 27 261 Inlet 2: float: size; +#X text 452 8 GEM object; +#X text 27 233 Inlet 1: gemlist; +#X text 9 287 Outlets:; +#X text 21 300 Outlet 1: gemlist; +#X text 33 14 Synopsis: [cone]; +#X text 7 69 Description: Renders a cone.; +#X text 14 86 The cone object renders a cone at the current position +with current color. The look of the cone can be changed with the draw +message \, its size can be changed via the second inlet.; +#X obj 542 130 cnv 15 100 80 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X msg 485 65 draw line; +#X msg 485 86 draw fill; +#X msg 485 108 draw point; +#X obj 553 54 gemhead; +#X floatatom 569 144 5 0 0 2 size - -; +#X obj 553 79 rotateXYZ 90 0 0; +#X floatatom 586 171 5 0 0 2 segments - -; +#X text 27 272 Inlet 3: int: number of segments; +#X obj 553 189 cone 1; +#X text 64 180 defaults: 1 10; +#X text 63 162 size of the cone \, number of segments; +#X text 27 247 Inlet 1: message: draw [line|fill|point|default]; +#X connect 3 0 4 0; +#X connect 4 0 3 0; +#X connect 21 0 29 0; +#X connect 22 0 29 0; +#X connect 23 0 29 0; +#X connect 24 0 26 0; +#X connect 25 0 29 1; +#X connect 26 0 29 0; +#X connect 27 0 29 2; diff --git a/src/Gem/help/cube-help.pd b/src/Gem/help/cube-help.pd new file mode 100644 index 0000000..d80e0e1 --- /dev/null +++ b/src/Gem/help/cube-help.pd @@ -0,0 +1,64 @@ +#N canvas 289 160 710 345 10; +#X text 54 30 Class: geometric object; +#X obj 519 47 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 584 224 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 0 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 112 destroy; +#X msg 132 112 create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 589 263 pd gemwin; +#X msg 589 244 create; +#X text 585 223 Create window:; +#X obj 7 65 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 8 216 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 9 221 Inlets:; +#X obj 8 176 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 175 Arguments:; +#X text 27 247 Inlet 1: message: draw [line|fill|point]; +#X text 27 261 Inlet 2: float: size; +#X text 452 8 GEM object; +#X text 27 233 Inlet 1: gemlist; +#X text 9 280 Outlets:; +#X text 21 293 Outlet 1: gemlist; +#X text 33 14 Synopsis: [cube]; +#X text 7 69 Description: Renders a cube.; +#X text 63 186 size of the cube; +#X text 16 86 The cube object renders a cube at the current position +with current color. The size of the cube can be changed via the second +inlet.; +#X text 525 29 Example:; +#X obj 522 78 cnv 15 150 100 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X msg 525 128 draw point; +#X obj 593 54 gemhead; +#X floatatom 624 114 5 0 0 0 - - -; +#X text 624 98 size; +#X obj 593 159 cube; +#X msg 525 106 draw line; +#X msg 525 85 draw default; +#X connect 3 0 4 0; +#X connect 4 0 3 0; +#X connect 23 0 27 0; +#X connect 24 0 27 0; +#X connect 25 0 27 1; +#X connect 28 0 27 0; +#X connect 29 0 27 0; diff --git a/src/Gem/help/cuboid-help.pd b/src/Gem/help/cuboid-help.pd new file mode 100644 index 0000000..428b791 --- /dev/null +++ b/src/Gem/help/cuboid-help.pd @@ -0,0 +1,73 @@ +#N canvas 289 160 710 363 10; +#X text 54 30 Class: geometric object; +#X obj 519 47 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 584 224 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 0 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 112 destroy; +#X msg 132 112 create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 589 263 pd gemwin; +#X msg 589 244 create; +#X text 585 223 Create window:; +#X text 525 29 Example:; +#X obj 7 65 cnv 15 450 80 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 8 216 cnv 15 450 130 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 9 221 Inlets:; +#X obj 8 156 cnv 15 450 50 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 155 Arguments:; +#X text 27 247 Inlet 1: message: draw [line|fill|point]; +#X text 452 8 GEM object; +#X text 27 233 Inlet 1: gemlist; +#X text 9 310 Outlets:; +#X text 21 323 Outlet 1: gemlist; +#X obj 522 82 cnv 15 160 120 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X msg 525 95 draw line; +#X msg 525 116 draw fill; +#X msg 525 138 draw point; +#X obj 593 54 gemhead; +#X floatatom 605 104 5 0 0 0 - - -; +#X obj 593 179 cuboid; +#X floatatom 617 134 5 0 0 0 - - -; +#X floatatom 630 162 5 0 0 0 - - -; +#X text 605 88 length; +#X text 617 118 height; +#X text 630 146 depth; +#X text 63 167 dimensions of the cuboid (length width height); +#X text 7 69 Description: Renders a cuboid box.; +#X text 16 86 The cuboid object renders a cuboid (box) at the current +position with current color. The dimensions of the cuboid can be changed +via the last three inlets.; +#X text 33 14 Synopsis: [cuboid]; +#X text 27 260 Inlet 2: float: length (dimX); +#X text 27 275 Inlet 3: float: height (dimY); +#X text 27 289 Inlet 4: float: depth (dimZ); +#X text 65 181 default: 1 1 0; +#X connect 3 0 4 0; +#X connect 4 0 3 0; +#X connect 18 0 23 0; +#X connect 19 0 23 0; +#X connect 20 0 23 0; +#X connect 21 0 23 0; +#X connect 22 0 23 1; +#X connect 24 0 23 2; +#X connect 25 0 23 3; diff --git a/src/Gem/help/curve-help.pd b/src/Gem/help/curve-help.pd new file mode 100644 index 0000000..6922779 --- /dev/null +++ b/src/Gem/help/curve-help.pd @@ -0,0 +1,112 @@ +#N canvas 65 18 762 461 10; +#X text 54 30 Class: geometric object; +#X text 475 39 Example:; +#X obj 7 65 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 8 216 cnv 15 450 180 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 9 221 Inlets:; +#X obj 8 176 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 175 Arguments:; +#X text 452 8 GEM object; +#X text 27 233 Inlet 1: gemlist; +#X text 9 358 Outlets:; +#X text 21 371 Outlet 1: gemlist; +#X obj 469 58 cnv 15 200 295 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 568 359 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 0 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 132 112 create \, 1; +#X msg 198 112 destroy \, reset; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 6 0; +#X connect 3 1 5 0; +#X connect 3 1 7 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 573 398 pd gemwin; +#X msg 573 379 create; +#X text 569 358 Create window:; +#X obj 474 112 cnv 15 190 200 empty empty empty 20 12 0 14 -85973 -66577 +0; +#X obj 521 319 cnv 15 100 30 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X text 21 138 Each (additional) inlet will accept an X Y Z point which +is where the control point will be.; +#X text 28 323 Inlet 2: list: 3(XYZ) float values; +#X text 28 344 Inlet N: list: 3(XYZ) float values; +#X text 52 330 ...; +#X text 33 14 Synopsis: [curve]; +#X text 7 69 Description: Renders a bezier-curve; +#X text 63 187 number of control-points of the curve (mandatory); +#X text 27 247 Inlet 1: message: draw [line|linestrip|fill|point|tri|tristrip|trifan|quad|quadstrip] +; +#X text 22 88 [curve] creates a bezier curve. The initial argument +is the number of control-points of the curve. There is no maximum number +of control-points.; +#X text 27 306 Inlet 1: message: res : interpolation-resolution(30) +; +#X text 27 293 Inlet 1: message: width : line-width(1); +#X obj 596 233 cnv 15 65 75 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X msg 479 163 draw line; +#X msg 479 118 draw fill; +#X msg 479 140 draw point; +#X obj 537 64 gemhead; +#X msg 585 115 1 1 0; +#X msg 593 135 1 -1 0; +#X floatatom 605 196 5 0 0 0 - - -; +#X msg 603 175 -2 1 0; +#X msg 599 155 -1 -1 -3; +#X msg 479 183 draw linestrip; +#X msg 479 203 draw tri; +#X msg 479 225 draw tristrip; +#X msg 478 248 draw trifan; +#X msg 478 269 draw quad; +#X msg 478 291 draw quadstrip; +#X obj 537 88 rotateXYZ; +#X floatatom 595 65 5 0 0 0 - - -; +#X obj 537 326 curve 5; +#X obj 608 89 loadbang; +#X floatatom 599 237 5 0 10 0 - - -; +#X msg 599 253 width \$1; +#X floatatom 600 274 5 0 100 0 - - -; +#X msg 600 291 res \$1; +#X msg 605 213 \$1 \$1 \$1; +#X connect 13 0 14 0; +#X connect 14 0 13 0; +#X connect 30 0 47 0; +#X connect 31 0 47 0; +#X connect 32 0 47 0; +#X connect 33 0 45 0; +#X connect 34 0 47 1; +#X connect 35 0 47 2; +#X connect 36 0 53 0; +#X connect 37 0 47 4; +#X connect 38 0 47 3; +#X connect 39 0 47 0; +#X connect 40 0 47 0; +#X connect 41 0 47 0; +#X connect 42 0 47 0; +#X connect 43 0 47 0; +#X connect 44 0 47 0; +#X connect 45 0 47 0; +#X connect 46 0 45 1; +#X connect 46 0 45 3; +#X connect 48 0 34 0; +#X connect 49 0 50 0; +#X connect 50 0 47 0; +#X connect 51 0 52 0; +#X connect 52 0 47 0; +#X connect 53 0 47 5; diff --git a/src/Gem/help/curve3d-help.pd b/src/Gem/help/curve3d-help.pd new file mode 100644 index 0000000..141d27a --- /dev/null +++ b/src/Gem/help/curve3d-help.pd @@ -0,0 +1,1659 @@ +#N canvas 362 96 968 580 10; +#X text 145 42 Class: geometric object; +#X obj 13 64 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 13 212 cnv 15 450 220 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 17 214 Inlets:; +#X obj 13 173 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 22 172 Arguments:; +#X text 32 229 Inlet 1: gemlist; +#X text 14 401 Outlets:; +#X text 28 413 Outlet 1: gemlist; +#X text 146 24 Synopsis: [curve3d]; +#X obj 475 63 cnv 15 480 500 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 845 484 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 0 455 304 gemwin 0; +#X obj 132 182 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 112 destroy; +#X msg 132 112 create \, 1; +#X obj 294 56 gemhead; +#X obj 294 76 world_light; +#X msg 207 155 lighting 1; +#X obj 207 134 loadbang; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X connect 8 0 9 0; +#X connect 10 0 0 0; +#X connect 11 0 10 0; +#X restore 861 523 pd gemwin; +#X msg 861 504 create; +#X text 857 483 Create window:; +#X obj 796 74 cnv 15 150 150 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 796 234 cnv 15 150 150 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 486 74 cnv 15 300 310 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X msg 519 175 draw line; +#X msg 519 155 draw fill; +#X msg 519 195 draw point; +#X msg 536 300 width 1; +#X msg 536 321 width 4; +#X msg 519 216 draw line1; +#X msg 519 237 draw line2; +#X msg 519 258 draw line3; +#X msg 519 279 draw line4; +#X msg 657 169 draw control_line; +#X msg 657 190 draw control_line1; +#X msg 657 211 draw control_line2; +#X msg 657 232 draw control_fill; +#X msg 657 253 draw control_point; +#X msg 834 111 res 2 2; +#X msg 829 269 grid 2 10; +#X msg 834 132 res 3 3; +#X msg 829 290 grid 10 10; +#X msg 829 332 grid 40 40; +#X msg 834 153 res 5 5; +#X msg 834 174 res 1 4; +#X msg 829 311 grid 20 20; +#X text 592 92 draw style; +#X text 506 124 draw the curve; +#X obj 624 343 s curve3d; +#X obj 810 198 s curve3d; +#X obj 807 356 s curve3d; +#X obj 490 344 s curve3d; +#X text 660 139 of the curve; +#X text 647 125 draw control point; +#X obj 486 398 cnv 15 300 150 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 494 407 gemhead; +#X floatatom 522 450 5 0 0 0 - - -; +#X floatatom 557 450 5 0 0 0 - - -; +#X floatatom 593 450 5 0 0 0 - - -; +#X floatatom 562 408 5 0 0 0 - - -; +#X floatatom 610 408 5 0 0 0 - - -; +#X floatatom 659 408 5 0 0 0 - - -; +#X obj 494 471 rotateXYZ 0 0 0; +#X obj 494 428 translateXYZ -2.5 -2.5 -2; +#X obj 504 496 r curve3d; +#X text 809 91 control matrix; +#X text 804 78 resolution of the; +#X text 805 239 resolution of the; +#X text 826 250 curve grid; +#X text 28 389 Inlet 2: not used; +#X text 32 243 Inlet 1: message: draw [line|fill|point|...]; +#X obj 13 443 cnv 15 450 120 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 253 49 691 493 forme2 0; +#N canvas 0 0 353 257 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 28 92 pd tripleRnd; +#X msg 26 270 set 2 0 \$1 \$2 \$3; +#X msg 161 269 set 2 1 \$1 \$2 \$3; +#X msg 298 269 set 2 2 \$1 \$2 \$3; +#X msg 299 190 set 1 2 \$1 \$2 \$3; +#X msg 299 112 set 0 2 \$1 \$2 \$3; +#X msg 161 112 set 0 1 \$1 \$2 \$3; +#X msg 28 114 set 0 0 \$1 \$2 \$3; +#X msg 29 193 set 1 0 \$1 \$2 \$3; +#X msg 161 189 set 1 1 \$1 \$2 \$3; +#X msg 26 337 set 3 0 \$1 \$2 \$3; +#X msg 162 336 set 3 1 \$1 \$2 \$3; +#X msg 298 338 set 3 2 \$1 \$2 \$3; +#X msg 423 111 set 0 3 \$1 \$2 \$3; +#X msg 424 189 set 1 3 \$1 \$2 \$3; +#X msg 424 265 set 2 3 \$1 \$2 \$3; +#X msg 423 335 set 3 3 \$1 \$2 \$3; +#X msg 544 109 set 0 4 \$1 \$2 \$3; +#X msg 545 187 set 1 4 \$1 \$2 \$3; +#X msg 540 263 set 2 4 \$1 \$2 \$3; +#X msg 543 333 set 3 4 \$1 \$2 \$3; +#X msg 28 399 set 4 0 \$1 \$2 \$3; +#X msg 162 392 set 4 1 \$1 \$2 \$3; +#X msg 299 393 set 4 2 \$1 \$2 \$3; +#X msg 424 391 set 4 3 \$1 \$2 \$3; +#X msg 545 389 set 4 4 \$1 \$2 \$3; +#X obj 10 445 outlet; +#X obj 36 15 inlet; +#X obj 36 39 s bang_forme2; +#N canvas 0 0 355 259 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 161 90 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 299 91 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 423 89 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 544 86 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 29 169 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 162 167 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 300 168 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 424 166 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 545 163 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 28 247 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 161 245 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 299 246 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 422 244 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 544 241 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 28 318 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 161 316 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 299 317 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 423 315 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 544 312 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 29 374 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 162 372 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 300 373 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 424 371 pd tripleRnd; +#N canvas 0 0 351 255 tripleRnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 219 outlet; +#X obj 92 64 random 100; +#X obj 92 122 pack 0 1000; +#X obj 92 145 line; +#X obj 170 64 random 100; +#X obj 170 122 pack 0 1000; +#X obj 170 145 line; +#X obj 12 189 pack f f f; +#X obj 12 90 / 20; +#X obj 92 91 / 20; +#X obj 170 91 / 20; +#X obj 12 12 r bang_forme2; +#X obj 231 9 r line_forme2; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 2 0 10 0; +#X connect 4 0 12 0; +#X connect 5 0 6 0; +#X connect 6 0 10 1; +#X connect 7 0 13 0; +#X connect 8 0 9 0; +#X connect 9 0 10 2; +#X connect 10 0 3 0; +#X connect 11 0 1 0; +#X connect 12 0 5 0; +#X connect 13 0 8 0; +#X connect 14 0 0 0; +#X connect 14 0 4 0; +#X connect 14 0 7 0; +#X connect 15 0 1 1; +#X connect 15 0 5 1; +#X connect 15 0 8 1; +#X restore 545 368 pd tripleRnd; +#X connect 0 0 7 0; +#X connect 1 0 26 0; +#X connect 2 0 26 0; +#X connect 3 0 26 0; +#X connect 4 0 26 0; +#X connect 5 0 26 0; +#X connect 6 0 26 0; +#X connect 7 0 26 0; +#X connect 8 0 26 0; +#X connect 9 0 26 0; +#X connect 10 0 26 0; +#X connect 11 0 26 0; +#X connect 12 0 26 0; +#X connect 13 0 26 0; +#X connect 14 0 26 0; +#X connect 15 0 26 0; +#X connect 16 0 26 0; +#X connect 17 0 26 0; +#X connect 18 0 26 0; +#X connect 19 0 26 0; +#X connect 20 0 26 0; +#X connect 21 0 26 0; +#X connect 22 0 26 0; +#X connect 23 0 26 0; +#X connect 24 0 26 0; +#X connect 25 0 26 0; +#X connect 27 0 28 0; +#X connect 29 0 6 0; +#X connect 30 0 5 0; +#X connect 31 0 13 0; +#X connect 32 0 17 0; +#X connect 33 0 8 0; +#X connect 34 0 9 0; +#X connect 35 0 4 0; +#X connect 36 0 14 0; +#X connect 37 0 18 0; +#X connect 38 0 1 0; +#X connect 39 0 2 0; +#X connect 40 0 3 0; +#X connect 41 0 15 0; +#X connect 42 0 19 0; +#X connect 43 0 10 0; +#X connect 44 0 11 0; +#X connect 45 0 12 0; +#X connect 46 0 16 0; +#X connect 47 0 20 0; +#X connect 48 0 21 0; +#X connect 49 0 22 0; +#X connect 50 0 23 0; +#X connect 51 0 24 0; +#X connect 52 0 25 0; +#X restore 136 509 pd forme2; +#X obj 136 490 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 57 490 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#N canvas 253 49 697 499 forme1 0; +#X obj 76 418 outlet; +#X obj 36 15 inlet; +#N canvas 0 0 251 239 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 28 92 pd Rnd; +#X msg 28 114 set 0 0 0 0 \$1; +#X msg 126 115 set 0 1 0 1 \$1; +#X msg 227 116 set 0 2 0 2 \$1; +#X msg 323 117 set 0 3 0 3 \$1; +#X msg 419 116 set 0 4 0 4 \$1; +#X msg 47 159 set 1 0 1 0 \$1; +#X msg 145 160 set 1 1 1 1 \$1; +#X msg 246 161 set 1 2 1 2 \$1; +#X msg 342 162 set 1 3 1 3 \$1; +#X msg 438 161 set 1 4 1 4 \$1; +#X msg 68 202 set 2 0 2 0 \$1; +#X msg 166 203 set 2 1 2 1 \$1; +#X msg 267 204 set 2 2 2 2 \$1; +#X msg 363 205 set 2 3 2 3 \$1; +#X msg 459 204 set 2 4 2 4 \$1; +#X msg 97 249 set 3 0 3 0 \$1; +#X msg 195 250 set 3 1 3 1 \$1; +#X msg 297 251 set 3 2 3 2 \$1; +#X msg 393 252 set 3 3 3 3 \$1; +#X msg 488 251 set 3 4 3 4 \$1; +#X msg 121 296 set 4 0 4 0 \$1; +#X msg 219 297 set 4 1 4 1 \$1; +#X msg 320 298 set 4 2 4 2 \$1; +#X msg 416 299 set 4 3 4 3 \$1; +#X msg 512 298 set 4 4 4 4 \$1; +#X obj 36 39 s bang_forme3; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 127 92 pd Rnd; +#N canvas 0 0 251 239 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 227 93 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 326 93 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 420 94 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 48 138 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 147 138 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 247 139 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 346 139 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 440 140 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 68 181 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 167 181 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 267 182 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 366 182 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 460 183 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 97 227 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 196 227 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 296 228 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 395 228 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 489 229 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 121 275 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 220 275 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 320 276 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 419 276 pd Rnd; +#N canvas 0 0 249 237 Rnd 0; +#X obj 12 63 random 100; +#X obj 12 121 pack 0 1000; +#X obj 12 149 line; +#X obj 12 173 outlet; +#X obj 12 90 / 20; +#X obj 12 12 r bang_forme3; +#X obj 105 11 r line_forme3; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 1 1; +#X restore 513 277 pd Rnd; +#X connect 1 0 28 0; +#X connect 2 0 3 0; +#X connect 3 0 0 0; +#X connect 4 0 0 0; +#X connect 5 0 0 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X connect 8 0 0 0; +#X connect 9 0 0 0; +#X connect 10 0 0 0; +#X connect 11 0 0 0; +#X connect 12 0 0 0; +#X connect 13 0 0 0; +#X connect 14 0 0 0; +#X connect 15 0 0 0; +#X connect 16 0 0 0; +#X connect 17 0 0 0; +#X connect 18 0 0 0; +#X connect 19 0 0 0; +#X connect 20 0 0 0; +#X connect 21 0 0 0; +#X connect 22 0 0 0; +#X connect 23 0 0 0; +#X connect 24 0 0 0; +#X connect 25 0 0 0; +#X connect 26 0 0 0; +#X connect 27 0 0 0; +#X connect 29 0 4 0; +#X connect 30 0 5 0; +#X connect 31 0 6 0; +#X connect 32 0 7 0; +#X connect 33 0 8 0; +#X connect 34 0 9 0; +#X connect 35 0 10 0; +#X connect 36 0 11 0; +#X connect 37 0 12 0; +#X connect 38 0 13 0; +#X connect 39 0 14 0; +#X connect 40 0 15 0; +#X connect 41 0 16 0; +#X connect 42 0 17 0; +#X connect 43 0 18 0; +#X connect 44 0 19 0; +#X connect 45 0 20 0; +#X connect 46 0 21 0; +#X connect 47 0 22 0; +#X connect 48 0 23 0; +#X connect 49 0 24 0; +#X connect 50 0 25 0; +#X connect 51 0 26 0; +#X connect 52 0 27 0; +#X restore 57 509 pd forme1; +#X text 77 489 shape1; +#X text 156 489 shape2; +#X obj 57 469 loadbang; +#X floatatom 214 464 5 0 0 0 - - -; +#X msg 214 506 set 3 2 \$1 \$2 \$3; +#X floatatom 247 464 5 0 0 0 - - -; +#N canvas 0 0 173 130 pak 0; +#X obj 73 39 t b f; +#X obj 108 39 t b f; +#X obj 38 19 inlet; +#X obj 38 69 pack f f f; +#X obj 38 90 outlet; +#X obj 73 19 inlet; +#X obj 108 19 inlet; +#X connect 0 0 3 0; +#X connect 0 1 3 1; +#X connect 1 0 3 0; +#X connect 1 1 3 2; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 5 0 0 0; +#X connect 6 0 1 0; +#X restore 214 484 pd pak f f f; +#X floatatom 281 464 5 0 0 0 - - -; +#X obj 214 532 s exemples_shape; +#X obj 136 532 s curve3d; +#X obj 57 532 s curve3d; +#X text 13 68 Description: Renders a 3d bezier curve.; +#X text 68 183 size of the control matrix (default : 2 2); +#X obj 494 521 curve3d 5 5; +#X text 276 3 Create a 3D bezier curve \, using a matrix of control +points; +#X text 31 336 Inlet 1 : message: set Mx My X Y Z; +#X text 31 296 Inlet 1: message: grid X Y; +#X text 31 259 Inlet 1: message: res X Y; +#X text 53 272 This message is use for changing the size of the control +matrix (X \, Y are 2 int); +#X text 52 310 This message is use for changing the subdivision of +the displayed curve (X Y are 2 int); +#X text 53 349 This message can be use to set the position of a control +point. (Mx \, My : position of the point in the matrix. X \, Y \, Z +: position of this control point; +#X text 21 447 exemples :; +#X text 29 87 The curve3d object renders a curve at the current position +with current color or texture. The shape of the curve is cotrolled +from a matrix. Note that control points are not necessary part of the +curve.; +#X connect 12 0 13 0; +#X connect 13 0 12 0; +#X connect 18 0 45 0; +#X connect 19 0 45 0; +#X connect 20 0 45 0; +#X connect 21 0 45 0; +#X connect 22 0 45 0; +#X connect 23 0 45 0; +#X connect 24 0 45 0; +#X connect 25 0 45 0; +#X connect 26 0 45 0; +#X connect 27 0 42 0; +#X connect 28 0 42 0; +#X connect 29 0 42 0; +#X connect 30 0 42 0; +#X connect 31 0 42 0; +#X connect 32 0 43 0; +#X connect 33 0 44 0; +#X connect 34 0 43 0; +#X connect 35 0 44 0; +#X connect 36 0 44 0; +#X connect 37 0 43 0; +#X connect 38 0 43 0; +#X connect 39 0 44 0; +#X connect 49 0 57 0; +#X connect 50 0 56 1; +#X connect 51 0 56 2; +#X connect 52 0 56 3; +#X connect 53 0 57 1; +#X connect 54 0 57 2; +#X connect 55 0 57 3; +#X connect 56 0 83 0; +#X connect 57 0 56 0; +#X connect 58 0 83 0; +#X connect 66 0 79 0; +#X connect 67 0 66 0; +#X connect 68 0 69 0; +#X connect 69 0 80 0; +#X connect 72 0 68 0; +#X connect 73 0 76 0; +#X connect 74 0 78 0; +#X connect 75 0 76 1; +#X connect 76 0 74 0; +#X connect 77 0 76 2; diff --git a/src/Gem/help/cylinder-help.pd b/src/Gem/help/cylinder-help.pd new file mode 100644 index 0000000..e9781f7 --- /dev/null +++ b/src/Gem/help/cylinder-help.pd @@ -0,0 +1,70 @@ +#N canvas 291 154 710 345 10; +#X text 54 30 Class: geometric object; +#X obj 479 47 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 544 224 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 0 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 112 destroy; +#X msg 132 112 create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 549 263 pd gemwin; +#X msg 549 244 create; +#X text 545 223 Create window:; +#X text 485 29 Example:; +#X obj 7 65 cnv 15 450 80 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 8 216 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 9 221 Inlets:; +#X obj 8 156 cnv 15 450 50 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 155 Arguments:; +#X text 27 261 Inlet 2: float: size; +#X text 452 8 GEM object; +#X text 27 233 Inlet 1: gemlist; +#X text 9 287 Outlets:; +#X text 21 300 Outlet 1: gemlist; +#X obj 546 130 cnv 15 100 80 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X msg 485 65 draw line; +#X msg 485 86 draw fill; +#X msg 485 108 draw point; +#X obj 553 54 gemhead; +#X floatatom 575 144 5 0 0 2 size - -; +#X obj 553 79 rotateXYZ 90 0 0; +#X floatatom 598 172 3 0 0 2 segments - -; +#X text 27 272 Inlet 3: int: number of segments; +#X text 33 14 Synopsis: [cylinder]; +#X obj 553 189 cylinder; +#X text 7 69 Description: Renders a cylinder.; +#X text 14 86 The cylinder object renders a cylinder at the current +position with current color. The look of the cylinder can be changed +with the draw message \, its size can be changed via the second inlet. +; +#X text 63 167 size of the cylinder \, segments; +#X text 63 182 defaults: 1 \, 10; +#X text 27 247 Inlet 1: message: draw [line|fill|point|default]; +#X connect 3 0 4 0; +#X connect 4 0 3 0; +#X connect 18 0 27 0; +#X connect 19 0 27 0; +#X connect 20 0 27 0; +#X connect 21 0 23 0; +#X connect 22 0 27 1; +#X connect 23 0 27 0; +#X connect 24 0 27 2; diff --git a/src/Gem/help/depth-help.pd b/src/Gem/help/depth-help.pd new file mode 100644 index 0000000..83fe3d9 --- /dev/null +++ b/src/Gem/help/depth-help.pd @@ -0,0 +1,85 @@ +#N canvas 15 24 724 431 10; +#X obj 17 299 cnv 15 430 90 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 28 302 Inlets:; +#X text 28 339 Outlets:; +#X obj 17 264 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 26 263 Arguments:; +#X obj 17 69 cnv 15 430 190 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 46 352 Outlet 1: gemlist; +#X text 52 316 Inlet 1: gemlist; +#X text 466 15 GEM object; +#X obj 459 77 cnv 15 250 300 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X text 463 60 Example:; +#X obj 604 313 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 16 419 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 268 112 destroy; +#X msg 132 112 create \, 1; +#X obj 264 174 gemhead; +#X obj 264 200 world_light; +#X obj 238 68 r \$0-gemwin; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X connect 8 0 9 0; +#X connect 10 0 0 0; +#X restore 609 352 pd gemwin; +#X msg 609 333 create; +#X text 605 312 Create window:; +#X obj 460 106 cnv 15 240 90 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 461 84 gemhead 51; +#X obj 461 172 depth; +#X text 60 22 Synopsis: [depth]; +#X text 81 41 Class: manips object; +#X text 27 72 Description: Activate / Deactivate depth test; +#X text 26 93 [depth] turns on and off depth test (also known as Z-buffering). +This is very useful if you are in single-buffer mode \, because then +a painting effect can be achieved. In double-buffered mode \, you probably +do not want to turn off the depth test \, unless you have taken control +of the rendering order by setting the priority of each gemhead (see +the gemhead example for explanation).; +#X obj 496 114 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 +1; +#X text 26 189 By default \, this object will turn OFF depth buffering +for the objects "below".; +#X text 72 274 float (0/1) : depth test on/off; +#X text 52 329 Inlet 1: float (0/1) : depth test on/off; +#X obj 461 293 cube; +#X obj 461 260 rotateXYZ 0 30 30; +#X floatatom 560 239 5 0 0 0 - - -; +#X floatatom 494 202 5 0 0 0 - - -; +#X floatatom 527 218 5 0 0 0 - - -; +#X obj 607 210 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 +1; +#X msg 607 229 lighting \$1; +#X obj 607 252 s \$0-gemwin; +#X text 630 210 lighting; +#X text 516 113 turn depth test on/off; +#X connect 12 0 13 0; +#X connect 13 0 12 0; +#X connect 16 0 17 0; +#X connect 17 0 27 0; +#X connect 22 0 17 0; +#X connect 27 0 26 0; +#X connect 28 0 27 3; +#X connect 29 0 27 1; +#X connect 30 0 27 2; +#X connect 31 0 32 0; +#X connect 32 0 33 0; diff --git a/src/Gem/help/diffuse-help.pd b/src/Gem/help/diffuse-help.pd new file mode 100644 index 0000000..a9c9d69 --- /dev/null +++ b/src/Gem/help/diffuse-help.pd @@ -0,0 +1,68 @@ +#N canvas 61 22 630 385 10; +#X text 452 8 GEM object; +#X obj 8 196 cnv 15 430 180 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 34 198 Inlets:; +#X text 58 211 Inlet 1: gemlist; +#X text 34 252 Outlets:; +#X text 52 265 Outlet 1: gemlist; +#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 145 Arguments:; +#X obj 8 76 cnv 15 430 60 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X text 453 60 Example:; +#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 197 134 destroy; +#X msg 132 112 reset \, lighting 1 \, create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 519 293 pd gemwin; +#X msg 519 274 create; +#X text 515 253 Create window:; +#X text 71 31 Class: manipulation object; +#X obj 450 118 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 451 84 gemhead; +#X obj 451 193 cube; +#X obj 500 192 gemhead; +#X obj 500 230 world_light; +#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.; +#X msg 478 130 0.4 0.8 1; +#X text 58 229 Inlet 2: list: 3(RGB) or 4(RGBA) float values; +#X text 50 12 Synopsis: [diffuse]; +#X text 29 77 Description: diffuse colouring; +#X text 61 170 defaults: 0.8 0.8 0.8 1; +#X text 22 91 [diffuse] accepts a gemList and sets the diffuse-color +for all subsequent vertex-operations. You have to enable lighting to +see any effects.; +#X floatatom 561 190 5 0 0 0 - - -; +#X obj 500 211 rotate 66 1 0 0; +#X obj 451 156 diffuse 0 1 0; +#X obj 451 355 diffuseRGB; +#X text 448 332 see also:; +#X connect 12 0 13 0; +#X connect 13 0 12 0; +#X connect 17 0 30 0; +#X connect 19 0 29 0; +#X connect 22 0 30 1; +#X connect 28 0 29 1; +#X connect 29 0 20 0; +#X connect 30 0 18 0; diff --git a/src/Gem/help/diffuseRGB-help.pd b/src/Gem/help/diffuseRGB-help.pd new file mode 100644 index 0000000..9bad398 --- /dev/null +++ b/src/Gem/help/diffuseRGB-help.pd @@ -0,0 +1,75 @@ +#N canvas 61 22 632 388 10; +#X text 452 8 GEM object; +#X obj 8 196 cnv 15 430 180 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 39 198 Inlets:; +#X text 63 211 Inlet 1: gemlist; +#X text 39 292 Outlets:; +#X text 57 305 Outlet 1: gemlist; +#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 145 Arguments:; +#X obj 8 76 cnv 15 430 60 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X text 453 60 Example:; +#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 197 134 destroy; +#X msg 132 112 reset \, lighting 1 \, create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 519 293 pd gemwin; +#X msg 519 274 create; +#X text 515 253 Create window:; +#X text 71 31 Class: manipulation object; +#X obj 450 118 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 451 84 gemhead; +#X obj 451 193 cube; +#X obj 500 192 gemhead; +#X obj 500 230 world_light; +#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.; +#X text 63 229 Inlet 2: float: red value; +#X text 63 244 Inlet 3: float: green value; +#X text 63 259 Inlet 4: float: blue value; +#X text 63 274 Inlet 5: float: alpha value; +#X floatatom 477 122 3 0 1 0 - - -; +#X floatatom 504 122 3 0 1 0 - - -; +#X floatatom 531 122 3 0 1 0 - - -; +#X floatatom 558 122 3 0 1 0 - - -; +#X text 50 12 Synopsis: [diffuseRGB]; +#X text 29 77 Description: diffuse colouring; +#X text 22 91 [diffuseRGB] accepts a gemList and sets the diffuse-color +for all subsequent vertex-operations. You have to enable lighting to +see any effects.; +#X obj 451 156 diffuseRGB 0 1 0; +#X text 60 171 defaults: 0.8 0.8 0.8 1; +#X obj 500 211 rotate 63 1 0 0; +#X text 447 331 see also:; +#X obj 449 353 diffuse; +#X connect 12 0 13 0; +#X connect 13 0 12 0; +#X connect 17 0 33 0; +#X connect 19 0 35 0; +#X connect 26 0 33 1; +#X connect 27 0 33 2; +#X connect 28 0 33 3; +#X connect 29 0 33 4; +#X connect 33 0 18 0; +#X connect 35 0 20 0; diff --git a/src/Gem/help/disk-help.pd b/src/Gem/help/disk-help.pd new file mode 100644 index 0000000..c5f94d7 --- /dev/null +++ b/src/Gem/help/disk-help.pd @@ -0,0 +1,72 @@ +#N canvas 291 154 710 345 10; +#X text 54 30 Class: geometric object; +#X obj 479 47 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 544 224 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 0 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 112 destroy; +#X msg 132 112 create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 549 263 pd gemwin; +#X msg 549 244 create; +#X text 545 223 Create window:; +#X text 485 29 Example:; +#X obj 7 65 cnv 15 450 90 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 8 216 cnv 15 450 120 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 9 221 Inlets:; +#X obj 8 166 cnv 15 450 40 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 165 Arguments:; +#X text 452 8 GEM object; +#X text 27 233 Inlet 1: gemlist; +#X text 9 307 Outlets:; +#X text 21 320 Outlet 1: gemlist; +#X obj 481 81 cnv 15 160 140 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X msg 485 95 draw line; +#X msg 485 116 draw fill; +#X msg 485 138 draw point; +#X obj 553 54 gemhead; +#X floatatom 564 102 5 0 0 1 R - -; +#X floatatom 576 122 3 0 0 1 segments - -; +#X floatatom 589 147 5 0 0 1 r - -; +#X text 27 261 Inlet 2: float: size (= outer radius); +#X text 33 14 Synopsis: [disk]; +#X text 7 69 Description: Renders a disk.; +#X text 14 86 The disk object renders a flat disk with a hole in the +middle at the current position with current color. The look of the +disk can be changed with the draw message \, its size can be changed +via the second inlet \, the size of the hole via the third inlet.; +#X text 26 286 Inlet 4: float: inner radius (default: 0); +#X obj 553 199 disk 1; +#X text 27 273 Inlet 3: int: number of segments (default: 10); +#X text 28 177 disk size(=outer radius) \, segments \, hole size(=inner +radius); +#X text 29 191 defaults: 1 \, 10 \, 0; +#X text 27 247 Inlet 1: message: draw [line|fill|point|default]; +#X connect 3 0 4 0; +#X connect 4 0 3 0; +#X connect 17 0 29 0; +#X connect 18 0 29 0; +#X connect 19 0 29 0; +#X connect 20 0 29 0; +#X connect 21 0 29 1; +#X connect 22 0 29 2; +#X connect 23 0 29 3; diff --git a/src/Gem/help/emission-help.pd b/src/Gem/help/emission-help.pd new file mode 100644 index 0000000..dae2398 --- /dev/null +++ b/src/Gem/help/emission-help.pd @@ -0,0 +1,66 @@ +#N canvas 61 22 639 342 10; +#X text 452 8 GEM object; +#X obj 8 196 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 39 198 Inlets:; +#X text 63 211 Inlet 1: gemlist; +#X text 39 252 Outlets:; +#X text 57 265 Outlet 1: gemlist; +#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 145 Arguments:; +#X obj 8 76 cnv 15 430 60 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 449 77 cnv 15 170 200 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X text 453 60 Example:; +#X obj 510 209 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 197 134 destroy; +#X msg 132 112 reset \, lighting 1 \, create \, 1; +#X msg 277 206 lighting \$1; +#X obj 313 182 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 +1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X connect 8 0 0 0; +#X connect 9 0 8 0; +#X restore 515 248 pd gemwin; +#X msg 515 229 create; +#X text 511 208 Create window:; +#X text 71 31 Class: manipulation object; +#X obj 450 118 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 451 84 gemhead; +#X obj 451 193 cube; +#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.; +#X msg 478 130 0.4 0.8 1; +#X text 63 229 Inlet 2: list: 3(RGB) or 4(RGBA) float values; +#X text 60 171 defaults: 0 0 0 1; +#X text 50 12 Synopsis: [emission]; +#X obj 451 156 emission 0 1 0; +#X text 29 77 Description: emission colouring; +#X text 21 91 [emission] accepts a gemList and sets the emission-color +for all subsequent vertex-operations. You have to enable lighting to +see any effects.; +#X text 448 285 see also:; +#X obj 450 308 emissionRGB; +#X connect 12 0 13 0; +#X connect 13 0 12 0; +#X connect 17 0 24 0; +#X connect 20 0 24 1; +#X connect 24 0 18 0; diff --git a/src/Gem/help/emissionRGB-help.pd b/src/Gem/help/emissionRGB-help.pd new file mode 100644 index 0000000..b2137af --- /dev/null +++ b/src/Gem/help/emissionRGB-help.pd @@ -0,0 +1,70 @@ +#N canvas 61 22 639 342 10; +#X text 452 8 GEM object; +#X obj 8 196 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 39 198 Inlets:; +#X text 63 211 Inlet 1: gemlist; +#X text 39 292 Outlets:; +#X text 57 305 Outlet 1: gemlist; +#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 145 Arguments:; +#X obj 8 76 cnv 15 430 60 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 449 77 cnv 15 170 200 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X text 453 60 Example:; +#X obj 509 208 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 197 134 destroy; +#X msg 132 112 reset \, lighting 1 \, create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 514 247 pd gemwin; +#X msg 514 228 create; +#X text 510 207 Create window:; +#X text 71 31 Class: manipulation object; +#X obj 450 118 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 451 84 gemhead; +#X obj 451 193 cube; +#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.; +#X text 63 229 Inlet 2: float: red value; +#X text 63 244 Inlet 3: float: green value; +#X text 63 259 Inlet 4: float: blue value; +#X text 63 274 Inlet 5: float: alpha value; +#X floatatom 479 122 3 0 1 0 - - -; +#X floatatom 508 122 3 0 1 0 - - -; +#X floatatom 536 122 3 0 1 0 - - -; +#X floatatom 565 122 3 0 1 0 - - -; +#X obj 451 156 emissionRGB 0 1 0; +#X text 60 171 defaults: 0 0 0 1; +#X text 29 77 Description: emission colouring; +#X text 50 12 Synopsis: [emissionRGB]; +#X text 22 91 [emissionRGB] accepts a gemList and sets the emission-color +for all subsequent vertex-operations. You have to enable lighting to +see any effects.; +#X text 449 284 see also:; +#X obj 451 307 emission; +#X connect 12 0 13 0; +#X connect 13 0 12 0; +#X connect 17 0 28 0; +#X connect 24 0 28 1; +#X connect 25 0 28 2; +#X connect 26 0 28 3; +#X connect 27 0 28 4; +#X connect 28 0 18 0; diff --git a/src/Gem/help/fragment_program-help.pd b/src/Gem/help/fragment_program-help.pd new file mode 100644 index 0000000..90d278e --- /dev/null +++ b/src/Gem/help/fragment_program-help.pd @@ -0,0 +1,86 @@ +#N canvas 35 199 694 458 10; +#X text 452 8 GEM object; +#X obj 8 335 cnv 15 430 80 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 11 334 Inlets:; +#X text 10 386 Outlets:; +#X obj 8 296 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 295 Arguments:; +#X obj 7 76 cnv 15 430 210 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 444 77 cnv 15 200 230 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X text 453 60 Example:; +#X obj 474 334 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 0 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 132 112 create \, 1; +#X msg 198 112 destroy; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 6 0; +#X connect 3 1 5 0; +#X connect 3 1 7 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 479 373 pd gemwin; +#X msg 479 354 create; +#X text 475 333 Create window:; +#X obj 450 178 cnv 15 190 70 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 451 84 gemhead; +#X text 63 306 ; +#X text 28 399 Outlet 1: gemlist; +#X text 35 346 Inlet 1: gemlist; +#X obj 10 211 cnv 15 420 70 empty empty empty 20 12 0 14 -225280 -66577 +0; +#X text 71 31 Class: shader object; +#X obj 516 184 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#N canvas 0 0 450 300 open 0; +#X obj 75 103 openpanel; +#X obj 75 173 outlet; +#X obj 75 127 t b s; +#X msg 105 152 set open \$1; +#X obj 75 80 inlet; +#X connect 0 0 2 0; +#X connect 2 0 1 0; +#X connect 2 1 3 0; +#X connect 3 0 1 0; +#X connect 4 0 0 0; +#X restore 459 183 pd open; +#X text 14 219 IMPORTANT NOTE: your openGL-implementation (gfx-card +driver \, ...) has to support either (or both) the ARB shader extensions +or the NV shader extensions in order to make use of this object.; +#X text 10 176 Of course \, you also have to supply anything else needed +for the shader to work (like textures \, ...); +#X obj 451 266 teapot; +#X msg 459 203 open examples/data/random.fp; +#X text 50 12 Synopsis: [fragment_program]; +#X text 12 76 Description: load and apply an ARB fragment shader; +#X text 24 95 [fragment_program] loads and applies an ARB (or NV) fragment +shader.; +#X text 11 123 If you want to modify the parameters of the shader-program +\, you have to set the modification up yourself \, via [GEMglProgramEnvParameter*] +working on GL_FRAGMENT_PROGRAM_ARB.; +#X text 35 358 Inlet 1: messsage: open : fragment shader +program to load; +#X text 443 406 see also; +#X obj 508 406 vertex_program; +#X obj 451 226 fragment_program random.fp; +#X connect 10 0 11 0; +#X connect 11 0 10 0; +#X connect 14 0 33 0; +#X connect 20 0 21 0; +#X connect 21 0 25 0; +#X connect 25 0 33 0; +#X connect 33 0 24 0; diff --git a/src/Gem/help/gemframebuffer-help.pd b/src/Gem/help/gemframebuffer-help.pd new file mode 100644 index 0000000..7dcb61b --- /dev/null +++ b/src/Gem/help/gemframebuffer-help.pd @@ -0,0 +1,236 @@ +#N canvas 131 3 893 604 10; +#X obj 465 9 cnv 15 420 570 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 472 293 cnv 15 300 60 empty empty empty 20 12 0 14 -191407 -66577 +0; +#X obj 474 18 cnv 15 400 250 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 477 41 gemhead 20; +#X obj 664 306 gemhead; +#X msg 615 106 dimen 320 240; +#X obj 477 468 rotateXYZ; +#X floatatom 794 427 5 0 0 0 - - -; +#X msg 762 114 color 0 0 1 0; +#X msg 602 87 dimen 1024 1024; +#X msg 751 74 color 0 0 0 0; +#X obj 477 422 t a b; +#X floatatom 717 469 5 0 0 0 - - -; +#X msg 549 232 rectangle \$1; +#X obj 549 214 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 +1; +#X msg 509 101 type FLOAT; +#X obj 664 274 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 +1; +#X obj 477 382 translateXYZ 0 0 -4; +#X obj 477 298 gemframebuffer; +#X obj 664 331 pix_texture; +#X obj 664 358 t a b; +#X msg 531 187 texunit \$1; +#X msg 495 62 type BYTE; +#X msg 503 82 type INT; +#X msg 658 179 format YUV; +#X msg 649 158 format RGB; +#X msg 668 200 format RGBA; +#X msg 680 220 format RGB32; +#X obj 664 487 square 2; +#X obj 664 449 rotateXYZ -40 0 200; +#X floatatom 707 429 5 0 0 0 - - -; +#X obj 477 487 pqtorusknots; +#N canvas 0 22 450 300 rotation 0; +#X obj 33 19 inlet; +#X obj 33 110 % 360; +#X obj 33 62 i; +#X obj 33 88 + 5; +#X obj 33 136 outlet; +#X obj 84 111 % 360; +#X obj 84 63 i; +#X obj 84 137 outlet; +#X obj 134 112 % 360; +#X obj 134 64 i; +#X obj 134 138 outlet; +#X obj 84 89 + 3; +#X obj 134 90 + 7; +#X connect 0 0 2 0; +#X connect 0 0 6 0; +#X connect 0 0 9 0; +#X connect 1 0 2 1; +#X connect 1 0 4 0; +#X connect 2 0 3 0; +#X connect 3 0 1 0; +#X connect 5 0 6 1; +#X connect 5 0 7 0; +#X connect 6 0 11 0; +#X connect 8 0 9 1; +#X connect 8 0 10 0; +#X connect 9 0 12 0; +#X connect 11 0 5 0; +#X connect 12 0 8 0; +#X restore 509 443 pd rotation; +#X floatatom 531 167 5 0 0 0 - - -; +#N canvas 125 20 450 300 rotation 0; +#X obj 112 29 inlet; +#X obj 112 105 % 360; +#X obj 112 57 i; +#X obj 112 131 outlet; +#X obj 112 83 + 1; +#X connect 0 0 2 0; +#X connect 1 0 2 1; +#X connect 1 0 3 0; +#X connect 2 0 4 0; +#X connect 4 0 1 0; +#X restore 794 402 pd rotation; +#X obj 762 93 loadbang; +#X obj 477 402 color 1 0 0; +#X obj 649 245 t a; +#X obj 585 124 t a; +#X obj 751 135 t a; +#X obj 495 130 t a; +#X floatatom 563 361 5 0 0 0 - - -; +#X floatatom 607 362 5 0 0 0 - - -; +#X floatatom 520 361 5 0 0 0 - - -; +#X obj 495 154 t a; +#X obj 470 514 cnv 15 410 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X msg 757 544 color 0 0 0 0; +#X msg 746 522 color 0 1 1 0; +#X msg 637 525 lighting \$1; +#X obj 615 526 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 +1; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 112 destroy; +#X msg 132 112 create \, 1; +#X obj 67 40 route create destroy; +#X obj 20 217 gemhead 1; +#X obj 20 237 world_light; +#X connect 2 0 7 0; +#X connect 3 0 1 0; +#X connect 4 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 0 0; +#X connect 7 0 3 0; +#X connect 7 0 6 0; +#X connect 7 1 4 0; +#X connect 7 1 5 0; +#X connect 7 2 0 0; +#X connect 8 0 9 0; +#X restore 473 554 pd gemwin; +#X msg 473 529 destroy; +#X text 471 513 Create window:; +#X obj 637 552 t a; +#X text 476 22 Example:; +#X text 379 -10 GEM object; +#X obj 7 41 cnv 15 450 130 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 7 208 cnv 15 450 370 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 10 214 Inlets:; +#X obj 7 175 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 14 174 Arguments:; +#X text 28 233 Inlet 1: gemlist; +#X text 15 523 Outlets:; +#X text 31 539 Outlet 1: gemlist; +#X text 60 187 ; +#X text 102 -1 Synopsis: [gemframebuffer]; +#X text 122 15 Class: framebuffer object; +#X text 12 50 Description: Renders a scenne in a texture \, for later +use.; +#X text 12 68 this example renders a scene (pqtorusknots) into a framebuffer +\, which is then used as a texture onto a square.; +#X text 13 98 you need framebuffer support (and its driver) on your +gfx-card; +#X text 28 247 Inlet 1: message: type [BYTE | INT | FLOAT]; +#X text 27 315 Inlet 1: message: dimen ; +#X text 27 349 Inlet 1: message: color ; +#X text 26 430 Inlet 1: message: texunit ; +#X text 27 280 Inlet 1: message: format [RGB|RGBA|RGB32|YUV]; +#X text 26 385 Inlet 1: message: rectangle [0|1]; +#X text 103 262 (type of the framebuffer data); +#X text 102 330 (dimension of the framebuffer texture); +#X text 106 465 (usefull only with shader); +#X text 106 448 (change texunit of the texture); +#X text 31 557 Outlet 2: texture Id; +#X text 104 402 (texturing mode \; rectangle (1) or normalized (0)) +; +#X text 100 296 (color format of the framebuffer); +#X text 102 365 (background color of the framebuffer); +#X obj 556 41 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 +1; +#X floatatom 493 323 5 0 0 0 - - -; +#X obj 477 342 scaleXYZ; +#X floatatom 563 326 5 0 0 0 - - -; +#X floatatom 528 325 5 0 0 0 - - -; +#X msg 585 30 perspec -1 1 -1 1 1 20; +#X msg 593 56 perspec -1 1 -1 1 3 75; +#X text 98 497 (frustum of the framebuffer); +#X text 752 29 default; +#X text 11 130 NOTE: the default view-point of [gemframebuffer] is +at the origin 0/0/0 \, unlike [gemwin] where it is at 0/0/4. You might +want to manually insert a [translateXYZ 0 0 -4].; +#X text 23 482 Inlet 1: message: perspec +; +#X text 428 482 ; +#X connect 3 0 18 0; +#X connect 4 0 19 0; +#X connect 5 0 38 0; +#X connect 6 0 31 0; +#X connect 7 0 29 3; +#X connect 8 0 39 0; +#X connect 9 0 38 0; +#X connect 10 0 39 0; +#X connect 11 0 6 0; +#X connect 11 1 32 0; +#X connect 12 0 28 1; +#X connect 13 0 18 0; +#X connect 14 0 13 0; +#X connect 15 0 40 0; +#X connect 16 0 4 0; +#X connect 17 0 36 0; +#X connect 18 0 86 0; +#X connect 18 1 19 1; +#X connect 19 0 20 0; +#X connect 20 0 29 0; +#X connect 20 1 34 0; +#X connect 21 0 18 0; +#X connect 22 0 40 0; +#X connect 23 0 40 0; +#X connect 24 0 37 0; +#X connect 25 0 37 0; +#X connect 26 0 37 0; +#X connect 27 0 37 0; +#X connect 29 0 28 0; +#X connect 30 0 29 1; +#X connect 32 0 6 1; +#X connect 32 1 6 2; +#X connect 32 2 6 3; +#X connect 33 0 21 0; +#X connect 34 0 7 0; +#X connect 35 0 8 0; +#X connect 36 0 11 0; +#X connect 37 0 18 0; +#X connect 38 0 44 0; +#X connect 39 0 44 0; +#X connect 40 0 44 0; +#X connect 41 0 17 2; +#X connect 42 0 17 3; +#X connect 43 0 17 1; +#X connect 44 0 18 0; +#X connect 46 0 53 0; +#X connect 47 0 53 0; +#X connect 48 0 53 0; +#X connect 49 0 48 0; +#X connect 50 0 51 0; +#X connect 51 0 50 0; +#X connect 53 0 50 0; +#X connect 84 0 3 0; +#X connect 85 0 86 1; +#X connect 86 0 17 0; +#X connect 87 0 86 3; +#X connect 88 0 86 2; +#X connect 89 0 38 0; +#X connect 90 0 38 0; diff --git a/src/Gem/help/gemhead-help.pd b/src/Gem/help/gemhead-help.pd new file mode 100644 index 0000000..046ac37 --- /dev/null +++ b/src/Gem/help/gemhead-help.pd @@ -0,0 +1,116 @@ +#N canvas 32 22 937 572 10; +#X text 452 8 GEM object; +#X obj 8 438 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 18 440 Inlets:; +#X text 18 518 Outlets:; +#X text 36 531 Outlet 1: gemlist; +#X obj 8 393 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 398 Arguments:; +#X obj 8 76 cnv 15 430 310 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 50 12 Synopsis: [gemhead]; +#X text 71 31 Class: control object; +#X text 29 77 Description: start a rendering chain; +#X obj 607 371 cnv 15 140 65 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X msg 622 391 create; +#X text 618 370 Create window:; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 132 93 create \, 1 \, frame 2; +#X msg 198 112 destroy \, reset; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 6 0; +#X connect 3 1 5 0; +#X connect 3 1 7 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 622 411 pd gemwin (2fps); +#X text 21 91 [gemhead] connects the gem objects to the window manager. +The start of any gemList begins with the gemhead. Without the gemhead +\, gem objects will not receive the render command.; +#X text 20 366 example: "1" before "50" before "-10" before "-23"; +#X text 22 149 Any gem object connected after the gemhead will receive +one render command per frame.; +#X text 20 294 The rendering-order value can also be negative. Negative +numbered [gemhead]s will be rendered AFTER all positive [gemhead]s. +Note \, that Higher values (-3) will be rendered BEFORE lower values +(-10). [gemhead]s with negative numbers will NOT be affected by view-point +changes !!!; +#X text 62 409 float : priority (default : 50); +#X text 42 471 Inlet 1: bang : force rendering now.; +#X text 42 453 Inlet 1: float (1/0): turn rendering on/off (default +1); +#X text 42 490 Inlet 1: set : change priority value of this +chain.; +#X obj 442 74 cnv 15 160 240 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 451 79 enable/disable rendering; +#X obj 451 123 cnv 15 100 40 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X msg 470 240 gemList; +#X obj 470 134 gemhead; +#X msg 470 101 1; +#X msg 506 101 0; +#X obj 470 281 print ENABLE; +#X obj 470 199 square 0.5; +#X obj 606 74 cnv 15 160 240 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 770 74 cnv 15 160 240 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 617 81 force rendering; +#X text 789 79 set rendering order; +#X obj 621 128 cnv 15 100 40 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 781 135 cnv 15 100 40 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X msg 630 101 bang; +#X msg 791 101 set 45; +#X obj 791 286 print SETTABLE; +#X obj 630 284 print FORCEABLE; +#X msg 630 243 gemList; +#X msg 791 245 gemList; +#X obj 630 202 circle 0.5; +#X obj 791 204 triangle 0.5; +#X obj 791 144 gemhead 105; +#X text 21 188 All chain will be rendered one after the other. You +can control precisely the rendering order by giving [gemhead] a priority +value (argument or message). The default value is 50 The lower the +value is \, the sooner the gemhead will receive the rendering command +(a value of 1 is the lowest possible value). This value is important +when you are doing alpha blending and for certain objects (such as +light).; +#X obj 470 178 translateXYZ -2 0 0; +#X msg 854 101 set 105; +#X obj 630 181 translateXYZ 0 2 0; +#X obj 630 138 gemhead 50; +#X obj 791 183 translateXYZ 2 0 0; +#X connect 12 0 14 0; +#X connect 14 0 12 0; +#X connect 26 0 30 0; +#X connect 27 0 48 0; +#X connect 28 0 27 0; +#X connect 29 0 27 0; +#X connect 31 0 26 0; +#X connect 38 0 51 0; +#X connect 39 0 46 0; +#X connect 42 0 41 0; +#X connect 43 0 40 0; +#X connect 44 0 42 0; +#X connect 45 0 43 0; +#X connect 46 0 52 0; +#X connect 48 0 31 0; +#X connect 49 0 46 0; +#X connect 50 0 44 0; +#X connect 51 0 50 0; +#X connect 52 0 45 0; diff --git a/src/Gem/help/gemkeyboard-help.pd b/src/Gem/help/gemkeyboard-help.pd new file mode 100644 index 0000000..1dbca78 --- /dev/null +++ b/src/Gem/help/gemkeyboard-help.pd @@ -0,0 +1,62 @@ +#N canvas 64 27 679 445 10; +#X obj 27 85 cnv 15 450 170 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 28 303 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 29 308 Inlets:; +#X obj 28 265 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 37 264 Arguments:; +#X text 472 28 GEM object; +#X text 29 337 Outlets:; +#X text 495 49 Example:; +#X text 74 50 Class: control object; +#X obj 486 84 cnv 15 170 180 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 495 101 cnv 15 150 80 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 546 194 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 112 destroy; +#X msg 132 112 create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 551 233 pd gemwin; +#X msg 551 214 create; +#X text 547 193 Create window:; +#X text 53 34 Synopsis: [gemkeyboard]; +#X text 27 89 Description: output keyboard events in the GEM window +; +#X text 36 106 [gemkeyboard] sends out keyboard events which occur +in the GEM window. Such event will appear on KEY_DOWN and will give +the KeyCode of the button.; +#X text 34 181 Furthermore \, i would like to make this object really +cross-platform one day. Thus the KeyCode might change on one system +or another in future times.; +#X text 34 228 USE AT YOUR OWN RISK !!!; +#X text 35 148 It is not guaranteed \, that Windows / Linux / OSX versions +will give the same KeyCode for the same key pressed !!!; +#X text 83 275 none; +#X text 47 320 Inlet 1: non - used; +#X text 41 350 Outlet 1: keyCode; +#X obj 508 115 gemkeyboard; +#X floatatom 508 153 5 0 0 1 keyCode - -; +#X text 488 274 see also:; +#X obj 489 299 gemkeyname; +#X connect 12 0 13 0; +#X connect 13 0 12 0; +#X connect 24 0 25 0; diff --git a/src/Gem/help/gemkeyname-help.pd b/src/Gem/help/gemkeyname-help.pd new file mode 100644 index 0000000..6e72dd9 --- /dev/null +++ b/src/Gem/help/gemkeyname-help.pd @@ -0,0 +1,68 @@ +#N canvas 64 27 679 445 10; +#X obj 27 85 cnv 15 450 200 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 27 325 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 35 332 Inlets:; +#X obj 27 290 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 36 291 Arguments:; +#X text 472 28 GEM object; +#X text 35 361 Outlets:; +#X text 495 49 Example:; +#X text 74 50 Class: control object; +#X obj 486 84 cnv 15 170 180 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 495 101 cnv 15 150 80 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 546 194 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 112 destroy; +#X msg 132 112 create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 551 233 pd gemwin; +#X msg 551 214 create; +#X text 547 193 Create window:; +#X text 38 89 Description: output keyboard events in the GEM window +; +#X text 37 265 USE AT YOUR OWN RISK !!!; +#X text 82 302 none; +#X text 53 344 Inlet 1: non - used; +#X text 488 274 see also:; +#X text 53 34 Synopsis: [gemkeyname]; +#X text 36 108 [gemkeyname] sends out keyboard events which occur in +the GEM window. Such event will give a symbolic description of the +button. The "state"-outlet will be 1 for KEY_DOWN and 0 for KEY_UP. +; +#X text 37 219 Furthermore \, i would like to make this object really +cross-platform one day. Thus the KeyName might change on one system +or another in future times.; +#X text 37 161 It is not guaranteed \, that Windows / Linux / OSX versions +will give the same description for the same key pressed !!! Also \, +there is no guarantee \, that the pd-object [keyname] will return the +same symbols as [gemkeyname]; +#X text 53 376 Outlet 1: state; +#X text 53 390 Outlet 2: keyName; +#X obj 489 299 gemkeyboard; +#X floatatom 508 160 2 0 0 1 state - -; +#X symbolatom 565 134 10 0 0 0 keyName - -; +#X obj 508 115 gemkeyname; +#X connect 12 0 13 0; +#X connect 13 0 12 0; +#X connect 29 0 27 0; +#X connect 29 1 28 0; diff --git a/src/Gem/help/gemlist-help.pd b/src/Gem/help/gemlist-help.pd new file mode 100644 index 0000000..bd6e313 --- /dev/null +++ b/src/Gem/help/gemlist-help.pd @@ -0,0 +1,73 @@ +#N canvas 443 181 661 405 10; +#X obj 7 65 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 8 216 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 9 221 Inlets:; +#X obj 8 176 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 175 Arguments:; +#X text 452 8 GEM object; +#X text 27 233 Inlet 1: gemlist; +#X text 9 280 Outlets:; +#X text 21 293 Outlet 1: gemlist; +#X text 63 186 none; +#X text 475 29 Example:; +#X text 33 14 Synopsis: [gemlist]; +#X text 54 30 Class: control object; +#X text 27 247 Inlet 1: bang; +#X text 27 261 Inlet 2: gemlist; +#X text 7 69 Description: Store a gemlist; +#X text 16 86 The gemlist object stores a gemlist \, which may de output +by sending it a "bang" message.; +#X obj 467 47 cnv 15 170 340 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 475 81 cnv 15 150 130 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 528 320 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 0 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 112 destroy; +#X msg 132 112 create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 533 359 pd gemwin; +#X msg 533 340 create; +#X text 529 319 Create window:; +#X obj 498 59 gemhead; +#X obj 484 190 gemlist; +#X obj 484 169 until; +#X obj 484 288 scaleXYZ 0.9 0.9 0.9; +#X obj 484 243 translateXYZ 0.5 0 0; +#X msg 484 149 30; +#X obj 484 265 rotateXYZ 0 0 30; +#X obj 484 221 circle 0.3 33; +#X obj 498 107 route gem_state; +#X obj 498 127 route float; +#X obj 498 86 t a a; +#X connect 20 0 21 0; +#X connect 21 0 20 0; +#X connect 23 0 33 0; +#X connect 24 0 30 0; +#X connect 25 0 24 0; +#X connect 27 0 29 0; +#X connect 28 0 25 0; +#X connect 29 0 26 0; +#X connect 30 0 27 0; +#X connect 31 0 32 0; +#X connect 32 1 28 0; +#X connect 33 0 31 0; +#X connect 33 1 24 1; diff --git a/src/Gem/help/gemlist_info-help.pd b/src/Gem/help/gemlist_info-help.pd new file mode 100644 index 0000000..1a446c7 --- /dev/null +++ b/src/Gem/help/gemlist_info-help.pd @@ -0,0 +1,297 @@ +#N canvas 594 117 688 676 10; +#X text 452 8 GEM object; +#X obj 8 206 cnv 15 430 120 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 39 218 Inlets:; +#X text 63 231 Inlet 1: gemlist; +#X text 38 240 Outlets:; +#X text 62 253 Outlet 1: gemlist; +#X obj 8 156 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 155 Arguments:; +#X obj 8 76 cnv 15 430 70 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 453 60 Example:; +#X obj 9 415 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 0 454 304 gemwin 0; +#X obj 132 160 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 133 destroy; +#X obj 288 57 world_light; +#X obj 288 28 gemhead; +#X msg 132 112 create \, 1 \, lighting 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 9 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 8 0 7 0; +#X connect 9 0 0 0; +#X restore 14 454 pd gemwin; +#X msg 14 435 create; +#X text 10 414 Create window:; +#X text 50 12 Synopsis: [gemlist_info]; +#X text 71 31 Class: information object; +#X text 29 77 Description: get curent transformation of a gemlist; +#X text 42 94 [gemlist_info] accepts a gemList decompost the transformation +matrix in basic transformation (translation \, scale \, shear \, rotation) +; +#X text 60 174 no argument; +#X text 62 299 Outlet 5: 3 float list : translationX \, Y and Z; +#X text 62 265 Outlet 2: 3 float list : RotationX \, Y and Z; +#X text 62 277 Outlet 3: 3 float list : shear YX \, YZ and ZX; +#X text 62 288 Outlet 4: 3 float list : scale X \, Y and Z; +#X obj 9 336 cnv 15 430 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 0 452 890 more 0; +#X obj 30 122 gemhead; +#X floatatom 44 144 5 0 0 0 - - -; +#X floatatom 78 144 5 0 0 0 - - -; +#X floatatom 112 144 5 0 0 0 - - -; +#X floatatom 46 184 5 0 0 0 - - -; +#X floatatom 80 184 5 0 0 0 - - -; +#X floatatom 114 184 5 0 0 0 - - -; +#X floatatom 52 227 5 0 0 0 - - -; +#X floatatom 86 227 5 0 0 0 - - -; +#X floatatom 120 227 5 0 0 0 - - -; +#X obj 30 433 gemlist_info; +#X obj 192 568 unpack f f f; +#X obj 178 396 gemhead; +#X obj 178 536 translateXYZ; +#X floatatom 192 591 5 0 0 0 - - -; +#X floatatom 225 591 5 0 0 0 - - -; +#X floatatom 259 591 5 0 0 0 - - -; +#X floatatom 193 761 5 0 0 0 - - -; +#X floatatom 226 761 5 0 0 0 - - -; +#X floatatom 260 761 5 0 0 0 - - -; +#X floatatom 200 516 5 0 0 0 - - -; +#X floatatom 233 516 5 0 0 0 - - -; +#X floatatom 267 516 5 0 0 0 - - -; +#X obj 193 734 unpack f f f; +#X obj 200 490 unpack f f f; +#X obj 178 421 GEMglLoadIdentity; +#X obj 178 450 color 1 0 0; +#X floatatom 46 336 5 0 0 0 - - -; +#X floatatom 80 336 5 0 0 0 - - -; +#X floatatom 114 336 5 0 0 0 - - -; +#X floatatom 52 379 5 0 0 0 - - -; +#X floatatom 86 379 5 0 0 0 - - -; +#X floatatom 120 379 5 0 0 0 - - -; +#X obj 30 163 scaleXYZ 1 1 1; +#X obj 30 205 rotateXYZ 0 0 0; +#X obj 30 247 translateXYZ 0 0 0; +#X obj 30 357 rotateXYZ 0 0 0; +#X obj 30 399 translateXYZ 0 0 0; +#X floatatom 44 283 5 0 0 0 - - -; +#X floatatom 78 283 5 0 0 0 - - -; +#X floatatom 112 283 5 0 0 0 - - -; +#X obj 30 302 scaleXYZ 1 1 1; +#X obj 30 512 cube; +#X obj 30 484 scaleXYZ 1 1 0.2; +#X floatatom 192 665 8 0 0 0 - - -; +#X floatatom 225 681 8 0 0 0 - - -; +#X floatatom 259 697 8 0 0 0 - - -; +#X obj 192 643 unpack f f f; +#N canvas 296 410 419 328 shear 0; +#X obj 28 17 inlet; +#X obj 28 270 outlet; +#X obj 108 21 inlet; +#X obj 205 20 inlet; +#X obj 297 18 inlet; +#X text 117 38 ShearXY; +#X text 217 37 ShearXZ; +#X text 306 36 ShearYZ; +#X obj 28 104 shearYX; +#X obj 28 153 shearZX; +#X obj 28 212 shearZY; +#X connect 0 0 8 0; +#X connect 2 0 8 1; +#X connect 3 0 9 1; +#X connect 4 0 10 1; +#X connect 8 0 9 0; +#X connect 9 0 10 0; +#X connect 10 0 1 0; +#X restore 178 711 pd shear; +#X obj 178 811 cube 0.5; +#X obj 178 80 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 +; +#X obj 178 785 rotateXYZ; +#X obj 178 610 scaleXYZ; +#X obj 178 30 loadbang; +#X msg 178 55 0; +#X text 50 844 this show the transformation neaded to create a specific +transformation matrix decomposed with gemlist_info; +#X connect 0 0 33 0; +#X connect 1 0 33 1; +#X connect 2 0 33 2; +#X connect 3 0 33 3; +#X connect 4 0 34 1; +#X connect 5 0 34 2; +#X connect 6 0 34 3; +#X connect 7 0 35 1; +#X connect 8 0 35 2; +#X connect 9 0 35 3; +#X connect 10 0 43 0; +#X connect 10 1 23 0; +#X connect 10 2 47 0; +#X connect 10 3 11 0; +#X connect 10 4 24 0; +#X connect 11 0 14 0; +#X connect 11 1 15 0; +#X connect 11 2 16 0; +#X connect 12 0 25 0; +#X connect 13 0 52 0; +#X connect 14 0 52 1; +#X connect 15 0 52 2; +#X connect 16 0 52 3; +#X connect 17 0 51 1; +#X connect 18 0 51 2; +#X connect 19 0 51 3; +#X connect 20 0 13 1; +#X connect 21 0 13 2; +#X connect 22 0 13 3; +#X connect 23 0 17 0; +#X connect 23 1 18 0; +#X connect 23 2 19 0; +#X connect 24 0 20 0; +#X connect 24 1 21 0; +#X connect 24 2 22 0; +#X connect 25 0 26 0; +#X connect 26 0 13 0; +#X connect 27 0 36 1; +#X connect 28 0 36 2; +#X connect 29 0 36 3; +#X connect 30 0 37 1; +#X connect 31 0 37 2; +#X connect 32 0 37 3; +#X connect 33 0 34 0; +#X connect 34 0 35 0; +#X connect 35 0 41 0; +#X connect 36 0 37 0; +#X connect 37 0 10 0; +#X connect 38 0 41 1; +#X connect 39 0 41 2; +#X connect 40 0 41 3; +#X connect 41 0 36 0; +#X connect 43 0 42 0; +#X connect 44 0 48 1; +#X connect 45 0 48 2; +#X connect 46 0 48 3; +#X connect 47 0 44 0; +#X connect 47 1 45 0; +#X connect 47 2 46 0; +#X connect 48 0 51 0; +#X connect 50 0 0 0; +#X connect 50 0 12 0; +#X connect 51 0 49 0; +#X connect 52 0 48 0; +#X connect 53 0 54 0; +#X connect 54 0 50 0; +#X restore 15 349 pd more; +#X obj 449 77 cnv 15 200 570 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 459 310 cnv 15 180 40 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 472 89 gemhead; +#X floatatom 494 121 5 0 0 0 - - -; +#X floatatom 528 121 5 0 0 0 - - -; +#X floatatom 562 121 5 0 0 0 - - -; +#X floatatom 488 264 5 0 0 0 - - -; +#X floatatom 522 264 5 0 0 0 - - -; +#X floatatom 556 264 5 0 0 0 - - -; +#X floatatom 486 170 5 0 0 0 - - -; +#X floatatom 520 170 5 0 0 0 - - -; +#X floatatom 554 170 5 0 0 0 - - -; +#X obj 472 320 gemlist_info; +#X obj 488 596 unpack f f f; +#X floatatom 488 619 5 0 0 0 - - -; +#X floatatom 521 619 5 0 0 0 - - -; +#X floatatom 555 619 5 0 0 0 - - -; +#X floatatom 522 470 5 0 0 0 - - -; +#X floatatom 555 470 5 0 0 0 - - -; +#X floatatom 589 470 5 0 0 0 - - -; +#X floatatom 539 394 5 0 0 0 - - -; +#X floatatom 572 394 5 0 0 0 - - -; +#X floatatom 606 394 5 0 0 0 - - -; +#X obj 522 444 unpack f f f; +#X obj 539 371 unpack f f f; +#X text 547 356 position; +#X text 533 428 size; +#X obj 505 520 unpack f f f; +#N canvas 437 191 389 322 shear 0; +#X obj 37 27 inlet; +#X obj 37 280 outlet; +#X obj 118 31 inlet; +#X obj 215 30 inlet; +#X obj 307 28 inlet; +#X text 127 48 ShearXY; +#X text 227 47 ShearXZ; +#X text 316 46 ShearYZ; +#X obj 37 114 shearXY; +#X obj 37 163 shearXZ; +#X obj 37 222 shearYZ; +#X connect 0 0 8 0; +#X connect 2 0 8 1; +#X connect 3 0 9 1; +#X connect 4 0 10 1; +#X connect 8 0 9 0; +#X connect 9 0 10 0; +#X connect 10 0 1 0; +#X restore 472 237 pd shear; +#X obj 472 285 rotateXYZ; +#X obj 472 189 scaleXYZ; +#X obj 472 144 translateXYZ; +#X floatatom 486 216 5 0 0 0 - - -; +#X floatatom 520 216 5 0 0 0 - - -; +#X floatatom 554 216 5 0 0 0 - - -; +#X floatatom 505 545 5 0 0 0 - - -; +#X floatatom 538 545 5 0 0 0 - - -; +#X floatatom 572 545 5 0 0 0 - - -; +#X text 498 580 orientation; +#X text 514 504 shear (YX \, ZX \, ZY); +#X text 76 349 <- more about gemlist_info; +#X text 18 375 see also :; +#X obj 100 375 gemlist_matrix; +#X connect 11 0 12 0; +#X connect 12 0 11 0; +#X connect 27 0 56 0; +#X connect 28 0 56 1; +#X connect 29 0 56 2; +#X connect 30 0 56 3; +#X connect 31 0 54 1; +#X connect 32 0 54 2; +#X connect 33 0 54 3; +#X connect 34 0 55 1; +#X connect 35 0 55 2; +#X connect 36 0 55 3; +#X connect 37 1 38 0; +#X connect 37 2 52 0; +#X connect 37 3 48 0; +#X connect 37 4 49 0; +#X connect 38 0 39 0; +#X connect 38 1 40 0; +#X connect 38 2 41 0; +#X connect 48 0 42 0; +#X connect 48 1 43 0; +#X connect 48 2 44 0; +#X connect 49 0 45 0; +#X connect 49 1 46 0; +#X connect 49 2 47 0; +#X connect 52 0 60 0; +#X connect 52 1 61 0; +#X connect 52 2 62 0; +#X connect 53 0 54 0; +#X connect 54 0 37 0; +#X connect 55 0 53 0; +#X connect 56 0 55 0; +#X connect 57 0 53 1; +#X connect 58 0 53 2; +#X connect 59 0 53 3; diff --git a/src/Gem/help/gemlist_matrix-help.pd b/src/Gem/help/gemlist_matrix-help.pd new file mode 100644 index 0000000..30b6044 --- /dev/null +++ b/src/Gem/help/gemlist_matrix-help.pd @@ -0,0 +1,120 @@ +#N canvas 594 117 675 520 10; +#X text 452 8 GEM object; +#X obj 8 206 cnv 15 430 120 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 39 218 Inlets:; +#X text 63 231 Inlet 1: gemlist; +#X text 38 240 Outlets:; +#X text 62 253 Outlet 1: gemlist; +#X obj 8 156 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 155 Arguments:; +#X obj 8 76 cnv 15 430 70 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 453 60 Example:; +#X obj 9 385 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 0 454 304 gemwin 0; +#X obj 132 160 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 133 destroy; +#X obj 288 57 world_light; +#X obj 288 28 gemhead; +#X msg 132 112 create \, 1 \, lighting 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 9 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 8 0 7 0; +#X connect 9 0 0 0; +#X restore 14 424 pd gemwin; +#X msg 14 405 create; +#X text 10 384 Create window:; +#X text 71 31 Class: information object; +#X text 60 174 no argument; +#X obj 9 336 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X obj 449 77 cnv 15 200 400 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 459 310 cnv 15 180 40 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 472 89 gemhead; +#X floatatom 494 121 5 0 0 0 - - -; +#X floatatom 528 121 5 0 0 0 - - -; +#X floatatom 562 121 5 0 0 0 - - -; +#X floatatom 488 264 5 0 0 0 - - -; +#X floatatom 522 264 5 0 0 0 - - -; +#X floatatom 556 264 5 0 0 0 - - -; +#X floatatom 486 170 5 0 0 0 - - -; +#X floatatom 520 170 5 0 0 0 - - -; +#X floatatom 554 170 5 0 0 0 - - -; +#N canvas 437 191 753 491 shear 0; +#X obj 25 17 inlet; +#X obj 28 270 outlet; +#X obj 108 21 inlet; +#X obj 205 20 inlet; +#X obj 297 18 inlet; +#X text 117 38 ShearXY; +#X text 217 37 ShearXZ; +#X text 306 36 ShearYZ; +#X obj 27 104 shearXY; +#X obj 26 153 shearXZ; +#X obj 26 212 shearYZ; +#X connect 0 0 8 0; +#X connect 2 0 8 1; +#X connect 3 0 9 1; +#X connect 4 0 10 1; +#X connect 8 0 9 0; +#X connect 9 0 10 0; +#X connect 10 0 1 0; +#X restore 472 237 pd shear; +#X obj 472 285 rotateXYZ; +#X obj 472 189 scaleXYZ; +#X obj 472 144 translateXYZ; +#X floatatom 486 216 5 0 0 0 - - -; +#X floatatom 520 216 5 0 0 0 - - -; +#X floatatom 554 216 5 0 0 0 - - -; +#X obj 101 348 gemlist_info; +#X obj 472 320 gemlist_matrix; +#X text 14 351 see also :; +#X text 29 77 Description: get curent transformation matrix of a gemlist +; +#X msg 496 378 \$1 \$2 \$3; +#X msg 503 398 \$5 \$6 \$7; +#X msg 510 419 \$9 \$10 \$11; +#X msg 517 440 \$13 \$14 \$15; +#X text 50 12 Synopsis: [gemlist_matrix]; +#X text 42 94 [gemlist_matrix] accepts a gemList and output the transformation +matrix.; +#X text 62 265 Outlet 2: transformation matrix (16 floats); +#X connect 11 0 12 0; +#X connect 12 0 11 0; +#X connect 19 0 32 0; +#X connect 20 0 32 1; +#X connect 21 0 32 2; +#X connect 22 0 32 3; +#X connect 23 0 30 1; +#X connect 24 0 30 2; +#X connect 25 0 30 3; +#X connect 26 0 31 1; +#X connect 27 0 31 2; +#X connect 28 0 31 3; +#X connect 29 0 30 0; +#X connect 30 0 37 0; +#X connect 31 0 29 0; +#X connect 32 0 31 0; +#X connect 33 0 29 1; +#X connect 34 0 29 2; +#X connect 35 0 29 3; +#X connect 37 1 40 0; +#X connect 37 1 41 0; +#X connect 37 1 42 0; +#X connect 37 1 43 0; diff --git a/src/Gem/help/gemmouse-help.pd b/src/Gem/help/gemmouse-help.pd new file mode 100644 index 0000000..77b243c --- /dev/null +++ b/src/Gem/help/gemmouse-help.pd @@ -0,0 +1,115 @@ +#N canvas 179 30 929 414 10; +#X obj 7 65 cnv 15 450 170 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 8 283 cnv 15 450 120 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 9 288 Inlets:; +#X obj 8 245 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577 +0; +#X text 17 244 Arguments:; +#X text 452 8 GEM object; +#X text 9 317 Outlets:; +#X text 475 29 Example:; +#X text 54 30 Class: control object; +#X obj 466 64 cnv 15 170 180 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 466 284 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 +0; +#N canvas 0 22 450 300 gemwin 0; +#X obj 132 136 gemwin; +#X obj 67 89 outlet; +#X obj 67 10 inlet; +#X obj 67 41 route create; +#X msg 67 70 set destroy; +#X msg 142 68 set create; +#X msg 198 112 destroy; +#X msg 132 112 create \, 1; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 0 7 0; +#X connect 3 1 5 0; +#X connect 3 1 6 0; +#X connect 4 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X restore 471 323 pd gemwin; +#X msg 471 304 create; +#X text 467 283 Create window:; +#X text 27 300 Inlet 1: non - used; +#X text 468 364 see also:; +#X text 33 14 Synopsis: [gemmouse]; +#X text 7 69 Description: mouse events in the GEM window; +#X text 16 86 [gemmouse] sends out mouse events which occur in the +GEM window. The X and Y Position go from 0 to the size of the window +in pixels. The point (0 \, 0) is in the top left of the window.; +#X text 15 141 You can also set some normalization of the output coordinates +with arguments.; +#X text 15 170 The button outlets send a 1 when the specified button +is pressed and a 0 when it is released.; +#X text 63 255 [list : x-normalization y-normalization]; +#X text 21 330 Outlet 1: x position; +#X text 21 343 Outlet 2: y position; +#X text 21 355 Outlet 3: left button state; +#X text 21 368 Outlet 4: middle button state; +#X text 21 381 Outlet 5: right button state; +#X obj 466 385 gemkeyboard; +#X obj 478 82 cnv 15 100 40 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X obj 491 93 gemmouse; +#X floatatom 491 218 9 0 0 1 X-position - -; +#X floatatom 502 196 8 0 0 1 Y-position - -; +#X floatatom 513 174 2 0 0 1 left-Button - -; +#X floatatom 524 153 2 0 0 1 middle-Button - -; +#X floatatom 536 129 2 0 0 1 right-Button - -; +#X obj 642 64 cnv 15 280 180 empty empty empty 20 12 0 14 -228992 -66577 +0; +#X obj 654 82 cnv 15 100 40 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X floatatom 657 135 9 0 0 1 X-position - -; +#X floatatom 674 113 8 0 0 1 Y-position - -; +#X text 792 134 (normalized to 0..1); +#X obj 657 89 gemmouse 1 1; +#X text 791 111 (normalized to 0..1); +#X obj 656 186 tgl 15 1 empty empty empty 17 7 0 10 -262144 -1 -1 1 +1; +#N canvas 589 352 498 353 follow_mouse 0; +#X obj 112 29 inlet; +#X obj 168 74 * 8; +#X obj 168 97 - 4; +#X obj 168 31 inlet; +#X obj 112 129 gemhead; +#X obj 112 189 translateXYZ; +#X obj 112 217 colorRGB 1 0 0; +#X obj 112 242 square 0.25; +#X obj 214 139 - 4; +#X obj 214 33 inlet; +#X text 253 76 invert y; +#X obj 214 116 * 8; +#X msg 214 57 1 \$1; +#X obj 214 81 -; +#X connect 0 0 4 0; +#X connect 1 0 2 0; +#X connect 2 0 5 1; +#X connect 3 0 1 0; +#X connect 4 0 5 0; +#X connect 5 0 6 0; +#X connect 6 0 7 0; +#X connect 8 0 5 2; +#X connect 9 0 12 0; +#X connect 11 0 8 0; +#X connect 12 0 13 0; +#X connect 13 0 11 0; +#X restore 656 209 pd follow_mouse; +#X connect 11 0 12 0; +#X connect 12 0 11 0; +#X connect 29 0 30 0; +#X connect 29 1 31 0; +#X connect 29 2 32 0; +#X connect 29 3 33 0; +#X connect 29 4 34 0; +#X connect 37 0 43 1; +#X connect 38 0 43 2; +#X connect 40 0 37 0; +#X connect 40 1 38 0; +#X connect 42 0 43 0; diff --git a/src/Gem/help/gemorb-help.pd b/src/Gem/help/gemorb-help.pd new file mode 100644 index 0000000..2894cda --- /dev/null +++ b/src/Gem/help/gemorb-help.pd @@ -0,0 +1,32 @@ +#N canvas 293 148 600 556 10; +#X text 135 37 part of GEM; +#X obj 157 187 gemorb 1; +#X text 69 93 respond to events of a SpaceOrb on a specified commport. +; +#X msg 157 290 (X Y Z) Position; +#X msg 182 255 (X Y Z) Rotation; +#X msg 208 219 (a b c d e f g) Button; +#X text 152 70 [gemorb]; +#X text 67 326 [gemorb] connects to a SpaceOrb onthe commport specified +as the creation-argument.; +#X text 70 358 You have to have a SpaceOrb to make serious use of [gemorb] +; +#X text 66 389 Position and Rotation give you float-triplets specifying +the position/rotation at/for the 3 axis; +#X text 66 426 Button gives a 9tupel with the state \, each button +is in; +#X msg 180 118 reset; +#X msg 180 140 timer