head	1.6;
access;
symbols
	REL7_4_29:1.1
	REL8_0_25:1.3
	REL8_1_21:1.4
	REL8_2_17:1.5
	REL8_3_11:1.5
	REL8_4_4:1.5
	REL7_4_28:1.1
	REL8_0_24:1.3
	REL8_1_20:1.4
	REL8_2_16:1.5
	REL8_3_10:1.5
	REL8_4_3:1.5
	REL7_4_27:1.1
	REL8_0_23:1.3
	REL8_1_19:1.4
	REL8_2_15:1.5
	REL8_3_9:1.5
	REL8_4_2:1.5
	REL7_4_26:1.1
	REL8_0_22:1.3
	REL8_1_18:1.4
	REL8_2_14:1.5
	REL8_3_8:1.5
	REL8_4_1:1.5
	REL8_5_ALPHA1:1.5
	REL8_5_ALPHA1_BRANCH:1.5.0.8
	REL8_4_STABLE:1.5.0.6
	REL8_4_0:1.5
	REL8_4_RC2:1.5
	REL8_4_RC1:1.5
	REL8_4_BETA2:1.5
	REL8_4_BETA1:1.5
	REL7_4_25:1.1
	REL8_0_21:1.3
	REL8_1_17:1.4
	REL8_2_13:1.5
	REL8_3_7:1.5
	REL7_4_24:1.1
	REL8_0_20:1.3
	REL8_1_16:1.4
	REL8_2_12:1.5
	REL8_3_6:1.5
	REL7_4_23:1.1
	REL8_0_19:1.3
	REL8_1_15:1.4
	REL8_2_11:1.5
	REL8_3_5:1.5
	REL7_4_22:1.1
	REL8_0_18:1.3
	REL8_1_14:1.4
	REL8_2_10:1.5
	REL8_3_4:1.5
	REL7_4_21:1.1
	REL8_0_17:1.3
	REL8_1_13:1.4
	REL8_2_9:1.5
	REL8_3_3:1.5
	REL7_4_20:1.1
	REL8_0_16:1.3
	REL8_1_12:1.4
	REL8_2_8:1.5
	REL8_3_2:1.5
	REL8_2_7:1.5
	REL8_3_1:1.5
	REL8_3_STABLE:1.5.0.4
	REL8_3_0:1.5
	REL8_3_RC2:1.5
	REL7_3_21:1.1
	REL7_4_19:1.1
	REL8_0_15:1.3
	REL8_1_11:1.4
	REL8_2_6:1.5
	REL8_3_RC1:1.5
	REL8_3_BETA4:1.5
	REL8_3_BETA3:1.5
	REL8_3_BETA2:1.5
	REL8_3_BETA1:1.5
	REL7_3_20:1.1
	REL7_4_18:1.1
	REL8_0_14:1.3
	REL8_1_10:1.4
	REL8_2_5:1.5
	REL7_3_19:1.1
	REL7_4_17:1.1
	REL8_0_13:1.3
	REL8_1_9:1.4
	REL8_2_4:1.5
	REL8_0_12:1.3
	REL8_1_8:1.4
	REL8_2_3:1.5
	REL7_3_18:1.1
	REL7_4_16:1.1
	REL8_0_11:1.3
	REL8_1_7:1.4
	REL8_2_2:1.5
	REL8_0_10:1.3
	REL8_1_6:1.4
	REL8_2_1:1.5
	REL7_4_15:1.1
	REL7_3_17:1.1
	REL8_2_STABLE:1.5.0.2
	REL8_2_0:1.5
	REL8_2_RC1:1.5
	REL8_2_BETA3:1.5
	REL8_2_BETA2:1.5
	REL8_1_5:1.4
	REL8_0_9:1.3
	REL7_4_14:1.1
	REL7_3_16:1.1
	REL8_2_BETA1:1.5
	REL7_3_15:1.1
	REL7_4_13:1.1
	REL8_0_8:1.3
	REL8_1_4:1.4
	REL7_3_14:1.1
	REL7_4_12:1.1
	REL8_0_7:1.3
	REL8_1_3:1.4
	REL7_3_13:1.1
	REL7_4_11:1.1
	REL8_0_6:1.3
	REL8_1_2:1.4
	REL7_3_12:1.1
	REL7_4_10:1.1
	REL8_0_5:1.3
	REL8_1_1:1.4
	REL8_1_STABLE:1.4.0.2
	REL8_1_0:1.4
	REL8_1_0RC1:1.4
	REL8_1_0BETA4:1.4
	REL8_1_0BETA3:1.4
	REL7_3_11:1.1
	REL7_4_9:1.1
	REL8_0_4:1.3
	REL8_1_0BETA2:1.4
	REL8_1_0BETA1:1.4
	REL7_2_8:1.1
	REL7_3_10:1.1
	REL7_4_8:1.1
	REL8_0_3:1.3
	REL8_0_2:1.3
	REL7_2_7:1.1
	REL7_3_9:1.1
	REL7_4_7:1.1
	REL8_0_1:1.3
	REL8_0_STABLE:1.3.0.4
	REL8_0_0:1.3.0.2
	REL8_0_0RC5:1.3
	REL8_0_0RC4:1.2
	REL8_0_0RC3:1.2
	REL8_0_0RC2:1.2
	REL8_0_0RC1:1.2
	REL8_0_0BETA5:1.2
	REL8_0_0BETA4:1.2
	REL7_4_6:1.1
	REL7_3_8:1.1
	REL7_2_6:1.1
	REL8_0_0BETA3:1.2
	REL8_0_0BETA2:1.2
	REL7_2_5:1.1
	REL7_4_5:1.1
	REL7_3_7:1.1
	REL7_4_4:1.1
	REL8_0_0BETA1:1.2
	REL7_4_3:1.1
	REL7_4_2:1.1
	REL7_3_6:1.1
	REL7_4_1:1.1
	REL7_3_5:1.1
	REL7_4:1.1
	REL7_4_RC2:1.1
	REL7_4_STABLE:1.1.0.10
	REL7_4_RC1:1.1
	REL7_4_BETA5:1.1
	REL7_4_BETA4:1.1
	REL7_4_BETA3:1.1
	REL7_4_BETA2:1.1
	WIN32_DEV:1.1.0.8
	REL7_4_BETA1:1.1
	REL7_3_4:1.1
	REL7_3_2:1.1
	REL7_2_4:1.1
	REL7_3_STABLE:1.1.0.6
	REL7_2_3:1.1
	REL7_2_STABLE:1.1.0.4
	REL7_2:1.1
	REL7_2_RC2:1.1
	REL7_2_RC1:1.1
	REL7_2_BETA5:1.1
	REL7_2_BETA4:1.1
	REL7_2_BETA3:1.1
	REL7_2_BETA2:1.1
	REL7_2_BETA1:1.1
	REL7_1_2:1.1
	REL7_1_STABLE:1.1.0.2
	REL7_1_BETA:1.1
	REL7_1_BETA3:1.1
	REL7_1_BETA2:1.1
	REL7_1:1.1;
