From: Masahiro TANAKA <masa16.tanaka@gmail.com>
Date: Tue, 5 Mar 2013 18:48:57 +0900
Subject: rm extconf-auto.rb

---
 ext/extconf-auto.rb | 89 -----------------------------------------------------
 pgplot.gemspec      |  4 +--
 2 files changed, 1 insertion(+), 92 deletions(-)
 delete mode 100644 ext/extconf-auto.rb

diff --git a/ext/extconf-auto.rb b/ext/extconf-auto.rb
deleted file mode 100644
index 5891862..0000000
--- a/ext/extconf-auto.rb
+++ /dev/null
@@ -1,89 +0,0 @@
-# extconf.rb : Configure script for Ruby/PGPLOT
-#
-#   Copyright (c) 2000,2001 Masahiro TANAKA <masa@ir.isas.ac.jp>
-#
-#   This program is free software.
-#   You can distribute/modify this program
-#   under the same terms as Ruby itself.
-#   NO WARRANTY.
-#
-# usage: ruby extconf.rb [configure options]
-
-# Narray is now Gem based, so require rubygems
-# so that we can use Gem class to find narray.
-
-load "./extconf.rb"
-
-# Exit if user did not specify "--enable-autobuild"
-if !enable_config('autobuild', false)
-  # Print reminder about --enable-autobuild option if pgplot was not found
-  if !$have_pgplot
-    puts
-    puts "The PGPLOT library was not found.  To auto-build it as part of"
-    puts "installing Ruby/PGLOT, pass the --enable-autobuild option."
-    puts
-    puts "Examples:"
-    puts
-    puts "   Gem install:  gem install pgplot -- --enable-autobuild"
-    puts "Manual install:  ruby extconf.rb --enable-autobuild"
-  end
-  exit
-end
-# Exit if pgplot library was found
-exit if $have_pgplot
-# Exit unless a fortran compiler was found
-exit unless %w[gfortran g77].any?{|cmd| system("which #{cmd}")}
-
-puts "enabling auto-build PGPLOT Library..."
-
-$subdir = 'build_lib'
-
-$CFLAGS = "-I#{$subdir}/build "+$CFLAGS
-$LDFLAGS = "-L#{$subdir}/build "+$LDFLAGS
-
-$libs = append_library($libs, "pgplot")
-$libs = append_library($libs, "cpgplot")
-$defs.push '-DPGPLOT_DIR=\\"$(PGPLOT_DIR)\\"'
-
-# Generate Makefile
-create_makefile("pgplot")
-
-# Append PGPLOT install task to Makefile
-if $makefile_created
-  puts "appending extra install tasks to Makefile"
-  File.open("Makefile","a") do |w|
-    w.print <<EOL
-
-PGPLOT_DIR = $(RUBYARCHDIR)/pgplot
-PGPLOT_BUILD = #{$subdir}/build
-
-$(PGPLOT_BUILD)/libcpgplot.a:
-	(cd #{$subdir}; make build/libcpgplot.a)
-$(PGPLOT_BUILD)/cpgplot.h: $(PGPLOT_BUILD)/libcpgplot.a
-rb_pgplot.o: $(PGPLOT_BUILD)/cpgplot.h
-$(DLLIB): $(PGPLOT_BUILD)/libcpgplot.a
-
-install: install-pgplot
-install-pgplot:
-	$(MAKEDIRS) $(PGPLOT_DIR)
-	$(INSTALL_DATA) $(PGPLOT_BUILD)/grfont.dat $(PGPLOT_DIR)
-	$(INSTALL_DATA) $(PGPLOT_BUILD)/rgb.txt $(PGPLOT_DIR)
-EOL
-    if $found_lib.include? "X11"
-      w.print <<EOL
-	$(INSTALL_PROG) $(PGPLOT_BUILD)/pgxwin_server $(PGPLOT_DIR)
-
-$(PGPLOT_BUILD)/pgxwin_server: $(PGPLOT_BUILD)/cpgplot.h
-	(cd #{$subdir}; make build/pgxwin_server)
-$(DLLIB): $(PGPLOT_BUILD)/pgxwin_server
-EOL
-    end
-  end
-
-  puts "creating #{$subdir}/drivers.conf"
-  File.open("#{$subdir}/drivers.conf","w") do |w|
-    w.puts "GIDRIV PPDRIV PSDRIV"
-    w.puts "PNDRIV" if $found_lib.include? "png"
-    w.puts "WDDRIV XWDRIV" if $found_lib.include? "X11"
-  end
-end
diff --git a/pgplot.gemspec b/pgplot.gemspec
index d7b48ad..88f23e2 100644
--- a/pgplot.gemspec
+++ b/pgplot.gemspec
@@ -16,7 +16,7 @@ PGPLOT_GEMSPEC = Gem::Specification.new do |s|
   s.date = Time.now.strftime("%F")
   s.description = "PGPLOT wrapper for Ruby"
   s.email = "masa16.tanaka@gmail.com"
-  s.extensions = ["ext/extconf-auto.rb"]
+  s.extensions = ["ext/extconf.rb"]
   s.homepage = "http://pgplot.rubyforge.org/"
   s.require_paths = ["."]
   s.rubyforge_project = "pgplot"
@@ -35,7 +35,6 @@ PGPLOT_GEMSPEC = Gem::Specification.new do |s|
     ext/cogen.rb
     ext/depend
     ext/extconf.rb
-    ext/extconf-auto.rb
     ext/kwarg.c
     ext/rb_pgplot.c.in
     ext/version.h
@@ -78,7 +77,6 @@ PGPLOT_GEMSPEC = Gem::Specification.new do |s|
     --exclude ext/cpgplot.h
     --exclude ext/depend
     --exclude ext/extconf.rb
-    --exclude ext/extconf-auto.rb
     --exclude ext/kwarg.c
     --exclude ext/rb_pgplot.c.in
     --exclude ext/version.h
