OSDN Git Service

Add parameter for setting local prefix.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Jun 1997 23:12:23 +0000 (23:12 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Jun 1997 23:12:23 +0000 (23:12 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14200 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/configure.in

index e40dbee..54ce459 100644 (file)
@@ -23,7 +23,6 @@
 # Initialization and defaults
 AC_INIT(tree.c)
 native_prefix=/usr
-local_prefix=/usr/local
 remove=rm
 hard_link=ln
 symbolic_link='ln -s'
@@ -39,7 +38,7 @@ gnu_ld=no)
 
 # With GNU as
 AC_ARG_WITH(gnu-as,
-[  --with-gnu-           arrange to work with GNU as.],
+[  --with-gnu-as           arrange to work with GNU as.],
 gas=yes,
 gas=no)
 
@@ -55,6 +54,17 @@ AC_ARG_WITH(elf,
 elf=yes,
 elf=no)
 
+# Specify the local prefix
+AC_ARG_WITH(local-prefix,
+[  --with-local-prefix=DIR specifies directory to put local include.],
+local_prefix=$with_local_prefix,
+local_prefix=/usr/local)
+
+# Default local prefix if it is empty
+if [[ x$local_prefix = x ]]; then
+       local_prefix=/usr/local
+fi
+
 #
 # Shell script to create proper links to machine-dependent files in
 # preparation for compiling gcc.