locks; strict;
comment	@# @;


1.6
date	2009.08.26.22.24.42;	author petere;	state dead;
branches;
next	1.5;

1.5
date	2006.03.11.04.38.28;	author momjian;	state Exp;
branches;
next	1.4;

1.4
date	2005.07.01.18.17.31;	author petere;	state Exp;
branches;
next	1.3;

1.3
date	2005.01.08.09.54.29;	author petere;	state Exp;
branches;
next	1.2;

1.2
date	2003.11.04.10.59.58;	author petere;	state Exp;
branches;
next	1.1;

1.1
date	2000.06.06.22.00.45;	author petere;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Update of install-sh, mkinstalldirs, and associated configury

Update install-sh to that from Autoconf 2.63, plus our Darwin-specific
changes (which I simplified a bit).  install-sh is now able to install
multiple files in one run, so we could simplify our makefiles sometime.

install-sh also now has a -d option to create directories, so we don't need
mkinstalldirs anymore.

Use AC_PROG_MKDIR_P in configure.in, so we can use mkdir -p when available
instead of install-sh -d.  For consistency with the rest of the world,
the corresponding make variable has been renamed from $(mkinstalldirs) to
$(MKDIR_P).
@
text
@#! /bin/sh
# mkinstalldirs --- make directory hierarchy

# $PostgreSQL: pgsql/config/mkinstalldirs,v 1.5 2006/03/11 04:38:28 momjian Exp $

scriptversion=2005-02-02.21

# Original author: Noah Friedman <friedman@@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain.
#
# This file is maintained in Automake, please report
# bugs to <bug-automake@@gnu.org> or send patches to
# <automake-patches@@gnu.org>.

errstatus=0
dirmode=""

usage="\
Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...

Create each directory DIR (with mode MODE, if specified), including all
leading file name components.

Report bugs to <bug-automake@@gnu.org>."

# process command line arguments
while test $# -gt 0 ; do
  case $1 in
    -h | --help | --h*)         # -h for help
      echo "$usage"
      exit $?
      ;;
    -m)                         # -m PERM arg
      shift
      test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
      dirmode=$1
      shift
      ;;
    --version)
      echo "$0 $scriptversion"
      exit $?
      ;;
    --)                         # stop option processing
      shift
      break
      ;;
    -*)                         # unknown option
      echo "$usage" 1>&2
      exit 1
      ;;
    *)                          # first non-opt arg
      break
      ;;
  esac
