Changeset 4665 for trunk/admin
- Timestamp:
- 10/02/06 06:56:29 (2 years ago)
- Location:
- trunk/admin
- Files:
-
- 7 modified
-
config.guess (modified) (10 diffs)
-
config.rpath (modified) (19 diffs)
-
config.sub (modified) (17 diffs)
-
install-sh (modified) (10 diffs)
-
libtool.m4.in (modified) (21 diffs)
-
ltmain.sh (modified) (3 diffs)
-
missing (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/config.guess
r4569 r4665 2 2 # Attempt to guess a canonical system name. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 5 6 timestamp='2005-12-13' 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, 5 # Inc. 6 7 timestamp='2006-07-02' 7 8 8 9 # This file is free software; you can redistribute it and/or modify it … … 107 108 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 108 109 : ${TMPDIR=/tmp} ; 109 { tmp=`(umask 077 && mktemp -d -q"$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 110 111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 111 112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || … … 207 208 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 208 209 exit ;; 210 *:SolidBSD:*:*) 211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 212 exit ;; 209 213 macppc:MirBSD:*:*) 210 echo powerp pc-unknown-mirbsd${UNAME_RELEASE}214 echo powerpc-unknown-mirbsd${UNAME_RELEASE} 211 215 exit ;; 212 216 *:MirBSD:*:*) … … 765 769 exit ;; 766 770 *:FreeBSD:*:*) 767 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 771 case ${UNAME_MACHINE} in 772 pc98) 773 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 774 amd64) 775 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 776 *) 777 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 778 esac 768 779 exit ;; 769 780 i*:CYGWIN*:*) … … 780 791 echo ${UNAME_MACHINE}-pc-pw32 781 792 exit ;; 782 x86:Interix*:[345]*) 783 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 793 x86:Interix*:[3456]*) 794 echo i586-pc-interix${UNAME_RELEASE} 795 exit ;; 796 EM64T:Interix*:[3456]*) 797 echo x86_64-unknown-interix${UNAME_RELEASE} 784 798 exit ;; 785 799 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) … … 816 830 exit ;; 817 831 arm*:Linux:*:*) 832 echo ${UNAME_MACHINE}-unknown-linux-gnu 833 exit ;; 834 avr32*:Linux:*:*) 818 835 echo ${UNAME_MACHINE}-unknown-linux-gnu 819 836 exit ;; … … 852 869 #endif 853 870 EOF 854 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`" 871 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 872 /^CPU/{ 873 s: ::g 874 p 875 }'`" 855 876 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 856 877 ;; … … 871 892 #endif 872 893 EOF 873 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`" 894 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 895 /^CPU/{ 896 s: ::g 897 p 898 }'`" 874 899 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 875 900 ;; … … 968 993 # endif 969 994 #else 970 #if defined(__INTEL_COMPILER) || defined(__PGI) 995 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) 971 996 LIBC=gnu 972 997 #else … … 978 1003 #endif 979 1004 EOF 980 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`" 1005 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 1006 /^LIBC/{ 1007 s: ::g 1008 p 1009 }'`" 981 1010 test x"${LIBC}" != x && { 982 1011 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" -
trunk/admin/config.rpath
r4569 r4665 3 3 # run time search path of shared libraries in an executable. 4 4 # 5 # Copyright 1996-200 5Free Software Foundation, Inc.5 # Copyright 1996-2006 Free Software Foundation, Inc. 6 6 # Taken from GNU libtool, 2001 7 7 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 … … 26 26 # directory and/or the installation directory. 27 27 28 # All known linkers require a `.a' archive for static linking (except M $VC,28 # All known linkers require a `.a' archive for static linking (except MSVC, 29 29 # which needs '.lib'). 30 30 libext=a … … 36 36 host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 37 37 38 cc_basename=`echo "$CC" | sed -e 's%^.*/%%'` 38 # Code taken from libtool.m4's _LT_CC_BASENAME. 39 40 for cc_temp in $CC""; do 41 case $cc_temp in 42 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 43 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 44 \-*) ;; 45 *) break;; 46 esac 47 done 48 cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` 39 49 40 50 # Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. … … 49 59 ;; 50 60 darwin*) 51 case "$cc_basename"in61 case $cc_basename in 52 62 xlc*) 53 63 wl='-Wl,' … … 78 88 como) 79 89 wl='-lopt=' 90 ;; 91 *) 92 case `$CC -V 2>&1 | sed 5q` in 93 *Sun\ C*) 94 wl='-Wl,' 95 ;; 96 esac 80 97 ;; 81 98 esac … … 121 138 fi 122 139 ;; 140 interix*) 141 # we just hope/assume this is gcc and not c89 (= MSVC++) 142 with_gnu_ld=yes 143 ;; 123 144 openbsd*) 124 145 with_gnu_ld=no … … 128 149 ld_shlibs=yes 129 150 if test "$with_gnu_ld" = yes; then 151 # Set some defaults for GNU ld with shared library support. These 152 # are reset later if shared libraries are not supported. Putting them 153 # here allows them to be overridden if necessary. 154 # Unlike libtool, we use -rpath here, not --rpath, since the documented 155 # option of GNU ld is called -rpath, not --rpath. 156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 130 157 case "$host_os" in 131 158 aix3* | aix4* | aix5*) … … 163 190 fi 164 191 ;; 192 interix3*) 193 hardcode_direct=no 194 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 195 ;; 196 linux*) 197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 198 : 199 else 200 ld_shlibs=no 201 fi 202 ;; 165 203 netbsd*) 166 204 ;; 167 solaris* | sysv5*)205 solaris*) 168 206 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 169 207 ld_shlibs=no … … 174 212 fi 175 213 ;; 214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 215 case `$LD -v 2>&1` in 216 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 217 ld_shlibs=no 218 ;; 219 *) 220 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 221 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 222 else 223 ld_shlibs=no 224 fi 225 ;; 226 esac 227 ;; 176 228 sunos4*) 177 229 hardcode_direct=yes 178 ;;179 linux*)180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then181 :182 else183 ld_shlibs=no184 fi185 230 ;; 186 231 *) … … 192 237 ;; 193 238 esac 194 if test "$ld_shlibs" = yes; then 195 # Unlike libtool, we use -rpath here, not --rpath, since the documented 196 # option of GNU ld is called -rpath, not --rpath. 197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 239 if test "$ld_shlibs" = no; then 240 hardcode_libdir_flag_spec= 198 241 fi 199 242 else … … 226 269 fi 227 270 done 271 ;; 228 272 esac 229 273 fi … … 245 289 hardcode_libdir_separator= 246 290 fi 291 ;; 247 292 esac 248 293 fi … … 292 337 : 293 338 else 294 case "$cc_basename"in339 case $cc_basename in 295 340 xlc*) 296 341 ;; … … 327 372 hardcode_minus_L=yes 328 373 ;; 329 hpux10* | hpux11*)374 hpux10*) 330 375 if test "$with_gnu_ld" = no; then 331 case "$host_cpu" in 332 hppa*64*) 333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 334 hardcode_libdir_separator=: 376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 377 hardcode_libdir_separator=: 378 hardcode_direct=yes 379 # hardcode_minus_L: Not really in the search PATH, 380 # but as the default location of the library. 381 hardcode_minus_L=yes 382 fi 383 ;; 384 hpux11*) 385 if test "$with_gnu_ld" = no; then 386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 387 hardcode_libdir_separator=: 388 case $host_cpu in 389 hppa*64*|ia64*) 335 390 hardcode_direct=no 336 391 ;; 337 ia64*)338 hardcode_libdir_flag_spec='-L$libdir'339 hardcode_direct=no340 # hardcode_minus_L: Not really in the search PATH,341 # but as the default location of the library.342 hardcode_minus_L=yes343 ;;344 392 *) 345 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'346 hardcode_libdir_separator=:347 393 hardcode_direct=yes 348 394 # hardcode_minus_L: Not really in the search PATH, … … 398 444 hardcode_libdir_separator=: 399 445 ;; 400 sco3.2v5*)401 ;;402 446 solaris*) 403 447 hardcode_libdir_flag_spec='-R$libdir' … … 428 472 fi 429 473 ;; 430 sysv4.2uw2*) 431 hardcode_direct=yes 432 hardcode_minus_L=no 433 ;; 434 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 435 ;; 436 sysv5*) 437 hardcode_libdir_flag_spec= 474 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 475 ;; 476 sysv5* | sco3.2v5* | sco5v6*) 477 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 478 hardcode_libdir_separator=':' 438 479 ;; 439 480 uts4*) … … 472 513 kfreebsd*-gnu) 473 514 ;; 474 freebsd* )515 freebsd* | dragonfly*) 475 516 ;; 476 517 gnu*) 477 518 ;; 478 519 hpux9* | hpux10* | hpux11*) 479 case "$host_cpu"in520 case $host_cpu in 480 521 ia64*) 481 522 shrext=.so … … 488 529 ;; 489 530 esac 531 ;; 532 interix3*) 490 533 ;; 491 534 irix5* | irix6* | nonstopux*) … … 524 567 osf3* | osf4* | osf5*) 525 568 ;; 526 sco3.2v5*)527 ;;528 569 solaris*) 529 570 ;; 530 571 sunos4*) 531 572 ;; 532 sysv4 | sysv4. 2uw2* | sysv4.3* | sysv5*)573 sysv4 | sysv4.3*) 533 574 ;; 534 575 sysv4*MP*) 576 ;; 577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 535 578 ;; 536 579 uts4*) -
trunk/admin/config.sub
r4569 r4665 2 2 # Configuration validation subroutine script. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 5 6 timestamp='2005-12-11' 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, 5 # Inc. 6 7 timestamp='2006-07-02' 7 8 8 9 # This file is (in principle) common to ALL GNU software. … … 241 242 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 242 243 | am33_2.0 \ 243 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \244 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ 244 245 | bfin \ 245 246 | c4x | clipper \ … … 249 250 | i370 | i860 | i960 | ia64 \ 250 251 | ip2k | iq2000 \ 251 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 252 | m32c | m32r | m32rle | m68000 | m68k | m88k \ 253 | maxq | mb | microblaze | mcore \ 252 254 | mips | mipsbe | mipseb | mipsel | mipsle \ 253 255 | mips16 \ … … 269 271 | mt \ 270 272 | msp430 \ 273 | nios | nios2 \ 271 274 | ns16k | ns32k \ 272 275 | or32 \ … … 274 277 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 275 278 | pyramid \ 276 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sh be | shle | sh[1234]le | sh3ele \279 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 277 280 | sh64 | sh64le \ 278 | sparc | sparc64 | sparc64b | sparc 86x | sparclet | sparclite \279 | sparcv8 | sparcv9 | sparcv9b \280 | s trongarm \281 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 282 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 283 | spu | strongarm \ 281 284 | tahoe | thumb | tic4x | tic80 | tron \ 282 285 | v850 | v850e \ … … 284 287 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 285 288 | z8k) 286 basic_machine=$basic_machine-unknown287 ;;288 m32c)289 289 basic_machine=$basic_machine-unknown 290 290 ;; … … 318 318 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 319 319 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 320 | avr-* \320 | avr-* | avr32-* \ 321 321 | bfin-* | bs2000-* \ 322 322 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ … … 329 329 | i*86-* | i860-* | i960-* | ia64-* \ 330 330 | ip2k-* | iq2000-* \ 331 | m32 r-* | m32rle-* \331 | m32c-* | m32r-* | m32rle-* \ 332 332 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 333 333 | m88110-* | m88k-* | maxq-* | mcore-* \ … … 351 351 | mt-* \ 352 352 | msp430-* \ 353 | nios-* | nios2-* \ 353 354 | none-* | np1-* | ns16k-* | ns32k-* \ 354 355 | orion-* \ … … 357 358 | pyramid-* \ 358 359 | romp-* | rs6000-* \ 359 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sh be-* \360 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 360 361 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 361 | sparc-* | sparc64-* | sparc64b-* | sparc 86x-* | sparclet-* \362 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 362 363 | sparclite-* \ 363 | sparcv8-* | sparcv9-* | sparcv9b-* | s trongarm-* | sv1-* | sx?-* \364 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ 364 365 | tahoe-* | thumb-* \ 365 366 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ … … 371 372 | ymp-* \ 372 373 | z8k-*) 373 ;;374 m32c-*)375 374 ;; 376 375 # Recognize the various machine names and aliases which stand … … 819 818 basic_machine=ns32k-pc532 820 819 ;; 820 pc98) 821 basic_machine=i386-pc 822 ;; 823 pc98-*) 824 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 825 ;; 821 826 pentium | p5 | k5 | k6 | nexgen | viac3) 822 827 basic_machine=i586-pc … … 1121 1126 basic_machine=sh-unknown 1122 1127 ;; 1123 sparc | sparcv8 | sparcv9 | sparcv9b )1128 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 1124 1129 basic_machine=sparc-sun 1125 1130 ;; … … 1194 1199 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1195 1200 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1196 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1201 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 1202 | -openbsd* | -solidbsd* \ 1197 1203 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1198 1204 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ … … 1209 1215 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1210 1216 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1211 | -skyos* | -haiku* | -rdos* )1217 | -skyos* | -haiku* | -rdos* | -toppers*) 1212 1218 # Remember, each alternative MUST END IN *, to match a version number. 1213 1219 ;; … … 1361 1367 1362 1368 case $basic_machine in 1369 spu-*) 1370 os=-elf 1371 ;; 1363 1372 *-acorn) 1364 1373 os=-riscix1.2 … … 1370 1379 os=-aout 1371 1380 ;; 1372 c4x-* | tic4x-*)1373 os=-coff1374 ;;1381 c4x-* | tic4x-*) 1382 os=-coff 1383 ;; 1375 1384 # This must come before the *-dec entry. 1376 1385 pdp10-*) -
trunk/admin/install-sh
r4569 r4665 2 2 # install - install a program, script, or datafile 3 3 4 scriptversion=2005- 11-07.234 scriptversion=2005-05-14.22 5 5 6 6 # This originates from X11R5 (mit/util/scripts/install.sh), which was … … 59 59 mkdirprog="${MKDIRPROG-mkdir}" 60 60 61 posix_glob= 62 posix_mkdir= 63 64 # Symbolic mode for testing mkdir with directories. 65 # It is the same as 755, but also tests that "u+" works. 66 test_mode=u=rwx,g=rx,o=rx,u+wx 67 68 # Desired mode of installed file. 69 mode=0755 70 71 # Desired mode of newly created intermediate directories. 72 # It is empty if not known yet. 73 intermediate_mode= 74 75 chmodcmd=$chmodprog 61 chmodcmd="$chmodprog 0755" 76 62 chowncmd= 77 63 chgrpcmd= … … 126 112 --help) echo "$usage"; exit $?;; 127 113 128 -m) mode=$2114 -m) chmodcmd="$chmodprog $2" 129 115 shift 130 116 shift … … 179 165 fi 180 166 181 test -n "$dir_arg" || trap '(exit $?); exit' 1 2 13 15182 183 167 for src 184 168 do … … 190 174 if test -n "$dir_arg"; then 191 175 dst=$src 192 dstdir=$dst 193 test -d "$dstdir" 194 dstdir_status=$? 176 src= 177 178 if test -d "$dst"; then 179 mkdircmd=: 180 chmodcmd= 181 else 182 mkdircmd=$mkdirprog 183 fi 195 184 else 196 197 185 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command 198 186 # might cause directories to be created, which would be especially bad … … 221 209 exit 1 222 210 fi 223 dstdir=$dst 224 dst=$dstdir/`basename "$src"` 225 dstdir_status=0 226 else 227 # Prefer dirname, but fall back on a substitute if dirname fails. 228 dstdir=` 229 (dirname "$dst") 2>/dev/null || 230 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 231 X"$dst" : 'X\(//\)[^/]' \| \ 232 X"$dst" : 'X\(//\)$' \| \ 233 X"$dst" : 'X\(/\)' \| \ 234 . : '\(.\)' 2>/dev/null || 235 echo X"$dst" | 236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 237 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 238 /^X\(\/\/\)$/{ s//\1/; q; } 239 /^X\(\/\).*/{ s//\1/; q; } 240 s/.*/./; q' 241 ` 242 243 test -d "$dstdir" 244 dstdir_status=$? 211 dst=$dst/`basename "$src"` 245 212 fi 246 213 fi 247 214 248 obsolete_mkdir_used=false 249 250 if test $dstdir_status != 0; then 251 case $posix_mkdir in 252 '') 253 posix_mkdir=false 254 if $mkdirprog -m $test_mode -p -- / >/dev/null 2>&1; then 255 posix_mkdir=true 256 else 257 # Remove any dirs left behind by ancient mkdir implementations. 258 rmdir ./-m "$test_mode" ./-p ./-- 2>/dev/null 259 fi ;; 260 esac 261 262 if 263 $posix_mkdir && { 264 265 # With -d, create the new directory with the user-specified mode. 266 # Otherwise, create it using the same intermediate mode that 267 # mkdir -p would use when creating intermediate directories. 268 # POSIX says that this mode is "$(umask -S),u+wx", so use that 269 # if umask -S works. 270 271 if test -n "$dir_arg"; then 272 mkdir_mode=$mode 273