done

for file
do
  if test -d "$file"; then
    shift
  else
    break
  fi
done

case $# in
  0) exit 0 ;;
esac

# Solaris 8's mkdir -p isn't thread-safe.  If you mkdir -p a/b and
# mkdir -p a/c at the same time, both will detect that a is missing,
# one will create a, then the other will try to create a and die with
# a "File exists" error.  This is a problem when calling mkinstalldirs
# from a parallel make.  We use --version in the probe to restrict
# ourselves to GNU mkdir, which is thread-safe.
case $dirmode in
  '')
    if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
      echo "mkdir -p -- $*"
      exec mkdir -p -- "$@@"
    else
      # On NextStep and OpenStep, the `mkdir' command does not
      # recognize any option.  It will interpret all options as
      # directories to create, and then abort because `.' already
      # exists.
      test -d ./-p && rmdir ./-p
      test -d ./--version && rmdir ./--version
    fi
    ;;
  *)
    if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
       test ! -d ./--version; then
      echo "mkdir -m $dirmode -p -- $*"
      exec mkdir -m "$dirmode" -p -- "$@@"
    else
      # Clean up after NextStep and OpenStep mkdir.
      for d in ./-m ./-p ./--version "./$dirmode";
      do
        test -d $d && rmdir $d
      done
    fi
    ;;
esac

for file
do
  set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
  shift

  pathcomp=
  for d
  do
    pathcomp="$pathcomp$d"
    case $pathcomp in
      -*) pathcomp=./$pathcomp ;;
    esac

    if test ! -d "$pathcomp"; then
      echo "mkdir $pathcomp"

      mkdir "$pathcomp" || lasterr=$?

      if test ! -d "$pathcomp"; then
	errstatus=$lasterr
      else
	if test ! -z "$dirmode"; then
	  echo "chmod $dirmode $pathcomp"
	  lasterr=""
	  chmod "$dirmode" "$pathcomp" || lasterr=$?

	  if test ! -z "$lasterr"; then
	    errstatus=$lasterr
	  fi
	fi
      fi
    fi

    pathcomp="$pathcomp/"
  done
done

exit $errstatus

# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-end: "$"
# End:
@


1.5
log
@Add CVS tag lines to files that were lacking them.
@
text
@d4 1
a4 1
# $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.314 2006/03/07 02:54:23 momjian Exp $
@


1.4
log
@Update to autoconf 2.59 as well as updates of related scripts
@
text
@d4 2
@


1.3
log
@New version of mkinstalldirs fixes problems on Tru64 UNIX.
@
text
@d4 1
a4 1
scriptversion=2004-02-15.20
d30 1
a30 1
      exit 0
d40 1
a40 1
      exit 0
@


1.2
log
@Update install-sh and mkinstalldirs from master source (Automake).  They
have included a few fixes over the years to make them more robust and
faster.
@
text
@d3 4
a6 1
# Author: Noah Friedman <friedman@@prep.ai.mit.edu>
d8 5
a12 1
# Public domain
d18 6
a23 1
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
d29 1
a29 1
      echo "$usage" 1>&2
d38 4
d69 6
d77 1
a77 1
    if mkdir -p -- . 2>/dev/null; then
d80 7
d90 2
a91 1
    if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
d94 6
d123 1
a123 1
  	errstatus=$lasterr
d125 1
a125 1
  	if test ! -z "$dirmode"; then
d127 2
a128 2
    	  lasterr=""
  	  chmod "$dirmode" "$pathcomp" || lasterr=$?
d130 4
a133 4
  	  if test ! -z "$lasterr"; then
  	    errstatus=$lasterr
  	  fi
  	fi
d146 4
a150 1
# mkinstalldirs ends here
@


1.1
log
@Moved configure script from src/ to the top level directory. Moved
configuration helper things into config/ dir. Adjusted some relative paths
in makefiles.
@
text
@a4 1
# Last modified: 1994-03-25
d8 1
d10 2
a11 19
for file in ${1+"$@@"} ; do 
   set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
   shift

   pathcomp=
   for d in ${1+"$@@"} ; do
     pathcomp="$pathcomp$d"
     case "$pathcomp" in
       -* ) pathcomp=./$pathcomp ;;
     esac

     if test ! -d "$pathcomp"; then
        echo "mkdir $pathcomp" 1>&2
        mkdir "$pathcomp" > /dev/null 2>&1 || lasterr=$?
     fi

     if test ! -d "$pathcomp"; then
	errstatus=$lasterr
     fi
d13 90
a102 2
     pathcomp="$pathcomp/"
   done
d107 4
@

